{"version":3,"sources":["webpack://Grommet/webpack/bootstrap","webpack://Grommet/external \"React\"","webpack://Grommet/external \"styled\"","webpack://Grommet/./src/js/utils/index.js","webpack://Grommet/./src/js/default-props.js","webpack://Grommet/./src/js/components/Box/index.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://Grommet/./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://Grommet/./node_modules/recompose/dist/Recompose.esm.js","webpack://Grommet/./src/js/components/hocs.js","webpack://Grommet/./src/js/components/Keyboard/index.js","webpack://Grommet/./node_modules/grommet-icons/StyledIcon.js","webpack://Grommet/./src/js/components/Button/index.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://Grommet/./src/js/components/Text/index.js","webpack://Grommet/./src/js/contexts/index.js","webpack://Grommet/./src/js/components/TableCell/index.js","webpack://Grommet/./src/js/utils/colors.js","webpack://Grommet/./src/js/components/Table/StyledTable.js","webpack://Grommet/./node_modules/prop-types/index.js","webpack://Grommet/./src/js/utils/object.js","webpack://Grommet/./src/js/components/Heading/index.js","webpack://Grommet/./src/js/components/Anchor/index.js","webpack://Grommet/./src/js/components/TextInput/index.js","webpack://Grommet/./src/js/components/InfiniteScroll/index.js","webpack://Grommet/./src/js/components/DataTable/StyledDataTable.js","webpack://Grommet/./src/js/components/TableRow/index.js","webpack://Grommet/./node_modules/fbjs/lib/shallowEqual.js","webpack://Grommet/./src/js/components/Table/TableContext.js","webpack://Grommet/./src/js/components/Drop/index.js","webpack://Grommet/./node_modules/symbol-observable/es/index.js","webpack://Grommet/./src/js/utils/mixins.js","webpack://Grommet/./src/js/components/Stack/index.js","webpack://Grommet/external \"ReactDOM\"","webpack://Grommet/./src/js/components/Table/index.js","webpack://Grommet/./src/js/components/TableBody/index.js","webpack://Grommet/./src/js/components/TableHeader/index.js","webpack://Grommet/./src/js/components/TableFooter/index.js","webpack://Grommet/./src/js/components/DataTable/Cell.js","webpack://Grommet/./src/js/components/DataTable/buildState.js","webpack://Grommet/./src/js/components/DropButton/index.js","webpack://Grommet/./src/js/components/Form/FormContext.js","webpack://Grommet/./node_modules/change-emitter/lib/index.js","webpack://Grommet/./src/js/utils/background.js","webpack://Grommet/./src/js/utils/styles.js","webpack://Grommet/./node_modules/react-desc/lib/index.js","webpack://Grommet/./node_modules/react-desc/lib/PropTypes.js","webpack://Grommet/./node_modules/react-desc/lib/descToJSON.js","webpack://Grommet/./src/js/themes/base.js","webpack://Grommet/./node_modules/grommet-icons/themes/base.js","webpack://Grommet/./src/js/components/Accordion/AccordionContext.js","webpack://Grommet/./src/js/components/Collapsible/index.js","webpack://Grommet/./src/js/components/Chart/utils.js","webpack://Grommet/./src/js/components/CheckBox/index.js","webpack://Grommet/./src/js/components/Clock/StyledClock.js","webpack://Grommet/./src/js/components/FocusedContainer.js","webpack://Grommet/./src/js/components/DataTable/ExpanderCell.js","webpack://Grommet/./src/js/themes/index.js","webpack://Grommet/./src/js/components/Image/index.js","webpack://Grommet/./src/js/components/Layer/index.js","webpack://Grommet/./src/js/components/Layer/StyledLayer.js","webpack://Grommet/./src/js/components/Paragraph/index.js","webpack://Grommet/./src/js/components/Menu/index.js","webpack://Grommet/./src/js/components/Meter/index.js","webpack://Grommet/./src/js/components/Meter/StyledMeter.js","webpack://Grommet/./src/js/components/Meter/utils.js","webpack://Grommet/./src/js/components/RadioButton/index.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/construct.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js","webpack://Grommet/./node_modules/polished/dist/polished.es.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://Grommet/./node_modules/recompose/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://Grommet/./node_modules/symbol-observable/es/ponyfill.js","webpack://Grommet/./node_modules/unquote/index.js","webpack://Grommet/./src/js/index.js","webpack://Grommet/./src/js/components/index.js","webpack://Grommet/./src/js/components/Accordion/index.js","webpack://Grommet/./src/js/components/Accordion/Accordion.js","webpack://Grommet/./src/js/components/Box/Box.js","webpack://Grommet/./src/js/utils/border.js","webpack://Grommet/./src/js/utils/debounce.js","webpack://Grommet/./src/js/utils/DOM.js","webpack://Grommet/./src/js/utils/graphics.js","webpack://Grommet/./src/js/utils/prop-types.js","webpack://Grommet/./node_modules/react-desc/lib/describe.js","webpack://Grommet/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://Grommet/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://Grommet/./node_modules/react-desc/lib/descToMarkdown.js","webpack://Grommet/./node_modules/react-desc/lib/descToTypescript.js","webpack://Grommet/./src/js/utils/responsive.js","webpack://Grommet/./src/js/utils/router.js","webpack://Grommet/./src/js/utils/throttle.js","webpack://Grommet/./src/js/utils/themeDocUtils.js","webpack://Grommet/./node_modules/grommet-icons/icons/Actions.js","webpack://Grommet/./node_modules/grommet-icons/default-props.js","webpack://Grommet/./node_modules/grommet-icons/utils.js","webpack://Grommet/./node_modules/grommet-icons/themes/index.js","webpack://Grommet/./node_modules/grommet-icons/icons/ClosedCaption.js","webpack://Grommet/./node_modules/grommet-icons/icons/Expand.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormDown.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormNext.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormPrevious.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormUp.js","webpack://Grommet/./node_modules/grommet-icons/icons/Next.js","webpack://Grommet/./node_modules/grommet-icons/icons/Pause.js","webpack://Grommet/./node_modules/grommet-icons/icons/Play.js","webpack://Grommet/./node_modules/grommet-icons/icons/Previous.js","webpack://Grommet/./node_modules/grommet-icons/icons/Subtract.js","webpack://Grommet/./node_modules/grommet-icons/icons/Volume.js","webpack://Grommet/./node_modules/grommet-icons/icons/VolumeLow.js","webpack://Grommet/./src/js/components/Keyboard/Keyboard.js","webpack://Grommet/./src/js/components/Box/StyledBox.js","webpack://Grommet/./src/js/components/AccordionPanel/index.js","webpack://Grommet/./src/js/components/AccordionPanel/AccordionPanel.js","webpack://Grommet/(webpack)/buildin/global.js","webpack://Grommet/(webpack)/buildin/harmony-module.js","webpack://Grommet/./src/js/components/Button/Button.js","webpack://Grommet/./src/js/components/Button/StyledButton.js","webpack://Grommet/./src/js/components/Collapsible/Collapsible.js","webpack://Grommet/./src/js/components/Heading/Heading.js","webpack://Grommet/./src/js/components/Heading/StyledHeading.js","webpack://Grommet/./node_modules/recompose/getDisplayName.js","webpack://Grommet/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://Grommet/./node_modules/react-is/index.js","webpack://Grommet/./node_modules/react-is/cjs/react-is.production.min.js","webpack://Grommet/./src/js/contexts/AnnounceContext/index.js","webpack://Grommet/./src/js/contexts/AnnounceContext/AnnounceContext.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/index.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/ResponsiveContext.js","webpack://Grommet/./src/js/contexts/ThemeContext/index.js","webpack://Grommet/./src/js/contexts/ThemeContext/ThemeContext.js","webpack://Grommet/./src/js/components/Anchor/Anchor.js","webpack://Grommet/./src/js/components/Anchor/StyledAnchor.js","webpack://Grommet/./src/js/components/Calendar/index.js","webpack://Grommet/./src/js/components/Calendar/Calendar.js","webpack://Grommet/./src/js/components/Calendar/StyledCalendar.js","webpack://Grommet/./src/js/components/Calendar/utils.js","webpack://Grommet/./src/js/components/Carousel/index.js","webpack://Grommet/./src/js/components/Carousel/Carousel.js","webpack://Grommet/./src/js/components/Stack/Stack.js","webpack://Grommet/./src/js/components/Stack/StyledStack.js","webpack://Grommet/./src/js/components/Chart/index.js","webpack://Grommet/./src/js/components/Chart/Chart.js","webpack://Grommet/./src/js/components/Chart/StyledChart.js","webpack://Grommet/./src/js/components/Chart/calcs.js","webpack://Grommet/./src/js/components/CheckBox/CheckBox.js","webpack://Grommet/./src/js/components/CheckBox/StyledCheckBox.js","webpack://Grommet/./src/js/components/Clock/index.js","webpack://Grommet/./src/js/components/Clock/Clock.js","webpack://Grommet/./src/js/components/Clock/Analog.js","webpack://Grommet/./src/js/components/Clock/Digital.js","webpack://Grommet/./src/js/components/DataTable/index.js","webpack://Grommet/./src/js/components/DataTable/DataTable.js","webpack://Grommet/./src/js/components/DataTable/Header.js","webpack://Grommet/./src/js/components/TableCell/TableCell.js","webpack://Grommet/./src/js/components/Text/Text.js","webpack://Grommet/./src/js/components/Text/StyledText.js","webpack://Grommet/./src/js/components/DataTable/Resizer.js","webpack://Grommet/./src/js/components/DataTable/Searcher.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormSearch.js","webpack://Grommet/./src/js/components/TextInput/TextInput.js","webpack://Grommet/./src/js/components/Drop/Drop.js","webpack://Grommet/./src/js/components/Drop/DropContainer.js","webpack://Grommet/./src/js/components/Drop/StyledDrop.js","webpack://Grommet/./src/js/components/InfiniteScroll/InfiniteScroll.js","webpack://Grommet/./src/js/components/TextInput/StyledTextInput.js","webpack://Grommet/./src/js/components/TableRow/TableRow.js","webpack://Grommet/./src/js/components/Table/Table.js","webpack://Grommet/./src/js/components/TableBody/TableBody.js","webpack://Grommet/./src/js/components/TableHeader/TableHeader.js","webpack://Grommet/./src/js/components/TableFooter/TableFooter.js","webpack://Grommet/./src/js/components/DataTable/Footer.js","webpack://Grommet/./src/js/components/DataTable/Body.js","webpack://Grommet/./src/js/components/DataTable/GroupedBody.js","webpack://Grommet/./src/js/components/Diagram/index.js","webpack://Grommet/./src/js/components/Diagram/Diagram.js","webpack://Grommet/./src/js/components/Diagram/StyledDiagram.js","webpack://Grommet/./src/js/components/Distribution/index.js","webpack://Grommet/./src/js/components/Distribution/Distribution.js","webpack://Grommet/./src/js/components/DropButton/DropButton.js","webpack://Grommet/./src/js/components/Footer/index.js","webpack://Grommet/./src/js/components/Footer/Footer.js","webpack://Grommet/./src/js/components/Form/index.js","webpack://Grommet/./src/js/components/Form/Form.js","webpack://Grommet/./src/js/components/FormField/index.js","webpack://Grommet/./src/js/components/FormField/FormField.js","webpack://Grommet/./src/js/components/Grid/index.js","webpack://Grommet/./src/js/components/Grid/Grid.js","webpack://Grommet/./src/js/components/Grid/StyledGrid.js","webpack://Grommet/./src/js/components/Grommet/index.js","webpack://Grommet/./src/js/components/Grommet/Grommet.js","webpack://Grommet/./src/js/themes/grommet.js","webpack://Grommet/./src/js/themes/dark.js","webpack://Grommet/./src/js/components/Grommet/StyledGrommet.js","webpack://Grommet/./src/js/components/Header/index.js","webpack://Grommet/./src/js/components/Header/Header.js","webpack://Grommet/./src/js/components/Image/Image.js","webpack://Grommet/./src/js/components/Image/StyledImage.js","webpack://Grommet/./src/js/components/Layer/Layer.js","webpack://Grommet/./src/js/components/Layer/LayerContainer.js","webpack://Grommet/./src/js/components/List/index.js","webpack://Grommet/./src/js/components/List/List.js","webpack://Grommet/./src/js/components/Main/index.js","webpack://Grommet/./src/js/components/Main/Main.js","webpack://Grommet/./src/js/components/Markdown/index.js","webpack://Grommet/./src/js/components/Markdown/Markdown.js","webpack://Grommet/./node_modules/markdown-to-jsx/dist/esm.js","webpack://Grommet/./src/js/components/Paragraph/Paragraph.js","webpack://Grommet/./src/js/components/Paragraph/StyledParagraph.js","webpack://Grommet/./src/js/components/MaskedInput/index.js","webpack://Grommet/./src/js/components/MaskedInput/MaskedInput.js","webpack://Grommet/./src/js/components/MaskedInput/StyledMaskedInput.js","webpack://Grommet/./src/js/components/Menu/Menu.js","webpack://Grommet/./src/js/components/Meter/Meter.js","webpack://Grommet/./src/js/components/Meter/Bar.js","webpack://Grommet/./src/js/components/Meter/Circle.js","webpack://Grommet/./src/js/components/Nav/index.js","webpack://Grommet/./src/js/components/Nav/Nav.js","webpack://Grommet/./src/js/components/RadioButton/RadioButton.js","webpack://Grommet/./src/js/components/RadioButton/StyledRadioButton.js","webpack://Grommet/./src/js/components/RadioButtonGroup/index.js","webpack://Grommet/./src/js/components/RadioButtonGroup/RadioButtonGroup.js","webpack://Grommet/./src/js/components/RangeInput/index.js","webpack://Grommet/./src/js/components/RangeInput/RangeInput.js","webpack://Grommet/./src/js/components/RangeInput/StyledRangeInput.js","webpack://Grommet/./src/js/components/RangeSelector/index.js","webpack://Grommet/./src/js/components/RangeSelector/RangeSelector.js","webpack://Grommet/./src/js/components/RangeSelector/EdgeControl.js","webpack://Grommet/./src/js/components/RoutedAnchor/index.js","webpack://Grommet/./src/js/components/RoutedAnchor/RoutedAnchor.js","webpack://Grommet/./src/js/components/RoutedButton/index.js","webpack://Grommet/./src/js/components/RoutedButton/RoutedButton.js","webpack://Grommet/./src/js/components/Select/index.js","webpack://Grommet/./src/js/components/Select/Select.js","webpack://Grommet/./src/js/components/Select/SelectContainer.js","webpack://Grommet/./src/js/components/Select/SelectOption.js","webpack://Grommet/./src/js/components/Select/StyledSelect.js","webpack://Grommet/./src/js/components/SkipLink/index.js","webpack://Grommet/./src/js/components/SkipLink/SkipLink.js","webpack://Grommet/./src/js/components/SkipLinks/index.js","webpack://Grommet/./src/js/components/SkipLinks/SkipLinks.js","webpack://Grommet/./src/js/components/SkipLinkTarget/index.js","webpack://Grommet/./src/js/components/SkipLinkTarget/SkipLinkTarget.js","webpack://Grommet/./src/js/components/Tab/index.js","webpack://Grommet/./src/js/components/Tab/Tab.js","webpack://Grommet/./src/js/components/Tab/StyledTab.js","webpack://Grommet/./src/js/components/Tabs/index.js","webpack://Grommet/./src/js/components/Tabs/Tabs.js","webpack://Grommet/./src/js/components/Tabs/StyledTabs.js","webpack://Grommet/./src/js/components/TextArea/index.js","webpack://Grommet/./src/js/components/TextArea/TextArea.js","webpack://Grommet/./src/js/components/TextArea/StyledTextArea.js","webpack://Grommet/./src/js/components/Video/index.js","webpack://Grommet/./src/js/components/Video/Video.js","webpack://Grommet/./src/js/components/Video/StyledVideo.js","webpack://Grommet/./src/js/components/WorldMap/index.js","webpack://Grommet/./src/js/components/WorldMap/WorldMap.js","webpack://Grommet/./src/js/components/WorldMap/StyledWorldMap.js","webpack://Grommet/./node_modules/grommet-styles/es6/utils/colors.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/color.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/size.js","webpack://Grommet/./node_modules/grommet-styles/es6/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","React","styled","defaultProps","theme","base","deepMerge","_extends","assign","target","arguments","length","source","apply","this","componentWillMount","state","constructor","getDerivedStateFromProps","props","setState","componentWillReceiveProps","nextProps","prevState","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","polyfill","Component","isReactComponent","Error","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","componentName","displayName","newApiName","componentDidUpdate","maybeSnapshot","snapshot","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","__suppressDeprecationWarning","setStatic","BaseComponent","setDisplayName","getDisplayName","Component$$1","wrapDisplayName","hocName","propsMapper","factory","input","pick","obj","result","shouldMapOrKeys","shouldMap","WithPropsOnChange","_Component","_this","_len","args","Array","_key","concat","computedProps","render","mapValues","func","handlers","WithHandlers","_args","createHandler","handler","DefaultProps","ownerProps","rest","oldName","newName","_extends2","nameMap","_","reduce","val","propName","stateName","stateUpdaterName","initialState","WithState","stateValue","updateStateValue","updateFn","callback","_ref","stateUpdaters","WithStateHandlers","mayBeEvent","_len2","_key2","persist","noop","dispatchName","reducer","WithReducer","initializeStateValue","dispatch","action","_proto","undefined","type","identity","test","left","right","leftFactory","rightFactory","Nothing","renderNothing","ShouldUpdate","shouldComponentUpdate","hoc","propKeys","onlyUpdateForPropTypes","propTypes","childContextTypes","getChildContext","WithContext","contextTypes","GetContext","context","spec","Lifecycle","forEach","hook","isClassComponent","Boolean","baseComponent","_class","_temp","ToClass","createElement","toRenderProps","children","RenderPropsComponent","renderPropName","baseFactory","createFactory","renderPropsFactory","_renderPropsFactory","setPropTypes","compose","funcs","a","b","arg","Sink","Components","factories","map","Nest","reduceRight","child","higherOrderComponent","blacklist","NewComponent","_config","fromESObservable","toESObservable","configureObservable","config","observable","stream","config$$1","propsToVdom","ComponentFromStream","_config$fromESObserva","vdom","propsEmitter","props$","subscribe","observer","unsubscribe","listen","next","complete","vdom$","_this2","subscription","emit","componentWillUnmount","componentFromStream","identity$1","componentFromStream$$1","transform","childProps","mapPropsStream","emitter","createEventHandler","focusWithMouse","WrappedComponent","FocusableComponent","wrappedRef","window","addEventListener","handleActiveMouse","wrapperNode","current","setFocus","removeEventListener","clearTimeout","focusTimer","mouseTimer","mouseActive","setTimeout","focus","createRef","withFocusRef","nextWrappedRef","onFocus","onBlur","ref","event","resetFocus","ForwardRef","forwardRef","ForwardRefComponent","AnnounceContext","Consumer","announce","StyledIcon","_react","_styledComponents","newObj","desc","getOwnPropertyDescriptor","set","_interopRequireWildcard","_grommetStyles","_defaultProps","colorCss","css","colorStyle","color","global","colors","icon","IconInner","a11yTitle","size","withConfig","componentId","_ref2","_ref2$size","_ref3","_ref4","extend","setPrototypeOf","_inheritsLoose","subClass","superClass","__proto__","normalizeColor","required","colorSpec","dark","light","hexExp","rgbExp","rgbaExp","hslExp","getRGBArray","match","v","parseInt","parseHexToRGB","red","green","blue","alpha","splice","parseFloat","h","g","hue2rgb","q","inT","Math","round","hslToRGB","opacity","canExtractRGBArray","SIZE_MAP","sizeStyle","StyledTableCell","td","verticalAlign","align","background","backgroundStyle","border","borderStyle","responsive","pad","edgeStyle","box","responsiveBreakpoint","tableContextTheme","StyledTableDataCaption","caption","edgeSize","xxsmall","StyledTableRow","tr","StyledTableBody","tbody","StyledTableHeader","thead","StyledTableFooter","tfoot","StyledTable","table","genericStyles","isObject","item","isArray","freeze","sources","output","StyledDataTable","Table","hoverStyle","row","hover","StyledDataTableRow","TableRow","onClick","onClickRow","active","StyledDataTableBody","TableBody","focusStyle","StyledDataTableHeader","TableHeader","StyledDataTableFooter","TableFooter","is","x","y","objA","objB","keysA","keysB","TableContext","createContext","root","self","parseMetricToNum","fontAsString","lineHeight","font","ceil","breakpoint","content","findAllByType","component","matches","push","availableAt","url","badge","label","toLowerCase","ReactDOM","normalizeProp","rowProp","prop","Cell","column","datum","index","primaryProperty","scope","datumValue","textProps","dataTable","primary","Text","TableCell","CellWrapper","withTheme","parts","split","slice","join","columns","primaryKey","search","data","filters","onSearch","sort","regexps","filter","RegExp","replace","some","ascending","before","after","d1","d2","sumReducer","accumulated","reducers","max","min","sum","aggregateColumn","aggregate","aggregateValues","footer","groupBy","groupMap","groupByProperty","groupValue","group","groups","expanded","expand","FormContext","createChangeEmitter","currentListeners","nextListeners","ensureCanMutateNextListeners","listener","isSubscribed","listeners","normalizeBackground","evalStyle","backgroundArg","backgroundColor","colorIsDark","textColorArg","textColor","text","styles","image","repeat","position","getRGBA","medium","lastIndexOf","backgroundDark","activeStyle","selectedStyle","selected","hoverIndicator","baseStyle","family","height","weight","plain","controlBorderStyle","control","width","radius","kind","breakpoints","breakpointStyle","horizontal","vertical","top","bottom","inputStyle","padding","focusIndicator","overflowProp","placeholderColor","placeholder","placeholderStyle","ALIGN_SELF_MAP","center","end","start","stretch","alignSelf","gridArea","margin","componentStyle","disabled","_PropTypes2","_interopRequireDefault","_describe2","default","PropTypes","describe","addPropTypeDocumentationField","fieldName","reactDesc","documentedPropType","defaultValue","description","deprecated","format","createPropType","propTypeObj","configurable","createPropTypeWithArgs","custom","definePropType","definePropTypeWithArgs","documentation","propType","propTypeAsJson","properties","arrayFormat","array","prefix","propTypeFormat","shapeFormat","shape","valueFormat","accentColors","statusColors","critical","error","warning","ok","unknown","focusColor","rgba","black","brand","white","colorArray","generate","baseSpacing","scale","baseFontSize","fontScale","fontSizing","factor","maxWidth","iconBase","animation","duration","jiggle","borderSize","xsmall","small","large","xlarge","none","hair","full","deviceBreakpoints","phone","tablet","computer","debounceDelay","drop","shadowSize","zIndex","elevation","strong","weak","spacing","xxlarge","accordion","side","heading","level","icons","collapse","FormUp","FormDown","anchor","textDecoration","fontWeight","button","borderWidth","calendar","fontSize","daySize","slideDuration","previous","Previous","Next","FormPrevious","FormNext","carousel","Subtract","chart","checkBox","check","thickness","toggle","knob","clock","analog","hour","minute","second","huge","digital","collapsible","minSpeed","baseline","groupHeader","groupEnd","header","contract","descending","resize","diagram","line","formField","help","grommet","1","2","3","4","5","6","layer","container","overlay","list","maskedInput","menu","down","meter","paragraph","radioButton","gap","rangeInput","track","thumb","rangeSelector","invert","select","options","step","tab","tabs","panel","body","textArea","textInput","video","captions","closedCaption","ClosedCaption","configure","Actions","fullScreen","Expand","pause","Pause","play","Play","reduceVolume","VolumeLow","volume","Volume","scrubber","worldMap","continent","place","deepFreeze","AccordionContext","values","bounds","valuesX","valuesY","every","boundsX","boundsY","StyledHour","StyledMinute","StyledSecond","StyledAnalog","svg","StyledDigitalDigit","div","previousUp","keyframes","previousDown","StyledDigitalPrevious","direction","nextUp","nextDown","StyledDigitalNext","isNotAncestorOf","parent","contains","hidden","restrictScroll","useState","bodyOverflowStyle","setBodyOverflowStyle","useRef","useEffect","timer","getBodyChildElements","makeNodeUnfocusable","document","style","overflow","makeNodeFocusable","aria-hidden","ExpanderCell","onToggle","ExpandIcon","normalizedThemeProps","Box","Button","fill","ExpanderCellWrapper","hiddenPositionStyle","StyledLayer","StyledOverlay","getMargin","axis","marginValue","marginApplied","MARGINS","KEYFRAMES","true","false","getAnimationStyle","animate","animationDuration","POSITIONS","desktopContainerStyle","modal","responsiveContainerStyle","StyledContainer","roundStyle","StyledMeter","stroke","strokeOpacity","neutralExp","valuesLength","neutralColors","k","_getPrototypeOf","getPrototypeOf","_setPrototypeOf","Parent","Class","Reflect","construct","sham","Proxy","Date","toString","e","isNativeReflectConstruct","instance","Function","_cache","Map","fn","TypeError","has","Wrapper","writable","_taggedTemplateLiteralLoose","strings","raw","last","defaultMathSymbols","symbols","postfix","symbol","f","factorial","NaN","Infinity","notation","precedence","rightToLeft","argCount","regSymbol","infix","pow","of","sqrt","_Error","PolishedError","code","ReferenceError","_assertThisInitialized","unitRegExp","exec","operators","op","pop","calculate","expression","additionalSymbols","symbolMap","mergeSymbolMaps","pattern","lastIndex","afterValue","token","bad","notNumber","notNewValue","notAfterValue","curr","prev","reverseString","str","reverse","math","formula","reversedFormula","formulaMatch","unit","capitalizeString","string","charAt","toUpperCase","positionMap","generateProperty","splitProperty","acc","joinedProperty","directionalProperty","firstValue","_values$","secondValue","_values$2","thirdValue","_values$3","valuesWithDefaults","generateStyles","endsWith","suffix","substr","cssRegex","stripUnit","unitReturn","matchedValue","pxtoFactory","to","pxval","newPxval","newBase","em","cssRegex$1","getValueAndUnit","console","warn","ratioNames","minorSecond","majorSecond","minorThird","majorThird","perfectFourth","augFourth","perfectFifth","minorSixth","goldenSection","majorSixth","minorSeventh","majorSeventh","octave","majorTenth","majorEleventh","majorTwelfth","doubleOctave","modularScale","steps","ratio","realBase","realRatio","rem","between","fromSize","toSize","minScreen","maxScreen","_stripUnit","unitlessFromSize","fromSizeUnit","_stripUnit2","unitlessToSize","toSizeUnit","_stripUnit3","unitlessMinScreen","minScreenUnit","_stripUnit4","unitlessMaxScreen","maxScreenUnit","slope","toFixed","clearFix","clear","display","cover","offset","ellipsis","textOverflow","whiteSpace","wordWrap","fluidRange","cssProp","mediaQueries","fallbacks","_iterator","_isArray","_i","iterator","_extends3","done","dataURIRegex","formatHintMap","woff","woff2","ttf","otf","eot","svgz","generateFormatHint","formatHint","generateFileReferences","fontFilePath","fileFormats","isDataURI","generateSources","localFonts","fontReferences","generateLocalReferences","fontFace","fontFamily","fontStretch","fontStyle","fontVariant","_ref$fileFormats","_ref$formatHint","unicodeRange","fontDisplay","fontVariationSettings","fontFeatureSettings","fontFaceDeclaration","src","JSON","parse","stringify","hideText","textIndent","hideVisually","clip","clipPath","hiDPI","constructGradientValue","literals","template","substitutions","definedValues","substitute","trim","_templateObject","linearGradient","colorStops","fallback","_ref$toDirection","toDirection","backgroundImage","normalize","html","textSizeAdjust","h1","hr","boxSizing","pre","borderBottom","sub","sup","img","textTransform","WebkitAppearance","outline","fieldset","legend","progress","textarea","outlineOffset","details","summary","_templateObject$1","radialGradient","_ref$extent","extent","_ref$position","_ref$shape","retinaImage","filename","backgroundSize","extension","retinaFilename","retinaSuffix","ext","rFilename","functionsMap","easeInBack","easeInCirc","easeInCubic","easeInExpo","easeInQuad","easeInQuart","easeInQuint","easeInSine","easeOutBack","easeOutCubic","easeOutCirc","easeOutExpo","easeOutQuad","easeOutQuart","easeOutQuint","easeOutSine","easeInOutBack","easeInOutCirc","easeInOutCubic","easeInOutExpo","easeInOutQuad","easeInOutQuart","easeInOutQuint","easeInOutSine","timingFunctions","timingFunction","getBorderWidth","pointingDirection","fullWidth","halfWidth","fullHeight","halfHeight","getBorderColor","foregroundColor","triangle","_ref$backgroundColor","widthAndUnit","heightAndUnit","isNaN","borderColor","wrap","overflowWrap","wordBreak","colorToInt","convertToInt","hslToRgb","hue","saturation","lightness","convert","huePrime","chroma","abs","secondComponent","lightnessModification","namedColorMap","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellow","yellowgreen","hexRegex","hexRgbaRegex","reducedHexRegex","reducedRgbaHexRegex","rgbRegex","rgbaRegex","hslRegex","hslaRegex","parseToRgb","normalizedColor","normalizedColorName","nameToHex","_alpha","rgbMatched","rgbaMatched","hslMatched","rgbColorString","hslRgbMatched","hslaMatched","_rgbColorString","_hslRgbMatched","parseToHsl","delta","rgbToHsl","reduceHexValue","numberToHex","hex","colorToHex","convertToHex","hslToHex","hsl","hsla","rgb","fourthValue","rgbValue","isRgb","isRgba","isHsl","isHsla","toColorString","curry","curried","combined","adjustHue","degree","hslColor","curriedAdjustHue","complement","guard","lowerBoundary","upperBoundary","darken","amount","curriedDarken","desaturate","curriedDesaturate","getLuminance","rgbColor","_Object$keys$map","channel","getContrast","color1","color2","luminance1","luminance2","grayscale","hslToColorString","lighten","curriedLighten","meetsContrastGuidelines","contrastRatio","AA","AALarge","AAA","AAALarge","mix","otherColor","parsedColor1","parsedColor2","alphaDelta","weight1","weight2","floor","curriedMix","opacify","parsedColor","curriedOpacify","readableColor","lightReturnColor","darkReturnColor","rgbToColorString","saturate","curriedSaturate","setHue","curriedSetHue","setLightness","curriedSetLightness","setSaturation","curriedSetSaturation","shade","percentage","curriedShade","tint","curriedTint","transparentize","curriedTransparentize","multiMode","backgroundImages","backgrounds","sideMap","sideKeyword","unshift","borderRadius","uppercaseSide","generateSelectors","statefulSelectors","states","stateMap","selectors","buttons","positionMap$1","positionKeyword","stateMap$1","template$1","textInputs","transitions","transition","REACT_STATICS","getDefaultProps","mixins","KNOWN_STATICS","caller","callee","arity","getOwnPropertyNames","getOwnPropertySymbols","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","inheritedComponent","descriptor","symbolObservablePonyfill","reg","AccordionWrapper","activeIndex","messages","tabContents","multiple","onActive","activeIndexes","setActiveIndexes","stateActiveIndex","setStateActiveIndex","derivedActiveIndexes","role","Children","toArray","Provider","onPanelChange","nextActiveIndexes","nextActiveIndex","firstIndex","tag","as","tabIndex","useContext","ThemeContext","focusable","useMemo","clickProps","adjustedTabIndex","contents","StyledBoxGap","directionProp","darkChanged","backgroundIsDark","StyledBox","aria-label","elevationProp","fillProp","wrapProp","widthProp","heightProp","Keyboard","onEnter","BoxWrapper","responsiveValue","cb","timeout","filterByFocusable","elements","element","currentTag","tagName","isValidTag","childNodes","getAttribute","hasAttribute","parentNode","getBoundingClientRect","rect","scrollWidth","scrollHeight","getElementsByTagName","excludeMatch","node","appendChild","scrollX","scrollY","scrollTo","setTabIndex","setAttribute","copyAttribute","deleteAttribute","attribute","removeAttribute","unsetTabIndex","saveTabIndex","restoreTabIndex","deleteTabIndex","deleteTabIndexCopy","findVisibleParent","offsetParent","parentElement","polarToCartesian","centerX","centerY","angleInDegrees","angleInRadians","PI","cos","sin","startAngle","endAngle","normalizedEndAngle","arcSweep","anglePer","a11yTitlePropType","backgroundPropType","oneOfType","oneOf","bool","colorPropType","MARGIN_SIZES","marginProp","genericProps","hoverIndicatorPropType","number","ComponentInstance","DocumentedComponent","addDocumentationProp","usage","intrinsicElement","toJSON","_descToJSON2","toTypescript","_descToTypescript2","toMarkdown","_descToMarkdown2","propTypesValue","convertPropType","isRequired","_propTypes2","convertArray","convertShape","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","location","propFullName","secret","err","getShim","ReactPropTypes","any","arrayOf","elementType","instanceOf","objectOf","exact","checkPropTypes","_typeof","availableAtStr","currentAvailable","parseAvailableAt","getAvailableAt","getUsage","_ref5","_ref5$properties","_ref6","getDefaultValue","_ref7","getIntrinsicElement","_descToJSON","propTypeAsTypescript","joinWith","windowWidth","first","ROUTER_PROPS","path","method","threshhold","deferTimer","now","disabledStyle","iconColor","_StyledIcon","viewBox","strokeWidth","extendDefaultTheme","_utils","_themes","_default","_base","points","KEYS","8","9","13","27","32","37","38","39","40","188","16","KeyboardWrapper","onKeyDown","restProps","onKeyDownHandler","useCallback","keyCode","which","callbackName","cloneElement","only","ALIGN_MAP","alignStyle","ALIGN_CONTENT_MAP","around","alignContentStyle","alignContent","BASIS_MAP","auto","basisStyle","basis","elevationStyle","FLEX_MAP","grow","shrink","flexStyle","flex","JUSTIFY_MAP","evenly","justifyStyle","justify","WRAP_MAP","wrapStyle","ROUND_MAP","SLIDE_SIZES","PULSE_SIZES","JIGGLE_SIZES","ZOOM_SIZES","animationBounds","deg","normalizeTiming","time","defaultTiming","animationObjectStyle","animationTransition","delay","animationObjectInitialStyle","animationAncilaries","animationStyle","animationItemStyle","interactiveStyle","getHoverIndicatorStyle","getSize","heightObjectStyle","heightStyle","widthObjectStyle","widthStyle","directionStyle","responsiveSize","corner","overflowStyle","AccordionPanel","onMouseOut","onMouseOver","setHover","onHandleMouseOver","onHandleMouseOut","onHandleFocus","onHandleBlur","panelContext","AccordionIcon","aria-selected","aria-expanded","Heading","Collapsible","open","AccordionPanelWrapper","withForwardRef","originalModule","webpackPolyfill","href","buttonIcon","domTag","StyledButton","colorValue","hasIcon","hasLabel","fillContainer","count","ButtonWrapper","getHoverColor","plainStyle","basicStyle","primaryStyle","animatedBoxProperty","AnimatedBox","collapsibleDirection","dimension","dimensionSize","shouldAnimate","animationTimeout","speed","requestAnimationFrame","CollapsibleWrapper","StyledHeading","colorProp","HeadingWrapper","TEXT_ALIGN_MAP","textAlignStyle","textAlign","headingTheme","levelStyle","responsiveData","truncate","reactIs","contextType","getDerivedStateFromError","MEMO_STATICS","compare","TYPE_STATICS","getStatics","isMemo","targetStatics","sourceStatics","for","w","u","$$typeof","z","typeOf","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","isValidElementType","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","message","announcer","querySelector","insertBefore","firstChild","createAnnouncer","innerHTML","ResponsiveContext","Extend","Anchor","coloredIcon","StyledAnchor","AnchorWrapper","headingPadMap","buildStartEnd","reference","firstDayOfWeek","setDate","getDay","subtractDays","addDays","Calendar","targetStartEnd","slide","onReference","betweenDates","nextStartEnd","getTime","weeks","daysApart","clearSlideStateLater","toISOString","day","focused","getMonth","setReference","dateString","onSelect","range","updateDateRange","dates","date","dayRefs","previousMonth","nextMonth","locale","PreviousIcon","NextIcon","toLocaleDateString","month","year","days","StyledDayContainer","sizeProp","StyledDay","otherMonth","weekday","StyledWeek","prevReference","normalizedReference","buildState","activeElement","daysOfWeek","showAdjacentDays","endOfMonth","subtractMonths","startOfMonth","addMonths","inRange","selectedState","withinDates","dayDisabled","toDateString","onClickDay","isSelected","getDate","StyledCalendar","onUp","preventDefault","onDown","onLeft","onRight","onPreviousMonth","onNextMonth","previousInBound","nextInBound","renderCalendarHeader","renderDaysOfWeek","StyledWeeksContainer","StyledWeeks","CalendarWrapper","translateYFrom","translateYTo","slideTransition","slideStyle","daySizeStyle","hourDelta","getHours","setHours","months","years","setFullYear","getFullYear","targetMonth","setMonth","sameDay","date1","date2","sameDayOrAfter","sameDayOrBefore","from","selectedDate","previousSelectedDate","priorDates","previousDate","nextDate","priorDate","Carousel","clearInterval","setInterval","priorActiveIndex","initialChild","componentDidMount","controls","showArrows","showSelectors","CurrentIcon","wrappedChildren","nextIconDisabled","previousIconDisabled","Stack","guidingChild","CarouselWrapper","withFocus","StackWrapper","interactiveChild","toChildIndex","guidingIndex","interactiveIndex","styledChildren","childIndex","interactive","isGuidingIndex","guiding","StyledStackLayer","buildStyledChildren","StyledStack","stack","styleMap","defaultSize","defaultValues","Chart","propsBounds","id","onHover","propsSize","propsValues","setValues","setBounds","containerSize","setContainerSize","setSize","setScale","setStrokeWidth","containerRef","nextValues","normalizeValues","nextBounds","normalizeBounds","nextStrokeWidth","gapWidth","autoWidth","sizeWidth","sizeHeight","nextScale","containerNode","onResize","hoverProps","useGradient","valueArg","valueOnHover","valueRest","onMouseLeave","renderArea","cx","cy","colorName","viewBounds","defs","gradientRect","drawing","strokeLinecap","strokeLinejoin","gradientId","maskId","x1","y1","x2","y2","c1","c2","gradientColor","stopColor","mask","StyledChart","preserveAspectRatio","ChartWrapper","coarseness","calcValues","interval","Number","toPrecision","dimensions","yAxis","yStepInterval","xAxis","xStepInterval","stopLabelClick","stopPropagation","CheckBox","checked","onChange","indeterminate","themeableProps","CheckedIcon","IndeterminateIcon","visual","StyledCheckBoxToggle","StyledCheckBoxKnob","StyledCheckBoxBox","StyledCheckBoxIcon","checkBoxNode","StyledCheckBox","StyledCheckBoxInput","removeUndefined","normalizedLabel","StyledCheckBoxContainer","htmlFor","CheckBoxWrapper","span","TIME_REGEXP","DURATION_REGEXP","Clock","hourLimit","nextElements","hours","hours12","minutes","seconds","getMinutes","getSeconds","parseTime","run","precision","increment","Analog","Digital","ClockWrapper","hourAngle","minuteAngle","secondAngle","secondHand","minuteHand","secondSize","minuteSize","hourSize","getClockDimensions","halfSize","transformOrigin","version","AnalogWrapper","Digit","sep","tens","ones","contexts","DataTableWrapper","onMore","resizeable","rowProps","sortable","normalizePrimaryProperty","showFooter","filtering","setFiltering","initializeFilters","setFilters","setSort","adjustedData","filterAndSortData","footerValues","buildFooterValues","buildGroups","buildGroupState","groupState","setGroupState","widths","setWidths","Header","onFiltering","onFilter","nextFilters","nextWidths","onSort","nextGroupState","onExpand","expandedKeys","GroupedBody","Body","Footer","Icon","resizer","Resizer","searcher","Searcher","HeaderWrapper","colSpan","tableContext","mergedProps","cellProps","TableCellWrapper","StyledText","TextWrapper","weightStyle","wordBreakStyle","ResizerBox","nodeName","clientX","onMouseMove","onMouseUp","nextWidth","onMouseDown","ResizerWrapper","inputRef","needsFocus","onEsc","TextInput","FormSearch","SearcherWrapper","renderLabel","suggestion","stringLabel","ContainerBox","dropHeight","activeSuggestionIndex","showDrop","isInputEmpty","suggestions","suggestionsCount","suggestionsExist","suggestionIsOpen","enterSelect","labelMessage","resetTimer","selectedSuggestionIndex","announceSuggestionsCount","getSelectedSuggestionIndex","announceSuggestionsIsOpen","announceSuggestion","onShowSuggestions","announceSuggestionsExist","resetSuggestions","nativeEvent","stopImmediatePropagation","StyledSuggestions","InfiniteScroll","items","isValidElement","onClickSuggestion","onSuggestionsOpen","onSuggestionsClose","dropAlign","dropTarget","dropProps","showStyledPlaceholder","Drop","onClickOutside","renderSuggestions","StyledTextInputContainer","StyledPlaceholder","onSuggestionSelect","onTab","onPreviousSuggestion","onNextSuggestion","StyledTextInput","autoComplete","TextInputWrapper","withAnnounce","getNewContainer","restrictFocus","originalFocusedElement","setFocusWithoutScroll","removeChild","dropContainer","createPortal","DropContainer","DropWrapper","preventLayerClose","scrollParents","findScrollParents","scrollParent","dropTargetNode","dropNode","dropRef","removeScrollListener","addScrollListener","preserveHeight","innerWidth","windowHeight","innerHeight","maxHeight","targetRect","containerRect","percentVisibleAreaBelow","onClickDocument","alignProp","propsTheme","StyledDrop","preventClickBubbling","FocusedContainer","dropKeyFrames","getTransformOriginStyle","Ref","InfiniteScrollWrapper","renderMarker","show","lastPage","beginPage","setBeginPage","endPage","setEndPage","pageHeight","setPageHeight","pageArea","setPageArea","multiColumn","setMultiColumn","pendingLength","setPendingLength","belowMarkerRef","firstPageItemRef","lastPageItemRef","showRef","beginRect","findDOMNode","endRect","nextPageHeight","nextMultiColumn","nextPageArea","onScroll","documentElement","scrollTop","nextBeginPage","nextEndPage","scrollIntoView","marker","itemsIndex","ol","TableRowWrapper","TableWrapper","TableBodyWrapper","TableHeaderWrapper","TableFooterWrapper","FooterWrapper","setActive","adjustedEvent","scrollableAncestor","primaryValue","memberCount","computeMidPoint","fromPoint","toPoint","COMMANDS","curved","midPoint","cmds","direct","rectilinear","findTarget","getElementById","Diagram","connections","setDimensions","connectionPoints","setConnectionPoints","svgRef","savedOnResize","onResizeHandler","paths","placeConnections","updatedConnectionPoints","fromTarget","toTarget","fromElement","toElement","fromRect","toRect","cleanedRest","offsetWidth","StyledDiagram","DiagramWrapper","Value","Distribution","subIndex","childBasis","total","accumulator","subTotal","DistributionWrapper","DropButton","onClose","onOpen","forceUpdate","buttonRef","dropContent","onDropClose","DropButtonWrapper","updateReducer","validations","errors","touched","nextValue","nextTouched","nextErrors","nextError","defaultMessages","invalid","Form","onSubmit","validate","onReset","stateErrors","priorValue","priorErrors","priorMessages","addValidation","update","FormWrapper","FormFieldBox","FormFieldContent","valueProp","className","Input","abut","abutMargin","normalizedError","regexp","validateField","renderChildren","outerStyle","normalizedChildren","childContainerRef","FormField","FormFieldWrapper","GridWrapper","rows","StyledGrid","a11yTitleProp","rowsProp","available","CSS","supports","JUSTIFY_CONTENT_MAP","justifyContentStyle","justifyContent","getRepeatSize","sizeFor","isRow","mapped","attrs","areas","area","cells","areasStyle","columnsStyle","gapSize","gapStyle","rowsStyle","grid","FullGlobalStyle","createGlobalStyle","Grommet","getBreakpoint","themeMode","stateTheme","themeProp","themeModeProp","nextTheme","baseTheme","defaultMode","deviceResponsive","userAgent","getDeviceBreakpoint","StyledGrommet","GrommetWrapper","fullStyle","face","cssVars","ImageWrapper","onError","imageMissing","setImageMissing","extraProps","StyledImage","opacityProp","FIT_MAP","contain","fitStyle","fit","fillStyle","Layer","islayerContainerAvailable","layerContainer","layerClone","cloneNode","clonedContainer","animationDirection","clone","LayerContainer","LayerWrapper","HiddenAnchor","layerRef","makeLayerVisible","anchorRef","StyledList","ul","StyledItem","List","itemProps","secondaryKey","onClickItem","boxProps","adjustedBackground","adjustedBorder","ListWrapper","MainWrapper","GrommetMarkdownWrapper","components","overrides","Image","Paragraph","th","ATTRIBUTE_TO_JSX_PROP_MAP","accesskey","allowfullscreen","allowtransparency","autocomplete","autofocus","autoplay","cellpadding","cellspacing","charset","class","classid","colspan","contenteditable","contextmenu","crossorigin","enctype","formaction","formenctype","formmethod","formnovalidate","formtarget","frameborder","hreflang","inputmode","keyparams","keytype","marginheight","marginwidth","maxlength","mediagroup","minlength","novalidate","radiogroup","readonly","rowspan","spellcheck","srcdoc","srclang","srcset","tabindex","usemap","namedCodesToUnicode","amp","apos","gt","lt","nbsp","quot","DO_NOT_PROCESS_HTML_ELEMENTS","ATTR_EXTRACTOR_R","AUTOLINK_MAILTO_CHECK_R","BLOCK_END_R","BLOCKQUOTE_R","BLOCKQUOTE_TRIM_LEFT_MULTILINE_R","BREAK_LINE_R","BREAK_THEMATIC_R","CODE_BLOCK_FENCED_R","CODE_BLOCK_R","CODE_INLINE_R","CONSECUTIVE_NEWLINE_R","CR_NEWLINE_R","FOOTNOTE_R","FOOTNOTE_REFERENCE_R","FORMFEED_R","GFM_TASK_R","HEADING_R","HEADING_SETEXT_R","HTML_BLOCK_ELEMENT_R","HTML_CHAR_CODE_R","HTML_COMMENT_R","HTML_CUSTOM_ATTR_R","HTML_SELF_CLOSING_ELEMENT_R","INTERPOLATION_R","LINK_AUTOLINK_BARE_URL_R","LINK_AUTOLINK_MAILTO_R","LINK_AUTOLINK_R","LIST_ITEM_END_R","LIST_LOOKBEHIND_R","CAPTURE_LETTER_AFTER_HYPHEN","NP_TABLE_R","PARAGRAPH_R","REFERENCE_IMAGE_OR_LINK","REFERENCE_IMAGE_R","REFERENCE_LINK_R","SQUARE_BRACKETS_R","SHOULD_RENDER_AS_BLOCK_R","TAB_R","TABLE_SEPARATOR_R","TABLE_TRIM_PIPES","TABLE_CELL_END_TRIM","TABLE_CENTER_ALIGN","TABLE_LEFT_ALIGN","TABLE_RIGHT_ALIGN","TEXT_BOLD_R","TEXT_EMPHASIZED_R","TEXT_STRIKETHROUGHED_R","TEXT_ESCAPED_R","TEXT_PLAIN_R","TRIM_NEWLINES_AND_TRAILING_WHITESPACE_R","HTML_LEFT_TRIM_AMOUNT_R","UNESCAPE_URL_R","LIST_ITEM_PREFIX_R","LIST_ITEM_R","LIST_R","LINK_R","IMAGE_R","BLOCK_SYNTAXES","slugify","parseTableAlignCapture","parseTableRow","inTable","parseTable","inline","parseTableAlign","parseTableCells","getTableStyle","parserFor","j","substring","order","normalizeWhitespace","inlineRegex","simpleInlineRegex","simple","blockRegex","anyScopeRegex","sanitizeUrl","decodeURIComponent","unescapeUrl","parseInline","parseSimpleInline","parseBlock","parseCaptureInline","captureNothing","shift","getTag","PARSE_PRIORITY_MAX","PARSE_PRIORITY_HIGH","PARSE_PRIORITY_MED","PARSE_PRIORITY_LOW","PARSE_PRIORITY_MIN","compiler","forceInline","forceBlock","normalizeAttributeKey","attributeValueToJSXPropValue","blockQuote","react","breakLine","breakThematic","codeBlock","lang","codeFenced","codeInline","footnote","identifier","footnoteReference","gfmTask","completed","readOnly","headingSetext","htmlBlock","containsBlockSyntax","noInnerParse","htmlComment","htmlSelfClosing","alt","title","link","linkAngleBraceStyleDetector","linkBareUrlDetector","linkMailtoDetector","_list","ordered","newlineCoalescer","refImage","refLink","fallbackContent","tableSeparator","textBolded","textEmphasized","textEscaped","textStrikethroughed","reactFor","ruleOutput","Markdown","_objectWithoutProperties","ParagraphWrapper","StyledParagraph","parseValue","valueParts","valueIndex","maskIndex","found","fixed","part","beginIndex","endIndex","option","minLength","MaskedInput","caretTimeout","activeMaskIndex","caretIndex","selectionStart","activeOptionIndex","locateCaret","blurTimeout","HTMLInputElement","Event","bubbles","dispatchEvent","setValue","nextValueParts","onOption","priorMask","StyledMaskedInputContainer","onPreviousOption","onNextOption","onSelectOption","StyledMaskedInput","renderPlaceholder","MaskedInputWrapper","Menu","controlButtonIndex","dropBackground","MenuIcon","buttonRefs","constants","activeItemIndex","setActiveItemIndex","isOpen","setOpen","onDropOpen","onSelectMenuItem","click","isTab","onNextMenuItem","onPreviousMenuItem","controlMirror","closeMenu","onSpace","openMenu","shiftKey","close","MenuWrapper","MeterWrapper","memoizedMax","deriveMax","Bar","Circle","capOffset","mid","someHighlight","highlight","pathRest","defaultColor","strokeProps","BarWrapper","startValue","pathCaps","translateEndAngle","arcCommands","pathCap","CircleWrapper","NavWrapper","RadioButton","circle","StyledRadioButtonContainer","onMouseEnter","StyledRadioButton","StyledRadioButtonInput","StyledRadioButtonBox","StyledRadioButtonIcon","RadioButtonWrapper","RadioButtonGroup","optionsProp","optionRefs","onNext","onPrevious","optionValue","aRef","RadioButtonGroupWrapper","RangeInputWrapper","StyledRangeInput","rangeTrackStyle","rangeThumbStyle","firefoxMicrosoftThumbStyle","Container","RangeSelector","clientY","scaleY","scaleX","lastChange","valueForMouseCoord","changing","mouseMove","mouseUp","moveValue","nextLower","nextUpper","lower","upper","EdgeControl","edge","lowerMouseDown","onDecrease","onIncrease","cursor","selectionMouseDown","upperMouseDown","RangeSelectorWrapper","DIRECTION_PROPS","setFocused","keyboardProps","boxDirection","justifySelf","minWidth","minHeight","EdgeControlWrapper","RoutedAnchor","router","modifierKey","ctrlKey","metaKey","history","RoutedAnchorWrapper","RoutedButton","RoutedButtonWrapper","SelectTextInput","StyledSelectDropButton","Select","closeOnChange","labelKey","propOpen","valueLabel","SelectIcon","selectValue","onRequestOpen","onRequestClose","inputValue","SelectContainer","SelectWrapper","OptionsBox","OptionBox","debounce","initialOptions","nextSelected","keyboardNavTimer","keyboardNavigating","isDisabled","buttonNode","optionsNode","optionsRef","isNodeAfterScroll","offsetTop","clearKeyboardNavigation","isNodeBeforeScroll","selectOption","valueKey","disabledKey","valueItem","searchRef","optionNode","containerBottom","emptySearchMessage","searchPlaceholder","customSearchInput","searchInput","selectOptionsStyle","onSearchChange","isActive","SelectOption","onActiveOption","optionLabel","SelectContainerWrapper","memo","nextActive","nextDisabled","nextOption","SelectOptionWrapper","SkipLinks","showLayer","setShowLayer","removeLayer","layerNode","skipTo","SkipLinksWrapper","Tab","onActivate","over","setOver","normalizedTitle","tabStyles","StyledTab","TabWrapper","tabHoverStyle","Tabs","propsActiveIndex","setActiveIndex","activeContent","activeTitle","tabProps","isTabActive","activateTab","tabContentTitle","StyledTabs","StyledTabsHeader","StyledTabPanel","TabsWrapper","TextAreaWrapper","StyledTextArea","fillArg","VOLUME_STEP","videoEvents","Video","scrubberRef","videoRef","previousValue","currentValue","hasPlayed","paused","loading","currentTime","interacting","ended","playing","percentagePlayed","scrubberRect","percent","scrubTime","muted","textTracks","requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","interactionTimer","interactionStop","unmounted","videoHeight","videoRatio","videoWidth","nextHeight","nextCaptions","throttle","mediaEventProps","injectUpdateVideoEvents","nextVideoRef","mute","restate","autoPlay","renderControls","formattedTime","formatTime","Icons","Configure","FullScreen","ReduceVolume","captionControls","showCaptions","StyledVideoControls","Meter","StyledVideoScrubber","scrub","seek","louder","quieter","fullscreen","mouseEventListeners","loop","controlsElement","interactionStart","onTouchStart","StyledVideoContainer","StyledVideo","VideoWrapper","positionStyle","headStyle","CONTINENTS","origin","dots","FACTOR","maxCoordinate","MAP_LAT_BOTTOM_RAD","mapRadius","MAP_LON_RIGHT","mapOffsetY","log","continents","stateDots","segment","spots","dotCommands","stateArea","point","buildContinentState","updateState","places","latLon","latitudeRad","coords","buildInteractiveProps","activeFunc","WorldMap","activeCoords","onSelectPlace","hoverColor","activeContinent","activePlace","continentStates","placeStates","continentColor","interactiveProps","activate","fillOpacity","placeColor","restPlace","fillRule","coord","atan","exp","coordToLatLon","StyledWorldMap","WorldMapWrapper","_getRGBArray"],"mappings":"wBACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAA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,cAAI,CAAC,GAAI,IAAK,KAAMxS,EAAMuS,EAAe7R,EAAOkB,KCF9C,EAAY,SAAmB5B,EAAMU,EAAOkB,GACrD,OAAO,cAAI,CAAC,GAAI,IAAK,KAAM5B,EAAM4B,EAAMyP,OAAOK,KAAKhR,IAAUA,ICF/D","file":"grommet.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 69);\n","module.exports = React;","module.exports = styled;","export * from './mixins';\nexport * from './background';\nexport * from './border';\nexport * from './colors';\nexport * from './debounce';\nexport * from './DOM';\nexport * from './graphics';\nexport * from './prop-types';\nexport * from './styles';\nexport * from './object';\nexport * from './responsive';\nexport * from './router';\nexport * from './throttle';\nexport * from './themeDocUtils';\n","import { deepMerge } from './utils';\nimport { base } from './themes/base';\n\nexport const defaultProps = {\n theme: base,\n};\n\nexport const extendDefaultTheme = theme => {\n defaultProps.theme = deepMerge(base, theme);\n};\n","export { Box } from './Box';\n","export default function _extends() {\n _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 * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","export default 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}","import React, { createFactory, Component, createElement } from 'react';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport shallowEqual from 'fbjs/lib/shallowEqual';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { polyfill } from 'react-lifecycles-compat';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { createChangeEmitter } from 'change-emitter';\nimport $$observable from 'symbol-observable';\n\nvar setStatic = function setStatic(key, value) {\n return function (BaseComponent) {\n /* eslint-disable no-param-reassign */\n BaseComponent[key] = value;\n /* eslint-enable no-param-reassign */\n\n return BaseComponent;\n };\n};\n\nvar setDisplayName = function setDisplayName(displayName) {\n return setStatic('displayName', displayName);\n};\n\nvar getDisplayName = function getDisplayName(Component$$1) {\n if (typeof Component$$1 === 'string') {\n return Component$$1;\n }\n\n if (!Component$$1) {\n return undefined;\n }\n\n return Component$$1.displayName || Component$$1.name || 'Component';\n};\n\nvar wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {\n return hocName + \"(\" + getDisplayName(BaseComponent) + \")\";\n};\n\nvar mapProps = function mapProps(propsMapper) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var MapProps = function MapProps(props) {\n return factory(propsMapper(props));\n };\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);\n }\n\n return MapProps;\n };\n};\n\nvar withProps = function withProps(input) {\n var hoc = mapProps(function (props) {\n return _extends({}, props, typeof input === 'function' ? input(props) : input);\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return function (BaseComponent) {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));\n };\n }\n\n return hoc;\n};\n\nvar pick = function pick(obj, keys) {\n var result = {};\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (obj.hasOwnProperty(key)) {\n result[key] = obj[key];\n }\n }\n\n return result;\n};\n\nvar withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {\n return !shallowEqual(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));\n };\n\n var WithPropsOnChange =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithPropsOnChange, _Component);\n\n function WithPropsOnChange() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.state = {\n computedProps: propsMapper(_this.props),\n prevProps: _this.props\n };\n return _this;\n }\n\n WithPropsOnChange.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n if (shouldMap(prevState.prevProps, nextProps)) {\n return {\n computedProps: propsMapper(nextProps),\n prevProps: nextProps\n };\n }\n\n return {\n prevProps: nextProps\n };\n };\n\n var _proto = WithPropsOnChange.prototype;\n\n _proto.render = function render() {\n return factory(_extends({}, this.props, this.state.computedProps));\n };\n\n return WithPropsOnChange;\n }(Component);\n\n polyfill(WithPropsOnChange);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);\n }\n\n return WithPropsOnChange;\n };\n};\n\nvar mapValues = function mapValues(obj, func) {\n var result = {};\n /* eslint-disable no-restricted-syntax */\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n result[key] = func(obj[key], key);\n }\n }\n /* eslint-enable no-restricted-syntax */\n\n\n return result;\n};\n\nvar withHandlers = function withHandlers(handlers) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var WithHandlers =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithHandlers, _Component);\n\n function WithHandlers() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(_args)) || this;\n _this.handlers = mapValues(typeof handlers === 'function' ? handlers(_this.props) : handlers, function (createHandler) {\n return function () {\n var handler = createHandler(_this.props);\n\n if (process.env.NODE_ENV !== 'production' && typeof handler !== 'function') {\n console.error( // eslint-disable-line no-console\n 'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');\n }\n\n return handler.apply(void 0, arguments);\n };\n });\n return _this;\n }\n\n var _proto = WithHandlers.prototype;\n\n _proto.render = function render() {\n return factory(_extends({}, this.props, this.handlers));\n };\n\n return WithHandlers;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);\n }\n\n return WithHandlers;\n };\n};\n\nvar defaultProps = function defaultProps(props) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var DefaultProps = function DefaultProps(ownerProps) {\n return factory(ownerProps);\n };\n\n DefaultProps.defaultProps = props;\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);\n }\n\n return DefaultProps;\n };\n};\n\nvar omit = function omit(obj, keys) {\n var rest = _extends({}, obj);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (rest.hasOwnProperty(key)) {\n delete rest[key];\n }\n }\n\n return rest;\n};\n\nvar renameProp = function renameProp(oldName, newName) {\n var hoc = mapProps(function (props) {\n var _extends2;\n\n return _extends({}, omit(props, [oldName]), (_extends2 = {}, _extends2[newName] = props[oldName], _extends2));\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return function (BaseComponent) {\n return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));\n };\n }\n\n return hoc;\n};\n\nvar keys = Object.keys;\n\nvar mapKeys = function mapKeys(obj, func) {\n return keys(obj).reduce(function (result, key) {\n var val = obj[key];\n /* eslint-disable no-param-reassign */\n\n result[func(val, key)] = val;\n /* eslint-enable no-param-reassign */\n\n return result;\n }, {});\n};\n\nvar renameProps = function renameProps(nameMap) {\n var hoc = mapProps(function (props) {\n return _extends({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {\n return nameMap[oldName];\n }));\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return function (BaseComponent) {\n return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));\n };\n }\n\n return hoc;\n};\n\nvar flattenProp = function flattenProp(propName) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var FlattenProp = function FlattenProp(props) {\n return factory(_extends({}, props, props[propName]));\n };\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);\n }\n\n return FlattenProp;\n };\n};\n\nvar withState = function withState(stateName, stateUpdaterName, initialState) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var WithState =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithState, _Component);\n\n function WithState() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.state = {\n stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState\n };\n\n _this.updateStateValue = function (updateFn, callback) {\n return _this.setState(function (_ref) {\n var stateValue = _ref.stateValue;\n return {\n stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn\n };\n }, callback);\n };\n\n return _this;\n }\n\n var _proto = WithState.prototype;\n\n _proto.render = function render() {\n var _extends2;\n\n return factory(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2)));\n };\n\n return WithState;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);\n }\n\n return WithState;\n };\n};\n\nvar withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var WithStateHandlers =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithStateHandlers, _Component);\n\n function WithStateHandlers() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(_args)) || this;\n _this.state = typeof initialState === 'function' ? initialState(_this.props) : initialState;\n _this.stateUpdaters = mapValues(stateUpdaters, function (handler) {\n return function (mayBeEvent) {\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 // Having that functional form of setState can be called async\n // we need to persist SyntheticEvent\n if (mayBeEvent && typeof mayBeEvent.persist === 'function') {\n mayBeEvent.persist();\n }\n\n _this.setState(function (state, props) {\n return handler(state, props).apply(void 0, [mayBeEvent].concat(args));\n });\n };\n });\n return _this;\n }\n\n var _proto = WithStateHandlers.prototype;\n\n _proto.render = function render() {\n return factory(_extends({}, this.props, this.state, this.stateUpdaters));\n };\n\n return WithStateHandlers;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);\n }\n\n return WithStateHandlers;\n };\n};\n\nvar noop = function noop() {};\n\nvar withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var WithReducer =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithReducer, _Component);\n\n function WithReducer() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.state = {\n stateValue: _this.initializeStateValue()\n };\n\n _this.dispatch = function (action, callback) {\n if (callback === void 0) {\n callback = noop;\n }\n\n return _this.setState(function (_ref) {\n var stateValue = _ref.stateValue;\n return {\n stateValue: reducer(stateValue, action)\n };\n }, function () {\n return callback(_this.state.stateValue);\n });\n };\n\n return _this;\n }\n\n var _proto = WithReducer.prototype;\n\n _proto.initializeStateValue = function initializeStateValue() {\n if (initialState !== undefined) {\n return typeof initialState === 'function' ? initialState(this.props) : initialState;\n }\n\n return reducer(undefined, {\n type: '@@recompose/INIT'\n });\n };\n\n _proto.render = function render() {\n var _extends2;\n\n return factory(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[dispatchName] = this.dispatch, _extends2)));\n };\n\n return WithReducer;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);\n }\n\n return WithReducer;\n };\n};\n\nvar identity = function identity(Component$$1) {\n return Component$$1;\n};\n\nvar branch = function branch(test, left, right) {\n if (right === void 0) {\n right = identity;\n }\n\n return function (BaseComponent) {\n var leftFactory;\n var rightFactory;\n\n var Branch = function Branch(props) {\n if (test(props)) {\n leftFactory = leftFactory || createFactory(left(BaseComponent));\n return leftFactory(props);\n }\n\n rightFactory = rightFactory || createFactory(right(BaseComponent));\n return rightFactory(props);\n };\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);\n }\n\n return Branch;\n };\n};\n\nvar renderComponent = function renderComponent(Component$$1) {\n return function (_) {\n var factory = createFactory(Component$$1);\n\n var RenderComponent = function RenderComponent(props) {\n return factory(props);\n };\n\n if (process.env.NODE_ENV !== 'production') {\n RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');\n }\n\n return RenderComponent;\n };\n};\n\nvar Nothing =\n/*#__PURE__*/\nfunction (_Component) {\n _inheritsLoose(Nothing, _Component);\n\n function Nothing() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Nothing.prototype;\n\n _proto.render = function render() {\n return null;\n };\n\n return Nothing;\n}(Component);\n\nvar renderNothing = function renderNothing(_) {\n return Nothing;\n};\n\nvar shouldUpdate = function shouldUpdate(test) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var ShouldUpdate =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(ShouldUpdate, _Component);\n\n function ShouldUpdate() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = ShouldUpdate.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n return test(this.props, nextProps);\n };\n\n _proto.render = function render() {\n return factory(this.props);\n };\n\n return ShouldUpdate;\n }(Component);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);\n }\n\n return ShouldUpdate;\n };\n};\n\nvar pure = function pure(BaseComponent) {\n var hoc = shouldUpdate(function (props, nextProps) {\n return !shallowEqual(props, nextProps);\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));\n }\n\n return hoc(BaseComponent);\n};\n\nvar onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {\n var hoc = shouldUpdate(function (props, nextProps) {\n return !shallowEqual(pick(nextProps, propKeys), pick(props, propKeys));\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return function (BaseComponent) {\n return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));\n };\n }\n\n return hoc;\n};\n\nvar onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {\n var propTypes = BaseComponent.propTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!propTypes) {\n /* eslint-disable */\n console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + (\"component with display name \\\"\" + getDisplayName(BaseComponent) + \"\\\".\"));\n /* eslint-enable */\n }\n }\n\n var propKeys = Object.keys(propTypes || {});\n var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);\n }\n\n return OnlyUpdateForPropTypes;\n};\n\nvar withContext = function withContext(childContextTypes, getChildContext) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var WithContext =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(WithContext, _Component);\n\n function WithContext() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n\n _this.getChildContext = function () {\n return getChildContext(_this.props);\n };\n\n return _this;\n }\n\n var _proto = WithContext.prototype;\n\n _proto.render = function render() {\n return factory(this.props);\n };\n\n return WithContext;\n }(Component);\n\n WithContext.childContextTypes = childContextTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);\n }\n\n return WithContext;\n };\n};\n\nvar getContext = function getContext(contextTypes) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n var GetContext = function GetContext(ownerProps, context) {\n return factory(_extends({}, ownerProps, context));\n };\n\n GetContext.contextTypes = contextTypes;\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);\n }\n\n return GetContext;\n };\n};\n\nvar lifecycle = function lifecycle(spec) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n\n if (process.env.NODE_ENV !== 'production' && spec.hasOwnProperty('render')) {\n console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');\n }\n\n var Lifecycle =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(Lifecycle, _Component);\n\n function Lifecycle() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Lifecycle.prototype;\n\n _proto.render = function render() {\n return factory(_extends({}, this.props, this.state));\n };\n\n return Lifecycle;\n }(Component);\n\n Object.keys(spec).forEach(function (hook) {\n return Lifecycle.prototype[hook] = spec[hook];\n });\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);\n }\n\n return Lifecycle;\n };\n};\n\nvar isClassComponent = function isClassComponent(Component$$1) {\n return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');\n};\n\nvar toClass = function toClass(baseComponent) {\n var _class, _temp;\n\n return isClassComponent(baseComponent) ? baseComponent : (_temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(ToClass, _Component);\n\n function ToClass() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = ToClass.prototype;\n\n _proto.render = function render() {\n if (typeof baseComponent === 'string') {\n return React.createElement(baseComponent, this.props);\n }\n\n return baseComponent(this.props, this.context);\n };\n\n return ToClass;\n }(Component), _class.displayName = getDisplayName(baseComponent), _class.propTypes = baseComponent.propTypes, _class.contextTypes = baseComponent.contextTypes, _class.defaultProps = baseComponent.defaultProps, _temp);\n};\n\nfunction toRenderProps(hoc) {\n var RenderPropsComponent = function RenderPropsComponent(props) {\n return props.children(props);\n };\n\n return hoc(RenderPropsComponent);\n}\n\nvar fromRenderProps = function fromRenderProps(RenderPropsComponent, propsMapper, renderPropName) {\n if (renderPropName === void 0) {\n renderPropName = 'children';\n }\n\n return function (BaseComponent) {\n var baseFactory = React.createFactory(BaseComponent);\n var renderPropsFactory = React.createFactory(RenderPropsComponent);\n\n var FromRenderProps = function FromRenderProps(ownerProps) {\n var _renderPropsFactory;\n\n return renderPropsFactory((_renderPropsFactory = {}, _renderPropsFactory[renderPropName] = function () {\n return baseFactory(_extends({}, ownerProps, propsMapper.apply(void 0, arguments)));\n }, _renderPropsFactory));\n };\n\n if (process.env.NODE_ENV !== 'production') {\n return setDisplayName(wrapDisplayName(BaseComponent, 'fromRenderProps'))(FromRenderProps);\n }\n\n return FromRenderProps;\n };\n};\n\nvar setPropTypes = function setPropTypes(propTypes) {\n return setStatic('propTypes', propTypes);\n};\n\nvar compose = function compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n }, function (arg) {\n return arg;\n });\n};\n\nvar createSink = function createSink(callback) {\n var Sink =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(Sink, _Component);\n\n function Sink() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.state = {};\n return _this;\n }\n\n Sink.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n callback(nextProps);\n return null;\n };\n\n var _proto = Sink.prototype;\n\n _proto.render = function render() {\n return null;\n };\n\n return Sink;\n }(Component);\n\n polyfill(Sink);\n return Sink;\n};\n\nvar componentFromProp = function componentFromProp(propName) {\n var Component$$1 = function Component$$1(props) {\n return createElement(props[propName], omit(props, [propName]));\n };\n\n Component$$1.displayName = \"componentFromProp(\" + propName + \")\";\n return Component$$1;\n};\n\nvar nest = function nest() {\n for (var _len = arguments.length, Components = new Array(_len), _key = 0; _key < _len; _key++) {\n Components[_key] = arguments[_key];\n }\n\n var factories = Components.map(createFactory);\n\n var Nest = function Nest(_ref) {\n var children = _ref.children,\n props = _objectWithoutPropertiesLoose(_ref, [\"children\"]);\n\n return factories.reduceRight(function (child, factory) {\n return factory(props, child);\n }, children);\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var displayNames = Components.map(getDisplayName);\n Nest.displayName = \"nest(\" + displayNames.join(', ') + \")\";\n }\n\n return Nest;\n};\n\nvar hoistStatics = function hoistStatics(higherOrderComponent, blacklist) {\n return function (BaseComponent) {\n var NewComponent = higherOrderComponent(BaseComponent);\n hoistNonReactStatics(NewComponent, BaseComponent, blacklist);\n return NewComponent;\n };\n};\n\nvar _config = {\n fromESObservable: null,\n toESObservable: null\n};\n\nvar configureObservable = function configureObservable(c) {\n _config = c;\n};\n\nvar config = {\n fromESObservable: function fromESObservable(observable) {\n return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;\n },\n toESObservable: function toESObservable(stream) {\n return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;\n }\n};\n\nvar componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {\n return function (propsToVdom) {\n return (\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(ComponentFromStream, _Component);\n\n function ComponentFromStream() {\n var _config$fromESObserva;\n\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.state = {\n vdom: null\n };\n _this.propsEmitter = createChangeEmitter();\n _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {\n subscribe: function subscribe(observer) {\n var unsubscribe = _this.propsEmitter.listen(function (props) {\n if (props) {\n observer.next(props);\n } else {\n observer.complete();\n }\n });\n\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _config$fromESObserva[$$observable] = function () {\n return this;\n }, _config$fromESObserva));\n _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$));\n return _this;\n }\n\n var _proto = ComponentFromStream.prototype;\n\n _proto.componentWillMount = function componentWillMount() {\n var _this2 = this;\n\n // Subscribe to child prop changes so we know when to re-render\n this.subscription = this.vdom$.subscribe({\n next: function next(vdom) {\n _this2.setState({\n vdom: vdom\n });\n }\n });\n this.propsEmitter.emit(this.props);\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n // Receive new props from the owner\n this.propsEmitter.emit(nextProps);\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n return nextState.vdom !== this.state.vdom;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n // Call without arguments to complete stream\n this.propsEmitter.emit(); // Clean-up subscription before un-mounting\n\n this.subscription.unsubscribe();\n };\n\n _proto.render = function render() {\n return this.state.vdom;\n };\n\n return ComponentFromStream;\n }(Component)\n );\n };\n};\n\nvar componentFromStream = function componentFromStream(propsToVdom) {\n return componentFromStreamWithConfig(config)(propsToVdom);\n};\n\nvar identity$1 = function identity(t) {\n return t;\n};\n\nvar mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {\n var componentFromStream$$1 = componentFromStreamWithConfig({\n fromESObservable: identity$1,\n toESObservable: identity$1\n });\n return function (transform) {\n return function (BaseComponent) {\n var factory = createFactory(BaseComponent);\n var fromESObservable = config$$1.fromESObservable,\n toESObservable = config$$1.toESObservable;\n return componentFromStream$$1(function (props$) {\n var _ref;\n\n return _ref = {\n subscribe: function subscribe(observer) {\n var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({\n next: function next(childProps) {\n return observer.next(factory(childProps));\n }\n });\n return {\n unsubscribe: function unsubscribe() {\n return subscription.unsubscribe();\n }\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n });\n };\n };\n};\n\nvar mapPropsStream = function mapPropsStream(transform) {\n var hoc = mapPropsStreamWithConfig(config)(transform);\n\n if (process.env.NODE_ENV !== 'production') {\n return function (BaseComponent) {\n return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));\n };\n }\n\n return hoc;\n};\n\nvar createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {\n return function () {\n var _config$fromESObserva;\n\n var emitter = createChangeEmitter();\n var stream = config$$1.fromESObservable((_config$fromESObserva = {\n subscribe: function subscribe(observer) {\n var unsubscribe = emitter.listen(function (value) {\n return observer.next(value);\n });\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _config$fromESObserva[$$observable] = function () {\n return this;\n }, _config$fromESObserva));\n return {\n handler: emitter.emit,\n stream: stream\n };\n };\n};\nvar createEventHandler = createEventHandlerWithConfig(config);\n\n// Higher-order component helpers\n\nexport { mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, toRenderProps, fromRenderProps, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, configureObservable as setObservableConfig };\n","/* eslint-disable react/no-multi-comp */\nimport React, { Component } from 'react';\nimport getDisplayName from 'recompose/getDisplayName';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { withTheme } from 'styled-components';\nimport { AnnounceContext } from '../contexts';\n\nexport const withFocus = ({ focusWithMouse } = {}) => WrappedComponent => {\n class FocusableComponent extends Component {\n static getDerivedStateFromProps(nextProps, prevState) {\n const { withFocusRef } = nextProps;\n const { wrappedRef } = prevState;\n const nextWrappedRef = withFocusRef || wrappedRef;\n if (nextWrappedRef !== wrappedRef) {\n return { wrappedRef: nextWrappedRef };\n }\n return null;\n }\n\n mouseActive = false; // not in state because it doesn't affect rendering\n\n constructor(props) {\n super(props);\n this.state = {\n focus: false,\n wrappedRef: React.createRef(),\n };\n }\n\n componentDidMount = () => {\n const { wrappedRef } = this.state;\n\n // components such as anchors and buttons should not retain focus after\n // being clicked while text-based components should\n if (!focusWithMouse) {\n window.addEventListener('mousedown', this.handleActiveMouse);\n }\n\n // we could be using onFocus in the wrapper node itself\n // but react does not invoke it if you programically\n // call wrapperNode.focus() inside componentWillUnmount\n // see Drop \"this.originalFocusedElement.focus();\" for reference\n const wrapperNode = wrappedRef.current;\n if (wrapperNode && wrapperNode.addEventListener) {\n wrapperNode.addEventListener('focus', this.setFocus);\n }\n };\n\n componentWillUnmount = () => {\n const { wrappedRef } = this.state;\n window.removeEventListener('mousedown', this.handleActiveMouse);\n const wrapperNode = wrappedRef.current;\n if (wrapperNode && wrapperNode.addEventListener) {\n wrapperNode.removeEventListener('focus', this.setFocus);\n }\n clearTimeout(this.focusTimer);\n clearTimeout(this.mouseTimer);\n };\n\n handleActiveMouse = () => {\n // from https://marcysutton.com/button-focus-hell/\n this.mouseActive = true;\n // this avoids showing focus when clicking around\n clearTimeout(this.mouseTimer);\n // empirical number to reset mouseActive after\n // some time has passed without mousedown\n this.mouseTimer = setTimeout(() => {\n this.mouseActive = false;\n }, 150);\n };\n\n setFocus = () => {\n // delay setting focus to avoid interupting events,\n // 1ms was chosen empirically based on ie11 using Select and TextInput\n // with and without a FormField.\n clearTimeout(this.focusTimer);\n this.focusTimer = setTimeout(() => {\n const { focus } = this.state;\n if (!focus && !this.mouseActive) {\n this.setState({ focus: true });\n }\n }, 1);\n };\n\n resetFocus = () => {\n clearTimeout(this.focusTimer);\n this.focusTimer = setTimeout(() => {\n const { focus } = this.state;\n if (focus) {\n this.setState({ focus: false });\n }\n }, 1);\n };\n\n render() {\n const { onFocus, onBlur, withFocusRef, ...rest } = this.props;\n const { focus, wrappedRef } = this.state;\n return (\n {\n this.setFocus();\n if (onFocus) {\n onFocus(event);\n }\n }}\n onBlur={event => {\n this.resetFocus();\n if (onBlur) {\n onBlur(event);\n }\n }}\n />\n );\n }\n }\n\n const ForwardRef = React.forwardRef((props, ref) => (\n \n ));\n\n ForwardRef.displayName = getDisplayName(WrappedComponent);\n ForwardRef.name = ForwardRef.displayName;\n ForwardRef.defaultProps = WrappedComponent.defaultProps;\n hoistNonReactStatics(ForwardRef, WrappedComponent);\n\n return ForwardRef;\n};\n\nexport const withForwardRef = WrappedComponent => {\n const ForwardRefComponent = React.forwardRef((props, ref) => (\n \n ));\n\n ForwardRefComponent.displayName = getDisplayName(WrappedComponent);\n ForwardRefComponent.name = ForwardRefComponent.displayName;\n ForwardRefComponent.defaultProps = WrappedComponent.defaultProps;\n hoistNonReactStatics(ForwardRefComponent, WrappedComponent);\n\n return ForwardRefComponent;\n};\n\nexport const withAnnounce = WrappedComponent => {\n const ForwardRef = React.forwardRef((props, ref) => (\n \n {announce => (\n \n )}\n \n ));\n\n ForwardRef.displayName = getDisplayName(WrappedComponent);\n ForwardRef.name = ForwardRef.displayName;\n ForwardRef.defaultProps = WrappedComponent.defaultProps;\n hoistNonReactStatics(ForwardRef, WrappedComponent);\n\n return ForwardRef;\n};\n\nexport { withTheme };\n","export { Keyboard } from './Keyboard';\n","\"use strict\";\n\nexports.__esModule = true;\nexports.StyledIcon = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _styledComponents = _interopRequireWildcard(require(\"styled-components\"));\n\nvar _grommetStyles = require(\"grommet-styles\");\n\nvar _defaultProps = require(\"./default-props\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj[\"default\"] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar colorCss = (0, _styledComponents.css)([\"\", \" \", \" g{fill:inherit;stroke:inherit;}*:not([stroke]){&[fill=\\\"none\\\"]{stroke-width:0;}}*[stroke*=\\\"#\\\"],*[STROKE*=\\\"#\\\"]{stroke:inherit;fill:none;}*[fill-rule],*[FILL-RULE],*[fill*=\\\"#\\\"],*[FILL*=\\\"#\\\"]{fill:inherit;stroke:none;}\"], function (props) {\n return (0, _grommetStyles.colorStyle)('fill', props.color || props.theme.global.colors.icon, props.theme);\n}, function (props) {\n return (0, _grommetStyles.colorStyle)('stroke', props.color || props.theme.global.colors.icon, props.theme);\n});\n\nvar IconInner = function IconInner(_ref) {\n var a11yTitle = _ref.a11yTitle,\n color = _ref.color,\n size = _ref.size,\n theme = _ref.theme,\n rest = _objectWithoutPropertiesLoose(_ref, [\"a11yTitle\", \"color\", \"size\", \"theme\"]);\n\n return _react[\"default\"].createElement(\"svg\", _extends({\n \"aria-label\": a11yTitle\n }, rest));\n};\n\nIconInner.displayName = 'Icon';\nvar StyledIcon = (0, _styledComponents[\"default\"])(IconInner).withConfig({\n displayName: \"StyledIcon\",\n componentId: \"ofa7kd-0\"\n})([\"display:inline-block;flex:0 0 auto;\", \" \", \" \", \"\"], function (_ref2) {\n var _ref2$size = _ref2.size,\n size = _ref2$size === void 0 ? 'medium' : _ref2$size,\n theme = _ref2.theme;\n return \"\\n width: \" + (theme.icon.size[size] || size) + \";\\n height: \" + (theme.icon.size[size] || size) + \";\\n \";\n}, function (_ref3) {\n var color = _ref3.color;\n return color !== 'plain' && colorCss;\n}, function (_ref4) {\n var theme = _ref4.theme;\n return theme && theme.icon.extend;\n});\nexports.StyledIcon = StyledIcon;\nStyledIcon.defaultProps = {};\nObject.setPrototypeOf(StyledIcon.defaultProps, _defaultProps.defaultProps);","export { Button } from './Button';\n","export default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}","export { Text } from './Text';\n","export * from './AnnounceContext';\nexport * from './ResponsiveContext';\nexport * from './ThemeContext';\n","export { TableCell } from './TableCell';\n","export const normalizeColor = (color, theme, required) => {\n const colorSpec =\n theme.global.colors[color] !== undefined\n ? theme.global.colors[color]\n : color;\n // If the color has a light or dark object, use that\n let result = colorSpec;\n if (colorSpec) {\n if (theme.dark && colorSpec.dark !== undefined) {\n result = colorSpec.dark;\n } else if (!theme.dark && colorSpec.light !== undefined) {\n result = colorSpec.light;\n }\n }\n // allow one level of indirection in color names\n if (result && theme.global.colors[result] !== undefined) {\n result = normalizeColor(result, theme);\n }\n return required && result === color ? 'inherit' : result;\n};\n\nconst parseHexToRGB = color =>\n color.length < 7 // 7 is what's needed for '#RRGGBB'\n ? color.match(/[A-Za-z0-9]{1}/g).map(v => parseInt(`${v}${v}`, 16))\n : // https://stackoverflow.com/a/42429333\n color.match(/[A-Za-z0-9]{2}/g).map(v => parseInt(v, 16));\n\n// From: https://stackoverflow.com/a/9493060/8513067\n// Converts an HSL color value to RGB. Conversion formula\n// adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n// Assumes h, s, and l are contained in the set [0, 1] and\n// returns r, g, and b in the set [0, 255].\nconst hslToRGB = (h, s, l) => {\n let r;\n let g;\n let b;\n\n if (s === 0 || s === '0') {\n // achromatic\n r = l;\n g = l;\n b = l;\n } else {\n const hue2rgb = (p, q, inT) => {\n let t = inT;\n if (t < 0) t += 1;\n if (t > 1) t -= 1;\n if (t < 0.16666667) return p + (q - p) * 6 * t;\n if (t < 1 / 2) return q;\n if (t < 0.66666667) return p + (q - p) * (0.66666667 - t) * 6;\n return p;\n };\n\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n r = hue2rgb(p, q, h + 0.33333333);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 0.33333333);\n }\n\n return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n};\n\n// allow for alpha: #RGB, #RGBA, #RRGGBB, or #RRGGBBAA\nconst hexExp = /^#[A-Za-z0-9]{3,4}$|^#[A-Za-z0-9]{6,8}$/;\nconst rgbExp = /rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?\\)/;\nconst rgbaExp = /rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([.0-9]*)\\s?\\)/;\n// e.g. hsl(240, 60%, 50%)\nconst hslExp = /hsla?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)%?\\s?,\\s?([0-9]*)%?\\s?.*?\\)/;\n\nconst canExtractRGBArray = color =>\n hexExp.test(color) ||\n rgbExp.test(color) ||\n rgbaExp.test(color) ||\n hslExp.test(color);\n\nconst getRGBArray = color => {\n if (hexExp.test(color)) {\n const [red, green, blue, alpha] = parseHexToRGB(color);\n return [red, green, blue, alpha !== undefined ? alpha / 255.0 : undefined];\n }\n let match = color.match(rgbExp);\n if (match) {\n return match.splice(1).map(v => parseInt(v, 10));\n }\n match = color.match(rgbaExp);\n if (match) {\n return match.splice(1).map(v => parseFloat(v, 10));\n }\n match = color.match(hslExp);\n if (match) {\n const [h, s, l] = match.splice(1).map(v => parseInt(v, 10));\n return hslToRGB(h / 360.0, s / 100.0, l / 100.0);\n }\n return color;\n};\n\nexport const colorIsDark = color => {\n const [red, green, blue, alpha] = getRGBArray(color);\n // if there is an alpha and it's greater than 50%, we can't really tell\n if (alpha < 0.5) return undefined;\n const brightness = (299 * red + 587 * green + 114 * blue) / 1000;\n // From: http://www.had2know.com/technology/color-contrast-calculator-web-design.html\n // Above domain is no longer registered.\n return brightness < 125;\n};\n\nexport const getRGBA = (color, opacity) => {\n if (color && canExtractRGBArray(color)) {\n const [red, green, blue, alpha] = getRGBArray(color);\n let normalizedAlpha;\n if (opacity !== undefined) {\n normalizedAlpha = opacity;\n } else if (alpha !== undefined) {\n normalizedAlpha = alpha;\n } else {\n normalizedAlpha = 1;\n }\n return `rgba(${red}, ${green}, ${blue}, ${normalizedAlpha})`;\n }\n return undefined;\n};\n","import styled, { css } from 'styled-components';\n\nimport {\n backgroundStyle,\n borderStyle,\n edgeStyle,\n genericStyles,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst SIZE_MAP = {\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%',\n};\n\nconst sizeStyle = css`\n width: ${props =>\n SIZE_MAP[props.size] || props.theme.global.size[props.size]};\n max-width: ${props =>\n SIZE_MAP[props.size] || props.theme.global.size[props.size]};\n overflow: hidden;\n`;\n\nconst StyledTableCell = styled.td`\n margin: 0;\n padding: 0;\n font-weight: inherit;\n text-align: inherit;\n height: 100%;\n\n ${props => props.size && sizeStyle}\n ${props => props.verticalAlign && `vertical-align: ${props.verticalAlign};`}\n ${props => props.align && `text-align: ${props.align};`}\n ${props => props.background && backgroundStyle(props.background, props.theme)}\n ${props =>\n props.border && borderStyle(props.border, props.responsive, props.theme)}\n ${props =>\n props.pad &&\n edgeStyle(\n 'padding',\n props.pad,\n props.responsive,\n props.theme.box.responsiveBreakpoint,\n props.theme,\n )}\n ${props => props.tableContextTheme && props.tableContextTheme.extend}\n`;\n\nStyledTableCell.defaultProps = {};\nObject.setPrototypeOf(StyledTableCell.defaultProps, defaultProps);\n\nconst StyledTableDataCaption = styled.caption`\n margin-bottom: ${props => props.theme.global.edgeSize.xxsmall};\n`;\n\nStyledTableDataCaption.defaultProps = {};\nObject.setPrototypeOf(StyledTableDataCaption.defaultProps, defaultProps);\n\nconst StyledTableRow = styled.tr`\n height: 100%;\n`;\n\nStyledTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledTableRow.defaultProps, defaultProps);\n\nconst StyledTableBody = styled.tbody``;\n\nStyledTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledTableBody.defaultProps, defaultProps);\n\nconst StyledTableHeader = styled.thead``;\n\nStyledTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledTableHeader.defaultProps, defaultProps);\n\nconst StyledTableFooter = styled.tfoot``;\n\nStyledTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledTableFooter.defaultProps, defaultProps);\n\nconst StyledTable = styled.table`\n border-spacing: 0;\n border-collapse: collapse;\n width: inherit;\n @media all and (min--moz-device-pixel-ratio: 0) {\n table-layout: fixed;\n }\n ${genericStyles} ${props => props.theme.table && props.theme.table.extend};\n`;\n\nStyledTable.defaultProps = {};\nObject.setPrototypeOf(StyledTable.defaultProps, defaultProps);\n\nexport {\n StyledTableCell,\n StyledTableDataCaption,\n StyledTableRow,\n StyledTableBody,\n StyledTableHeader,\n StyledTableFooter,\n StyledTable,\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","export const isObject = item =>\n item && typeof item === 'object' && !Array.isArray(item);\n\nexport const deepFreeze = obj => {\n Object.keys(obj).forEach(\n key => key && isObject(obj[key]) && Object.freeze(obj[key]),\n );\n return Object.freeze(obj);\n};\n\nexport const deepMerge = (target, ...sources) => {\n if (!sources.length) {\n return target;\n }\n // making sure to not change target (immutable)\n const output = { ...target };\n sources.forEach(source => {\n if (isObject(source)) {\n Object.keys(source).forEach(key => {\n if (isObject(source[key])) {\n if (!output[key]) {\n output[key] = { ...source[key] };\n } else {\n output[key] = deepMerge(output[key], source[key]);\n }\n } else {\n output[key] = source[key];\n }\n });\n }\n });\n return output;\n};\n\nexport const removeUndefined = obj => {\n const result = {};\n Object.keys(obj).forEach(key => {\n if (obj[key] !== undefined) {\n result[key] = obj[key];\n }\n });\n return result;\n};\n","export { Heading } from './Heading';\n","export { Anchor } from './Anchor';\n","export { TextInput } from './TextInput';\n","export { InfiniteScroll } from './InfiniteScroll';\n","import styled, { css } from 'styled-components';\n\nimport {\n backgroundStyle,\n focusStyle,\n genericStyles,\n normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { TableRow } from '../TableRow';\nimport { Table } from '../Table';\nimport { TableBody } from '../TableBody';\nimport { TableHeader } from '../TableHeader';\nimport { TableFooter } from '../TableFooter';\n\nconst StyledDataTable = styled(Table)`\n border-spacing: 0;\n border-collapse: collapse;\n height: auto; /* helps Firefox to get table contents to not overflow */\n\n ${genericStyles};\n`;\n\nStyledDataTable.defaultProps = {};\nObject.setPrototypeOf(StyledDataTable.defaultProps, defaultProps);\n\nconst hoverStyle = css`\n ${props =>\n backgroundStyle(\n normalizeColor(\n (props.theme.table &&\n props.theme.table.row &&\n props.theme.table.row.hover &&\n props.theme.table.row.hover.background) ||\n props.theme.global.hover.background,\n props.theme,\n ),\n props.theme,\n )}\n color: ${props =>\n normalizeColor(\n (props.theme.table &&\n props.theme.table.row &&\n props.theme.table.row.hover &&\n props.theme.table.row.hover.color) ||\n props.theme.global.hover.color,\n props.theme,\n )};\n`;\n\nconst StyledDataTableRow = styled(TableRow)`\n ${props =>\n props.size &&\n `\n display: table;\n width: 100%;\n table-layout: fixed;\n `}\n ${props =>\n props.onClick &&\n `\n cursor: pointer;\n `}\n &:hover {\n ${props => props.onClickRow && !props.active && hoverStyle}\n }\n ${props => props.active && hoverStyle}\n`;\n\nStyledDataTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableRow.defaultProps, defaultProps);\n\nconst StyledDataTableBody = styled(TableBody)`\n ${props =>\n props.size &&\n `\n display: block;\n width: 100%;\n max-height: ${props.theme.global.size[props.size]};\n overflow: auto;\n `}\n ${props => props.focus && focusStyle}\n`;\n\nStyledDataTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableBody.defaultProps, defaultProps);\n\nconst StyledDataTableHeader = styled(TableHeader)`\n ${props =>\n props.size &&\n `\n display: table;\n width: 100%;\n table-layout: fixed;\n `}\n`;\n\nStyledDataTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableHeader.defaultProps, defaultProps);\n\nconst StyledDataTableFooter = styled(TableFooter)`\n ${props =>\n props.size &&\n `\n display: table;\n width: 100%;\n table-layout: fixed;\n `}\n`;\n\nStyledDataTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableFooter.defaultProps, defaultProps);\n\nexport {\n StyledDataTable,\n StyledDataTableRow,\n StyledDataTableBody,\n StyledDataTableHeader,\n StyledDataTableFooter,\n};\n","export { TableRow } from './TableRow';\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqual;","import React from 'react';\n\nexport const TableContext = React.createContext(undefined);\n","export { Drop } from './Drop';\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n root = self;\n} else if (typeof window !== 'undefined') {\n root = window;\n} else if (typeof global !== 'undefined') {\n root = global;\n} else if (typeof module !== 'undefined') {\n root = module;\n} else {\n root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","import { css } from 'styled-components';\n\nexport const parseMetricToNum = fontAsString => {\n if (fontAsString.match(/\\s/) && process.env.NODE_ENV !== 'production') {\n console.warn(`Invalid single measurement value: \"${fontAsString}\"`);\n }\n return parseFloat(fontAsString.match(/\\d+(\\.\\d+)?/), 10);\n};\n\nexport const fontSize = (size, lineHeight) => css`\n font-size: ${props =>\n `${(parseMetricToNum(size) /\n parseMetricToNum(props.theme.global.font.size)) *\n 1}rem`};\n line-height: ${props =>\n lineHeight ||\n `${Math.ceil(\n parseMetricToNum(size) / parseMetricToNum(props.theme.global.lineHeight),\n ) *\n (parseMetricToNum(props.theme.global.lineHeight) /\n parseMetricToNum(size))}px`};\n`;\n\nexport const breakpointStyle = (breakpoint, content) => css`\n @media only screen ${breakpoint.value &&\n `and (max-width: ${breakpoint.value}px)`} {\n ${content};\n }\n`;\n\nexport const findAllByType = (component, type) => {\n let matches = [];\n\n if (component.type === type) {\n matches.push(component);\n }\n\n if (component.children) {\n component.children.forEach(child => {\n matches = matches.concat(findAllByType(child, type));\n });\n }\n\n return matches;\n};\n\nexport const getAvailableAtBadge = availableAt => [\n {\n url: `https://storybook.grommet.io/?selectedKind=${availableAt}&full=0&addons=0&stories=1&panelRight=0`,\n badge:\n 'https://cdn-images-1.medium.com/fit/c/120/120/1*TD1P0HtIH9zF0UEH28zYtw.png',\n label: 'Storybook',\n },\n {\n url: `https://codesandbox.io/s/github/grommet/grommet-sandbox?initialpath=${availableAt.toLowerCase()}&module=%2Fsrc%2F${availableAt}.js`,\n badge: 'https://codesandbox.io/static/img/play-codesandbox.svg',\n label: 'CodeSandbox',\n },\n];\n","export { Stack } from './Stack';\n","module.exports = ReactDOM;","export { Table } from './Table';\n","export { TableBody } from './TableBody';\n","export { TableHeader } from './TableHeader';\n","export { TableFooter } from './TableFooter';\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { TableCell } from '../TableCell';\nimport { Text } from '../Text';\nimport { datumValue } from './buildState';\n\nconst normalizeProp = (name, rowProp, prop) => {\n if (rowProp && rowProp[name]) return rowProp[name];\n return prop;\n};\n\nconst Cell = ({\n background,\n border,\n column: { align, property, render },\n context,\n datum,\n index,\n pad,\n primaryProperty,\n rowProp,\n scope,\n theme,\n}) => {\n const value = datumValue(datum, property);\n let content;\n if (render) {\n content = render(datum);\n } else if (value !== undefined) {\n content = value;\n }\n\n if (typeof content === 'string' || typeof content === 'number') {\n const textProps =\n property === primaryProperty ? theme.dataTable.primary : {};\n content = {content};\n }\n\n return (\n \n {content}\n \n );\n};\n\nCell.defaultProps = {};\nObject.setPrototypeOf(Cell.defaultProps, defaultProps);\n\nconst CellWrapper = compose(withTheme)(Cell);\n\nexport { CellWrapper as Cell };\n","// This file contains helper functions for DataTable, to keep the component\n// files simpler.\n\n// get the value for the property in the datum object\nexport const datumValue = (datum, property) => {\n const parts = property.split('.');\n if (parts.length === 1) {\n return datum[property];\n }\n if (!datum[parts[0]]) {\n return undefined;\n }\n return datumValue(datum[parts[0]], parts.slice(1).join('.'));\n};\n\n// get the primary property name\nexport const normalizePrimaryProperty = (columns, primaryKey) => {\n let result;\n columns.forEach(column => {\n // remember the first key property\n if (column.primary && !result) {\n result = column.property;\n }\n });\n if (!result && columns.length > 0) {\n result = primaryKey || columns[0].property;\n }\n\n return result;\n};\n\n// initialize filters with empty strings\nexport const initializeFilters = columns => {\n const result = {};\n columns.forEach(column => {\n if (column.search) {\n result[column.property] = '';\n }\n });\n return result;\n};\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\nconst escapeRegExp = input => input.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n// filter data based on filters then sort\nexport const filterAndSortData = (data, filters, onSearch, sort) => {\n let result = data;\n if (!onSearch) {\n const regexps = {};\n Object.keys(filters)\n .filter(n => filters[n])\n .forEach(n => {\n regexps[n] = new RegExp(escapeRegExp(filters[n]), 'i');\n });\n if (Object.keys(regexps).length > 0) {\n result = data.filter(\n datum =>\n !Object.keys(regexps).some(\n property => !regexps[property].test(datumValue(datum, property)),\n ),\n );\n }\n }\n\n if (sort) {\n const { property, ascending } = sort;\n result = result === data ? [...data] : result; // don't sort caller's data\n const before = ascending ? 1 : -1;\n const after = ascending ? -1 : 1;\n result.sort((d1, d2) => {\n if (d1[property] > d2[property]) return before;\n if (d1[property] < d2[property]) return after;\n return 0;\n });\n }\n\n return result;\n};\n\n// aggregate reducers\nconst sumReducer = (accumulated, next) => accumulated + next;\nconst minReducer = (accumulated, next) =>\n accumulated === undefined ? next : Math.min(accumulated, next);\nconst maxReducer = (accumulated, next) =>\n accumulated === undefined ? next : Math.max(accumulated, next);\n\nconst reducers = {\n max: maxReducer,\n min: minReducer,\n sum: sumReducer,\n};\n\n// aggregate a single column\nconst aggregateColumn = (column, data) => {\n let value;\n if (column.aggregate === 'avg') {\n value = data.map(d => datumValue(d, column.property)).reduce(sumReducer);\n value /= data.length;\n } else {\n value = data\n .map(d => datumValue(d, column.property))\n .reduce(reducers[column.aggregate], 0);\n }\n return value;\n};\n\n// aggregate all columns that can\nconst aggregate = (columns, data) => {\n const result = {};\n columns.forEach(column => {\n if (column.aggregate) {\n result[column.property] = aggregateColumn(column, data);\n }\n });\n return result;\n};\n\n// build the values for the footer cells\nexport const buildFooterValues = (columns, data) => {\n const aggregateValues = aggregate(columns, data);\n\n const result = {};\n columns.forEach(column => {\n if (column.footer) {\n if (typeof column.footer === 'string') {\n result[column.property] = column.footer;\n } else if (column.footer.aggregate) {\n result[column.property] = aggregateValues[column.property];\n }\n }\n });\n\n return result;\n};\n\n// looks at the groupBy property of each data object and returns an\n// array with one item for each unique value of that property.\nexport const buildGroups = (columns, data, groupBy) => {\n let result;\n if (groupBy) {\n result = [];\n const groupMap = {};\n data.forEach(datum => {\n const groupByProperty = groupBy.property ? groupBy.property : groupBy;\n const groupValue = datumValue(datum, groupByProperty);\n if (!groupMap[groupValue]) {\n const group = { data: [], datum: {}, key: groupValue };\n group.datum[groupByProperty] = groupValue;\n result.push(group);\n groupMap[groupValue] = group;\n }\n groupMap[groupValue].data.push(datum);\n });\n\n // include any aggregate column values across the data for each group\n columns.forEach(column => {\n if (column.aggregate) {\n result.forEach(group => {\n const { datum } = group;\n datum[column.property] = aggregateColumn(column, group.data);\n });\n }\n });\n }\n\n return result;\n};\n\n// build group expanded state, expanding any in groupBy.expand\nexport const buildGroupState = (groups, groupBy) => {\n const result = {};\n if (groups) {\n groups.forEach(({ key }) => {\n result[key] = { expanded: false };\n });\n }\n if (groupBy && groupBy.expand) {\n groupBy.expand.forEach(value => {\n result[value] = { expanded: true };\n });\n }\n return result;\n};\n","export { DropButton } from './DropButton';\n","import React from 'react';\n\nexport const FormContext = React.createContext(undefined);\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar createChangeEmitter = exports.createChangeEmitter = function createChangeEmitter() {\n var currentListeners = [];\n var nextListeners = currentListeners;\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n\n function listen(listener) {\n if (typeof listener !== 'function') {\n throw new Error('Expected listener to be a function.');\n }\n\n var isSubscribed = true;\n\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n\n return function () {\n if (!isSubscribed) {\n return;\n }\n\n isSubscribed = false;\n\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n };\n }\n\n function emit() {\n currentListeners = nextListeners;\n var listeners = currentListeners;\n for (var i = 0; i < listeners.length; i++) {\n listeners[i].apply(listeners, arguments);\n }\n }\n\n return {\n listen: listen,\n emit: emit\n };\n};","import { css } from 'styled-components';\n\nimport { colorIsDark, getRGBA, normalizeColor } from './colors';\nimport { evalStyle } from './styles';\n\nexport const normalizeBackground = (background, theme) => {\n // If the background has a light or dark object, use that\n let result = background;\n if (background) {\n if (theme.dark && background.dark && typeof background.dark !== 'boolean') {\n result = background.dark;\n } else if (\n !theme.dark &&\n background.light &&\n typeof background.light !== 'boolean'\n ) {\n result = background.light;\n }\n result = evalStyle(result, theme);\n }\n return result;\n};\n\nexport const backgroundIsDark = (backgroundArg, theme) => {\n const background = normalizeBackground(backgroundArg, theme);\n let result;\n if (background) {\n if (typeof background === 'object') {\n const { color, dark, opacity } = background;\n if (typeof dark === 'boolean') {\n result = dark;\n } else if (\n color &&\n // weak opacity means we keep the existing darkness\n (!opacity || opacity !== 'weak')\n ) {\n const backgroundColor = normalizeColor(background.color, theme);\n if (backgroundColor) {\n result = colorIsDark(backgroundColor);\n }\n }\n } else {\n const color = normalizeColor(background, theme);\n if (color) {\n result = colorIsDark(color);\n }\n }\n }\n return result;\n};\n\nexport const backgroundStyle = (backgroundArg, theme, textColorArg) => {\n // If the background has a light or dark object, use that\n const background = normalizeBackground(backgroundArg, theme);\n const textColor = textColorArg || theme.global.colors.text;\n\n if (typeof background === 'object') {\n const styles = [];\n if (background.image) {\n let color;\n if (background.dark === false) {\n color = normalizeColor(textColor.light || textColor, theme);\n } else if (background.dark) {\n color = normalizeColor(textColor.dark || textColor, theme);\n } else if (!textColorArg) {\n color = 'inherit';\n }\n styles.push(css`\n background-image: ${background.image};\n background-repeat: ${background.repeat || 'no-repeat'};\n background-position: ${background.position || 'center center'};\n background-size: ${background.size || 'cover'};\n color: ${color};\n `);\n }\n if (background.color) {\n const color = normalizeColor(background.color, theme);\n const backgroundColor =\n getRGBA(\n color,\n background.opacity === true\n ? theme.global.opacity.medium\n : theme.global.opacity[background.opacity] || background.opacity,\n ) || color;\n styles.push(css`\n background-color: ${backgroundColor};\n ${(!background.opacity || background.opacity !== 'weak') &&\n `color: ${normalizeColor(\n textColor[\n background.dark || colorIsDark(backgroundColor) ? 'dark' : 'light'\n ] || textColor,\n theme,\n )};`}\n `);\n }\n if (background.dark === false) {\n styles.push(css`\n color: ${textColor.light || textColor};\n `);\n } else if (background.dark) {\n styles.push(css`\n color: ${textColor.dark || textColor};\n `);\n }\n return styles;\n }\n\n if (background) {\n if (background.lastIndexOf('url', 0) === 0) {\n return css`\n background: ${background} no-repeat center center;\n background-size: cover;\n `;\n }\n const backgroundColor = normalizeColor(background, theme);\n if (backgroundColor) {\n const backgroundDark = colorIsDark(backgroundColor);\n return css`\n background: ${backgroundColor};\n color: ${normalizeColor(\n textColor[\n backgroundDark || (backgroundDark === undefined && theme.dark)\n ? 'dark'\n : 'light'\n ] || textColor,\n theme,\n )};\n `;\n }\n }\n\n return undefined;\n};\n\nexport const activeStyle = css`\n ${props =>\n backgroundStyle(\n normalizeColor(props.theme.global.active.background, props.theme),\n props.theme,\n props.theme.global.active.color,\n )}\n`;\n\nexport const selectedStyle = css`\n ${props =>\n backgroundStyle(\n normalizeColor(props.theme.global.selected.background, props.theme),\n props.theme,\n props.theme.global.selected.color,\n )}\n`;\n\nexport const getHoverIndicatorStyle = (hoverIndicator, theme) => {\n let background;\n if (hoverIndicator === true || hoverIndicator === 'background') {\n ({ background } = theme.global.hover);\n } else {\n background = hoverIndicator;\n }\n return css`\n ${backgroundStyle(background, theme, theme.global.hover.color)}\n `;\n};\n","import { css } from 'styled-components';\n\nimport { normalizeColor } from './colors';\nimport { breakpointStyle, parseMetricToNum } from './mixins';\n\nexport const baseStyle = css`\n font-family: ${props => props.theme.global.font.family};\n font-size: ${props => props.theme.global.font.size};\n line-height: ${props => props.theme.global.font.height};\n font-weight: ${props => props.theme.global.font.weight};\n ${props =>\n !props.plain &&\n props.theme.global.colors.background &&\n css`\n background: ${normalizeColor('background', props.theme, true)};\n color: ${normalizeColor('text', props.theme, true)};\n `} box-sizing: border-box;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n`;\n\nexport const controlBorderStyle = css`\n border: ${props => props.theme.global.control.border.width} solid\n ${props =>\n normalizeColor(\n props.theme.global.control.border.color || 'border',\n props.theme,\n )};\n border-radius: ${props => props.theme.global.control.border.radius};\n`;\n\nexport const edgeStyle = (\n kind,\n data,\n responsive,\n responsiveBreakpoint,\n theme,\n) => {\n const breakpoint =\n responsiveBreakpoint && theme.global.breakpoints[responsiveBreakpoint];\n\n if (typeof data === 'string') {\n return css`\n ${kind}: ${theme.global.edgeSize[data] || data};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}: ${breakpoint.edgeSize[data] || data};\n `,\n )\n : ''};\n `;\n }\n const result = [];\n if (data.horizontal) {\n result.push(css`\n ${kind}-left: ${theme.global.edgeSize[data.horizontal] ||\n data.horizontal};\n ${kind}-right: ${theme.global.edgeSize[data.horizontal] ||\n data.horizontal};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-left: ${breakpoint.edgeSize[data.horizontal] ||\n data.horizontal};\n ${kind}-right: ${breakpoint.edgeSize[data.horizontal] ||\n data.horizontal};\n `,\n )\n : ''};\n `);\n }\n if (data.vertical) {\n result.push(css`\n ${kind}-top: ${theme.global.edgeSize[data.vertical] || data.vertical};\n ${kind}-bottom: ${theme.global.edgeSize[data.vertical] || data.vertical};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-top: ${breakpoint.edgeSize[data.vertical] || data.vertical};\n ${kind}-bottom: ${breakpoint.edgeSize[data.vertical] || data.vertical};\n `,\n )\n : ''};\n `);\n }\n if (data.top) {\n result.push(css`\n ${kind}-top: ${theme.global.edgeSize[data.top] || data.top};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-top: ${breakpoint.edgeSize[data.top] || data.top};\n `,\n )\n : ''};\n `);\n }\n if (data.bottom) {\n result.push(css`\n ${kind}-bottom: ${theme.global.edgeSize[data.bottom] || data.bottom};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-bottom: ${breakpoint.edgeSize[data.bottom] || data.bottom};\n `,\n )\n : ''};\n `);\n }\n if (data.left) {\n result.push(css`\n ${kind}-left: ${theme.global.edgeSize[data.left] || data.left};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-left: ${breakpoint.edgeSize[data.left] || data.left};\n `,\n )\n : ''};\n `);\n }\n if (data.right) {\n result.push(css`\n ${kind}-right: ${theme.global.edgeSize[data.right] || data.right};\n ${responsive && breakpoint\n ? breakpointStyle(\n breakpoint,\n `\n ${kind}-right: ${breakpoint.edgeSize[data.right] || data.right};\n `,\n )\n : ''};\n `);\n }\n return result;\n};\n\n// focus also supports clickable elements inside svg\nexport const focusStyle = css`\n > circle,\n > ellipse,\n > line,\n > path,\n > polygon,\n > polyline,\n > rect {\n outline: ${props =>\n normalizeColor(props.theme.global.focus.border.color, props.theme)}\n solid 2px;\n }\n outline-color: ${props =>\n normalizeColor(props.theme.global.focus.border.color, props.theme)};\n border-color: ${props =>\n normalizeColor(props.theme.global.focus.border.color, props.theme)};\n box-shadow: 0 0 2px 2px\n ${props =>\n normalizeColor(props.theme.global.focus.border.color, props.theme)};\n\n ::-moz-focus-inner {\n border: 0;\n }\n`;\n\nexport const inputStyle = css`\n box-sizing: border-box;\n font-size: inherit;\n font-family: inherit;\n border: none;\n -webkit-appearance: none;\n padding: ${props =>\n parseMetricToNum(props.theme.global.input.padding) -\n parseMetricToNum(props.theme.global.control.border.width)}px;\n outline: none;\n background: transparent;\n color: inherit;\n ${props =>\n props.theme.global.input.weight &&\n css`\n font-weight: ${props.theme.global.input.weight};\n `} margin: 0;\n\n ${props =>\n props.focus &&\n (!props.plain || props.focusIndicator) &&\n focusStyle} ${controlBorderStyle}\n\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n`;\n\nexport const overflowStyle = overflowProp => {\n if (typeof overflowProp === 'string') {\n return css`\n overflow: ${overflowProp};\n `;\n }\n\n return css`\n ${overflowProp.horizontal &&\n `overflow-x: ${overflowProp.horizontal};`} ${overflowProp.vertical &&\n `overflow-y: ${overflowProp.vertical};`};\n `;\n};\n\nconst placeholderColor = css`\n color: ${props => props.theme.global.colors.placeholder};\n`;\n\nexport const placeholderStyle = css`\n &::-webkit-input-placeholder {\n ${placeholderColor};\n }\n\n &::-moz-placeholder {\n ${placeholderColor};\n }\n\n &:-ms-input-placeholder {\n ${placeholderColor};\n }\n`;\n\n// evalStyle() converts a styled-components item into a string\nexport const evalStyle = (arg, theme) => {\n if (arg && Array.isArray(arg) && typeof arg[0] === 'function') {\n return arg[0]({ theme });\n }\n return arg;\n};\n\nconst ALIGN_SELF_MAP = {\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nexport const genericStyles = css`\n ${props =>\n props.alignSelf && `align-self: ${ALIGN_SELF_MAP[props.alignSelf]};`}\n ${props => props.gridArea && `grid-area: ${props.gridArea};`}\n ${props =>\n props.margin &&\n edgeStyle(\n 'margin',\n props.margin,\n props.responsive,\n props.theme.global.edgeSize.responsiveBreakpoint,\n props.theme,\n )}\n`;\n\nexport const disabledStyle = componentStyle => css`\n opacity: ${props =>\n componentStyle || props.theme.global.control.disabled.opacity};\n cursor: default;\n`;\n\nexport const sizeStyle = (name, value, theme) => css`\n ${name}: ${theme.global.size[value] || value};\n`;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _PropTypes = require('./PropTypes');\n\nvar _PropTypes2 = _interopRequireDefault(_PropTypes);\n\nvar _describe = require('./describe');\n\nvar _describe2 = _interopRequireDefault(_describe);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.PropTypes = _PropTypes2.default;\nexports.describe = _describe2.default;\n\nexports.default = {\n describe: _describe2.default,\n PropTypes: _PropTypes2.default\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || 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; };\n\n// array function should not be used here so that we can the local this\nvar addPropTypeDocumentationField = function addPropTypeDocumentationField(fieldName) {\n return function addFieldToReactDesc(value) {\n if (!this.reactDesc) {\n this.reactDesc = {};\n }\n this.reactDesc[fieldName] = value;\n return this;\n };\n};\n\nvar documentedPropType = {\n defaultValue: addPropTypeDocumentationField('defaultValue'),\n description: addPropTypeDocumentationField('description'),\n deprecated: addPropTypeDocumentationField('deprecated'),\n format: addPropTypeDocumentationField('format')\n};\n\nvar createPropType = function createPropType(type) {\n var propTypeObj = _extends({\n type: type\n }, documentedPropType);\n Object.defineProperty(propTypeObj, 'isRequired', {\n get: function getRequired() {\n if (!this.reactDesc) {\n this.reactDesc = {};\n }\n this.reactDesc.required = true;\n return this;\n },\n enumerable: true,\n configurable: true\n });\n return propTypeObj;\n};\n\nvar createPropTypeWithArgs = function createPropTypeWithArgs(type) {\n return function (args) {\n var propTypeObj = _extends({\n args: args,\n type: type\n }, documentedPropType);\n Object.defineProperty(propTypeObj, 'isRequired', {\n get: function getRequired() {\n if (!this.reactDesc) {\n this.reactDesc = {};\n }\n this.reactDesc.required = true;\n return this;\n },\n enumerable: true,\n configurable: true\n });\n return propTypeObj;\n };\n};\n\nvar PropTypes = {\n custom: function custom(callback) {\n var target = callback.bind(null);\n target.type = 'func';\n Object.keys(documentedPropType).forEach(function (fieldName) {\n target[fieldName] = documentedPropType[fieldName];\n });\n return target;\n }\n};\n\nfunction definePropType(type) {\n Object.defineProperty(PropTypes, type, {\n get: function getPropType() {\n return createPropType(type);\n },\n enumerable: true,\n configurable: true\n });\n}\n\nfunction definePropTypeWithArgs(type) {\n Object.defineProperty(PropTypes, type, {\n get: function getPropType() {\n return createPropTypeWithArgs(type);\n },\n enumerable: true,\n configurable: true\n });\n}\n\ndefinePropType('any');\ndefinePropType('array');\ndefinePropType('bool');\ndefinePropType('element');\ndefinePropType('func');\ndefinePropType('node');\ndefinePropType('number');\ndefinePropType('object');\ndefinePropType('symbol');\ndefinePropType('string');\n\ndefinePropTypeWithArgs('arrayOf');\ndefinePropTypeWithArgs('instanceOf');\ndefinePropTypeWithArgs('objectOf');\ndefinePropTypeWithArgs('oneOfType');\ndefinePropTypeWithArgs('oneOf');\ndefinePropTypeWithArgs('shape');\n\nexports.default = PropTypes;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || 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; };\n\nexports.default = descToJSON;\n\nvar arrayFormat = function arrayFormat(array, prefix) {\n return array.map(function (propType) {\n return propTypeFormat(propType, prefix);\n });\n};\n\nvar shapeFormat = function shapeFormat(shape, prefix) {\n var props = Object.keys(shape).map(function (key) {\n var value = shape[key];\n var valueFormat = void 0;\n if (value.type && (value.type === 'arrayOf' || value.type === 'oneOfType' || value.type === 'oneOf') && Array.isArray(value.args)) {\n valueFormat = '\\n' + propTypeFormat(value, prefix + ' ');\n } else if (value.type === 'shape') {\n valueFormat = '\\n' + propTypeFormat(value, prefix + ' ');\n } else {\n valueFormat = propTypeFormat(value);\n }\n return prefix + ' ' + key + ': ' + valueFormat;\n });\n return prefix + '{\\n' + props.join(',\\n') + '\\n' + prefix + '}';\n};\n\nvar propTypeFormat = function propTypeFormat(propType) {\n var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n var result = void 0;\n if (propType.type) {\n switch (propType.type) {\n case 'arrayOf':\n if (Array.isArray(propType.args)) {\n result = prefix + '[\\n' + arrayFormat(propType.args, prefix + ' ').join('\\n') + '\\n' + prefix + ']';\n } else if (propType.args.type === 'oneOfType') {\n result = prefix + '[\\n' + propTypeFormat(propType.args, prefix + ' ') + '\\n' + prefix + ']';\n } else {\n result = prefix + '[' + propTypeFormat(propType.args) + ']';\n }\n break;\n case 'bool':\n result = prefix + 'boolean';\n break;\n case 'func':\n result = prefix + 'function';\n break;\n case 'instanceOf':\n result = prefix + 'new ' + propType.args.name + '(...)';\n break;\n case 'objectOf':\n result = prefix + '{ test: ' + propType.args.type + ', ... }';\n break;\n case 'oneOf':\n result = propType.args.map(function (a) {\n return '' + prefix + a;\n }).join('\\n');\n break;\n case 'oneOfType':\n if (Array.isArray(propType.args)) {\n result = arrayFormat(propType.args, prefix).join('\\n');\n } else {\n result = '' + prefix + propTypeFormat(propType.args);\n }\n break;\n case 'shape':\n result = '' + shapeFormat(propType.args, prefix);\n break;\n default:\n result = '' + prefix + propType.type;\n break;\n }\n } else {\n result = prefix + 'custom';\n }\n return result;\n};\n\nvar propTypeAsJson = function propTypeAsJson(propType, propName, defaultValue) {\n var documentation = _extends({}, propType.reactDesc, {\n name: propName\n });\n\n if (defaultValue) {\n documentation.defaultValue = defaultValue;\n }\n\n documentation.format = documentation.format || propTypeFormat(propType);\n\n return documentation;\n};\n\nfunction descToJSON(component) {\n var reactDesc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!component) {\n throw new Error('react-desc: component is required');\n }\n\n var documentation = _extends({\n name: component.displayName || component.name\n }, reactDesc);\n if (reactDesc) {\n delete documentation.propTypes;\n\n if (reactDesc.propTypes) {\n var propTypes = [];\n Object.keys(reactDesc.propTypes).forEach(function (propName) {\n var propType = reactDesc.propTypes[propName];\n propTypes.push(propTypeAsJson(propType, propName, (component.defaultProps || {})[propName]));\n });\n if (propTypes.length > 0) {\n documentation.properties = propTypes;\n }\n }\n }\n return documentation;\n}","import { rgba } from 'polished';\nimport { css } from 'styled-components';\n\nimport { Actions } from 'grommet-icons/icons/Actions';\nimport { ClosedCaption } from 'grommet-icons/icons/ClosedCaption';\nimport { Expand } from 'grommet-icons/icons/Expand';\nimport { FormDown } from 'grommet-icons/icons/FormDown';\nimport { FormNext } from 'grommet-icons/icons/FormNext';\nimport { FormPrevious } from 'grommet-icons/icons/FormPrevious';\nimport { FormUp } from 'grommet-icons/icons/FormUp';\nimport { Next } from 'grommet-icons/icons/Next';\nimport { Pause } from 'grommet-icons/icons/Pause';\nimport { Play } from 'grommet-icons/icons/Play';\nimport { Previous } from 'grommet-icons/icons/Previous';\nimport { Subtract } from 'grommet-icons/icons/Subtract';\nimport { Volume } from 'grommet-icons/icons/Volume';\nimport { VolumeLow } from 'grommet-icons/icons/VolumeLow';\nimport { base as iconBase } from 'grommet-icons/themes/base';\n\nimport { deepFreeze, deepMerge } from '../utils/object';\nimport { normalizeColor } from '../utils/colors';\n\nconst brandColor = '#7D4CDB';\nconst accentColors = ['#6FFFB0', '#FD6FFF', '#81FCED', '#FFCA58'];\nconst neutralColors = ['#00873D', '#3D138D', '#00739D', '#A2423D'];\nconst statusColors = {\n critical: '#FF4040',\n error: '#FF4040',\n warning: '#FFAA15',\n ok: '#00C781',\n unknown: '#CCCCCC',\n disabled: '#CCCCCC',\n};\nconst darkColors = [\n '#333333',\n '#555555',\n '#777777',\n '#999999',\n '#999999',\n '#999999',\n];\nconst lightColors = [\n '#F8F8F8',\n '#F2F2F2',\n '#EDEDED',\n '#DADADA',\n '#DADADA',\n '#DADADA',\n];\nconst focusColor = accentColors[0];\n\nconst colors = {\n active: rgba(221, 221, 221, 0.5),\n black: '#000000',\n border: {\n dark: rgba(255, 255, 255, 0.33),\n light: rgba(0, 0, 0, 0.33),\n },\n brand: brandColor,\n control: {\n dark: 'accent-1',\n light: 'brand',\n },\n focus: focusColor,\n // \"graph-0\": 'accent-1',\n // \"graph-1\": 'neutral-1',\n // \"graph-2\": 'accent-2',\n // \"graph-3\": 'neutral-2',\n placeholder: '#AAAAAA',\n selected: 'brand',\n text: {\n dark: '#f8f8f8',\n light: '#444444',\n },\n icon: {\n dark: '#f8f8f8',\n light: '#666666',\n },\n white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n array.forEach((color, index) => {\n colors[`${prefix}-${index + 1}`] = color;\n });\n\ncolorArray(accentColors, 'accent');\ncolorArray(darkColors, 'dark');\ncolorArray(lightColors, 'light');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach(color => {\n colors[`status-${color}`] = statusColors[color];\n});\n\nexport const generate = (baseSpacing = 24, scale = 6) => {\n // 24\n const baseFontSize = baseSpacing * 0.75; // 18\n const fontScale = baseSpacing / scale; // 4\n\n const fontSizing = factor => ({\n size: `${baseFontSize + factor * fontScale}px`,\n height: `${baseSpacing + factor * fontScale}px`,\n // maxWidth chosen to be ~50 characters wide\n // see: https://ux.stackexchange.com/a/34125\n maxWidth: `${baseSpacing * (baseFontSize + factor * fontScale)}px`,\n });\n\n const borderWidth = 2;\n\n const result = deepMerge(iconBase, {\n global: {\n active: {\n background: {\n color: 'active',\n opacity: 'medium',\n },\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n animation: {\n duration: '1s',\n jiggle: {\n duration: '0.1s',\n },\n },\n borderSize: {\n xsmall: '1px',\n small: '2px',\n medium: `${baseSpacing / 6}px`, // 4\n large: `${baseSpacing / 2}px`, // 12\n xlarge: `${baseSpacing}px`, // 24\n },\n breakpoints: {\n small: {\n value: baseSpacing * 32, // 768\n borderSize: {\n xsmall: '1px',\n small: '2px',\n medium: `${baseSpacing / 6}px`, // 4\n large: `${baseSpacing / 4}px`, // 6\n xlarge: `${baseSpacing / 2}px`, // 12\n },\n edgeSize: {\n none: '0px',\n hair: '1px', // for Chart\n xxsmall: '2px',\n xsmall: `${baseSpacing / 8}px`, // 3\n small: `${baseSpacing / 4}px`, // 6\n medium: `${baseSpacing / 2}px`, // 12\n large: `${baseSpacing}px`, // 24\n xlarge: `${baseSpacing * 2}px`, // 48\n },\n size: {\n xxsmall: `${baseSpacing}px`, // 24\n xsmall: `${baseSpacing * 2}px`, // 48\n small: `${baseSpacing * 4}px`, // 96\n medium: `${baseSpacing * 8}px`, // 192\n large: `${baseSpacing * 16}px`, // 384\n xlarge: `${baseSpacing * 32}px`, // 768\n full: '100%',\n },\n },\n medium: {\n value: baseSpacing * 64, // 1536\n },\n large: {}, // anything above 'medium'\n },\n // Breakpoints used at Server Side Rendering for the initial rendering\n // These values correspond to the theme breakpoints\n deviceBreakpoints: {\n phone: 'small',\n tablet: 'medium',\n computer: 'large',\n },\n colors,\n control: {\n border: {\n width: '1px',\n radius: '4px',\n color: 'border',\n },\n disabled: {\n opacity: 0.3,\n },\n },\n // The time to wait after the user stopped typing, measured in ms.\n debounceDelay: 300,\n drop: {\n background: '#ffffff',\n border: {\n radius: '0px',\n },\n shadowSize: 'small',\n zIndex: '20',\n },\n edgeSize: {\n none: '0px',\n hair: '1px', // for Chart\n xxsmall: `${baseSpacing / 8}px`, // 3\n xsmall: `${baseSpacing / 4}px`, // 6\n small: `${baseSpacing / 2}px`, // 12\n medium: `${baseSpacing}px`, // 24\n large: `${baseSpacing * 2}px`, // 48\n xlarge: `${baseSpacing * 4}px`, // 96\n responsiveBreakpoint: 'small',\n },\n elevation: {\n light: {\n none: 'none',\n xsmall: '0px 1px 2px rgba(0, 0, 0, 0.20)',\n small: '0px 2px 4px rgba(0, 0, 0, 0.20)',\n medium: '0px 4px 8px rgba(0, 0, 0, 0.20)',\n large: '0px 8px 16px rgba(0, 0, 0, 0.20)',\n xlarge: '0px 12px 24px rgba(0, 0, 0, 0.20)',\n },\n dark: {\n none: 'none',\n xsmall: '0px 2px 2px rgba(255, 255, 255, 0.40)',\n small: '0px 4px 4px rgba(255, 255, 255, 0.40)',\n medium: '0px 6px 8px rgba(255, 255, 255, 0.40)',\n large: '0px 8px 16px rgba(255, 255, 255, 0.40)',\n xlarge: '0px 12px 24px rgba(255, 255, 255, 0.40)',\n },\n },\n focus: {\n border: {\n color: 'focus',\n },\n },\n font: {\n ...fontSizing(0),\n // face: undefined,\n // family: undefined,\n },\n hover: {\n background: {\n color: 'active',\n opacity: 'medium',\n },\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n input: {\n padding: `${baseSpacing / 2}px`,\n weight: 600,\n },\n opacity: {\n strong: 0.8,\n medium: 0.4,\n weak: 0.1,\n },\n selected: {\n background: 'selected',\n color: 'white',\n },\n spacing: `${baseSpacing}px`,\n size: {\n xxsmall: `${baseSpacing * 2}px`, // 48\n xsmall: `${baseSpacing * 4}px`, // 96\n small: `${baseSpacing * 8}px`, // 192\n medium: `${baseSpacing * 16}px`, // 384\n large: `${baseSpacing * 32}px`, // 768\n xlarge: `${baseSpacing * 48}px`, // 1152\n xxlarge: `${baseSpacing * 64}px`, // 1536\n full: '100%',\n },\n },\n accordion: {\n border: {\n side: 'bottom',\n color: 'border',\n },\n heading: { level: '4' }, // level ranges from 1-6\n icons: {\n collapse: FormUp,\n expand: FormDown,\n // color: { dark: undefined, light: undefined },\n },\n },\n anchor: {\n textDecoration: 'none',\n fontWeight: 600,\n color: {\n dark: 'accent-1',\n light: 'brand',\n },\n hover: {\n textDecoration: 'underline',\n // fontWeight: undefined,\n // extend: undefined,\n },\n // extend: undefined,\n },\n box: {\n responsiveBreakpoint: 'small', // when we switch rows to columns\n // extend: undefined,\n },\n button: {\n border: {\n // color: { dark: undefined, light: undefined }\n width: `${borderWidth}px`,\n radius: `${baseSpacing * 0.75}px`,\n },\n // color: { dark: undefined, light: undefined }\n primary: {\n // color: { dark: undefined, light: undefined }\n },\n // disabled: { opacity: undefined },\n padding: {\n vertical: `${baseSpacing / 4 - borderWidth}px`,\n horizontal: `${baseSpacing - borderWidth}px`,\n },\n },\n calendar: {\n // daySize must align with global.size\n small: {\n fontSize: `${baseFontSize - fontScale}px`,\n lineHeight: 1.375,\n daySize: `${(baseSpacing * 8) / 7}px`,\n slideDuration: '0.2s',\n },\n medium: {\n fontSize: `${baseFontSize}px`,\n lineHeight: 1.45,\n daySize: `${(baseSpacing * 16) / 7}px`,\n slideDuration: '0.5s',\n },\n large: {\n fontSize: `${baseFontSize + 3 * fontScale}px`,\n lineHeight: 1.11,\n daySize: `${(baseSpacing * 32) / 7}px`,\n slideDuration: '0.8s',\n },\n icons: {\n previous: Previous,\n next: Next,\n small: {\n previous: FormPrevious,\n next: FormNext,\n },\n },\n heading: { level: '4' }, // level ranges from 1-6\n },\n carousel: {\n icons: {\n current: Subtract,\n next: Next,\n previous: Previous,\n // color: { dark: undefined, light: undefined },\n },\n animation: {\n duration: 1000,\n },\n disabled: {\n icons: {\n // color: { dark: undefined, light: undefined },\n },\n },\n },\n chart: {\n color: 'accent-1',\n // extend: undefined,\n },\n checkBox: {\n border: {\n color: {\n dark: 'rgba(255, 255, 255, 0.5)',\n light: 'rgba(0, 0, 0, 0.15)',\n },\n width: '2px',\n },\n check: {\n // extend: undefined,\n radius: '4px',\n thickness: '4px',\n },\n // color: { dark: undefined, light: undefined },\n // extend: undefined,\n // gap: undefined\n hover: {\n border: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n },\n icon: {\n // size: undefined,\n // extend: undefined,\n },\n icons: {\n // checked: undefined,\n // indeterminate: undefined,\n },\n size: `${baseSpacing}px`,\n toggle: {\n // background: undefined\n color: {\n dark: '#d9d9d9',\n light: '#d9d9d9',\n },\n knob: {\n // extend: undefined,\n },\n radius: `${baseSpacing}px`,\n size: `${baseSpacing * 2}px`,\n // extend: undefined,\n },\n },\n clock: {\n analog: {\n // extend: undefined,\n hour: {\n color: {\n dark: 'light-2',\n light: 'dark-3',\n },\n width: `${baseSpacing / 3}px`,\n size: `${baseSpacing}px`,\n shape: 'round',\n },\n minute: {\n color: {\n dark: 'light-4',\n light: 'dark-3',\n },\n width: `${baseSpacing / 6}px`,\n size: `${Math.round(baseSpacing / 2)}px`,\n shape: 'round',\n },\n second: {\n color: {\n dark: 'accent-1',\n light: 'accent-1',\n },\n width: `${baseSpacing / 8}px`,\n size: `${Math.round(baseSpacing / 2.666)}px`,\n shape: 'round',\n },\n size: {\n small: `${baseSpacing * 3}px`,\n medium: `${baseSpacing * 4}px`,\n large: `${baseSpacing * 6}px`,\n xlarge: `${baseSpacing * 9}px`,\n huge: `${baseSpacing * 12}px`,\n },\n },\n digital: {\n text: {\n xsmall: { size: `${baseFontSize - 2 * fontScale}px`, height: 1.5 },\n small: { size: `${baseFontSize - fontScale}px`, height: 1.43 },\n medium: { size: `${baseFontSize}px`, height: 1.375 },\n large: { size: `${baseFontSize + fontScale}px`, height: 1.167 },\n xlarge: { size: `${baseFontSize + 2 * fontScale}px`, height: 1.1875 },\n xxlarge: { size: `${baseFontSize + 4 * fontScale}px`, height: 1.125 },\n },\n },\n },\n collapsible: {\n minSpeed: 200,\n baseline: 500,\n },\n dataTable: {\n groupHeader: {\n background: {\n dark: 'dark-2',\n light: 'light-2',\n },\n border: { side: 'bottom', size: 'xsmall' },\n pad: { horizontal: 'small', vertical: 'xsmall' },\n },\n groupEnd: {\n border: { side: 'bottom', size: 'xsmall' },\n },\n header: {},\n icons: {\n ascending: FormDown,\n contract: FormUp,\n descending: FormUp,\n expand: FormDown,\n },\n primary: {\n weight: 'bold',\n },\n resize: {\n border: {\n color: 'border',\n side: 'right',\n },\n },\n },\n diagram: {\n // extend: undefined,\n line: {\n color: 'accent-1',\n },\n },\n // drop: {\n // extend: undefined,\n // maxHeight: undefined,\n // },\n formField: {\n border: {\n color: 'border',\n error: {\n color: {\n dark: 'white',\n light: 'status-critical',\n },\n },\n position: 'inner',\n side: 'bottom',\n },\n content: {\n pad: {\n horizontal: 'small',\n bottom: 'small',\n },\n },\n error: {\n color: {\n dark: 'status-critical',\n light: 'status-critical',\n },\n margin: { vertical: 'xsmall', horizontal: 'small' },\n },\n // extend: undefined,\n help: {\n color: {\n dark: 'dark-3',\n light: 'dark-3',\n },\n margin: {\n left: 'small',\n },\n },\n label: {\n margin: { vertical: 'xsmall', horizontal: 'small' },\n },\n margin: { bottom: 'small' },\n },\n grommet: {\n // extend: undefined\n },\n heading: {\n font: {\n // family: undefined\n },\n level: {\n 1: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(4) },\n medium: { ...fontSizing(8) },\n large: { ...fontSizing(16) },\n xlarge: { ...fontSizing(24) },\n },\n 2: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(2) },\n medium: { ...fontSizing(4) },\n large: { ...fontSizing(8) },\n xlarge: { ...fontSizing(12) },\n },\n 3: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(1) },\n medium: { ...fontSizing(2) },\n large: { ...fontSizing(4) },\n xlarge: { ...fontSizing(6) },\n },\n 4: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(0) },\n medium: { ...fontSizing(0) },\n large: { ...fontSizing(0) },\n xlarge: { ...fontSizing(0) },\n },\n 5: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(-0.5) },\n medium: { ...fontSizing(-0.5) },\n large: { ...fontSizing(-0.5) },\n xlarge: { ...fontSizing(-0.5) },\n },\n 6: {\n font: {\n // family: undefined,\n // weight: undefined,\n },\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(-1) },\n large: { ...fontSizing(-1) },\n xlarge: { ...fontSizing(-1) },\n },\n },\n responsiveBreakpoint: 'small', // when we scale the font size down\n weight: 600,\n },\n layer: {\n background: 'white',\n border: {\n radius: '4px',\n },\n container: {\n zIndex: '15',\n },\n // extend: undefined,\n overlay: {\n background: 'rgba(0, 0, 0, 0.5)',\n },\n responsiveBreakpoint: 'small', // when Layer takes over the full screen\n zIndex: '10',\n },\n list: {\n item: {\n // background: undefined,\n border: 'horizontal',\n pad: { horizontal: 'medium', vertical: 'small' },\n // extend: undefined,\n },\n // extend: undefined,\n },\n maskedInput: {\n // extend: undefined,\n },\n menu: {\n // background: undefined,\n // extend: undefined,\n icons: {\n down: FormDown,\n },\n },\n meter: {\n color: 'accent-1',\n // colors: [],\n // extend: undefined,\n },\n paragraph: {\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(0) },\n large: { ...fontSizing(1) },\n xlarge: { ...fontSizing(2) },\n xxlarge: { ...fontSizing(4) },\n },\n radioButton: {\n border: {\n color: {\n dark: 'rgba(255, 255, 255, 0.5)',\n light: 'rgba(0, 0, 0, 0.15)',\n },\n width: '2px',\n },\n check: {\n radius: '100%',\n // color: { dark: undefined, light: undefined },\n // extend: undefined,\n },\n hover: {\n border: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n },\n icon: {\n // size: undefined,\n // extend: undefined,\n },\n icons: {\n // circle: undefined,\n },\n gap: 'small',\n size: `${baseSpacing}px`,\n },\n rangeInput: {\n track: {\n height: '4px',\n color: css`\n ${props => rgba(normalizeColor('border', props.theme), 0.2)};\n `,\n },\n thumb: {\n // color: { dark: undefined, light: undefined },\n },\n },\n rangeSelector: {\n background: {\n invert: {\n color: 'light-4',\n },\n },\n // edge: {\n // type: undefined,\n // },\n },\n select: {\n // background: undefined,\n container: {\n // extend: undefined,\n },\n control: {\n // extend: undefined,\n // open: undefined,\n },\n icons: {\n // color: { dark: undefined, light: undefined },\n margin: { horizontal: 'small' },\n down: FormDown,\n },\n options: {\n container: {\n align: 'start',\n pad: 'small',\n },\n text: {\n margin: 'none',\n },\n },\n // searchInput: undefined,\n step: 20,\n },\n tab: {\n active: {\n color: 'text',\n // background: undefined,\n },\n // background: undefined,\n border: {\n side: 'bottom',\n size: 'small',\n color: {\n dark: 'accent-1',\n light: 'brand',\n },\n active: {\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n hover: {\n color: {\n dark: 'white',\n light: 'black',\n },\n // extend: undefined,\n },\n },\n color: 'control',\n // extend: undefined,\n hover: {\n // background: undefined,\n // extend: undefined,\n color: {\n dark: 'white',\n light: 'black',\n },\n },\n margin: {\n vertical: 'xxsmall',\n horizontal: 'small',\n },\n pad: {\n bottom: 'xsmall',\n },\n },\n tabs: {\n // background: undefined,\n // extend: undefined,\n // gap: undefined,\n header: {\n // background: undefined,\n // extend: undefined,\n },\n panel: {\n // extend: undefined,\n },\n },\n table: {\n header: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n border: 'bottom',\n // verticalAlign: undefined,\n // background: undefined,\n // extend: undefined,\n },\n body: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n // background: undefined,\n // border: undefined,\n // extend: undefined,\n },\n // row: {\n // hover: {\n // background: undefined,\n // color: undefined,\n // },\n // },\n footer: {\n align: 'start',\n pad: { horizontal: 'small', vertical: 'xsmall' },\n border: 'top',\n // verticalAlign: undefined,\n // background: undefined,\n // extend: undefined,\n },\n },\n text: {\n xsmall: { ...fontSizing(-1.5) },\n small: { ...fontSizing(-1) },\n medium: { ...fontSizing(0) }, // 18px\n large: { ...fontSizing(1) }, // 22px\n xlarge: { ...fontSizing(2) },\n xxlarge: { ...fontSizing(4) },\n },\n textArea: {\n // extend: undefined,\n // disabled: { opacity: undefined },\n },\n textInput: {\n // extend: undefined,\n // disabled: { opacity: undefined },\n },\n video: {\n captions: {\n background: 'rgba(0, 0, 0, 0.7)',\n },\n // controls: { background: undefined },\n icons: {\n closedCaption: ClosedCaption,\n configure: Actions,\n fullScreen: Expand,\n pause: Pause,\n play: Play,\n reduceVolume: VolumeLow,\n volume: Volume,\n // color: { dark: undefined, light: undefined },\n },\n // scrubber: { track: { color: undefined } },\n scrubber: {\n color: 'light-4',\n },\n },\n worldMap: {\n color: 'light-3',\n continent: {\n active: '8px',\n base: '6px',\n },\n hover: {\n color: 'light-4',\n },\n place: {\n active: '20px',\n base: '8px',\n },\n },\n });\n\n return deepFreeze(result);\n};\n\nexport const base = generate(24);\n","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\nvar base = {\n global: {\n colors: {\n icon: '#666666'\n }\n },\n icon: {\n size: {\n small: '12px',\n medium: '24px',\n large: '48px',\n xlarge: '96px'\n }\n }\n};\nexports.base = base;","import { createContext } from 'react';\n\nexport const AccordionContext = createContext({});\n","export { Collapsible } from './Collapsible';\n","export const normalizeValues = values =>\n (values || []).map((value, index) => {\n if (Array.isArray(value)) {\n return { value };\n }\n if (typeof value === 'number') {\n return { value: [index, value] };\n }\n return value;\n });\n\nexport const normalizeBounds = (bounds, values) => {\n let result = bounds;\n if (!result) {\n result = [[0, 1], [0, 1]];\n (values || []).forEach(value => {\n result[0][0] = Math.min(result[0][0], value.value[0]);\n result[0][1] = Math.max(result[0][1], value.value[0]);\n result[1][0] = Math.min(result[1][0], value.value[1]);\n result[1][1] = Math.max(result[1][1], value.value[1]);\n });\n }\n return result;\n};\n\nexport const areNormalizedValuesEquals = (valuesX, valuesY) => {\n if (!valuesX || !valuesY) return false;\n\n if (valuesX.length !== valuesY.length) return false;\n\n if (valuesX.length === 0) return true;\n\n if (!valuesX[0].value || !valuesY[0].value) return false;\n\n return valuesX.every((_, i) =>\n valuesX[i].value.every((value, index) => value === valuesY[i].value[index]),\n );\n};\n\nexport const areNormalizedBoundsEquals = (boundsX, boundsY) => {\n if (!boundsX || !boundsY) return false;\n\n if (boundsX.length !== boundsY.length || !(boundsX.length > 0)) return false;\n\n return boundsX.every((_, i) =>\n boundsX[i].every((value, index) => value === boundsY[i][index]),\n );\n};\n","export { CheckBox } from './CheckBox';\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { normalizeColor, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledHour = styled.line`\n stroke-width: ${props => props.theme.clock.analog.hour.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.hour.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledHour.defaultProps = {};\nObject.setPrototypeOf(StyledHour.defaultProps, defaultProps);\n\nconst StyledMinute = styled.line`\n stroke-width: ${props => props.theme.clock.analog.minute.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.minute.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledMinute.defaultProps = {};\nObject.setPrototypeOf(StyledMinute.defaultProps, defaultProps);\n\nconst StyledSecond = styled.line`\n stroke-width: ${props => props.theme.clock.analog.second.width};\n stroke: ${props =>\n normalizeColor(props.theme.clock.analog.second.color, props.theme)};\n transition: stroke 1s ease-out;\n`;\n\nStyledSecond.defaultProps = {};\nObject.setPrototypeOf(StyledSecond.defaultProps, defaultProps);\n\nconst StyledAnalog = styled.svg`\n width: ${props => props.theme.clock.analog.size[props.size]};\n height: ${props => props.theme.clock.analog.size[props.size]};\n\n ${genericStyles} ${props =>\n props.theme.clock.analog && props.theme.clock.analog.extend};\n`;\n\nStyledAnalog.defaultProps = {};\nObject.setPrototypeOf(StyledAnalog.defaultProps, defaultProps);\n\nconst sizeStyle = props => {\n // size is a combination of the level and size properties\n const size = props.size || 'medium';\n const data = props.theme.clock.digital.text[size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst StyledDigitalDigit = styled.div`\n position: relative;\n width: 0.8em;\n text-align: center;\n overflow: hidden;\n ${props => sizeStyle(props)};\n`;\n\nStyledDigitalDigit.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalDigit.defaultProps, defaultProps);\n\nconst previousUp = keyframes`\n 0% { transform: translateY(0); }\n 100% { transform: translateY(-100%); }\n`;\n\nconst previousDown = keyframes`\n 0% { transform: translateY(0); }\n 100% { transform: translateY(100%); }\n`;\n\nconst StyledDigitalPrevious = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n width: 0.8em;\n text-align: center;\n animation: ${props =>\n props.direction === 'down' ? previousDown : previousUp}\n 0.5s forwards;\n`;\n\nStyledDigitalPrevious.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalPrevious.defaultProps, defaultProps);\n\nconst nextUp = keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n`;\n\nconst nextDown = keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n`;\n\nconst StyledDigitalNext = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n width: 0.8em;\n text-align: center;\n animation: ${props => (props.direction === 'down' ? nextDown : nextUp)} 0.5s\n forwards;\n`;\n\nStyledDigitalNext.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalNext.defaultProps, defaultProps);\n\nexport {\n StyledHour,\n StyledMinute,\n StyledSecond,\n StyledAnalog,\n StyledDigitalDigit,\n StyledDigitalPrevious,\n StyledDigitalNext,\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport {\n getBodyChildElements,\n makeNodeFocusable,\n makeNodeUnfocusable,\n} from '../utils';\n\nconst isNotAncestorOf = child => parent => !parent.contains(child);\n\nexport const FocusedContainer = ({\n hidden = false,\n restrictScroll = false,\n children,\n ...rest\n}) => {\n const [bodyOverflowStyle, setBodyOverflowStyle] = useState('');\n const ref = useRef(null);\n\n useEffect(() => {\n const removeTrap = () => {\n const child = ref.current;\n getBodyChildElements()\n .filter(isNotAncestorOf(child))\n .forEach(makeNodeFocusable);\n if (restrictScroll) {\n document.body.style.overflow = bodyOverflowStyle;\n }\n };\n\n const trapFocus = () => {\n const child = ref.current;\n getBodyChildElements()\n .filter(isNotAncestorOf(child))\n .forEach(makeNodeUnfocusable);\n\n if (restrictScroll) {\n setBodyOverflowStyle(document.body.style.overflow);\n document.body.style.overflow = 'hidden';\n }\n };\n\n const timer = setTimeout(() => {\n if (!hidden) {\n trapFocus();\n }\n }, 0);\n\n return () => {\n removeTrap();\n clearTimeout(timer);\n };\n }, [hidden, bodyOverflowStyle, restrictScroll]);\n\n return (\n
\n {children}\n
\n );\n};\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { TableCell } from '../TableCell';\nimport { normalizeColor } from '../../utils';\n\nconst ExpanderCell = ({ context, expanded, onToggle, theme, ...rest }) => {\n let content;\n if (onToggle) {\n const ExpandIcon = theme.dataTable.icons[expanded ? 'contract' : 'expand'];\n content = ;\n }\n const normalizedThemeProps = {\n ...theme.table[context],\n ...theme.dataTable[context],\n };\n delete normalizedThemeProps.background;\n delete normalizedThemeProps.border;\n delete normalizedThemeProps.pad;\n content = (\n \n {content}\n \n );\n if (onToggle) {\n content = (\n \n {content}\n \n );\n }\n return (\n \n {content}\n \n );\n};\n\nExpanderCell.defaultProps = {};\nObject.setPrototypeOf(ExpanderCell.defaultProps, defaultProps);\n\nconst ExpanderCellWrapper = compose(withTheme)(ExpanderCell);\n\nexport { ExpanderCellWrapper as ExpanderCell };\n","export { base, generate } from './base';\nexport { grommet } from './grommet';\nexport { dark } from './dark';\n","export { Image } from './Image';\n","export { Layer } from './Layer';\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { baseStyle, backgroundStyle, breakpointStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst hiddenPositionStyle = css`\n left: -100%;\n right: 100%;\n z-index: -1;\n position: fixed;\n`;\n\nconst desktopLayerStyle = `\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n width: 100vw;\n height: 100vh;\n`;\n\nconst responsiveLayerStyle = `\n position: absolute;\n width: 100%;\n height: 100%;\n min-height: 100vh;\n`;\n\nconst StyledLayer = styled.div`\n ${baseStyle}\n background: unset;\n position: relative;\n z-index: ${props => props.theme.layer.zIndex};\n pointer-events: none;\n outline: none;\n\n ${props => {\n if (props.position === 'hidden') {\n return hiddenPositionStyle;\n }\n const styles = [desktopLayerStyle];\n if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n styles.push(breakpointStyle(breakpoint, responsiveLayerStyle));\n }\n return styles;\n }} ${props => props.theme.layer && props.theme.layer.extend};\n`;\n\nStyledLayer.defaultProps = {};\nObject.setPrototypeOf(StyledLayer.defaultProps, defaultProps);\n\nconst StyledOverlay = styled.div`\n position: absolute;\n ${props => {\n if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n return breakpointStyle(breakpoint, 'position: relative;');\n }\n return '';\n }} top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n ${props =>\n !props.plain &&\n props.theme.layer.overlay.background &&\n backgroundStyle(\n props.theme.layer.overlay.background,\n props.theme,\n )} pointer-events: all;\n`;\n\nconst getMargin = (margin, theme, position) => {\n const axis =\n position.indexOf('top') !== -1 || position.indexOf('bottom') !== -1\n ? 'vertical'\n : 'horizontal';\n const marginValue = margin[position] || margin[axis] || margin;\n const marginApplied = theme.global.edgeSize[marginValue] || marginValue;\n const marginInTheme = !!theme.global.edgeSize[marginValue];\n\n return !marginInTheme && typeof marginValue !== 'string'\n ? '0px'\n : marginApplied;\n};\n\nconst MARGINS = (margin, theme, position = undefined) => {\n if (position) {\n return getMargin(margin, theme, position);\n }\n return {\n bottom: getMargin(margin, theme, 'bottom'),\n 'bottom-left': getMargin(margin, theme, 'bottom-left'),\n 'bottom-right': getMargin(margin, theme, 'bottom-right'),\n left: getMargin(margin, theme, 'left'),\n right: getMargin(margin, theme, 'right'),\n top: getMargin(margin, theme, 'top'),\n 'top-right': getMargin(margin, theme, 'top-right'),\n 'top-left': getMargin(margin, theme, 'top-left'),\n };\n};\n\nconst KEYFRAMES = {\n center: {\n vertical: keyframes`\n 0% { transform: translateX(-50%) scale(0.8); }\n 100% { transform: translateX(-50%) scale(1); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(-50%) scale(0.8); }\n 100% { transform: translateY(-50) scale(1); }\n `,\n true: keyframes`\n 0% { transform: scale(0.8); }\n 100% { transform: scale(1); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, -50%) scale(0.8); }\n 100% { transform: translate(-50%, -50%) scale(1); }\n `,\n },\n top: {\n vertical: keyframes`\n 0% { transform: translate(-50%, -100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n `,\n true: keyframes`\n 0% { transform: translateY(-100%); }\n 100% { transform: translateY(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, -100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n },\n bottom: {\n vertical: keyframes`\n 0% { transform: translate(-50%, 100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n horizontal: keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n `,\n true: keyframes`\n 0% { transform: translateY(100%); }\n 100% { transform: translateY(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-50%, 100%); }\n 100% { transform: translate(-50%, 0); }\n `,\n },\n left: {\n vertical: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(-100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(-100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n right: {\n vertical: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n horizontal: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n true: keyframes`\n 0% { transform: translateX(100%); }\n 100% { transform: translateX(0); }\n `,\n false: keyframes`\n 0% { transform: translate(100%, -50%); }\n 100% { transform: translate(0, -50%); }\n `,\n },\n};\n\nconst animationDuration = 200;\n\nconst getAnimationStyle = (props, position, full) => {\n let animation =\n props.animation !== undefined ? props.animation : props.animate;\n if (animation === undefined) animation = 'slide';\n let keys;\n if (animation === 'slide' || animation === true) {\n keys = KEYFRAMES[position][full];\n } else if (animation === 'fadeIn') {\n keys = keyframes`0% { opacity: 0 } 100% { opacity: 1 }`;\n }\n return keys\n ? css`\n animation: ${keys} ${animationDuration / 1000.0}s ease-in-out forwards;\n `\n : '';\n};\n\n// POSITIONS combines 'position', 'full', and 'margin' properties, since\n// they are all interdependent.\n// Basically, non-full axes combine 50% position with -50% translation.\n// full axes pin to the window edges offset by any margin.\n// The keyframe animations are included as they are done via translations\n// as well so they must take into account the non-animated positioning.\nconst POSITIONS = {\n center: {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: 50%;\n transform: translateX(-50%);\n ${props => getAnimationStyle(props, 'center', 'vertical')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: 50%;\n transform: translateY(-50%);\n ${props => getAnimationStyle(props, 'center', 'horizontal')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n ${props => getAnimationStyle(props, 'center', 'true')}\n `,\n false: () => css`\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n ${props => getAnimationStyle(props, 'center', 'false')}\n `,\n },\n\n top: {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: 50%;\n transform: translate(-50%, 0%);\n ${props => getAnimationStyle(props, 'top', 'vertical')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: ${margin.top};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'top', 'horizontal')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'top', 'true')}\n `,\n false: margin => css`\n top: ${margin.top};\n left: 50%;\n transform: translate(-50%, 0);\n ${props => getAnimationStyle(props, 'top', 'false')}\n `,\n },\n\n bottom: {\n vertical: margin => css`\n top: ${margin.top}\n bottom: ${margin.bottom};\n left: 50%;\n transform: translate(-50%, 0);\n ${props => getAnimationStyle(props, 'bottom', 'vertical')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.top};\n bottom: ${margin.bottom};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'horizontal')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: margin => css`\n bottom: ${margin.bottom};\n left: 50%;\n transform: translate(-50%, 0);\n ${props => getAnimationStyle(props, 'bottom', 'false')}\n `,\n },\n\n left: {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'left', 'vertical')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: 50%;\n transform: translate(0, -50%);\n ${props => getAnimationStyle(props, 'left', 'horizontal')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'left', 'true')}\n `,\n false: margin => css`\n left: ${margin.left};\n top: 50%;\n transform: translate(0, -50%);\n ${props => getAnimationStyle(props, 'left', 'false')}\n `,\n },\n\n right: {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'right', 'vertical')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: 50%;\n transform: translate(0, -50%);\n ${props => getAnimationStyle(props, 'right', 'horizontal')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'right', 'true')}\n `,\n false: margin => css`\n right: ${margin.right};\n top: 50%;\n transform: translate(0, -50%);\n ${props => getAnimationStyle(props, 'right', 'false')}\n `,\n },\n\n 'top-right': {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')};\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: 0;\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')};\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')};\n `,\n false: margin => css`\n top: ${margin.top};\n right: ${margin.right};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'top', 'true')};\n `,\n },\n\n 'top-left': {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n top: 0;\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'top', 'true')}\n `,\n false: margin => css`\n top: ${margin.top};\n left: ${margin.left};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'top', 'true')}\n `,\n },\n\n 'bottom-right': {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n bottom: ${margin.bottom};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: margin => css`\n bottom: ${margin.bottom};\n right: ${margin.right};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n },\n\n 'bottom-left': {\n vertical: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n horizontal: margin => css`\n left: ${margin.left};\n right: ${margin.right};\n bottom: ${margin.bottom};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n true: margin => css`\n top: ${margin.top};\n bottom: ${margin.bottom};\n left: ${margin.left};\n right: ${margin.right};\n transform: translateX(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n false: margin => css`\n bottom: ${margin.bottom};\n left: ${margin.left};\n transform: translateY(0);\n ${props => getAnimationStyle(props, 'bottom', 'true')}\n `,\n },\n};\n\nconst desktopContainerStyle = css`\n position: ${props => (props.modal ? 'absolute' : 'fixed')};\n max-height: ${props =>\n `calc(100% - ${MARGINS(props.margin, props.theme, 'top')} - ${MARGINS(\n props.margin,\n props.theme,\n 'bottom',\n )})`};\n max-width: ${props =>\n `calc(100% - ${MARGINS(props.margin, props.theme, 'left')} - ${MARGINS(\n props.margin,\n props.theme,\n 'right',\n )})`};\n border-radius: ${props =>\n props.plain ? 0 : props.theme.layer.border.radius};\n ${props =>\n (props.position !== 'hidden' &&\n POSITIONS[props.position][props.full](\n MARGINS(props.margin, props.theme),\n )) ||\n ''};\n`;\n\nconst responsiveContainerStyle = css`\n position: relative;\n max-height: none;\n max-width: none;\n border-radius: 0;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n transform: none;\n animation: none;\n height: 100vh;\n width: 100vw;\n`;\n\nconst StyledContainer = styled.div`\n ${props => (!props.modal ? baseStyle : '')} display: flex;\n flex-direction: column;\n min-height: ${props => props.theme.global.size.xxsmall};\n ${props =>\n !props.plain &&\n props.theme.layer.background &&\n backgroundStyle(props.theme.layer.background, props.theme)} outline: none;\n pointer-events: all;\n z-index: ${props => props.theme.layer.container.zIndex};\n\n ${desktopContainerStyle} ${props => {\n if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n if (breakpoint) {\n return breakpointStyle(breakpoint, responsiveContainerStyle);\n }\n }\n return '';\n }};\n`;\n\nStyledContainer.defaultProps = {};\nObject.setPrototypeOf(StyledContainer.defaultProps, defaultProps);\n\nexport { animationDuration, StyledLayer, StyledOverlay, StyledContainer };\n","export { Paragraph } from './Paragraph';\n","export { Menu } from './Menu';\n","export { Meter } from './Meter';\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst roundStyle = css`\n border-radius: ${props => props.theme.global.edgeSize[props.round.size]};\n`;\n\n// overflow: hidden is needed for ie11\nconst StyledMeter = styled.svg`\n max-width: 100%;\n overflow: hidden;\n\n ${genericStyles} ${props => props.round && roundStyle}\n\n path {\n transition: stroke 0.3s, stroke-width 0.3s;\n }\n\n ${props => props.theme.meter && props.theme.meter.extend};\n`;\n\nStyledMeter.defaultProps = {};\nObject.setPrototypeOf(StyledMeter.defaultProps, defaultProps);\n\nexport { StyledMeter };\n","import { normalizeColor } from '../../utils';\n\nexport const strokeProps = (color, theme) => {\n const result = {};\n if (color) {\n if (typeof color === 'object') {\n result.stroke = normalizeColor(color.color, theme);\n if (color.opacity) {\n result.strokeOpacity = `${\n color.opacity === true\n ? theme.global.opacity.medium\n : theme.global.opacity[color.opacity]\n }`;\n }\n } else {\n result.stroke = normalizeColor(color, theme);\n }\n }\n return result;\n};\n\nconst neutralExp = /^neutral-\\d+/;\n\nexport const defaultColor = (index, theme, valuesLength) => {\n if (index === valuesLength - 1 && theme.meter.color) {\n return theme.meter.color;\n }\n if (theme.meter && theme.meter.colors) {\n const colors =\n theme.meter.colors[theme.dark ? 'dark' : 'light'] || theme.meter.colors;\n return colors[index % colors.length];\n }\n const colors = Object.keys(theme.global.colors).filter(n =>\n n.match(/^graph-[0-9]$/),\n );\n if (colors.length > 0) {\n return colors[index % colors.length];\n }\n // Deprecate using \"neutral-*\" color names. Remove eventually.\n const neutralColors = Object.keys(theme.global.colors).filter(k =>\n neutralExp.test(k),\n );\n return neutralColors[index % neutralColors.length];\n};\n","export { RadioButton } from './RadioButton';\n","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf\";\n\nfunction 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 Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _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 };\n }\n\n return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf\";\nimport setPrototypeOf from \"./setPrototypeOf\";\nimport isNativeFunction from \"./isNativeFunction\";\nimport construct from \"./construct\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n _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 };\n\n return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}","export default function _taggedTemplateLiteralLoose(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n strings.raw = raw;\n return strings;\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';\nimport _taggedTemplateLiteralLoose from '@babel/runtime/helpers/esm/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 factorial(a) {\n if (a % 1 || !(+a >= 0)) return NaN;\n if (a > 170) return Infinity;else if (a === 0) return 1;else {\n return a * factorial(a - 1);\n }\n}\n\nfunction power(a, b) {\n return Math.pow(a, b);\n}\n\nfunction sqrt(a) {\n return Math.sqrt(a);\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 defaultMathSymbols = {\n symbols: {\n '!': {\n postfix: {\n symbol: '!',\n f: factorial,\n notation: 'postfix',\n precedence: 6,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '!',\n regSymbol: '!'\n },\n '^': {\n infix: {\n symbol: '^',\n f: power,\n notation: 'infix',\n precedence: 5,\n rightToLeft: 1,\n argCount: 2\n },\n symbol: '^',\n regSymbol: '\\\\^'\n },\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 sqrt: {\n func: {\n symbol: 'sqrt',\n f: sqrt,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'sqrt',\n regSymbol: 'sqrt\\\\b'\n }\n }\n};\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/**\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 =\n/*#__PURE__*/\nfunction (_Error) {\n _inheritsLoose(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/master/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(_this);\n }\n\n return PolishedError;\n}(\n/*#__PURE__*/\n_wrapNativeSuper(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({}, defaultMathSymbols.symbols, {}, additionalSymbols.symbols) : _extends({}, defaultMathSymbols.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\n// @private\nfunction capitalizeString(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar positionMap = ['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[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 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value minus its unit (or the original value if an invalid string is passed). Optionally returns an array containing the stripped value and the original unit of measure.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * '--dimension': stripUnit('100px'),\n * '--unit': stripUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * --dimension: ${stripUnit('100px')};\n * --unit: ${stripUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * '--dimension': 100,\n * '--unit': 'px',\n * }\n */\n\nfunction stripUnit(value, unitReturn) {\n if (typeof value !== 'string') return unitReturn ? [value, undefined] : value;\n var matchedValue = value.match(cssRegex);\n\n if (unitReturn) {\n if (matchedValue) return [parseFloat(value), matchedValue[2]];\n return [value, undefined];\n }\n\n if (matchedValue) return parseFloat(value);\n return 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\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 =\n/*#__PURE__*/\npxtoFactory('em');\n\nvar cssRegex$1 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value and its unit as elements of an array.\n *\n * @deprecated - getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\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 // eslint-disable-next-line no-console\n console.warn(\"getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\");\n if (typeof value !== 'string') return [value, ''];\n var matchedValue = value.match(cssRegex$1);\n if (matchedValue) return [parseFloat(value), matchedValue[2]];\n return [value, undefined];\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' ? stripUnit(base, true) : [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 =\n/*#__PURE__*/\npxtoFactory('rem');\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 _stripUnit = stripUnit(fromSize, true),\n unitlessFromSize = _stripUnit[0],\n fromSizeUnit = _stripUnit[1];\n\n var _stripUnit2 = stripUnit(toSize, true),\n unitlessToSize = _stripUnit2[0],\n toSizeUnit = _stripUnit2[1];\n\n var _stripUnit3 = stripUnit(minScreen, true),\n unitlessMinScreen = _stripUnit3[0],\n minScreenUnit = _stripUnit3[1];\n\n var _stripUnit4 = stripUnit(maxScreen, true),\n unitlessMaxScreen = _stripUnit4[0],\n maxScreenUnit = _stripUnit4[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 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\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\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\nfunction ellipsis(width) {\n if (width === void 0) {\n width = '100%';\n }\n\n return {\n display: 'inline-block',\n maxWidth: width,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n };\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 = cssProp, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _extends2, _extends3;\n\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var obj = _ref;\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({}, mediaQueries[\"@media (min-width: \" + minScreen + \")\"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2));\n mediaQueries[\"@media (min-width: \" + maxScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + maxScreen + \")\"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3));\n }\n\n return _extends({}, fallbacks, {}, mediaQueries);\n } else {\n var _ref2, _ref3, _ref4;\n\n if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) {\n throw new PolishedError(51);\n }\n\n return _ref4 = {}, _ref4[cssProp.prop] = cssProp.fromSize, _ref4[\"@media (min-width: \" + minScreen + \")\"] = (_ref2 = {}, _ref2[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref2), _ref4[\"@media (min-width: \" + maxScreen + \")\"] = (_ref3 = {}, _ref3[cssProp.prop] = cssProp.toSize, _ref3), _ref4;\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.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.\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 localFonts = _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\nfunction hideText() {\n return {\n textIndent: '101%',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n}\n\nfunction hideVisually() {\n return {\n border: '0',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\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\nfunction _templateObject() {\n var data = _taggedTemplateLiteralLoose([\"linear-gradient(\", \"\", \")\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\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].split(' ')[0],\n backgroundImage: constructGradientValue(_templateObject(), toDirection, colorStops.join(', '))\n };\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 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\nfunction _templateObject$1() {\n var data = _taggedTemplateLiteralLoose([\"radial-gradient(\", \"\", \"\", \"\", \")\"]);\n\n _templateObject$1 = function _templateObject() {\n return data;\n };\n\n return data;\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$1(), position, shape, extent, colorStops.join(', '))\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({\n backgroundImage: \"url(\" + rFilename + \")\"\n }, backgroundSize ? {\n backgroundSize: backgroundSize\n } : {}), _ref;\n}\n\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 * @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, backgroundColor) {\n switch (pointingDirection) {\n case 'top':\n case 'bottomRight':\n return backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor;\n\n case 'right':\n case 'bottomLeft':\n return backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor;\n\n case 'bottom':\n case 'topLeft':\n return foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\n\n case 'left':\n case 'topRight':\n return backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\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 = stripUnit(width, true);\n var heightAndUnit = stripUnit(height, true);\n\n if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {\n throw new PolishedError(60);\n }\n\n return {\n width: '0',\n height: '0',\n borderColor: getBorderColor(pointingDirection, foregroundColor, backgroundColor),\n borderStyle: 'solid',\n borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit)\n };\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 = /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*([-+]?[0-9]*[.]?[0-9]+)\\s*\\)$/i;\nvar hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+)\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i;\nvar hslaRegex = /^hsla\\(\\s*(\\d{0,3}[.]?[0-9]+)\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*([-+]?[0-9]*[.]?[0-9]+)\\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);\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])\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);\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])\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\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\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(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n}\n\nfunction hslToHex(hue, saturation, lightness) {\n return hslToRgb(hue, saturation, lightness, convertToHex);\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\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\nfunction rgb(value, green, blue) {\n if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n return reduceHexValue(\"#\" + numberToHex(value) + numberToHex(green) + numberToHex(blue));\n } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n return reduceHexValue(\"#\" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));\n }\n\n throw new PolishedError(6);\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({}, hslColor, {\n hue: hslColor.hue + parseFloat(degree)\n }));\n} // prettier-ignore\n\n\nvar curriedAdjustHue =\n/*#__PURE__*/\ncurry\n/* :: */\n(adjustHue);\n\n/**\n * Returns the complement of the provided color. This is identical to adjustHue(180, ).\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({}, 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({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDarken =\n/*#__PURE__*/\ncurry\n/* :: */\n(darken);\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({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDesaturate =\n/*#__PURE__*/\ncurry\n/* :: */\n(desaturate);\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({}, parseToHsl(color), {\n saturation: 0\n }));\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({}, 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({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedLighten =\n/*#__PURE__*/\ncurry\n/* :: */\n(lighten);\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 var parsedColor1 = parseToRgb(color);\n\n var color1 = _extends({}, parsedColor1, {\n alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1\n });\n\n var parsedColor2 = parseToRgb(otherColor);\n\n var color2 = _extends({}, parsedColor2, {\n alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1\n }); // The formular 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 + (color2.alpha - color1.alpha) * (parseFloat(weight) / 1.0)\n };\n return rgba(mixedColor);\n} // prettier-ignore\n\n\nvar curriedMix =\n/*#__PURE__*/\ncurry\n/* :: */\n(mix);\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({}, 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 =\n/*#__PURE__*/\ncurry\n/* :: */\n(opacify);\n\n/**\n * Returns black or white (or optional light and dark return colors) for best contrast depending on the luminosity of the given color.\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 * }\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 * `\n *\n * // CSS in JS Output\n *\n * element {\n * color: \"#fff\";\n * color: \"#ff8\";\n * color: \"#001\";\n * }\n */\n\nfunction readableColor(color, lightReturnColor, darkReturnColor) {\n if (lightReturnColor === void 0) {\n lightReturnColor = '#000';\n }\n\n if (darkReturnColor === void 0) {\n darkReturnColor = '#fff';\n }\n\n return getLuminance(color) > 0.179 ? lightReturnColor : darkReturnColor;\n}\n\nfunction rgbToColorString(color) {\n if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {\n if (color.alpha && 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({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedSaturate =\n/*#__PURE__*/\ncurry\n/* :: */\n(saturate);\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({}, parseToHsl(color), {\n hue: parseFloat(hue)\n }));\n} // prettier-ignore\n\n\nvar curriedSetHue =\n/*#__PURE__*/\ncurry\n/* :: */\n(setHue);\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({}, parseToHsl(color), {\n lightness: parseFloat(lightness)\n }));\n} // prettier-ignore\n\n\nvar curriedSetLightness =\n/*#__PURE__*/\ncurry\n/* :: */\n(setLightness);\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({}, parseToHsl(color), {\n saturation: parseFloat(saturation)\n }));\n} // prettier-ignore\n\n\nvar curriedSetSaturation =\n/*#__PURE__*/\ncurry\n/* :: */\n(setSaturation);\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 curriedMix(parseFloat(percentage), 'rgb(0, 0, 0)', color);\n} // prettier-ignore\n\n\nvar curriedShade =\n/*#__PURE__*/\ncurry\n/* :: */\n(shade);\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 curriedMix(parseFloat(percentage), 'rgb(255, 255, 255)', color);\n} // prettier-ignore\n\n\nvar curriedTint =\n/*#__PURE__*/\ncurry\n/* :: */\n(tint);\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({}, parsedColor, {\n alpha: guard(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)\n });\n\n return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedTransparentize =\n/*#__PURE__*/\ncurry\n/* :: */\n(transparentize);\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\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\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\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\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\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\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 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template(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, stateMap);\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\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$1 = ['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(positionKeyword) {\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$1.indexOf(positionKeyword) >= 0) {\n return _extends({\n position: positionKeyword\n }, directionalProperty.apply(void 0, [''].concat(values)));\n } else {\n var firstValue = positionKeyword; // in this case position is actually the first value\n\n return directionalProperty.apply(void 0, ['', firstValue].concat(values));\n }\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$1 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template$1(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$1, stateMap$1);\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\nexport { curriedAdjustHue as adjustHue, animation, backgroundImages, backgrounds, between, border, borderColor, borderRadius, borderStyle, borderWidth, buttons, clearFix, complement, cover, curriedDarken as darken, curriedDesaturate as desaturate, directionalProperty, ellipsis, em, fluidRange, fontFace, getContrast, getLuminance, getValueAndUnit, grayscale, hiDPI, hideText, hideVisually, hsl, hslToColorString, hsla, invert, curriedLighten as lighten, linearGradient, margin, math, meetsContrastGuidelines, curriedMix as mix, modularScale, normalize, curriedOpacify as opacify, padding, parseToHsl, parseToRgb, position, radialGradient, readableColor, rem, retinaImage, rgb, rgbToColorString, rgba, curriedSaturate as saturate, curriedSetHue as setHue, curriedSetLightness as setLightness, curriedSetSaturation as setSaturation, curriedShade as shade, size, stripUnit, textInputs, timingFunctions, curriedTint as tint, toColorString, transitions, curriedTransparentize as transparentize, triangle, wordWrap };\n","export default 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}","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\n\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try { // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n\n return targetComponent;\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","var reg = /[\\'\\\"]/\n\nmodule.exports = function unquote(str) {\n if (!str) {\n return ''\n }\n if (reg.test(str.charAt(0))) {\n str = str.substr(1)\n }\n if (reg.test(str.charAt(str.length - 1))) {\n str = str.substr(0, str.length - 1)\n }\n return str\n}\n","export * from './components';\nexport * from './contexts';\nexport * from './default-props';\nexport * from './themes';\n","export * from './Accordion';\nexport * from './AccordionPanel';\nexport * from './Anchor';\nexport * from './Box';\nexport * from './Button';\nexport * from './Calendar';\nexport * from './Carousel';\nexport * from './Chart';\nexport * from './CheckBox';\nexport * from './Clock';\nexport * from './Collapsible';\nexport * from './DataTable';\nexport * from './Diagram';\nexport * from './Distribution';\nexport * from './Drop';\nexport * from './DropButton';\nexport * from './Footer';\nexport * from './Form';\nexport * from './FormField';\nexport * from './Grid';\nexport * from './Grommet';\nexport * from './Header';\nexport * from './Heading';\nexport * from './Image';\nexport * from './InfiniteScroll';\nexport * from './Keyboard';\nexport * from './Layer';\nexport * from './List';\nexport * from './Main';\nexport * from './Markdown';\nexport * from './MaskedInput';\nexport * from './Menu';\nexport * from './Meter';\nexport * from './Paragraph';\nexport * from './Nav';\nexport * from './RadioButton';\nexport * from './RadioButtonGroup';\nexport * from './RangeInput';\nexport * from './RangeSelector';\nexport * from './RoutedAnchor';\nexport * from './RoutedButton';\nexport * from './Select';\nexport * from './SkipLink';\nexport * from './SkipLinks';\nexport * from './SkipLinkTarget';\nexport * from './Stack';\nexport * from './Table';\nexport * from './TableBody';\nexport * from './TableCell';\nexport * from './TableFooter';\nexport * from './TableHeader';\nexport * from './TableRow';\nexport * from './Tab';\nexport * from './Tabs';\nexport * from './Text';\nexport * from './TextArea';\nexport * from './TextInput';\nexport * from './Video';\nexport * from './WorldMap';\n","export { Accordion } from './Accordion';\n","import React, { useState, Children } from 'react';\n\nimport { Box } from '../Box';\n\nimport { AccordionContext } from './AccordionContext';\n\nconst activeAsArray = active =>\n typeof active === 'number' ? [active] : active;\n\nconst Accordion = ({\n activeIndex,\n animate = true,\n children,\n messages = { tabContents: 'Tab Contents' },\n multiple,\n onActive,\n ...rest\n}) => {\n const [activeIndexes, setActiveIndexes] = useState([]);\n const [stateActiveIndex, setStateActiveIndex] = useState();\n\n // Derived state from props\n // https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops\n const derivedActiveIndexes = activeAsArray(activeIndex) || [];\n if (\n (typeof activeIndex !== 'undefined' || activeIndex !== stateActiveIndex) &&\n derivedActiveIndexes.join() !== activeIndexes.join()\n ) {\n setActiveIndexes(derivedActiveIndexes);\n setStateActiveIndex(activeIndex);\n }\n\n const onPanelChange = index => {\n let nextActiveIndexes = [...(activeIndexes || [])];\n\n const nextActiveIndex = nextActiveIndexes.indexOf(index);\n if (nextActiveIndex > -1) {\n nextActiveIndexes.splice(nextActiveIndex, 1);\n } else if (multiple) {\n nextActiveIndexes.push(index);\n } else {\n nextActiveIndexes = [index];\n }\n\n setActiveIndexes(nextActiveIndexes);\n if (onActive) {\n onActive(nextActiveIndexes);\n }\n };\n\n // eslint-disable-next-line no-param-reassign\n delete rest.onActive;\n\n return (\n \n {Children.toArray(children).map((panel, index) => (\n -1,\n animate,\n messages,\n onPanelChange: () => onPanelChange(index),\n }}\n >\n {panel}\n \n ))}\n \n );\n};\n\nlet AccordionDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n AccordionDoc = require('./doc').doc(Accordion);\n}\nconst AccordionWrapper = AccordionDoc || Accordion;\n\nexport { AccordionWrapper as Accordion };\n","import React, {\n Children,\n forwardRef,\n useContext,\n useMemo,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { backgroundIsDark } from '../../utils';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledBox, StyledBoxGap } from './StyledBox';\n\nconst Box = forwardRef(\n (\n {\n a11yTitle,\n background,\n children,\n direction = 'column',\n elevation, // munged to avoid styled-components putting it in the DOM\n fill, // munged to avoid styled-components putting it in the DOM\n gap,\n onBlur,\n onClick,\n onFocus,\n overflow, // munged to avoid styled-components putting it in the DOM\n responsive = true,\n tag,\n as,\n wrap, // munged to avoid styled-components putting it in the DOM,\n width, // munged to avoid styled-components putting it in the DOM\n height, // munged to avoid styled-components putting it in the DOM\n tabIndex,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n\n const focusable = useMemo(() => onClick && !(tabIndex < 0), [\n onClick,\n tabIndex,\n ]);\n\n const [focus, setFocus] = useState();\n\n const clickProps = useMemo(() => {\n if (focusable) {\n return {\n onClick,\n onFocus: event => {\n setFocus(true);\n if (onFocus) onFocus(event);\n },\n onBlur: event => {\n setFocus(false);\n if (onBlur) onBlur(event);\n },\n };\n }\n const result = {};\n if (onBlur) result.onBlur = onBlur;\n if (onClick) result.onClick = onClick;\n if (onFocus) result.onFocus = onFocus;\n return result;\n }, [focusable, onClick, onFocus, onBlur]);\n\n const adjustedTabIndex = useMemo(() => {\n if (tabIndex !== undefined) return tabIndex;\n if (focusable) return 0;\n return undefined;\n }, [focusable, tabIndex]);\n\n let contents = children;\n if (gap) {\n contents = [];\n let firstIndex;\n Children.forEach(children, (child, index) => {\n if (child) {\n if (firstIndex === undefined) {\n firstIndex = index;\n } else {\n contents.push(\n ,\n );\n }\n }\n contents.push(child);\n });\n }\n\n if (background || theme.darkChanged) {\n let dark = backgroundIsDark(background, theme);\n const darkChanged = dark !== undefined && dark !== theme.dark;\n if (darkChanged || theme.darkChanged) {\n dark = dark === undefined ? theme.dark : dark;\n contents = (\n \n {contents}\n \n );\n }\n }\n\n let content = (\n \n {contents}\n \n );\n\n if (onClick) {\n content = {content};\n }\n\n return content;\n },\n);\n\nBox.displayName = 'Box';\n\nlet BoxDoc;\nif (process.env.NODE_ENV !== 'production') {\n BoxDoc = require('./doc').doc(Box); // eslint-disable-line global-require\n}\nconst BoxWrapper = BoxDoc || Box;\n\nexport { BoxWrapper as Box };\n","import { css } from 'styled-components';\nimport { normalizeColor } from './colors';\nimport { breakpointStyle } from './mixins';\n\nexport const borderStyle = (data, responsive, theme) => {\n const styles = [];\n const color = normalizeColor(data.color || 'border', theme);\n const borderSize = data.size || 'xsmall';\n const style = data.style || 'solid';\n const side = typeof data === 'string' ? data : data.side || 'all';\n const value = `${style} ${theme.global.borderSize[borderSize] ||\n borderSize} ${color}`;\n const breakpoint =\n theme.box.responsiveBreakpoint &&\n theme.global.breakpoints[theme.box.responsiveBreakpoint];\n const responsiveValue =\n responsive &&\n breakpoint &&\n (breakpoint.borderSize[borderSize] || borderSize) &&\n `${style} ${breakpoint.borderSize[borderSize] || borderSize} ${color}`;\n if (\n side === 'top' ||\n side === 'bottom' ||\n side === 'left' ||\n side === 'right'\n ) {\n styles.push(css`border-${side}: ${value};`);\n if (responsiveValue) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-${side}: ${responsiveValue};\n `,\n ),\n );\n }\n } else if (side === 'vertical') {\n styles.push(css`\n border-left: ${value};\n border-right: ${value};\n `);\n if (responsiveValue) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-left: ${responsiveValue};\n border-right: ${responsiveValue};\n `,\n ),\n );\n }\n } else if (side === 'horizontal') {\n styles.push(css`\n border-top: ${value};\n border-bottom: ${value};\n `);\n if (responsiveValue) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top: ${responsiveValue};\n border-bottom: ${responsiveValue};\n `,\n ),\n );\n }\n } else {\n styles.push(\n css`\n border: ${value};\n `,\n );\n if (responsiveValue) {\n styles.push(breakpointStyle(breakpoint, `border: ${responsiveValue};`));\n }\n }\n return styles;\n};\n","export const debounce = (cb, timer) => {\n let timeout;\n return (...args) => {\n const context = this;\n clearTimeout(timeout);\n timeout = setTimeout(() => cb.apply(context, args), timer);\n };\n};\n\nexport const debounceDelay = ({ theme }) => theme.global.debounceDelay;\n","export const filterByFocusable = elements =>\n Array.prototype.filter.call(elements || [], element => {\n const currentTag = element.tagName.toLowerCase();\n const validTags = /(svg|a|area|input|select|textarea|button|iframe|div)$/;\n const isValidTag = currentTag.match(validTags) && element.focus;\n if (currentTag === 'a') {\n return (\n isValidTag &&\n element.childNodes.length > 0 &&\n element.getAttribute('href')\n );\n }\n if (currentTag === 'svg' || currentTag === 'div') {\n return (\n isValidTag &&\n element.hasAttribute('tabindex') &&\n element.getAttribute('tabindex') !== '-1'\n );\n }\n return isValidTag;\n });\n\nexport const findScrollParents = (element, horizontal) => {\n const result = [];\n if (element) {\n let parent = element.parentNode;\n while (parent && parent.getBoundingClientRect) {\n const rect = parent.getBoundingClientRect();\n // 10px is to account for borders and scrollbars in a lazy way\n if (horizontal) {\n if (rect.width && parent.scrollWidth > rect.width + 10) {\n result.push(parent);\n }\n } else if (rect.height && parent.scrollHeight > rect.height + 10) {\n result.push(parent);\n }\n parent = parent.parentNode;\n }\n // last scrollable element will be the document\n // if nothing else is scrollable in the page\n if (result.length === 0) {\n result.push(document);\n } else if (result[0].tagName.toLowerCase() === 'body') {\n result.length = 0;\n result.push(document);\n }\n }\n return result;\n};\n\nexport const getFirstFocusableDescendant = element => {\n const children = element.getElementsByTagName('*');\n for (let i = 0; i < children.length; i += 1) {\n const child = children[i];\n const tagName = child.tagName.toLowerCase();\n if (tagName === 'input' || tagName === 'select') {\n return child;\n }\n }\n return undefined;\n};\n\nexport const getBodyChildElements = () => {\n const excludeMatch = /^(script|link)$/i;\n const children = [];\n [].forEach.call(document.body.children, node => {\n if (!excludeMatch.test(node.tagName)) {\n children.push(node);\n }\n });\n return children;\n};\n\nexport const getNewContainer = () => {\n // setup DOM\n const container = document.createElement('div');\n document.body.appendChild(container);\n return container;\n};\n\nexport const setFocusWithoutScroll = element => {\n const x = window.scrollX;\n const y = window.scrollY;\n element.focus();\n window.scrollTo(x, y);\n};\n\nexport const setTabIndex = tabIndex => element => {\n element.setAttribute('tabindex', tabIndex);\n};\n\nexport const copyAttribute = source => target => element => {\n element.setAttribute(target, element.getAttribute(source));\n};\n\nconst deleteAttribute = attribute => element =>\n element.removeAttribute(attribute);\n\nconst unsetTabIndex = setTabIndex(-1);\nconst saveTabIndex = copyAttribute('tabindex')('data-g-tabindex');\nconst restoreTabIndex = copyAttribute('data-g-tabindex')('tabindex');\nconst deleteTabIndex = deleteAttribute('tabindex');\nconst deleteTabIndexCopy = deleteAttribute('data-g-tabindex');\n\nexport const makeNodeFocusable = node => {\n // do not touch aria live containers so that announcements work\n if (!node.hasAttribute('aria-live')) {\n node.setAttribute('aria-hidden', false);\n // allow children to receive focus again\n filterByFocusable(node.getElementsByTagName('*')).forEach(child => {\n if (child.hasAttribute('data-g-tabindex')) {\n restoreTabIndex(child);\n } else {\n deleteTabIndex(child);\n }\n deleteTabIndexCopy(child);\n });\n }\n};\n\nexport const makeNodeUnfocusable = node => {\n // do not touch aria live containers so that announcements work\n if (!node.hasAttribute('aria-live')) {\n node.setAttribute('aria-hidden', true);\n // prevent children to receive focus\n filterByFocusable(node.getElementsByTagName('*')).forEach(child => {\n if (child.hasAttribute('tabindex')) {\n saveTabIndex(child);\n }\n unsetTabIndex(child);\n });\n }\n};\n\nexport const findVisibleParent = element => {\n if (element) {\n return element.offsetParent\n ? element\n : findVisibleParent(element.parentElement) || element;\n }\n return undefined;\n};\n\nexport const isNodeAfterScroll = (node, target = window) => {\n const { bottom } = node.getBoundingClientRect();\n const { height, top } = target.getBoundingClientRect();\n return bottom >= top + height;\n};\n\nexport const isNodeBeforeScroll = (node, target = window) => {\n const { top } = node.getBoundingClientRect();\n const { top: targetTop } = target.getBoundingClientRect();\n return top <= targetTop;\n};\n","const POST_DECIMAL_DIGITS = 10;\n\nexport const baseUnit = 24;\n\nexport const polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {\n const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;\n return {\n x: centerX + radius * Math.cos(angleInRadians),\n y: centerY + radius * Math.sin(angleInRadians),\n };\n};\n\nexport const arcCommands = (centerX, centerY, radius, startAngle, endAngle) => {\n // handle that we can't draw a complete circle\n let normalizedEndAngle = endAngle;\n if (endAngle - startAngle >= 360) {\n normalizedEndAngle = startAngle + 359.99;\n }\n const start = polarToCartesian(centerX, centerY, radius, normalizedEndAngle);\n const end = polarToCartesian(centerX, centerY, radius, startAngle);\n const arcSweep = normalizedEndAngle - startAngle <= 180 ? '0' : '1';\n const d = [\n 'M',\n start.x.toFixed(POST_DECIMAL_DIGITS),\n start.y.toFixed(POST_DECIMAL_DIGITS),\n 'A',\n radius.toFixed(POST_DECIMAL_DIGITS),\n radius.toFixed(POST_DECIMAL_DIGITS),\n 0,\n arcSweep,\n 0,\n end.x.toFixed(POST_DECIMAL_DIGITS),\n end.y.toFixed(POST_DECIMAL_DIGITS),\n ].join(' ');\n return d;\n};\n\nexport const translateEndAngle = (startAngle, anglePer, value) =>\n Math.min(360, Math.max(0, startAngle + anglePer * value));\n","import { PropTypes } from 'react-desc';\n\nexport const a11yTitlePropType = PropTypes.string.description(\n `Custom label to be used by screen readers. When provided, an aria-label will\n be added to the element.`,\n);\n\nexport const backgroundPropType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n color: PropTypes.string,\n opacity: PropTypes.oneOfType([\n PropTypes.oneOf(['weak', 'medium', 'strong']),\n PropTypes.bool,\n ]),\n }),\n]).description('Background color');\n\nexport const colorPropType = PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({ dark: PropTypes.string, light: PropTypes.string }),\n]);\n\nconst MARGIN_SIZES = [\n 'xxsmall',\n 'xsmall',\n 'small',\n 'medium',\n 'large',\n 'xlarge',\n];\n\nexport const marginProp = PropTypes.oneOfType([\n PropTypes.oneOf(['none', ...MARGIN_SIZES]),\n PropTypes.shape({\n bottom: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n horizontal: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n left: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n right: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n top: PropTypes.oneOfType([PropTypes.oneOf(MARGIN_SIZES), PropTypes.string]),\n vertical: PropTypes.oneOfType([\n PropTypes.oneOf(MARGIN_SIZES),\n PropTypes.string,\n ]),\n }),\n PropTypes.string,\n]).description(`The amount of margin around the component. An object can\n be specified to distinguish horizontal margin, vertical margin, and\n margin on a particular side.`);\n\nexport const genericProps = {\n a11yTitle: a11yTitlePropType,\n alignSelf: PropTypes.oneOf(['start', 'center', 'end', 'stretch'])\n .description(`How to align along the cross axis when contained in\n a Box or along the column axis when contained in a Grid.`),\n gridArea: PropTypes.string.description(`The name of the area to place\n this inside a parent Grid.`),\n margin: marginProp,\n};\n\nexport const hoverIndicatorPropType = PropTypes.oneOfType([\n PropTypes.bool,\n PropTypes.string,\n PropTypes.oneOf(['background']),\n PropTypes.shape({\n color: PropTypes.string,\n dark: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n image: PropTypes.string,\n light: PropTypes.string,\n position: PropTypes.string,\n opacity: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.number,\n PropTypes.oneOf(['weak', 'medium', 'strong']),\n ]),\n repeat: PropTypes.oneOfType([\n PropTypes.oneOf(['no-repeat', 'repeat']),\n PropTypes.string,\n ]),\n size: PropTypes.oneOfType([\n PropTypes.oneOf(['cover', 'contain']),\n PropTypes.string,\n ]),\n }),\n]);\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = describe;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _descToJSON = require('./descToJSON');\n\nvar _descToJSON2 = _interopRequireDefault(_descToJSON);\n\nvar _descToMarkdown = require('./descToMarkdown');\n\nvar _descToMarkdown2 = _interopRequireDefault(_descToMarkdown);\n\nvar _descToTypescript = require('./descToTypescript');\n\nvar _descToTypescript2 = _interopRequireDefault(_descToTypescript);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar convertArray = function convertArray(array) {\n return array.map(function (type) {\n return convertPropType(type);\n });\n};\n\nvar convertShape = function convertShape(shape) {\n var result = {};\n Object.keys(shape).forEach(function (key) {\n result[key] = convertPropType(shape[key]);\n });\n return result;\n};\n\nvar convertPropType = function convertPropType(propType) {\n var result = void 0;\n if (propType && propType.type) {\n if (!_propTypes2.default[propType.type]) {\n throw new Error('react-desc: unknown type ' + propType.type);\n }\n if (propType.args) {\n if (propType.type === 'oneOfType' || propType.type === 'arrayOf') {\n if (Array.isArray(propType.args)) {\n result = _propTypes2.default[propType.type](convertArray(propType.args));\n } else {\n result = _propTypes2.default[propType.type](convertPropType(propType.args));\n }\n } else if (propType.type === 'shape') {\n result = _propTypes2.default[propType.type](convertShape(propType.args));\n } else {\n result = _propTypes2.default[propType.type](propType.args);\n }\n } else {\n result = _propTypes2.default[propType.type];\n }\n } else {\n result = propType;\n }\n return result;\n};\n\nfunction describe(ComponentInstance) {\n if (!ComponentInstance) {\n throw new Error('react-desc: component is required');\n }\n\n var documentation = {\n propTypes: {}\n };\n\n var DocumentedComponent = ComponentInstance;\n\n var addDocumentationProp = function addDocumentationProp(propName) {\n return function (value) {\n documentation[propName] = value;\n return DocumentedComponent;\n };\n };\n\n DocumentedComponent.availableAt = addDocumentationProp('availableAt');\n DocumentedComponent.description = addDocumentationProp('description');\n DocumentedComponent.details = addDocumentationProp('details');\n DocumentedComponent.deprecated = addDocumentationProp('deprecated');\n DocumentedComponent.usage = addDocumentationProp('usage');\n DocumentedComponent.intrinsicElement = addDocumentationProp('intrinsicElement');\n\n DocumentedComponent.toJSON = _descToJSON2.default.bind(null, ComponentInstance, documentation);\n DocumentedComponent.toTypescript = _descToTypescript2.default.bind(null, ComponentInstance, documentation);\n DocumentedComponent.toMarkdown = _descToMarkdown2.default.bind(null, ComponentInstance, documentation);\n\n Object.defineProperty(DocumentedComponent, 'propTypes', {\n get: function get() {\n return DocumentedComponent.propTypesValue;\n },\n set: function set(value) {\n if (!DocumentedComponent.propTypesValue) {\n DocumentedComponent.propTypesValue = {};\n }\n Object.keys(value).forEach(function (name) {\n var propType = value[name];\n if (propType.type) {\n documentation.propTypes[name] = propType;\n propType = convertPropType(propType);\n if (value[name].reactDesc.required) {\n propType = propType.isRequired;\n }\n }\n DocumentedComponent.propTypesValue[name] = propType;\n return propType;\n });\n },\n enumerable: true,\n configurable: true\n });\n\n return DocumentedComponent;\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = descToMarkdown;\n\nvar _descToJSON = require('./descToJSON');\n\nvar _descToJSON2 = _interopRequireDefault(_descToJSON);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar code = '```';\n\nfunction parseAvailableAt(_ref) {\n var badge = _ref.badge,\n url = _ref.url;\n\n return '[![](' + badge + ')](' + url + ')';\n}\n\nfunction getAvailableAt(_ref2) {\n var availableAt = _ref2.availableAt;\n\n if (!availableAt) {\n return '';\n }\n var availableAtStr = void 0;\n if (Array.isArray(availableAt)) {\n availableAtStr = availableAt.map(function (currentAvailable) {\n return parseAvailableAt(currentAvailable);\n }).join(' ');\n } else {\n availableAtStr = parseAvailableAt(availableAt);\n }\n return '\\n' + availableAtStr;\n}\n\nfunction getHeader(_ref3) {\n var description = _ref3.description,\n details = _ref3.details,\n deprecated = _ref3.deprecated,\n name = _ref3.name;\n\n return '## ' + (deprecated ? '~~' + name + '~~' : name) + (deprecated ? ' (' + deprecated + ')' : '') + '\\n' + description + (details ? '\\n\\n' + details : '') + '\\n';\n}\n\nfunction getUsage(_ref4) {\n var usage = _ref4.usage;\n\n return usage ? '\\n## Usage\\n\\n' + code + 'javascript\\n' + usage + '\\n' + code : '';\n}\n\nfunction getDefaultValue(defaultValue) {\n var defaultValueString = (typeof defaultValue === 'undefined' ? 'undefined' : _typeof(defaultValue)) === 'object' ? JSON.stringify(defaultValue, undefined, 2) : defaultValue;\n\n return ' Defaults to `' + defaultValueString + '`.';\n}\n\nfunction getProperties(_ref5) {\n var _ref5$properties = _ref5.properties,\n properties = _ref5$properties === undefined ? [] : _ref5$properties;\n\n var props = properties.map(function (_ref6) {\n var defaultValue = _ref6.defaultValue,\n deprecated = _ref6.deprecated,\n description = _ref6.description,\n format = _ref6.format,\n name = _ref6.name,\n required = _ref6.required;\n return '\\n' + (deprecated ? '**~~' + name + '~~**' : '**' + name + '**') + (deprecated ? ' (' + deprecated + ')' : '') + '\\n\\n' + (required ? 'Required. ' : '') + description + (defaultValue ? getDefaultValue(defaultValue) : '') + '\\n\\n' + code + '\\n' + format + '\\n' + code;\n });\n return '\\n\\n## Properties\\n' + props.join('\\n') + '\\n ';\n}\n\nfunction getIntrinsicElement(_ref7) {\n var intrinsicElement = _ref7.intrinsicElement;\n\n return intrinsicElement ? '\\n## Intrinsic element\\n\\n' + code + '\\n' + intrinsicElement + '\\n' + code : '';\n}\n\nfunction descToMarkdown(component, reactDesc) {\n if (!component) {\n throw new Error('react-desc: component is required');\n }\n\n var documentation = (0, _descToJSON2.default)(component, reactDesc);\n var availableAt = getAvailableAt(documentation);\n var header = getHeader(documentation);\n var usage = getUsage(documentation);\n var properties = getProperties(documentation);\n var intrinsicElement = getIntrinsicElement(documentation);\n return '' + header + availableAt + usage + properties + intrinsicElement;\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || 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; };\n\nexports.default = descToTypescript;\n\nvar arrayFormat = function arrayFormat(array) {\n return array.map(function (propType) {\n return propTypeFormat(propType);\n });\n};\n\nvar shapeFormat = function shapeFormat(shape) {\n var props = Object.keys(shape).map(function (key) {\n var value = shape[key];\n var valueFormat = void 0;\n if (value.type && (value.type === 'arrayOf' || value.type === 'oneOfType' || value.type === 'oneOf') && Array.isArray(value.args)) {\n valueFormat = '' + propTypeFormat(value);\n } else if (value.type === 'shape') {\n valueFormat = '' + propTypeFormat(value);\n } else {\n valueFormat = propTypeFormat(value);\n }\n return '' + key + (value.reactDesc && value.reactDesc.required ? '' : '?') + ': ' + valueFormat;\n });\n return '{' + props.join(',') + '}';\n};\n\nvar propTypeFormat = function propTypeFormat(propType, joinWith) {\n var result = void 0;\n if (Array.isArray(propType)) {\n result = arrayFormat(propType).join(joinWith);\n } else if (typeof propType !== 'function' && propType.type) {\n switch (propType.type) {\n case 'array':\n result = 'any[]';\n break;\n case 'arrayOf':\n if (propType.args.type === 'oneOfType') {\n result = '(' + propTypeFormat(propType.args, ' | ') + ')[]';\n } else {\n result = propTypeFormat(propType.args, '\\n') + '[]';\n }\n break;\n case 'bool':\n result = 'boolean';\n break;\n case 'func':\n result = '((...args: any[]) => any)';\n break;\n case 'node':\n result = 'React.ReactNode';\n break;\n case 'element':\n result = 'JSX.Element';\n break;\n case 'instanceOf':\n result = 'any';\n break;\n case 'symbol':\n result = 'any';\n break;\n case 'objectOf':\n result = '{ [key: string]: ' + propTypeFormat(propType.args) + ' }';\n break;\n case 'oneOf':\n result = propType.args.map(function (a) {\n return '\"' + a + '\"';\n }).join(' | ');\n break;\n case 'oneOfType':\n result = '' + propTypeFormat(propType.args, ' | ');\n break;\n case 'shape':\n result = '' + shapeFormat(propType.args);\n break;\n default:\n result = '' + propType.type;\n break;\n }\n } else {\n result = 'any';\n }\n return result;\n};\n\nvar propTypeAsTypescript = function propTypeAsTypescript(propType, propName) {\n var documentation = _extends({}, propType.reactDesc, {\n name: propName\n });\n\n documentation.format = propTypeFormat(propType);\n\n return documentation;\n};\n\nfunction descToTypescript(component) {\n var reactDesc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (!component) {\n throw new Error('react-desc: component is required');\n }\n\n var documentation = _extends({\n name: component.displayName || component.name\n }, reactDesc);\n if (reactDesc) {\n delete documentation.propTypes;\n\n if (reactDesc.propTypes) {\n var propTypes = [];\n Object.keys(reactDesc.propTypes).forEach(function (propName) {\n var propType = reactDesc.propTypes[propName];\n propTypes.push(propTypeAsTypescript(propType, propName));\n });\n if (propTypes.length > 0) {\n documentation.properties = propTypes;\n }\n }\n }\n return documentation;\n}","export const getBreakpoint = (windowWidth, theme) => {\n let result;\n Object.keys(theme.global.breakpoints)\n .sort((a, b) => {\n const first = theme.global.breakpoints[a];\n const second = theme.global.breakpoints[b];\n if (!first) return 1;\n if (!second) return -1;\n if (!first.value) return 1;\n if (!second.value) return -1;\n return first.value - second.value;\n })\n .some(name => {\n const breakpoint = theme.global.breakpoints[name];\n if (breakpoint) {\n if (!breakpoint.value || breakpoint.value >= windowWidth) {\n result = name;\n return true;\n }\n }\n return false;\n });\n return result;\n};\n\nexport const getDeviceBreakpoint = (type, theme) =>\n theme.global.deviceBreakpoints[type];\n","import { PropTypes } from 'react-desc';\n\nexport const ROUTER_PROPS = {\n path: PropTypes.string.description(\n 'Indicates the path to be used for react-router link.',\n ).isRequired,\n method: PropTypes.oneOf(['push', 'replace'])\n .description(\n `Indicates whether the browser history should be appended to or \n replaced.`,\n )\n .defaultValue('push'),\n};\n","// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP\n\nexport const throttle = (fn, threshhold = 250, scope = this) => {\n let last;\n let deferTimer;\n\n return (...args) => {\n const now = Date.now();\n if (last && now < last + threshhold) {\n clearTimeout(deferTimer);\n deferTimer = setTimeout(() => {\n last = now;\n fn.apply(scope, args);\n }, threshhold);\n } else {\n last = now;\n fn.apply(scope, args);\n }\n };\n};\n","export const themeDocUtils = {\n // 'The possible breakpoints that could affect border, direction, gap,\n // margin, pad, and round.',\n breakpointStyle: description => ({\n 'global.breakpoints': {\n description,\n type: 'object',\n defaultValue: `{\n small: {\n value: '768px',\n borderSize: {\n xsmall: '1px',\n small: '2px',\n medium: '4px',\n large: '6px',\n xlarge: '12px',\n },\n edgeSize: {\n none: '0px',\n hair: '1px',\n xxsmall: '2px',\n xsmall: '3px',\n small: '6px',\n medium: '12px',\n large: '24px',\n xlarge: '48px',\n },\n size: {\n xxsmall: '24px',\n xsmall: '48px',\n small: '96px',\n medium: '192px',\n large: '384px',\n xlarge: '768px',\n full: '100%',\n },\n },\n medium: {\n value: '1536px',\n },\n large: {},\n }`,\n },\n }),\n disabledStyle: {\n 'global.control.disabled.opacity': {\n description: 'The opacity when a component is disabled.',\n type: 'number',\n defaultValue: 0.3,\n },\n },\n edgeStyle: description => ({\n 'global.edgeSize': {\n description,\n type: 'object',\n defaultValue: `{\n edgeSize: {\n none: '0px',\n hair: '1px',\n xxsmall: '3px',\n xsmall: '6px',\n small: '12px',\n medium: '24px',\n large: '48px',\n xlarge: '96px',\n responsiveBreakpoint: 'small',\n },\n }`,\n },\n }),\n focusStyle: {\n 'global.focus.border.color': {\n description: 'The color around the component when in focus.',\n type: 'string | { dark: string, light: string }',\n defaultValue: 'focus',\n },\n },\n iconColor: {\n 'global.colors.icon': {\n description: 'The color of a given icon.',\n type: 'string | { dark: string, light: string }',\n defaultValue: '{ dark: #f8f8f8, light: #666666 }',\n },\n },\n\n inputStyle: {\n 'global.input.weight': {\n description: 'The font weight of the text entered.',\n type: 'number',\n defaultValue: 600,\n },\n 'global.input.padding': {\n description: 'The padding of the text.',\n type: 'string',\n defaultValue: '12px',\n },\n },\n placeholderStyle: {\n 'global.colors.placeholder': {\n description: 'The placeholder color used for the component.',\n type: 'string',\n defaultValue: '#AAAAAA',\n },\n },\n responsiveBreakpoint: description => ({\n 'global.edgeSize.responsiveBreakpoint': {\n description,\n type: 'string',\n defaultValue: 'small',\n },\n }),\n};\n","\"use strict\";\n\nexports.__esModule = true;\nexports.Actions = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Actions = function Actions(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Actions\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M12,17.5 C15.0375661,17.5 17.5,15.0375661 17.5,12 C17.5,8.96243388 15.0375661,6.5 12,6.5 C8.96243388,6.5 6.5,8.96243388 6.5,12 C6.5,15.0375661 8.96243388,17.5 12,17.5 Z M12,6.5 L12,1 M12,23 L12,17.5 M1,12 L6.5,12 M17.5,12 L23,12 M4.4375,4.4375 L8.5625,8.5625 M15.4375,15.4375 L19.5625,19.5625 M19.5625,4.4375 L15.4375,8.5625 M8.5625,15.4375 L4.4375,19.5625\"\n }));\n};\n\nexports.Actions = Actions;","\"use strict\";\n\nexports.__esModule = true;\nexports.extendDefaultTheme = exports.defaultProps = void 0;\n\nvar _utils = require(\"./utils\");\n\nvar _themes = require(\"./themes\");\n\nvar defaultProps = {\n theme: _themes.base\n};\nexports.defaultProps = defaultProps;\n\nvar extendDefaultTheme = function extendDefaultTheme(theme) {\n defaultProps.theme = (0, _utils.deepMerge)(_themes.base, theme);\n};\n\nexports.extendDefaultTheme = extendDefaultTheme;","\"use strict\";\n\nexports.__esModule = true;\nexports.isObject = isObject;\nexports.deepMerge = deepMerge;\nexports[\"default\"] = void 0;\n\nfunction _extends() { _extends = Object.assign || 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 isObject(item) {\n return item && typeof item === 'object' && !Array.isArray(item);\n}\n\nfunction deepMerge(target) {\n for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n sources[_key - 1] = arguments[_key];\n }\n\n if (!sources.length) {\n return target;\n } // making sure to not change target (immutable)\n\n\n var output = _extends({}, target);\n\n sources.forEach(function (source) {\n if (isObject(source)) {\n Object.keys(source).forEach(function (key) {\n if (isObject(source[key])) {\n if (!output[key]) {\n output[key] = _extends({}, source[key]);\n } else {\n output[key] = deepMerge(output[key], source[key]);\n }\n } else {\n output[key] = source[key];\n }\n });\n }\n });\n return output;\n}\n\nvar _default = {\n deepMerge: deepMerge,\n isObject: isObject\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\n\nvar _base = require(\"./base\");\n\nexports.base = _base.base;","\"use strict\";\n\nexports.__esModule = true;\nexports.ClosedCaption = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar ClosedCaption = function ClosedCaption(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"ClosedCaption\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M1,12 C1,5 2.5,4 12,4 C21.5,4 23,5 23,12 C23,19 21.5,20 12,20 C2.5,20 1,19 1,12 Z M5.25,14 C5.25,15.5 6,16 7.75,16 C9.5,16 10.25,15.5 10.25,14 L9.97861679,14 C9.97861671,15.25 8.97905547,16 7.75,16 C6.52094453,16 5.52138329,15.25 5.52138321,14 L5.52138321,10 C5.5,8.75 6.5,8 7.75,8 C9,8 10,8.75 9.97861679,10 L10.25,10 C10.25,8.75 9.2286998,8 7.75,8 C6.2713002,8 5.25,8.75 5.25,10 L5.25,14 Z M13.25,14 C13.25,15.5 14,16 15.75,16 C17.5,16 18.25,15.5 18.25,14 L17.9786168,14 C17.9786167,15.25 16.9790555,16 15.75,16 C14.5209445,16 13.5213833,15.25 13.5213832,14 L13.5213832,10 C13.5,8.75 14.5,8 15.75,8 C17,8 18,8.75 17.9786168,10 L18.25,10 C18.25,8.75 17.2286998,8 15.75,8 C14.2713002,8 13.25,8.75 13.25,10 L13.25,14 Z\"\n }));\n};\n\nexports.ClosedCaption = ClosedCaption;","\"use strict\";\n\nexports.__esModule = true;\nexports.Expand = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Expand = function Expand(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Expand\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M10,14 L2,22 M1,15 L1,23 L9,23 M22,2 L14,10 M15,1 L23,1 L23,9\"\n }));\n};\n\nexports.Expand = Expand;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormDown = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar FormDown = function FormDown(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormDown\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"18 9 12 15 6 9\"\n }));\n};\n\nexports.FormDown = FormDown;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormNext = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar FormNext = function FormNext(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormNext\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"9 6 15 12 9 18\"\n }));\n};\n\nexports.FormNext = FormNext;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormPrevious = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar FormPrevious = function FormPrevious(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormPrevious\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"9 6 15 12 9 18\",\n transform: \"matrix(-1 0 0 1 24 0)\"\n }));\n};\n\nexports.FormPrevious = FormPrevious;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormUp = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar FormUp = function FormUp(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormUp\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"18 9 12 15 6 9\",\n transform: \"matrix(1 0 0 -1 0 24)\"\n }));\n};\n\nexports.FormUp = FormUp;","\"use strict\";\n\nexports.__esModule = true;\nexports.Next = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Next = function Next(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Next\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"7 2 17 12 7 22\"\n }));\n};\n\nexports.Next = Next;","\"use strict\";\n\nexports.__esModule = true;\nexports.Pause = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Pause = function Pause(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Pause\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M3,21 L9,21 L9,3 L3,3 L3,21 Z M15,21 L21,21 L21,3 L15,3 L15,21 Z\"\n }));\n};\n\nexports.Pause = Pause;","\"use strict\";\n\nexports.__esModule = true;\nexports.Play = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Play = function Play(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Play\"\n }, props), _react[\"default\"].createElement(\"polygon\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"3 22 21 12 3 2\"\n }));\n};\n\nexports.Play = Play;","\"use strict\";\n\nexports.__esModule = true;\nexports.Previous = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Previous = function Previous(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Previous\"\n }, props), _react[\"default\"].createElement(\"polyline\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n points: \"7 2 17 12 7 22\",\n transform: \"matrix(-1 0 0 1 24 0)\"\n }));\n};\n\nexports.Previous = Previous;","\"use strict\";\n\nexports.__esModule = true;\nexports.Subtract = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Subtract = function Subtract(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Subtract\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M2,12 L22,12\"\n }));\n};\n\nexports.Subtract = Subtract;","\"use strict\";\n\nexports.__esModule = true;\nexports.Volume = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar Volume = function Volume(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"Volume\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M15,16 C17.209,16 19,14.209 19,12 C19,9.791 17.209,8 15,8 M15,20 C20,20 23,16.411 23,12 C23,7.589 19.411,4 15,4 M1,12 L1,8 L6,8 L12,3 L12,21 L6,16 L1,16 L1,12\"\n }));\n};\n\nexports.Volume = Volume;","\"use strict\";\n\nexports.__esModule = true;\nexports.VolumeLow = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar VolumeLow = function VolumeLow(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"VolumeLow\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M1,8 L1,16 L6.09901951,16 L12,21 L12,3 L6,8 L1,8 Z M15,16 L15,16 C17.209139,16 19,14.209139 19,12 C19,9.790861 17.209139,8 15,8\"\n }));\n};\n\nexports.VolumeLow = VolumeLow;","import { Children, cloneElement, useCallback, useEffect } from 'react';\n\nconst KEYS = {\n 8: 'onBackspace',\n 9: 'onTab',\n 13: 'onEnter',\n 27: 'onEsc',\n 32: 'onSpace',\n 37: 'onLeft',\n 38: 'onUp',\n 39: 'onRight',\n 40: 'onDown',\n 188: 'onComma',\n 16: 'onShift',\n};\n\nconst Keyboard = ({ target, children, onKeyDown, ...restProps }) => {\n const onKeyDownHandler = useCallback(\n (event, ...rest) => {\n const key = event.keyCode ? event.keyCode : event.which;\n const callbackName = KEYS[key];\n\n if (callbackName && restProps[callbackName]) {\n restProps[callbackName](event, ...rest);\n }\n\n if (onKeyDown) {\n onKeyDown(event, ...rest);\n }\n },\n [onKeyDown, restProps],\n );\n\n useEffect(() => {\n if (target === 'document') {\n document.addEventListener('keydown', onKeyDownHandler);\n }\n\n return () => {\n if (target === 'document') {\n document.removeEventListener('keydown', onKeyDownHandler);\n }\n };\n }, [onKeyDownHandler, target]);\n\n return target === 'document'\n ? children\n : cloneElement(Children.only(children), {\n onKeyDown: onKeyDownHandler,\n });\n};\n\nlet KeyboardDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n KeyboardDoc = require('./doc').doc(Keyboard);\n}\nconst KeyboardWrapper = KeyboardDoc || Keyboard;\n\nexport { KeyboardWrapper as Keyboard };\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport {\n backgroundStyle,\n borderStyle,\n breakpointStyle,\n edgeStyle,\n focusStyle,\n genericStyles,\n getHoverIndicatorStyle,\n overflowStyle,\n} from '../../utils';\n\nconst ALIGN_MAP = {\n baseline: 'baseline',\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst alignStyle = css`\n align-items: ${props => ALIGN_MAP[props.align]};\n`;\n\nconst ALIGN_CONTENT_MAP = {\n around: 'around',\n between: 'between',\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst alignContentStyle = css`\n align-content: ${props => ALIGN_CONTENT_MAP[props.alignContent]};\n`;\n\nconst BASIS_MAP = {\n auto: 'auto',\n full: '100%',\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%',\n};\n\nconst basisStyle = css`\n flex-basis: ${props =>\n BASIS_MAP[props.basis] ||\n props.theme.global.size[props.basis] ||\n props.basis};\n`;\n\n// min-width and min-height needed because of this\n// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size\n// we assume we are in the context of a Box going the other direction\n// TODO: revisit this\nconst directionStyle = (direction, theme) => {\n const styles = [\n css`\n min-width: 0;\n min-height: 0;\n flex-direction: ${direction === 'row-responsive' ? 'row' : direction};\n `,\n ];\n if (direction === 'row-responsive' && theme.box.responsiveBreakpoint) {\n const breakpoint = theme.global.breakpoints[theme.box.responsiveBreakpoint];\n if (breakpoint) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n flex-direction: column;\n flex-basis: auto;\n justify-content: flex-start;\n align-items: stretch;\n `,\n ),\n );\n }\n }\n return styles;\n};\n\nconst elevationStyle = css`\n box-shadow: ${props =>\n props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][\n props.elevationProp\n ]};\n`;\n\nconst FLEX_MAP = {\n [true]: '1 1',\n [false]: '0 0',\n grow: '1 0',\n shrink: '0 1',\n};\n\nconst flexGrowShrinkProp = flex => {\n if (typeof flex === 'boolean' || typeof flex === 'string') {\n return FLEX_MAP[flex];\n }\n\n return `${flex.grow ? flex.grow : 0} ${flex.shrink ? flex.shrink : 0}`;\n};\n\nconst flexStyle = css`\n flex: ${props =>\n `${flexGrowShrinkProp(props.flex)}${\n props.flex !== true && !props.basis ? ' auto' : ''\n }`};\n`;\n\nconst fillStyle = fillProp => {\n if (fillProp === 'horizontal') {\n return 'width: 100%;';\n }\n if (fillProp === 'vertical') {\n return 'height: 100%;';\n }\n if (fillProp) {\n return `\n width: 100%;\n height: 100%;\n `;\n }\n return undefined;\n};\n\nconst JUSTIFY_MAP = {\n around: 'space-around',\n between: 'space-between',\n center: 'center',\n end: 'flex-end',\n evenly: 'space-evenly',\n start: 'flex-start',\n};\n\nconst justifyStyle = css`\n justify-content: ${props => JUSTIFY_MAP[props.justify]};\n`;\n\nconst WRAP_MAP = {\n true: 'wrap',\n reverse: 'wrap-reverse',\n};\n\nconst wrapStyle = css`\n flex-wrap: ${props => WRAP_MAP[props.wrapProp]};\n`;\n\nconst ROUND_MAP = {\n full: '100%',\n};\n\nconst roundStyle = (data, responsive, theme) => {\n const breakpoint =\n theme.box.responsiveBreakpoint &&\n theme.global.breakpoints[theme.box.responsiveBreakpoint];\n const styles = [];\n if (typeof data === 'object') {\n const size =\n ROUND_MAP[data.size] ||\n theme.global.edgeSize[data.size || 'medium'] ||\n data.size;\n const responsiveSize =\n responsive &&\n breakpoint &&\n breakpoint.edgeSize[data.size] &&\n (breakpoint.edgeSize[data.size] || data.size);\n if (data.corner === 'top') {\n styles.push(css`\n border-top-left-radius: ${size};\n border-top-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-left-radius: ${responsiveSize};\n border-top-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'bottom') {\n styles.push(css`\n border-bottom-left-radius: ${size};\n border-bottom-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-bottom-left-radius: ${responsiveSize};\n border-bottom-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'left') {\n styles.push(css`\n border-top-left-radius: ${size};\n border-bottom-left-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-left-radius: ${responsiveSize};\n border-bottom-left-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner === 'right') {\n styles.push(css`\n border-top-right-radius: ${size};\n border-bottom-right-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-top-right-radius: ${responsiveSize};\n border-bottom-right-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else if (data.corner) {\n styles.push(css`\n border-${data.corner}-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-${data.corner}-radius: ${responsiveSize};\n `,\n ),\n );\n }\n } else {\n styles.push(css`\n border-radius: ${size};\n `);\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-radius: ${responsiveSize};\n `,\n ),\n );\n }\n }\n } else {\n const size = data === true ? 'medium' : data;\n styles.push(css`\n border-radius: ${ROUND_MAP[size] || theme.global.edgeSize[size] || size};\n `);\n const responsiveSize = breakpoint && breakpoint.edgeSize[size];\n if (responsiveSize) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n border-radius: ${responsiveSize};\n `,\n ),\n );\n }\n }\n return styles;\n};\n\nconst SLIDE_SIZES = {\n xsmall: 1,\n small: 5,\n medium: 10,\n large: 50,\n xlarge: 200,\n};\n\nconst PULSE_SIZES = {\n xsmall: 1.001,\n small: 1.01,\n medium: 1.1,\n large: 1.5,\n xlarge: 2,\n};\n\nconst JIGGLE_SIZES = {\n xsmall: 0.1,\n small: 1,\n medium: 5,\n large: 400,\n xlarge: 1000,\n};\n\nconst ZOOM_SIZES = {\n xsmall: 0.001,\n small: 0.01,\n medium: 0.05,\n large: 0.1,\n xlarge: 0.5,\n};\n\nconst animationBounds = (type, size = 'medium') => {\n if (type === 'fadeIn') {\n return ['opacity: 0;', 'opacity: 1;'];\n }\n if (type === 'fadeOut') {\n return ['opacity: 1;', 'opacity: 0;'];\n }\n if (type === 'jiggle') {\n const deg = JIGGLE_SIZES[size];\n return [`transform: rotate(-${deg}deg);`, `transform: rotate(${deg}deg);`];\n }\n if (type === 'pulse') {\n return ['transform: scale(1);', `transform: scale(${PULSE_SIZES[size]})`];\n }\n if (type === 'flipIn') {\n return ['transform: rotateY(90deg);', 'transform: rotateY(0);'];\n }\n if (type === 'flipOut') {\n return ['transform: rotateY(0);', 'transform: rotateY(90deg);'];\n }\n if (type === 'slideDown') {\n return [\n `transform: translateY(-${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideLeft') {\n return [\n `transform: translateX(${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideRight') {\n return [\n `transform: translateX(-${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'slideUp') {\n return [\n `transform: translateY(${SLIDE_SIZES[size]}%);`,\n 'transform: none;',\n ];\n }\n if (type === 'zoomIn') {\n return [`transform: scale(${1 - ZOOM_SIZES[size]});`, 'transform: none;'];\n }\n if (type === 'zoomOut') {\n return [`transform: scale(${1 + ZOOM_SIZES[size]});`, 'transform: none;'];\n }\n return [];\n};\n\nconst normalizeTiming = (time, defaultTiming) =>\n time ? `${time / 1000.0}s` : defaultTiming;\n\nconst animationEnding = type => {\n if (type === 'jiggle') {\n return 'alternate infinite';\n }\n if (type === 'pulse') {\n return 'alternate infinite';\n }\n return 'forwards';\n};\n\nconst animationObjectStyle = (animation, theme) => {\n const bounds = animationBounds(animation.type, animation.size);\n if (bounds) {\n const animationTransition = css`\n from {\n ${bounds[0]};\n }\n to {\n ${bounds[1]};\n }\n `;\n return css`${keyframes`${animationTransition}`}\n ${normalizeTiming(\n animation.duration,\n (theme.global.animation[animation.type]\n ? theme.global.animation[animation.type].duration\n : undefined) || theme.global.animation.duration,\n )}\n ${normalizeTiming(animation.delay, '0s')}\n ${animationEnding(animation.type)}`;\n }\n return '';\n};\n\nconst animationItemStyle = (item, theme) => {\n if (typeof item === 'string') {\n return animationObjectStyle({ type: item }, theme);\n }\n if (Array.isArray(item)) {\n return item.reduce(\n (style, a, index) =>\n css`${style}${index > 0 ? ',' : ''} ${animationItemStyle(a, theme)}`,\n '',\n );\n }\n if (typeof item === 'object') {\n return animationObjectStyle(item, theme);\n }\n return '';\n};\n\nconst animationAncilaries = animation => {\n if (animation.type === 'flipIn' || animation.type === 'flipOut') {\n return 'perspective: 1000px; transform-style: preserve-3d;';\n }\n return '';\n};\n\nconst animationObjectInitialStyle = animation => {\n const bounds = animationBounds(animation.type, animation.size);\n if (bounds) {\n return `${bounds[0]} ${animationAncilaries(animation)}`;\n }\n return '';\n};\n\nconst animationInitialStyle = item => {\n if (typeof item === 'string') {\n return animationObjectInitialStyle({ type: item });\n }\n if (Array.isArray(item)) {\n return item\n .map(a =>\n typeof a === 'string'\n ? animationObjectInitialStyle({ type: a })\n : animationObjectInitialStyle(a),\n )\n .join('');\n }\n if (typeof item === 'object') {\n return animationObjectInitialStyle(item);\n }\n return '';\n};\n\nconst animationStyle = css`\n ${props => css`\n ${animationInitialStyle(props.animation)}\n animation: ${animationItemStyle(props.animation, props.theme)};\n `};\n`;\n\nconst interactiveStyle = css`\n cursor: pointer;\n\n &:hover {\n ${props =>\n props.hoverIndicator &&\n getHoverIndicatorStyle(props.hoverIndicator, props.theme)}\n }\n`;\n\nconst getSize = (props, size) => props.theme.global.size[size] || size;\n\nconst heightObjectStyle = css`\n ${props =>\n props.heightProp.max &&\n css`\n max-height: ${getSize(props, props.heightProp.max)};\n `};\n ${props =>\n props.heightProp.min &&\n css`\n min-height: ${getSize(props, props.heightProp.min)};\n `};\n`;\n\nconst heightStyle = css`\n height: ${props => getSize(props, props.heightProp)};\n`;\n\nconst widthObjectStyle = css`\n ${props =>\n props.widthProp.max &&\n css`\n max-width: ${getSize(props, props.widthProp.max)};\n `};\n ${props =>\n props.widthProp.min &&\n css`\n min-width: ${getSize(props, props.widthProp.min)};\n `};\n`;\n\nconst widthStyle = css`\n width: ${props => getSize(props, props.widthProp)};\n`;\n\n// NOTE: basis must be after flex! Otherwise, flex overrides basis\nconst StyledBox = styled.div`\n display: flex;\n box-sizing: border-box;\n outline: none;\n ${props => !props.basis && 'max-width: 100%;'};\n\n ${genericStyles}\n ${props => props.align && alignStyle}\n ${props => props.alignContent && alignContentStyle}\n ${props => props.background && backgroundStyle(props.background, props.theme)}\n ${props =>\n props.border &&\n (Array.isArray(props.border)\n ? props.border.map(border =>\n borderStyle(border, props.responsive, props.theme),\n )\n : borderStyle(props.border, props.responsive, props.theme))}\n ${props =>\n props.directionProp && directionStyle(props.directionProp, props.theme)}\n ${props =>\n props.heightProp &&\n (typeof props.heightProp === 'object' ? heightObjectStyle : heightStyle)}\n ${props =>\n props.widthProp &&\n (typeof props.widthProp === 'object' ? widthObjectStyle : widthStyle)}\n ${props => props.flex !== undefined && flexStyle}\n ${props => props.basis && basisStyle}\n ${props => props.fillProp && fillStyle(props.fillProp)}\n ${props => props.justify && justifyStyle}\n ${props =>\n props.pad &&\n edgeStyle(\n 'padding',\n props.pad,\n props.responsive,\n props.theme.box.responsiveBreakpoint,\n props.theme,\n )}\n ${props =>\n props.round && roundStyle(props.round, props.responsive, props.theme)}\n ${props => props.wrapProp && wrapStyle}\n ${props => props.overflowProp && overflowStyle(props.overflowProp)}\n ${props => props.elevationProp && elevationStyle}\n ${props => props.animation && animationStyle}\n ${props => props.onClick && interactiveStyle}\n ${props =>\n props.onClick &&\n props.focus &&\n props.focusIndicator !== false &&\n focusStyle}\n ${props => props.theme.box && props.theme.box.extend}\n`;\n\nconst gapStyle = (directionProp, gap, responsive, theme) => {\n const breakpoint =\n theme.box.responsiveBreakpoint &&\n theme.global.breakpoints[theme.box.responsiveBreakpoint];\n const responsiveSize =\n breakpoint && breakpoint.edgeSize[gap] && breakpoint.edgeSize[gap];\n const styles = [];\n if (directionProp === 'column') {\n styles.push(\n css`\n height: ${theme.global.edgeSize[gap] || gap};\n `,\n );\n if (responsiveSize) {\n styles.push(breakpointStyle(breakpoint, `height: ${responsiveSize};`));\n }\n } else {\n styles.push(`width: ${theme.global.edgeSize[gap] || gap};`);\n if (responsive && directionProp === 'row-responsive') {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n width: auto;\n height: ${responsiveSize};\n `,\n ),\n );\n }\n }\n return styles;\n};\n\nStyledBox.defaultProps = {};\nObject.setPrototypeOf(StyledBox.defaultProps, defaultProps);\n\nconst StyledBoxGap = styled.div`\n flex: 0 0 auto;\n ${props =>\n props.gap &&\n gapStyle(props.directionProp, props.gap, props.responsive, props.theme)};\n`;\n\nStyledBoxGap.defaultProps = {};\nObject.setPrototypeOf(StyledBoxGap.defaultProps, defaultProps);\n\nexport { StyledBox, StyledBoxGap };\n","export { AccordionPanel } from './AccordionPanel';\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Collapsible } from '../Collapsible';\nimport { Heading } from '../Heading';\nimport { withForwardRef } from '../hocs';\n\nimport { AccordionContext } from '../Accordion/AccordionContext';\n\nconst AccordionPanel = ({\n children,\n header,\n label,\n theme,\n onMouseOut,\n onMouseOver,\n onFocus,\n onBlur,\n ...rest\n}) => {\n const [hover, setHover] = useState(undefined);\n\n const iconColor = normalizeColor(\n theme.accordion.icons.color || 'control',\n theme,\n );\n\n const onHandleMouseOver = (...args) => {\n const { dark } = theme;\n\n setHover(dark ? 'light-4' : 'dark-3');\n\n if (onMouseOver) onMouseOver(args);\n };\n\n const onHandleMouseOut = (...args) => {\n setHover(undefined);\n\n if (onMouseOut) onMouseOut(args);\n };\n\n const onHandleFocus = (...args) => {\n const { dark } = theme;\n\n setHover(dark ? 'light-4' : 'dark-3');\n\n if (onFocus) onFocus(args);\n };\n\n const onHandleBlur = (...args) => {\n setHover(undefined);\n\n if (onBlur) onBlur(args);\n };\n\n return (\n \n {panelContext => {\n const { active, animate, onPanelChange } = panelContext;\n const AccordionIcon = active\n ? theme.accordion.icons.collapse\n : theme.accordion.icons.expand;\n\n return (\n \n \n {header || (\n \n {typeof label === 'string' ? (\n \n \n {label}\n \n \n ) : (\n label\n )}\n {AccordionIcon && (\n \n \n \n )}\n \n )}\n \n \n {animate ? (\n {children}\n ) : (\n active && children\n )}\n \n \n );\n }}\n \n );\n};\n\nAccordionPanel.defaultProps = {};\nObject.setPrototypeOf(AccordionPanel.defaultProps, defaultProps);\n\nlet AccordionPanelDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n AccordionPanelDoc = require('./doc').doc(AccordionPanel);\n}\nconst AccordionPanelWrapper = compose(\n withTheme,\n withForwardRef,\n)(AccordionPanelDoc || AccordionPanel);\n\nexport { AccordionPanelWrapper as AccordionPanel };\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import React, {\n cloneElement,\n Children,\n forwardRef,\n useContext,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { colorIsDark, normalizeBackground, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { StyledButton } from './StyledButton';\n\nconst Button = forwardRef(\n (\n {\n a11yTitle,\n color, // munged to avoid styled-components putting it in the DOM\n children,\n disabled,\n icon,\n focusIndicator = true,\n gap = 'small',\n fill, // munged to avoid styled-components putting it in the DOM\n href,\n label,\n onBlur,\n onClick,\n onFocus,\n onMouseOut,\n onMouseOver,\n plain,\n primary,\n reverse,\n type = 'button',\n as,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [focus, setFocus] = useState();\n\n if ((icon || label) && children) {\n console.warn(\n 'Button should not have children if icon or label is provided',\n );\n }\n\n const isDarkBackground = () => {\n const backgroundColor = normalizeBackground(\n normalizeColor(\n color ||\n theme.button.primary.color ||\n theme.global.colors.control ||\n 'brand',\n theme,\n ),\n theme,\n );\n\n return colorIsDark(backgroundColor, theme);\n };\n\n const [hover, setHover] = useState(false);\n\n const onMouseOverButton = event => {\n setHover(true);\n if (onMouseOver) {\n onMouseOver(event);\n }\n };\n\n const onMouseOutButton = event => {\n setHover(false);\n if (onMouseOut) {\n onMouseOut(event);\n }\n };\n\n let buttonIcon = icon;\n // only change color if user did not specify the color themselves...\n if (primary && icon && !icon.props.color) {\n buttonIcon = cloneElement(icon, {\n color: theme.global.colors.text[isDarkBackground() ? 'dark' : 'light'],\n });\n }\n\n const domTag = !as && href ? 'a' : as;\n const first = reverse ? label : buttonIcon;\n const second = reverse ? buttonIcon : label;\n\n let contents;\n if (first && second) {\n contents = (\n \n {first}\n {second}\n \n );\n } else if (typeof children === 'function') {\n contents = children({ hover, focus });\n } else {\n contents = first || second || children;\n }\n return (\n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={event => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n onMouseOver={onMouseOverButton}\n onMouseOut={onMouseOutButton}\n pad={!plain}\n plain={\n typeof plain !== 'undefined'\n ? plain\n : Children.count(children) > 0 || (icon && !label)\n }\n primary={primary}\n type={!href ? type : undefined}\n >\n {contents}\n \n );\n },\n);\n\nButton.displayName = 'Button';\n\nlet ButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n ButtonDoc = require('./doc').doc(Button);\n}\nconst ButtonWrapper = ButtonDoc || Button;\n\nexport { ButtonWrapper as Button };\n","import styled, { css } from 'styled-components';\n\nimport {\n activeStyle,\n backgroundStyle,\n disabledStyle,\n focusStyle,\n genericStyles,\n getHoverIndicatorStyle,\n normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst basicStyle = props => css`\n border: ${props.theme.button.border.width} solid\n ${normalizeColor(\n props.colorValue || props.theme.button.border.color || 'control',\n props.theme,\n )};\n border-radius: ${props.theme.button.border.radius};\n color: ${normalizeColor(props.theme.button.color || 'text', props.theme)};\n padding: ${props.theme.button.padding.vertical}\n ${props.theme.button.padding.horizontal};\n font-size: ${props.theme.text.medium.size};\n line-height: ${props.theme.text.medium.height};\n`;\n\nconst primaryStyle = props => css`\n ${backgroundStyle(\n normalizeColor(\n props.colorValue || props.theme.button.primary.color || 'control',\n props.theme,\n ),\n props.theme,\n props.theme.button.color,\n )}\n border-radius: ${props.theme.button.border.radius};\n`;\n\nfunction getHoverColor(props) {\n if (props.colorValue) {\n return normalizeColor(props.colorValue, props.theme);\n }\n return normalizeColor(\n props.theme.button.border.color || 'control',\n props.theme,\n );\n}\n\nconst hoverStyle = css`\n &:hover {\n ${props =>\n props.hoverIndicator &&\n getHoverIndicatorStyle(props.hoverIndicator, props.theme)} ${props =>\n !props.plain &&\n css`\n box-shadow: 0px 0px 0px 2px ${getHoverColor(props)};\n `};\n }\n`;\n\nconst fillStyle = fillContainer => {\n if (fillContainer === 'horizontal') {\n return 'width: 100%;';\n }\n if (fillContainer === 'vertical') {\n return 'height: 100%;';\n }\n if (fillContainer) {\n return `\n width: 100%;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n `;\n }\n return undefined;\n};\n\nconst plainStyle = props => css`\n color: ${normalizeColor(props.colorValue || 'inherit', props.theme)};\n border: none;\n padding: 0;\n text-align: inherit;\n`;\n\n// Deprecate props.theme.button.disabled.opacity in V3\nconst StyledButton = styled.button`\n display: inline-block;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n font: inherit;\n text-decoration: none;\n margin: 0;\n background: transparent;\n overflow: visible;\n text-transform: none;\n\n ${genericStyles}\n ${props => props.plain && plainStyle(props)}\n ${props => !props.plain && basicStyle(props)}\n ${props => props.primary && primaryStyle(props)}\n\n ${props => !props.disabled && !props.focus && hoverStyle}\n\n ${props => !props.disabled && props.active && activeStyle}\n ${props =>\n props.disabled &&\n disabledStyle(\n props.theme.button.disabled && props.theme.button.disabled.opacity,\n )}\n ${props =>\n props.focus && (!props.plain || props.focusIndicator) && focusStyle}\n ${props =>\n !props.plain &&\n `\n transition-property: color,\n background-color,\n border-color,\n box-shadow;\n transition-duration: 0.1s;\n transition-timing-function: ease-in-out;\n `}\n ${props => props.fillContainer && fillStyle(props.fillContainer)}\n ${props =>\n props.hasIcon &&\n !props.hasLabel &&\n `\n line-height: 0;\n `}\n${props =>\n props.pad &&\n props.hasIcon &&\n !props.hasLabel &&\n `\npadding: ${props.theme.global.edgeSize.small};\n`}\n ${props => props.theme.button.extend}\n`;\n\nStyledButton.defaultProps = {};\nObject.setPrototypeOf(StyledButton.defaultProps, defaultProps);\n\nexport { StyledButton };\n","import React, { createRef, Component } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nconst animatedBoxProperty = direction =>\n direction === 'horizontal' ? 'width' : 'height';\n\nconst AnimatedBox = styled(Box)`\n ${props =>\n !props.animate &&\n (props.open\n ? `\n max-${animatedBoxProperty(props.collapsibleDirection)}: unset;\n visibility: visible;\n `\n : `\n max-${animatedBoxProperty(props.collapsibleDirection)}: 0;\n visibility: hidden;\n overflow: hidden;\n `)};\n`;\n\nclass Collapsible extends Component {\n ref = createRef();\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { open } = nextProps;\n if (open !== prevState.open) {\n return {\n animate: true,\n open,\n };\n }\n return null;\n }\n\n constructor(props, context) {\n super(props, context);\n\n /* eslint-disable-next-line react/prop-types */\n this.state = { open: props.open, animate: false };\n }\n\n componentDidUpdate(prevProps, prevState, snapshot) {\n const {\n /* eslint-disable-next-line react/prop-types */\n direction,\n theme: {\n collapsible: { minSpeed, baseline },\n },\n } = this.props;\n const { animate, open } = this.state;\n\n const container = this.ref.current;\n if (container) {\n const dimension = animatedBoxProperty(direction);\n const boudingClientRect = container.getBoundingClientRect();\n const dimensionSize = boudingClientRect[dimension];\n\n let shouldAnimate = animate && prevState.open !== open;\n\n if (\n open &&\n snapshot[dimension] &&\n dimensionSize !== snapshot[dimension]\n ) {\n shouldAnimate = true;\n }\n\n if (shouldAnimate) {\n if (this.animationTimeout) {\n clearTimeout(this.animationTimeout);\n }\n\n const speed = Math.max((dimensionSize / baseline) * minSpeed, minSpeed);\n\n container.style[`max-${dimension}`] = `${snapshot[dimension]}px`;\n container.style.overflow = 'hidden';\n\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n // eslint-disable-next-line max-len\n container.style.transition = `max-${dimension} ${speed}ms, visibility 50ms`;\n container.style[`max-${dimension}`] = open\n ? `${dimensionSize}px`\n : '0px';\n\n this.animationTimeout = setTimeout(() => {\n container.removeAttribute('style');\n this.setState({\n animate: false,\n });\n }, speed);\n });\n });\n }\n }\n }\n\n componentWillUnmount() {\n if (this.animationTimeout) {\n clearTimeout(this.animationTimeout);\n }\n }\n\n getSnapshotBeforeUpdate = () =>\n this.ref.current && this.ref.current.getBoundingClientRect();\n\n render() {\n /* eslint-disable-next-line react/prop-types */\n const { children, direction } = this.props;\n const { animate, open } = this.state;\n\n return (\n \n {children}\n \n );\n }\n}\n\nCollapsible.defaultProps = {};\nObject.setPrototypeOf(Collapsible.defaultProps, defaultProps);\n\nlet CollapsibleDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n CollapsibleDoc = require('./doc').doc(Collapsible);\n}\nconst CollapsibleWrapper = compose(withTheme)(CollapsibleDoc || Collapsible);\n\nexport { CollapsibleWrapper as Collapsible };\n","import React from 'react';\n\nimport { StyledHeading } from './StyledHeading';\n\nconst Heading = props => {\n const {\n color, // munged to avoid styled-components putting it in the DOM\n level,\n ...rest\n } = props;\n\n // enforce level to be a number\n return (\n \n );\n};\n\nHeading.defaultProps = {\n level: 1,\n responsive: true,\n};\n\nlet HeadingDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n HeadingDoc = require('./doc').doc(Heading);\n}\nconst HeadingWrapper = HeadingDoc || Heading;\n\nexport { HeadingWrapper as Heading };\n","import styled, { css } from 'styled-components';\n\nimport { breakpointStyle, genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n // size is a combination of the level and size properties\n const size = props.size || 'medium';\n const headingTheme = props.theme.heading;\n const levelStyle = headingTheme.level[props.level];\n if (levelStyle) {\n const data = levelStyle[size];\n const styles = \n [\n css`\n font-size: ${data ? data.size : size};\n line-height: ${data ? data.height : 'normal'};\n max-width: ${data ? data.maxWidth : levelStyle.medium.maxWidth};\n font-weight: ${levelStyle.font.weight || headingTheme.weight};\n `,\n ];\n if (props.responsive && headingTheme.responsiveBreakpoint) {\n const breakpoint =\n props.theme.global.breakpoints[headingTheme.responsiveBreakpoint];\n if (breakpoint) {\n const responsiveData =\n headingTheme.level[Math.min(props.level + 1, 4)][size];\n if(responsiveData) {\n styles.push(\n breakpointStyle(\n breakpoint,\n `\n font-size: ${responsiveData.size};\n line-height: ${responsiveData.height};\n max-width: ${responsiveData.maxWidth};\n `,\n ),\n );\n }\n }\n }\n return styles;\n }\n console.warn(`Heading level ${props.level} is not defined in your theme.`);\n\n return '';\n};\n\nconst fontFamily = props => {\n const { font } = props.theme.heading.level[props.level];\n if (font && font.family) {\n return css`\n font-family: ${font.family};\n `;\n }\n return props.theme.heading.font\n ? css`\n font-family: ${props.theme.heading.font.family};\n `\n : '';\n};\n\nconst TEXT_ALIGN_MAP = {\n center: 'center',\n end: 'right',\n start: 'left',\n};\n\nconst textAlignStyle = css`\n text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst truncateStyle = `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst StyledHeading = styled.h1`\n ${genericStyles}\n ${props => fontFamily(props)}\n ${props => sizeStyle(props)}\n ${props => props.textAlign && textAlignStyle}\n ${props => props.truncate && truncateStyle}\n ${props => props.colorProp && colorStyle}\n ${props => props.theme.heading && props.theme.heading.extend}\n`;\n\nStyledHeading.defaultProps = {};\nObject.setPrototypeOf(StyledHeading.defaultProps, defaultProps);\n\nexport { StyledHeading };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar getDisplayName = function getDisplayName(Component) {\n if (typeof Component === 'string') {\n return Component;\n }\n\n if (!Component) {\n return undefined;\n }\n\n return Component.displayName || Component.name || 'Component';\n};\n\nvar _default = getDisplayName;\nexports.default = _default;","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\n\nfunction getStatics(component) {\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n }\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.12.0\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?Symbol.for(\"react.suspense_list\"):\n60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.fundamental\"):60117,w=b?Symbol.for(\"react.responder\"):60118,x=b?Symbol.for(\"react.scope\"):60119;function y(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}\nexports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};\nexports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};\n","export { AnnounceContext } from './AnnounceContext';\n","import React from 'react';\n\nconst createAnnouncer = () => {\n const announcer = document.createElement('div');\n announcer.style.left = '-100%';\n announcer.style.right = '100%';\n announcer.style.position = 'fixed';\n announcer.style['z-index'] = '-1';\n\n document.body.insertBefore(announcer, document.body.firstChild);\n\n return announcer;\n};\n\nexport const AnnounceContext = React.createContext(\n (message, mode = 'polite', timeout = 500) => {\n // we only create a new container if we don't have one already\n // we create a separate node so that grommet does not set aria-hidden to it\n const announcer =\n document.body.querySelector('[aria-live]') || createAnnouncer();\n\n announcer.setAttribute('aria-live', 'off');\n announcer.innerHTML = message;\n announcer.setAttribute('aria-live', mode);\n setTimeout(() => {\n announcer.innerHTML = '';\n }, timeout);\n },\n);\n","export { ResponsiveContext } from './ResponsiveContext';\n","import React from 'react';\n\nexport const ResponsiveContext = React.createContext(undefined);\n","export { ThemeContext } from './ThemeContext';\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeContext } from 'styled-components';\n\nimport { deepMerge } from '../../utils';\n\nThemeContext.Extend = ({ children, value }) => (\n \n {theme => (\n \n {children}\n \n )}\n \n);\n\nThemeContext.Extend.propTypes = {\n children: PropTypes.node.isRequired,\n value: PropTypes.shape({}).isRequired,\n};\n\nexport { ThemeContext };\n","import React, {\n cloneElement,\n forwardRef,\n useContext,\n useEffect,\n useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { normalizeColor } from '../../utils';\n\nimport { Box } from '../Box';\n\nimport { StyledAnchor } from './StyledAnchor';\n\nconst Anchor = forwardRef(\n (\n {\n a11yTitle,\n children,\n color,\n disabled,\n href,\n icon,\n label,\n onBlur,\n onClick,\n onFocus,\n reverse,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext) || defaultProps.theme;\n const [focus, setFocus] = useState();\n\n useEffect(() => {\n if ((icon || label) && children) {\n console.warn(\n 'Anchor should not have children if icon or label is provided',\n );\n }\n }, [children, icon, label]);\n\n let coloredIcon = icon;\n if (icon && !icon.props.color) {\n coloredIcon = cloneElement(icon, {\n color: normalizeColor(color || theme.anchor.color, theme),\n });\n }\n\n const first = reverse ? label : coloredIcon;\n const second = reverse ? coloredIcon : label;\n\n return (\n {\n setFocus(true);\n if (onFocus) onFocus(event);\n }}\n onBlur={event => {\n setFocus(false);\n if (onBlur) onBlur(event);\n }}\n >\n {first && second ? (\n \n {first}\n {second}\n \n ) : (\n first || second || children\n )}\n \n );\n },\n);\n\nAnchor.displayName = 'Anchor';\n\nlet AnchorDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n AnchorDoc = require('./doc').doc(Anchor);\n}\nconst AnchorWrapper = AnchorDoc || Anchor;\n\nexport { AnchorWrapper as Anchor };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n opacity: 0.3;\n cursor: default;\n text-decoration: none;\n`;\n\nconst sizeStyle = props => {\n if (props.size) {\n const size = props.size || 'medium';\n const data = props.theme.text[size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n }\n return css`\n font-size: inherit;\n line-height: inherit;\n `;\n};\n\nconst StyledAnchor = styled.a`\n box-sizing: border-box;\n ${props => sizeStyle(props)}\n color: ${props =>\n normalizeColor(props.colorProp || props.theme.anchor.color, props.theme)};\n ${props =>\n props.theme.anchor.fontWeight &&\n `font-weight: ${props.theme.anchor.fontWeight};`}\n text-decoration: ${props =>\n props.hasIcon ? 'none' : props.theme.anchor.textDecoration};\n cursor: pointer;\n outline: none;\n ${genericStyles}\n\n ${props =>\n !props.disabled &&\n props.theme.anchor.hover &&\n css`\n &:hover {\n ${props.theme.anchor.hover.textDecoration &&\n `text-decoration: ${props.theme.anchor.hover.textDecoration};`}\n ${props.theme.anchor.hover.fontWeight &&\n `font-weight: ${props.theme.anchor.hover.fontWeight};`}\n ${props.theme.anchor.hover.extend}\n }\n `}\n ${props =>\n props.hasIcon &&\n !props.hasLabel &&\n `\n padding: ${props.theme.global.edgeSize.small};\n `}\n ${props => props.disabled && disabledStyle}\n ${props => props.focus && focusStyle}\n ${props => props.theme.anchor.extend}\n`;\n\nStyledAnchor.defaultProps = {};\nObject.setPrototypeOf(StyledAnchor.defaultProps, defaultProps);\n\nexport { StyledAnchor };\n","export { Calendar } from './Calendar';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Heading } from '../Heading';\nimport { Keyboard } from '../Keyboard';\n\nimport {\n StyledCalendar,\n StyledDay,\n StyledDayContainer,\n StyledWeek,\n StyledWeeks,\n StyledWeeksContainer,\n} from './StyledCalendar';\nimport {\n addDays,\n addMonths,\n betweenDates,\n daysApart,\n endOfMonth,\n startOfMonth,\n subtractDays,\n subtractMonths,\n withinDates,\n updateDateRange,\n} from './utils';\n\nconst headingPadMap = {\n small: 'xsmall',\n medium: 'small',\n large: 'medium',\n};\n\nconst buildStartEnd = (reference, firstDayOfWeek) => {\n let start = new Date(reference);\n start.setDate(1); // first of month\n\n // In case Sunday is the first day of the month, and the user asked for Monday\n // to be the first day of the week, then we need to include Sunday and six\n // days prior.\n start =\n start.getDay() === 0 && firstDayOfWeek === 1\n ? (start = subtractDays(start, 6))\n : // beginning of week\n (start = subtractDays(start, start.getDay() - firstDayOfWeek));\n\n const end = addDays(start, 7 * 5 + 7); // 5 weeks to end of week\n return { start, end };\n};\n\nconst buildState = props => {\n const { date, dates, firstDayOfWeek, reference } = props;\n let normalizedReference;\n if (reference) {\n normalizedReference = new Date(reference);\n } else if (date) {\n normalizedReference = new Date(date);\n } else if (dates && dates.length > 0) {\n if (typeof dates[0] === 'string') {\n normalizedReference = new Date(dates[0]);\n } else if (Array.isArray(dates[0])) {\n normalizedReference = new Date(dates[0][0]);\n } else {\n normalizedReference = new Date();\n }\n } else {\n normalizedReference = new Date();\n }\n return {\n ...buildStartEnd(normalizedReference, firstDayOfWeek),\n reference: normalizedReference,\n };\n};\n\nclass Calendar extends Component {\n static defaultProps = {\n animate: true,\n firstDayOfWeek: 0,\n size: 'medium',\n locale: 'en-US',\n showAdjacentDays: true,\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { reference } = nextProps;\n const { reference: prevReference } = prevState;\n if (\n Object.prototype.hasOwnProperty.call(nextProps, 'date') ||\n Object.prototype.hasOwnProperty.call(nextProps, 'dates') ||\n !prevReference ||\n reference\n ) {\n let state = {};\n if (\n Object.prototype.hasOwnProperty.call(nextProps, 'date') ||\n Object.prototype.hasOwnProperty.call(nextProps, 'dates')\n ) {\n state.date = nextProps.date;\n state.dates = nextProps.dates;\n }\n if (!prevReference || reference) {\n state = { ...state, ...buildState(nextProps) };\n }\n return state;\n }\n return null;\n }\n\n state = {};\n\n dayRefs = {};\n\n componentDidUpdate() {\n const { focused } = this.state;\n if (focused) {\n const ref = this.dayRefs[focused.toISOString()];\n if (ref && ref.current && ref.current !== document.activeElement) {\n ref.current.focus();\n }\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timer);\n }\n\n clearSlideStateLater = () => {\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n const { targetStartEnd } = this.state;\n if (targetStartEnd) {\n this.setState({\n start: targetStartEnd.start,\n end: targetStartEnd.end,\n targetStartEnd: undefined,\n slide: undefined,\n });\n }\n // Wait for animation to finish before cleaning up.\n // Empirically determined.\n }, 800);\n };\n\n setReference = reference => {\n const { animate, bounds, firstDayOfWeek, onReference } = this.props;\n const { start, end, targetStartEnd } = this.state;\n if (betweenDates(reference, bounds)) {\n const nextStartEnd = buildStartEnd(reference, firstDayOfWeek);\n const nextState = { reference };\n // if we're changing too fast, bypass animation\n if (!animate || targetStartEnd) {\n nextState.targetStartEnd = nextStartEnd;\n nextState.start = nextStartEnd.start;\n nextState.end = nextStartEnd.end;\n nextState.targetStartEnd = undefined;\n nextState.slide = undefined;\n } else {\n nextState.targetStartEnd = nextStartEnd;\n if (nextStartEnd.start.getTime() < start.getTime()) {\n nextState.start = nextStartEnd.start;\n nextState.slide = {\n direction: 'down',\n weeks: daysApart(start, nextStartEnd.start) / 7,\n };\n } else if (nextStartEnd.end.getTime() > end.getTime()) {\n nextState.end = nextStartEnd.end;\n nextState.slide = {\n direction: 'up',\n weeks: daysApart(nextStartEnd.end, end) / 7,\n };\n }\n }\n this.clearSlideStateLater();\n this.setState(nextState, () => {\n if (onReference) {\n onReference(reference.toISOString());\n }\n });\n }\n };\n\n onFocus = day => () => {\n const { bounds } = this.props;\n const { reference } = this.state;\n if (betweenDates(day, bounds)) {\n this.setState({ focused: day }, () => {\n if (day.getMonth() !== reference.getMonth()) {\n this.setReference(day);\n }\n });\n }\n };\n\n onClickDay = dateString => () => {\n const { onSelect, range } = this.props;\n if (range) {\n const nextState = updateDateRange(dateString, this.state);\n this.setState(nextState);\n if (onSelect) {\n onSelect(nextState.dates || nextState.date || undefined);\n }\n } else if (onSelect) {\n onSelect(dateString);\n }\n };\n\n setFocus = day => {\n const ref = this.dayRefs[day.toISOString()];\n if (ref && ref.current) {\n ref.current.focus();\n }\n };\n\n renderCalendarHeader = (previousMonth, nextMonth) => {\n const { bounds, locale, size, theme } = this.props;\n const { reference } = this.state;\n\n const PreviousIcon =\n size === 'small'\n ? theme.calendar.icons.small.previous\n : theme.calendar.icons.previous;\n\n const NextIcon =\n size === 'small'\n ? theme.calendar.icons.small.next\n : theme.calendar.icons.next;\n\n return (\n \n \n \n {reference.toLocaleDateString(locale, {\n month: 'long',\n year: 'numeric',\n })}\n \n \n \n }\n disabled={!betweenDates(previousMonth, bounds)}\n onClick={() => this.setReference(previousMonth)}\n />\n }\n disabled={!betweenDates(nextMonth, bounds)}\n onClick={() => this.setReference(nextMonth)}\n />\n \n \n );\n };\n\n renderDaysOfWeek = (locale, size, start) => {\n let day = new Date(start);\n const days = [];\n while (days.length < 7) {\n days.push(\n \n \n {day.toLocaleDateString(locale, { weekday: 'narrow' })}\n \n ,\n );\n day = addDays(day, 1);\n }\n return {days};\n };\n\n render() {\n const {\n bounds,\n date: dateProp,\n dates: datesProp,\n disabled,\n daysOfWeek,\n firstDayOfWeek,\n header,\n locale,\n onReference,\n onSelect,\n range,\n showAdjacentDays,\n size,\n theme,\n ...rest\n } = this.props;\n const { date, dates, focused, start, reference, end, slide } = this.state;\n\n // We have to deal with reference being the end of a month with more\n // days than the month we are changing to. So, we always set reference\n // to the first of the month before changing the month.\n const previousMonth = endOfMonth(\n subtractMonths(startOfMonth(reference), 1),\n );\n const nextMonth = startOfMonth(addMonths(startOfMonth(reference), 1));\n\n const weeks = [];\n let day = new Date(start);\n let days;\n this.dayRefs = {};\n\n while (day.getTime() < end.getTime()) {\n if (day.getDay() === firstDayOfWeek) {\n if (days) {\n weeks.push({days});\n }\n days = [];\n }\n\n const otherMonth = day.getMonth() !== reference.getMonth();\n if (!showAdjacentDays && otherMonth) {\n days.push(\n \n \n ,\n );\n } else {\n const dateString = day.toISOString();\n this.dayRefs[dateString] = React.createRef();\n let selected = false;\n let inRange = false;\n\n const selectedState = withinDates(day, date || dates);\n if (selectedState === 2) {\n selected = true;\n } else if (selectedState === 1) {\n inRange = true;\n }\n const dayDisabled =\n withinDates(day, disabled) || (bounds && !betweenDates(day, bounds));\n\n days.push(\n \n this.setState({ focused: false })}\n >\n \n {day.getDate()}\n \n \n ,\n );\n }\n\n day = addDays(day, 1);\n }\n weeks.push({days});\n\n return (\n \n {\n event.preventDefault();\n this.setFocus(addDays(focused, -7));\n }}\n onDown={event => {\n event.preventDefault();\n this.setFocus(addDays(focused, 7));\n }}\n onLeft={() => focused && this.setFocus(addDays(focused, -1))}\n onRight={() => focused && this.setFocus(addDays(focused, 1))}\n >\n \n {header\n ? header({\n date: reference,\n locale,\n onPreviousMonth: () => this.setReference(previousMonth),\n onNextMonth: () => this.setReference(nextMonth),\n previousInBound: betweenDates(previousMonth, bounds),\n nextInBound: betweenDates(nextMonth, bounds),\n })\n : this.renderCalendarHeader(previousMonth, nextMonth)}\n {daysOfWeek && this.renderDaysOfWeek(locale, size, start)}\n \n \n {weeks}\n \n \n \n \n \n );\n }\n}\n\nObject.setPrototypeOf(Calendar.defaultProps, defaultProps);\n\nlet CalendarDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n CalendarDoc = require('./doc').doc(Calendar);\n}\nconst CalendarWrapper = compose(withTheme)(CalendarDoc || Calendar);\n\nexport { CalendarWrapper as Calendar };\n","import styled, { css, keyframes } from 'styled-components';\nimport { backgroundStyle, genericStyles, parseMetricToNum } from '../../utils';\n\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n const data = props.theme.calendar[props.sizeProp];\n return css`\n font-size: ${data.fontSize};\n line-height: ${data.lineHeight};\n width: ${props.theme.global.size[props.sizeProp]};\n `;\n};\n\nconst StyledCalendar = styled.div`\n ${genericStyles}\n ${props => sizeStyle(props)}\n ${props => props.theme.calendar && props.theme.calendar.extend}\n`;\n\nStyledCalendar.defaultProps = {};\nObject.setPrototypeOf(StyledCalendar.defaultProps, defaultProps);\n\nconst StyledWeeksContainer = styled.div`\n overflow: hidden;\n ${props =>\n `height: ${parseMetricToNum(props.theme.calendar[props.sizeProp].daySize) *\n 6}px;`};\n`;\n\nStyledWeeksContainer.defaultProps = {};\nObject.setPrototypeOf(StyledWeeksContainer.defaultProps, defaultProps);\n\nconst slideStyle = props => {\n const {\n slide: { direction, weeks },\n sizeProp,\n theme,\n } = props;\n const { daySize, slideDuration } = theme.calendar[sizeProp];\n const amount = parseMetricToNum(daySize) * weeks;\n\n const translateYFrom = direction === 'down' ? `-${amount}px` : '0';\n const translateYTo = direction === 'up' ? `-${amount}px` : '0';\n const slideTransition = css`\n 0% {\n transform: translateY(${translateYFrom});\n }\n 100% {\n transform: translateY(${translateYTo});\n }\n `;\n return css`\n animation: ${keyframes`${slideTransition}`} ${slideDuration} forwards;\n `;\n};\n\nconst StyledWeeks = styled.div`\n position: relative;\n ${props => props.slide && slideStyle(props)};\n`;\n\nStyledWeeks.defaultProps = {};\nObject.setPrototypeOf(StyledWeeks.defaultProps, defaultProps);\n\nconst StyledWeek = styled.div`\n display: flex;\n flex-direction: row;\n flex-justify: between;\n`;\n\nStyledWeek.defaultProps = {};\nObject.setPrototypeOf(StyledWeek.defaultProps, defaultProps);\n\nconst StyledDayContainer = styled.div`\n flex: 0 0 auto;\n`;\n\nStyledDayContainer.defaultProps = {};\nObject.setPrototypeOf(StyledDayContainer.defaultProps, defaultProps);\n\nconst daySizeStyle = props => {\n const data = props.theme.calendar[props.sizeProp];\n return css`\n width: ${data.daySize};\n height: ${data.daySize};\n `;\n};\n\nconst StyledDay = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n ${props => daySizeStyle(props)}\n ${props =>\n (props.isSelected && backgroundStyle('control', props.theme)) ||\n (props.inRange &&\n backgroundStyle({ color: 'control', opacity: 'weak' }, props.theme))}\n ${props => props.otherMonth && 'opacity: 0.5;'}\n ${props => props.isSelected && 'font-weight: bold;'}\n ${props =>\n props.theme.calendar &&\n props.theme.calendar.day &&\n props.theme.calendar.day.extend}\n`;\n\nStyledDay.defaultProps = {};\nObject.setPrototypeOf(StyledDay.defaultProps, defaultProps);\n\nexport {\n StyledCalendar,\n StyledWeeksContainer,\n StyledWeeks,\n StyledWeek,\n StyledDayContainer,\n StyledDay,\n};\n","// Utility functions for the Calendar.\n// Just what's needed to avoid having to include a dependency like momentjs.\n\nconst DAY_MILLISECONDS = 24 * 60 * 60 * 1000;\n\nexport const addDays = (date, days) => {\n const result = new Date(date.getTime() + DAY_MILLISECONDS * days);\n // Deal with crossing the daylight savings time boundary,\n // where adding a day's worth when the time is midnight results in\n // being a day off.\n let hourDelta = result.getHours() - date.getHours();\n // At this point, hourDelta is typically 0 (normal day),\n // +23 (November daylight saving), or -23 (March Daylight saving)\n // depending on which side of the switch we are on.\n // Convert so that hourDelta is either +1 or -1.\n if (hourDelta === 23) {\n hourDelta -= 24;\n } else if (hourDelta === -23) {\n hourDelta += 24;\n }\n result.setHours(result.getHours() - hourDelta);\n return result;\n};\n\nexport const subtractDays = (date, days) => addDays(date, -days);\n\nexport const addMonths = (date, months) => {\n const result = new Date(date);\n const years = Math.floor((date.getMonth() + months) / 12);\n result.setFullYear(date.getFullYear() + years);\n const targetMonth = (date.getMonth() + months) % 12;\n result.setMonth(targetMonth < 0 ? 12 + targetMonth : targetMonth);\n return result;\n};\n\nexport const subtractMonths = (date, months) => addMonths(date, -months);\n\nexport const startOfMonth = date => {\n const result = new Date(date);\n result.setDate(1);\n return result;\n};\n\nexport const endOfMonth = date => {\n const result = addMonths(date, 1);\n result.setDate(0);\n return result;\n};\n\nexport const sameDay = (date1, date2) =>\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate();\n\nexport const sameDayOrAfter = (date1, date2) =>\n date1.getFullYear() > date2.getFullYear() ||\n (date1.getFullYear() === date2.getFullYear() &&\n (date1.getMonth() > date2.getMonth() ||\n (date1.getMonth() === date2.getMonth() &&\n date1.getDate() >= date2.getDate())));\n\nexport const sameDayOrBefore = (date1, date2) =>\n date1.getFullYear() < date2.getFullYear() ||\n (date1.getFullYear() === date2.getFullYear() &&\n (date1.getMonth() < date2.getMonth() ||\n (date1.getMonth() === date2.getMonth() &&\n date1.getDate() <= date2.getDate())));\n\nexport const daysApart = (date1, date2) =>\n Math.floor((date1.getTime() - date2.getTime()) / DAY_MILLISECONDS);\n\n// betweenDates takes and array of two elements and checks if the\n// supplied date lies between them, inclusive.\n// returns 2 if exact match to one end, 1 if between, undefined otherwise\nexport const betweenDates = (date, dates) => {\n let result;\n if (dates) {\n const [from, to] = dates.map(d => new Date(d));\n if (sameDay(date, from) || sameDay(date, to)) {\n result = 2;\n } else if (sameDayOrAfter(date, from) && sameDayOrBefore(date, to)) {\n result = 1;\n }\n } else {\n result = 1;\n }\n return result;\n};\n\n// withinDates takes and array of string dates or 2 element arrays and\n// checks whether the supplied date matches any string or is between\n// any dates in arrays.\n// returns 2 if exact match, 1 if between, undefined otherwise\nexport const withinDates = (date, dates) => {\n let result;\n if (dates) {\n if (Array.isArray(dates)) {\n dates.some(d => {\n if (typeof d === 'string') {\n if (sameDay(date, new Date(d))) {\n result = 2;\n }\n } else {\n result = betweenDates(date, d);\n }\n return result;\n });\n } else if (sameDay(date, new Date(dates))) {\n result = 2;\n }\n }\n return result;\n};\n\nexport const updateDateRange = (\n selectedDate,\n { date, dates, previousSelectedDate },\n) => {\n const result = { previousSelectedDate: selectedDate };\n if (!dates) {\n if (!date) {\n result.date = selectedDate;\n } else {\n const priorDate = new Date(date);\n const nextDate = new Date(selectedDate);\n if (priorDate.getTime() < nextDate.getTime()) {\n result.date = undefined;\n result.dates = [[date, selectedDate]];\n } else if (priorDate.getTime() > nextDate.getTime()) {\n result.date = undefined;\n result.dates = [[selectedDate, date]];\n } else {\n result.date = undefined;\n }\n }\n } else {\n const priorDates = dates[0].map(d => new Date(d));\n const previousDate = new Date(previousSelectedDate);\n const nextDate = new Date(selectedDate);\n if (nextDate.getTime() === priorDates[0].getTime()) {\n result.dates = undefined;\n [[, result.date]] = dates;\n } else if (nextDate.getTime() === priorDates[1].getTime()) {\n result.dates = undefined;\n [[result.date]] = dates;\n } else if (nextDate.getTime() < previousDate.getTime()) {\n if (nextDate.getTime() < priorDates[0].getTime()) {\n result.dates = [[selectedDate, dates[0][1]]];\n } else if (nextDate.getTime() > priorDates[0].getTime()) {\n result.dates = [[dates[0][0], selectedDate]];\n }\n } else if (nextDate.getTime() > previousDate.getTime()) {\n if (nextDate.getTime() > priorDates[1].getTime()) {\n result.dates = [[dates[0][0], selectedDate]];\n } else if (nextDate.getTime() < priorDates[1].getTime()) {\n result.dates = [[selectedDate, dates[0][1]]];\n }\n }\n }\n return result;\n};\n","export { Carousel } from './Carousel';\n","import React, { Children, Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Keyboard } from '../Keyboard';\nimport { Stack } from '../Stack';\nimport { withFocus } from '../hocs';\n\nclass Carousel extends Component {\n constructor(p) {\n super(p);\n this.state = { activeIndex: p.initialChild };\n }\n\n componentDidMount() {\n const { play } = this.props;\n if (play) {\n this.play();\n }\n }\n\n componentDidUpdate(prevProps) {\n const { play } = this.props;\n if (play && (!prevProps.play || play !== prevProps.play)) {\n this.play();\n } else if (!play && prevProps.play) {\n clearInterval(this.timer);\n }\n }\n\n componentWillUnmount() {\n clearInterval(this.timer);\n }\n\n play = () => {\n const { play } = this.props;\n clearInterval(this.timer);\n this.timer = setInterval(() => {\n const { children } = this.props;\n const { activeIndex } = this.state;\n const lastIndex = Children.count(children) - 1;\n if (activeIndex < lastIndex) {\n this.setState({\n activeIndex: activeIndex + 1,\n priorActiveIndex: activeIndex,\n });\n } else {\n this.setState({ activeIndex: 0, priorActiveIndex: activeIndex });\n }\n }, play);\n };\n\n onRight = () => {\n const { activeIndex } = this.state;\n clearInterval(this.timer);\n this.setState({\n activeIndex: activeIndex + 1,\n priorActiveIndex: activeIndex,\n });\n };\n\n onLeft = () => {\n const { activeIndex } = this.state;\n clearInterval(this.timer);\n this.setState({\n activeIndex: activeIndex - 1,\n priorActiveIndex: activeIndex,\n });\n };\n\n onSelect = index => () => {\n const { activeIndex } = this.state;\n clearInterval(this.timer);\n this.setState({ activeIndex: index, priorActiveIndex: activeIndex });\n };\n\n render() {\n const { children, controls, fill, focus, theme, ...rest } = this.props;\n const { activeIndex, priorActiveIndex } = this.state;\n\n const showArrows = controls && controls !== 'selectors';\n const showSelectors = controls && controls !== 'arrows';\n const lastIndex = Children.count(children) - 1;\n const onLeft = activeIndex > 0 ? this.onLeft : undefined;\n const onRight = activeIndex < lastIndex ? this.onRight : undefined;\n\n const CurrentIcon = theme.carousel.icons.current;\n const iconColor = normalizeColor(\n theme.carousel.icons.color || 'control',\n theme,\n );\n\n const selectors = [];\n const wrappedChildren = Children.map(children, (child, index) => {\n selectors.push(\n \n }\n onClick={this.onSelect(index)}\n />,\n );\n\n let animation;\n if (index === activeIndex) {\n if (priorActiveIndex !== undefined) {\n animation = {\n type: priorActiveIndex < activeIndex ? 'slideLeft' : 'slideRight',\n size: 'xlarge',\n duration: theme.carousel.animation.duration,\n };\n }\n } else if (index === priorActiveIndex) {\n animation = {\n type: 'fadeOut',\n duration: theme.carousel.animation.duration,\n };\n } else {\n animation = { type: 'fadeOut', duration: 0 };\n }\n\n return (\n \n \n {child}\n \n \n );\n });\n\n const NextIcon = theme.carousel.icons.next;\n const PreviousIcon = theme.carousel.icons.previous;\n const nextIconDisabled = activeIndex >= lastIndex;\n const previousIconDisabled = activeIndex <= 0;\n\n return (\n \n \n {wrappedChildren}\n \n {showArrows && (\n \n }\n plain\n disabled={previousIconDisabled}\n onClick={onLeft}\n hoverIndicator\n />\n )}\n {showSelectors && (\n \n \n {selectors}\n \n \n )}\n {showArrows && (\n \n }\n plain\n disabled={nextIconDisabled}\n onClick={onRight}\n hoverIndicator\n />\n )}\n \n \n \n );\n }\n}\n\nCarousel.defaultProps = {\n initialChild: 0,\n controls: true,\n};\nObject.setPrototypeOf(Carousel.defaultProps, defaultProps);\n\nlet CarouselDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n CarouselDoc = require('./doc').doc(Carousel);\n}\nconst CarouselWrapper = compose(\n withFocus(),\n withTheme,\n)(CarouselDoc || Carousel);\n\nexport { CarouselWrapper as Carousel };\n","import React, { Children } from 'react';\n\nimport { StyledStack, StyledStackLayer } from './StyledStack';\n\nconst buildStyledChildren = ({\n anchor,\n fill,\n guidingIndex,\n interactiveChild,\n interactiveIndex,\n}) => {\n let childIndex = 0;\n\n return child => {\n if (child) {\n const interactive =\n interactiveChild === undefined || interactiveIndex === childIndex;\n\n const isGuidingIndex = childIndex === guidingIndex;\n childIndex += 1;\n\n const props = isGuidingIndex\n ? {\n guiding: true,\n fillContainer: fill,\n }\n : {\n anchor,\n };\n\n return (\n \n {child}\n \n );\n }\n\n return child;\n };\n};\n\nconst Stack = ({\n anchor,\n children,\n fill,\n guidingChild,\n interactiveChild,\n ...rest\n}) => {\n const toChildIndex = child => {\n let index = child;\n\n if (index === 'first' || !index) index = 0;\n else if (index === 'last') index = React.Children.count(children) - 1;\n\n return index;\n };\n\n const guidingIndex = toChildIndex(guidingChild);\n const interactiveIndex = interactiveChild && toChildIndex(interactiveChild);\n\n const styledChildren = Children.map(\n children,\n buildStyledChildren({\n anchor,\n fill,\n guidingIndex,\n interactiveChild,\n interactiveIndex,\n }),\n );\n\n return (\n \n {styledChildren}\n \n );\n};\n\nlet StackDoc;\nif (process.env.NODE_ENV !== 'production') {\n StackDoc = require('./doc').doc(Stack); // eslint-disable-line global-require\n}\nconst StackWrapper = StackDoc || Stack;\n\nexport { StackWrapper as Stack };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = `\n width: 100%;\n height: 100%;\n max-width: none;\n flex-grow: 1;\n display: flex;\n`;\n\nconst StyledStack = styled.div`\n position: relative;\n ${genericStyles}\n ${props => props.fillContainer && fillStyle}\n ${props => props.theme.stack && props.theme.stack.extend}\n`;\n\nStyledStack.defaultProps = {};\nObject.setPrototypeOf(StyledStack.defaultProps, defaultProps);\n\nconst styleMap = {\n fill: `\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n `,\n center: `\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n `,\n left: `\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n `,\n right: `\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n `,\n top: `\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n `,\n bottom: `\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n `,\n 'top-left': `\n top: 0;\n left: 0;\n `,\n 'bottom-left': `\n bottom: 0;\n left: 0;\n `,\n 'top-right': `\n top: 0;\n right: 0;\n `,\n 'bottom-right': `\n bottom: 0;\n right: 0;\n `,\n};\n\nconst StyledStackLayer = styled.div`\n position: ${props => (props.guiding ? 'relative' : 'absolute')};\n ${props => props.guiding && 'display: block;'}\n ${props => !props.guiding && `${styleMap[props.anchor || 'fill']};`}\n ${props =>\n props.fillContainer &&\n `\n width: 100%;\n height: 100%;\n `}\n ${props => !props.interactive && `pointer-events: none;`}\n`;\n\nStyledStackLayer.defaultProps = {};\nObject.setPrototypeOf(StyledStackLayer.defaultProps, defaultProps);\n\nexport { StyledStack, StyledStackLayer };\n","export { Chart } from './Chart';\nexport { calcs } from './calcs';\n","import React, { useContext, useEffect, useRef, useState } from 'react';\n\nimport { ThemeContext } from 'styled-components';\n\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledChart } from './StyledChart';\nimport { normalizeBounds, normalizeValues } from './utils';\n\nconst gradientMaskColor = '#ffffff';\n\n// use constants so re-renders don't re-trigger effects\nconst defaultSize = { height: 'small', width: 'medium' };\nconst defaultValues = [];\n\nconst Chart = React.forwardRef(\n (\n {\n bounds: propsBounds,\n color,\n gap,\n id,\n onClick,\n onHover,\n overflow = false,\n round,\n size: propsSize = defaultSize,\n thickness = 'medium',\n type = 'bar',\n values: propsValues = defaultValues,\n ...rest\n },\n ref,\n ) => {\n const theme = useContext(ThemeContext);\n const [values, setValues] = useState([]);\n const [bounds, setBounds] = useState([\n [0, 0],\n [0, 0],\n ]);\n const [containerSize, setContainerSize] = useState([0, 0]);\n const [size, setSize] = useState([0, 0]);\n const [scale, setScale] = useState([1, 1]);\n const [strokeWidth, setStrokeWidth] = useState(0);\n const containerRef = ref || useRef();\n\n // calculations\n useEffect(() => {\n const nextValues = normalizeValues(propsValues);\n setValues(nextValues);\n\n const nextBounds = normalizeBounds(propsBounds, nextValues);\n setBounds(nextBounds);\n\n const nextStrokeWidth = parseMetricToNum(\n theme.global.edgeSize[thickness] || thickness,\n );\n setStrokeWidth(nextStrokeWidth);\n\n const gapWidth = gap\n ? parseMetricToNum(theme.global.edgeSize[gap] || gap)\n : nextStrokeWidth;\n\n // autoWidth is how wide we'd pefer\n const autoWidth =\n nextStrokeWidth * nextValues.length +\n (nextValues.length - 1) * gapWidth;\n\n const sizeWidth =\n typeof propsSize === 'string'\n ? propsSize\n : propsSize.width || defaultSize.width;\n let width;\n if (sizeWidth === 'full') {\n [width] = containerSize;\n } else if (sizeWidth === 'auto') {\n width = autoWidth;\n } else {\n width = parseMetricToNum(theme.global.size[sizeWidth] || sizeWidth);\n }\n\n const sizeHeight =\n typeof propsSize === 'string'\n ? propsSize\n : propsSize.height || defaultSize.height;\n let height;\n if (sizeHeight === 'full') {\n [, height] = containerSize;\n } else {\n height = parseMetricToNum(theme.global.size[sizeHeight] || sizeHeight);\n }\n\n setSize([width, height]);\n\n const nextScale = [\n (sizeWidth === 'auto' ? autoWidth : width) /\n (nextBounds[0][1] - nextBounds[0][0]),\n height / (nextBounds[1][1] - nextBounds[1][0]),\n ];\n setScale(nextScale);\n }, [\n containerSize,\n gap,\n propsBounds,\n propsSize,\n propsValues,\n theme.global.edgeSize,\n theme.global.size,\n thickness,\n ]);\n\n // set container size when we get ref or when size changes\n if (\n containerRef.current &&\n propsSize &&\n (propsSize === 'full' ||\n propsSize.height === 'full' ||\n propsSize.width === 'full')\n ) {\n const containerNode = containerRef.current;\n if (containerNode) {\n const { parentNode } = containerNode;\n if (parentNode) {\n const rect = parentNode.getBoundingClientRect();\n if (\n rect.width !== containerSize[0] ||\n rect.height !== containerSize[1]\n ) {\n setContainerSize([rect.width, rect.height]);\n }\n }\n }\n }\n\n // container size, if needed\n useEffect(() => {\n const onResize = () => {\n const { parentNode } = containerRef.current;\n const rect = parentNode.getBoundingClientRect();\n setContainerSize([rect.width, rect.height]);\n };\n\n if (\n propsSize &&\n (propsSize === 'full' ||\n propsSize.width === 'full' ||\n propsSize.height === 'full')\n ) {\n window.addEventListener('resize', onResize);\n return () => window.removeEventListener('resize', onResize);\n }\n return undefined;\n }, [containerRef, propsSize]);\n\n const useGradient = color && Array.isArray(color);\n\n const renderBars = () =>\n (values || []).map((valueArg, index) => {\n const { label, onHover: valueOnHover, value, ...valueRest } = valueArg;\n\n const key = `p-${index}`;\n const bottom = value.length === 2 ? bounds[1][0] : value[1];\n const top = value.length === 2 ? value[1] : value[2];\n if (top !== 0) {\n const d =\n `M ${(value[0] - bounds[0][0]) * scale[0]},` +\n `${size[1] - (bottom - bounds[1][0]) * scale[1]}` +\n ` L ${(value[0] - bounds[0][0]) * scale[0]},` +\n `${size[1] - (top - bounds[1][0]) * scale[1]}`;\n\n let hoverProps;\n if (valueOnHover) {\n hoverProps = {\n onMouseOver: () => valueOnHover(true),\n onMouseLeave: () => valueOnHover(false),\n };\n }\n\n return (\n \n {label}\n \n \n );\n }\n return undefined;\n });\n\n const renderLine = () => {\n let d = '';\n (values || []).forEach(({ value }, index) => {\n d +=\n `${index ? ' L' : 'M'} ${(value[0] - bounds[0][0]) * scale[0]},` +\n `${size[1] - (value[1] - bounds[1][0]) * scale[1]}`;\n });\n\n let hoverProps;\n if (onHover) {\n hoverProps = {\n onMouseOver: () => onHover(true),\n onMouseLeave: () => onHover(false),\n };\n }\n let clickProps;\n if (onClick) {\n clickProps = { onClick };\n }\n\n return (\n \n \n \n );\n };\n\n const renderArea = () => {\n let d = '';\n (values || []).forEach(({ value }, index) => {\n const top = value.length === 2 ? value[1] : value[2];\n d +=\n `${!index ? 'M' : ' L'} ${(value[0] - bounds[0][0]) * scale[0]},` +\n `${size[1] - (top - bounds[1][0]) * scale[1]}`;\n });\n (values || []).reverse().forEach(({ value }) => {\n const bottom = value.length === 2 ? bounds[1][0] : value[1];\n d +=\n ` L ${(value[0] - bounds[0][0]) * scale[0]},` +\n `${size[1] - (bottom - bounds[1][0]) * scale[1]}`;\n });\n if (d.length > 0) {\n d += ' Z';\n }\n\n let hoverProps;\n if (onHover) {\n hoverProps = {\n onMouseOver: () => onHover(true),\n onMouseLeave: () => onHover(false),\n };\n }\n let clickProps;\n if (onClick) {\n clickProps = { onClick };\n }\n\n return (\n \n \n \n );\n };\n\n const renderPoints = () =>\n (values || []).map((valueArg, index) => {\n const { label, onHover: valueOnHover, value, ...valueRest } = valueArg;\n\n const key = `p-${index}`;\n\n let hoverProps;\n if (valueOnHover) {\n hoverProps = {\n onMouseOver: () => valueOnHover(true),\n onMouseLeave: () => valueOnHover(false),\n };\n }\n\n const center = value.length === 2 ? value[1] : value[2];\n let shape;\n if (round) {\n const cx = (value[0] - bounds[0][0]) * scale[0];\n const cy = size[1] - (center - bounds[1][0]) * scale[1];\n shape = (\n \n );\n } else {\n const x = (value[0] - bounds[0][0]) * scale[0] - strokeWidth / 2;\n const y =\n size[1] - (center - bounds[1][0]) * scale[1] - strokeWidth / 2;\n shape = (\n \n );\n }\n\n return (\n \n {label}\n {shape}\n \n );\n });\n\n let contents;\n if (type === 'bar') {\n contents = renderBars();\n } else if (type === 'line') {\n contents = renderLine();\n } else if (type === 'area') {\n contents = renderArea();\n } else if (type === 'point') {\n contents = renderPoints();\n }\n\n const viewBounds = overflow\n ? [0, 0, size[0], size[1]]\n : [\n -(strokeWidth / 2),\n -(strokeWidth / 2),\n size[0] + strokeWidth,\n size[1] + strokeWidth,\n ];\n const viewBox = viewBounds.join(' ');\n let colorName;\n if (!useGradient) {\n if (color && color.color) colorName = color.color;\n else if (color) colorName = color;\n else if (theme.chart && theme.chart.color) colorName = theme.chart.color;\n else colorName = 'graph-0';\n }\n const opacity =\n color && color.opacity ? theme.global.opacity[color.opacity] : undefined;\n\n let stroke;\n if (type !== 'point') {\n if (useGradient) stroke = gradientMaskColor;\n else stroke = normalizeColor(colorName, theme);\n } else stroke = 'none';\n\n let fill;\n if (type === 'point' || type === 'area') {\n if (useGradient) fill = gradientMaskColor;\n else fill = normalizeColor(colorName, theme);\n } else fill = 'none';\n\n const drawing = (\n \n {contents}\n \n );\n\n let defs;\n let gradientRect;\n if (useGradient && size[1]) {\n const gradientId = `${id}-gradient`;\n const maskId = `${id}-mask`;\n defs = (\n \n \n {color\n .sort((c1, c2) => c2.value - c1.value)\n .map(({ value, color: gradientColor }) => (\n \n ))}\n \n {drawing}\n \n );\n\n gradientRect = (\n \n );\n }\n\n return (\n \n {defs}\n {useGradient ? gradientRect : drawing}\n \n );\n },\n);\n\nChart.displayName = 'Chart';\n\nlet ChartDoc;\nif (process.env.NODE_ENV !== 'production') {\n ChartDoc = require('./doc').doc(Chart); // eslint-disable-line global-require\n}\nconst ChartWrapper = ChartDoc || Chart;\n\nexport { ChartWrapper as Chart };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledChart = styled.svg`\n display: block;\n max-width: 100%;\n overflow: visible;\n\n ${genericStyles} ${props => props.theme.chart && props.theme.chart.extend};\n`;\n\nStyledChart.defaultProps = {};\nObject.setPrototypeOf(StyledChart.defaultProps, defaultProps);\n\nexport { StyledChart };\n","import { normalizeValues } from './utils';\n\nexport const calcs = (values, options = {}) => {\n const coarseness = options.coarseness || 5;\n const steps = options.steps || [1, 1];\n const calcValues = normalizeValues(values || []);\n\n let min;\n let max;\n if (options.min !== undefined && options.max !== undefined) {\n ({ min, max } = options);\n } else if (calcValues.length) {\n // Calculate the max and min y values.\n min = calcValues[0].value[1] || 0;\n max = min;\n calcValues.forEach(value => {\n const y = value.value[1];\n min = Math.min(min, y);\n max = Math.max(max, y);\n // handle ranges of values\n if (value.value[2] !== undefined) {\n const y2 = value.value[2];\n min = Math.min(min, y2);\n max = Math.max(max, y2);\n }\n });\n min = options.min !== undefined ? options.min : min;\n max = options.max !== undefined ? options.max : max;\n\n // Calculate some reasonable y bounds based on the max and min y values.\n // This is so values like 87342.12 don't end up being displayed as the\n // graph axis edge label.\n const delta = max - min;\n const interval = Number.parseFloat((delta / coarseness).toPrecision(1));\n max = max - (max % interval) + interval;\n min -= min % interval;\n }\n\n const bounds = calcValues.length\n ? [\n [calcValues[0].value[0], calcValues[calcValues.length - 1].value[0]],\n [min, max],\n ]\n : [[], []];\n const dimensions = [bounds[0][1] - bounds[0][0], bounds[1][1] - bounds[1][0]];\n\n // Calculate x and y axis values across the specfied number of steps.\n const yAxis = [];\n let y = bounds[1][1];\n const yStepInterval = dimensions[1] / steps[1];\n while (y >= bounds[1][0]) {\n yAxis.push(y);\n y -= yStepInterval;\n }\n\n const xAxis = [];\n let x = bounds[0][0];\n const xStepInterval = dimensions[0] / steps[0];\n while (\n (xStepInterval > 0 && x <= bounds[0][1]) ||\n (xStepInterval < 0 && x >= bounds[0][1])\n ) {\n xAxis.push(x);\n x += xStepInterval;\n }\n\n // Set bar thickness based on number of values being rendered.\n // Someday, it would be better to include the actual rendered size.\n // These values were emirically determined, trying to balance visibility\n // and overlap across resolutions.\n let thickness;\n let pad;\n if (calcValues.length < 5) {\n thickness = 'xlarge';\n pad = 'large';\n } else if (calcValues.length < 11) {\n thickness = 'large';\n pad = 'medium';\n } else if (calcValues.length < 21) {\n thickness = 'medium';\n pad = 'small';\n } else if (calcValues.length < 61) {\n thickness = 'small';\n pad = 'xsmall';\n } else if (calcValues.length < 121) {\n thickness = 'xsmall';\n pad = 'xxsmall';\n } else {\n thickness = 'hair';\n }\n\n return { axis: [xAxis, yAxis], bounds, dimensions, pad, thickness };\n};\n","import React, { useEffect } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { removeUndefined } from '../../utils/object';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport {\n StyledCheckBox,\n StyledCheckBoxBox,\n StyledCheckBoxIcon,\n StyledCheckBoxContainer,\n StyledCheckBoxInput,\n StyledCheckBoxToggle,\n StyledCheckBoxKnob,\n} from './StyledCheckBox';\n\nimport { normalizeColor } from '../../utils';\n\nconst stopLabelClick = event => {\n // prevents clicking on the label trigging the event twice\n // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n if (event.target.type !== 'checkbox') {\n event.stopPropagation();\n }\n};\n\nconst CheckBox = ({\n checked,\n disabled,\n focus,\n forwardRef,\n id,\n label,\n name,\n onChange,\n reverse,\n theme,\n toggle,\n indeterminate,\n ...rest\n}) => {\n useEffect(() => {\n if (checked && indeterminate) {\n console.warn(\n 'Checkbox cannot be \"checked\" and \"indeterminate\" at the same time.',\n );\n }\n\n if (toggle && indeterminate) {\n console.warn(\n 'Checkbox of type toggle does not have \"indeterminate\" state.',\n );\n }\n }, [checked, toggle, indeterminate]);\n\n const themeableProps = {\n checked,\n disabled,\n focus,\n reverse,\n toggle,\n indeterminate,\n };\n\n let hidden;\n if (disabled && checked) {\n hidden = ;\n }\n\n const {\n checked: CheckedIcon,\n indeterminate: IndeterminateIcon,\n } = theme.checkBox.icons;\n\n let borderColor = normalizeColor(theme.checkBox.border.color, theme);\n if (checked) {\n borderColor = normalizeColor(theme.checkBox.color || 'control', theme);\n }\n\n const visual = toggle ? (\n \n \n \n ) : (\n \n {!indeterminate &&\n checked &&\n (CheckedIcon ? (\n \n ) : (\n \n \n \n ))}\n {!checked &&\n indeterminate &&\n (IndeterminateIcon ? (\n \n ) : (\n \n \n \n ))}\n \n );\n\n const side = reverse ? 'left' : 'right';\n const checkBoxNode = (\n \n \n {visual}\n {hidden}\n \n );\n\n const normalizedLabel =\n typeof label === 'string' ? {label} : label;\n\n const first = reverse ? normalizedLabel : checkBoxNode;\n const second = reverse ? checkBoxNode : normalizedLabel;\n\n return (\n \n {first}\n {second}\n \n );\n};\n\nCheckBox.defaultProps = {};\nObject.setPrototypeOf(CheckBox.defaultProps, defaultProps);\n\nlet CheckBoxDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n CheckBoxDoc = require('./doc').doc(CheckBox);\n}\nconst CheckBoxWrapper = compose(\n withFocus(),\n withTheme,\n withForwardRef,\n)(CheckBoxDoc || CheckBox);\n\nexport { CheckBoxWrapper as CheckBox };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n opacity: 0.5;\n cursor: default;\n`;\n\nconst hoverStyle = css`\n :hover input:not([disabled]) + div,\n :hover input:not([disabled]) + span {\n border-color: ${props =>\n normalizeColor(props.theme.checkBox.hover.border.color, props.theme)};\n }\n`;\n\nconst StyledCheckBoxIcon = styled.svg`\n box-sizing: border-box;\n stroke-width: ${props => props.theme.checkBox.check.thickness};\n stroke: ${props =>\n normalizeColor(props.theme.checkBox.color || 'control', props.theme)};\n width: ${props =>\n props.theme.checkBox.icon.size || props.theme.checkBox.size};\n height: ${props =>\n props.theme.checkBox.icon.size || props.theme.checkBox.size};\n ${props => props.theme.checkBox.icon.extend};\n`;\n\nStyledCheckBoxIcon.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxIcon.defaultProps, defaultProps);\n\nconst StyledCheckBoxContainer = styled.label`\n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n width: fit-content;\n ${props => props.disabled && disabledStyle}\n ${props => !props.disabled && 'cursor: pointer;'}\n ${props => props.theme.checkBox.hover.border.color && hoverStyle}\n ${props => props.theme.checkBox.extend}\n`;\n\nStyledCheckBoxContainer.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxContainer.defaultProps, defaultProps);\n\nconst StyledCheckBoxInput = styled.input`\n opacity: 0;\n -moz-appearance: none;\n width: 0;\n height: 0;\n margin: 0;\n\n ${props => !props.disabled && 'cursor: pointer;'} :checked + span > span {\n left: calc(\n ${props => props.theme.checkBox.toggle.size} -\n ${props => props.theme.checkBox.size}\n );\n background: ${props =>\n normalizeColor(props.theme.checkBox.color || 'control', props.theme)};\n }\n`;\n\nStyledCheckBoxInput.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxInput.defaultProps, defaultProps);\n\nconst StyledCheckBoxBox = styled.div`\n ${props => props.focus && focusStyle};\n ${props => props.theme.checkBox.check.extend};\n`;\n\nStyledCheckBoxBox.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxBox.defaultProps, defaultProps);\n\nconst StyledCheckBoxToggle = styled.span`\n box-sizing: border-box;\n vertical-align: middle;\n display: inline-block;\n width: ${props => props.theme.checkBox.toggle.size};\n height: ${props => props.theme.checkBox.size};\n border: ${props => props.theme.checkBox.border.width} solid;\n border-color: ${props =>\n normalizeColor(props.theme.checkBox.border.color, props.theme)};\n border-radius: ${props => props.theme.checkBox.toggle.radius};\n background-color: ${props =>\n props.theme.checkBox.toggle.background\n ? normalizeColor(props.theme.checkBox.toggle.background, props.theme)\n : 'transparent'};\n\n ${props => props.focus && focusStyle};\n ${props => props.theme.checkBox.toggle.extend};\n`;\n\nStyledCheckBoxToggle.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxToggle.defaultProps, defaultProps);\n\nconst StyledCheckBoxKnob = styled.span`\n box-sizing: border-box;\n position: relative;\n display: inherit;\n top: -${props => props.theme.checkBox.border.width};\n left: -${props => props.theme.checkBox.border.width};\n transition: all 0.3s;\n width: ${props => props.theme.checkBox.size};\n height: ${props => props.theme.checkBox.size};\n background: ${props =>\n normalizeColor(\n props.theme.checkBox.toggle.color[props.theme.dark ? 'dark' : 'light'],\n props.theme,\n )};\n border-radius: ${props => props.theme.checkBox.toggle.radius};\n ${props => props.theme.checkBox.toggle.knob.extend};\n`;\n\nStyledCheckBoxKnob.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxKnob.defaultProps, defaultProps);\n\nconst StyledCheckBox = styled.div`\n flex-shrink: 0;\n`;\n\nStyledCheckBox.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBox.defaultProps, defaultProps);\n\nexport {\n StyledCheckBoxIcon,\n StyledCheckBoxContainer,\n StyledCheckBoxInput,\n StyledCheckBoxBox,\n StyledCheckBoxToggle,\n StyledCheckBoxKnob,\n StyledCheckBox,\n};\n","export { Clock } from './Clock';\n","import React, { Component } from 'react';\n\nimport { Analog } from './Analog';\nimport { Digital } from './Digital';\n\nconst TIME_REGEXP = /T([0-9]{2}):([0-9]{2})(?::([0-9.,]{2,}))?/;\nconst DURATION_REGEXP = /^(-|\\+)?P.*T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?$/;\n\nconst parseTime = (time, hourLimit) => {\n const result = {};\n if (time) {\n let match = DURATION_REGEXP.exec(time);\n if (match) {\n result.hours = parseFloat(match[2]);\n if (hourLimit === 12) {\n result.hours12 = result.hours > 12 ? result.hours - 12 : result.hours;\n }\n result.minutes = parseFloat(match[3]) || 0;\n result.seconds = parseFloat(match[4]) || 0;\n result.duration = true;\n } else {\n match = TIME_REGEXP.exec(time);\n if (match) {\n result.hours = parseFloat(match[1]);\n if (hourLimit === 12) {\n result.hours12 = result.hours > 12 ? result.hours - 12 : result.hours;\n }\n result.minutes = parseFloat(match[2]) || 0;\n result.seconds = parseFloat(match[3]) || 0;\n } else {\n console.error(`Grommet Clock cannot parse '${time}'`);\n }\n }\n } else {\n const date = new Date();\n result.hours = date.getHours();\n result.minutes = date.getMinutes();\n result.seconds = date.getSeconds();\n }\n return result;\n};\n\nclass Clock extends Component {\n static defaultProps = {\n hourLimit: 24,\n precision: 'seconds',\n run: 'forward',\n size: 'medium',\n type: 'analog',\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { hourLimit, time } = nextProps;\n const { elements } = prevState;\n if (!elements || time) {\n const nextElements = parseTime(time, hourLimit);\n if (!elements) {\n return { elements: nextElements };\n }\n if (\n Object.keys(nextElements).some(k => elements[k] !== nextElements[k])\n ) {\n return { elements: nextElements };\n }\n }\n return null;\n }\n\n state = {};\n\n componentDidMount() {\n const { run } = this.props;\n if (run) {\n this.run();\n }\n }\n\n componentDidUpdate(prevProps) {\n const { run } = this.props;\n if (run && !prevProps.run) {\n this.run();\n } else if (!run && prevProps.run) {\n clearInterval(this.timer);\n }\n }\n\n componentWillUnmount() {\n clearInterval(this.timer);\n }\n\n run() {\n const { hourLimit, onChange, precision, run } = this.props;\n const { elements } = this.state;\n\n // set the interval time based on the precision\n let interval = 1000;\n let increment = 'seconds';\n if (precision !== 'seconds' && elements.seconds === 0) {\n interval *= 60;\n increment = 'minutes';\n if (precision !== 'minutes' && elements.minutes === 0) {\n interval *= 60;\n increment = 'hours';\n }\n }\n\n clearInterval(this.timer);\n this.timer = setInterval(() => {\n const { elements: previousElements } = this.state;\n const nextElements = { ...previousElements };\n\n // adjust time based on precision\n if (increment === 'seconds') {\n if (run === 'backward') {\n nextElements.seconds -= 1;\n } else {\n nextElements.seconds += 1;\n }\n } else if (increment === 'minutes') {\n if (run === 'backward') {\n nextElements.minutes -= 1;\n } else {\n nextElements.minutes += 1;\n }\n } else if (increment === 'hours') {\n if (run === 'backward') {\n nextElements.hours -= 1;\n } else {\n nextElements.hours += 1;\n }\n }\n\n // deal with overflows\n if (nextElements.seconds >= 60) {\n nextElements.minutes += Math.floor(nextElements.seconds / 60);\n nextElements.seconds = 0;\n } else if (nextElements.seconds < 0) {\n nextElements.minutes += Math.floor(nextElements.seconds / 60);\n nextElements.seconds = 59;\n }\n if (nextElements.minutes >= 60) {\n nextElements.hours += Math.floor(nextElements.minutes / 60);\n nextElements.minutes = 0;\n } else if (nextElements.minutes < 0) {\n nextElements.hours += Math.floor(nextElements.minutes / 60);\n nextElements.minutes = 59;\n }\n if (nextElements.hours >= 24 || nextElements.hours < 0) {\n nextElements.hours = 0;\n }\n if (hourLimit === 12) {\n nextElements.hours12 =\n nextElements.hours > 12\n ? nextElements.hours - 12\n : nextElements.hours;\n }\n\n this.setState({ elements: nextElements }, () => {\n if (onChange) {\n if (elements.duration) {\n onChange(\n `P${elements.hours}H${elements.minutes}M${elements.seconds}S`,\n );\n } else {\n onChange(\n `T${elements.hours}:${elements.minutes}:${elements.seconds}`,\n );\n }\n }\n });\n }, interval);\n }\n\n render() {\n const { type, ...rest } = this.props;\n const { elements } = this.state;\n let content;\n if (type === 'analog') {\n content = ;\n } else if (type === 'digital') {\n content = ;\n }\n\n return content;\n }\n}\n\nlet ClockDoc;\nif (process.env.NODE_ENV !== 'production') {\n ClockDoc = require('./doc').doc(Clock); // eslint-disable-line global-require\n}\nconst ClockWrapper = ClockDoc || Clock;\n\nexport { ClockWrapper as Clock };\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { parseMetricToNum } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport {\n StyledAnalog,\n StyledHour,\n StyledMinute,\n StyledSecond,\n} from './StyledClock';\n\n// this will serve both minutes and hours (360 / 6)\nconst ANGLE_UNIT = 6;\n// 360 / 12\nconst HOUR_ANGLE_UNIT = 30;\n\nconst getClockDimensions = theme => ({\n size: parseMetricToNum(theme.clock.analog.size.medium),\n secondSize: parseMetricToNum(theme.clock.analog.second.size),\n minuteSize: parseMetricToNum(theme.clock.analog.minute.size),\n hourSize: parseMetricToNum(theme.clock.analog.hour.size),\n});\n\nconst getClockState = ({ hours, minutes, seconds }) => {\n const hour12 = hours > 12 ? hours - 12 : hours;\n const minuteAngle = minutes * ANGLE_UNIT;\n\n return {\n // offset hour angle by half of the minute angle so that it gets closer\n // to the next hour\n hourAngle: hour12 * HOUR_ANGLE_UNIT + minutes / 2,\n minuteAngle,\n secondAngle: seconds * ANGLE_UNIT,\n };\n};\n\nclass Analog extends Component {\n static defaultProps = {\n size: 'medium',\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { elements } = nextProps;\n const nextState = getClockState(elements);\n if (\n prevState.hourAngle === undefined ||\n Object.keys(nextState).some(k => prevState[k] !== nextState[k])\n ) {\n return nextState;\n }\n return null;\n }\n\n state = {};\n\n render() {\n const { precision, theme, ...rest } = this.props;\n const { hourAngle, minuteAngle, secondAngle } = this.state;\n const { size, secondSize, minuteSize, hourSize } = getClockDimensions(\n theme,\n );\n const halfSize = size / 2;\n\n let secondHand;\n if (precision === 'seconds') {\n secondHand = (\n \n );\n }\n\n let minuteHand;\n if (precision === 'seconds' || precision === 'minutes') {\n minuteHand = (\n \n );\n }\n\n return (\n \n {secondHand}\n {minuteHand}\n \n \n );\n }\n}\n\nObject.setPrototypeOf(Analog.defaultProps, defaultProps);\n\nconst AnalogWrapper = compose(withTheme)(Analog);\n\nexport { AnalogWrapper as Analog };\n","import React, { Component } from 'react';\n\nimport { Box } from '../Box';\n\nimport {\n StyledDigitalDigit,\n StyledDigitalNext,\n StyledDigitalPrevious,\n} from './StyledClock';\n\nclass Digit extends Component {\n static getDerivedStateFromProps(nextProps, prevState) {\n const { number } = nextProps;\n if (number !== prevState.number) {\n return { previous: prevState.number, number };\n }\n return null;\n }\n\n state = {};\n\n componentDidUpdate(prevProps, prevState) {\n const { previous } = this.state;\n if (prevState.previous === undefined && previous !== undefined) {\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.setState({ previous: undefined });\n }, 900);\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.timer);\n }\n\n render() {\n /* eslint-disable-next-line react/prop-types */\n const { run, size } = this.props;\n const { number, previous } = this.state;\n if (previous !== undefined) {\n const direction = run === 'backward' ? 'down' : 'up';\n return (\n \n \n {Math.floor(previous)}\n \n \n {Math.floor(number)}\n \n \n );\n }\n return (\n {Math.floor(number)}\n );\n }\n}\n\nconst Element = ({ number, run, sep, size }) => {\n const tens = Math.floor(number / 10);\n const ones = number % 10;\n const result = [\n ,\n ,\n ];\n if (sep) {\n result.unshift(\n \n :\n ,\n );\n }\n return result;\n};\n\nexport const Digital = props => {\n const { elements, precision, run, size, ...rest } = props;\n let seconds;\n if (precision === 'seconds') {\n seconds = ;\n }\n let minutes;\n if (precision === 'minutes' || precision === 'seconds') {\n minutes = ;\n }\n return (\n \n \n {minutes}\n {seconds}\n \n );\n};\n","export { DataTable } from './DataTable';\n","import React, { useMemo, useState } from 'react';\n\nimport { Header } from './Header';\nimport { Footer } from './Footer';\nimport { Body } from './Body';\nimport { GroupedBody } from './GroupedBody';\nimport {\n buildFooterValues,\n buildGroups,\n buildGroupState,\n filterAndSortData,\n initializeFilters,\n normalizePrimaryProperty,\n} from './buildState';\nimport { StyledDataTable } from './StyledDataTable';\n\nconst contexts = ['header', 'body', 'footer'];\n\nconst normalizeProp = (prop, context) => {\n if (prop) {\n if (prop[context]) return prop[context];\n if (contexts.some(c => prop[c])) return undefined;\n return prop;\n }\n return undefined;\n};\n\nconst DataTable = ({\n background,\n border,\n columns = [],\n data = [],\n groupBy,\n onClickRow, // removing unknown DOM attributes\n onMore,\n onSearch, // removing unknown DOM attributes\n replace,\n pad,\n primaryKey,\n resizeable,\n rowProps,\n size,\n sortable,\n step = 50,\n ...rest\n}) => {\n // property name of the primary property\n const primaryProperty = useMemo(\n () => normalizePrimaryProperty(columns, primaryKey),\n [columns, primaryKey],\n );\n\n // whether or not we should show a footer\n const showFooter = useMemo(() => columns.filter(c => c.footer).length > 0, [\n columns,\n ]);\n\n // what column we are actively capturing filter input on\n const [filtering, setFiltering] = useState();\n\n // the currently active filters\n const [filters, setFilters] = useState(initializeFilters(columns));\n\n // which column we are sorting on, with direction\n const [sort, setSort] = useState({});\n\n // the data filtered and sorted, if needed\n const adjustedData = useMemo(\n () => filterAndSortData(data, filters, onSearch, sort),\n [data, filters, onSearch, sort],\n );\n\n // the values to put in the footer cells\n const footerValues = useMemo(() => buildFooterValues(columns, adjustedData), [\n adjustedData,\n columns,\n ]);\n\n // if groupBy, an array with one item per unique groupBy key value\n const groups = useMemo(() => buildGroups(columns, adjustedData, groupBy), [\n adjustedData,\n columns,\n groupBy,\n ]);\n\n // an object indicating which group values are expanded\n const [groupState, setGroupState] = useState(\n buildGroupState(groups, groupBy),\n );\n\n // any customized column widths\n const [widths, setWidths] = useState({});\n\n // remember that we are filtering on this property\n const onFiltering = property => setFiltering(property);\n\n // remember the search text we should filter this property by\n const onFilter = (property, value) => {\n const nextFilters = { ...filters };\n nextFilters[property] = value;\n setFilters(nextFilters);\n // Let caller know about search, if interested\n if (onSearch) onSearch(nextFilters);\n };\n\n // toggle the sort direction on this property\n const onSort = property => () => {\n const ascending =\n sort && property === sort.property ? !sort.ascending : true;\n setSort({ property, ascending });\n };\n\n // toggle whether the group is expanded\n const onToggleGroup = groupValue => () => {\n const nextGroupState = { ...groupState };\n nextGroupState[groupValue] = {\n ...nextGroupState[groupValue],\n expanded: !nextGroupState[groupValue].expanded,\n };\n setGroupState(nextGroupState);\n if (groupBy.onExpand) {\n const expandedKeys = Object.keys(nextGroupState).filter(\n k => nextGroupState[k].expanded,\n );\n groupBy.onExpand(expandedKeys);\n }\n };\n\n // toggle whether all groups are expanded\n const onToggleGroups = () => {\n const expanded =\n Object.keys(groupState).filter(k => !groupState[k].expanded).length === 0;\n const nextGroupState = {};\n Object.keys(groupState).forEach(k => {\n nextGroupState[k] = { ...groupState[k], expanded: !expanded };\n });\n setGroupState(nextGroupState);\n if (groupBy.onExpand) {\n const expandedKeys = Object.keys(nextGroupState).filter(\n k => nextGroupState[k].expanded,\n );\n groupBy.onExpand(expandedKeys);\n }\n };\n\n // remember the width this property's column should be\n const onResize = property => width => {\n const nextWidths = { ...widths };\n nextWidths[property] = width;\n setWidths(nextWidths);\n };\n\n if (size && resizeable) {\n console.warn('DataTable cannot combine \"size\" and \"resizeble\".');\n }\n\n return (\n \n \n {groups ? (\n \n ) : (\n \n )}\n {showFooter && (\n \n )}\n \n );\n};\n\nlet DataTableDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n DataTableDoc = require('./doc').doc(DataTable);\n}\nconst DataTableWrapper = DataTableDoc || DataTable;\n\nexport { DataTableWrapper as DataTable };\n","import React from 'react';\nimport { compose } from 'recompose';\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { TableCell } from '../TableCell';\nimport { Text } from '../Text';\n\nimport { Resizer } from './Resizer';\nimport { Searcher } from './Searcher';\nimport { ExpanderCell } from './ExpanderCell';\nimport { StyledDataTableHeader, StyledDataTableRow } from './StyledDataTable';\n\nconst Header = ({\n background,\n border,\n columns,\n filtering,\n filters,\n groups,\n groupState,\n onFilter,\n onFiltering,\n onResize,\n onSort,\n onToggle,\n pad,\n sort,\n theme,\n widths,\n ...rest\n}) => {\n return (\n \n \n {groups && (\n !groupState[k].expanded)\n .length === 0\n }\n onToggle={onToggle}\n />\n )}\n\n {columns.map(({ property, header, align, search, sortable }) => {\n let content =\n typeof header === 'string' ? {header} : header;\n\n if (onSort && sortable !== false) {\n const Icon =\n onSort &&\n sortable !== false &&\n sort &&\n sort.property === property &&\n theme.dataTable.icons[\n sort.ascending ? 'ascending' : 'descending'\n ];\n content = (\n \n );\n }\n\n if (search || onResize) {\n const resizer = onResize ? (\n \n ) : null;\n const searcher =\n search && filters ? (\n \n ) : null;\n content = (\n \n {content}\n {searcher && resizer ? (\n \n {searcher}\n {resizer}\n \n ) : (\n searcher || resizer\n )}\n \n );\n }\n\n return (\n \n {content}\n \n );\n })}\n \n \n );\n};\n\nHeader.defaultProps = {};\nObject.setPrototypeOf(Header.defaultProps, defaultProps);\n\nconst HeaderWrapper = compose(withTheme)(Header);\n\nexport { HeaderWrapper as Header };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableCell } from '../Table/StyledTable';\n\nconst TableCell = ({\n align,\n background,\n border,\n children,\n colSpan,\n pad,\n plain,\n scope,\n size,\n theme,\n verticalAlign,\n ...rest\n}) => (\n \n {tableContext => {\n let tableContextTheme;\n if (tableContext === 'header') {\n tableContextTheme = theme.table && theme.table.header;\n } else if (tableContext === 'footer') {\n tableContextTheme = theme.table && theme.table.footer;\n } else {\n tableContextTheme = theme.table && theme.table.body;\n }\n // merge tabelContextTheme and rest\n const mergedProps = { ...tableContextTheme, ...rest };\n Object.keys(mergedProps).forEach(key => {\n if (rest[key] === undefined) mergedProps[key] = tableContextTheme[key];\n });\n // split out background, border, and pad\n const cellProps = {\n align: align || mergedProps.align || undefined,\n background: background || mergedProps.background || undefined,\n border: border || mergedProps.border || undefined,\n pad: pad || mergedProps.pad || undefined,\n verticalAlign: verticalAlign || mergedProps.verticalAlign || undefined,\n };\n delete mergedProps.align;\n delete mergedProps.background;\n delete mergedProps.border;\n delete mergedProps.pad;\n delete mergedProps.verticalAlign;\n\n return (\n \n {plain || !Object.keys(mergedProps).length ? (\n children\n ) : (\n \n {children}\n \n )}\n \n );\n }}\n \n);\n\nTableCell.defaultProps = {};\nObject.setPrototypeOf(TableCell.defaultProps, defaultProps);\n\nlet TableCellDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TableCellDoc = require('./doc').doc(TableCell);\n}\nconst TableCellWrapper = compose(withTheme)(TableCellDoc || TableCell);\n\nexport { TableCellWrapper as TableCell };\n","import React from 'react';\n\nimport { StyledText } from './StyledText';\n\nconst Text = ({ color, tag, as, ...rest }) => (\n \n);\n\nText.defaultProps = {\n level: 1,\n};\n\nlet TextDoc;\nif (process.env.NODE_ENV !== 'production') {\n TextDoc = require('./doc').doc(Text); // eslint-disable-line global-require\n}\nconst TextWrapper = TextDoc || Text;\n\nexport { TextWrapper as Text };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n const size = props.size || 'medium';\n const data = props.theme.text[size];\n if (data) {\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n }\n return css`\n font-size: ${size};\n line-height: normal;\n `;\n};\n\nconst TEXT_ALIGN_MAP = {\n center: 'center',\n end: 'right',\n start: 'left',\n};\n\nconst textAlignStyle = css`\n text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst truncateStyle = `\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst weightStyle = css`\n font-weight: ${props => props.weight};\n`;\n\nconst wordBreakStyle = css`\n word-break: ${props => props.wordBreak};\n`;\n\nconst StyledText = styled.span`\n ${genericStyles}\n ${props => sizeStyle(props)}\n ${props => props.textAlign && textAlignStyle}\n ${props => props.truncate && truncateStyle}\n ${props => props.colorProp && colorStyle}\n ${props => props.weight && weightStyle}\n ${props => props.wordBreak && wordBreakStyle}\n\n ${props => props.theme.text && props.theme.text.extend}\n`;\n\nStyledText.defaultProps = {};\nObject.setPrototypeOf(StyledText.defaultProps, defaultProps);\n\nexport { StyledText };\n","import React, { Component } from 'react';\n\nimport { compose } from 'recompose';\n\nimport styled, { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nconst ResizerBox = styled(Box)`\n cursor: col-resize;\n`;\n\nclass Resizer extends Component {\n state = {};\n\n ref = React.createRef();\n\n onMouseDown = event => {\n if (this.ref.current) {\n let element = this.ref.current;\n // find TH parent\n while (element && element.nodeName !== 'TH') element = element.parentNode;\n const rect = element.getBoundingClientRect();\n this.setState({ start: event.clientX, width: rect.width }, () => {\n document.addEventListener('mousemove', this.onMouseMove);\n document.addEventListener('mouseup', this.onMouseUp);\n });\n }\n };\n\n onMouseMove = event => {\n const { onResize, property } = this.props;\n const { start, width } = this.state;\n // We determined 12 empirically as being wide enough to hit but\n // not too wide to cause false hits.\n const nextWidth = Math.max(12, width + (event.clientX - start));\n onResize(property)(nextWidth);\n };\n\n onMouseUp = () => {\n document.removeEventListener('mouseup', this.onMouseUp);\n document.removeEventListener('mousemove', this.onMouseMove);\n this.setState({ start: undefined, width: undefined });\n };\n\n render() {\n const { theme } = this.props;\n const { start } = this.state;\n return (\n \n );\n }\n}\n\nResizer.defaultProps = {};\nObject.setPrototypeOf(Resizer.defaultProps, defaultProps);\n\nconst ResizerWrapper = compose(withTheme)(Resizer);\n\nexport { ResizerWrapper as Resizer };\n","import React, { useEffect, useRef } from 'react';\n\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { FormSearch } from 'grommet-icons/icons/FormSearch';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { normalizeColor } from '../../utils';\n\nconst Searcher = ({\n filtering,\n filters,\n onFilter,\n onFiltering,\n property,\n theme,\n}) => {\n const inputRef = useRef();\n const needsFocus = filtering === property;\n\n useEffect(() => {\n if (inputRef && needsFocus) {\n inputRef.current.focus();\n }\n }, [needsFocus, inputRef]);\n\n return filtering === property ? (\n onFiltering(undefined)}>\n \n onFilter(property, event.target.value)}\n onBlur={() => onFiltering(undefined)}\n />\n \n \n ) : (\n <>\n {filters[property] ? (\n \n {filters[property]}\n \n ) : null}\n \n }\n hoverIndicator\n onClick={() =>\n onFiltering(filtering === property ? undefined : property)\n }\n />\n \n );\n};\n\nSearcher.defaultProps = {};\nObject.setPrototypeOf(Searcher.defaultProps, defaultProps);\n\nconst SearcherWrapper = compose(withTheme)(Searcher);\n\nexport { SearcherWrapper as Searcher };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.FormSearch = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || 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\nvar FormSearch = function FormSearch(props) {\n return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n viewBox: \"0 0 24 24\",\n a11yTitle: \"FormSearch\"\n }, props), _react[\"default\"].createElement(\"path\", {\n fill: \"none\",\n stroke: \"#000\",\n strokeWidth: \"2\",\n d: \"M13.8,13.8 L18,18 L13.8,13.8 Z M10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 Z\"\n }));\n};\n\nexports.FormSearch = FormSearch;","import React, { Component, isValidElement } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { withAnnounce, withFocus, withForwardRef } from '../hocs';\nimport { sizeStyle } from '../../utils';\n\nimport {\n StyledTextInput,\n StyledTextInputContainer,\n StyledPlaceholder,\n StyledSuggestions,\n} from './StyledTextInput';\n\nfunction renderLabel(suggestion) {\n if (suggestion && typeof suggestion === 'object') {\n return suggestion.label || suggestion.value;\n }\n return suggestion;\n}\n\nfunction stringLabel(suggestion) {\n if (suggestion && typeof suggestion === 'object') {\n if (suggestion.label && typeof suggestion.label === 'string') {\n return suggestion.label;\n }\n return suggestion.value;\n }\n return suggestion;\n}\n\nconst ContainerBox = styled(Box)`\n ${props =>\n props.dropHeight\n ? sizeStyle('max-height', props.dropHeight, props.theme)\n : 'max-height: inherit;'};\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n width: 100%;\n }\n`;\n\nclass TextInput extends Component {\n static defaultProps = {\n dropAlign: { top: 'bottom', left: 'left' },\n messages: {\n enterSelect: '(Press Enter to Select)',\n suggestionsCount: 'suggestions available',\n suggestionsExist: 'This input has suggestions use arrow keys to navigate',\n suggestionIsOpen:\n 'Suggestions drop is open, continue to use arrow keys to navigate',\n },\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { suggestions } = nextProps;\n const { showDrop } = prevState;\n if (showDrop && (!suggestions || !suggestions.length)) {\n return { showDrop: false };\n }\n return null;\n }\n\n state = {\n activeSuggestionIndex: -1,\n showDrop: false,\n isInputEmpty: true,\n };\n\n inputRef = React.createRef();\n\n componentDidUpdate(prevProps, prevState) {\n const { onSuggestionsOpen, onSuggestionsClose, suggestions } = this.props;\n const { showDrop } = this.state;\n if (showDrop !== prevState.showDrop) {\n if (showDrop && onSuggestionsOpen) {\n onSuggestionsOpen();\n } else if (onSuggestionsClose) {\n onSuggestionsClose();\n }\n }\n\n if (\n !showDrop &&\n suggestions &&\n (!prevProps.suggestions || !prevProps.suggestions.length)\n ) {\n this.resetSuggestions();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.resetTimer);\n }\n\n announce = (message, mode) => {\n const { announce, suggestions } = this.props;\n if (suggestions && suggestions.length > 0) {\n announce(message, mode);\n }\n };\n\n announceSuggestionsCount = () => {\n const {\n suggestions,\n messages: { suggestionsCount },\n } = this.props;\n this.announce(`${suggestions.length} ${suggestionsCount}`);\n };\n\n announceSuggestionsExist = () => {\n const {\n messages: { suggestionsExist },\n } = this.props;\n this.announce(suggestionsExist);\n };\n\n announceSuggestionsIsOpen = () => {\n const {\n messages: { suggestionIsOpen },\n } = this.props;\n this.announce(suggestionIsOpen);\n };\n\n announceSuggestion = index => {\n const {\n suggestions,\n messages: { enterSelect },\n } = this.props;\n if (suggestions && suggestions.length > 0) {\n const labelMessage = stringLabel(suggestions[index]);\n this.announce(`${labelMessage} ${enterSelect}`);\n }\n };\n\n resetSuggestions = () => {\n // delay this to avoid re-render interupting event delivery\n // https://github.com/grommet/grommet/issues/2154\n // 10ms was chosen empirically based on ie11 using TextInput\n // with and without a FormField.\n clearTimeout(this.resetTimer);\n this.resetTimer = setTimeout(() => {\n const { suggestions } = this.props;\n if (suggestions && suggestions.length) {\n this.setState(\n {\n activeSuggestionIndex: -1,\n showDrop: true,\n selectedSuggestionIndex: -1,\n },\n this.announceSuggestionsCount,\n );\n }\n }, 10);\n };\n\n getSelectedSuggestionIndex = () => {\n const { suggestions, value } = this.props;\n const suggestionValues = suggestions.map(suggestion => {\n if (typeof suggestion === 'object') {\n return suggestion.value;\n }\n return suggestion;\n });\n return suggestionValues.indexOf(value);\n };\n\n onShowSuggestions = () => {\n // Get values of suggestions, so we can highlight selected suggestion\n const selectedSuggestionIndex = this.getSelectedSuggestionIndex();\n\n this.setState(\n {\n showDrop: true,\n activeSuggestionIndex: -1,\n selectedSuggestionIndex,\n },\n this.announceSuggestionsIsOpen,\n );\n };\n\n onNextSuggestion = event => {\n const { suggestions } = this.props;\n const { activeSuggestionIndex, showDrop } = this.state;\n if (suggestions && suggestions.length > 0) {\n if (!showDrop) {\n this.onShowSuggestions();\n } else {\n event.preventDefault();\n const index = Math.min(\n activeSuggestionIndex + 1,\n suggestions.length - 1,\n );\n this.setState({ activeSuggestionIndex: index }, () =>\n this.announceSuggestion(index),\n );\n }\n }\n };\n\n onPreviousSuggestion = event => {\n const { suggestions } = this.props;\n const { activeSuggestionIndex, showDrop } = this.state;\n if (suggestions && suggestions.length > 0 && showDrop) {\n event.preventDefault();\n const index = Math.max(activeSuggestionIndex - 1, 0);\n this.setState({ activeSuggestionIndex: index }, () =>\n this.announceSuggestion(index),\n );\n }\n };\n\n onClickSuggestion = (suggestion, event) => {\n const { forwardRef, onSelect } = this.props;\n this.setState({ showDrop: false, activeSuggestionIndex: -1 });\n if (onSelect) {\n // TODO: needed for backwards compatibility sake\n /* eslint-disable no-param-reassign */\n event.suggestion = suggestion;\n event.target = (forwardRef || this.inputRef).current;\n /* eslint-enable no-param-reassign */\n onSelect(event);\n }\n };\n\n onSuggestionSelect = event => {\n const { forwardRef, onSelect, suggestions } = this.props;\n const { activeSuggestionIndex } = this.state;\n this.setState({ showDrop: false, activeSuggestionIndex: -1 });\n if (activeSuggestionIndex >= 0) {\n event.preventDefault(); // prevent submitting forms\n // TODO: needed for backwards compatibility sake\n /* eslint-disable no-param-reassign */\n event.suggestion = suggestions[activeSuggestionIndex];\n event.target = (forwardRef || this.inputRef).current;\n /* eslint-enable no-param-reassign */\n if (onSelect) {\n onSelect(event);\n }\n }\n };\n\n onFocus = event => {\n const { onFocus, suggestions } = this.props;\n if (suggestions && suggestions.length > 0) {\n this.announceSuggestionsExist();\n }\n this.resetSuggestions();\n if (onFocus) {\n onFocus(event);\n }\n };\n\n onBlur = event => {\n const { onBlur } = this.props;\n clearTimeout(this.resetTimer);\n if (onBlur) {\n onBlur(event);\n }\n };\n\n onChange = event => {\n const { onChange } = this.props;\n this.setState({ isInputEmpty: !event.target.value });\n this.resetSuggestions();\n if (onChange) {\n onChange(event);\n }\n };\n\n onEsc = event => {\n const { showDrop } = this.state;\n if (showDrop) {\n // we have to stop both synthetic events and native events\n // drop and layer should not close by pressing esc on this input\n event.stopPropagation();\n event.nativeEvent.stopImmediatePropagation();\n this.setState({ showDrop: false });\n }\n };\n\n onTab = () => {\n this.setState({ showDrop: false });\n };\n\n renderSuggestions = () => {\n const { suggestions, theme } = this.props;\n const { activeSuggestionIndex, selectedSuggestionIndex } = this.state;\n\n return (\n \n \n {(suggestion, index) => {\n const plain =\n typeof suggestion === 'object' &&\n typeof isValidElement(suggestion.label);\n return (\n
  • \n {\n this.onClickSuggestion(suggestion, event);\n }}\n >\n {plain ? (\n renderLabel(suggestion)\n ) : (\n \n {renderLabel(suggestion)}\n \n )}\n \n
  • \n );\n }}\n
    \n
    \n );\n };\n\n render() {\n const {\n defaultValue,\n dropAlign,\n dropHeight,\n dropTarget,\n dropProps,\n forwardRef,\n id,\n placeholder,\n plain,\n theme,\n value,\n onKeyDown,\n ...rest\n } = this.props;\n delete rest.onChange; // se we can manage in this.onChange()\n delete rest.onSuggestionsOpen;\n delete rest.onSuggestionsClose;\n const { showDrop, isInputEmpty } = this.state;\n const showStyledPlaceholder =\n placeholder && typeof placeholder !== 'string' && isInputEmpty && !value;\n // needed so that styled components does not invoke\n // onSelect when text input is clicked\n delete rest.onSelect;\n let drop;\n if (showDrop) {\n drop = (\n this.setState({ showDrop: false })}\n onEsc={() => this.setState({ showDrop: false })}\n {...dropProps}\n >\n \n {this.renderSuggestions()}\n \n \n );\n }\n return (\n \n {showStyledPlaceholder && (\n {placeholder}\n )}\n \n \n \n {drop}\n \n );\n }\n}\n\nObject.setPrototypeOf(TextInput.defaultProps, defaultProps);\n\nlet TextInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TextInputDoc = require('./doc').doc(TextInput);\n}\nconst TextInputWrapper = compose(\n withFocus({ focusWithMouse: true }),\n withTheme,\n withAnnounce,\n withForwardRef,\n)(TextInputDoc || TextInput);\n\nexport { TextInputWrapper as TextInput };\n","import React, { Component } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { getNewContainer, setFocusWithoutScroll } from '../../utils';\n\nimport { DropContainer } from './DropContainer';\n\nclass Drop extends Component {\n static defaultProps = {\n align: {\n top: 'top',\n left: 'left',\n },\n plain: false,\n };\n\n originalFocusedElement = document.activeElement;\n\n dropContainer = getNewContainer();\n\n componentWillUnmount() {\n const { restrictFocus } = this.props;\n if (restrictFocus && this.originalFocusedElement) {\n if (this.originalFocusedElement.focus) {\n setFocusWithoutScroll(this.originalFocusedElement);\n } else if (\n this.originalFocusedElement.parentNode &&\n this.originalFocusedElement.parentNode.focus\n ) {\n // required for IE11 and Edge\n setFocusWithoutScroll(this.originalFocusedElement.parentNode);\n }\n }\n document.body.removeChild(this.dropContainer);\n }\n\n render() {\n const {\n target: dropTarget, // avoid DOM leakage\n ...rest\n } = this.props;\n return createPortal(\n ,\n this.dropContainer,\n );\n }\n}\n\nlet DropDoc;\nif (process.env.NODE_ENV !== 'production') {\n DropDoc = require('./doc').doc(Drop); // eslint-disable-line global-require\n}\nconst DropWrapper = DropDoc || Drop;\n\nexport { DropWrapper as Drop };\n","import React, { Component } from 'react';\n\nimport { defaultProps } from '../../default-props';\nimport { ThemeContext } from '../../contexts';\nimport { FocusedContainer } from '../FocusedContainer';\nimport {\n backgroundIsDark,\n findScrollParents,\n findVisibleParent,\n parseMetricToNum,\n} from '../../utils';\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledDrop } from './StyledDrop';\n\n// using react synthetic event to be able to stop propagation that\n// would otherwise close the layer on ESC.\nconst preventLayerClose = event => {\n const key = event.keyCode ? event.keyCode : event.which;\n\n if (key === 27) {\n event.stopPropagation();\n }\n};\n\nclass DropContainer extends Component {\n static contextType = ThemeContext;\n\n static defaultProps = {\n align: {\n top: 'top',\n left: 'left',\n },\n overflow: 'auto',\n stretch: 'width',\n };\n\n dropRef = React.createRef();\n\n componentDidMount() {\n const { restrictFocus } = this.props;\n this.addScrollListener();\n window.addEventListener('resize', this.onResize);\n document.addEventListener('mousedown', this.onClickDocument);\n\n this.place(false);\n\n if (restrictFocus) {\n this.dropRef.current.focus();\n }\n }\n\n componentDidUpdate() {\n this.place(true);\n }\n\n componentWillUnmount() {\n this.removeScrollListener();\n window.removeEventListener('resize', this.onResize);\n document.removeEventListener('mousedown', this.onClickDocument);\n }\n\n addScrollListener = () => {\n const { dropTarget } = this.props;\n this.scrollParents = findScrollParents(dropTarget);\n this.scrollParents.forEach(scrollParent =>\n scrollParent.addEventListener('scroll', this.place),\n );\n };\n\n removeScrollListener = () => {\n this.scrollParents.forEach(scrollParent =>\n scrollParent.removeEventListener('scroll', this.place),\n );\n };\n\n onClickDocument = event => {\n const { dropTarget, onClickOutside } = this.props;\n const dropTargetNode = dropTarget;\n const dropNode = this.dropRef.current;\n if (\n onClickOutside &&\n dropNode && // need this for ie11\n !dropTargetNode.contains(event.target) &&\n !dropNode.contains(event.target)\n ) {\n onClickOutside();\n }\n };\n\n onResize = () => {\n this.removeScrollListener();\n this.addScrollListener();\n this.place(false);\n };\n\n // We try to preserve the maxHeight as changing it causes any scroll position\n // to be lost. We set the maxHeight on mount and if the window is resized.\n place = preserveHeight => {\n const { align, dropTarget, responsive, stretch, theme } = this.props;\n const windowWidth = window.innerWidth;\n const windowHeight = window.innerHeight;\n const target = dropTarget;\n const container = this.dropRef.current;\n if (container && target) {\n // clear prior styling\n container.style.left = '';\n container.style.top = '';\n container.style.bottom = '';\n container.style.width = '';\n if (!preserveHeight) {\n container.style.maxHeight = '';\n }\n // get bounds\n const targetRect = findVisibleParent(target).getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n // determine width\n const width = Math.min(\n stretch\n ? Math.max(targetRect.width, containerRect.width)\n : containerRect.width,\n windowWidth,\n );\n // set left position\n let left;\n if (align.left) {\n if (align.left === 'left') {\n ({ left } = targetRect);\n } else if (align.left === 'right') {\n left = targetRect.left + targetRect.width;\n }\n } else if (align.right) {\n if (align.right === 'left') {\n left = targetRect.left - width;\n } else if (align.right === 'right') {\n left = targetRect.left + targetRect.width - width;\n }\n } else {\n left = targetRect.left + targetRect.width / 2 - width / 2;\n }\n if (left + width > windowWidth) {\n left -= left + width - windowWidth;\n } else if (left < 0) {\n left = 0;\n }\n // set top or bottom position\n let top;\n let bottom;\n let maxHeight = containerRect.height;\n if (align.top) {\n if (align.top === 'top') {\n ({ top } = targetRect);\n } else {\n top = targetRect.bottom;\n }\n\n // Calculate visible area underneath the control w.r.t window height\n const percentVisibleAreaBelow =\n 100 - (targetRect.bottom / windowHeight) * 100;\n\n // Check whether it is within 20% from bottom of the window or visible\n // area to flip the control\n // DropContainer doesn't fit well within visible area when\n // percentVisibleAreaBelow value<=20%\n // There is enough space from DropContainer to bottom of the window\n // when percentVisibleAreaBelow>20%.\n\n if (windowHeight === top || percentVisibleAreaBelow <= 20) {\n // We need more room than we have.\n // We put it below, but there's more room above, put it above\n top = '';\n if (align.top === 'bottom') {\n bottom = targetRect.top;\n } else {\n ({ bottom } = targetRect);\n }\n maxHeight = bottom;\n container.style.maxHeight = `${maxHeight}px`;\n } else if (top > 0) {\n maxHeight = windowHeight - top;\n container.style.maxHeight = `${maxHeight}px`;\n } else {\n maxHeight = windowHeight - top;\n }\n } else if (align.bottom) {\n if (align.bottom === 'bottom') {\n ({ bottom } = targetRect);\n } else {\n bottom = targetRect.top;\n }\n maxHeight = bottom;\n container.style.maxHeight = `${maxHeight}px`;\n } else {\n // center\n top = targetRect.top + targetRect.height / 2 - containerRect.height / 2;\n maxHeight = windowHeight - top;\n }\n // if we can't fit it all, or we're rather close,\n // see if there's more room the other direction\n if (\n responsive &&\n (containerRect.height > maxHeight || maxHeight < windowHeight / 10)\n ) {\n // We need more room than we have.\n if (align.top && top > windowHeight / 2) {\n // We put it below, but there's more room above, put it above\n top = '';\n if (align.top === 'bottom') {\n // top = Math.max(targetRect.top - containerRect.height, 0);\n // maxHeight = targetRect.top - top;\n bottom = targetRect.top;\n } else {\n // top = Math.max(targetRect.bottom - containerRect.height, 0);\n // maxHeight = targetRect.bottom - top;\n ({ bottom } = targetRect);\n }\n maxHeight = bottom;\n } else if (align.bottom && maxHeight < windowHeight / 2) {\n // We put it above but there's more room below, put it below\n bottom = '';\n if (align.bottom === 'bottom') {\n ({ top } = targetRect);\n } else {\n top = targetRect.bottom;\n }\n maxHeight = windowHeight - top;\n }\n }\n container.style.left = `${left}px`;\n if (stretch) {\n // offset width by 0.1 to avoid a bug in ie11 that\n // unnecessarily wraps the text if width is the same\n // NOTE: turned off for now\n container.style.width = `${width + 0.1}px`;\n }\n // the (position:absolute + scrollTop)\n // is presenting issues with desktop scroll flickering\n if (top !== '') {\n container.style.top = `${top}px`;\n }\n if (bottom !== '') {\n container.style.bottom = `${windowHeight - bottom}px`;\n }\n if (!preserveHeight) {\n if (theme.drop && theme.drop.maxHeight) {\n maxHeight = Math.min(\n maxHeight,\n parseMetricToNum(theme.drop.maxHeight),\n );\n }\n container.style.maxHeight = `${maxHeight}px`;\n }\n }\n };\n\n onEsc = event => {\n const { onEsc } = this.props;\n event.stopPropagation();\n if (onEsc) {\n onEsc(event);\n }\n };\n\n /**\n * prevents mouse events from propagating upward to elements behind the drop.\n * this prevents a nested drop from closing its parent when the user clicks\n * inside it, since a 'nested' drop is technically an unrelated sibling in the\n * DOM due to React portals.\n */\n preventClickBubbling = event => {\n event.stopPropagation();\n /**\n * the React event system actually listens to all events at the top level\n * and then handles its own bubbling / capturing virtually. This means that\n * even if we call stopPropagation, it only affects the React synthetic\n * event, and the native event still bubbles upward.\n * Any code that uses native events (like the close listener in this class)\n * will still get the bubbled event, unless we also call\n * event.nativeEvent.stopImmediatePropagation, which bridges the gap from\n * React synthetic event to native DOM event.\n */\n event.nativeEvent.stopImmediatePropagation();\n };\n\n render() {\n const {\n align: alignProp,\n children,\n elevation,\n onClickOutside,\n onEsc,\n onKeyDown,\n plain,\n theme: propsTheme,\n ...rest\n } = this.props;\n const theme = this.context || propsTheme;\n\n let content = (\n \n {children}\n \n );\n\n if (theme.global.drop.background) {\n const dark = backgroundIsDark(theme.global.drop.background, theme);\n if (dark !== undefined && dark !== theme.dark) {\n content = (\n \n {content}\n \n );\n }\n }\n\n return (\n \n \n {content}\n \n \n );\n }\n}\n\nObject.setPrototypeOf(DropContainer.defaultProps, defaultProps);\n\nexport { DropContainer };\n","import styled, { keyframes } from 'styled-components';\n\nimport { baseStyle } from '../../utils';\nimport { backgroundStyle } from '../../utils/background';\nimport { defaultProps } from '../../default-props';\n\nfunction getTransformOriginStyle(align) {\n let vertical = 'top';\n if (align.bottom) {\n vertical = 'bottom';\n }\n let horizontal = 'left';\n if (align.right) {\n horizontal = 'right';\n }\n return `${vertical} ${horizontal}`;\n}\n\nconst dropKeyFrames = keyframes`\n 0% {\n opacity: 0.5;\n transform: scale(0.8);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n`;\n\nconst StyledDrop = styled.div`\n ${baseStyle}\n\n border-radius: ${props => props.theme.global.drop.border.radius};\n position: fixed;\n z-index: ${props => props.theme.global.drop.zIndex};\n outline: none;\n\n ${props =>\n !props.plain &&\n backgroundStyle(props.theme.global.drop.background, props.theme)}\n\n opacity: 0;\n transform-origin: ${props => getTransformOriginStyle(props.alignProp)};\n animation: ${dropKeyFrames} 0.1s forwards;\n animation-delay: 0.01s;\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n display: flex;\n align-items: stretch;\n }\n\n ${props => props.theme.global.drop && props.theme.global.drop.extend}\n`;\n\nStyledDrop.defaultProps = {};\nObject.setPrototypeOf(StyledDrop.defaultProps, defaultProps);\n\nexport { StyledDrop };\n","/* eslint-disable react/no-find-dom-node */\nimport React, { Component, useEffect, useMemo, useRef, useState } from 'react';\nimport { findDOMNode } from 'react-dom';\nimport { findScrollParents } from '../../utils';\nimport { Box } from '../Box';\n\n// Wraps an item to ensure we can get a ref to it\nclass Ref extends Component {\n render() {\n const { children } = this.props;\n return children;\n }\n}\n\nconst InfiniteScroll = ({\n children,\n items = [],\n onMore,\n renderMarker,\n replace,\n show,\n step = 50,\n}) => {\n // the last page we have items for\n const lastPage = useMemo(() => Math.ceil(items.length / step), [\n items.length,\n step,\n ]);\n // the first page we are displaying\n const [beginPage, setBeginPage] = useState(0);\n // the last page we are displaying\n const [endPage, setEndPage] = useState(\n show ? Math.floor((show + step) / step) - 1 : 0,\n );\n // how tall we've measured a page to be\n const [pageHeight, setPageHeight] = useState();\n // how much area a page requires\n const [pageArea, setPageArea] = useState();\n // whether the items are laid out in a grid instead of linearly\n const [multiColumn, setMultiColumn] = useState();\n // what we're waiting for onMore to give us\n const [pendingLength, setPendingLength] = useState(0);\n\n const belowMarkerRef = useRef();\n const firstPageItemRef = useRef();\n const lastPageItemRef = useRef();\n const showRef = useRef();\n\n // calculating space based on where the first and last items being displayed\n // are located\n useEffect(() => {\n if (firstPageItemRef.current && lastPageItemRef.current && !pageHeight) {\n /* eslint-disable react/no-find-dom-node */\n const beginRect = findDOMNode(\n firstPageItemRef.current,\n ).getBoundingClientRect();\n const endRect = findDOMNode(\n lastPageItemRef.current,\n ).getBoundingClientRect();\n\n const nextPageHeight = endRect.top + endRect.height - beginRect.top;\n // Check if the items are arranged in a single column or not.\n const nextMultiColumn = nextPageHeight / step < endRect.height;\n const nextPageArea = endRect.height * endRect.width * step;\n setPageHeight(nextPageHeight);\n setPageArea(nextPageArea);\n setMultiColumn(nextMultiColumn);\n }\n }, [pageHeight, step]);\n\n // scroll handling\n useEffect(() => {\n let scrollParents;\n\n const onScroll = () => {\n const scrollParent = scrollParents[0];\n\n // Determine the window into the first scroll parent\n let top;\n let height;\n let width;\n if (scrollParent === document) {\n top = document.documentElement.scrollTop || document.body.scrollTop;\n height = window.innerHeight;\n width = window.innerWidth;\n } else {\n top = scrollParent.scrollTop;\n const rect = scrollParent.getBoundingClientRect();\n ({ height, width } = rect);\n }\n\n // Figure out which pages we should make visible based on the scroll\n // window.\n const offset = height / 4;\n const nextBeginPage = replace\n ? Math.min(\n lastPage,\n Math.max(\n 0,\n multiColumn\n ? Math.floor((Math.max(0, top - offset) * width) / pageArea)\n : Math.floor(Math.max(0, top - offset) / pageHeight),\n ),\n )\n : 0;\n const nextEndPage = Math.min(\n lastPage,\n Math.max(\n (!replace && endPage) || 0,\n multiColumn\n ? Math.ceil(((top + height + offset) * width) / pageArea)\n : Math.floor((top + height + offset) / pageHeight),\n ),\n );\n\n if (nextBeginPage !== beginPage) setBeginPage(nextBeginPage);\n if (nextEndPage !== endPage) setEndPage(nextEndPage);\n };\n\n if (pageHeight && belowMarkerRef.current) {\n scrollParents = findScrollParents(belowMarkerRef.current);\n scrollParents.forEach(scrollParent =>\n scrollParent.addEventListener('scroll', onScroll),\n );\n onScroll();\n }\n return () => {\n if (scrollParents) {\n scrollParents.forEach(scrollParent =>\n scrollParent.removeEventListener('scroll', onScroll),\n );\n }\n };\n }, [\n beginPage,\n endPage,\n lastPage,\n multiColumn,\n pageArea,\n pageHeight,\n replace,\n ]);\n\n // check if we need to ask for more\n useEffect(() => {\n if (onMore && endPage === lastPage && items.length >= pendingLength) {\n // remember we've asked for more, so we don't keep asking if it takes\n // a while\n setPendingLength(items.length + 1);\n onMore();\n }\n }, [endPage, items.length, lastPage, onMore, pendingLength, step]);\n\n // scroll to any 'show'\n useEffect(() => {\n // ride out any animation delays, 100ms empirically measured\n const timer = setTimeout(() => {\n if (show && showRef.current) {\n findDOMNode(showRef.current).scrollIntoView();\n }\n }, 100);\n return () => clearTimeout(timer);\n }, [show]);\n\n const firstIndex = beginPage * step;\n const lastIndex = Math.min((endPage + 1) * step, items.length) - 1;\n\n const result = [];\n\n if (replace && pageHeight && firstIndex) {\n let marker = (\n \n );\n if (renderMarker) {\n // need to give it a key\n marker = React.cloneElement(renderMarker(marker), { key: 'above' });\n }\n result.push(marker);\n }\n\n items.slice(firstIndex, lastIndex + 1).forEach((item, index) => {\n const itemsIndex = firstIndex + index;\n let child = children(item, itemsIndex);\n // we only need the Refs if we don't know the pageHeight\n if (!pageHeight && itemsIndex === 0) {\n child = (\n \n {child}\n \n );\n } else if (\n !pageHeight &&\n (itemsIndex === step - 1 || itemsIndex === lastIndex)\n ) {\n child = (\n \n {child}\n \n );\n }\n if (show && show === itemsIndex) {\n child = (\n \n {child}\n \n );\n }\n result.push(child);\n });\n\n if (endPage < lastPage || replace || onMore) {\n let marker = (\n \n );\n if (renderMarker) {\n // need to give it a key\n marker = React.cloneElement(renderMarker(marker), { key: 'below' });\n }\n result.push(marker);\n }\n\n return result;\n};\n\nlet InfiniteScrollDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n InfiniteScrollDoc = require('./doc').doc(InfiniteScroll);\n}\nconst InfiniteScrollWrapper = InfiniteScrollDoc || InfiniteScroll;\n\nexport { InfiniteScrollWrapper as InfiniteScroll };\n","import styled, { css } from 'styled-components';\n\nimport {\n disabledStyle,\n focusStyle,\n inputStyle,\n parseMetricToNum,\n placeholderStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n const data = props.theme.text[props.size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst plainStyle = css`\n border: none;\n`;\n\nconst StyledTextInput = styled.input`\n ${inputStyle} width: 100%;\n\n ${props => props.size && sizeStyle(props)}\n ${props => props.plain && plainStyle}\n\n ${placeholderStyle}\n\n &::-moz-focus-inner {\n border: none;\n outline: none;\n }\n\n ${props => props.focus && !props.plain && focusStyle};\n ${props =>\n props.disabled &&\n disabledStyle(\n props.theme.textInput.disabled && props.theme.textInput.disabled.opacity,\n )}\n ${props => props.theme.textInput && props.theme.textInput.extend};\n`;\n\nStyledTextInput.defaultProps = {};\nObject.setPrototypeOf(StyledTextInput.defaultProps, defaultProps);\n\nconst StyledTextInputContainer = styled.div`\n position: relative;\n width: 100%;\n\n ${props =>\n props.theme.textInput &&\n props.theme.textInput.container &&\n props.theme.textInput.container.extend};\n`;\n\nStyledTextInputContainer.defaultProps = {};\nObject.setPrototypeOf(StyledTextInputContainer.defaultProps, defaultProps);\n\nconst StyledPlaceholder = styled.div`\n position: absolute;\n left: ${props =>\n parseMetricToNum(props.theme.global.input.padding) -\n parseMetricToNum(props.theme.global.control.border.width)}px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n justify-content: center;\n pointer-events: none;\n\n ${props =>\n props.theme.textInput &&\n props.theme.textInput.placeholder &&\n props.theme.textInput.placeholder.extend};\n`;\n\nStyledPlaceholder.defaultProps = {};\nObject.setPrototypeOf(StyledPlaceholder.defaultProps, defaultProps);\n\nconst StyledSuggestions = styled.ol`\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n margin: 0;\n padding: 0;\n list-style-type: none;\n\n ${props =>\n props.theme.textInput &&\n props.theme.textInput.suggestions &&\n props.theme.textInput.suggestions.extend};\n`;\n\nStyledSuggestions.defaultProps = {};\nObject.setPrototypeOf(StyledSuggestions.defaultProps, defaultProps);\n\nexport {\n StyledTextInput,\n StyledTextInputContainer,\n StyledPlaceholder,\n StyledSuggestions,\n};\n","import React from 'react';\n\nimport { StyledTableRow } from '../Table/StyledTable';\n\nconst TableRow = props => ;\n\nlet TableRowDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TableRowDoc = require('./doc').doc(TableRow);\n}\nconst TableRowWrapper = TableRowDoc || TableRow;\n\nexport { TableRowWrapper as TableRow };\n","import React from 'react';\n\nimport { StyledTable, StyledTableDataCaption } from './StyledTable';\n\nconst Table = ({ caption, children, ...rest }) => (\n \n {caption ? (\n {caption}\n ) : null}\n {children}\n \n);\n\nlet TableDoc;\nif (process.env.NODE_ENV !== 'production') {\n TableDoc = require('./doc').doc(Table); // eslint-disable-line global-require\n}\nconst TableWrapper = TableDoc || Table;\n\nexport { TableWrapper as Table };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withForwardRef } from '../hocs';\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableBody } from '../Table/StyledTable';\n\nconst TableBody = ({ forwardRef, ...rest }) => (\n \n \n \n);\n\nlet TableBodyDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TableBodyDoc = require('./doc').doc(TableBody);\n}\nconst TableBodyWrapper = compose(withForwardRef)(TableBodyDoc || TableBody);\n\nexport { TableBodyWrapper as TableBody };\n","import React from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableHeader } from '../Table/StyledTable';\n\nconst TableHeader = props => (\n \n \n \n);\n\nlet TableHeaderDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TableHeaderDoc = require('./doc').doc(TableHeader);\n}\nconst TableHeaderWrapper = TableHeaderDoc || TableHeader;\n\nexport { TableHeaderWrapper as TableHeader };\n","import React from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableFooter } from '../Table/StyledTable';\n\nconst TableFooter = props => (\n \n \n \n);\n\nlet TableFooterDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TableFooterDoc = require('./doc').doc(TableFooter);\n}\nconst TableFooterWrapper = TableFooterDoc || TableFooter;\n\nexport { TableFooterWrapper as TableFooter };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableFooter } from './StyledDataTable';\n\nconst Footer = ({\n background,\n border,\n columns,\n footerValues,\n groups,\n pad,\n primaryProperty,\n theme,\n ...rest\n}) => (\n \n \n {groups && (\n \n )}\n {columns.map(column => (\n \n ))}\n \n \n);\n\nFooter.defaultProps = {};\nObject.setPrototypeOf(Footer.defaultProps, defaultProps);\n\nconst FooterWrapper = compose(withTheme)(Footer);\n\nexport { FooterWrapper as Footer };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\nimport { Keyboard } from '../Keyboard';\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\nimport { datumValue } from './buildState';\n\nconst Body = ({\n background,\n border,\n columns,\n data,\n forwardRef,\n onMore,\n replace,\n onClickRow,\n pad,\n primaryProperty,\n rowProps,\n size,\n step,\n theme,\n ...rest\n}) => {\n const [active, setActive] = React.useState();\n return (\n = 0\n ? event => {\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.datum = data[active];\n onClickRow(adjustedEvent);\n }\n : undefined\n }\n onUp={\n onClickRow && active\n ? () => {\n setActive(active - 1);\n }\n : undefined\n }\n onDown={\n onClickRow && data.length\n ? () => {\n setActive(\n active >= 0 ? Math.min(active + 1, data.length - 1) : 0,\n );\n }\n : undefined\n }\n >\n \n (\n \n {marker}\n \n )}\n scrollableAncestor=\"window\"\n step={step}\n >\n {(datum, index) => {\n const primaryValue = primaryProperty\n ? datumValue(datum, primaryProperty)\n : undefined;\n return (\n = 0 ? active === index : undefined}\n onClick={\n onClickRow\n ? event => {\n // extract from React's synthetic event pool\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.datum = datum;\n adjustedEvent.index = index;\n onClickRow(adjustedEvent);\n }\n : undefined\n }\n onMouseOver={onClickRow ? () => setActive(index) : undefined}\n onMouseOut={onClickRow ? () => setActive(undefined) : undefined}\n onFocus={onClickRow ? () => setActive(index) : undefined}\n onBlur={onClickRow ? () => setActive(undefined) : undefined}\n >\n {columns.map(column => (\n \n ))}\n \n );\n }}\n \n \n \n );\n};\n\nconst ButtonWrapper = compose(withFocus(), withForwardRef)(Body);\n\nexport { ButtonWrapper as Body };\n","import React, { Fragment } from 'react';\n\nimport { Cell } from './Cell';\nimport { ExpanderCell } from './ExpanderCell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\n\nexport const GroupedBody = ({\n background,\n border,\n columns,\n groupBy,\n groups,\n groupState,\n pad,\n primaryProperty,\n onToggle,\n size,\n ...rest\n}) => (\n \n {groups.map(group => {\n const { expanded } = groupState[group.key];\n const memberCount = group.data.length;\n\n let content =\n memberCount > 1 ? (\n \n \n {columns.map(column => (\n \n ))}\n \n ) : null;\n\n if (memberCount === 1 || expanded) {\n content = (\n \n {content}\n {group.data.map((datum, index) => {\n const context =\n memberCount > 1 && index === memberCount - 1\n ? 'groupEnd'\n : 'body';\n return (\n \n \n {columns.map(column => (\n \n ))}\n \n );\n })}\n \n );\n }\n\n return content;\n })}\n \n);\n","export { Diagram } from './Diagram';\n","import React, { useState, useEffect, useRef, useCallback } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledDiagram } from './StyledDiagram';\n\nconst computeMidPoint = (fromPoint, toPoint) => [\n fromPoint[0] > toPoint[0]\n ? toPoint[0] + (fromPoint[0] - toPoint[0]) / 2\n : fromPoint[0] + (toPoint[0] - fromPoint[0]) / 2,\n fromPoint[1] > toPoint[1]\n ? toPoint[1] + (fromPoint[1] - toPoint[1]) / 2\n : fromPoint[1] + (toPoint[1] - fromPoint[1]) / 2,\n];\n\nconst COMMANDS = {\n curved: (fromPoint, toPoint, offset, anchor) => {\n const midPoint = computeMidPoint(fromPoint, toPoint);\n let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n if (anchor === 'horizontal') {\n cmds +=\n `Q ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n `${midPoint[0] + offset},${midPoint[1] + offset} `;\n } else {\n cmds +=\n `Q ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n `${midPoint[0] + offset},${midPoint[1] + offset} `;\n }\n cmds += `T ${toPoint[0] + offset},${toPoint[1] + offset}`;\n return cmds;\n },\n direct: (fromPoint, toPoint, offset) =>\n `M ${fromPoint[0] + offset},${fromPoint[1] + offset} ` +\n `L ${toPoint[0] + offset},${toPoint[1] + offset}`,\n rectilinear: (fromPoint, toPoint, offset, anchor) => {\n const midPoint = computeMidPoint(fromPoint, toPoint);\n let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n if (anchor === 'horizontal') {\n cmds +=\n `L ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n `L ${midPoint[0] + offset},${toPoint[1] + offset} `;\n } else {\n cmds +=\n `L ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n `L ${toPoint[0] + offset},${midPoint[1] + offset} `;\n }\n cmds += `L ${toPoint[0] + offset},${toPoint[1] + offset}`;\n return cmds;\n },\n};\n\nconst findTarget = target => {\n if (typeof target === 'string') {\n return document.getElementById(target);\n }\n return target;\n};\n\nconst Diagram = ({ connections, theme, ...rest }) => {\n const [dimensions, setDimensions] = useState({ width: 0, height: 0 });\n const [connectionPoints, setConnectionPoints] = useState();\n const svgRef = useRef();\n\n useEffect(() => {\n setConnectionPoints(undefined);\n }, [connections]);\n\n const onResize = useCallback(() => {\n const svg = svgRef.current;\n\n if (svg) {\n const rect = svg.getBoundingClientRect();\n if (\n rect.width !== dimensions.width ||\n rect.height !== dimensions.height\n ) {\n setDimensions({\n width: rect.width,\n height: rect.height,\n });\n setConnectionPoints(undefined);\n }\n }\n }, [dimensions.width, dimensions.height]);\n\n // Ref that stores resize handler\n const savedOnResize = useRef();\n\n // Update resize ref value if onResize changes.\n // This allows our effect below to always get latest handler\n useEffect(() => {\n savedOnResize.current = onResize;\n }, [onResize]);\n\n useEffect(() => {\n const onResizeHandler = event => savedOnResize.current(event);\n onResizeHandler();\n\n window.addEventListener('resize', onResizeHandler);\n\n return () => {\n window.removeEventListener('resize', onResizeHandler);\n };\n }, []);\n\n const placeConnections = useCallback(() => {\n const containerRect = svgRef.current.getBoundingClientRect();\n const updatedConnectionPoints = connections.map(\n ({ anchor, fromTarget, toTarget }) => {\n let points;\n const fromElement = findTarget(fromTarget);\n const toElement = findTarget(toTarget);\n if (!fromElement) {\n console.warn(`Diagram cannot find ${fromTarget}`);\n }\n if (!toElement) {\n console.warn(`Diagram cannot find ${toTarget}`);\n }\n\n if (fromElement && toElement) {\n const fromRect = fromElement.getBoundingClientRect();\n const toRect = toElement.getBoundingClientRect();\n // There is no x and y when unit testing.\n const fromPoint = [\n fromRect.left - containerRect.left || 0,\n fromRect.top - containerRect.top || 0,\n ];\n const toPoint = [\n toRect.left - containerRect.left || 0,\n toRect.top - containerRect.top || 0,\n ];\n if (anchor === 'vertical') {\n fromPoint[0] += fromRect.width / 2;\n toPoint[0] += toRect.width / 2;\n if (fromRect.top < toRect.top) {\n fromPoint[1] += fromRect.height;\n } else {\n toPoint[1] += toRect.height;\n }\n } else if (anchor === 'horizontal') {\n fromPoint[1] += fromRect.height / 2;\n toPoint[1] += toRect.height / 2;\n if (fromRect.left < toRect.left) {\n fromPoint[0] += fromRect.width;\n } else {\n toPoint[0] += toRect.width;\n }\n } else {\n // center\n fromPoint[0] += fromRect.width / 2;\n fromPoint[1] += fromRect.height / 2;\n toPoint[0] += toRect.width / 2;\n toPoint[1] += toRect.height / 2;\n }\n points = [fromPoint, toPoint];\n }\n\n return points;\n },\n );\n setConnectionPoints(updatedConnectionPoints);\n }, [connections]);\n\n useEffect(() => {\n if (!connectionPoints) {\n placeConnections();\n }\n }, [connectionPoints, placeConnections]);\n\n let paths;\n if (connectionPoints) {\n paths = connections.map(\n (\n { anchor, color, offset, round, thickness, type, ...connectionRest },\n index,\n ) => {\n let path;\n const cleanedRest = { ...connectionRest };\n delete cleanedRest.fromTarget;\n delete cleanedRest.toTarget;\n const points = connectionPoints[index];\n if (points) {\n const offsetWidth = offset\n ? parseMetricToNum(theme.global.edgeSize[offset])\n : 0;\n const d = COMMANDS[type || 'curved'](\n points[0],\n points[1],\n offsetWidth,\n anchor,\n );\n const strokeWidth = thickness\n ? parseMetricToNum(theme.global.edgeSize[thickness] || thickness)\n : 1;\n let colorName =\n color || (theme.diagram.line && theme.diagram.line.color);\n if (!colorName) {\n const colors = Object.keys(theme.global.colors).filter(n =>\n n.match(/^graph-[0-9]$/),\n );\n colorName = colors[index % colors.length];\n }\n\n path = (\n \n );\n }\n\n return path;\n },\n );\n }\n\n return (\n \n {paths}\n \n );\n};\n\nDiagram.defaultProps = { connections: [] };\nObject.setPrototypeOf(Diagram.defaultProps, defaultProps);\n\nlet DiagramDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n DiagramDoc = require('./doc').doc(Diagram);\n}\nconst DiagramWrapper = compose(withTheme)(DiagramDoc || Diagram);\n\nexport { DiagramWrapper as Diagram };\n","import styled from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nconst StyledDiagram = styled.svg`\n max-width: 100%;\n width: 100%;\n height: 100%;\n\n ${props => props.theme.diagram && props.theme.diagram.extend};\n`;\n\nStyledDiagram.defaultProps = {};\nObject.setPrototypeOf(StyledDiagram.defaultProps, defaultProps);\n\nexport { StyledDiagram };\n","export { Distribution } from './Distribution';\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Box } from '../Box';\nimport { Text } from '../Text';\n\nconst Value = ({ basis, children }) => (\n \n {children}\n \n);\n\nValue.propTypes = {\n basis: PropTypes.string.isRequired,\n children: PropTypes.node.isRequired,\n};\n\nconst Distribution = ({\n basis,\n children,\n direction,\n fill,\n gap,\n values,\n ...rest\n}) => {\n if (values.length === 1) {\n const value = values[0];\n return (\n \n {children(value)}\n \n );\n }\n if (values.length > 1) {\n const reducer = (accumulator, { value }) => accumulator + value;\n const total = values.reduce(reducer, 0);\n\n // figure out how many of the values area needed to represent half of the\n // total\n let subTotal = 0;\n let subIndex;\n values.some((v, index) => {\n subTotal += v.value;\n if (subTotal >= total * 0.4) {\n subIndex = index + 1;\n return true;\n }\n return false;\n });\n\n if (subIndex === values.length) {\n const value = values[0];\n return (\n \n {children(value)}\n \n );\n }\n\n let childBasis;\n if (subTotal > total * 0.7) {\n childBasis = ['3/4', '1/4'];\n } else if (subTotal > total * 0.6) {\n childBasis = ['2/3', '1/3'];\n } else {\n childBasis = ['1/2', '1/2'];\n }\n\n return (\n \n \n {children}\n \n \n {children}\n \n \n );\n }\n return null;\n};\n\nDistribution.defaultProps = {\n basis: undefined,\n children: value => (\n \n {value.value}\n \n ),\n direction: 'row',\n gap: 'xsmall',\n values: [],\n};\n\nlet DistributionDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n DistributionDoc = require('./doc').doc(Distribution);\n}\nconst DistributionWrapper = DistributionDoc || Distribution;\n\nexport { DistributionWrapper as Distribution };\n","import React, { createRef, Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { withForwardRef } from '../hocs';\nimport { setFocusWithoutScroll } from '../../utils';\n\nclass DropButton extends Component {\n static defaultProps = {\n a11yTitle: 'Open Drop',\n dropAlign: { top: 'top', left: 'left' },\n };\n\n buttonRef = createRef();\n\n constructor(props) {\n super(props);\n this.state = {\n show: props.open || false,\n };\n }\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { show } = prevState;\n const { open } = nextProps;\n if (open !== undefined && open !== show) {\n return { show: open };\n }\n return null;\n }\n\n componentDidMount() {\n const { open } = this.props;\n if (open) {\n this.forceUpdate();\n }\n }\n\n componentDidUpdate(prevProps, prevState) {\n const { forwardRef } = this.props;\n const { show } = this.state;\n if (!show && prevState.show) {\n // focus on the button if the drop is closed\n setFocusWithoutScroll((forwardRef || this.buttonRef).current);\n }\n }\n\n onDropClose = () => {\n const { onClose } = this.props;\n this.setState({ show: false }, () => {\n if (onClose) {\n onClose();\n }\n });\n };\n\n onToggle = event => {\n const { onClick, onClose, onOpen } = this.props;\n const { show } = this.state;\n this.setState({ show: !show }, () =>\n show ? onClose && onClose() : onOpen && onOpen(),\n );\n if (onClick) {\n onClick(event);\n }\n };\n\n render() {\n const {\n disabled,\n dropAlign,\n dropProps,\n forwardRef,\n dropContent,\n dropTarget,\n id,\n open,\n ...rest\n } = this.props;\n const { show } = this.state;\n\n delete rest.onClose;\n delete rest.onOpen;\n\n let drop;\n if (show && (forwardRef || this.buttonRef).current) {\n drop = (\n \n {dropContent}\n \n );\n }\n\n return (\n <>\n \n {drop}\n \n );\n }\n}\n\nlet DropButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n DropButtonDoc = require('./doc').doc(DropButton);\n}\nconst DropButtonWrapper = compose(withForwardRef)(DropButtonDoc || DropButton);\n\nexport { DropButtonWrapper as DropButton };\n","export { Footer } from './Footer';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Footer = ({ ...rest }) => (\n \n);\n\nlet FooterDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n FooterDoc = require('./doc').doc(Footer);\n}\n\nconst FooterWrapper = FooterDoc || Footer;\n\nexport { FooterWrapper as Footer };\n","export { Form } from './Form';\nexport { FormContext } from './FormContext';\n","import React, { Component } from 'react';\nimport { defaultProps } from '../../default-props';\nimport { FormContext } from './FormContext';\n\nconst updateReducer = (name, data, error, validations) => state => {\n const { errors, touched, value } = state;\n const nextValue = { ...value };\n nextValue[name] = data;\n const nextTouched = { ...touched };\n nextTouched[name] = true;\n const nextErrors = { ...errors };\n if (errors[name]) {\n const nextError =\n error || (validations[name] && validations[name](data, nextValue));\n if (nextError) {\n nextErrors[name] = nextError;\n } else {\n delete nextErrors[name];\n }\n }\n return {\n value: nextValue,\n errors: nextErrors,\n touched: nextTouched,\n };\n};\n\nconst defaultMessages = {\n invalid: 'invalid',\n required: 'required',\n};\n\nclass Form extends Component {\n static defaultProps = {\n messages: defaultMessages,\n value: {},\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { value, errors, messages } = nextProps;\n const {\n value: stateValue,\n errors: stateErrors,\n priorValue,\n priorErrors,\n priorMessages,\n } = prevState;\n if (\n !priorValue ||\n value !== priorValue ||\n errors !== priorErrors ||\n messages !== priorMessages\n ) {\n return {\n value: value !== priorValue ? value : stateValue,\n priorValue: value,\n errors: (errors !== priorErrors ? errors : stateErrors) || {},\n priorErrors: errors,\n messages: { ...defaultMessages, ...messages },\n priorMessages: messages,\n };\n }\n return null;\n }\n\n state = { errors: {}, value: {}, touched: {} };\n\n validations = {};\n\n onSubmit = event => {\n const { onSubmit } = this.props;\n const { errors, value } = this.state;\n // Don't submit the form via browser form action. We don't want it\n // if the validation fails. And, we assume a javascript action handler\n // otherwise.\n event.preventDefault();\n const nextErrors = { ...errors };\n Object.keys(this.validations).forEach(name => {\n const validate = this.validations[name];\n const error = validate && validate(value[name], value);\n if (error) {\n nextErrors[name] = error;\n } else {\n delete nextErrors[name];\n }\n });\n if (Object.keys(nextErrors).length === 0 && onSubmit) {\n event.persist(); // extract from React's synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.value = value;\n onSubmit(adjustedEvent);\n } else {\n this.setState({ errors: nextErrors });\n }\n };\n\n onReset = event => {\n const { onChange, onReset } = this.props;\n const value = {};\n this.setState({ errors: {}, value, touched: {} }, () => {\n if (onReset) {\n event.persist(); // extract from React's synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.value = value;\n onReset(adjustedEvent);\n }\n if (onChange) {\n onChange(value);\n }\n });\n };\n\n update = (name, data, error) => {\n this.setState(updateReducer(name, data, error, this.validations), () => {\n const { onChange } = this.props;\n const { value } = this.state;\n if (onChange) {\n onChange(value);\n }\n });\n };\n\n addValidation = (name, validate) => {\n this.validations[name] = validate;\n };\n\n render() {\n const { children, ...rest } = this.props;\n delete rest.messages;\n delete rest.theme;\n delete rest.value;\n const { errors, touched, value, messages } = this.state;\n return (\n
    \n \n {children}\n \n \n );\n }\n}\n\nObject.setPrototypeOf(Form.defaultProps, defaultProps);\n\nlet FormDoc;\nif (process.env.NODE_ENV !== 'production') {\n FormDoc = require('./doc').doc(Form); // eslint-disable-line global-require\n}\n\nconst FormWrapper = FormDoc || Form;\nFormWrapper.displayName = 'Form';\n\nexport { FormWrapper as Form };\n","export { FormField } from './FormField';\n","// eslint-disable-next-line max-len\n/* eslint-disable react/no-multi-comp, react/prefer-stateless-function, max-classes-per-file */\nimport React, { Children, cloneElement, Component } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { parseMetricToNum } from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { CheckBox } from '../CheckBox';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { withFocus } from '../hocs';\nimport { FormContext } from '../Form/FormContext';\n\nconst validateField = (required, validate, messages) => (value, data) => {\n let error;\n if (required && (value === undefined || value === '')) {\n error = messages.required;\n } else if (validate) {\n if (typeof validate === 'function') {\n error = validate(value, data);\n } else if (validate.regexp) {\n if (!validate.regexp.test(value)) {\n error = validate.message || messages.invalid;\n }\n }\n }\n return error;\n};\n\nconst FormFieldBox = styled(Box)`\n ${props => props.theme.formField.extend}\n`;\n\nclass FormFieldContent extends Component {\n componentDidMount() {\n const { checked, context, name, value } = this.props;\n if (\n context &&\n context.value[name] === undefined &&\n (value !== undefined || checked !== undefined)\n ) {\n context.update(name, value !== undefined ? value : checked);\n }\n }\n\n renderChildren = (value, update) => {\n const {\n name,\n checked,\n component,\n required,\n value: valueProp,\n onChange,\n ...rest\n } = this.props;\n\n delete rest.className;\n const Input = component || TextInput;\n if (Input === CheckBox) {\n return (\n {\n update(name, event.target.checked);\n if (onChange) onChange(event);\n }}\n {...rest}\n />\n );\n }\n return (\n {\n update(name, event.value || event.target.value || '');\n if (onChange) onChange(event);\n }}\n plain\n focusIndicator={false}\n {...rest}\n />\n );\n };\n\n render() {\n const {\n children,\n className,\n component,\n context,\n error,\n focus,\n help,\n htmlFor,\n label,\n name,\n pad,\n required,\n style,\n theme,\n validate,\n onBlur,\n onFocus,\n margin,\n } = this.props;\n const { formField } = theme;\n const { border } = formField;\n\n let normalizedError = error;\n let contents = children;\n\n if (context) {\n const { addValidation, errors, value, update, messages } = context;\n addValidation(name, validateField(required, validate, messages));\n normalizedError = error || errors[name];\n contents = children || this.renderChildren(value, update);\n }\n\n if (pad) {\n contents = {contents};\n }\n\n let borderColor;\n if (focus && !normalizedError) {\n borderColor = 'focus';\n } else if (normalizedError) {\n borderColor = (border && border.error.color) || 'status-critical';\n } else {\n borderColor = (border && border.color) || 'border';\n }\n let abut;\n let abutMargin;\n let outerStyle = style;\n\n if (border) {\n const normalizedChildren = children\n ? Children.map(children, child => {\n if (child) {\n return cloneElement(child, {\n plain: true,\n focusIndicator: false,\n onBlur,\n onFocus,\n });\n }\n return child;\n })\n : contents;\n contents = (\n {\n this.childContainerRef = ref;\n }}\n border={\n border.position === 'inner'\n ? {\n ...border,\n side: border.side || 'bottom',\n color: borderColor,\n }\n : undefined\n }\n >\n {normalizedChildren}\n \n );\n\n abut =\n border.position === 'outer' &&\n (border.side === 'all' || border.side === 'horizontal' || !border.side);\n if (abut) {\n // marginBottom is set to overlap adjacent fields\n abutMargin = { bottom: '-1px' };\n if (margin) {\n abutMargin = margin;\n } else if (border.size) {\n // if the user defines a margin,\n // then the default margin below will be overriden\n abutMargin = {\n bottom: `-${parseMetricToNum(\n theme.global.borderSize[border.size] || border.size,\n )}px`,\n };\n }\n\n outerStyle = {\n position: focus ? 'relative' : undefined,\n zIndex: focus ? 10 : undefined,\n ...style,\n };\n }\n }\n\n return (\n \n {(label && component !== CheckBox) || help ? (\n <>\n {label && component !== CheckBox && (\n \n {label}\n \n )}\n {help && (\n \n {help}\n \n )}\n \n ) : (\n undefined\n )}\n {contents}\n {normalizedError && (\n \n {normalizedError}\n \n )}\n \n );\n }\n}\n\n// Can't be a functional component because styled-components withTheme() needs\n// to attach a ref.\nclass FormField extends Component {\n render() {\n return (\n \n {context => }\n \n );\n }\n}\n\nFormField.defaultProps = {};\nObject.setPrototypeOf(FormField.defaultProps, defaultProps);\n\nlet FormFieldDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n FormFieldDoc = require('./doc').doc(FormField);\n}\nconst FormFieldWrapper = compose(\n withFocus({ focusWithMouse: true }),\n withTheme,\n)(FormFieldDoc || FormField);\n\nexport { FormFieldWrapper as FormField };\n","export { Grid } from './Grid';\n","import React from 'react';\n\nimport { StyledGrid } from './StyledGrid';\n\nconst Grid = props => {\n const {\n a11yTitle,\n fill, // munged to avoid styled-components putting it in the DOM\n rows, // munged to avoid styled-components putting it in the DOM\n tag,\n as,\n ...rest\n } = props;\n\n return (\n \n );\n};\n\nlet GridDoc;\nif (process.env.NODE_ENV !== 'production') {\n GridDoc = require('./doc').doc(Grid); // eslint-disable-line global-require\n}\nconst GridWrapper = GridDoc || Grid;\n\nGridWrapper.available =\n typeof window !== 'undefined' &&\n window.CSS &&\n window.CSS.supports &&\n window.CSS.supports('display', 'grid');\n\nexport { GridWrapper as Grid };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = fill => {\n if (fill === 'horizontal') {\n return 'width: 100%;';\n }\n if (fill === 'vertical') {\n return 'height: 100%;';\n }\n if (fill) {\n return `\n width: 100%;\n height: 100%;\n `;\n }\n return undefined;\n};\n\nconst ALIGN_MAP = {\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst alignStyle = css`\n align-items: ${props => ALIGN_MAP[props.align]};\n`;\n\nconst ALIGN_CONTENT_MAP = {\n around: 'space-around',\n between: 'space-between',\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst alignContentStyle = css`\n align-content: ${props => ALIGN_CONTENT_MAP[props.alignContent]};\n`;\n\nconst JUSTIFY_MAP = {\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst justifyStyle = css`\n justify-items: ${props => JUSTIFY_MAP[props.justify]};\n`;\n\nconst JUSTIFY_CONTENT_MAP = {\n around: 'space-around',\n between: 'space-between',\n center: 'center',\n end: 'flex-end',\n start: 'flex-start',\n stretch: 'stretch',\n};\n\nconst justifyContentStyle = css`\n justify-content: ${props => JUSTIFY_CONTENT_MAP[props.justifyContent]};\n`;\n\nconst gapStyle = props => {\n if (typeof props.gap === 'string') {\n const gapSize = props.theme.global.edgeSize[props.gap] || props.gap;\n return `grid-gap: ${gapSize} ${gapSize};`;\n }\n if (props.gap.row && props.gap.column) {\n return `\n grid-row-gap: ${props.theme.global.edgeSize[props.gap.row] ||\n props.gap.row};\n grid-column-gap: ${props.theme.global.edgeSize[props.gap.column] ||\n props.gap.column};\n `;\n }\n if (props.gap.row) {\n return `\n grid-row-gap: ${props.theme.global.edgeSize[props.gap.row] ||\n props.gap.row};\n `;\n }\n if (props.gap.column) {\n return `\n grid-column-gap: ${props.theme.global.edgeSize[props.gap.column] ||\n props.gap.column};\n `;\n }\n return '';\n};\n\nconst SIZE_MAP = {\n flex: '1fr',\n full: '100%',\n '1/2': '50%',\n '1/4': '25%',\n '2/4': '50%',\n '3/4': '75%',\n '1/3': '33.33%',\n '2/3': '66.66%',\n};\n\nconst getRepeatCount = count =>\n typeof count === 'number' ? count : `auto-${count}`;\n\nconst getRepeatSize = (size, theme) => {\n if (Array.isArray(size)) {\n return `minmax(${theme.global.size[size[0]] || size[0]}, ${theme.global\n .size[size[1]] || size[1]})`;\n }\n return `minmax(${theme.global.size[size] || size}, 1fr)`;\n};\n\nconst sizeFor = (size, props, isRow) => {\n const mapped = SIZE_MAP[size];\n if (\n isRow &&\n mapped &&\n (!props.fillContainer || props.fillContainer === 'horizontal')\n ) {\n console.warn('Grid needs `fill` when using fractional row sizes');\n }\n return mapped || props.theme.global.size[size] || size;\n};\n\nconst columnsStyle = props => {\n if (Array.isArray(props.columns)) {\n return css`\n grid-template-columns: ${props.columns\n .map(s => {\n if (Array.isArray(s)) {\n return `minmax(${sizeFor(s[0], props)}, ${sizeFor(s[1], props)})`;\n }\n return sizeFor(s, props);\n })\n .join(' ')};\n `;\n }\n if (typeof props.columns === 'object') {\n return css`\n grid-template-columns: repeat(\n ${getRepeatCount(props.columns.count)},\n ${getRepeatSize(props.columns.size, props.theme)}\n );\n `;\n }\n return css`\n grid-template-columns: repeat(\n auto-fill,\n ${getRepeatSize(props.columns, props.theme)}\n );\n `;\n};\n\nconst rowsStyle = props => {\n if (Array.isArray(props.rowsProp)) {\n return css`\n grid-template-rows: ${props.rowsProp\n .map(s => {\n if (Array.isArray(s)) {\n return `minmax(${sizeFor(s[0], props, true)}, ${sizeFor(\n s[1],\n props,\n true,\n )})`;\n }\n return sizeFor(s, props, true);\n })\n .join(' ')};\n `;\n }\n return css`\n grid-auto-rows: ${props.theme.global.size[props.rowsProp]};\n `;\n};\n\nconst areasStyle = props => {\n // translate areas objects into grid-template-areas syntax\n if (!Array.isArray(props.rowsProp) || !Array.isArray(props.columns)) {\n console.warn('Grid `areas` requires `rows` and `columns` to be arrays.');\n }\n if (\n Array.isArray(props.areas) &&\n props.areas.every(area => Array.isArray(area))\n ) {\n return `grid-template-areas: ${props.areas\n .map(area => `\"${area.join(' ')}\"`)\n .join(' ')};`;\n }\n const cells = props.rowsProp.map(() => props.columns.map(() => '.'));\n props.areas.forEach(area => {\n for (let row = area.start[1]; row <= area.end[1]; row += 1) {\n for (let column = area.start[0]; column <= area.end[0]; column += 1) {\n cells[row][column] = area.name;\n }\n }\n });\n return `grid-template-areas: ${cells\n .map(r => `\"${r.join(' ')}\"`)\n .join(' ')};`;\n};\n\nconst StyledGrid = styled.div.attrs(props => ({\n 'aria-label': props.a11yTitleProp,\n}))`\n display: grid;\n box-sizing: border-box;\n\n ${genericStyles}\n ${props => props.fillContainer && fillStyle(props.fillContainer)}\n ${props => props.align && alignStyle}\n ${props => props.alignContent && alignContentStyle}\n ${props => props.areas && areasStyle(props)}\n ${props => props.columns && columnsStyle(props)}\n ${props => props.gap && gapStyle(props)}\n ${props => props.justify && justifyStyle}\n ${props => props.justifyContent && justifyContentStyle}\n ${props => props.rowsProp && rowsStyle(props)}\n ${props => props.theme.grid && props.theme.grid.extend}\n`;\n\nStyledGrid.defaultProps = {};\nObject.setPrototypeOf(StyledGrid.defaultProps, defaultProps);\n\nexport { StyledGrid };\n","export { Grommet } from './Grommet';\n","import React, { Component } from 'react';\nimport { createGlobalStyle } from 'styled-components';\n\nimport { ResponsiveContext, ThemeContext } from '../../contexts';\nimport {\n colorIsDark,\n deepMerge,\n getBreakpoint,\n getDeviceBreakpoint,\n} from '../../utils';\nimport { base as baseTheme } from '../../themes';\nimport { StyledGrommet } from './StyledGrommet';\n\nconst FullGlobalStyle = createGlobalStyle`\n body { margin: 0; }\n`;\n\nclass Grommet extends Component {\n static displayName = 'Grommet';\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { theme = {}, themeMode } = nextProps;\n const { theme: stateTheme, themeProp, themeModeProp } = prevState;\n\n const nextTheme = deepMerge(baseTheme, theme);\n if (!stateTheme || theme !== themeProp || themeMode !== themeModeProp) {\n const {\n colors: { background },\n } = nextTheme.global;\n // Determine whether to start in dark or light mode.\n if (typeof background === 'object') {\n // background is an object, use themeMode, theme default\n // or first key\n const color =\n background[\n themeMode || nextTheme.defaultMode || Object.keys(background)[0]\n ];\n nextTheme.dark = color ? colorIsDark(color) : false;\n } else if (nextTheme.dark === undefined) {\n nextTheme.dark = (background && colorIsDark(background)) || false;\n }\n return {\n theme: nextTheme,\n themeProp: theme,\n themeModeProp: themeMode,\n };\n }\n\n return null;\n }\n\n state = {};\n\n componentDidMount() {\n window.addEventListener('resize', this.onResize);\n this.onResize();\n }\n\n componentWillUnmount() {\n window.removeEventListener('resize', this.onResize);\n }\n\n onResize = () => {\n const { theme, responsive } = this.state;\n\n const breakpoint = getBreakpoint(window.innerWidth, theme);\n\n if (breakpoint !== responsive) {\n this.setState({ responsive: breakpoint });\n }\n };\n\n deviceResponsive() {\n const { userAgent } = this.props;\n const { theme } = this.state;\n\n /*\n * Regexes provided for mobile and tablet detection are meant to replace\n * a full-featured specific library due to contributing a considerable size\n * into the bundle.\n *\n * User agents found https://deviceatlas.com/blog/list-of-user-agent-strings\n */\n if (userAgent) {\n if (\n /(tablet|ipad|playbook|silk)|(android(?!.*mobile))/i.test(userAgent)\n ) {\n return getDeviceBreakpoint('tablet', theme);\n }\n if (/Mobile|iPhone|Android/.test(userAgent)) {\n return getDeviceBreakpoint('phone', theme);\n }\n return getDeviceBreakpoint('computer', theme);\n }\n return undefined;\n }\n\n render() {\n const { children, full, ...rest } = this.props;\n delete rest.theme;\n const { theme, responsive: stateResponsive } = this.state;\n\n // Value from state should be correct once we resize\n // On first render we try to guess otherwise set the default as a tablet\n const responsive =\n stateResponsive ||\n this.deviceResponsive() ||\n theme.global.deviceBreakpoints.tablet;\n\n return (\n \n \n \n {children}\n \n {full && }\n \n \n );\n }\n}\n\nlet GrommetDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n GrommetDoc = require('./doc').doc(Grommet);\n}\nconst GrommetWrapper = GrommetDoc || Grommet;\n\nexport { GrommetWrapper as Grommet };\n","import { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\n\nexport const grommet = deepFreeze({\n global: {\n colors: {\n background: {\n light: '#ffffff',\n dark: '#000000',\n },\n },\n font: {\n family: `-apple-system,\n BlinkMacSystemFont, \n \"Segoe UI\", \n Roboto, \n Oxygen, \n Ubuntu, \n Cantarell, \n \"Fira Sans\", \n \"Droid Sans\", \n \"Helvetica Neue\", \n Arial, sans-serif, \n \"Apple Color Emoji\", \n \"Segoe UI Emoji\", \n \"Segoe UI Symbol\"`,\n },\n },\n button: {\n extend: css`\n ${props => !props.plain && 'font-weight: bold;'}\n `,\n },\n});\n","import { rgba } from 'polished';\nimport { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\nimport { normalizeColor } from '../utils/colors';\n\nconst accentColors = ['#FD6FFF', '#60EB9F', '#60EBE1', '#FFCA58'];\nconst neutralColors = ['#EB6060', '#01C781', '#6095EB', '#FFB200'];\nconst statusColors = {\n critical: '#FF3333',\n error: '#FF3333',\n warning: '#F7E464',\n ok: '#7DD892',\n unknown: '#a8a8a8',\n disabled: '#a8a8a8',\n};\nconst backgroundColor = '#111111';\n\nconst colors = {\n active: rgba(102, 102, 102, 0.5),\n background: backgroundColor,\n black: '#000000',\n brand: '#FD6FFF',\n control: {\n dark: '#FFCA58',\n light: '#403216',\n },\n focus: '#FFCA58',\n icon: {\n dark: '#f8f8f8',\n light: '#666666',\n },\n placeholder: '#AAAAAA',\n text: {\n dark: '#eeeeee',\n light: '#444444',\n },\n white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n array.forEach((color, index) => {\n colors[`${prefix}-${index + 1}`] = color;\n });\n\ncolorArray(accentColors, 'accent');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach(color => {\n colors[`status-${color}`] = statusColors[color];\n});\n\nexport const dark = deepFreeze({\n global: {\n colors,\n drop: {\n background: '#333333',\n },\n focus: {\n border: {\n color: css`\n ${props => normalizeColor('focus', props.theme)};\n `,\n width: '2px',\n },\n },\n font: {\n family: 'Arial',\n },\n input: {\n weight: 700,\n },\n },\n anchor: {\n color: 'control',\n },\n layer: {\n background: backgroundColor,\n overlay: {\n background: rgba(48, 48, 48, 0.5),\n },\n },\n});\n","import styled, { css } from 'styled-components';\n\nimport { baseStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fullStyle = css`\n width: 100vw;\n height: 100vh;\n overflow: auto;\n`;\n\nconst StyledGrommet = styled.div`\n ${props => !props.plain && baseStyle}\n ${props => props.full && fullStyle}\n ${props => props.theme.global.font.face}\n ${props => props.theme.grommet.extend}\n ${props =>\n props.cssVars &&\n Object.keys(props.theme.global.colors)\n .filter(k => typeof props.theme.global.colors[k] === 'string')\n .map(k => `--${k}: ${props.theme.global.colors[k]};`)\n .join('\\n')}\n`;\n\nStyledGrommet.defaultProps = {};\nObject.setPrototypeOf(StyledGrommet.defaultProps, defaultProps);\n\nexport { StyledGrommet };\n","export { Header } from './Header';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Header = ({ ...rest }) => (\n \n);\n\nlet HeaderDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n HeaderDoc = require('./doc').doc(Header);\n}\nconst HeaderWrapper = HeaderDoc || Header;\n\nexport { HeaderWrapper as Header };\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\nimport { withForwardRef } from '../hocs';\nimport { StyledImage } from './StyledImage';\n\nconst Image = ({\n fallback,\n forwardRef,\n onError,\n opacity,\n fill,\n src,\n ...rest\n}) => {\n const [imageMissing, setImageMissing] = useState(false);\n const handleError = event => {\n if (onError) {\n onError(event);\n }\n setImageMissing(true);\n };\n const extraProps = {\n onError: (onError || fallback) && handleError,\n };\n return (\n \n );\n};\n\nlet ImageDoc;\nif (process.env.NODE_ENV !== 'production') {\n ImageDoc = require('./doc').doc(Image); // eslint-disable-line global-require\n}\n\nconst ImageWrapper = compose(withForwardRef)(ImageDoc || Image);\n\nexport { ImageWrapper as Image };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst FIT_MAP = {\n cover: 'cover',\n contain: 'contain',\n};\n\nconst fitStyle = css`\n flex: 1 1;\n overflow: hidden;\n object-fit: ${props => FIT_MAP[props.fit]};\n`;\n\nconst fillStyle = css`\n width: 100%;\n height: 100%;\n`;\n\nconst StyledImage = styled.img`\n ${genericStyles}\n ${props => props.fit && fitStyle}\n ${props => props.fillProp && fillStyle}\n ${props => props.theme.image && props.theme.image.extend}\n ${props =>\n props.opacityProp &&\n `opacity: ${\n props.opacityProp === true\n ? props.theme.global.opacity.medium\n : props.theme.global.opacity[props.opacityProp] || props.opacityProp\n };\n `}\n `;\n\nStyledImage.defaultProps = {};\nObject.setPrototypeOf(StyledImage.defaultProps, defaultProps);\n\nexport { StyledImage };\n","import React, { Component } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { getNewContainer } from '../../utils';\n\nimport { LayerContainer } from './LayerContainer';\nimport { animationDuration } from './StyledLayer';\n\nclass Layer extends Component {\n static defaultProps = {\n full: false,\n margin: 'none',\n modal: true,\n position: 'center',\n responsive: true,\n };\n\n state = {\n islayerContainerAvailable: false,\n };\n\n componentDidMount() {\n // ensure document is available\n this.originalFocusedElement = document.activeElement;\n this.layerContainer = getNewContainer();\n this.setState({ islayerContainerAvailable: true });\n }\n\n componentWillUnmount() {\n const { animate, animation } = this.props;\n if (this.originalFocusedElement) {\n if (this.originalFocusedElement.focus) {\n // wait for the fixed positioning to come back to normal\n // see layer styling for reference\n setTimeout(() => {\n this.originalFocusedElement.focus();\n }, 0);\n } else if (\n this.originalFocusedElement.parentNode &&\n this.originalFocusedElement.parentNode.focus\n ) {\n // required for IE11 and Edge\n this.originalFocusedElement.parentNode.focus();\n }\n }\n\n const activeAnimation = animation !== undefined ? animation : animate;\n if (activeAnimation !== false) {\n // undefined uses 'slide' as the default\n // animate out and remove later\n const layerClone = this.layerContainer.cloneNode(true);\n layerClone.id = 'layerClone';\n document.body.appendChild(layerClone);\n const clonedContainer = layerClone.querySelector(\n '[class*=\"StyledLayer__StyledContainer\"]',\n );\n if (clonedContainer && clonedContainer.style) {\n clonedContainer.style.animationDirection = 'reverse';\n }\n setTimeout(() => {\n // we add the id and query here so the unit tests work\n const clone = document.getElementById('layerClone');\n if (clone) document.body.removeChild(clone);\n }, animationDuration);\n }\n }\n\n render() {\n const { islayerContainerAvailable } = this.state;\n\n return islayerContainerAvailable\n ? createPortal(, this.layerContainer)\n : null;\n }\n}\n\nlet LayerDoc;\nif (process.env.NODE_ENV !== 'production') {\n LayerDoc = require('./doc').doc(Layer); // eslint-disable-line global-require\n}\nconst LayerWrapper = LayerDoc || Layer;\n\nexport { LayerWrapper as Layer };\n","import React, { createRef, Component } from 'react';\nimport styled from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { ThemeContext } from '../../contexts';\n\nimport { FocusedContainer } from '../FocusedContainer';\nimport { Keyboard } from '../Keyboard';\nimport { backgroundIsDark } from '../../utils';\n\nimport { StyledLayer, StyledContainer, StyledOverlay } from './StyledLayer';\n\nconst HiddenAnchor = styled.a`\n width: 0;\n height: 0;\n overflow: hidden;\n position: absolute;\n`;\n\nclass LayerContainer extends Component {\n static contextType = ThemeContext;\n\n static defaultProps = {\n full: false,\n margin: 'none',\n modal: true,\n position: 'center',\n };\n\n anchorRef = createRef();\n\n containerRef = React.createRef();\n\n layerRef = React.createRef();\n\n componentDidMount() {\n const { position, modal } = this.props;\n if (position !== 'hidden') {\n this.makeLayerVisible();\n // Once layer is open we make sure it has focus so that you\n // can start tabbing inside the layer. If the caller put focus\n // on an element already, we honor that. Otherwise, we put\n // the focus in the hidden anchor.\n let element = document.activeElement;\n while (element) {\n if (element === this.containerRef.current) {\n // already have focus inside the container\n break;\n }\n element = element.parentElement;\n }\n if (modal && !element && this.anchorRef.current) {\n this.anchorRef.current.focus();\n }\n }\n }\n\n componentDidUpdate(prevProps) {\n const { position } = this.props;\n if (prevProps.position !== position && position !== 'hidden') {\n this.makeLayerVisible();\n }\n }\n\n makeLayerVisible = () => {\n const node = this.layerRef.current || this.containerRef.current;\n if (node && node.scrollIntoView) {\n node.scrollIntoView();\n }\n };\n\n render() {\n const {\n children,\n id,\n modal,\n onClickOutside,\n onEsc,\n plain,\n position,\n responsive,\n theme: propsTheme,\n ...rest\n } = this.props;\n const theme = this.context || propsTheme;\n\n let content = (\n \n {/* eslint-disable max-len */}\n {/* eslint-disable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n \n {/* eslint-enable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n {/* eslint-enable max-len */}\n {children}\n \n );\n\n if (modal) {\n content = (\n \n \n {content}\n \n );\n /* eslint-enable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */\n }\n\n if (onEsc) {\n content = {content};\n }\n\n if (theme.layer.background) {\n const dark = backgroundIsDark(theme.layer.background, theme);\n if (dark !== undefined && dark !== theme.dark) {\n content = (\n \n {content}\n \n );\n }\n }\n\n if (modal) {\n content = (\n \n );\n }\n return content;\n }\n}\n\nObject.setPrototypeOf(LayerContainer.defaultProps, defaultProps);\n\nexport { LayerContainer };\n","export { List } from './List';\n","import React from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { focusStyle } from '../../utils';\nimport { withFocus, withForwardRef } from '../hocs';\n\nconst StyledList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n ${props => props.focus && focusStyle}\n`;\n\nconst StyledItem = styled(Box)`\n ${props => props.onClick && `cursor: pointer;`}\n`;\n\nconst normalize = (item, index, property) => {\n if (typeof property === 'function') {\n return property(item, index);\n }\n return item[property];\n};\n\nconst List = React.forwardRef((props, ref) => {\n const {\n action,\n as,\n background,\n border,\n children,\n data,\n focus,\n itemProps,\n pad,\n primaryKey,\n secondaryKey,\n step,\n theme,\n onClickItem,\n onMore,\n ...rest\n } = props;\n const [active, setActive] = React.useState();\n\n return (\n = 0\n ? event => {\n event.persist();\n const adjustedEvent = event;\n adjustedEvent.item = data[active];\n adjustedEvent.index = active;\n onClickItem(adjustedEvent);\n }\n : undefined\n }\n onUp={\n onClickItem && active\n ? () => {\n setActive(active - 1);\n }\n : undefined\n }\n onDown={\n onClickItem && data && data.length\n ? () => {\n setActive(\n active >= 0 ? Math.min(active + 1, data.length - 1) : 0,\n );\n }\n : undefined\n }\n >\n \n (\n \n {marker}\n \n )}\n >\n {(item, index) => {\n let content;\n let boxProps = {};\n\n if (children) {\n content = children(\n item,\n index,\n onClickItem ? { active: active === index } : undefined,\n );\n } else if (primaryKey) {\n if (typeof primaryKey === 'function') {\n content = primaryKey(item, index);\n } else {\n content = (\n \n {normalize(item, index, primaryKey)}\n \n );\n }\n if (secondaryKey) {\n if (typeof secondaryKey === 'function') {\n content = [content, secondaryKey(item, index)];\n } else {\n content = [\n content,\n {normalize(item, index, secondaryKey)},\n ];\n }\n boxProps = {\n direction: 'row',\n align: 'center',\n justify: 'between',\n gap: 'medium',\n };\n }\n } else if (typeof item === 'object') {\n content = item[Object.keys(item)[0]];\n } else {\n content = item;\n }\n\n if (action) {\n content = [\n {content},\n action(item, index),\n ];\n boxProps = {\n direction: 'row',\n align: secondaryKey ? 'start' : 'center',\n justify: 'between',\n gap: 'medium',\n };\n }\n\n let adjustedBackground = background || theme.list.item.background;\n if (active === index) {\n adjustedBackground = theme.global.hover.background;\n } else if (Array.isArray(adjustedBackground)) {\n adjustedBackground =\n adjustedBackground[index % adjustedBackground.length];\n }\n\n let adjustedBorder = border || theme.list.item.border;\n if (adjustedBorder === 'horizontal' && index) {\n adjustedBorder = 'bottom';\n }\n\n if (itemProps && itemProps[index]) {\n boxProps = { ...boxProps, ...itemProps[index] };\n }\n\n let clickProps;\n if (onClickItem) {\n clickProps = {\n tabIndex: -1,\n active: active === index,\n onClick: event => {\n event.persist(); // extract from React's synthetic event pool\n const adjustedEvent = event;\n adjustedEvent.item = item;\n adjustedEvent.index = index;\n onClickItem(adjustedEvent);\n },\n onMouseOver: () => setActive(index),\n onMouseOut: () => setActive(undefined),\n onFocus: () => setActive(index),\n onBlur: () => setActive(undefined),\n };\n }\n\n return (\n \n {content}\n \n );\n }}\n \n \n \n );\n});\n\nList.displayName = 'List';\n\nlet ListDoc;\nif (process.env.NODE_ENV !== 'production') {\n ListDoc = require('./doc').doc(List); // eslint-disable-line global-require\n}\nconst ListWrapper = compose(\n withTheme,\n withFocus(),\n withForwardRef,\n)(ListDoc || List);\n\nexport { ListWrapper as List };\n","export { Main } from './Main';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Main = ({ ...rest }) => (\n \n);\n\nlet MainDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n MainDoc = require('./doc').doc(Main);\n}\nconst MainWrapper = MainDoc || Main;\n\nexport { MainWrapper as Main };\n","export { Markdown } from './Markdown';\n","import React from 'react';\nimport Markdown from 'markdown-to-jsx';\n\nimport { deepMerge } from '../../utils';\n\nimport { Heading } from '../Heading';\nimport { Paragraph } from '../Paragraph';\nimport { Anchor } from '../Anchor';\nimport { Image } from '../Image';\nimport { Table } from '../Table';\nimport { TableBody } from '../TableBody';\nimport { TableCell } from '../TableCell';\nimport { TableFooter } from '../TableFooter';\nimport { TableHeader } from '../TableHeader';\nimport { TableRow } from '../TableRow';\n\nconst GrommetMarkdown = ({ components, options, theme, ...rest }) => {\n const heading = [1, 2, 3, 4].reduce((obj, level) => {\n const result = { ...obj };\n result[`h${level}`] = {\n component: Heading,\n props: { level },\n };\n return result;\n }, {});\n\n const overrides = deepMerge(\n {\n a: { component: Anchor },\n img: { component: Image },\n p: { component: Paragraph },\n table: { component: Table },\n td: { component: TableCell },\n tbody: { component: TableBody },\n tfoot: { component: TableFooter },\n th: { component: TableCell },\n thead: { component: TableHeader },\n tr: { component: TableRow },\n },\n heading,\n components,\n options && options.overrides,\n );\n\n return ;\n};\n\nlet GrommetMarkdownDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n GrommetMarkdownDoc = require('./doc').doc(GrommetMarkdown);\n}\nconst GrommetMarkdownWrapper = GrommetMarkdownDoc || GrommetMarkdown;\n\nexport { GrommetMarkdownWrapper as Markdown };\n","var _extends=Object.assign||function(a){for(var b,c=1;c=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}import React from'react';import unquote from'unquote';var ATTRIBUTE_TO_JSX_PROP_MAP={accesskey:'accessKey',allowfullscreen:'allowFullScreen',allowtransparency:'allowTransparency',autocomplete:'autoComplete',autofocus:'autoFocus',autoplay:'autoPlay',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classId',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',crossorigin:'crossOrigin',enctype:'encType',for:'htmlFor',formaction:'formAction',formenctype:'formEncType',formmethod:'formMethod',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',inputmode:'inputMode',keyparams:'keyParams',keytype:'keyType',marginheight:'marginHeight',marginwidth:'marginWidth',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',novalidate:'noValidate',radiogroup:'radioGroup',readonly:'readOnly',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',usemap:'useMap'},namedCodesToUnicode={amp:'&',apos:'\\'',gt:'>',lt:'<',nbsp:'\\xA0',quot:'\\u201C'},DO_NOT_PROCESS_HTML_ELEMENTS=['style','script'],ATTR_EXTRACTOR_R=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,AUTOLINK_MAILTO_CHECK_R=/mailto:/i,BLOCK_END_R=/\\n{2,}$/,BLOCKQUOTE_R=/^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}/,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=/^ *> ?/gm,BREAK_LINE_R=/^ {2,}\\n/,BREAK_THEMATIC_R=/^(?:( *[-*_]) *){3,}(?:\\n *)+\\n/,CODE_BLOCK_FENCED_R=/^\\s*(`{3,}|~{3,}) *(\\S+)? *\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)+\\n?/,CODE_BLOCK_R=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,CODE_INLINE_R=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,CONSECUTIVE_NEWLINE_R=/^(?:\\n *)*\\n/,CR_NEWLINE_R=/\\r\\n?/g,FOOTNOTE_R=/^\\[\\^(.*)\\](:.*)\\n/,FOOTNOTE_REFERENCE_R=/^\\[\\^(.*)\\]/,FORMFEED_R=/\\f/g,GFM_TASK_R=/^\\s*?\\[(x|\\s)\\]/,HEADING_R=/^ *(#{1,6}) *([^\\n]+)\\n{0,2}/,HEADING_SETEXT_R=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,HTML_BLOCK_ELEMENT_R=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?([^>]*)\\/{0}>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1)[\\s\\S])*?)<\\/\\1>\\n*/i,HTML_CHAR_CODE_R=/&([a-z]+);/g,HTML_COMMENT_R=/^/,HTML_CUSTOM_ATTR_R=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,HTML_SELF_CLOSING_ELEMENT_R=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,INTERPOLATION_R=/^\\{.*\\}$/,LINK_AUTOLINK_BARE_URL_R=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,LINK_AUTOLINK_MAILTO_R=/^<([^ >]+@[^ >]+)>/,LINK_AUTOLINK_R=/^<([^ >]+:\\/[^ >]+)>/,LIST_ITEM_END_R=/ *\\n+$/,LIST_LOOKBEHIND_R=/(?:^|\\n)( *)$/,CAPTURE_LETTER_AFTER_HYPHEN=/-([a-z])?/gi,NP_TABLE_R=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,PARAGRAPH_R=/^((?:[^\\n]|\\n(?! *\\n))+)(?:\\n *)+\\n/,REFERENCE_IMAGE_OR_LINK=/^\\[([^\\]]*)\\]:\\s*(\\S+)\\s*(\"([^\"]*)\")?/,REFERENCE_IMAGE_R=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,REFERENCE_LINK_R=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,SQUARE_BRACKETS_R=/(\\[|\\])/g,SHOULD_RENDER_AS_BLOCK_R=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,TAB_R=/\\t/g,TABLE_SEPARATOR_R=/^ *\\| */,TABLE_TRIM_PIPES=/(^ *\\||\\| *$)/g,TABLE_CELL_END_TRIM=/ *$/,T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\\\s+[\\'\"]([\\\\s\\\\S]*?)[\\'\"])?\\\\s*',LINK_R=/^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,IMAGE_R=/^!\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,BLOCK_SYNTAXES=[BLOCKQUOTE_R,CODE_BLOCK_R,CODE_BLOCK_FENCED_R,HEADING_R,HEADING_SETEXT_R,HTML_BLOCK_ELEMENT_R,HTML_COMMENT_R,HTML_SELF_CLOSING_ELEMENT_R,LIST_ITEM_R,LIST_R,NP_TABLE_R,PARAGRAPH_R];function containsBlockSyntax(a){return BLOCK_SYNTAXES.some(function(b){return b.test(a)})}function slugify(a){return a.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,'a').replace(/[çÇ]/g,'c').replace(/[ðÐ]/g,'d').replace(/[ÈÉÊËéèêë]/g,'e').replace(/[ÏïÎîÍíÌì]/g,'i').replace(/[Ññ]/g,'n').replace(/[øØœŒÕõÔôÓóÒò]/g,'o').replace(/[ÜüÛûÚúÙù]/g,'u').replace(/[ŸÿÝý]/g,'y').replace(/[^a-z0-9- ]/gi,'').replace(/ /gi,'-').toLowerCase()}function parseTableAlignCapture(a){if(TABLE_RIGHT_ALIGN.test(a))return'right';return TABLE_CENTER_ALIGN.test(a)?'center':TABLE_LEFT_ALIGN.test(a)?'left':null}function parseTableRow(a,b,c){var d=c.inTable;c.inTable=!0;var e=b(a.trim(),c);c.inTable=d;var f=[[]];return e.forEach(function(a,b){a.type==='tableSeparator'?b!==0&&b!==e.length-1&&f.push([]):(a.type==='text'&&(e[b+1]==null||e[b+1].type==='tableSeparator')&&(a.content=a.content.replace(TABLE_CELL_END_TRIM,'')),f[f.length-1].push(a))}),f}function parseTableAlign(a){var b=a.replace(TABLE_TRIM_PIPES,'').split('|');return b.map(parseTableAlignCapture)}function parseTableCells(a,b,c){var d=a.trim().split('\\n');return d.map(function(a){return parseTableRow(a,b,c)})}function parseTable(a,b,c){c.inline=!0;var d=parseTableRow(a[1],b,c),e=parseTableAlign(a[2],b,c),f=parseTableCells(a[3],b,c);return c.inline=!1,{align:e,cells:f,header:d,type:'table'}}function getTableStyle(a,b){return a.align[b]==null?{}:{textAlign:a.align[b]}}function normalizeAttributeKey(a){var b=a.indexOf('-');return b!==-1&&a.match(HTML_CUSTOM_ATTR_R)===null&&(a=a.replace(CAPTURE_LETTER_AFTER_HYPHEN,function(a,b){return b.toUpperCase()})),a}function attributeValueToJSXPropValue(a,b){return a==='style'?b.split(/;\\s?/).reduce(function(a,b){var c=b.slice(0,b.indexOf(':')),d=c.replace(/(-[a-z])/g,function(a){return a[1].toUpperCase()});return a[d]=b.slice(c.length+1).trim(),a},{}):a==='href'?sanitizeUrl(b):(b.match(INTERPOLATION_R)&&(b=b.slice(1,b.length-1)),b==='true'||b!=='false'&&b)}function normalizeWhitespace(a){return a.replace(CR_NEWLINE_R,'\\n').replace(FORMFEED_R,'').replace(TAB_R,' ')}function parserFor(a){function b(d,e){for(var f=[],g='';d;)for(var l=0;l2?e-2:0),h=2;h1?f=c?d('span',{key:'outer'},e):d('div',{key:'outer'},e):e.length===1?(f=e[0],typeof f=='string'&&(f=d('span',{key:'outer'},f))):f=d('span',{key:'outer'}),f}function e(a){var b=a.match(ATTR_EXTRACTOR_R);return b?b.reduce(function(a,b,d){var e=b.indexOf('=');if(e!==-1){var f=normalizeAttributeKey(b.slice(0,e)).trim(),g=unquote(b.slice(e+1).trim()),h=ATTRIBUTE_TO_JSX_PROP_MAP[f]||f,i=a[h]=attributeValueToJSXPropValue(f,g);(HTML_BLOCK_ELEMENT_R.test(i)||HTML_SELF_CLOSING_ELEMENT_R.test(i))&&(a[h]=React.cloneElement(c(i.trim()),{key:d}))}else a[ATTRIBUTE_TO_JSX_PROP_MAP[b]||b]=!0;return a},{}):void 0}b=b||{},b.overrides=b.overrides||{},b.slugify=b.slugify||slugify,b.namedCodesToUnicode=b.namedCodesToUnicode?_extends({},namedCodesToUnicode,b.namedCodesToUnicode):namedCodesToUnicode;var f=b.createElement||React.createElement;if(process.env.NODE_ENV!=='production'){if(typeof a!='string')throw new Error('markdown-to-jsx: the first argument must be\\n a string');if(Object.prototype.toString.call(b.overrides)!=='[object Object]')throw new Error('markdown-to-jsx: options.overrides (second argument property) must be\\n undefined or an object literal with shape:\\n {\\n htmltagname: {\\n component: string|ReactComponent(optional),\\n props: object(optional)\\n }\\n }')}var g=[],h={},i={blockQuote:{match:blockRegex(BLOCKQUOTE_R),order:PARSE_PRIORITY_HIGH,parse:function d(a,b,c){return{content:b(a[0].replace(BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,''),c)}},react:function e(a,b,c){return d('blockquote',{key:c.key},b(a.content,c))}},breakLine:{match:anyScopeRegex(BREAK_LINE_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('br',{key:c.key})}},breakThematic:{match:blockRegex(BREAK_THEMATIC_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('hr',{key:c.key})}},codeBlock:{match:blockRegex(CODE_BLOCK_R),order:PARSE_PRIORITY_MAX,parse:function c(a){var b=a[0].replace(/^ {4}/gm,'').replace(/\\n+$/,'');return{content:b,lang:void 0}},react:function e(a,b,c){return d('pre',{key:c.key},d('code',{className:a.lang?'lang-'+a.lang:''},a.content))}},codeFenced:{match:blockRegex(CODE_BLOCK_FENCED_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:a[3],lang:a[2]||void 0,type:'codeBlock'}}},codeInline:{match:simpleInlineRegex(CODE_INLINE_R),order:PARSE_PRIORITY_LOW,parse:function b(a){return{content:a[2]}},react:function e(a,b,c){return d('code',{key:c.key},a.content)}},footnote:{match:blockRegex(FOOTNOTE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return g.push({footnote:a[2],identifier:a[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(FOOTNOTE_REFERENCE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{content:a[1],target:'#'+a[1]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target)},d('sup',{key:c.key},a.content))}},gfmTask:{match:inlineRegex(GFM_TASK_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{completed:a[1].toLowerCase()==='x'}},react:function e(a,b,c){return d('input',{checked:a.completed,key:c.key,readOnly:!0,type:'checkbox'})}},heading:{match:blockRegex(HEADING_R),order:PARSE_PRIORITY_HIGH,parse:function e(a,c,d){return{content:parseInline(c,a[2],d),id:b.slugify(a[2]),level:a[1].length}},react:function f(a,b,c){var e='h'+a.level;return d(e,{id:a.id,key:c.key},b(a.content,c))}},headingSetext:{match:blockRegex(HEADING_SETEXT_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:parseInline(b,a[1],c),level:a[2]==='='?1:2,type:'heading'}}},htmlBlock:{match:anyScopeRegex(HTML_BLOCK_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function l(a,b,c){var d=a[3].match(HTML_LEFT_TRIM_AMOUNT_R),f=d[1],g=new RegExp('^'+f,'gm'),h=a[3].replace(g,''),i=containsBlockSyntax(h)?parseBlock:parseInline,j=a[1].toLowerCase(),k=DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(j)!==-1;return{attrs:e(a[2]),content:k?a[3]:i(b,h,c),noInnerParse:k,tag:k?j:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({key:c.key},a.attrs),a.noInnerParse?a.content:b(a.content,c))}},htmlComment:{match:anyScopeRegex(HTML_COMMENT_R),order:PARSE_PRIORITY_HIGH,parse:function a(){return{}},react:renderNothing},htmlSelfClosing:{match:anyScopeRegex(HTML_SELF_CLOSING_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{attrs:e(a[2]||''),tag:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({},a.attrs,{key:c.key}))}},image:{match:simpleInlineRegex(IMAGE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{alt:a[1],target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt||void 0,title:a.title||void 0,src:sanitizeUrl(a.target)})}},link:{match:inlineRegex(LINK_R,!1),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:parseSimpleInline(b,a[1],c),target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target),title:a.title},b(a.content,c))}},linkAngleBraceStyleDetector:{match:inlineRegex(LINK_AUTOLINK_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],type:'link'}}},linkBareUrlDetector:{match:inlineRegex(LINK_AUTOLINK_BARE_URL_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],title:void 0,type:'link'}}},linkMailtoDetector:{match:inlineRegex(LINK_AUTOLINK_MAILTO_R),order:PARSE_PRIORITY_MAX,parse:function d(a){var b=a[1],c=a[1];return AUTOLINK_MAILTO_CHECK_R.test(c)||(c='mailto:'+c),{content:[{content:b.replace('mailto:',''),type:'text'}],target:c,type:'link'}}},list:{match:function f(a,b,c){var d=LIST_LOOKBEHIND_R.exec(c),e=b._list||!b.inline;return d&&e?(a=d[1]+a,LIST_R.exec(a)):null},order:PARSE_PRIORITY_HIGH,parse:function j(a,b,c){var d=a[2],e=d.length>1,f=e?+d:void 0,g=a[0].replace(BLOCK_END_R,'\\n').match(LIST_ITEM_R),h=!1,i=g.map(function(a,d){var e=LIST_ITEM_PREFIX_R.exec(a)[0].length,f=new RegExp('^ {1,'+e+'}','gm'),i=a.replace(f,'').replace(LIST_ITEM_PREFIX_R,''),j=d===g.length-1,k=i.indexOf('\\n\\n')!==-1,l=k||j&&h;h=l;var m=c.inline,n=c._list;c._list=!0;var o;l?(c.inline=!1,o=i.replace(LIST_ITEM_END_R,'\\n\\n')):(c.inline=!0,o=i.replace(LIST_ITEM_END_R,''));var p=b(o,c);return c.inline=m,c._list=n,p});return{items:i,ordered:e,start:f}},react:function f(a,b,c){var e=a.ordered?'ol':'ul';return d(e,{key:c.key,start:a.start},a.items.map(function(a,e){return d('li',{key:e},b(a,c))}))}},newlineCoalescer:{match:blockRegex(CONSECUTIVE_NEWLINE_R),order:PARSE_PRIORITY_LOW,parse:captureNothing,react:function a(){return'\\n'}},paragraph:{match:blockRegex(PARAGRAPH_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('p',{key:c.key},b(a.content,c))}},ref:{match:inlineRegex(REFERENCE_IMAGE_OR_LINK),order:PARSE_PRIORITY_MAX,parse:function b(a){return h[a[1]]={target:a[2],title:a[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(REFERENCE_IMAGE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{alt:a[1]||void 0,ref:a[2]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt,src:sanitizeUrl(h[a.ref].target),title:h[a.ref].title})}},refLink:{match:inlineRegex(REFERENCE_LINK_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:b(a[1],c),fallbackContent:b(a[0].replace(SQUARE_BRACKETS_R,'\\\\$1'),c),ref:a[2]}},react:function e(a,b,c){return h[a.ref]?d('a',{key:c.key,href:sanitizeUrl(h[a.ref].target),title:h[a.ref].title},b(a.content,c)):d('span',{key:c.key},b(a.fallbackContent,c))}},table:{match:blockRegex(NP_TABLE_R),order:PARSE_PRIORITY_HIGH,parse:parseTable,react:function f(a,b,e){return d('table',{key:e.key},d('thead',null,d('tr',null,a.header.map(function(c,f){return d('th',{key:f,style:getTableStyle(a,f)},b(c,e))}))),d('tbody',null,a.cells.map(function(c,f){return d('tr',{key:f},c.map(function(f,g){return d('td',{key:g,style:getTableStyle(a,g)},b(f,e))}))})))}},tableSeparator:{match:function c(a,b){return b.inTable?TABLE_SEPARATOR_R.exec(a):null},order:PARSE_PRIORITY_HIGH,parse:function a(){return{type:'tableSeparator'}},react:function a(){return' | '}},text:{match:anyScopeRegex(TEXT_PLAIN_R),order:PARSE_PRIORITY_MIN,parse:function c(a){return{content:a[0].replace(HTML_CHAR_CODE_R,function(a,c){return b.namedCodesToUnicode[c]?b.namedCodesToUnicode[c]:a})}},react:function b(a){return a.content}},textBolded:{match:simpleInlineRegex(TEXT_BOLD_R),order:PARSE_PRIORITY_MED,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('strong',{key:c.key},b(a.content,c))}},textEmphasized:{match:simpleInlineRegex(TEXT_EMPHASIZED_R),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('em',{key:c.key},b(a.content,c))}},textEscaped:{match:simpleInlineRegex(TEXT_ESCAPED_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{content:a[1],type:'text'}}},textStrikethroughed:{match:simpleInlineRegex(TEXT_STRIKETHROUGHED_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('del',{key:c.key},b(a.content,c))}}},j=parserFor(i),k=reactFor(ruleOutput(i)),l=c(a);return g.length&&l.props.children.push(d('footer',{key:'footer'},g.map(function(a){return d('div',{id:a.identifier,key:a.identifier},a.identifier,k(j(a.footnote,{inline:!0})))}))),l}export default function Markdown(a){var b=a.children,c=a.options,d=_objectWithoutProperties(a,['children','options']);return React.cloneElement(compiler(b,c),d)}if(process.env.NODE_ENV!=='production'){var PropTypes=require('prop-types');Markdown.propTypes={children:PropTypes.string.isRequired,options:PropTypes.object}}\n\n//# sourceMappingURL=esm.js.map","import React from 'react';\n\nimport { StyledParagraph } from './StyledParagraph';\n\nconst Paragraph = ({ color, fill, ...rest }) => (\n \n);\n\nlet ParagraphDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n ParagraphDoc = require('./doc').doc(Paragraph);\n}\nconst ParagraphWrapper = ParagraphDoc || Paragraph;\n\nexport { ParagraphWrapper as Paragraph };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst colorStyle = css`\n color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst sizeStyle = props => {\n const size = props.size || 'medium';\n const data = props.theme.paragraph[size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n max-width: ${props.fillProp ? 'none' : data.maxWidth};\n `;\n};\n\nconst TEXT_ALIGN_MAP = {\n center: 'center',\n end: 'right',\n start: 'left',\n};\n\nconst textAlignStyle = css`\n text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst StyledParagraph = styled.p`\n ${genericStyles}\n ${props => sizeStyle(props)}\n ${props => props.textAlign && textAlignStyle}\n ${props => props.colorProp && colorStyle}\n\n ${props => props.theme.paragraph && props.theme.paragraph.extend}\n`;\n\nStyledParagraph.defaultProps = {};\nObject.setPrototypeOf(StyledParagraph.defaultProps, defaultProps);\n\nexport { StyledParagraph };\n","export { MaskedInput } from './MaskedInput';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { ThemeContext } from '../../contexts';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { Keyboard } from '../Keyboard';\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport {\n StyledMaskedInput,\n StyledMaskedInputContainer,\n} from './StyledMaskedInput';\n\nconst parseValue = (mask, value) => {\n // break the value up into mask parts\n const valueParts = []; // { part, beginIndex, endIndex }\n let valueIndex = 0;\n let maskIndex = 0;\n while (\n value !== undefined &&\n valueIndex < value.length &&\n maskIndex < mask.length\n ) {\n const item = mask[maskIndex];\n let found;\n if (item.fixed) {\n const { length } = item.fixed;\n valueParts.push({\n part: item.fixed,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n const part = value.slice(valueIndex, valueIndex + length);\n if (part === item.fixed) {\n valueIndex += length;\n }\n maskIndex += 1;\n found = true;\n } else if (item.options) {\n // reverse assuming larger is later\n found = item.options\n .slice(0)\n .reverse()\n // eslint-disable-next-line no-loop-func\n .some(option => {\n const { length } = option;\n const part = value.slice(valueIndex, valueIndex + length);\n if (part === option) {\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n return true;\n }\n return false;\n });\n }\n if (!found) {\n if (item.regexp) {\n const minLength =\n (Array.isArray(item.length) && item.length[0]) || item.length || 1;\n const maxLength =\n (Array.isArray(item.length) && item.length[1]) ||\n item.length ||\n value.length - valueIndex;\n let length = maxLength;\n while (!found && length >= minLength) {\n const part = value.slice(valueIndex, valueIndex + length);\n if (item.regexp.test(part)) {\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n found = true;\n }\n length -= 1;\n }\n if (!found) {\n valueIndex = value.length;\n }\n } else {\n const length = Array.isArray(item.length)\n ? item.length[1]\n : item.length || value.length - valueIndex;\n const part = value.slice(valueIndex, valueIndex + length);\n valueParts.push({\n part,\n beginIndex: valueIndex,\n endIndex: valueIndex + length - 1,\n });\n valueIndex += length;\n maskIndex += 1;\n }\n }\n }\n return valueParts;\n};\n\nclass MaskedInput extends Component {\n static contextType = ThemeContext;\n\n static defaultProps = {\n mask: [],\n };\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { mask, value } = nextProps;\n const { priorMask, priorValue } = prevState;\n if (priorMask !== mask || priorValue !== value) {\n const valueParts = parseValue(mask, value);\n return { priorMask: mask, priorValue: value, valueParts };\n }\n return null;\n }\n\n state = {};\n\n inputRef = React.createRef();\n\n dropRef = React.createRef();\n\n componentDidUpdate() {\n const { focus } = this.props;\n if (focus) {\n this.locateCaret();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.caretTimeout);\n clearTimeout(this.blurTimeout);\n }\n\n locateCaret = () => {\n // leave time for caret to be placed after receiving focus\n clearTimeout(this.caretTimeout);\n this.caretTimeout = setTimeout(() => {\n const { mask } = this.props;\n const { activeMaskIndex, valueParts } = this.state;\n if (this.inputRef.current) {\n // determine which mask element the caret is at\n const caretIndex = this.inputRef.current.selectionStart;\n let maskIndex;\n valueParts.some((part, index) => {\n if (part.beginIndex <= caretIndex && part.endIndex >= caretIndex) {\n maskIndex = index;\n return true;\n }\n return false;\n });\n if (maskIndex === undefined && valueParts.length < mask.length) {\n maskIndex = valueParts.length; // first unused one\n }\n if (maskIndex && mask[maskIndex].fixed) {\n maskIndex -= 1; // fixed mask parts are never \"active\"\n }\n if (maskIndex !== activeMaskIndex) {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n activeMaskIndex: maskIndex,\n activeOptionIndex: -1,\n showDrop: maskIndex >= 0 && mask[maskIndex].options && true,\n });\n }\n }\n }, 10); // 10ms empirically chosen\n };\n\n onFocus = event => {\n const { onFocus } = this.props;\n this.locateCaret();\n if (onFocus) {\n onFocus(event);\n }\n };\n\n onBlur = event => {\n // delay so we don't remove the drop before Button events can be processed\n const { onBlur } = this.props;\n clearTimeout(this.blurTimeout);\n this.blurTimeout = setTimeout(() => {\n const { showDrop } = this.state;\n if (\n showDrop &&\n this.dropRef.current &&\n document.activeElement !== this.inputRef.current &&\n !this.dropRef.current.parentNode.contains(document.activeElement)\n ) {\n this.setState({ activeMaskIndex: undefined, showDrop: false });\n }\n }, 10); // 10ms empirically chosen\n if (onBlur) {\n onBlur(event);\n }\n };\n\n setValue = nextValue => {\n // Calling set value function directly on input because React library\n // overrides setter `event.target.value =` and loses original event\n // target fidelity.\n // https://stackoverflow.com/a/46012210 &&\n // https://github.com/grommet/grommet/pull/3171#discussion_r296415239\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n 'value',\n ).set;\n nativeInputValueSetter.call(this.inputRef.current, nextValue);\n const event = new Event('input', { bubbles: true });\n this.inputRef.current.dispatchEvent(event);\n };\n\n // This could be due to a paste or as the user is typing.\n onChange = event => {\n const { onChange, mask } = this.props;\n const {\n target: { value },\n } = event;\n // Align with the mask.\n const valueParts = parseValue(mask, value);\n const nextValue = valueParts.map(part => part.part).join('');\n if (value === nextValue) {\n if (onChange) {\n onChange(event);\n }\n } else {\n this.setValue(nextValue);\n }\n };\n\n onOption = option => () => {\n const { mask } = this.props;\n const { activeMaskIndex, valueParts } = this.state;\n const nextValueParts = [...valueParts];\n nextValueParts[activeMaskIndex] = { part: option };\n // add any fixed parts that follow\n let index = activeMaskIndex + 1;\n while (index < mask.length && !nextValueParts[index] && mask[index].fixed) {\n nextValueParts[index] = { part: mask[index].fixed };\n index += 1;\n }\n const nextValue = nextValueParts.map(part => part.part).join('');\n this.setValue(nextValue);\n // restore focus to input\n this.inputRef.current.focus();\n };\n\n onNextOption = event => {\n const { mask } = this.props;\n const { activeMaskIndex, activeOptionIndex } = this.state;\n const item = mask[activeMaskIndex];\n if (item && item.options) {\n event.preventDefault();\n const index = Math.min(activeOptionIndex + 1, item.options.length - 1);\n this.setState({ activeOptionIndex: index });\n }\n };\n\n onPreviousOption = event => {\n const { mask } = this.props;\n const { activeMaskIndex, activeOptionIndex } = this.state;\n if (activeMaskIndex >= 0 && mask[activeMaskIndex].options) {\n event.preventDefault();\n const index = Math.max(activeOptionIndex - 1, 0);\n this.setState({ activeOptionIndex: index });\n }\n };\n\n onSelectOption = event => {\n const { mask } = this.props;\n const { activeMaskIndex, activeOptionIndex } = this.state;\n if (activeMaskIndex >= 0 && activeOptionIndex >= 0) {\n event.preventDefault();\n const option = mask[activeMaskIndex].options[activeOptionIndex];\n this.onOption(option)();\n }\n };\n\n onEsc = event => {\n const { showDrop } = this.state;\n if (showDrop) {\n // we have to stop both synthetic events and native events\n // drop and layer should not close by pressing esc on this input\n event.stopPropagation();\n event.nativeEvent.stopImmediatePropagation();\n this.setState({ showDrop: false });\n }\n };\n\n renderPlaceholder = () => {\n const { mask } = this.props;\n return mask.map(item => item.placeholder || item.fixed).join('');\n };\n\n render() {\n const {\n defaultValue,\n forwardRef,\n id,\n placeholder,\n plain,\n mask,\n value,\n onChange,\n onKeyDown,\n theme: propsTheme,\n ...rest\n } = this.props;\n const theme = this.context || propsTheme;\n const { activeMaskIndex, activeOptionIndex, showDrop } = this.state;\n\n return (\n \n \n {\n this.inputRef.current = node;\n if (forwardRef) {\n if (typeof forwardRef === 'object') {\n forwardRef.current = node;\n } else {\n forwardRef(node);\n }\n }\n }}\n autoComplete=\"off\"\n plain={plain}\n placeholder={placeholder || this.renderPlaceholder()}\n {...rest}\n defaultValue={defaultValue}\n value={value}\n theme={theme}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.onChange}\n />\n \n {showDrop && (\n \n \n {mask[activeMaskIndex].options.map((option, index) => (\n \n \n this.setState({ activeOptionIndex: index })\n }\n onFocus={() => {}}\n active={index === activeOptionIndex}\n hoverIndicator=\"background\"\n >\n \n {option}\n \n \n \n ))}\n \n \n )}\n \n );\n }\n}\n\nObject.setPrototypeOf(MaskedInput.defaultProps, defaultProps);\n\nlet MaskedInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n MaskedInputDoc = require('./doc').doc(MaskedInput);\n}\nconst MaskedInputWrapper = compose(\n withFocus({ focusWithMouse: true }),\n withForwardRef,\n)(MaskedInputDoc || MaskedInput);\n\nexport { MaskedInputWrapper as MaskedInput };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, inputStyle, placeholderStyle } from '../../utils';\n\nconst sizeStyle = props => {\n const data = props.theme.text[props.size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst plainStyle = css`\n border: none;\n`;\n\nexport const StyledMaskedInput = styled.input`\n ${inputStyle} width: 100%;\n\n ${props => props.size && sizeStyle(props)} ${props =>\n props.plain && plainStyle}\n\n ${placeholderStyle}\n\n &::-moz-focus-inner {\n border: none;\n outline: none;\n }\n\n ${props => props.focus && !props.plain && focusStyle};\n ${props => props.theme.maskedInput && props.theme.maskedInput.extend};\n`;\n\nexport const StyledMaskedInputContainer = styled.div`\n position: relative;\n width: 100%;\n`;\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport PropTypes from 'react-desc/lib/PropTypes';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { DropButton } from '../DropButton';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { normalizeColor } from '../../utils';\n\nconst ContainerBox = styled(Box)`\n max-height: inherit;\n\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n width: 100%;\n }\n\n ${props => props.theme.menu.extend};\n`;\n\n/* Notes on keyboard interactivity (based on W3) // For details reference: https://www.w3.org/TR/wai-aria-practices/#menu\n\nTo open menu when menu button is focused:\n- Space/Enter/Up arrow/Down arrow will open menu\n\nTo navigate within menu:\n- Up/down arrow keys can be used and will loop through options\n(keeping focus within the Menu)\n- Tab can be used, but once the last menu item is reached, Tab will close the \nMenu and continue through page content.\n\nTo close the menu:\n- Tabbing beyond the first or last menu item.\n- Esc will close the menu\n- Select a menu item\n\nTo make a selection:\n- Enter key is pressed.\n- Space is pressed.\n*/\n\nconst Menu = props => {\n const {\n a11yTitle,\n children,\n disabled,\n dropAlign,\n dropBackground,\n dropProps,\n dropTarget,\n forwardRef,\n justifyContent,\n icon,\n items,\n label,\n messages,\n onKeyDown,\n open,\n plain,\n size,\n theme,\n ...rest\n } = props;\n const MenuIcon = theme.menu.icons.down;\n const iconColor = normalizeColor('control', theme);\n const align = dropProps.align || dropAlign;\n let controlButtonIndex;\n if (align.top === 'top') {\n controlButtonIndex = -1;\n } else if (align.bottom === 'bottom') {\n controlButtonIndex = items.length;\n } else {\n controlButtonIndex = undefined;\n }\n const buttonRefs = {};\n const constants = {\n none: 'none',\n tab: 9,\n // Menu control button included on top of menu items\n controlTop: align.top === 'top' || undefined,\n // Menu control button included on the bottom of menu items\n controlBottom: align.bottom === 'bottom' || undefined,\n controlButtonIndex,\n };\n\n const [activeItemIndex, setActiveItemIndex] = useState(constants.none);\n const [isOpen, setOpen] = useState(open || false);\n\n const onDropClose = () => {\n setActiveItemIndex(constants.none);\n setOpen(false);\n };\n\n const onDropOpen = () => {\n setOpen(true);\n };\n\n const onSelectMenuItem = event => {\n if (isOpen) {\n if (activeItemIndex >= 0) {\n event.preventDefault();\n event.stopPropagation();\n buttonRefs[activeItemIndex].click();\n }\n } else {\n onDropOpen();\n }\n };\n\n const isTab = event =>\n event.keyCode === constants.tab || event.which === constants.tab;\n\n const onNextMenuItem = event => {\n event.preventDefault();\n if (!isOpen) {\n onDropOpen();\n } else if (\n isTab(event) &&\n ((!constants.controlBottom && activeItemIndex === items.length - 1) ||\n (constants.controlBottom && activeItemIndex === controlButtonIndex))\n ) {\n // User has reached end of the menu, this tab will close\n // the menu drop because there are no more \"next items\" to access\n onDropClose();\n } else {\n let index;\n if (\n // This checks if the user has reached the end of the menu.\n // In the case the the menu control button is located at the\n // bottom of the menu, it checks if the user has reached the button.\n // Otherwise, it checks if the user is at the last menu item.\n (constants.controlBottom && activeItemIndex === controlButtonIndex) ||\n (!constants.controlBottom && activeItemIndex === items.length - 1) ||\n activeItemIndex === constants.none\n ) {\n // place focus on the first menu item\n index = 0;\n } else {\n index = activeItemIndex + 1;\n }\n setActiveItemIndex(index);\n buttonRefs[index].focus();\n }\n };\n\n const onPreviousMenuItem = event => {\n event.preventDefault();\n if (!isOpen) {\n onDropOpen();\n } else if (\n isTab(event) &&\n ((constants.controlTop && activeItemIndex === controlButtonIndex) ||\n (!constants.controlTop && activeItemIndex - 1 < 0))\n ) {\n // User has reached beginning of the menu, this tab will close\n // the menu drop because there are no more \"previous items\" to access\n onDropClose();\n } else {\n let index;\n if (activeItemIndex - 1 < 0) {\n if (\n constants.controlTop &&\n activeItemIndex - 1 === controlButtonIndex\n ) {\n index = items.length;\n } else {\n index = items.length - 1;\n }\n } else {\n index = activeItemIndex - 1;\n }\n setActiveItemIndex(index);\n buttonRefs[index].focus();\n }\n };\n\n const content = children || (\n \n {label}\n {icon !== false\n ? (icon !== true && icon) || \n : null}\n \n );\n\n const controlMirror = (\n \n {\n // make it accessible at the end of all menu items\n buttonRefs[items.length] = r;\n }}\n a11yTitle={a11yTitle || messages.closeMenu || 'Close Menu'}\n active={activeItemIndex === controlButtonIndex}\n focusIndicator={false}\n hoverIndicator=\"background\"\n plain={plain}\n onClick={onDropClose}\n onFocus={() => setActiveItemIndex(controlButtonIndex)}\n // On first tab into menu, the control button should not\n // be able to receive tab focus because the focus should\n // go to the first menu item instead.\n tabIndex={activeItemIndex === constants.none ? '-1' : undefined}\n >\n {typeof content === 'function'\n ? () => content({ ...props, drop: true })\n : content}\n \n \n );\n\n return (\n \n \n event.shiftKey ? onPreviousMenuItem(event) : onNextMenuItem(event)\n }\n onEnter={onSelectMenuItem}\n >\n \n {align.top === 'top' ? controlMirror : undefined}\n \n {items.map((item, index) => (\n // eslint-disable-next-line react/no-array-index-key\n \n {\n buttonRefs[index] = r;\n }}\n onFocus={() => setActiveItemIndex(index)}\n active={activeItemIndex === index}\n hoverIndicator=\"background\"\n focusIndicator={false}\n {...{ ...item, icon: undefined, label: undefined }}\n onClick={(...args) => {\n if (item.onClick) {\n item.onClick(...args);\n }\n if (item.close !== false) {\n onDropClose();\n }\n }}\n >\n \n {item.reverse && item.label}\n {item.icon}\n {!item.reverse && item.label}\n \n \n \n ))}\n \n {align.bottom === 'bottom' ? controlMirror : undefined}\n \n \n }\n >\n {content}\n \n \n );\n};\n\nMenu.propTypes = {\n dropAlign: PropTypes.shape({\n top: PropTypes.string,\n left: PropTypes.string,\n }),\n dropProps: PropTypes.shape({}),\n items: PropTypes.arrayOf({}),\n messages: PropTypes.shape({\n openMenu: PropTypes.string,\n closeMenu: PropTypes.string,\n }),\n justifyContent: PropTypes.string,\n};\n\nMenu.defaultProps = {\n dropAlign: {\n top: 'top',\n left: 'left',\n },\n dropProps: {},\n items: [],\n messages: {\n openMenu: 'Open Menu',\n closeMenu: 'Close Menu',\n },\n justifyContent: 'start',\n};\n\nMenu.displayName = 'Menu';\n\nObject.setPrototypeOf(Menu.defaultProps, defaultProps);\n\nlet MenuDoc;\nif (process.env.NODE_ENV !== 'production') {\n MenuDoc = require('./doc').doc(Menu); // eslint-disable-line global-require\n}\nconst MenuWrapper = compose(withTheme, withForwardRef)(MenuDoc || Menu);\n\nexport { MenuWrapper as Menu };\n","import React, { useMemo } from 'react';\n\nimport { Bar } from './Bar';\nimport { Circle } from './Circle';\n\nconst deriveMax = values => {\n let max = 100;\n if (values && values.length > 1) {\n max = 0;\n values.forEach(v => {\n max += v.value;\n });\n }\n return max;\n};\n\nconst Meter = ({\n background = { color: 'light-2', opacity: 'medium' },\n size = 'medium',\n thickness = 'medium',\n type = 'bar',\n values,\n ...rest\n}) => {\n const memoizedMax = useMemo(() => deriveMax(values), [values]);\n let content;\n if (type === 'bar') {\n content = (\n \n );\n } else if (type === 'circle') {\n content = (\n \n );\n }\n return content;\n};\n\nlet MeterDoc;\nif (process.env.NODE_ENV !== 'production') {\n MeterDoc = require('./doc').doc(Meter); // eslint-disable-line global-require\n}\nconst MeterWrapper = MeterDoc || Meter;\n\nexport { MeterWrapper as Meter };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { parseMetricToNum } from '../../utils';\n\nimport { StyledMeter } from './StyledMeter';\nimport { strokeProps, defaultColor } from './utils';\n\nconst Bar = props => {\n const {\n background,\n max,\n round,\n size,\n theme,\n thickness,\n values,\n ...rest\n } = props;\n const width =\n size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);\n const height = parseMetricToNum(\n theme.global.edgeSize[thickness] || thickness,\n );\n // account for the round cap, if any\n const capOffset = round ? height / 2 : 0;\n const mid = height / 2;\n const someHighlight = (values || []).some(v => v.highlight);\n\n let start = capOffset;\n const paths = (values || [])\n .filter(v => v.value > 0)\n .map((valueArg, index) => {\n const { color, highlight, label, onHover, value, ...pathRest } = valueArg;\n\n const key = `p-${index}`;\n const delta = (value * (width - 2 * capOffset)) / max;\n const d = `M ${start},${mid} L ${start + delta},${mid}`;\n const colorName =\n color || defaultColor(index, theme, values ? values.length : 0);\n let hoverProps;\n if (onHover) {\n hoverProps = {\n onMouseOver: () => onHover(true),\n onMouseLeave: () => onHover(false),\n };\n }\n start += delta;\n\n return (\n \n );\n })\n .reverse(); // reverse so the caps looks right\n\n return (\n \n \n {paths}\n \n );\n};\n\nBar.defaultProps = {\n background: 'light-1',\n};\n\nObject.setPrototypeOf(Bar.defaultProps, defaultProps);\n\nconst BarWrapper = compose(withTheme)(Bar);\n\nexport { BarWrapper as Bar };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { arcCommands, parseMetricToNum, translateEndAngle } from '../../utils';\n\nimport { StyledMeter } from './StyledMeter';\nimport { strokeProps, defaultColor } from './utils';\n\nconst Circle = props => {\n const {\n background,\n max,\n round,\n size,\n theme,\n thickness,\n values,\n ...rest\n } = props;\n const width =\n size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);\n const height = parseMetricToNum(\n theme.global.edgeSize[thickness] || thickness,\n );\n const mid = width / 2;\n const radius = width / 2 - height / 2;\n const anglePer = 360 / max;\n const someHighlight = (values || []).some(v => v.highlight);\n\n let startValue = 0;\n let startAngle = 0;\n const paths = [];\n let pathCaps = [];\n (values || [])\n .filter(v => v.value > 0)\n .forEach((valueArg, index) => {\n const { color, highlight, label, onHover, value, ...pathRest } = valueArg;\n const key = `p-${index}`;\n const colorName =\n color || defaultColor(index, theme, values ? values.length : 0);\n\n let endAngle;\n if (startValue + value >= max) {\n endAngle = 360;\n } else {\n endAngle = Math.min(\n 360,\n translateEndAngle(startAngle, anglePer, value),\n );\n }\n let hoverProps;\n if (onHover) {\n hoverProps = {\n onMouseOver: () => onHover(true),\n onMouseLeave: () => onHover(false),\n };\n }\n const stroke = strokeProps(\n someHighlight && !highlight ? background : colorName,\n theme,\n );\n\n if (round) {\n const d1 = arcCommands(\n width / 2,\n width / 2,\n radius,\n startAngle,\n endAngle,\n );\n paths.unshift(\n ,\n );\n\n // To handle situations where the last values are small, redraw\n // a dot at the end. Give just a bit of angle to avoid anti-aliasing\n // leakage around the edge.\n const d2 = arcCommands(\n width / 2,\n width / 2,\n radius,\n endAngle - 0.5,\n endAngle,\n );\n const pathCap = (\n \n );\n // If we are on a large enough path to not need re-drawing previous\n // ones, clear the pathCaps we've collected already.\n if (endAngle - startAngle > 2 * anglePer) {\n pathCaps = [];\n }\n pathCaps.unshift(pathCap);\n } else {\n const d = arcCommands(\n width / 2,\n width / 2,\n radius,\n startAngle,\n endAngle,\n );\n paths.push(\n ,\n );\n }\n startValue += value;\n startAngle = endAngle;\n });\n\n return (\n \n \n {paths}\n {pathCaps}\n \n );\n};\n\nCircle.defaultProps = {};\nObject.setPrototypeOf(Circle.defaultProps, defaultProps);\n\nconst CircleWrapper = compose(withTheme)(Circle);\n\nexport { CircleWrapper as Circle };\n","export { Nav } from './Nav';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Nav = ({ ...rest }) => (\n \n);\n\nlet NavDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n NavDoc = require('./doc').doc(Nav);\n}\nconst NavWrapper = NavDoc || Nav;\n\nexport { NavWrapper as Nav };\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, removeUndefined } from '../../utils';\nimport { Box } from '../Box';\nimport { withForwardRef } from '../hocs';\n\nimport {\n StyledRadioButton,\n StyledRadioButtonContainer,\n StyledRadioButtonIcon,\n StyledRadioButtonInput,\n StyledRadioButtonBox,\n} from './StyledRadioButton';\n\nconst RadioButton = ({\n checked,\n children,\n disabled,\n focus,\n forwardRef,\n id,\n label,\n name,\n onChange,\n theme,\n ...rest\n}) => {\n const [hover, setHover] = useState();\n const normalizedLabel =\n typeof label === 'string' ? {label} : label;\n\n const Icon = theme.radioButton.icons.circle;\n let borderColor = normalizeColor(theme.radioButton.border.color, theme);\n if (checked) {\n borderColor = normalizeColor(theme.radioButton.color || 'control', theme);\n }\n\n return (\n {\n // prevents clicking on the label trigging the event twice\n // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n if (event.target.type !== 'radio') {\n event.stopPropagation();\n }\n }}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n >\n \n \n {children ? (\n children({ checked, hover })\n ) : (\n \n {checked &&\n (Icon ? (\n \n ) : (\n \n \n \n ))}\n \n )}\n \n {normalizedLabel}\n \n );\n};\n\nRadioButton.defaultProps = {};\nObject.setPrototypeOf(RadioButton.defaultProps, defaultProps);\n\nlet RadioButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RadioButtonDoc = require('./doc').doc(RadioButton);\n}\nconst RadioButtonWrapper = compose(\n withTheme,\n withForwardRef,\n)(RadioButtonDoc || RadioButton);\n\nexport { RadioButtonWrapper as RadioButton };\n","import styled from 'styled-components';\n\nimport { focusStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n opacity: 0.5;\n cursor: default;\n`;\n\nconst StyledRadioButtonContainer = styled.label`\n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n width: fit-content;\n ${props => props.disabled && disabledStyle} ${props =>\n !props.disabled &&\n 'cursor: pointer;'}\n\n :hover input:not([disabled]) + div,\n :hover input:not([disabled]) + span {\n border-color: ${props =>\n normalizeColor(props.theme.radioButton.hover.border.color, props.theme)};\n }\n\n ${props => props.theme.radioButton.extend};\n`;\n\nStyledRadioButtonContainer.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonContainer.defaultProps, defaultProps);\n\nconst StyledRadioButtonInput = styled.input`\n opacity: 0;\n -moz-appearance: none;\n width: 0;\n height: 0;\n margin: 0;\n ${props => !props.disabled && 'cursor: pointer;'};\n`;\n\nStyledRadioButtonInput.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonInput.defaultProps, defaultProps);\n\nconst StyledRadioButtonIcon = styled.svg`\n box-sizing: border-box;\n width: ${props =>\n props.theme.radioButton.icon.size || props.theme.radioButton.size};\n height: ${props =>\n props.theme.radioButton.icon.size || props.theme.radioButton.size};\n fill: ${props =>\n normalizeColor(\n props.theme.radioButton.check.color || 'control',\n props.theme,\n )};\n ${props => props.theme.radioButton.icon.extend};\n`;\n\nStyledRadioButtonIcon.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonIcon.defaultProps, defaultProps);\n\nconst StyledRadioButtonBox = styled.div`\n ${props => props.focus && focusStyle};\n ${props => props.theme.radioButton.check.extend};\n`;\n\nStyledRadioButtonBox.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonBox.defaultProps, defaultProps);\n\nconst StyledRadioButton = styled.div`\n ${props => props.theme.radioButton && props.theme.radioButton.extend};\n`;\n\nStyledRadioButton.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButton.defaultProps, defaultProps);\n\nexport {\n StyledRadioButtonContainer,\n StyledRadioButtonInput,\n StyledRadioButtonIcon,\n StyledRadioButtonBox,\n StyledRadioButton,\n};\n","export { RadioButtonGroup } from './RadioButtonGroup';\n","import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\nimport { RadioButton } from '../RadioButton';\n\nconst RadioButtonGroup = forwardRef(\n (\n {\n children,\n gap = 'small',\n name,\n onChange,\n options: optionsProp,\n value: valueProp,\n ...rest\n },\n ref,\n ) => {\n // normalize options to always use an object\n const options = useMemo(\n () =>\n optionsProp.map(o =>\n typeof o === 'string'\n ? { id: rest.id ? `${rest.id}-${o}` : o, label: o, value: o }\n : o,\n ),\n [optionsProp, rest.id],\n );\n const [value, setValue] = useState(valueProp);\n useEffect(() => setValue(valueProp), [valueProp]);\n const [focus, setFocus] = useState();\n\n const optionRefs = useRef([]);\n\n const valueIndex = React.useMemo(() => {\n let result;\n options.some((option, index) => {\n if (option.value === value) {\n result = index;\n return true;\n }\n return false;\n });\n return result;\n }, [options, value]);\n\n useEffect(() => {\n if (focus && valueIndex >= 0) optionRefs.current[valueIndex].focus();\n }, [focus, valueIndex]);\n\n const onNext = () => {\n if (valueIndex !== undefined && valueIndex < options.length - 1) {\n const nextIndex = valueIndex + 1;\n const nextValue = options[nextIndex].value;\n setValue(nextValue);\n if (onChange) {\n onChange({ target: { value: nextValue } });\n }\n }\n };\n\n const onPrevious = () => {\n if (valueIndex > 0) {\n const nextIndex = valueIndex - 1;\n const nextValue = options[nextIndex].value;\n setValue(nextValue);\n if (onChange) {\n onChange({ target: { value: nextValue } });\n }\n }\n };\n\n const onFocus = () => {\n // Delay just a wee bit so Chrome doesn't missing turning the button on.\n // Chrome behaves differently in that focus is given to radio buttons\n // when the user selects one, unlike Safari and Firefox.\n setTimeout(() => !focus && setFocus(true), 1);\n };\n\n const onBlur = () => focus && setFocus(false);\n\n return (\n \n \n {options.map(({ disabled, id, label, value: optionValue }, index) => (\n {\n optionRefs.current[index] = aRef;\n }}\n key={optionValue}\n name={name}\n label={!children ? label : undefined}\n disabled={disabled}\n checked={optionValue === value}\n focus={\n focus &&\n (optionValue === value || (value === undefined && !index))\n }\n id={id}\n value={optionValue}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n >\n {children ? state => children(optionsProp[index], state) : null}\n \n ))}\n \n \n );\n },\n);\n\nRadioButtonGroup.displayName = 'RadioButtonGroup';\n\nlet RadioButtonGroupDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RadioButtonGroupDoc = require('./doc').doc(RadioButtonGroup);\n}\nconst RadioButtonGroupWrapper = RadioButtonGroupDoc || RadioButtonGroup;\n\nexport { RadioButtonGroupWrapper as RadioButtonGroup };\n","export { RangeInput } from './RangeInput';\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport { StyledRangeInput } from './StyledRangeInput';\n\nconst RangeInput = ({ forwardRef, ...rest }) => (\n \n);\n\nlet RangeInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RangeInputDoc = require('./doc').doc(RangeInput);\n}\nconst RangeInputWrapper = compose(\n withFocus(),\n withForwardRef,\n)(RangeInputDoc || RangeInput);\n\nexport { RangeInputWrapper as RangeInput };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, normalizeColor, parseMetricToNum } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst rangeTrackStyle = css`\n box-sizing: border-box;\n width: 100%;\n height: ${props => props.theme.rangeInput.track.height};\n background: ${props =>\n normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n ${props =>\n props.theme.rangeInput &&\n props.theme.rangeInput.track &&\n props.theme.rangeInput.track.extend}\n`;\n\nconst rangeThumbStyle = css`\n box-sizing: border-box;\n position: relative;\n border-radius: ${props => props.theme.global.spacing};\n height: ${props => props.theme.global.spacing};\n width: ${props => props.theme.global.spacing};\n overflow: visible;\n background: ${props =>\n normalizeColor(\n props.theme.rangeInput.thumb.color || 'control',\n props.theme,\n )};\n -webkit-appearance: none;\n cursor: pointer;\n ${props =>\n props.theme.rangeInput &&\n props.theme.rangeInput.thumb &&\n props.theme.rangeInput.thumb.extend}\n`;\n\nconst firefoxMicrosoftThumbStyle = css`\n ${rangeThumbStyle} margin-top: 0px;\n height: ${props => props.theme.global.spacing};\n width: ${props => props.theme.global.spacing};\n ${props =>\n props.theme.rangeInput &&\n props.theme.rangeInput.thumb &&\n props.theme.rangeInput.thumb.extend}\n`;\n\n/* eslint-disable max-len */\nconst StyledRangeInput = styled.input`\n box-sizing: border-box;\n position: relative;\n -webkit-appearance: none;\n border-color: transparent;\n height: ${props => props.theme.global.spacing};\n width: 100%;\n padding: 0px;\n cursor: pointer;\n background: transparent;\n\n &:focus {\n outline: none;\n }\n\n &::-moz-focus-inner {\n border: none;\n }\n\n &::-moz-focus-outer {\n border: none;\n }\n\n &::-webkit-slider-runnable-track {\n ${rangeTrackStyle}\n }\n\n &::-webkit-slider-thumb {\n margin-top: -${props => (parseMetricToNum(props.theme.global.spacing) - parseMetricToNum(props.theme.rangeInput.track.height || 0)) * 0.5}px;\n ${rangeThumbStyle}\n\n ${props =>\n !props.disabled &&\n css`\n &:hover {\n box-shadow: 0px 0px 0px 2px\n ${normalizeColor(\n props.theme.rangeInput.thumb.color || 'control',\n props.theme,\n )};\n }\n `}\n }\n\n &::-moz-range-track {\n ${rangeTrackStyle}\n }\n\n &::-moz-range-thumb {\n ${firefoxMicrosoftThumbStyle}\n }\n\n &::-ms-thumb {\n ${firefoxMicrosoftThumbStyle}\n }\n\n ${props =>\n !props.disabled &&\n css`\n &:hover::-moz-range-thumb {\n box-shadow: 0px 0px 0px 2px\n ${normalizeColor(\n props.theme.rangeInput.thumb.color || 'control',\n props.theme,\n )};\n }\n\n &:hover::-ms-thumb {\n box-shadow: 0px 0px 0px 2px\n ${normalizeColor(\n props.theme.rangeInput.thumb.color || 'control',\n props.theme,\n )};\n }\n `}\n\n &::-ms-track {\n ${rangeTrackStyle}\n border-color: transparent;\n color: transparent;\n }\n\n &::-ms-fill-lower {\n background: ${props =>\n normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n border-color: transparent;\n }\n\n &::-ms-fill-upper {\n background: ${props =>\n normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n border-color: transparent;\n }\n\n ${props => props.focus && focusStyle}\n ${props => props.theme.rangeInput && props.theme.rangeInput.extend}\n`;\n/* eslint-enable max-len */\n\nStyledRangeInput.defaultProps = {};\nObject.setPrototypeOf(StyledRangeInput.defaultProps, defaultProps);\n\nexport { StyledRangeInput };\n","export { RangeSelector } from './RangeSelector';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\nimport styled from 'styled-components';\n\nimport { ThemeContext } from '../../contexts';\n\nimport { Box } from '../Box';\nimport { withForwardRef } from '../hocs';\n\nimport { EdgeControl } from './EdgeControl';\n\nconst Container = styled(Box)`\n user-select: none;\n`;\n\nclass RangeSelector extends Component {\n static contextType = ThemeContext;\n\n static defaultProps = {\n direction: 'horizontal',\n max: 100,\n messages: { lower: 'Lower Bounds', upper: 'Upper Bounds' },\n min: 0,\n opacity: 'medium',\n size: 'medium',\n step: 1,\n values: [],\n };\n\n state = {};\n\n containerRef = React.createRef();\n\n componentWillUnmount() {\n window.removeEventListener('mousemove', this.mouseMove);\n window.removeEventListener('mouseup', this.mouseUp);\n }\n\n valueForMouseCoord = event => {\n const { direction, max, min, step } = this.props;\n const rect = this.containerRef.current.getBoundingClientRect();\n let value;\n if (direction === 'vertical') {\n // there is no x and y in unit testing\n const y = event.clientY - (rect.top || 0); // unit test resilience\n const scaleY = rect.height / (max - min + 1) || 1; // unit test resilience\n value = Math.floor(y / scaleY) + min;\n } else {\n const x = event.clientX - (rect.left || 0); // unit test resilience\n const scaleX = rect.width / (max - min + 1) || 1; // unit test resilience\n value = Math.floor(x / scaleX) + min;\n }\n // align with closest step within [min, max]\n const result = Math.ceil(value / step) * step;\n if (result < min) {\n return min;\n }\n if (result > max) {\n return max;\n }\n return result;\n };\n\n onClick = event => {\n const { onChange, values } = this.props;\n const { lastChange } = this.state;\n const value = this.valueForMouseCoord(event);\n if (value <= values[0] || (value < values[1] && lastChange === 'lower')) {\n this.setState({ lastChange: 'lower' }, () =>\n onChange([value, values[1]]),\n );\n } else if (\n value >= values[1] ||\n (value > values[0] && lastChange === 'upper')\n ) {\n this.setState({ lastChange: 'upper' }, () =>\n onChange([values[0], value]),\n );\n }\n };\n\n lowerMouseDown = () => {\n this.setState({ changing: 'lower' });\n window.addEventListener('mousemove', this.mouseMove);\n window.addEventListener('mouseup', this.mouseUp);\n };\n\n upperMouseDown = () => {\n this.setState({ changing: 'upper' });\n window.addEventListener('mousemove', this.mouseMove);\n window.addEventListener('mouseup', this.mouseUp);\n };\n\n selectionMouseDown = event => {\n const moveValue = this.valueForMouseCoord(event);\n this.setState({ changing: 'selection', moveValue });\n window.addEventListener('mousemove', this.mouseMove);\n window.addEventListener('mouseup', this.mouseUp);\n };\n\n mouseMove = event => {\n const { max, min, onChange, values } = this.props;\n const { changing, moveValue } = this.state;\n const value = this.valueForMouseCoord(event);\n let nextValues;\n if (changing === 'lower' && value <= values[1] && value !== moveValue) {\n nextValues = [value, values[1]];\n } else if (\n changing === 'upper' &&\n value >= values[0] &&\n value !== moveValue\n ) {\n nextValues = [values[0], value];\n } else if (changing === 'selection' && value !== moveValue) {\n const delta = value - moveValue;\n if (values[0] + delta >= min && values[1] + delta <= max) {\n nextValues = [values[0] + delta, values[1] + delta];\n }\n }\n if (nextValues) {\n this.setState({ lastChange: changing, moveValue: value }, () => {\n onChange(nextValues);\n });\n }\n };\n\n mouseUp = () => {\n this.setState({ changing: undefined });\n window.removeEventListener('mousemove', this.mouseMove);\n window.removeEventListener('mouseup', this.mouseUp);\n };\n\n render() {\n const {\n color,\n direction,\n forwardRef,\n invert,\n max,\n messages,\n min,\n onChange,\n opacity,\n round,\n size,\n step,\n values,\n theme: propsTheme,\n ...rest\n } = this.props;\n const theme = this.context || propsTheme;\n const { nextLower, nextUpper } = this.state;\n\n const lower = nextLower !== undefined ? nextLower : values[0];\n const upper = nextUpper !== undefined ? nextUpper : values[1];\n // It needs to be true when vertical, due to how browsers manage height\n const fill = direction === 'vertical' ? true : 'vertical';\n\n return (\n \n \n = min\n ? () => onChange([lower - step, upper])\n : undefined\n }\n onIncrease={\n onChange && lower + step <= upper\n ? () => onChange([lower + step, upper])\n : undefined\n }\n />\n \n = lower\n ? () => onChange([lower, upper - step])\n : undefined\n }\n onIncrease={\n onChange && upper + step <= max\n ? () => onChange([lower, upper + step])\n : undefined\n }\n />\n \n \n );\n }\n}\n\nlet RangeSelectorDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RangeSelectorDoc = require('./doc').doc(RangeSelector);\n}\nconst RangeSelectorWrapper = compose(withForwardRef)(\n RangeSelectorDoc || RangeSelector,\n);\n\nexport { RangeSelectorWrapper as RangeSelector };\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\nimport { withForwardRef } from '../hocs';\n\nconst DIRECTION_PROPS = {\n horizontal: {\n cursor: 'col-resize',\n fill: 'vertical',\n },\n vertical: {\n cursor: 'row-resize',\n fill: 'horizontal',\n },\n};\n\nconst EdgeControl = ({\n color,\n direction,\n edge,\n forwardRef,\n onDecrease,\n onIncrease,\n theme,\n ...rest\n}) => {\n const [focused, setFocused] = useState(false);\n const { cursor, fill } = DIRECTION_PROPS[direction];\n const size = parseMetricToNum(theme.global.spacing) / 2;\n const keyboardProps =\n direction === 'vertical'\n ? { onUp: onDecrease, onDown: onIncrease }\n : { onLeft: onDecrease, onRight: onIncrease };\n const boxDirection = direction === 'vertical' ? 'row' : 'column';\n const type =\n (theme.rangeSelector &&\n theme.rangeSelector.edge &&\n theme.rangeSelector.edge.type) ||\n 'disc';\n\n let node;\n if (type === 'bar') {\n node = (\n \n );\n } else if (type === 'disc') {\n node = (\n \n );\n } else {\n node = type;\n }\n return (\n \n \n setFocused(true)}\n onBlur={() => setFocused(false)}\n {...rest}\n >\n {node}\n \n \n \n );\n};\n\nEdgeControl.defaultProps = {};\nObject.setPrototypeOf(EdgeControl.defaultProps, defaultProps);\n\nconst EdgeControlWrapper = compose(\n withForwardRef,\n withTheme,\n)(EdgeControl);\n\nexport { EdgeControlWrapper as EdgeControl };\n","export { RoutedAnchor } from './RoutedAnchor';\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Anchor } from '../Anchor';\n\nclass RoutedAnchor extends Component {\n static contextTypes = {\n router: PropTypes.shape({}).isRequired,\n };\n\n static defaultProps = {\n method: 'push',\n };\n\n render() {\n const { path, method, ...rest } = this.props;\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n `This component will be deprecated in the upcoming releases. \n Please refer to https://github.com/grommet/grommet/issues/2855 \n for more information.`,\n );\n }\n return (\n {\n const { onClick } = this.props;\n const { router } = this.context;\n if (event) {\n const modifierKey = event.ctrlKey || event.metaKey;\n\n // if the user right-clicked in the Anchor we should let it go\n if (modifierKey) {\n return;\n }\n }\n if (router) {\n event.preventDefault();\n (router.history || router)[method](path);\n }\n if (onClick) {\n onClick(event, ...args);\n }\n }}\n />\n );\n }\n}\n\nlet RoutedAnchorDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RoutedAnchorDoc = require('./doc').doc(RoutedAnchor);\n}\nconst RoutedAnchorWrapper = RoutedAnchorDoc || RoutedAnchor;\n\nexport { RoutedAnchorWrapper as RoutedAnchor };\n","export { RoutedButton } from './RoutedButton';\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Button } from '../Button';\n\nclass RoutedButton extends Component {\n static contextTypes = {\n router: PropTypes.shape({}).isRequired,\n };\n\n static defaultProps = {\n method: 'push',\n };\n\n onClick = (event, ...args) => {\n const { method, onClick, path } = this.props;\n const { router } = this.context;\n if (event) {\n const modifierKey = event.ctrlKey || event.metaKey;\n\n // if the user right-clicked in the button we should let it go\n if (modifierKey) {\n return;\n }\n }\n if (router) {\n event.preventDefault();\n (router.history || router)[method](path);\n }\n if (onClick) {\n onClick(event, ...args);\n }\n };\n\n render() {\n const { href, path, method, onClick, ...rest } = this.props;\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\n `This component will be deprecated in the upcoming releases.\n Please refer to https://github.com/grommet/grommet/issues/2855 \n for more information.`,\n );\n }\n return (\n \n );\n }\n}\n\nlet RoutedButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n RoutedButtonDoc = require('./doc').doc(RoutedButton);\n}\nconst RoutedButtonWrapper = RoutedButtonDoc || RoutedButton;\n\nexport { RoutedButtonWrapper as RoutedButton };\n","export { Select } from './Select';\n","import React, { isValidElement, useState, useRef, useEffect } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { controlBorderStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { DropButton } from '../DropButton';\nimport { Keyboard } from '../Keyboard';\nimport { TextInput } from '../TextInput';\nimport { withForwardRef } from '../hocs';\n\nimport { SelectContainer } from './SelectContainer';\n\nconst SelectTextInput = styled(TextInput)`\n cursor: pointer;\n`;\n\nconst StyledSelectDropButton = styled(DropButton)`\n ${props => !props.plain && controlBorderStyle};\n ${props =>\n props.theme.select &&\n props.theme.select.control &&\n props.theme.select.control.extend};\n ${props => props.open && props.theme.select.control.open};\n`;\n\nStyledSelectDropButton.defaultProps = {};\nObject.setPrototypeOf(StyledSelectDropButton.defaultProps, defaultProps);\n\nconst Select = props => {\n const {\n a11yTitle,\n alignSelf,\n children,\n closeOnChange,\n disabled,\n dropAlign,\n dropProps,\n dropTarget,\n forwardRef,\n gridArea,\n id,\n icon,\n labelKey,\n margin,\n messages,\n onChange,\n onClose,\n onMore,\n onOpen,\n open: propOpen,\n options,\n placeholder,\n plain,\n selected,\n size,\n theme,\n value,\n valueLabel,\n ...rest\n } = props;\n const inputRef = useRef();\n const [open, setOpen] = useState(propOpen);\n useEffect(() => {\n setOpen(propOpen);\n }, [propOpen]);\n\n const onRequestOpen = () => {\n setOpen(true);\n if (onOpen) {\n onOpen();\n }\n };\n\n const onRequestClose = () => {\n setOpen(false);\n if (onClose) {\n onClose();\n }\n };\n\n const onSelectChange = (event, ...args) => {\n if (closeOnChange) {\n onRequestClose();\n }\n if (onChange) {\n onChange({ ...event, target: inputRef.current }, ...args);\n }\n };\n\n let SelectIcon;\n switch (icon) {\n case false:\n break;\n case true:\n case undefined:\n SelectIcon = theme.select.icons.down;\n break;\n default:\n SelectIcon = icon;\n }\n let selectValue;\n let inputValue = '';\n if (valueLabel) {\n selectValue = valueLabel;\n } else if (Array.isArray(value)) {\n if (value.length > 1) {\n if (React.isValidElement(value[0])) {\n selectValue = value;\n } else {\n inputValue = messages.multiple;\n }\n } else if (value.length === 1) {\n if (React.isValidElement(value[0])) {\n [selectValue] = value;\n } else if (labelKey && typeof value[0] === 'object') {\n if (typeof labelKey === 'function') {\n inputValue = labelKey(value[0]);\n } else {\n inputValue = value[0][labelKey];\n }\n } else {\n [inputValue] = value;\n }\n } else {\n inputValue = '';\n }\n } else if (labelKey && typeof value === 'object') {\n if (typeof labelKey === 'function') {\n inputValue = labelKey(value);\n } else {\n inputValue = value[labelKey];\n }\n } else if (React.isValidElement(value)) {\n selectValue = value; // deprecated in favor of valueLabel\n } else if (selected !== undefined) {\n if (Array.isArray(selected)) {\n if (selected.length > 1) {\n inputValue = messages.multiple;\n } else if (selected.length === 1) {\n inputValue = options[selected[0]];\n }\n } else {\n inputValue = options[selected];\n }\n } else {\n inputValue = value;\n }\n\n // const dark = theme.select.background\n // ? colorIsDark(theme.select.background)\n // : theme.dark;\n const iconColor = normalizeColor(\n theme.select.icons.color || 'control',\n theme,\n );\n\n delete rest.onSearch;\n\n return (\n \n \n }\n plain={plain}\n dropProps={{ ...dropProps }}\n >\n \n \n {selectValue || (\n \n )}\n \n {SelectIcon && (\n \n {isValidElement(SelectIcon) ? (\n SelectIcon\n ) : (\n \n )}\n \n )}\n \n \n \n );\n};\n\nSelect.defaultProps = {\n closeOnChange: true,\n dropAlign: { top: 'bottom', left: 'left' },\n messages: { multiple: 'multiple' },\n ...defaultProps,\n};\n\nlet SelectDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n SelectDoc = require('./doc').doc(Select);\n}\nconst SelectWrapper = compose(\n withTheme,\n withForwardRef,\n)(SelectDoc || Select);\n\nexport { SelectWrapper as Select };\n","import React, { createRef, Component } from 'react';\nimport styled, { withTheme } from 'styled-components';\n\nimport {\n debounce,\n debounceDelay,\n isNodeAfterScroll,\n isNodeBeforeScroll,\n selectedStyle,\n setFocusWithoutScroll,\n} from '../../utils';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\n\nimport { SelectOption } from './SelectOption';\nimport { StyledContainer } from './StyledSelect';\n\n// position relative is so scroll can be managed correctly\nconst OptionsBox = styled(Box)`\n position: relative;\n scroll-behavior: smooth;\n`;\n\nconst OptionBox = styled(Box)`\n ${props => props.selected && selectedStyle}\n`;\n\nclass SelectContainer extends Component {\n static defaultProps = {\n children: null,\n disabled: undefined,\n emptySearchMessage: 'No matches found',\n id: undefined,\n multiple: false,\n name: undefined,\n onKeyDown: undefined,\n onSearch: undefined,\n options: undefined,\n searchPlaceholder: undefined,\n selected: undefined,\n value: '',\n replace: true,\n };\n\n optionRefs = {};\n\n searchRef = createRef();\n\n optionsRef = createRef();\n\n constructor(props) {\n super(props);\n this.state = {\n initialOptions: props.options,\n search: '',\n activeIndex: -1,\n };\n }\n\n static getDerivedStateFromProps(nextProps, prevState) {\n const { options, value, onSearch } = nextProps;\n\n if (onSearch) {\n if (\n prevState.activeIndex === -1 &&\n prevState.search === '' &&\n options &&\n value\n ) {\n const optionValue =\n Array.isArray(value) && value.length ? value[0] : value;\n const activeIndex = options.indexOf(optionValue);\n return { activeIndex };\n }\n if (prevState.activeIndex === -1 && prevState.search !== '') {\n return { activeIndex: 0 };\n }\n }\n return null;\n }\n\n componentDidMount() {\n const { onSearch } = this.props;\n const { activeIndex } = this.state;\n // timeout need to send the operation through event loop and allow\n // time to the portal to be available\n setTimeout(() => {\n const optionsNode = this.optionsRef.current;\n if (onSearch) {\n const input = this.searchRef.current;\n if (input && input.focus) {\n setFocusWithoutScroll(input);\n }\n } else if (optionsNode) {\n setFocusWithoutScroll(optionsNode);\n }\n\n // scroll to active option if it is below the fold\n if (activeIndex >= 0 && optionsNode) {\n const optionNode = this.optionRefs[activeIndex];\n const { bottom: containerBottom } = optionsNode.getBoundingClientRect();\n if (optionNode) {\n const { bottom: optionTop } = optionNode.getBoundingClientRect();\n\n if (containerBottom < optionTop) {\n optionNode.scrollIntoView();\n }\n }\n }\n }, 0);\n }\n\n onSearchChange = event => {\n this.setState(\n {\n search: event.target.value,\n activeIndex: -1,\n },\n () => {\n const { search } = this.state;\n this.onSearch(search);\n },\n );\n };\n\n // wait a debounceDelay of idle time in ms, before notifying that the search\n // changed.\n // the debounceDelay timer starts to count when the user stopped typing\n onSearch = debounce(search => {\n const { onSearch } = this.props;\n onSearch(search);\n }, debounceDelay(this.props));\n\n selectOption = option => () => {\n const { multiple, onChange, value, selected } = this.props;\n const { initialOptions } = this.state;\n if (onChange) {\n let nextValue = Array.isArray(value) ? value.slice() : [];\n // preserve compatibility until selected is deprecated\n if (selected) {\n nextValue = selected.map(s => initialOptions[s]);\n }\n\n if (multiple) {\n if (nextValue.indexOf(option) !== -1) {\n nextValue = nextValue.filter(v => v !== option);\n } else {\n nextValue.push(option);\n }\n } else {\n nextValue = option;\n }\n\n const nextSelected = Array.isArray(nextValue)\n ? nextValue.map(v => initialOptions.indexOf(v))\n : initialOptions.indexOf(nextValue);\n onChange({\n option,\n value: nextValue,\n selected: nextSelected,\n });\n }\n };\n\n // We use the state keyboardNavigating to prevent mouse over interaction\n // from triggering changing the activeIndex due to scrolling.\n clearKeyboardNavigation = () => {\n clearTimeout(this.keyboardNavTimer);\n this.keyboardNavTimer = setTimeout(() => {\n this.setState({ keyboardNavigating: false });\n }, 100); // 100ms was empirically determined\n };\n\n onNextOption = event => {\n const { options } = this.props;\n const { activeIndex } = this.state;\n event.preventDefault();\n let nextActiveIndex = activeIndex + 1;\n while (\n nextActiveIndex < options.length &&\n this.isDisabled(nextActiveIndex)\n ) {\n nextActiveIndex += 1;\n }\n if (nextActiveIndex !== options.length) {\n this.setState(\n { activeIndex: nextActiveIndex, keyboardNavigating: true },\n () => {\n const buttonNode = this.optionRefs[nextActiveIndex];\n const optionsNode = this.optionsRef.current;\n\n if (\n buttonNode &&\n isNodeAfterScroll(buttonNode, optionsNode) &&\n optionsNode.scrollTo\n ) {\n optionsNode.scrollTo(\n 0,\n buttonNode.offsetTop -\n (optionsNode.getBoundingClientRect().height -\n buttonNode.getBoundingClientRect().height),\n );\n }\n this.clearKeyboardNavigation();\n },\n );\n }\n };\n\n onPreviousOption = event => {\n const { activeIndex } = this.state;\n event.preventDefault();\n let nextActiveIndex = activeIndex - 1;\n while (nextActiveIndex >= 0 && this.isDisabled(nextActiveIndex)) {\n nextActiveIndex -= 1;\n }\n if (nextActiveIndex >= 0) {\n this.setState(\n { activeIndex: nextActiveIndex, keyboardNavigating: true },\n () => {\n const buttonNode = this.optionRefs[nextActiveIndex];\n const optionsNode = this.optionsRef.current;\n\n if (\n buttonNode &&\n isNodeBeforeScroll(buttonNode, optionsNode) &&\n optionsNode.scrollTo\n ) {\n optionsNode.scrollTo(0, buttonNode.offsetTop);\n }\n this.clearKeyboardNavigation();\n },\n );\n }\n };\n\n onActiveOption = index => () => {\n const { keyboardNavigating } = this.state;\n if (!keyboardNavigating) {\n this.setState({ activeIndex: index });\n }\n };\n\n onSelectOption = event => {\n const { options } = this.props;\n const { activeIndex } = this.state;\n if (activeIndex >= 0) {\n event.preventDefault(); // prevent submitting forms\n this.selectOption(options[activeIndex])();\n }\n };\n\n optionLabel = index => {\n const { options, labelKey } = this.props;\n const option = options[index];\n let optionLabel;\n if (labelKey) {\n if (typeof labelKey === 'function') {\n optionLabel = labelKey(option);\n } else {\n optionLabel = option[labelKey];\n }\n } else {\n optionLabel = option;\n }\n return optionLabel;\n };\n\n optionValue = index => {\n const { options, valueKey } = this.props;\n const option = options[index];\n let optionValue;\n if (valueKey) {\n if (typeof valueKey === 'function') {\n optionValue = valueKey(option);\n } else {\n optionValue = option[valueKey];\n }\n } else {\n optionValue = option;\n }\n return optionValue;\n };\n\n isDisabled = index => {\n const { disabled, disabledKey, options } = this.props;\n const option = options[index];\n let result;\n if (disabledKey) {\n if (typeof disabledKey === 'function') {\n result = disabledKey(option, index);\n } else {\n result = option[disabledKey];\n }\n } else if (Array.isArray(disabled)) {\n if (typeof disabled[0] === 'number') {\n result = disabled.indexOf(index) !== -1;\n } else {\n const optionValue = this.optionValue(index);\n result = disabled.indexOf(optionValue) !== -1;\n }\n }\n return result;\n };\n\n isSelected = index => {\n const { selected, value, valueKey } = this.props;\n let result;\n if (selected) {\n // deprecated in favor of value\n result = selected.indexOf(index) !== -1;\n } else {\n const optionValue = this.optionValue(index);\n if (Array.isArray(value)) {\n if (value.length === 0) {\n result = false;\n } else if (typeof value[0] !== 'object') {\n result = value.indexOf(optionValue) !== -1;\n } else if (valueKey) {\n result = value.some(valueItem => {\n const valueValue =\n typeof valueKey === 'function'\n ? valueKey(valueItem)\n : valueItem[valueKey];\n return valueValue === optionValue;\n });\n }\n } else if (valueKey && typeof value === 'object') {\n const valueValue =\n typeof valueKey === 'function' ? valueKey(value) : value[valueKey];\n result = valueValue === optionValue;\n } else {\n result = value === optionValue;\n }\n }\n return result;\n };\n\n render() {\n const {\n children,\n dropHeight,\n emptySearchMessage,\n id,\n onMore,\n onKeyDown,\n onSearch,\n options,\n searchPlaceholder,\n theme,\n replace,\n } = this.props;\n const { activeIndex, search } = this.state;\n\n const customSearchInput = theme.select.searchInput;\n const SelectTextInput = customSearchInput || TextInput;\n const selectOptionsStyle = {\n ...theme.select.options.box,\n ...theme.select.options.container,\n };\n\n return (\n \n \n {onSearch && (\n \n \n \n )}\n \n {options.length > 0 ? (\n \n {(option, index) => {\n const isDisabled = this.isDisabled(index);\n const isSelected = this.isSelected(index);\n const isActive = activeIndex === index;\n return (\n {\n this.optionRefs[index] = ref;\n }}\n disabled={isDisabled || undefined}\n active={isActive}\n selected={isSelected}\n option={option}\n onMouseOver={\n !isDisabled ? this.onActiveOption(index) : undefined\n }\n onClick={\n !isDisabled ? this.selectOption(option) : undefined\n }\n >\n {children ? (\n children(option, index, options, {\n active: isActive,\n disabled: isDisabled,\n selected: isSelected,\n })\n ) : (\n \n \n {this.optionLabel(index)}\n \n \n )}\n \n );\n }}\n \n ) : (\n \n \n \n {emptySearchMessage}\n \n \n \n )}\n \n \n \n );\n }\n}\n\nObject.setPrototypeOf(SelectContainer.defaultProps, defaultProps);\n\nconst SelectContainerWrapper = withTheme(SelectContainer);\n\nexport { SelectContainerWrapper as SelectContainer };\n","import React from 'react';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { withForwardRef } from '../hocs';\n\nfunction areEqual(prevProps, nextProps) {\n const { active, disabled, option, selected } = prevProps;\n const {\n active: nextActive,\n disabled: nextDisabled,\n option: nextOption,\n selected: nextSelected,\n } = nextProps;\n return (\n active === nextActive &&\n selected === nextSelected &&\n disabled === nextDisabled &&\n option === nextOption\n );\n}\n\nconst SelectOption = React.memo(({ forwardRef, ...rest }) => {\n return (\n \n \n \n );\n}, areEqual);\n\nconst SelectOptionWrapper = withForwardRef(SelectOption);\n\nexport { SelectOptionWrapper as SelectOption };\n","import styled from 'styled-components';\n\nimport { sizeStyle } from '../../utils';\n\nexport const StyledContainer = styled.div`\n /* IE11 hack to get drop contents to not overflow */\n @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n width: 100%;\n }\n\n ${props =>\n props.dropHeight\n ? sizeStyle('max-height', props.dropHeight, props.theme)\n : 'max-height: inherit;'};\n\n ${props =>\n props.theme.select.container && props.theme.select.container.extend};\n`;\n","export { SkipLink } from './SkipLink';\n","import React from 'react';\n\nimport { Anchor } from '../Anchor';\nimport { Box } from '../Box';\n\nexport const SkipLink = ({ id, label, ...rest }) => (\n \n \n \n);\n","export { SkipLinks } from './SkipLinks';\n","import React, { cloneElement, useRef, useState } from 'react';\n\nimport { Box } from '../Box';\nimport { Heading } from '../Heading';\nimport { Layer } from '../Layer';\n\nconst SkipLinks = ({ children, id, messages }) => {\n const [showLayer, setShowLayer] = useState(false);\n\n const layerRef = useRef(null);\n\n const onFocus = () => {\n setShowLayer(true);\n };\n\n const removeLayer = () => {\n setShowLayer(false);\n };\n\n const onBlur = () => {\n // timeout needed so it gives enough time for activeElement to be updated\n setTimeout(() => {\n const layerNode = layerRef.current;\n if (\n layerNode &&\n layerNode.layerContainer.contains &&\n !layerNode.layerContainer.contains(document.activeElement)\n ) {\n removeLayer();\n }\n }, 0);\n };\n\n return (\n \n \n {messages.skipTo}:\n \n {children.map((element, index) =>\n cloneElement(element, {\n key: `skip-link-${index}`,\n onClick: removeLayer,\n }),\n )}\n \n \n \n );\n};\n\nSkipLinks.defaultProps = {\n messages: {\n skipTo: 'Skip To',\n },\n};\n\nlet SkipLinksDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n SkipLinksDoc = require('./doc').doc(SkipLinks);\n}\nconst SkipLinksWrapper = SkipLinksDoc || SkipLinks;\n\nexport { SkipLinksWrapper as SkipLinks };\n","export { SkipLinkTarget } from './SkipLinkTarget';\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { Anchor } from '../Anchor';\n\nconst HiddenAnchor = styled(Anchor)`\n width: 0;\n height: 0;\n overflow: hidden;\n position: absolute;\n`;\n\nexport const SkipLinkTarget = ({ label, ...rest }) => (\n \n {label}\n \n);\n","export { Tab } from './Tab';\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { normalizeColor } from '../../utils';\n\nimport { StyledTab } from './StyledTab';\n\nconst Tab = ({\n active,\n forwardRef,\n plain,\n title,\n onActivate,\n onMouseOver,\n onMouseOut,\n theme,\n ...rest\n}) => {\n const [over, setOver] = useState(undefined);\n let normalizedTitle = title;\n const tabStyles = {};\n\n const onMouseOverTab = event => {\n setOver(true);\n if (onMouseOver) {\n onMouseOver(event);\n }\n };\n\n const onMouseOutTab = event => {\n setOver(undefined);\n if (onMouseOut) {\n onMouseOut(event);\n }\n };\n\n const onClickTab = event => {\n if (event) {\n event.preventDefault();\n }\n onActivate();\n };\n\n if (!plain) {\n if (typeof title !== 'string') {\n normalizedTitle = title;\n } else if (active) {\n normalizedTitle = {title};\n } else {\n normalizedTitle = (\n \n {title}\n \n );\n }\n\n if (theme.tab.border) {\n let borderColor =\n theme.tab.border.color || theme.global.control.border.color;\n if (active) {\n borderColor = theme.tab.border.active.color || borderColor;\n } else if (over) {\n borderColor = theme.tab.border.hover.color || borderColor;\n }\n borderColor = normalizeColor(borderColor, theme);\n\n tabStyles.border = {\n side: theme.tab.border.side,\n size: theme.tab.border.size,\n color: borderColor,\n };\n }\n\n tabStyles.background = active\n ? theme.tab.active.background || theme.tab.background\n : theme.tab.background;\n tabStyles.pad = theme.tab.pad;\n tabStyles.margin = theme.tab.margin;\n }\n\n return (\n \n \n {normalizedTitle}\n \n \n );\n};\n\nTab.defaultProps = {};\nObject.setPrototypeOf(Tab.defaultProps, defaultProps);\n\nlet TabDoc;\nif (process.env.NODE_ENV !== 'production') {\n TabDoc = require('./doc').doc(Tab); // eslint-disable-line global-require\n}\nconst TabWrapper = compose(\n withTheme,\n withForwardRef,\n)(TabDoc || Tab);\n\nexport { TabWrapper as Tab };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst tabHoverStyle = css`\n &:hover {\n ${props =>\n props.theme.tab.hover.background &&\n css`\n background: ${normalizeColor(\n props.theme.tab.hover.background,\n props.theme,\n )};\n `}\n ${props =>\n props.theme.tab.hover.color &&\n css`\n color: ${normalizeColor(props.theme.tab.hover.color, props.theme)};\n `}\n ${props => props.theme.tab.hover.extend};\n }\n`;\n\nconst StyledTab = styled.div`\n ${genericStyles}\n ${props => !props.plain && props.theme.tab.hover && tabHoverStyle}\n ${props => props.theme.tab.extend}\n`;\n\nStyledTab.defaultProps = {};\nObject.setPrototypeOf(StyledTab.defaultProps, defaultProps);\n\nexport { StyledTab };\n","export { Tabs } from './Tabs';\n","import React, { cloneElement, Children, useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { StyledTabPanel, StyledTabs, StyledTabsHeader } from './StyledTabs';\n\nconst Tabs = ({\n children,\n flex,\n justify = 'center',\n messages = { tabContents: 'Tab Contents' },\n theme,\n ...rest\n}) => {\n const { activeIndex: propsActiveIndex, onActive } = rest;\n const [activeIndex, setActiveIndex] = useState(rest.activeIndex || 0);\n\n if (activeIndex !== propsActiveIndex && propsActiveIndex !== undefined) {\n setActiveIndex(propsActiveIndex);\n }\n\n const activateTab = index => {\n if (propsActiveIndex === undefined) {\n setActiveIndex(index);\n }\n if (onActive) {\n onActive(index);\n }\n };\n\n /* eslint-disable no-param-reassign */\n delete rest.activeIndex;\n delete rest.onActive;\n /* eslint-enable no-param-reassign */\n\n let activeContent;\n let activeTitle;\n const tabs = Children.map(\n children,\n (tab, index) => {\n if (!tab) return undefined;\n\n const tabProps = tab.props || {};\n\n const isTabActive = index === activeIndex;\n\n if (isTabActive) {\n activeContent = tabProps.children;\n if (typeof tabProps.title === 'string') {\n activeTitle = tabProps.title;\n } else {\n activeTitle = index + 1;\n }\n }\n\n return cloneElement(tab, {\n active: isTabActive,\n onActivate: () => activateTab(index),\n });\n },\n this,\n );\n\n const tabContentTitle = `${activeTitle || ''} ${messages.tabContents}`;\n\n return (\n \n \n {tabs}\n \n \n {activeContent}\n \n \n );\n};\n\nTabs.defaultProps = {};\nObject.setPrototypeOf(Tabs.defaultProps, defaultProps);\n\nlet TabsDoc;\nif (process.env.NODE_ENV !== 'production') {\n TabsDoc = require('./doc').doc(Tabs); // eslint-disable-line global-require\n}\nconst TabsWrapper = compose(withTheme)(TabsDoc || Tabs);\n\nexport { TabsWrapper as Tabs };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledTabsHeader = styled.div`\n ${props => props.theme.tabs.header.extend};\n`;\n\nStyledTabsHeader.defaultProps = {};\nObject.setPrototypeOf(StyledTabsHeader.defaultProps, defaultProps);\n\nconst FLEX_MAP = {\n [true]: '1 1',\n [false]: '0 0',\n grow: '1 0',\n shrink: '0 1',\n};\n\nconst flexStyle = css`\n flex: ${props =>\n `${FLEX_MAP[props.flex]}${props.flex !== true ? ' auto' : ''}`};\n`;\n\nconst StyledTabPanel = styled.div`\n min-height: 0;\n ${props => props.flex && flexStyle} ${props => props.theme.tabs.panel.extend};\n`;\n\nStyledTabPanel.defaultProps = {};\nObject.setPrototypeOf(StyledTabPanel.defaultProps, defaultProps);\n\nconst StyledTabs = styled.div`\n ${genericStyles} ${props => props.theme.tabs.extend};\n`;\n\nStyledTabs.defaultProps = {};\nObject.setPrototypeOf(StyledTabs.defaultProps, defaultProps);\n\nexport { StyledTabsHeader, StyledTabPanel, StyledTabs };\n","export { TextArea } from './TextArea';\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { Keyboard } from '../Keyboard';\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport { StyledTextArea } from './StyledTextArea';\n\nconst TextArea = ({ fill, forwardRef, ...rest }) => {\n const onEsc = event => {\n // we have to stop both synthetic events and native events\n // drop and layer should not close by pressing esc on this input\n event.stopPropagation();\n event.nativeEvent.stopImmediatePropagation();\n };\n\n return (\n \n \n \n );\n};\n\nlet TextAreaDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n TextAreaDoc = require('./doc').doc(TextArea);\n}\nconst TextAreaWrapper = compose(\n withFocus({ focusWithMouse: true }),\n withForwardRef,\n)(TextAreaDoc || TextArea);\n\nexport { TextAreaWrapper as TextArea };\n","import styled, { css } from 'styled-components';\n\nimport {\n disabledStyle,\n focusStyle,\n inputStyle,\n placeholderStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst plainStyle = css`\n border: none;\n width: 100%;\n -webkit-appearance: none;\n`;\n\nconst sizeStyle = props => {\n const data = props.theme.text[props.size];\n return css`\n font-size: ${data.size};\n line-height: ${data.height};\n `;\n};\n\nconst resizeStyle = resize => {\n if (resize === 'horizontal') {\n return 'resize: horizontal;';\n }\n if (resize === 'vertical') {\n return 'resize: vertical;';\n }\n if (resize) {\n return 'resize: both;';\n }\n return 'resize: none;';\n};\n\nconst StyledTextArea = styled.textarea`\n ${inputStyle} width: 100%;\n ${props => props.resize !== undefined && resizeStyle(props.resize)}\n\n ${props => props.fillArg && 'height: 100%;'}\n ${props => props.size && sizeStyle(props)}\n ${props => props.plain && plainStyle}\n ${props =>\n props.disabled &&\n disabledStyle(\n props.theme.textArea.disabled && props.theme.textArea.disabled.opacity,\n )}\n\n ${placeholderStyle}\n\n &::-moz-focus-inner {\n border: none;\n outline: none;\n }\n\n ${props => props.focus && !props.plain && focusStyle};\n ${props => props.theme.textArea && props.theme.textArea.extend};\n`;\n\nStyledTextArea.defaultProps = {};\nObject.setPrototypeOf(StyledTextArea.defaultProps, defaultProps);\n\nexport { StyledTextArea };\n","export { Video } from './Video';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Menu } from '../Menu';\nimport { Meter } from '../Meter';\nimport { Stack } from '../Stack';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { throttle } from '../../utils';\n\nimport {\n StyledVideo,\n StyledVideoContainer,\n StyledVideoControls,\n StyledVideoScrubber,\n} from './StyledVideo';\n\n// Split the volume control into 6 segments. Empirically determined.\nconst VOLUME_STEP = 0.166667;\n\nconst formatTime = time => {\n let minutes = Math.round(time / 60);\n if (minutes < 10) {\n minutes = `0${minutes}`;\n }\n let seconds = Math.round(time) % 60;\n if (seconds < 10) {\n seconds = `0${seconds}`;\n }\n return `${minutes}:${seconds}`;\n};\n\nconst videoEvents = [\n 'onAbort',\n 'onCanPlay',\n 'onCanPlayThrough',\n 'onDurationChange',\n 'onEmptied',\n 'onEncrypted',\n 'onEnded',\n 'onError',\n 'onLoadedData',\n 'onLoadedMetadata',\n 'onLoadStart',\n 'onPause',\n 'onPlay',\n 'onPlaying',\n 'onProgress',\n 'onRateChange',\n 'onSeeked',\n 'onSeeking',\n 'onStalled',\n 'onSuspend',\n 'onTimeUpdate',\n 'onVolumeChange',\n 'onWaiting',\n];\n\nclass Video extends Component {\n static getDerivedStateFromProps(nextProps, prevState) {\n const { forwardRef } = nextProps;\n const { videoRef } = prevState;\n const nextVideoRef = forwardRef || videoRef;\n if (nextVideoRef !== videoRef) {\n return { videoRef: nextVideoRef };\n }\n return null;\n }\n\n state = {\n captions: [],\n scrubberRef: React.createRef(),\n videoRef: React.createRef(),\n };\n\n hasPlayed = false;\n\n constructor(props) {\n super(props);\n this.update = throttle(this.update, 100, this);\n this.mediaEventProps = this.injectUpdateVideoEvents();\n }\n\n componentDidMount() {\n const { mute } = this.props;\n const { videoRef } = this.state;\n const video = videoRef.current;\n\n if (mute) {\n this.mute();\n }\n\n if (video) {\n // hide all captioning to start with\n const { textTracks } = video;\n for (let i = 0; i < textTracks.length; i += 1) {\n textTracks[i].mode = 'hidden';\n }\n\n this.restate();\n }\n }\n\n componentDidUpdate(prevProps) {\n const { autoPlay } = this.props;\n if (autoPlay && !prevProps.autoPlay) {\n // Caller wants the video to play now.\n this.play();\n }\n this.restate();\n }\n\n componentWillUnmount() {\n this.unmounted = true;\n }\n\n injectUpdateVideoEvents = () =>\n videoEvents.reduce((previousValue, currentValue) => {\n const nextValue = { ...previousValue };\n nextValue[currentValue] = e => {\n if (\n currentValue in this.props &&\n /* eslint-disable react/destructuring-assignment */\n typeof this.props[currentValue] === 'function'\n ) {\n this.props[currentValue](e);\n /* eslint-enable react/destructuring-assignment */\n }\n this.update();\n };\n\n return nextValue;\n }, {});\n\n update = () => {\n const { videoRef } = this.state;\n const video = videoRef.current;\n // Set flag for Video first play\n if (\n (!this.hasPlayed && !video.paused && !video.loading) ||\n video.currentTime\n ) {\n this.hasPlayed = true;\n }\n\n let { interacting } = this.state;\n if (video.ended) {\n interacting = false;\n }\n\n this.setState({\n duration: video.duration,\n currentTime: video.currentTime,\n // buffered: video.buffered,\n // paused: video.paused,\n // muted: video.muted,\n volume: video.volume,\n // ended: video.ended,\n // readyState: video.readyState,\n interacting,\n // computed values\n // hasPlayed: this.hasPlayed,\n playing: !video.paused && !video.loading,\n // percentageBuffered: video.buffered.length &&\n // (video.buffered.end(video.buffered.length - 1) /\n // video.duration) * 100,\n percentagePlayed: (video.currentTime / video.duration) * 100,\n // loading: video.readyState < video.HAVE_ENOUGH_DATA,\n });\n };\n\n play = () => {\n const { videoRef } = this.state;\n videoRef.current.play();\n };\n\n pause = () => {\n const { videoRef } = this.state;\n videoRef.current.pause();\n };\n\n scrub = event => {\n const { duration, scrubberRef } = this.state;\n if (scrubberRef.current) {\n const scrubberRect = scrubberRef.current.getBoundingClientRect();\n const percent = (event.clientX - scrubberRect.left) / scrubberRect.width;\n this.setState({ scrubTime: duration * percent });\n }\n };\n\n seek = event => {\n const { duration, scrubberRef, videoRef } = this.state;\n if (scrubberRef.current) {\n const scrubberRect = scrubberRef.current.getBoundingClientRect();\n const percent = (event.clientX - scrubberRect.left) / scrubberRect.width;\n videoRef.current.currentTime = duration * percent;\n }\n };\n\n unmute = () => {\n const { videoRef } = this.state;\n if (videoRef.current) {\n videoRef.current.muted = false;\n }\n };\n\n mute = () => {\n const { videoRef } = this.state;\n if (videoRef.current) {\n videoRef.current.muted = true;\n }\n };\n\n louder = () => {\n const { videoRef } = this.state;\n videoRef.current.volume += VOLUME_STEP;\n };\n\n quieter = () => {\n const { videoRef } = this.state;\n videoRef.current.volume -= VOLUME_STEP;\n };\n\n showCaptions = index => {\n const { videoRef } = this.state;\n const { textTracks } = videoRef.current;\n for (let i = 0; i < textTracks.length; i += 1) {\n textTracks[i].mode = i === index ? 'showing' : 'hidden';\n }\n // Using forceUpdate to force redraw of controls when changing captions\n this.forceUpdate();\n };\n\n fullscreen = () => {\n const { videoRef } = this.state;\n const video = videoRef.current;\n if (video.requestFullscreen) {\n video.requestFullscreen();\n } else if (video.msRequestFullscreen) {\n video.msRequestFullscreen();\n } else if (video.mozRequestFullScreen) {\n video.mozRequestFullScreen();\n } else if (video.webkitRequestFullscreen) {\n video.webkitRequestFullscreen();\n } else {\n console.warn(\"Your browser doesn't support fullscreen.\");\n }\n };\n\n interactionStart = () => {\n this.setState({ interacting: true });\n clearTimeout(this.interactionTimer);\n this.interactionTimer = setTimeout(this.interactionStop, 3000);\n };\n\n interactionStop = () => {\n const { focus } = this.state;\n if (!focus && !this.unmounted) {\n this.setState({ interacting: false });\n }\n };\n\n restate = () => {\n const { captions, height, videoRef, width } = this.state;\n const video = videoRef.current;\n\n if (video) {\n if (video.videoHeight) {\n // set the size based on the video aspect ratio\n const rect = video.getBoundingClientRect();\n const ratio = rect.width / rect.height;\n const videoRatio = video.videoWidth / video.videoHeight;\n if (videoRatio > ratio) {\n const nextHeight = rect.width / videoRatio;\n if (nextHeight !== height) {\n this.setState({ height: nextHeight, width: undefined });\n }\n } else {\n const nextWidth = rect.height * videoRatio;\n if (nextWidth !== width) {\n this.setState({ height: undefined, width: nextWidth });\n }\n }\n }\n\n // remember the state of the text tracks for subsequent rendering\n const { textTracks } = video;\n if (textTracks.length > 0) {\n if (textTracks.length === 1) {\n const active = textTracks[0].mode === 'showing';\n if (!captions || !captions[0] || captions[0].active !== active) {\n this.setState({ captions: [{ active }] });\n }\n } else {\n const nextCaptions = [];\n let set = false;\n for (let i = 0; i < textTracks.length; i += 1) {\n const track = textTracks[i];\n const active = track.mode === 'showing';\n nextCaptions.push({ label: track.label, active });\n if (!captions || !captions[i] || captions[i].active !== active) {\n set = true;\n }\n }\n if (set) {\n this.setState({ captions: nextCaptions });\n }\n }\n }\n }\n };\n\n renderControls() {\n const { controls, theme } = this.props;\n const {\n captions,\n currentTime,\n duration,\n interacting,\n percentagePlayed,\n playing,\n scrubberRef,\n scrubTime,\n volume,\n } = this.state;\n const over = controls === 'over';\n const background = over\n ? (theme.video.controls && theme.video.controls.background) || {\n color: 'dark-1',\n opacity: 'strong',\n }\n : undefined;\n const iconColor = over && (theme.video.icons.color || 'light-1');\n\n const formattedTime = formatTime(scrubTime || currentTime || duration);\n\n const Icons = {\n ClosedCaption: theme.video.icons.closedCaption,\n Configure: theme.video.icons.configure,\n FullScreen: theme.video.icons.fullScreen,\n Pause: theme.video.icons.pause,\n Play: theme.video.icons.play,\n ReduceVolume: theme.video.icons.reduceVolume,\n Volume: theme.video.icons.volume,\n };\n\n const captionControls = captions.map(caption => ({\n icon: caption.label ? (\n undefined\n ) : (\n \n ),\n label: caption.label,\n active: caption.active,\n onClick: () => this.showCaptions(caption.active ? -1 : 0),\n }));\n\n return (\n \n \n \n ) : (\n \n )\n }\n hoverIndicator=\"background\"\n onClick={playing ? this.pause : this.play}\n />\n \n \n \n \n this.setState({ scrubTime: undefined })}\n onClick={this.seek}\n />\n \n \n \n {formattedTime}\n \n \n }\n dropAlign={{ bottom: 'top', right: 'right' }}\n dropBackground={background}\n items={[\n {\n icon: ,\n onClick: volume <= 1 - VOLUME_STEP ? this.louder : undefined,\n close: false,\n },\n {\n icon: ,\n onClick: volume >= VOLUME_STEP ? this.quieter : undefined,\n close: false,\n },\n ...captionControls,\n {\n icon: ,\n onClick: this.fullscreen,\n },\n ]}\n />\n \n \n );\n }\n\n render() {\n const {\n alignSelf,\n autoPlay,\n children,\n controls,\n gridArea,\n loop,\n margin,\n theme,\n ...rest\n } = this.props;\n const { height, videoRef, width } = this.state;\n\n const controlsElement = controls ? this.renderControls() : undefined;\n\n let mouseEventListeners;\n if (controls === 'over') {\n mouseEventListeners = {\n onMouseEnter: this.interactionStart,\n onMouseMove: this.interactionStart,\n onTouchStart: this.interactionStart,\n };\n }\n\n let style;\n if (rest.fit === 'contain' && controls === 'over') {\n // constrain the size to fit the aspect ratio so the controls\n // overlap correctly\n if (width) {\n style = { width };\n } else if (height) {\n style = { height };\n }\n }\n\n return (\n \n \n {children}\n \n {controlsElement}\n \n );\n }\n}\n\nVideo.defaultProps = {\n controls: 'over',\n};\n\nObject.setPrototypeOf(Video.defaultProps, defaultProps);\n\nlet VideoDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n VideoDoc = require('./doc').doc(Video);\n}\nconst VideoWrapper = compose(\n withTheme,\n withForwardRef,\n)(VideoDoc || Video);\n\nexport { VideoWrapper as Video };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst FIT_MAP = {\n cover: 'cover',\n contain: 'contain',\n};\n\nconst fitStyle = css`\n flex: 1 1;\n min-height: 0;\n object-fit: ${props => FIT_MAP[props.fit]};\n`;\n\nconst StyledVideo = styled.video`\n max-width: 100%;\n ${props => props.fit && fitStyle} ::cue {\n background: ${props => props.theme.video.captions.background};\n }\n\n ${props => props.theme.video && props.theme.video.extend};\n`;\n\nStyledVideo.defaultProps = {};\nObject.setPrototypeOf(StyledVideo.defaultProps, defaultProps);\n\nconst StyledVideoContainer = styled.div`\n flex: 1 1;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n position: relative;\n ${genericStyles};\n`;\n\nStyledVideoContainer.defaultProps = {};\nObject.setPrototypeOf(StyledVideoContainer.defaultProps, defaultProps);\n\nconst positionStyle = css`\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n`;\n\nconst StyledVideoControls = styled.div`\n flex: 0 0;\n ${props => props.over && positionStyle} opacity: 0;\n transition: opacity 0.3s;\n ${props => (props.active ? 'opacity: 1;' : 'pointer-events: none')};\n`;\n\nStyledVideoControls.defaultProps = {};\nObject.setPrototypeOf(StyledVideoControls.defaultProps, defaultProps);\n\nconst headStyle = css`\n ::after {\n content: '';\n height: 100%;\n width: ${props => props.theme.global.edgeSize.xsmall};\n background: ${props =>\n normalizeColor(props.theme.video.scrubber.color, props.theme)};\n position: absolute;\n left: ${props => `${props.value}%`};\n }\n`;\n\nconst StyledVideoScrubber = styled.div`\n cursor: pointer;\n width: 100%;\n height: 100%;\n ${props => props.value && headStyle};\n`;\n\nStyledVideoScrubber.defaultProps = {};\nObject.setPrototypeOf(StyledVideoScrubber.defaultProps, defaultProps);\n\nexport {\n StyledVideo,\n StyledVideoContainer,\n StyledVideoControls,\n StyledVideoScrubber,\n};\n","export { WorldMap } from './WorldMap';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledWorldMap } from './StyledWorldMap';\n\n// The graphic is drawn as a rectangular grid using coordinates spaced\n// by FACTOR pixels. The contents have both an area boundary for interaction\n// and dots described as rows where each row is described by three values:\n// a starting coordinate and a length. This approach is more efficient than\n// describing it via SVG elements, keeping the code/library size smaller.\nconst CONTINENTS = [\n {\n name: 'Australia',\n origin: [74, 32],\n area: [[4, 0], [7, 1], [15, 7], [13, 9], [0, 6], [0, 2]],\n dots: [\n [4, 0, 1],\n [2, 1, 6],\n [0, 2, 9],\n [0, 3, 10],\n [0, 4, 10],\n [0, 5, 3],\n [5, 5, 5],\n [5, 6, 4],\n [15, 7, 1],\n [14, 8, 1],\n [13, 9, 1],\n ],\n },\n {\n name: 'Asia',\n origin: [52, 1],\n area: [\n [16, 0],\n [38, 5],\n [40, 7],\n [28, 17],\n [24, 25],\n [29, 29],\n [19, 29],\n [11, 24],\n [3, 23],\n [0, 20],\n [0, 19],\n [6, 13],\n [7, 6],\n ],\n dots: [\n [16, 0, 1],\n [17, 1, 2],\n [18, 2, 2],\n [15, 3, 6],\n [28, 3, 1],\n [30, 3, 1],\n [10, 4, 2],\n [13, 4, 10],\n [24, 4, 1],\n [9, 5, 22],\n [32, 5, 1],\n [38, 5, 1],\n [7, 6, 2],\n [10, 6, 1],\n [12, 6, 27],\n [7, 7, 34],\n [7, 8, 31],\n [7, 9, 26],\n [34, 9, 3],\n [7, 10, 22],\n [31, 10, 1],\n [33, 10, 1],\n [7, 11, 21],\n [32, 11, 2],\n [7, 12, 21],\n [32, 12, 1],\n [6, 13, 22],\n [32, 13, 1],\n [6, 14, 22],\n [5, 15, 22],\n [3, 16, 2],\n [6, 16, 20],\n [2, 17, 3],\n [6, 17, 16],\n [24, 17, 1],\n [28, 17, 1],\n [1, 18, 22],\n [26, 18, 2],\n [0, 19, 24],\n [0, 20, 5],\n [6, 20, 17],\n [2, 21, 5],\n [10, 21, 14],\n [2, 22, 5],\n [11, 22, 4],\n [16, 22, 4],\n [3, 23, 3],\n [11, 23, 2],\n [17, 23, 3],\n [23, 23, 1],\n [11, 24, 2],\n [18, 24, 2],\n [23, 24, 1],\n [24, 25, 1],\n [18, 26, 1],\n [22, 26, 1],\n [18, 27, 1],\n [20, 27, 4],\n [18, 28, 1],\n [21, 28, 1],\n [23, 28, 1],\n [26, 28, 3],\n [19, 29, 1],\n [28, 29, 2],\n ],\n },\n {\n // 21X, 40Y\n name: 'Africa',\n origin: [40, 19],\n area: [\n [3, 0],\n [6, 0],\n [11, 2],\n [16, 7],\n [16, 15],\n [11, 18],\n [9, 18],\n [0, 6],\n [0, 3],\n ],\n dots: [\n [3, 0, 4],\n [2, 1, 6],\n [9, 1, 2],\n [1, 2, 11],\n [0, 3, 13],\n [0, 4, 14],\n [0, 5, 14],\n [0, 6, 16],\n [1, 7, 16],\n [2, 8, 2],\n [6, 8, 11],\n [7, 9, 9],\n [7, 10, 8],\n [7, 11, 7],\n [8, 12, 7],\n [7, 13, 8],\n [7, 14, 7],\n [16, 14, 1],\n [8, 15, 5],\n [15, 15, 2],\n [8, 16, 5],\n [9, 17, 3],\n [9, 18, 3],\n ],\n },\n {\n name: 'Europe',\n origin: [39, 2],\n area: [\n [8, 0],\n [10, 0],\n [20, 2],\n [19, 11],\n [18, 13],\n [14, 16],\n [3, 16],\n [0, 7],\n ],\n dots: [\n [8, 0, 3],\n [9, 1, 1],\n [20, 2, 1],\n [19, 3, 1],\n [12, 4, 1],\n [19, 4, 1],\n [9, 5, 6],\n [9, 6, 7],\n [17, 6, 3],\n [0, 7, 1],\n [8, 7, 12],\n [7, 8, 3],\n [11, 8, 9],\n [7, 9, 3],\n [11, 9, 9],\n [4, 10, 1],\n [7, 10, 1],\n [9, 10, 1],\n [11, 10, 9],\n [3, 11, 2],\n [7, 11, 13],\n [4, 12, 1],\n [6, 12, 13],\n [4, 13, 15],\n [5, 14, 3],\n [9, 14, 4],\n [15, 14, 2],\n [3, 15, 3],\n [8, 15, 1],\n [10, 15, 5],\n [6, 15, 2],\n [3, 16, 2],\n [10, 16, 5],\n ],\n },\n {\n name: 'South America',\n origin: [22, 26],\n area: [[2, 0], [5, 0], [11, 4], [11, 8], [3, 18], [2, 17], [0, 4], [0, 3]],\n dots: [\n [2, 0, 4],\n [1, 1, 7],\n [1, 2, 7],\n [0, 3, 10],\n [0, 4, 12],\n [1, 5, 11],\n [2, 6, 9],\n [3, 7, 8],\n [3, 8, 8],\n [3, 9, 6],\n [3, 10, 6],\n [3, 11, 5],\n [3, 12, 3],\n [2, 13, 3],\n [2, 14, 3],\n [2, 15, 2],\n [2, 16, 2],\n [2, 17, 2],\n [3, 18, 1],\n ],\n },\n {\n name: 'North America',\n origin: [0, 0],\n area: [[21, 0], [39, 0], [39, 6], [22, 26], [16, 23], [2, 12], [0, 7]],\n dots: [\n [22, 0, 6],\n [29, 0, 1],\n [31, 0, 1],\n [33, 0, 5],\n [20, 1, 1],\n [22, 1, 1],\n [24, 1, 2],\n [27, 1, 13],\n [17, 2, 1],\n [20, 2, 5],\n [26, 2, 13],\n [13, 3, 1],\n [19, 3, 1],\n [21, 3, 3],\n [26, 3, 14],\n [14, 4, 1],\n [16, 4, 4],\n [21, 4, 3],\n [29, 4, 11],\n [12, 5, 3],\n [16, 5, 1],\n [18, 5, 1],\n [20, 5, 3],\n [24, 5, 1],\n [30, 5, 8],\n [14, 6, 3],\n [19, 6, 1],\n [22, 6, 4],\n [31, 6, 8],\n [0, 7, 15],\n [16, 7, 1],\n [18, 7, 4],\n [24, 7, 2],\n [30, 7, 7],\n [2, 8, 20],\n [24, 8, 3],\n [29, 8, 5],\n [2, 9, 20],\n [24, 9, 2],\n [30, 9, 3],\n [1, 10, 18],\n [23, 10, 2],\n [31, 10, 1],\n [2, 11, 2],\n [8, 11, 11],\n [23, 11, 2],\n [26, 11, 1],\n [2, 12, 1],\n [8, 12, 13],\n [24, 12, 3],\n [10, 13, 12],\n [23, 13, 5],\n [11, 14, 17],\n [11, 15, 9],\n [21, 15, 6],\n [28, 15, 2],\n [11, 16, 11],\n [23, 16, 4],\n [11, 17, 14],\n [12, 18, 11],\n [12, 19, 12],\n [13, 20, 9],\n [15, 21, 3],\n [22, 21, 1],\n [16, 22, 2],\n [16, 23, 2],\n [20, 23, 1],\n [23, 23, 1],\n [18, 24, 3],\n [21, 25, 1],\n [22, 26, 1],\n ],\n },\n];\n\n// FACTOR is the distance in pixels between coordinates\nconst FACTOR = 10;\n\nconst maxCoordinate = (a, b) => [Math.max(a[0], b[0]), Math.max(a[1], b[1])];\n// const minCoordinate = (a, b) =>\n// [Math.min(a[0], b[0]), Math.min(a[1], b[1])];\n\n// Based on https://stackoverflow.com/a/43861247\nconst MAP_LAT_BOTTOM = -50.0; // empirically determined\nconst MAP_LAT_BOTTOM_RAD = (MAP_LAT_BOTTOM * Math.PI) / 180;\nconst MAP_LON_LEFT = -171.0; // empirically determined\nconst MAP_LON_RIGHT = 184.0; // empirically determined\nconst MAP_LON_DELTA = MAP_LON_RIGHT - MAP_LON_LEFT;\n\nconst mapValues = extent => {\n const mapRadius = ((extent[0] / MAP_LON_DELTA) * 360) / (2 * Math.PI);\n const mapOffsetY = Math.round(\n (mapRadius / 2) *\n Math.log(\n (1 + Math.sin(MAP_LAT_BOTTOM_RAD)) / (1 - Math.sin(MAP_LAT_BOTTOM_RAD)),\n ),\n );\n return { mapRadius, mapOffsetY };\n};\n\nconst latLonToCoord = (latLon, origin, extent) => {\n const { mapRadius, mapOffsetY } = mapValues(extent);\n const x = Math.round(\n ((latLon[1] - MAP_LON_LEFT) * extent[0]) / MAP_LON_DELTA,\n );\n const latitudeRad = (latLon[0] * Math.PI) / 180;\n const y =\n extent[1] +\n mapOffsetY -\n Math.round(\n (mapRadius / 2) *\n Math.log((1 + Math.sin(latitudeRad)) / (1 - Math.sin(latitudeRad))),\n );\n return [x, y]; // the coordinate value of this point on the map image\n};\n\nconst coordToLatLon = (coord, origin, extent) => {\n const { mapRadius, mapOffsetY } = mapValues(extent);\n const a = (extent[1] + mapOffsetY - coord[1]) / mapRadius;\n const lat = (180 / Math.PI) * (2 * Math.atan(Math.exp(a)) - Math.PI / 2);\n const lon = (coord[0] * MAP_LON_DELTA) / extent[0] + MAP_LON_LEFT;\n return [lat, lon];\n};\n\nconst buildContinentState = ({ area, dots, origin }) => {\n let extent = [...origin];\n const stateDots = dots\n .map(segment => {\n const count = segment[2];\n const spots = [];\n for (let i = 0; i < count; i += 1) spots.push('h0');\n const dotCommands = spots.join(' m10,0 ');\n const x = FACTOR * (origin[0] + segment[0] + 1);\n const y = FACTOR * (origin[1] + segment[1] + 1);\n extent = maxCoordinate(extent, [\n origin[0] + segment[0] + segment[2],\n origin[1] + segment[1],\n ]);\n return `M${x},${y} ${dotCommands}`;\n })\n .join(' ');\n\n const stateArea = `${area\n .map((point, index) => {\n const x = FACTOR * (point[0] + origin[0] + 1);\n const y = FACTOR * (point[1] + origin[1] + 1);\n return `${index === 0 ? 'M' : 'L'}${x},${y}`;\n })\n .join(' ')} Z`;\n\n const mid = [\n origin[0] + (extent[0] - origin[0]) / 2,\n origin[1] + (extent[1] - origin[1]) / 2,\n ];\n return {\n area: stateArea,\n dots: stateDots,\n origin,\n extent,\n mid,\n };\n};\n\nconst buildState = () => {\n const continents = {};\n\n // Build the SVG paths describing the individual dots\n const origin = [0, 0];\n let extent = [0, 0];\n CONTINENTS.forEach(continent => {\n continents[continent.name] = buildContinentState(continent);\n extent = maxCoordinate(extent, continents[continent.name].extent);\n });\n\n return {\n continents,\n extent,\n origin,\n x: origin[0] * FACTOR,\n y: origin[1] * FACTOR,\n width: (extent[0] - origin[0] + 1) * FACTOR,\n height: (extent[1] - origin[1] + 2) * FACTOR,\n };\n};\n\nconst updateState = (state, { continents, places }) => {\n const nextState = { ...state };\n\n if (continents) {\n continents.forEach(continent => {\n nextState.continents[continent.name] = {\n ...state.continents[continent.name],\n ...continent,\n };\n });\n }\n\n nextState.places = (places || []).map(({ location, ...place }) => {\n const coords = latLonToCoord(location, state.origin, state.extent);\n return { coords, key: location.join(','), ...place };\n });\n\n return nextState;\n};\n\nconst buildInteractiveProps = (\n { name, onClick, onHover },\n activeFunc,\n active,\n) => ({\n role: 'button',\n 'aria-label': name,\n tabIndex: '0',\n onClick: onClick ? () => onClick(name) : undefined,\n onMouseOver: () => {\n if (!active) {\n activeFunc(name);\n if (onHover) {\n onHover(true);\n }\n }\n },\n onMouseLeave: () => {\n if (active) {\n activeFunc(undefined);\n if (onHover) {\n onHover(false);\n }\n }\n },\n onFocus: () => {\n // This moves the map unnecessarily. Instead, we should check\n // the position and scroll if it isn't already visible\n // this._worldMapRef.scrollIntoView();\n if (!active) {\n activeFunc(name);\n }\n },\n onBlur: () => {\n if (active) {\n activeFunc(undefined);\n }\n },\n});\n\nclass WorldMap extends Component {\n static getDerivedStateFromProps(nextProps, prevState) {\n if (!prevState.continents) {\n return updateState(buildState(), nextProps);\n }\n return updateState(prevState, nextProps);\n }\n\n state = {};\n\n onMouseOver = () => {\n // track when we're over the map to avoid dealing with mouse moves\n this.setState({ over: true });\n };\n\n onMouseMove = event => {\n const { width } = this.state;\n // determine the map coordinates for where the mouse is\n // containerRef uses the group so we can handle aspect ratio scaling\n const rect = this.containerRef.getBoundingClientRect();\n const scale = rect.width / width; // since the SVG viewBox might be scaled\n const coords = [\n Math.round((event.clientX - rect.left) / scale / FACTOR),\n Math.round((event.clientY - rect.top) / scale / FACTOR),\n ];\n this.setState({ activeCoords: coords });\n };\n\n onMouseLeave = () => {\n this.setState({ over: false, activeCoords: undefined });\n };\n\n render() {\n const {\n color,\n fill, // munged to avoid styled-components putting it in the DOM\n onSelectPlace,\n hoverColor,\n theme,\n ...rest\n } = this.props;\n delete rest.places;\n delete rest.continents;\n const {\n activeContinent,\n activeCoords,\n activePlace,\n continents: continentStates,\n extent,\n origin,\n over,\n places: placeStates,\n x,\n y,\n width,\n height,\n } = this.state;\n\n const continents = Object.keys(continentStates).map(name => {\n const {\n area,\n color: continentColor,\n dots,\n onClick,\n onHover,\n } = continentStates[name];\n const active = activeContinent && activeContinent === name;\n\n let interactiveProps = {};\n if (onClick || onHover) {\n interactiveProps = buildInteractiveProps(\n continentStates[name],\n activate => this.setState({ activeContinent: activate }),\n active,\n );\n }\n\n return (\n \n \n \n \n );\n });\n\n const places = placeStates.map(place => {\n const {\n color: placeColor,\n coords,\n key,\n name,\n onClick,\n onHover,\n ...restPlace\n } = place;\n const d = `M${FACTOR * coords[0]}, ${FACTOR * coords[1]} h0`;\n const active = activePlace && activePlace === name;\n\n let interactiveProps = {};\n if (onClick || onHover) {\n interactiveProps = buildInteractiveProps(\n place,\n activate => this.setState({ activePlace: activate }),\n active,\n );\n }\n\n return (\n \n );\n });\n\n // If the caller is interested in onSelectPlace changes, track where the\n let interactiveProps = {};\n if (onSelectPlace) {\n interactiveProps = {\n onMouseOver: this.onMouseOver,\n onMouseMove: over ? this.onMouseMove : undefined,\n onMouseLeave: this.onMouseLeave,\n };\n }\n\n let active;\n if (activeCoords) {\n const d = `M${FACTOR * activeCoords[0]}, ${FACTOR * activeCoords[1]} h0`;\n active = (\n \n onSelectPlace(coordToLatLon(activeCoords, origin, extent))\n }\n >\n \n \n );\n }\n\n return (\n \n {\n this.containerRef = ref;\n }}\n stroke=\"none\"\n fill=\"none\"\n fillRule=\"evenodd\"\n >\n {continents}\n \n {places}\n {active}\n \n );\n }\n}\n\nWorldMap.defaultProps = {};\nObject.setPrototypeOf(WorldMap.defaultProps, defaultProps);\n\nlet WorldMapDoc;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line global-require\n WorldMapDoc = require('./doc').doc(WorldMap);\n}\nconst WorldMapWrapper = compose(withTheme)(WorldMapDoc || WorldMap);\n\nexport { WorldMapWrapper as WorldMap };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = fillProp => {\n if (fillProp === 'horizontal') {\n return `\n width: 100%;\n height: unset;\n `;\n }\n if (fillProp === 'vertical') {\n return `\n width: unset;\n height: 100%;\n `;\n }\n if (fillProp) {\n return `\n width: 100%;\n height: 100%;\n `;\n }\n return '';\n};\n\n// undefined fillProp has width for backwards compatibility\nconst StyledWorldMap = styled.svg`\n ${genericStyles}\n ${props =>\n props.fillProp !== undefined ? fillStyle(props.fillProp) : 'width: 100%;'}\n ${props => props.theme.worldMap && props.theme.worldMap.extend};\n`;\n\nStyledWorldMap.defaultProps = {};\nObject.setPrototypeOf(StyledWorldMap.defaultProps, defaultProps);\n\nexport { StyledWorldMap };\n","// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nvar parseHexToRGB = function parseHexToRGB(color) {\n return color.replace(/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i, function (m, r, g, b) {\n return \"#\" + r + r + g + g + b + b;\n }).substring(1).match(/.{2}/g).map(function (x) {\n return parseInt(x, 16);\n });\n};\n\nvar getRGBArray = function getRGBArray(color) {\n if (/^#/.test(color)) {\n return parseHexToRGB(color);\n }\n\n if (/^rgb/.test(color)) {\n return color.match(/rgba?\\((\\s?[0-9]*\\s?),(\\s?[0-9]*\\s?),(\\s?[0-9]*\\s?).*?\\)/).splice(1);\n }\n\n return color;\n};\n\nexport var colorIsDark = function colorIsDark(color) {\n var _getRGBArray = getRGBArray(color),\n red = _getRGBArray[0],\n green = _getRGBArray[1],\n blue = _getRGBArray[2]; // http://www.had2know.com/technology/\n // color-contrast-calculator-web-design.html\n\n\n var brightness = (299 * red + 587 * green + 114 * blue) / 1000;\n return brightness < 125;\n};\nexport var normalizeColor = function normalizeColor(color, theme) {\n var colorSpec = theme.global.colors[color] || color; // If the color has a light or dark object, use that\n\n var result = colorSpec;\n\n if (theme.dark && colorSpec.dark) {\n result = colorSpec.dark;\n } else if (!theme.dark && colorSpec.light) {\n result = colorSpec.light;\n } // allow one level of indirection in color names\n\n\n if (result && theme.global.colors[result] && theme.global.colors[result] !== result) {\n result = normalizeColor(result, theme);\n }\n\n return result;\n};","import { css } from 'styled-components';\nimport { normalizeColor } from '../utils';\nexport var colorStyle = function colorStyle(name, value, theme, required) {\n return css([\"\", \":\", \";\"], name, normalizeColor(value, theme, required));\n};","import { css } from 'styled-components';\nexport var sizeStyle = function sizeStyle(name, value, theme) {\n return css([\"\", \":\", \";\"], name, theme.global.size[value] || value);\n};","export * from './styles';\nexport * from './utils';"],"sourceRoot":""}