From c5dec78e15bf53c7b04355074e6fb94303524a6b Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 13 Aug 2018 11:45:32 -0700 Subject: [PATCH 01/40] v2.0.0-beta --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 75a42a39bad..0a3f76808f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "primer-react", - "version": "1.0.1-beta", + "version": "2.0.0-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7932b7eccf8..3df616b87a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "primer-react", - "version": "1.0.1-beta", + "version": "2.0.0-beta", "description": "Primer react components", "main": "dist/index.umd.js", "module": "dist/index.esm.js", From 6553a0cce9a2a772ce466ff3d303bdd3a743c1fa Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:20:11 -0700 Subject: [PATCH 02/40] rename Box to BorderBox --- src/{Box.js => BorderBox.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/{Box.js => BorderBox.js} (74%) diff --git a/src/Box.js b/src/BorderBox.js similarity index 74% rename from src/Box.js rename to src/BorderBox.js index 6ed92fb9c96..18035cfa73f 100644 --- a/src/Box.js +++ b/src/BorderBox.js @@ -1,6 +1,6 @@ import {withSystemProps, LAYOUT} from './system-props' -const Box = withSystemProps( +const BorderBox = withSystemProps( { is: 'div', bg: 'white', @@ -11,4 +11,4 @@ const Box = withSystemProps( LAYOUT ) -export default Box +export default BorderBox From 4ebba82dcc9c039ec28fcb986143eeceba1818cc Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:20:31 -0700 Subject: [PATCH 03/40] rename Block to Box --- src/Block.js | 5 ----- src/Box.js | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 src/Block.js create mode 100644 src/Box.js diff --git a/src/Block.js b/src/Block.js deleted file mode 100644 index 5cf5500c074..00000000000 --- a/src/Block.js +++ /dev/null @@ -1,5 +0,0 @@ -import {withSystemProps, LAYOUT} from './system-props' - -const Block = withSystemProps('div', LAYOUT) - -export default Block diff --git a/src/Box.js b/src/Box.js new file mode 100644 index 00000000000..a421dbf8e21 --- /dev/null +++ b/src/Box.js @@ -0,0 +1,5 @@ +import {withSystemProps, LAYOUT} from './system-props' + +const Box = withSystemProps('div', LAYOUT) + +export default Box From 3567c0faf9b36ff3d963d1d5b4904d599137753a Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:21:33 -0700 Subject: [PATCH 04/40] fix update Box example --- examples/component-examples/BorderBox.js | 43 ++++++++++++++++++++++++ examples/component-examples/Box.js | 43 ------------------------ 2 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 examples/component-examples/BorderBox.js delete mode 100644 examples/component-examples/Box.js diff --git a/examples/component-examples/BorderBox.js b/examples/component-examples/BorderBox.js new file mode 100644 index 00000000000..35438581890 --- /dev/null +++ b/examples/component-examples/BorderBox.js @@ -0,0 +1,43 @@ +import React from 'react' +import {LiveEditor} from '@compositor/kit' +import {BorderBox, Box} from '../../src' + +const BorderBoxExample = { + name: 'BorderBox', + element: ( +
+ + This is a box`} scope={{BorderBox}} /> + + + This is a box with padding.`} scope={{BorderBox}} /> + + + This is a box with shadow.`} scope={{BorderBox}} /> + + + This is a box with a medium shadow.`} + scope={{BorderBox}} + /> + + + This is a box with a large shadow.`} + scope={{BorderBox}} + /> + + + This is a box with an extra-large shadow.`} + scope={{BorderBox}} + /> + + + This is a box with a green border.`} scope={{BorderBox}} /> + +
+ ) +} + +export default BorderBoxExample diff --git a/examples/component-examples/Box.js b/examples/component-examples/Box.js deleted file mode 100644 index 30ec974cdf0..00000000000 --- a/examples/component-examples/Box.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from 'react' -import {LiveEditor} from '@compositor/kit' -import {Box, Block} from '../../src' - -const BoxExample = { - name: 'Box', - element: ( -
- - This is a box`} scope={{Box}} /> - - - This is a box with padding.`} scope={{Box}} /> - - - This is a box with shadow.`} scope={{Box}} /> - - - This is a box with a medium shadow.`} - scope={{Box}} - /> - - - This is a box with a large shadow.`} - scope={{Box}} - /> - - - This is a box with an extra-large shadow.`} - scope={{Box}} - /> - - - This is a box with a green border.`} scope={{Box}} /> - -
- ) -} - -export default BoxExample From d26fae8752eb69ac3224066da796eb0cd2f17e38 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:22:15 -0700 Subject: [PATCH 05/40] updat index --- examples/component-examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/component-examples/index.js b/examples/component-examples/index.js index 492b05eaa31..bd55d0eaf1b 100644 --- a/examples/component-examples/index.js +++ b/examples/component-examples/index.js @@ -1,5 +1,5 @@ export {default as Avatar} from './Avatar' -export {default as Block} from './Block' +export {default as BorderBox} from './BorderBox' export {default as Box} from './Box' export {default as BranchName} from './BranchName' export {default as Buttons} from './Buttons' From ad6053e0480678711764b259d36377ad18abd06f Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:23:22 -0700 Subject: [PATCH 06/40] rename Block example to Box --- .../component-examples/{Block.js => Box.js} | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename examples/component-examples/{Block.js => Box.js} (74%) diff --git a/examples/component-examples/Block.js b/examples/component-examples/Box.js similarity index 74% rename from examples/component-examples/Block.js rename to examples/component-examples/Box.js index 2f6a4c84a9e..846fabc8a38 100644 --- a/examples/component-examples/Block.js +++ b/examples/component-examples/Box.js @@ -2,7 +2,7 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' import theme from '../../src/theme' -import {Block, Text, Heading} from '../../src' +import {Box, Text, Heading} from '../../src' const Mono = props => @@ -19,15 +19,15 @@ const colors = [...Object.entries(theme.colors)].reduce((keys, [key, value]) => const textColors = ['white', 'gray.5', 'black'] -const BlockExample = { - name: 'Block', +const BoxExample = { + name: 'Box', element: (
))} ))}
- color + color bg={`{color}`} @@ -45,24 +45,24 @@ const BlockExample = { {textColors.map(fg => ( - + {fg} - + - + {color} - +
Code Example - Danger, Will Robinson`} scope={{Block}} /> + Danger, Will Robinson`} scope={{Box}} />
) } -export default BlockExample +export default BoxExample From 4054c7d851045ae9caa5d35740726953a5576b5a Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:24:21 -0700 Subject: [PATCH 07/40] rename Block to Box in BorderBox example --- examples/component-examples/BorderBox.js | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/component-examples/BorderBox.js b/examples/component-examples/BorderBox.js index 35438581890..5bd908b7491 100644 --- a/examples/component-examples/BorderBox.js +++ b/examples/component-examples/BorderBox.js @@ -6,36 +6,36 @@ const BorderBoxExample = { name: 'BorderBox', element: (
- + This is a box`} scope={{BorderBox}} /> - - + + This is a box with padding.`} scope={{BorderBox}} /> - - + + This is a box with shadow.`} scope={{BorderBox}} /> - - + + This is a box with a medium shadow.`} scope={{BorderBox}} /> - - + + This is a box with a large shadow.`} scope={{BorderBox}} /> - - + + This is a box with an extra-large shadow.`} scope={{BorderBox}} /> - - + + This is a box with a green border.`} scope={{BorderBox}} /> - +
) } From bdc6579edd2e5ab90999a26269212a51c9d451be Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:24:42 -0700 Subject: [PATCH 08/40] update src index --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 68175f5d9fa..cb9e67d46f6 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ export {default as theme} from './theme' // Layout -export {default as Block} from './Block' +export {default as BorderBox} from './BorderBox' export {default as Box} from './Box' // Components From d53ded033bf4428c13495ea204d4a10e5c6bc505 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:27:36 -0700 Subject: [PATCH 09/40] update _app js --- examples/_app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/_app.js b/examples/_app.js index 332fe1e6ca7..32b7a089df6 100644 --- a/examples/_app.js +++ b/examples/_app.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types' import {NavLink} from 'react-router-dom' import Styles from './doc-components/Styles' import Octicon, {Package} from '@githubprimer/octicons-react' -import {Block, Link, Text, UnderlineNav, UnderlineNavLink, theme} from '../src' +import {Box, Link, Text, UnderlineNav, UnderlineNavLink, theme} from '../src' import {name, repository, version} from '../package.json' const pkg = `${name}@${version}` @@ -15,7 +15,7 @@ export default function Page({render}) { - + @@ -34,8 +34,8 @@ export default function Page({render}) { Sandbox - {render()} - + {render()} + ) From cc7546fc80b88e71f799d0c068cb6db34947708d Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:28:03 -0700 Subject: [PATCH 10/40] update Avatar example --- examples/component-examples/Avatar.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/component-examples/Avatar.js b/examples/component-examples/Avatar.js index 723ea4f3b7e..fe9cbd64405 100644 --- a/examples/component-examples/Avatar.js +++ b/examples/component-examples/Avatar.js @@ -1,35 +1,35 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Avatar} from '../../src' +import {Box, Avatar} from '../../src' const AvatarExample = { name: 'Avatar', element: (
- + `} scope={{Avatar}} /> - - + + `} scope={{Avatar}} /> - - + + `} scope={{Avatar}} /> - - + + `} scope={{Avatar}} /> - +
) } From eb0a5cb629a6945d0da7b185f0d9809d4ddce886 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:22 -0700 Subject: [PATCH 11/40] update Buttons --- examples/component-examples/Buttons.js | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/component-examples/Buttons.js b/examples/component-examples/Buttons.js index 75f2fed5cef..5c7e8fcbe62 100644 --- a/examples/component-examples/Buttons.js +++ b/examples/component-examples/Buttons.js @@ -2,43 +2,43 @@ import React from 'react' import {Hubot, Pencil, X} from '@githubprimer/octicons-react' import {LiveEditor} from '@compositor/kit' import ExampleHeading from '../doc-components/ExampleHeading' -import {Block, Button, ButtonLink, ButtonDanger, ButtonPrimary, ButtonOutline, OcticonButton, Text} from '../../src' +import {Box, Button, ButtonLink, ButtonDanger, ButtonPrimary, ButtonOutline, OcticonButton, Text} from '../../src' const ButtonExample = { name: 'Buttons', element: (
- + Button `} scope={{Button}} /> - - + + Button small `} scope={{Button}} /> - - + + Button large `} scope={{Button}} /> - - + + ButtonDanger `} scope={{ButtonDanger}} /> - - + + ButtonPrimary `} scope={{ButtonPrimary}} /> - - + + ButtonOutline `} scope={{ButtonOutline}} /> - - + + Button block `} scope={{Button}} /> - - + + Button linkStyle `} scope={{Button}} /> - - + + This is an {''} styled as a button`} scope={{ButtonLink}} /> - - + + Octicon Buttons alert('edit')} mr={3} />`} @@ -48,13 +48,13 @@ const ButtonExample = { code={` alert('close')} mr={3} />`} scope={{OcticonButton, Text, X}} /> - + alert('beep boop')} />`} scope={{OcticonButton, Hubot}} /> - - + +
) } From b61c783f8cfb7ed64ada6ab666c59525e9a17355 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:27 -0700 Subject: [PATCH 12/40] update CircleBadge --- examples/component-examples/CircleBadge.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/component-examples/CircleBadge.js b/examples/component-examples/CircleBadge.js index b9b87fe67e1..9f7ea165ba9 100644 --- a/examples/component-examples/CircleBadge.js +++ b/examples/component-examples/CircleBadge.js @@ -1,7 +1,7 @@ import React from 'react' import Octicon, {Zap} from '@githubprimer/octicons-react' import {LiveEditor} from '@compositor/kit' -import {Block, CircleBadge, Heading} from '../../src' +import {Box, CircleBadge, Heading} from '../../src' const octicon = ` @@ -17,18 +17,18 @@ const CircleBadgeExample = { name: 'CircleBadge', element: (
- + Small, medium & large - - + + With Octicon as child - - + + {`With as a child & bg prop`} - +
) } From 9192d5951603d575acc61d3281d84c518ea10905 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:33 -0700 Subject: [PATCH 13/40] update Colors --- examples/component-examples/Colors.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/component-examples/Colors.js b/examples/component-examples/Colors.js index 36e3c2354b1..d6a93e2716a 100644 --- a/examples/component-examples/Colors.js +++ b/examples/component-examples/Colors.js @@ -1,5 +1,5 @@ import React from 'react' -import {Block, theme} from '../../src' +import {Box, theme} from '../../src' import Swatch from '../doc-components/Swatch' const ColorsExample = { @@ -12,17 +12,17 @@ const ColorsExample = { ))}
- - - - - - - - - - - + + + + + + + + + + +
) From 85e7b5ce7a9fff20ec8b55f7efcf005e0d29d8b2 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:38 -0700 Subject: [PATCH 14/40] update Details --- examples/component-examples/Details.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/component-examples/Details.js b/examples/component-examples/Details.js index 38f18dd8e95..2e566cb3840 100644 --- a/examples/component-examples/Details.js +++ b/examples/component-examples/Details.js @@ -1,7 +1,7 @@ /* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Details} from '../../src' +import {Box, Details} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' const example1 = `
@@ -26,18 +26,18 @@ const DetailsExample = { name: 'Details', element: (
- + With static children - - + + With children as a function - - + + With render prop 'hi'} />`} scope={{Details}} /> - +
) } From 5a0beb9c0d3d54993f2b86fc9f2ac60a69b83dd3 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:43 -0700 Subject: [PATCH 15/40] update DonutChart --- examples/component-examples/DonutChart.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/component-examples/DonutChart.js b/examples/component-examples/DonutChart.js index b52e1522810..48717582e49 100644 --- a/examples/component-examples/DonutChart.js +++ b/examples/component-examples/DonutChart.js @@ -1,6 +1,6 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, DonutChart, Text, DonutSlice, theme} from '../../src' +import {Box, DonutChart, Text, DonutSlice, theme} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' const dataPropExample = ` @@ -53,24 +53,24 @@ const DonutChartExample = { name: 'DonutChart', element: (
- + With data prop - - + + With DonutSlice children - - + + With custom fill colors - +
) } From c5d79c3cfb93b684f0a78c7c0f73a54be67f4a5f Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:49 -0700 Subject: [PATCH 16/40] update Dropdown --- examples/component-examples/Dropdown.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/component-examples/Dropdown.js b/examples/component-examples/Dropdown.js index 76c0a2066aa..0756a9b1fbd 100644 --- a/examples/component-examples/Dropdown.js +++ b/examples/component-examples/Dropdown.js @@ -1,6 +1,6 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Dropdown, Link} from '../../src' +import {Box, Dropdown, Link} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' const dropdownPrimary = ` @@ -27,24 +27,24 @@ const dropdownTitle = ` ` -const scope = {Block, Dropdown, Link} +const scope = {Box, Dropdown, Link} const DropdownExample = { name: 'Dropdown', element: (
- + Dropdown Primary - - + + Dropdown - - + + Dropdown with title - +
) } From 4a8f4227c8992e79bf6609eb47c75d42e16ff2e5 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:33:55 -0700 Subject: [PATCH 17/40] update FilterList --- examples/component-examples/FilterList.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/component-examples/FilterList.js b/examples/component-examples/FilterList.js index d5304fcc2e8..a933c0277c1 100644 --- a/examples/component-examples/FilterList.js +++ b/examples/component-examples/FilterList.js @@ -1,6 +1,6 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, FilterList, FilterListItem} from '../../src' +import {Box, FilterList, FilterListItem} from '../../src' const filterListCode = ` First Filter @@ -20,12 +20,12 @@ const FilterListExample = { name: 'Filter List', element: (
- + - - + + - +
) } From c41755835944cd35686c801d9d0ced1240496cdf Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:02 -0700 Subject: [PATCH 18/40] update Flash --- examples/component-examples/Flash.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/component-examples/Flash.js b/examples/component-examples/Flash.js index 3fa1c8ffdb7..932d17c47d3 100644 --- a/examples/component-examples/Flash.js +++ b/examples/component-examples/Flash.js @@ -1,26 +1,26 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Flash} from '../../src' +import {Box, Flash} from '../../src' const FlashExample = { name: 'Flash', element: (
- + Flash `} scope={{Flash}} /> - - + + Flash yellow `} scope={{Flash}} /> - - + + Flash red `} scope={{Flash}} /> - - + + Flash green `} scope={{Flash}} /> - - + + Flash full `} scope={{Flash}} /> - +
) } From e97a76e762f3c7da591b6d1a07851413e0024be8 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:06 -0700 Subject: [PATCH 19/40] update Flex --- examples/component-examples/Flex.js | 64 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/examples/component-examples/Flex.js b/examples/component-examples/Flex.js index 1fc6425f34a..338b985d782 100644 --- a/examples/component-examples/Flex.js +++ b/examples/component-examples/Flex.js @@ -1,6 +1,6 @@ import React from 'react' import {PropsForm, LiveEditor} from '@compositor/kit' -import {Block, FlexContainer, FlexItem} from '../../src' +import {Box, FlexContainer, FlexItem} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' const propObj = { @@ -13,55 +13,55 @@ const propObj = { const example1 = ` - + Item 1 - + - + Item 2 - + - + Item 3 - + ` const example2 = ` - + Item 1 - + - + Item 2 - + - + Item 3 - + ` const example3 = ` - + Item 1 - + - + Item 2 - + - + Item 3 - + ` @@ -84,21 +84,21 @@ const FlexExample = { height={300} border > - + Item 1 - - + + Item 2 - - + + Item 3 - - + + Item 4 - - + + Item 5 - + {Object.keys(propObj).map(key => ( @@ -107,11 +107,11 @@ const FlexExample = { ))} FlexContainer + FlexItems set to flexAuto - + FlexContainer + FlexItems with first item set to alignSelf='center' - + FlexContainer + FlexItems using tag prop set to "p" - + ) } From 2aae4f2c74b70a404b274ed538197a041321587c Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:12 -0700 Subject: [PATCH 20/40] update Label --- examples/component-examples/Label.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/component-examples/Label.js b/examples/component-examples/Label.js index d88092e081c..84c55a183b4 100644 --- a/examples/component-examples/Label.js +++ b/examples/component-examples/Label.js @@ -1,22 +1,22 @@ /* eslint-disable jsx-a11y/label-has-for */ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Label} from '../../src' +import {Box, Label} from '../../src' const LabelExample = { name: 'Label', element: (
- + Default label`} scope={{Label}} /> Darker gray label`} scope={{Label}} /> Orange label`} scope={{Label}} /> Green label`} scope={{Label}} /> - - + + Default outline label`} scope={{Label}} /> Green outline label`} scope={{Label}} /> - +
) } From cc3f6d9fe578ca95ccc76ac2b7b6e8d350f26860 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:16 -0700 Subject: [PATCH 21/40] update Link --- examples/component-examples/Link.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/component-examples/Link.js b/examples/component-examples/Link.js index d5e2b7ed9d4..29515efb7a8 100644 --- a/examples/component-examples/Link.js +++ b/examples/component-examples/Link.js @@ -1,23 +1,23 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Block, Link} from '../../src' +import {Box, Link} from '../../src' const LinkExample = { name: 'Link', element: (
- + Link`} scope={{Link}} /> - - + + Link muted`} scope={{Link}} /> - - + + Link gray`} scope={{Link}} /> - - + + Link gray-dark`} scope={{Link}} /> - +
) } From cdab5868925d551322db5946e89d55c85174eb62 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:21 -0700 Subject: [PATCH 22/40] update MergeStatus --- examples/component-examples/MergeStatus.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/component-examples/MergeStatus.js b/examples/component-examples/MergeStatus.js index c2a7255a7f7..e59c25170b7 100644 --- a/examples/component-examples/MergeStatus.js +++ b/examples/component-examples/MergeStatus.js @@ -1,23 +1,23 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {MergeStatus, Block} from '../../src' +import {MergeStatus, Box} from '../../src' const MergeStatusExample = { name: 'MergeStatus', element: (
- + `} scope={{MergeStatus}} /> - - + + `} scope={{MergeStatus}} /> - - + + `} scope={{MergeStatus}} /> - - + + `} scope={{MergeStatus}} /> - +
) } From 0cf9854622f9c7ffd2cb9d702c6a03d43a1fe0d5 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:27 -0700 Subject: [PATCH 23/40] update StateLabel --- examples/component-examples/StateLabel.js | 84 +++++++++++------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/examples/component-examples/StateLabel.js b/examples/component-examples/StateLabel.js index 6c1ebb10a74..4d01b3b4015 100644 --- a/examples/component-examples/StateLabel.js +++ b/examples/component-examples/StateLabel.js @@ -1,50 +1,50 @@ import React from 'react' import Octicon, {GitBranch} from '@githubprimer/octicons-react' import {LiveEditor} from '@compositor/kit' -import {Block, StateLabel} from '../../src' +import {Box, StateLabel} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' -const example1 = ` +const example1 = ` Open - - + + Closed - - + + Merged -` +` -const example2 = ` +const example2 = ` Unknown - - + + Open - - + + Closed - - + + Merged - - + + Reopened - + ` -const example3 = ` +const example3 = ` Invalid - - + + Green - - + + Red - - + + Purple -` +` -const example4 = ` +const example4 = ` Unknown Open @@ -58,9 +58,9 @@ const example4 = ` Reopened -` +` -const example5 = ` +const example5 = ` Invalid @@ -76,29 +76,29 @@ const example5 = ` }> Custom Octicon -` +` const StateLabelExample = { name: 'StateLabel', element: (
- - + + By state (Octicons built in) - - - + + + By color - - - + + + Small, by state - - - + + + Small, by color - - + +
) } From 9aa1d2bbfc1c73f48e27da36d22af6de159b17b4 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:33 -0700 Subject: [PATCH 24/40] update Tooltip --- examples/component-examples/Tooltip.js | 36 +++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/component-examples/Tooltip.js b/examples/component-examples/Tooltip.js index 761b9a2cbd3..f58594d553b 100644 --- a/examples/component-examples/Tooltip.js +++ b/examples/component-examples/Tooltip.js @@ -1,21 +1,21 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' -import {Box, Block, Tooltip} from '../../src' +import {BorderBox, Box, Tooltip} from '../../src' import ExampleHeading from '../doc-components/ExampleHeading' -const basicExample = ` +const basicExample = ` Text with a tooltip -` +` const directionExample = dir => - ` + ` Tooltip direction="${dir}" - + ` -const wrapExample = ` +const wrapExample = ` > Word wrapping tooltip -` +` const alignmentExample = align => - ` + ` Tooltip align="${align}" -` +` -const noDelayExample = ` +const noDelayExample = ` Text with a tooltip -` +` const TooltipExample = { name: 'Tooltip', element: (
Basic Tooltip - - + + Directions {Tooltip.directions.map(dir => ( - + ))} Alignment {Tooltip.alignments.map(align => ( - + ))} Word wrap - + No Delay - - + +
) } From 79cf7047584425c6874abafc1ca3777f97e0d5b5 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:39 -0700 Subject: [PATCH 25/40] update UnderlineNav --- examples/component-examples/UnderlineNav.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/component-examples/UnderlineNav.js b/examples/component-examples/UnderlineNav.js index c2d983b1152..8a49beed964 100644 --- a/examples/component-examples/UnderlineNav.js +++ b/examples/component-examples/UnderlineNav.js @@ -3,7 +3,7 @@ import React from 'react' import {LiveEditor} from '@compositor/kit' import {NavLink} from 'react-router-dom' import ExampleHeading from '../doc-components/ExampleHeading' -import {Block, Link, Text, UnderlineNav, UnderlineNavLink} from '../../src' +import {Box, Link, Text, UnderlineNav, UnderlineNavLink} from '../../src' const underlineNavLinkExample = ` @@ -23,14 +23,14 @@ export default { name: 'UnderlineNav', element: (
- + Using {''} - + - + Using {''} from react-router @@ -41,7 +41,7 @@ export default { This ensures that the NavLink gets activeClassName='selected'.

-
+
) } From 81a7d8c297ae1b49b90fca73d581a525bc7601e8 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:43 -0700 Subject: [PATCH 26/40] update demos --- examples/demos.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/demos.js b/examples/demos.js index dac85ce2903..b8c411ef2c1 100644 --- a/examples/demos.js +++ b/examples/demos.js @@ -3,13 +3,13 @@ import {Library, LiveEditor} from '@compositor/kit' import SideNav from './doc-components/SideNav' import MergeBox from './demos/MergeBox' import MergeButton from './demos/MergeButton' -import {Block} from '../src' +import {Box} from '../src' const examples = [ { name: 'MergeBox', element: ( - + `} scope={{MergeBox}} /> - + ) }, { name: 'MergeButton', element: ( - + `} scope={{MergeButton}} /> - + ) } ] From e472ca2aa2b141969e6564fcb90760aee603509b Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:49 -0700 Subject: [PATCH 27/40] update MergeActions --- examples/demos/MergeActions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demos/MergeActions.js b/examples/demos/MergeActions.js index 4bec98dfa6d..4e26d46fd0c 100644 --- a/examples/demos/MergeActions.js +++ b/examples/demos/MergeActions.js @@ -1,11 +1,11 @@ import React from 'react' import PropTypes from 'prop-types' -import {Block, ButtonLink, Link, Text} from '../../src' +import {Box, ButtonLink, Link, Text} from '../../src' import MergeButton from './MergeButton' const MergeActions = ({numCommits, onClick, desktopUrl, state}) => { return ( - + You can also @@ -13,7 +13,7 @@ const MergeActions = ({numCommits, onClick, desktopUrl, state}) => { or view command line instructions. - + ) } From 2a14a6c03180464aaff0a87b2a022e680a1b5719 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:34:55 -0700 Subject: [PATCH 28/40] update MergeButton --- examples/demos/MergeButton.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demos/MergeButton.js b/examples/demos/MergeButton.js index ac9ef426e88..6a1318cdf9c 100644 --- a/examples/demos/MergeButton.js +++ b/examples/demos/MergeButton.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import {Block, Button, CaretBox, Details, Text} from '../../src' +import {Box, Button, CaretBox, Details, Text} from '../../src' const MergeButton = ({numCommits, onClick, primary}) => { const arrowStyles = { @@ -36,7 +36,7 @@ const MergeButton = ({numCommits, onClick, primary}) => { - +
  • @@ -65,7 +65,7 @@ const MergeButton = ({numCommits, onClick, primary}) => {
-
+ )}
From e4b74bb21b0f5c66959616bd647732b99e009c51 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:35:00 -0700 Subject: [PATCH 29/40] update MergeDetail --- examples/demos/MergeDetail.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/demos/MergeDetail.js b/examples/demos/MergeDetail.js index 7fd5a52980f..f4728f34da7 100644 --- a/examples/demos/MergeDetail.js +++ b/examples/demos/MergeDetail.js @@ -1,7 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import {Check} from '@githubprimer/octicons-react' -import {Block, CircleOcticon, Text} from '../../src' +import {Box, CircleOcticon, Text} from '../../src' const stateColorMap = { ready: 'green.5', @@ -13,17 +13,17 @@ const stateColorMap = { const MergeDetail = ({state}) => { return (
- + - - + + This branch has no conflicts with the base branch Merging can be performed automatically - +
) } From 8b96dc7f141d346ed00d9d7a4afb1f79eea34857 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:35:06 -0700 Subject: [PATCH 30/40] update SideNav --- examples/doc-components/SideNav.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/doc-components/SideNav.js b/examples/doc-components/SideNav.js index fb6c66180cc..cb7b7fa894e 100644 --- a/examples/doc-components/SideNav.js +++ b/examples/doc-components/SideNav.js @@ -1,10 +1,10 @@ import React from 'react' import PropTypes from 'prop-types' import {NavLink} from 'react-router-dom' -import {Block} from '../../src' +import {Box} from '../../src' const SideNav = ({title, examples}) => ( - + - + ) SideNav.propTypes = { From 9d5907b4c88723717eeb41833f842649447e95ef Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:35:11 -0700 Subject: [PATCH 31/40] update sandbox --- examples/sandbox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/sandbox.js b/examples/sandbox.js index e36ef3e930d..9dfa57882f4 100644 --- a/examples/sandbox.js +++ b/examples/sandbox.js @@ -7,15 +7,15 @@ import * as components from '../src' Object.assign(components, {NavLink}) const code = ` - + Hello World! All of the primer-react components are available in this sandbox! - + This is a box with some mono text. - -` + +` const Sandbox = () => From 7f468ad2b03e6e18eb063ceefa88efe811f30a8e Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:35:36 -0700 Subject: [PATCH 32/40] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc814f57050..0b894ca7f45 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ All of our components are exported by name from `primer-react`, so you can impor ```js import { - Block, + Box, Button, Heading, Text From 7accefa44c67d9f977c6fd0a07d33a255feaed15 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:36:36 -0700 Subject: [PATCH 33/40] update BorderBox tests --- src/__tests__/BorderBox.js | 50 ++++++++++++++++++++++++++++++++++++++ src/__tests__/Box.js | 50 -------------------------------------- 2 files changed, 50 insertions(+), 50 deletions(-) create mode 100644 src/__tests__/BorderBox.js delete mode 100644 src/__tests__/Box.js diff --git a/src/__tests__/BorderBox.js b/src/__tests__/BorderBox.js new file mode 100644 index 00000000000..affdeebe2f2 --- /dev/null +++ b/src/__tests__/BorderBox.js @@ -0,0 +1,50 @@ +import React from 'react' +import BorderBox from '../BorderBox' +import {renderClasses} from '../utils/testing' + +xdescribe('BorderBox', () => { + it('is a system component', () => { + expect(BorderBox.systemComponent).toEqual(true) + }) + + const defaultClasses = ['border', 'bg-white', 'rounded-1'] + it('renders default classes', () => { + expect(renderClasses()).toEqual(defaultClasses) + }) + + it('renders margin', () => { + expect(renderClasses()).toEqual(['m-1', ...defaultClasses]) + expect(renderClasses()).toEqual([ + 'm-0', + 'm-sm-1', + 'm-md-2', + 'm-lg-3', + 'm-xl-4', + ...defaultClasses + ]) + expect(renderClasses()).toEqual(['m-sm-1', 'm-lg-3', ...defaultClasses]) + }) + + it('renders padding', () => { + expect(renderClasses()).toEqual(['p-1', ...defaultClasses]) + expect(renderClasses()).toEqual([ + 'p-0', + 'p-sm-1', + 'p-md-2', + 'p-lg-3', + 'p-xl-4', + ...defaultClasses + ]) + expect(renderClasses()).toEqual(['p-sm-1', 'p-lg-3', ...defaultClasses]) + }) + + it('renders borders', () => { + expect(renderClasses()).toEqual(['border', 'bg-white', 'rounded-1']) + expect(renderClasses()).toEqual([ + 'border-left', + 'border-green', + 'bg-white', + 'rounded-1' + ]) + }) +}) diff --git a/src/__tests__/Box.js b/src/__tests__/Box.js deleted file mode 100644 index 224a1a912b2..00000000000 --- a/src/__tests__/Box.js +++ /dev/null @@ -1,50 +0,0 @@ -import React from 'react' -import Box from '../Box' -import {renderClasses} from '../utils/testing' - -xdescribe('Box', () => { - it('is a system component', () => { - expect(Box.systemComponent).toEqual(true) - }) - - const defaultClasses = ['border', 'bg-white', 'rounded-1'] - it('renders default classes', () => { - expect(renderClasses()).toEqual(defaultClasses) - }) - - it('renders margin', () => { - expect(renderClasses()).toEqual(['m-1', ...defaultClasses]) - expect(renderClasses()).toEqual([ - 'm-0', - 'm-sm-1', - 'm-md-2', - 'm-lg-3', - 'm-xl-4', - ...defaultClasses - ]) - expect(renderClasses()).toEqual(['m-sm-1', 'm-lg-3', ...defaultClasses]) - }) - - it('renders padding', () => { - expect(renderClasses()).toEqual(['p-1', ...defaultClasses]) - expect(renderClasses()).toEqual([ - 'p-0', - 'p-sm-1', - 'p-md-2', - 'p-lg-3', - 'p-xl-4', - ...defaultClasses - ]) - expect(renderClasses()).toEqual(['p-sm-1', 'p-lg-3', ...defaultClasses]) - }) - - it('renders borders', () => { - expect(renderClasses()).toEqual(['border', 'bg-white', 'rounded-1']) - expect(renderClasses()).toEqual([ - 'border-left', - 'border-green', - 'bg-white', - 'rounded-1' - ]) - }) -}) From 599343beeac41f82a9cec40998cee214f5c5bdf9 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:37:20 -0700 Subject: [PATCH 34/40] update Block -> Box tests --- src/__tests__/Block.js | 75 ------------------------------------------ src/__tests__/Box.js | 75 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 75 deletions(-) delete mode 100644 src/__tests__/Block.js create mode 100644 src/__tests__/Box.js diff --git a/src/__tests__/Block.js b/src/__tests__/Block.js deleted file mode 100644 index d051d410512..00000000000 --- a/src/__tests__/Block.js +++ /dev/null @@ -1,75 +0,0 @@ -import React from 'react' -import Block from '../Block' -import theme from '../theme' -import {render} from '../utils/testing' -import {COMMON} from '../system-props' - -describe('Block', () => { - it('is a system component', () => { - expect(Block.systemComponent).toEqual(true) - }) - - it('implements layout system props', () => { - expect(Block).toImplementSystemProps(COMMON) - // FIXME - // expect(Block).toImplementSystemProps(LAYOUT) - }) - - it('renders without any props', () => { - expect(render()).toMatchSnapshot() - }) - - it('renders margin', () => { - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - }) - - it('renders padding', () => { - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - }) - - describe('borders', () => { - it('handles border prop', () => { - expect(render()).toMatchSnapshot() - }) - it('handles a single border edge', () => { - expect(render()).toMatchSnapshot() - }) - it('handles multiple border edges', () => { - expect(render()).toMatchSnapshot() - }) - it('handles just a border color', () => { - expect(render()).toMatchSnapshot() - }) - }) - - it('respects display', () => { - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - }) - - it('respects position', () => { - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - }) - - it('respects bg', () => { - expect(render()).toMatchSnapshot() - }) - - it('respects color', () => { - expect(render()).toMatchSnapshot() - }) - - it('renders shadow', () => { - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - expect(render()).toMatchSnapshot() - }) -}) diff --git a/src/__tests__/Box.js b/src/__tests__/Box.js new file mode 100644 index 00000000000..3f68094c03a --- /dev/null +++ b/src/__tests__/Box.js @@ -0,0 +1,75 @@ +import React from 'react' +import Box from '../Box' +import theme from '../theme' +import {render} from '../utils/testing' +import {COMMON} from '../system-props' + +describe('Box', () => { + it('is a system component', () => { + expect(Box.systemComponent).toEqual(true) + }) + + it('implements layout system props', () => { + expect(Box).toImplementSystemProps(COMMON) + // FIXME + // expect(Box).toImplementSystemProps(LAYOUT) + }) + + it('renders without any props', () => { + expect(render()).toMatchSnapshot() + }) + + it('renders margin', () => { + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + }) + + it('renders padding', () => { + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + }) + + describe('borders', () => { + it('handles border prop', () => { + expect(render()).toMatchSnapshot() + }) + it('handles a single border edge', () => { + expect(render()).toMatchSnapshot() + }) + it('handles multiple border edges', () => { + expect(render()).toMatchSnapshot() + }) + it('handles just a border color', () => { + expect(render()).toMatchSnapshot() + }) + }) + + it('respects display', () => { + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + }) + + it('respects position', () => { + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + }) + + it('respects bg', () => { + expect(render()).toMatchSnapshot() + }) + + it('respects color', () => { + expect(render()).toMatchSnapshot() + }) + + it('renders shadow', () => { + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + expect(render()).toMatchSnapshot() + }) +}) From 7706e8f6a73e5e6aed39d36ac5af563e3d9e460c Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:37:51 -0700 Subject: [PATCH 35/40] update Dropdown --- src/Dropdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dropdown.js b/src/Dropdown.js index a75be4efcb5..edd43c2bb0d 100644 --- a/src/Dropdown.js +++ b/src/Dropdown.js @@ -4,7 +4,7 @@ import classnames from 'classnames' import Octicon from './Octicon' import {TriangleDown} from '@githubprimer/octicons-react' import Button from './Button' -import Block from './Block' +import Box from './Box' import Caret from './Caret' import Details from './Details' import FlexContainer from './FlexContainer' @@ -21,7 +21,7 @@ function Dropdown({title, scheme, children, className, ...rest}) { {title} - {children} - + )} From 38ff4d29b02a791704876ba350e2cc3ae55ef316 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:41:58 -0700 Subject: [PATCH 36/40] update snaps --- .../{Block.js.snap => Box.js.snap} | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) rename src/__tests__/__snapshots__/{Block.js.snap => Box.js.snap} (74%) diff --git a/src/__tests__/__snapshots__/Block.js.snap b/src/__tests__/__snapshots__/Box.js.snap similarity index 74% rename from src/__tests__/__snapshots__/Block.js.snap rename to src/__tests__/__snapshots__/Box.js.snap index 447f0881e42..dbd32929808 100644 --- a/src/__tests__/__snapshots__/Block.js.snap +++ b/src/__tests__/__snapshots__/Box.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Block borders handles a single border edge 1`] = ` +exports[`Box borders handles a single border edge 1`] = ` .emotion-0 { border-left: 1px solid; border-color: #28a745; @@ -11,7 +11,7 @@ exports[`Block borders handles a single border edge 1`] = ` /> `; -exports[`Block borders handles border prop 1`] = ` +exports[`Box borders handles border prop 1`] = ` .emotion-0 { border: 1px solid; } @@ -21,7 +21,7 @@ exports[`Block borders handles border prop 1`] = ` /> `; -exports[`Block borders handles just a border color 1`] = ` +exports[`Box borders handles just a border color 1`] = ` .emotion-0 { border-color: #d73a49; } @@ -31,7 +31,7 @@ exports[`Block borders handles just a border color 1`] = ` /> `; -exports[`Block borders handles multiple border edges 1`] = ` +exports[`Box borders handles multiple border edges 1`] = ` .emotion-0 { border-right: 1px solid; border-left: 1px solid; @@ -43,7 +43,7 @@ exports[`Block borders handles multiple border edges 1`] = ` /> `; -exports[`Block renders margin 1`] = ` +exports[`Box renders margin 1`] = ` .emotion-0 { margin: 4px; } @@ -53,7 +53,7 @@ exports[`Block renders margin 1`] = ` /> `; -exports[`Block renders margin 2`] = ` +exports[`Box renders margin 2`] = ` .emotion-0 { margin: 0px; } @@ -81,7 +81,7 @@ exports[`Block renders margin 2`] = ` /> `; -exports[`Block renders margin 3`] = ` +exports[`Box renders margin 3`] = ` .emotion-0 { margin: 4px; } @@ -109,7 +109,7 @@ exports[`Block renders margin 3`] = ` /> `; -exports[`Block renders padding 1`] = ` +exports[`Box renders padding 1`] = ` .emotion-0 { padding: 4px; } @@ -119,7 +119,7 @@ exports[`Block renders padding 1`] = ` /> `; -exports[`Block renders padding 2`] = ` +exports[`Box renders padding 2`] = ` .emotion-0 { padding: 0px; } @@ -147,7 +147,7 @@ exports[`Block renders padding 2`] = ` /> `; -exports[`Block renders padding 3`] = ` +exports[`Box renders padding 3`] = ` .emotion-0 { padding: 4px; } @@ -175,7 +175,7 @@ exports[`Block renders padding 3`] = ` /> `; -exports[`Block renders shadow 1`] = ` +exports[`Box renders shadow 1`] = ` .emotion-0 { box-shadow: 0 1px 1px rgba(27,31,35,0.1); } @@ -185,7 +185,7 @@ exports[`Block renders shadow 1`] = ` /> `; -exports[`Block renders shadow 2`] = ` +exports[`Box renders shadow 2`] = ` .emotion-0 { box-shadow: 0 1px 5px rgba(27,31,35,0.15); } @@ -195,7 +195,7 @@ exports[`Block renders shadow 2`] = ` /> `; -exports[`Block renders shadow 3`] = ` +exports[`Box renders shadow 3`] = ` .emotion-0 { box-shadow: 0 1px 15px rgba(27,31,35,0.15); } @@ -205,7 +205,7 @@ exports[`Block renders shadow 3`] = ` /> `; -exports[`Block renders shadow 4`] = ` +exports[`Box renders shadow 4`] = ` .emotion-0 { box-shadow: 0 10px 50px rgba(27,31,35,0.07); } @@ -215,13 +215,13 @@ exports[`Block renders shadow 4`] = ` /> `; -exports[`Block renders without any props 1`] = ` +exports[`Box renders without any props 1`] = `
`; -exports[`Block respects bg 1`] = ` +exports[`Box respects bg 1`] = ` .emotion-0 { background-color: #fff5b1; } @@ -231,7 +231,7 @@ exports[`Block respects bg 1`] = ` /> `; -exports[`Block respects color 1`] = ` +exports[`Box respects color 1`] = ` .emotion-0 { color: #d73a49; } @@ -241,7 +241,7 @@ exports[`Block respects color 1`] = ` /> `; -exports[`Block respects display 1`] = ` +exports[`Box respects display 1`] = ` .emotion-0 { display: inline; } @@ -251,7 +251,7 @@ exports[`Block respects display 1`] = ` /> `; -exports[`Block respects display 2`] = ` +exports[`Box respects display 2`] = ` .emotion-0 { display: inline-block; } @@ -261,7 +261,7 @@ exports[`Block respects display 2`] = ` /> `; -exports[`Block respects display 3`] = ` +exports[`Box respects display 3`] = ` .emotion-0 { display: none; } @@ -271,7 +271,7 @@ exports[`Block respects display 3`] = ` /> `; -exports[`Block respects display 4`] = ` +exports[`Box respects display 4`] = ` .emotion-0 { display: none; } @@ -293,14 +293,14 @@ exports[`Block respects display 4`] = ` /> `; -exports[`Block respects position 1`] = ` +exports[`Box respects position 1`] = `
`; -exports[`Block respects position 2`] = ` +exports[`Box respects position 2`] = `
Date: Mon, 13 Aug 2018 14:53:22 -0700 Subject: [PATCH 37/40] update Caret and CaretBox --- src/Caret.js | 6 +++--- src/CaretBox.js | 10 +++++----- src/__tests__/CaretBox.js | 6 +++--- src/__tests__/__snapshots__/CaretBox.js.snap | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Caret.js b/src/Caret.js index 17e29292070..91bce73e343 100644 --- a/src/Caret.js +++ b/src/Caret.js @@ -1,6 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import Box from './Box' +import BorderBox from './BorderBox' import {style} from 'styled-system' import {withDefaultTheme} from './system-props' @@ -100,8 +100,8 @@ Caret.locations = [ ] Caret.defaultProps = { - bg: Box.defaultProps.bg, - borderColor: Box.defaultProps.borderColor, + bg: BorderBox.defaultProps.bg, + borderColor: BorderBox.defaultProps.borderColor, borderWidth: 1, location: 'bottom', size: 2 diff --git a/src/CaretBox.js b/src/CaretBox.js index 28eee6b2be4..eab92036c72 100644 --- a/src/CaretBox.js +++ b/src/CaretBox.js @@ -1,5 +1,5 @@ import React from 'react' -import Box from './Box' +import BorderBox from './BorderBox' import Caret from './Caret' function CaretBox({position, ...rest}) { @@ -8,20 +8,20 @@ function CaretBox({position, ...rest}) { const {caret, children, ...boxProps} = rest const caretProps = {bg, borderColor, borderWidth: border, location: caret} return ( - + {children} - + ) } CaretBox.propTypes = { - ...Box.propTypes, + ...BorderBox.propTypes, caret: Caret.propTypes.location } CaretBox.defaultProps = { - ...Box.defaultProps, + ...BorderBox.defaultProps, position: 'relative' } diff --git a/src/__tests__/CaretBox.js b/src/__tests__/CaretBox.js index c598c6b8183..3b98204713d 100644 --- a/src/__tests__/CaretBox.js +++ b/src/__tests__/CaretBox.js @@ -7,15 +7,15 @@ describe('CaretBox', () => { expect(CaretBox.systemComponent).toEqual(true) }) - it('renders a in with relative positioning', () => { + it('renders a in with relative positioning', () => { expect(render()).toMatchSnapshot() }) - it('passes the "borderColor" prop to both and ', () => { + it('passes the "borderColor" prop to both and ', () => { expect(render()).toMatchSnapshot() }) - it('passes the "bg" prop to both and ', () => { + it('passes the "bg" prop to both and ', () => { expect(render()).toMatchSnapshot() }) }) diff --git a/src/__tests__/__snapshots__/CaretBox.js.snap b/src/__tests__/__snapshots__/CaretBox.js.snap index 83e28d95cc1..e587596af62 100644 --- a/src/__tests__/__snapshots__/CaretBox.js.snap +++ b/src/__tests__/__snapshots__/CaretBox.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`CaretBox passes the "bg" prop to both and 1`] = ` +exports[`CaretBox passes the "bg" prop to both and 1`] = ` .emotion-0 { position: relative; background-color: #d73a49; @@ -43,7 +43,7 @@ exports[`CaretBox passes the "bg" prop to both and 1`] = `
`; -exports[`CaretBox passes the "borderColor" prop to both and 1`] = ` +exports[`CaretBox passes the "borderColor" prop to both and 1`] = ` .emotion-0 { position: relative; background-color: #fff; @@ -86,7 +86,7 @@ exports[`CaretBox passes the "borderColor" prop to both and 1`] =
`; -exports[`CaretBox renders a in with relative positioning 1`] = ` +exports[`CaretBox renders a in with relative positioning 1`] = ` .emotion-0 { position: relative; background-color: #fff; From 65d412b33b720b29373391f25dfa52b42e982fcc Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:54:34 -0700 Subject: [PATCH 38/40] update BorderBox example copy --- examples/component-examples/BorderBox.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/component-examples/BorderBox.js b/examples/component-examples/BorderBox.js index 5bd908b7491..088ec58efd1 100644 --- a/examples/component-examples/BorderBox.js +++ b/examples/component-examples/BorderBox.js @@ -7,34 +7,34 @@ const BorderBoxExample = { element: (
- This is a box`} scope={{BorderBox}} /> + This is a BorderBox`} scope={{BorderBox}} /> - This is a box with padding.`} scope={{BorderBox}} /> + This is a BorderBox with padding.`} scope={{BorderBox}} /> - This is a box with shadow.`} scope={{BorderBox}} /> + This is a BorderBox with shadow.`} scope={{BorderBox}} /> This is a box with a medium shadow.`} + code={`This is a BorderBox with a medium shadow.`} scope={{BorderBox}} /> This is a box with a large shadow.`} + code={`This is a BorderBox with a large shadow.`} scope={{BorderBox}} /> This is a box with an extra-large shadow.`} + code={`This is a BorderBox with an extra-large shadow.`} scope={{BorderBox}} /> - This is a box with a green border.`} scope={{BorderBox}} /> + This is a BorderBox with a green border.`} scope={{BorderBox}} />
) From c120bdd4309b1b23975bd34d37a904bf14ba9f8a Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 14:57:35 -0700 Subject: [PATCH 39/40] fix lint issues --- examples/component-examples/BorderBox.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/component-examples/BorderBox.js b/examples/component-examples/BorderBox.js index 088ec58efd1..641b7bb8200 100644 --- a/examples/component-examples/BorderBox.js +++ b/examples/component-examples/BorderBox.js @@ -13,7 +13,10 @@ const BorderBoxExample = { This is a BorderBox with padding.
`} scope={{BorderBox}} />
- This is a BorderBox with shadow.`} scope={{BorderBox}} /> + This is a BorderBox with shadow.`} + scope={{BorderBox}} + /> - This is a BorderBox with a green border.`} scope={{BorderBox}} /> + This is a BorderBox with a green border.`} + scope={{BorderBox}} + />
) From 02c03a122be43cd161b37b86adf3dfde34ab9195 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 13 Aug 2018 15:09:16 -0700 Subject: [PATCH 40/40] update Kit --- docs/bundle.js | 32 ++++----- docs/components/index.html | 130 ++++++++++++++++++------------------- docs/index.html | 130 ++++++++++++++++++------------------- docs/sandbox/index.html | 8 +-- 4 files changed, 150 insertions(+), 150 deletions(-) diff --git a/docs/bundle.js b/docs/bundle.js index aae1cab5a13..1cdf20cf3eb 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/primer-react/",n(n.s=590)}([function(e,t,n){"use strict";e.exports=n(544)},function(e,t,n){e.exports=n(529)()},function(e,t,n){e.exports=n(534)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return B(r).default}});var i=n(175);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return B(i).default}});var o=n(108);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return B(o).default}});var a=n(507);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return B(a).default}});var s=n(47);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return B(s).default}});var u=n(506);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return B(u).default}});var c=n(505);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return B(c).default}});var l=n(504);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return B(l).default}});var f=n(503);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return B(f).default}});var p=n(502);Object.defineProperty(t,"OcticonButton",{enumerable:!0,get:function(){return B(p).default}});var h=n(107);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return B(h).default}});var d=n(494);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return B(d).default}});var m=n(493);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return B(m).default}});var y=n(492);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return B(y).default}});var g=n(170);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return B(g).default}});var v=n(491);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return B(v).default}});var b=n(489);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return B(b).default}});var x=n(169);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return B(x).default}});var w=n(168);Object.defineProperty(t,"FilterList",{enumerable:!0,get:function(){return B(w).default}});var k=n(488);Object.defineProperty(t,"FilterListItem",{enumerable:!0,get:function(){return B(k).default}});var E=n(103);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return B(E).default}});var _=n(487);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return B(_).default}});var S=n(486);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return B(S).default}});var C=n(485);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return B(C).default}});var A=n(484);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return B(A).default}});var D=n(483);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return B(D).default}});var T=n(482);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return B(T).default}});var O=n(481);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return B(O).default}});var P=n(480);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return B(P).default}});var M=n(479);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return B(M).default}});var L=n(478);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return B(L).default}});var F=n(477);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return B(F).default}});var j=n(167);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return B(j).default}});var N=n(166);Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return B(N).default}});var R=n(476);function B(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNavLink",{enumerable:!0,get:function(){return B(R).default}})},function(e,t,n){e.exports=n(536)()},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50));t.default=r.default||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:h;if(m(e))throw new Error(e.name+" is already a system component; can't call withSystemProps() on it");var n="object"===(void 0===e?"undefined":(0,u.default)(e))?e:{is:e};"function"==typeof n.is&&(n.is=function(e){return function t(n){var i=n.is,o=(0,r.default)(n,["is"]);return i===e||i===t?c.default.createElement(e,o):c.default.createElement(e,n)}}(n.is));var f=l.default.apply(void 0,[n].concat((0,s.default)(t)));f.displayName=e.displayName,(0,a.default)(f.propTypes,e.propTypes);var p=!0,d=!1,g=void 0;try{for(var v,b=(0,o.default)((0,i.default)(e));!(p=(v=b.next()).done);p=!0){var x=v.value;f.hasOwnProperty(x)||(f[x]=e[x])}}catch(e){d=!0,g=e}finally{try{!p&&b.return&&b.return()}finally{if(d)throw g}}return y(f)},t.withDefaultTheme=y,t.withoutPropTypes=function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=(0,o.default)(t);!(n=(a=s.next()).done);n=!0){var u=a.value;delete e.propTypes[u]}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return e};var c=p(n(0)),l=p(n(516)),f=p(n(75));function p(e){return e&&e.__esModule?e:{default:e}}t.default=l.default;var h=t.COMMON=["color","space"],d=(t.TYPOGRAPHY=h.concat("fontFamily","fontSize","fontWeight","lineHeight"),t.LAYOUT=h.concat("borders","borderColor","borderRadius","boxShadow","display","size","width","height","minWidth","minHeight","maxWidth","maxHeight","verticalAlign"));t.POSITION=["position","zIndex","top","right","bottom","left"],t.FLEX_CONTAINER=d.concat("alignContent","alignItems","flexWrap","flex","flexBasis","flexDirection","justifyContent","order"),t.FLEX_ITEM=d.concat("justifySelf","alignSelf");function m(e){return!0===e.systemComponent||e.defaultProps&&Array.isArray(e.defaultProps.blacklist)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default;return e.defaultProps?e.defaultProps.theme=t:e.defaultProps={theme:t},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(471);Object.defineProperty(t,"Library",{enumerable:!0,get:function(){return r.Library}}),Object.defineProperty(t,"Example",{enumerable:!0,get:function(){return r.Example}}),Object.defineProperty(t,"Detail",{enumerable:!0,get:function(){return r.Detail}}),Object.defineProperty(t,"Head",{enumerable:!0,get:function(){return r.Head}});var i=n(459);Object.defineProperty(t,"LiveEditor",{enumerable:!0,get:function(){return E(i).default}});var o=n(102);Object.defineProperty(t,"Frame",{enumerable:!0,get:function(){return E(o).default}});var a=n(101);Object.defineProperty(t,"Catch",{enumerable:!0,get:function(){return E(a).default}});var s=n(390);Object.defineProperty(t,"XRay",{enumerable:!0,get:function(){return E(s).default}});var u=n(388);Object.defineProperty(t,"PropsForm",{enumerable:!0,get:function(){return E(u).default}});var c=n(387);Object.defineProperty(t,"Responsive",{enumerable:!0,get:function(){return E(c).default}});var l=n(386);Object.defineProperty(t,"Cartesian",{enumerable:!0,get:function(){return E(l).default}});var f=n(385);Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return E(f).default}});var p=n(384);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return E(p).default}});var h=n(279);Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return E(h).default}});var d=n(278);Object.defineProperty(t,"Debug",{enumerable:!0,get:function(){return d.Debug}}),Object.defineProperty(t,"withDebug",{enumerable:!0,get:function(){return d.withDebug}});var m=n(276);Object.defineProperty(t,"TypeScale",{enumerable:!0,get:function(){return E(m).default}});var y=n(275);Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return E(y).default}});var g=n(262);Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return E(g).default}});var v=n(261);Object.defineProperty(t,"Font",{enumerable:!0,get:function(){return E(v).default}});var b=n(28);Object.defineProperty(t,"UI",{enumerable:!0,get:function(){return E(b).default}});var x=n(258);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return E(x).default}});var w=n(257);Object.defineProperty(t,"Colorable",{enumerable:!0,get:function(){return E(w).default}});var k=n(249);function E(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return E(k).default}})},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(56),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){var r; +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/primer-react/",n(n.s=590)}([function(e,t,n){"use strict";e.exports=n(544)},function(e,t,n){e.exports=n(529)()},function(e,t,n){e.exports=n(534)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75);Object.defineProperty(t,"theme",{enumerable:!0,get:function(){return R(r).default}});var i=n(108);Object.defineProperty(t,"BorderBox",{enumerable:!0,get:function(){return R(i).default}});var o=n(172);Object.defineProperty(t,"Box",{enumerable:!0,get:function(){return R(o).default}});var a=n(507);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return R(a).default}});var s=n(47);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return R(s).default}});var u=n(506);Object.defineProperty(t,"ButtonDanger",{enumerable:!0,get:function(){return R(u).default}});var c=n(505);Object.defineProperty(t,"ButtonPrimary",{enumerable:!0,get:function(){return R(c).default}});var l=n(504);Object.defineProperty(t,"ButtonOutline",{enumerable:!0,get:function(){return R(l).default}});var f=n(503);Object.defineProperty(t,"ButtonLink",{enumerable:!0,get:function(){return R(f).default}});var p=n(502);Object.defineProperty(t,"OcticonButton",{enumerable:!0,get:function(){return R(p).default}});var h=n(107);Object.defineProperty(t,"Caret",{enumerable:!0,get:function(){return R(h).default}});var d=n(494);Object.defineProperty(t,"CaretBox",{enumerable:!0,get:function(){return R(d).default}});var m=n(493);Object.defineProperty(t,"CircleOcticon",{enumerable:!0,get:function(){return R(m).default}});var y=n(492);Object.defineProperty(t,"CircleBadge",{enumerable:!0,get:function(){return R(y).default}});var g=n(170);Object.defineProperty(t,"Details",{enumerable:!0,get:function(){return R(g).default}});var v=n(491);Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return R(v).default}});var b=n(489);Object.defineProperty(t,"DonutChart",{enumerable:!0,get:function(){return R(b).default}});var x=n(169);Object.defineProperty(t,"DonutSlice",{enumerable:!0,get:function(){return R(x).default}});var w=n(168);Object.defineProperty(t,"FilterList",{enumerable:!0,get:function(){return R(w).default}});var k=n(488);Object.defineProperty(t,"FilterListItem",{enumerable:!0,get:function(){return R(k).default}});var E=n(103);Object.defineProperty(t,"FlexContainer",{enumerable:!0,get:function(){return R(E).default}});var _=n(487);Object.defineProperty(t,"FlexItem",{enumerable:!0,get:function(){return R(_).default}});var S=n(486);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return R(S).default}});var C=n(485);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return R(C).default}});var A=n(484);Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return R(A).default}});var D=n(483);Object.defineProperty(t,"BranchName",{enumerable:!0,get:function(){return R(D).default}});var T=n(482);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return R(T).default}});var O=n(481);Object.defineProperty(t,"MergeStatus",{enumerable:!0,get:function(){return R(O).default}});var P=n(480);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return R(P).default}});var M=n(479);Object.defineProperty(t,"Tooltip",{enumerable:!0,get:function(){return R(M).default}});var L=n(478);Object.defineProperty(t,"CounterLabel",{enumerable:!0,get:function(){return R(L).default}});var F=n(477);Object.defineProperty(t,"Flash",{enumerable:!0,get:function(){return R(F).default}});var j=n(167);Object.defineProperty(t,"StateLabel",{enumerable:!0,get:function(){return R(j).default}});var N=n(166);Object.defineProperty(t,"UnderlineNav",{enumerable:!0,get:function(){return R(N).default}});var B=n(476);function R(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"UnderlineNavLink",{enumerable:!0,get:function(){return R(B).default}})},function(e,t,n){e.exports=n(536)()},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(50));t.default=r.default||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:h;if(m(e))throw new Error(e.name+" is already a system component; can't call withSystemProps() on it");var n="object"===(void 0===e?"undefined":(0,u.default)(e))?e:{is:e};"function"==typeof n.is&&(n.is=function(e){return function t(n){var i=n.is,o=(0,r.default)(n,["is"]);return i===e||i===t?c.default.createElement(e,o):c.default.createElement(e,n)}}(n.is));var f=l.default.apply(void 0,[n].concat((0,s.default)(t)));f.displayName=e.displayName,(0,a.default)(f.propTypes,e.propTypes);var p=!0,d=!1,g=void 0;try{for(var v,b=(0,o.default)((0,i.default)(e));!(p=(v=b.next()).done);p=!0){var x=v.value;f.hasOwnProperty(x)||(f[x]=e[x])}}catch(e){d=!0,g=e}finally{try{!p&&b.return&&b.return()}finally{if(d)throw g}}return y(f)},t.withDefaultTheme=y,t.withoutPropTypes=function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=(0,o.default)(t);!(n=(a=s.next()).done);n=!0){var u=a.value;delete e.propTypes[u]}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return e};var c=p(n(0)),l=p(n(516)),f=p(n(75));function p(e){return e&&e.__esModule?e:{default:e}}t.default=l.default;var h=t.COMMON=["color","space"],d=(t.TYPOGRAPHY=h.concat("fontFamily","fontSize","fontWeight","lineHeight"),t.LAYOUT=h.concat("borders","borderColor","borderRadius","boxShadow","display","size","width","height","minWidth","minHeight","maxWidth","maxHeight","verticalAlign"));t.POSITION=["position","zIndex","top","right","bottom","left"],t.FLEX_CONTAINER=d.concat("alignContent","alignItems","flexWrap","flex","flexBasis","flexDirection","justifyContent","order"),t.FLEX_ITEM=d.concat("justifySelf","alignSelf");function m(e){return!0===e.systemComponent||e.defaultProps&&Array.isArray(e.defaultProps.blacklist)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default;return e.defaultProps?e.defaultProps.theme=t:e.defaultProps={theme:t},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(471);Object.defineProperty(t,"Library",{enumerable:!0,get:function(){return r.Library}}),Object.defineProperty(t,"Example",{enumerable:!0,get:function(){return r.Example}}),Object.defineProperty(t,"Detail",{enumerable:!0,get:function(){return r.Detail}}),Object.defineProperty(t,"Head",{enumerable:!0,get:function(){return r.Head}});var i=n(459);Object.defineProperty(t,"LiveEditor",{enumerable:!0,get:function(){return E(i).default}});var o=n(102);Object.defineProperty(t,"Frame",{enumerable:!0,get:function(){return E(o).default}});var a=n(101);Object.defineProperty(t,"Catch",{enumerable:!0,get:function(){return E(a).default}});var s=n(390);Object.defineProperty(t,"XRay",{enumerable:!0,get:function(){return E(s).default}});var u=n(388);Object.defineProperty(t,"PropsForm",{enumerable:!0,get:function(){return E(u).default}});var c=n(387);Object.defineProperty(t,"Responsive",{enumerable:!0,get:function(){return E(c).default}});var l=n(386);Object.defineProperty(t,"Cartesian",{enumerable:!0,get:function(){return E(l).default}});var f=n(385);Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return E(f).default}});var p=n(384);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return E(p).default}});var h=n(279);Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return E(h).default}});var d=n(278);Object.defineProperty(t,"Debug",{enumerable:!0,get:function(){return d.Debug}}),Object.defineProperty(t,"withDebug",{enumerable:!0,get:function(){return d.withDebug}});var m=n(276);Object.defineProperty(t,"TypeScale",{enumerable:!0,get:function(){return E(m).default}});var y=n(275);Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return E(y).default}});var g=n(262);Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return E(g).default}});var v=n(261);Object.defineProperty(t,"Font",{enumerable:!0,get:function(){return E(v).default}});var b=n(28);Object.defineProperty(t,"UI",{enumerable:!0,get:function(){return E(b).default}});var x=n(258);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return E(x).default}});var w=n(257);Object.defineProperty(t,"Colorable",{enumerable:!0,get:function(){return E(w).default}});var k=n(249);function E(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return E(k).default}})},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(56),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){var r; /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,39 +9,39 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&h(e),o=t&&h(t),a=i||o;if(e&&h(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var c=0,l=r.length;l>=0;l--){var f=r[l];"."===f?d(r,l):".."===f?(d(r,l),c++):c&&(d(r,l),c--)}if(!a)for(;c--;c)r.unshift("..");!a||""===r[0]||r[0]&&h(r[0])||r.unshift("");var p=r.join("/");return s&&"/"!==p.substr(-1)&&(p+="/"),p},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var g=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":y(t);if(r!==(void 0===n?"undefined":y(n)))return!1;if("object"===r){var i=t.valueOf(),o=n.valueOf();if(i!==t||o!==n)return e(i,o);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},v=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},x=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return x(e,t)?e.substr(t.length):e},k=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},E=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};p()(D,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e.forceRefresh,o=void 0!==i&&i,a=e.getUserConfirmation,s=void 0===a?P:a,u=e.keyLength,c=void 0===u?6:u,f=e.basename?k(v(e.basename)):"",h=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return l()(!f||x(o,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+f+'".'),f&&(o=w(o,f)),S(o,r,n)},d=function(){return Math.random().toString(36).substr(2,c)},m=A(),y=function(e){L(U,e),U.length=t.length,m.notifyListeners(U.location,U.action)},g=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||C(h(e.state))},b=function(){C(h(F()))},_=!1,C=function(e){_?(_=!1,y()):m.confirmTransitionTo(e,"POP",s,function(t){t?y({action:"POP",location:e}):j(e)})},j=function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,I(i))},N=h(F()),R=[N.key],B=function(e){return f+E(e)},I=function(e){t.go(e)},z=0,H=function(e){1===(z+=e)?(T(window,"popstate",g),r&&T(window,"hashchange",b)):0===z&&(O(window,"popstate",g),r&&O(window,"hashchange",b))},V=!1,U={length:t.length,action:"POP",location:N,createHref:B,push:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,r,d(),U.location);m.confirmTransitionTo(i,"PUSH",s,function(e){if(e){var r=B(i),a=i.key,s=i.state;if(n)if(t.pushState({key:a,state:s},null,r),o)window.location.href=r;else{var u=R.indexOf(U.location.key),c=R.slice(0,-1===u?0:u+1);c.push(i.key),R=c,y({action:"PUSH",location:i})}else l()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,r,d(),U.location);m.confirmTransitionTo(i,"REPLACE",s,function(e){if(e){var r=B(i),a=i.key,s=i.state;if(n)if(t.replaceState({key:a,state:s},null,r),o)window.location.replace(r);else{var u=R.indexOf(U.location.key);-1!==u&&(R[u]=i.key),y({action:"REPLACE",location:i})}else l()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m.setPrompt(e);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),t()}},listen:function(e){var t=m.appendListener(e);return H(1),function(){H(-1),t()}}};return U},N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?P:r,o=e.hashType,a=void 0===o?"slash":o,s=e.basename?k(v(e.basename)):"",u=R[a],c=u.encodePath,f=u.decodePath,h=function(){var e=f(B());return l()(!s||x(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),S(e)},d=A(),m=function(e){N(W,e),W.length=t.length,d.notifyListeners(W.location,W.action)},y=!1,g=null,b=function(){var e=B(),t=c(e);if(e!==t)I(t);else{var n=h(),r=W.location;if(!y&&C(r,n))return;if(g===E(n))return;g=null,_(n)}},_=function(e){y?(y=!1,m()):d.confirmTransitionTo(e,"POP",i,function(t){t?m({action:"POP",location:e}):M(e)})},M=function(e){var t=W.location,n=z.lastIndexOf(E(t));-1===n&&(n=0);var r=z.lastIndexOf(E(e));-1===r&&(r=0);var i=n-r;i&&(y=!0,H(i))},L=B(),F=c(L);L!==F&&I(F);var j=h(),z=[E(j)],H=function(e){l()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,U=function(e){1===(V+=e)?T(window,"hashchange",b):0===V&&O(window,"hashchange",b)},q=!1,W={length:t.length,action:"POP",location:j,createHref:function(e){return"#"+c(s+E(e))},push:function(e,t){l()(void 0===t,"Hash history cannot push state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=E(n),r=c(s+t);if(B()!==r){g=t,function(e){window.location.hash=e}(r);var i=z.lastIndexOf(E(W.location)),o=z.slice(0,-1===i?0:i+1);o.push(t),z=o,m({action:"PUSH",location:n})}else l()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){l()(void 0===t,"Hash history cannot replace state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=E(n),r=c(s+t);B()!==r&&(g=t,I(r));var i=z.indexOf(E(W.location));-1!==i&&(z[i]=t),m({action:"REPLACE",location:n})}})},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},listen:function(e){var t=d.appendListener(e);return U(1),function(){U(-1),t()}}};return W},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,o=void 0===i?0:i,a=e.keyLength,s=void 0===a?6:a,u=A(),c=function(e){V(y,e),y.length=y.entries.length,u.notifyListeners(y.location,y.action)},f=function(){return Math.random().toString(36).substr(2,s)},p=U(o,0,r.length-1),h=r.map(function(e){return S(e,void 0,"string"==typeof e?f():e.key||f())}),d=E,m=function(e){var n=U(y.index+e,0,y.entries.length-1),r=y.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?c({action:"POP",location:r,index:n}):c()})},y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:d,push:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),y.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),y.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(y.entries[y.index]=r,c({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return y},W=n(13),G=n.n(W),X=n(21),J=n.n(X),K=n(2),Y=n.n(K),$=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){G()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?a.a.Children.only(e):null},t}(a.a.Component);Q.propTypes={history:Y.a.object.isRequired,children:Y.a.node},Q.contextTypes={router:Y.a.object},Q.childContextTypes={router:Y.a.object.isRequired};var ee=Q,te=ee;function ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var re=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(te,{history:this.history,children:this.props.children})},t}(a.a.Component);re.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ie=re;function oe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(te,{history:this.history,children:this.props.children})},t}(a.a.Component);ae.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var se=ae,ue=n(132),ce=n.n(ue),le=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);ce()(this.context.router,"You should not use outside a "),ce()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,o="string"==typeof t?S(t,null,null,i.location):t,s=i.createHref(o);return a.a.createElement("a",le({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(a.a.Component);he.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},he.defaultProps={replace:!1},he.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var de=he;function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ye=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(ee,{history:this.history,children:this.props.children})},t}(a.a.Component);ye.propTypes={initialEntries:Y.a.array,initialIndex:Y.a.number,getUserConfirmation:Y.a.func,keyLength:Y.a.number,children:Y.a.node};var ge=ye,ve=n(85),be=n.n(ve),xe={},we=0,ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,o=r.exact,a=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,l=void 0!==c&&c;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=xe[n]||(xe[n]={});if(r[e])return r[e];var i=[],o={re:be()(e,i,t),keys:i};return we<1e4&&(r[e]=o,we++),o}(i,{end:a,strict:u,sensitive:l}),p=f.re,h=f.keys,d=p.exec(e);if(!d)return null;var m=d[0],y=d.slice(1),g=e===m;return a&&!g?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}},Ee=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var u=t.route,c=(r||u.location).pathname;return ke(c,{path:i,strict:o,exact:a,sensitive:s},u.match)},t.prototype.componentWillMount=function(){G()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),G()(!(this.props.component&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored"),G()(!(this.props.render&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,o=this.context.router,s=o.history,u=o.route,c=o.staticContext,l={match:e,location:this.props.location||u.location,history:s,staticContext:c};return r?e?a.a.createElement(r,l):null:i?e?i(l):null:"function"==typeof n?n(l):n&&!Se(n)?a.a.Children.only(n):null},t}(a.a.Component);Ce.propTypes={computedMatch:Y.a.object,path:Y.a.string,exact:Y.a.bool,strict:Y.a.bool,sensitive:Y.a.bool,component:Y.a.func,render:Y.a.func,children:Y.a.oneOfType([Y.a.func,Y.a.node]),location:Y.a.object},Ce.contextTypes={router:Y.a.shape({history:Y.a.object.isRequired,route:Y.a.object.isRequired,staticContext:Y.a.object})},Ce.childContextTypes={router:Y.a.object.isRequired};var Ae=Ce,De=Ae,Te=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),h="object"===(void 0===t?"undefined":Oe(t))?t.pathname:t,d=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return a.a.createElement(De,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(l?l(r,n):r);return a.a.createElement(de,Te({to:t,className:i?[s,o].filter(function(e){return e}).join(" "):s,style:i?Te({},c,u):c,"aria-current":i&&f||null},p))}})};Pe.propTypes={to:de.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},Pe.defaultProps={activeClassName:"active","aria-current":"page"};var Me=Pe;var Le=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(a.a.Component);Le.propTypes={when:Y.a.bool,message:Y.a.oneOfType([Y.a.func,Y.a.string]).isRequired},Le.defaultProps={when:!0},Le.contextTypes={router:Y.a.shape({history:Y.a.shape({block:Y.a.func.isRequired}).isRequired}).isRequired};var Fe=Le,je={},Ne=0,Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=je[t]||(je[t]={});if(n[e])return n[e];var r=be.a.compile(e);return Ne<1e4&&(n[e]=r,Ne++),r}(e)(t,{pretty:!0})},Be=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=S(e.to),n=S(this.props.to);C(t,n)?G()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Re(n,t.params):Be({},n,{pathname:Re(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(a.a.Component);Ie.propTypes={computedMatch:Y.a.object,push:Y.a.bool,from:Y.a.string,to:Y.a.oneOfType([Y.a.string,Y.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:Y.a.shape({history:Y.a.shape({push:Y.a.func.isRequired,replace:Y.a.func.isRequired}).isRequired,staticContext:Y.a.object}).isRequired};var ze=Ie,He=Object.assign||function(e){for(var t=1;t",e)}},Xe=function(){},Je=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Ue(e);return 0!==t.pathname.indexOf(n)?t:He({},t,{pathname:t.pathname.substr(n.length)})}(t,S(n)),push:this.handlePush,replace:this.handleReplace,go:Ge("go"),goBack:Ge("goBack"),goForward:Ge("goForward"),listen:this.handleListen,block:this.handleBlock};return a.a.createElement(ee,He({},r,{history:i}))},t}(a.a.Component);Je.propTypes={basename:Y.a.string,context:Y.a.object.isRequired,location:Y.a.oneOfType([Y.a.string,Y.a.object])},Je.defaultProps={basename:"",location:"/"},Je.childContextTypes={router:Y.a.object.isRequired};var Ke=Je;var Ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return a.a.Children.forEach(t,function(t){if(null==r&&a.a.isValidElement(t)){var o=t.props,s=o.path,u=o.exact,c=o.strict,l=o.sensitive,f=o.from,p=s||f;i=t,r=ke(n.pathname,{path:p,exact:u,strict:c,sensitive:l},e.match)}}),r?a.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(a.a.Component);Ye.contextTypes={router:Y.a.shape({route:Y.a.object.isRequired}).isRequired},Ye.propTypes={children:Y.a.node,location:Y.a.object};var $e=Ye,Ze=Re,Qe=ke,et=n(42),tt=n.n(et),nt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return a.a.createElement(Ae,{children:function(t){return a.a.createElement(e,nt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:Y.a.func},tt()(t,e)};n.d(t,"BrowserRouter",function(){return ie}),n.d(t,"HashRouter",function(){return se}),n.d(t,"Link",function(){return de}),n.d(t,"MemoryRouter",function(){return ge}),n.d(t,"NavLink",function(){return Me}),n.d(t,"Prompt",function(){return Fe}),n.d(t,"Redirect",function(){return ze}),n.d(t,"Route",function(){return De}),n.d(t,"Router",function(){return te}),n.d(t,"StaticRouter",function(){return Ke}),n.d(t,"Switch",function(){return $e}),n.d(t,"generatePath",function(){return Ze}),n.d(t,"matchPath",function(){return Qe}),n.d(t,"withRouter",function(){return rt})},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i1?t-1:0),r=1;r1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,u,c,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; +!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&h(e),o=t&&h(t),a=i||o;if(e&&h(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var c=0,l=r.length;l>=0;l--){var f=r[l];"."===f?d(r,l):".."===f?(d(r,l),c++):c&&(d(r,l),c--)}if(!a)for(;c--;c)r.unshift("..");!a||""===r[0]||r[0]&&h(r[0])||r.unshift("");var p=r.join("/");return s&&"/"!==p.substr(-1)&&(p+="/"),p},y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var g=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":y(t);if(r!==(void 0===n?"undefined":y(n)))return!1;if("object"===r){var i=t.valueOf(),o=n.valueOf();if(i!==t||o!==n)return e(i,o);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},v=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},x=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return x(e,t)?e.substr(t.length):e},k=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},E=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};p()(D,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e.forceRefresh,o=void 0!==i&&i,a=e.getUserConfirmation,s=void 0===a?P:a,u=e.keyLength,c=void 0===u?6:u,f=e.basename?k(v(e.basename)):"",h=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return l()(!f||x(o,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+f+'".'),f&&(o=w(o,f)),S(o,r,n)},d=function(){return Math.random().toString(36).substr(2,c)},m=A(),y=function(e){L(U,e),U.length=t.length,m.notifyListeners(U.location,U.action)},g=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||C(h(e.state))},b=function(){C(h(F()))},_=!1,C=function(e){_?(_=!1,y()):m.confirmTransitionTo(e,"POP",s,function(t){t?y({action:"POP",location:e}):j(e)})},j=function(e){var t=U.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(_=!0,I(i))},N=h(F()),B=[N.key],R=function(e){return f+E(e)},I=function(e){t.go(e)},z=0,H=function(e){1===(z+=e)?(T(window,"popstate",g),r&&T(window,"hashchange",b)):0===z&&(O(window,"popstate",g),r&&O(window,"hashchange",b))},V=!1,U={length:t.length,action:"POP",location:N,createHref:R,push:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,r,d(),U.location);m.confirmTransitionTo(i,"PUSH",s,function(e){if(e){var r=R(i),a=i.key,s=i.state;if(n)if(t.pushState({key:a,state:s},null,r),o)window.location.href=r;else{var u=B.indexOf(U.location.key),c=B.slice(0,-1===u?0:u+1);c.push(i.key),B=c,y({action:"PUSH",location:i})}else l()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){l()(!("object"===(void 0===e?"undefined":M(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,r,d(),U.location);m.confirmTransitionTo(i,"REPLACE",s,function(e){if(e){var r=R(i),a=i.key,s=i.state;if(n)if(t.replaceState({key:a,state:s},null,r),o)window.location.replace(r);else{var u=B.indexOf(U.location.key);-1!==u&&(B[u]=i.key),y({action:"REPLACE",location:i})}else l()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:I,goBack:function(){return I(-1)},goForward:function(){return I(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m.setPrompt(e);return V||(H(1),V=!0),function(){return V&&(V=!1,H(-1)),t()}},listen:function(e){var t=m.appendListener(e);return H(1),function(){H(-1),t()}}};return U},N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p()(D,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?P:r,o=e.hashType,a=void 0===o?"slash":o,s=e.basename?k(v(e.basename)):"",u=B[a],c=u.encodePath,f=u.decodePath,h=function(){var e=f(R());return l()(!s||x(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),S(e)},d=A(),m=function(e){N(W,e),W.length=t.length,d.notifyListeners(W.location,W.action)},y=!1,g=null,b=function(){var e=R(),t=c(e);if(e!==t)I(t);else{var n=h(),r=W.location;if(!y&&C(r,n))return;if(g===E(n))return;g=null,_(n)}},_=function(e){y?(y=!1,m()):d.confirmTransitionTo(e,"POP",i,function(t){t?m({action:"POP",location:e}):M(e)})},M=function(e){var t=W.location,n=z.lastIndexOf(E(t));-1===n&&(n=0);var r=z.lastIndexOf(E(e));-1===r&&(r=0);var i=n-r;i&&(y=!0,H(i))},L=R(),F=c(L);L!==F&&I(F);var j=h(),z=[E(j)],H=function(e){l()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,U=function(e){1===(V+=e)?T(window,"hashchange",b):0===V&&O(window,"hashchange",b)},q=!1,W={length:t.length,action:"POP",location:j,createHref:function(e){return"#"+c(s+E(e))},push:function(e,t){l()(void 0===t,"Hash history cannot push state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=E(n),r=c(s+t);if(R()!==r){g=t,function(e){window.location.hash=e}(r);var i=z.lastIndexOf(E(W.location)),o=z.slice(0,-1===i?0:i+1);o.push(t),z=o,m({action:"PUSH",location:n})}else l()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){l()(void 0===t,"Hash history cannot replace state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=E(n),r=c(s+t);R()!==r&&(g=t,I(r));var i=z.indexOf(E(W.location));-1!==i&&(z[i]=t),m({action:"REPLACE",location:n})}})},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},listen:function(e){var t=d.appendListener(e);return U(1),function(){U(-1),t()}}};return W},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,o=void 0===i?0:i,a=e.keyLength,s=void 0===a?6:a,u=A(),c=function(e){V(y,e),y.length=y.entries.length,u.notifyListeners(y.location,y.action)},f=function(){return Math.random().toString(36).substr(2,s)},p=U(o,0,r.length-1),h=r.map(function(e){return S(e,void 0,"string"==typeof e?f():e.key||f())}),d=E,m=function(e){var n=U(y.index+e,0,y.entries.length-1),r=y.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?c({action:"POP",location:r,index:n}):c()})},y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:d,push:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),y.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=y.index+1,n=y.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){l()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),y.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(y.entries[y.index]=r,c({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=y.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return y},W=n(13),G=n.n(W),X=n(21),J=n.n(X),K=n(2),Y=n.n(K),$=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){G()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?a.a.Children.only(e):null},t}(a.a.Component);Q.propTypes={history:Y.a.object.isRequired,children:Y.a.node},Q.contextTypes={router:Y.a.object},Q.childContextTypes={router:Y.a.object.isRequired};var ee=Q,te=ee;function ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var re=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(te,{history:this.history,children:this.props.children})},t}(a.a.Component);re.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ie=re;function oe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ae=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(te,{history:this.history,children:this.props.children})},t}(a.a.Component);ae.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var se=ae,ue=n(132),ce=n.n(ue),le=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);ce()(this.context.router,"You should not use outside a "),ce()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,o="string"==typeof t?S(t,null,null,i.location):t,s=i.createHref(o);return a.a.createElement("a",le({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(a.a.Component);he.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},he.defaultProps={replace:!1},he.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var de=he;function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ye=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(ee,{history:this.history,children:this.props.children})},t}(a.a.Component);ye.propTypes={initialEntries:Y.a.array,initialIndex:Y.a.number,getUserConfirmation:Y.a.func,keyLength:Y.a.number,children:Y.a.node};var ge=ye,ve=n(85),be=n.n(ve),xe={},we=0,ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,o=r.exact,a=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,l=void 0!==c&&c;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=xe[n]||(xe[n]={});if(r[e])return r[e];var i=[],o={re:be()(e,i,t),keys:i};return we<1e4&&(r[e]=o,we++),o}(i,{end:a,strict:u,sensitive:l}),p=f.re,h=f.keys,d=p.exec(e);if(!d)return null;var m=d[0],y=d.slice(1),g=e===m;return a&&!g?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:g,params:h.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}},Ee=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var u=t.route,c=(r||u.location).pathname;return ke(c,{path:i,strict:o,exact:a,sensitive:s},u.match)},t.prototype.componentWillMount=function(){G()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),G()(!(this.props.component&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored"),G()(!(this.props.render&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,o=this.context.router,s=o.history,u=o.route,c=o.staticContext,l={match:e,location:this.props.location||u.location,history:s,staticContext:c};return r?e?a.a.createElement(r,l):null:i?e?i(l):null:"function"==typeof n?n(l):n&&!Se(n)?a.a.Children.only(n):null},t}(a.a.Component);Ce.propTypes={computedMatch:Y.a.object,path:Y.a.string,exact:Y.a.bool,strict:Y.a.bool,sensitive:Y.a.bool,component:Y.a.func,render:Y.a.func,children:Y.a.oneOfType([Y.a.func,Y.a.node]),location:Y.a.object},Ce.contextTypes={router:Y.a.shape({history:Y.a.object.isRequired,route:Y.a.object.isRequired,staticContext:Y.a.object})},Ce.childContextTypes={router:Y.a.object.isRequired};var Ae=Ce,De=Ae,Te=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),h="object"===(void 0===t?"undefined":Oe(t))?t.pathname:t,d=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return a.a.createElement(De,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(l?l(r,n):r);return a.a.createElement(de,Te({to:t,className:i?[s,o].filter(function(e){return e}).join(" "):s,style:i?Te({},c,u):c,"aria-current":i&&f||null},p))}})};Pe.propTypes={to:de.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},Pe.defaultProps={activeClassName:"active","aria-current":"page"};var Me=Pe;var Le=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(a.a.Component);Le.propTypes={when:Y.a.bool,message:Y.a.oneOfType([Y.a.func,Y.a.string]).isRequired},Le.defaultProps={when:!0},Le.contextTypes={router:Y.a.shape({history:Y.a.shape({block:Y.a.func.isRequired}).isRequired}).isRequired};var Fe=Le,je={},Ne=0,Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=je[t]||(je[t]={});if(n[e])return n[e];var r=be.a.compile(e);return Ne<1e4&&(n[e]=r,Ne++),r}(e)(t,{pretty:!0})},Re=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=S(e.to),n=S(this.props.to);C(t,n)?G()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Be(n,t.params):Re({},n,{pathname:Be(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(a.a.Component);Ie.propTypes={computedMatch:Y.a.object,push:Y.a.bool,from:Y.a.string,to:Y.a.oneOfType([Y.a.string,Y.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:Y.a.shape({history:Y.a.shape({push:Y.a.func.isRequired,replace:Y.a.func.isRequired}).isRequired,staticContext:Y.a.object}).isRequired};var ze=Ie,He=Object.assign||function(e){for(var t=1;t",e)}},Xe=function(){},Je=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Ue(e);return 0!==t.pathname.indexOf(n)?t:He({},t,{pathname:t.pathname.substr(n.length)})}(t,S(n)),push:this.handlePush,replace:this.handleReplace,go:Ge("go"),goBack:Ge("goBack"),goForward:Ge("goForward"),listen:this.handleListen,block:this.handleBlock};return a.a.createElement(ee,He({},r,{history:i}))},t}(a.a.Component);Je.propTypes={basename:Y.a.string,context:Y.a.object.isRequired,location:Y.a.oneOfType([Y.a.string,Y.a.object])},Je.defaultProps={basename:"",location:"/"},Je.childContextTypes={router:Y.a.object.isRequired};var Ke=Je;var Ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return a.a.Children.forEach(t,function(t){if(null==r&&a.a.isValidElement(t)){var o=t.props,s=o.path,u=o.exact,c=o.strict,l=o.sensitive,f=o.from,p=s||f;i=t,r=ke(n.pathname,{path:p,exact:u,strict:c,sensitive:l},e.match)}}),r?a.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(a.a.Component);Ye.contextTypes={router:Y.a.shape({route:Y.a.object.isRequired}).isRequired},Ye.propTypes={children:Y.a.node,location:Y.a.object};var $e=Ye,Ze=Be,Qe=ke,et=n(42),tt=n.n(et),nt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return a.a.createElement(Ae,{children:function(t){return a.a.createElement(e,nt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:Y.a.func},tt()(t,e)};n.d(t,"BrowserRouter",function(){return ie}),n.d(t,"HashRouter",function(){return se}),n.d(t,"Link",function(){return de}),n.d(t,"MemoryRouter",function(){return ge}),n.d(t,"NavLink",function(){return Me}),n.d(t,"Prompt",function(){return Fe}),n.d(t,"Redirect",function(){return ze}),n.d(t,"Route",function(){return De}),n.d(t,"Router",function(){return te}),n.d(t,"StaticRouter",function(){return Ke}),n.d(t,"Switch",function(){return $e}),n.d(t,"generatePath",function(){return Ze}),n.d(t,"matchPath",function(){return Qe}),n.d(t,"withRouter",function(){return rt})},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],i=-1,o=e.length;t&&n.push(r("text","\n"));for(;++i1?t-1:0),r=1;r1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,u,c,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(147),i=!0,o="skip",a=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===a?f:e.children&&f!==o&&function(e,t){var n,r,o=s?-1:1,c=(s?e.length:-1)+o;for(;c>-1&&c=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(45);e.exports=r.DEFAULT=new r({include:[n(55)],explicit:[n(432),n(431),n(430)]})},function(e,t,n){"use strict";const r=n(163),i=n(98);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(499)),i=o(n(174));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(520));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(147),i=!0,o="skip",a=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===a?f:e.children&&f!==o&&function(e,t){var n,r,o=s?-1:1,c=(s?e.length:-1)+o;for(;c>-1&&c=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(45);e.exports=r.DEFAULT=new r({include:[n(55)],explicit:[n(432),n(431),n(430)]})},function(e,t,n){"use strict";const r=n(163),i=n(98);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(499)),i=o(n(175));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(520));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t65535&&(M+=l((D-=65536)>>>10|55296),D=56320|1023&D),D=M+l(D))):N!==h&&O(w,z)),D?(se(),B=oe(),Q=H-1,te+=H-j+1,ie.push(D),(I=oe()).offset++,W&&W.call(J,D,{start:B,end:I},e.slice(j-1,H)),B=I):(s=e.slice(j-1,H),re+=s,te+=s.length,Q=H-1)}return ie.join("");function oe(){return{line:ne,column:te,offset:Q+(Y.offset||0)}}function ae(t){return e.charAt(t)}function se(){re&&(ie.push(re),q&&q.call(X,re,{start:B,end:oe()}),re="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h="named",d="hexadecimal",m="decimal",y={};y[d]=16,y[m]=10;var g={};g[h]=u,g[m]=a,g[d]=s;var v=1,b=2,x=3,w=4,k=5,E=6,_=7,S={};function C(e){return e>=55296&&e<=57343||e>1114111}function A(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[v]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[k]="Named character references must be known",S[E]="Numeric character references cannot be disallowed",S[_]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.cartesianProduct=t.extendDefaultProps=t.displayObj=t.toSrcPath=t.titleize=t.isIndex=t.introPage=t.log=void 0;var r=c(n(61)),i=c(n(106)),o=c(n(9)),a=c(n(50)),s=c(n(29)),u=n(209);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return e.join(".")},f=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&!function(e){return Array.isArray(e)}(e)};t.log=function(t){return e.env.VERBOSE&&console.log(t)},t.introPage=function(e){return e[ROOT_LEVEL_FILE]&&e[ROOT_LEVEL_FILE].find(function(e){return"introduction"===e.name})},t.isIndex=function(e){return/index\.md/.test(e)},t.titleize=function(e){return e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}).replace(/(-|_)/g," ")},t.toSrcPath=function(e,t){return t.replace(/\md$/,"js").replace(e,"src").replace("components/","")},t.displayObj=function(e){return(0,s.default)(e).map(function(t){return t+"="+e[t]}).join(",")},t.extendDefaultProps=function(e,t){e.defaultProps=(0,a.default)({},e.defaultProps||{},t)},t.cartesianProduct=function(e){e.theme;var t=(0,o.default)(e,["theme"]),n=(0,u.reduce)((0,u.pipe)(u.xprod,(0,u.map)(u.unnest)),[[]]),r=(0,s.default)(t).reduce(function(e,n){return e.concat([function(e){return Array.isArray(e)?e:[e]}(t[n]).map(function(e){return(0,i.default)({},n,e)})])},[]);return(0,u.map)(u.mergeAll,n(r))},t.flatten=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,s.default)(t).reduce(function(r,i){var o=t[i],s=n.concat([i]);return function(e){return"string"==typeof e}(o)?(r[l(s)]=o,r):f(o)?(0,a.default)(r,e(o,s)):(o.forEach(function(e,t){var n=l(s.concat([t]));r[n]=e}),r)},{})}}).call(this,n(59))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(93)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(427),i=n(97);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(99).Buffer)},function(e,t,n){"use strict";(function(e){ +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u65535&&(M+=l((D-=65536)>>>10|55296),D=56320|1023&D),D=M+l(D))):N!==h&&O(w,z)),D?(se(),R=oe(),Q=H-1,te+=H-j+1,ie.push(D),(I=oe()).offset++,W&&W.call(J,D,{start:R,end:I},e.slice(j-1,H)),R=I):(s=e.slice(j-1,H),re+=s,te+=s.length,Q=H-1)}return ie.join("");function oe(){return{line:ne,column:te,offset:Q+(Y.offset||0)}}function ae(t){return e.charAt(t)}function se(){re&&(ie.push(re),q&&q.call(X,re,{start:R,end:oe()}),re="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},h="named",d="hexadecimal",m="decimal",y={};y[d]=16,y[m]=10;var g={};g[h]=u,g[m]=a,g[d]=s;var v=1,b=2,x=3,w=4,k=5,E=6,_=7,S={};function C(e){return e>=55296&&e<=57343||e>1114111}function A(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[v]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[k]="Named character references must be known",S[E]="Numeric character references cannot be disallowed",S[_]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.cartesianProduct=t.extendDefaultProps=t.displayObj=t.toSrcPath=t.titleize=t.isIndex=t.introPage=t.log=void 0;var r=c(n(61)),i=c(n(106)),o=c(n(9)),a=c(n(50)),s=c(n(29)),u=n(209);function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return e.join(".")},f=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&!function(e){return Array.isArray(e)}(e)};t.log=function(t){return e.env.VERBOSE&&console.log(t)},t.introPage=function(e){return e[ROOT_LEVEL_FILE]&&e[ROOT_LEVEL_FILE].find(function(e){return"introduction"===e.name})},t.isIndex=function(e){return/index\.md/.test(e)},t.titleize=function(e){return e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}).replace(/(-|_)/g," ")},t.toSrcPath=function(e,t){return t.replace(/\md$/,"js").replace(e,"src").replace("components/","")},t.displayObj=function(e){return(0,s.default)(e).map(function(t){return t+"="+e[t]}).join(",")},t.extendDefaultProps=function(e,t){e.defaultProps=(0,a.default)({},e.defaultProps||{},t)},t.cartesianProduct=function(e){e.theme;var t=(0,o.default)(e,["theme"]),n=(0,u.reduce)((0,u.pipe)(u.xprod,(0,u.map)(u.unnest)),[[]]),r=(0,s.default)(t).reduce(function(e,n){return e.concat([function(e){return Array.isArray(e)?e:[e]}(t[n]).map(function(e){return(0,i.default)({},n,e)})])},[]);return(0,u.map)(u.mergeAll,n(r))},t.flatten=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,s.default)(t).reduce(function(r,i){var o=t[i],s=n.concat([i]);return function(e){return"string"==typeof e}(o)?(r[l(s)]=o,r):f(o)?(0,a.default)(r,e(o,s)):(o.forEach(function(e,t){var n=l(s.concat([t]));r[n]=e}),r)},{})}}).call(this,n(59))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(93)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return function(e,t){return"GeneratorFunction"===r(e)}(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(427),i=n(97);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(99).Buffer)},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(438),i=n(437),o=n(436);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(58))},function(e,t,n){"use strict";var r=n(45);e.exports=new r({explicit:[n(448),n(447),n(446)]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(27)),i=c(n(26)),o=c(n(25)),a=c(n(24)),s=c(n(23)),u=c(n(0));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){(0,i.default)(this,t);var e=(0,a.default)(this,(t.__proto__||(0,r.default)(t)).call(this));return e.state={},e}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentDidCatch",value:function(e){this.setState({err:e})}},{key:"componentWillReceiveProps",value:function(e){e.children!==this.props.children&&this.setState({err:null})}},{key:"render",value:function(){var e=this.state.err;return e?u.default.createElement("pre",null,e.toString()):this.props.children}}]),t}(u.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n(27)),i=p(n(26)),o=p(n(25)),a=p(n(24)),s=p(n(23)),u=p(n(0)),c=p(n(38)),l=p(n(176)),f=n(464);p(n(32));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){(0,i.default)(this,t);var e=(0,a.default)(this,(t.__proto__||(0,r.default)(t)).call(this));return e.doc=null,e.win=null,e.div=null,e.getSrc=function(){var t=e.props,n=t.zoom,r=void 0===n?1:n,i=t.css,o=void 0===i?"":i,a=t.head,s="";return a&&(s=(0,f.renderToStaticMarkup)(a)),""+s+"\n
"},e.onLoad=function(t){e.doc=e.root.contentDocument,e.win=e.root.contentWindow,e.update(e.props)},e.update=function(t){var n=t.render,r=t.children;if(e.doc){var i=e.doc.getElementById("app");"function"==typeof n?l.default.render(n({document:e.doc,window:e.win}),i):l.default.render(r,i)}},e}return(0,s.default)(t,e),(0,o.default)(t,[{key:"componentWillReceiveProps",value:function(e){e.children!==this.props.children&&this.update(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=t.zoom,o=t.children;return u.default.createElement("iframe",{ref:function(t){return e.root=t},style:{width:n,height:r,zoom:i,pointerEvents:"none",display:"block",margin:0,overflow:"scroll",backgroundColor:"#fff",opacity:o?1:.25,border:0},srcDoc:this.getSrc(),scrolling:"yes",onLoad:this.onLoad})}}]),t}(u.default.Component);h.propTypes={head:c.default.node,zoom:c.default.number,width:c.default.string,height:c.default.string,css:c.default.string},h.defaultProps={zoom:1,width:"100%",height:"100%",css:"body{font-family:system-ui,sans-serif;line-height:1.5}"},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=(0,r.withSystemProps)({is:"div",display:"flex"},r.FLEX_CONTAINER);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.complexStyle=t.themeGet=t.pseudoStyle=t.responsiveStyle=t.style=t.cloneFunc=t.getValue=t.merge=t.media=t.dec=t.breaks=t.fallbackTheme=t.mq=t.get=t.getWidth=t.arr=t.neg=t.px=t.num=t.is=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t1?h(e):100*e+"%"},t.get=function(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e)||n}),y=t.mq=function(e){return"@media screen and (min-width: "+h(e)+")"},g=t.fallbackTheme=function(e){return i({},s.default,m(e,"theme"))},v=t.breaks=function(e){return[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(30),i=n(586),o=n(118),a=n(120)("IE_PROTO"),s=function(){},u=function(){var e,t=n(124)("iframe"),r=o.length;for(t.style.display="none",n(191).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" \ No newline at end of file + </BorderBox> +</Box>
\ No newline at end of file