construct-hub-webapp 0.1.476 → 0.1.480
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +5 -5
- package/build/index.html +1 -1
- package/build/static/js/225.0a200f20.chunk.js.map +1 -1
- package/build/static/js/{543.358ac542.chunk.js → 543.1847047c.chunk.js} +2 -2
- package/build/static/js/543.1847047c.chunk.js.map +1 -0
- package/build/static/js/{main.ecee4cb8.js → main.2c696e69.js} +3 -3
- package/build/static/js/{main.ecee4cb8.js.LICENSE.txt → main.2c696e69.js.LICENSE.txt} +0 -0
- package/build/static/js/main.2c696e69.js.map +1 -0
- package/package.json +3 -3
- package/build/static/js/543.358ac542.chunk.js.map +0 -1
- package/build/static/js/main.ecee4cb8.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "/static/css/main.60c3637f.css",
|
|
4
|
-
"main.js": "/static/js/main.
|
|
4
|
+
"main.js": "/static/js/main.2c696e69.js",
|
|
5
5
|
"static/js/19.a588ef1b.chunk.js": "/static/js/19.a588ef1b.chunk.js",
|
|
6
6
|
"static/js/679.5a3ba75b.chunk.js": "/static/js/679.5a3ba75b.chunk.js",
|
|
7
7
|
"static/js/229.50ab3802.chunk.js": "/static/js/229.50ab3802.chunk.js",
|
|
8
8
|
"static/js/577.d5b9ef00.chunk.js": "/static/js/577.d5b9ef00.chunk.js",
|
|
9
|
-
"static/js/543.
|
|
9
|
+
"static/js/543.1847047c.chunk.js": "/static/js/543.1847047c.chunk.js",
|
|
10
10
|
"static/js/51.a4435f89.chunk.js": "/static/js/51.a4435f89.chunk.js",
|
|
11
11
|
"static/js/540.85e0d93a.chunk.js": "/static/js/540.85e0d93a.chunk.js",
|
|
12
12
|
"static/js/259.07e40dd7.chunk.js": "/static/js/259.07e40dd7.chunk.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"service-worker.js": "/service-worker.js",
|
|
21
21
|
"index.html": "/index.html",
|
|
22
22
|
"main.60c3637f.css.map": "/static/css/main.60c3637f.css.map",
|
|
23
|
-
"main.
|
|
23
|
+
"main.2c696e69.js.map": "/static/js/main.2c696e69.js.map",
|
|
24
24
|
"19.a588ef1b.chunk.js.map": "/static/js/19.a588ef1b.chunk.js.map",
|
|
25
25
|
"679.5a3ba75b.chunk.js.map": "/static/js/679.5a3ba75b.chunk.js.map",
|
|
26
26
|
"229.50ab3802.chunk.js.map": "/static/js/229.50ab3802.chunk.js.map",
|
|
27
27
|
"577.d5b9ef00.chunk.js.map": "/static/js/577.d5b9ef00.chunk.js.map",
|
|
28
|
-
"543.
|
|
28
|
+
"543.1847047c.chunk.js.map": "/static/js/543.1847047c.chunk.js.map",
|
|
29
29
|
"51.a4435f89.chunk.js.map": "/static/js/51.a4435f89.chunk.js.map",
|
|
30
30
|
"540.85e0d93a.chunk.js.map": "/static/js/540.85e0d93a.chunk.js.map",
|
|
31
31
|
"259.07e40dd7.chunk.js.map": "/static/js/259.07e40dd7.chunk.js.map",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
},
|
|
40
40
|
"entrypoints": [
|
|
41
41
|
"static/css/main.60c3637f.css",
|
|
42
|
-
"static/js/main.
|
|
42
|
+
"static/js/main.2c696e69.js"
|
|
43
43
|
]
|
|
44
44
|
}
|
package/build/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTf and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script>var AWSMA={config:{customPageview:!0}}</script><script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script><script defer="defer" src="/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTf and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script>var AWSMA={config:{customPageview:!0}}</script><script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script><script defer="defer" src="/static/js/main.2c696e69.js"></script><link href="/static/css/main.60c3637f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/225.0a200f20.chunk.js","mappings":"mVAQA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR,WAG9B,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEIC,EAAKJ,EAFLD,EAAS,GACTa,EAAaf,OAAOgB,KAAKV,GAG7B,IAAKH,EAAI,EAAGA,EAAIY,EAAWV,OAAQF,IACjCI,EAAMQ,EAAWZ,GACbW,EAASG,QAAQV,IAAQ,IAC7BL,EAAOK,GAAOD,EAAOC,IAGvB,OAAOL,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EAAiB,CAC1B,IAAIQ,EAAQf,EAAiBS,EAAU,IACvC,OAAOlB,EAAOE,eAAe,SAAUsB,EAAOlB,GACzC,GAAa,QAATU,EAAgB,CACzB,IAAIS,EAAOhB,EAAiBY,EAAuB5B,GACnD,OAAOO,EAAOE,eAAe,QAASuB,EAAMnB,GACvC,GAAa,UAATU,EAAkB,CAC3B,IAAIU,EAASjB,EAAiBY,EAAuB3B,GACrD,OAAkB,KAAXgC,GAAkC,UAAjB3B,EAAQiB,KAAmBhB,EAAOE,eAAe,SAAU,EAAGI,GAAmBN,EAAOE,eAAe,UAAWwB,EAAQpB,GAC7I,GAAa,SAATU,EAAiB,CAC1B,IAAIW,EAAQlB,EAAiBY,EAAuB1B,GACpD,OAAOK,EAAOE,eAAe,SAAUyB,EAAOrB,GAGhD,MAAM,IAAIH,WAAW,qEC7KR,SAASyB,EAA0B/B,EAAWgC,GAE3D,OADA/C,EAAAA,EAAAA,GAAa,EAAG3L,WACTyM,EAAqBC,EAAWiC,KAAKC,MAAOF,K,sBC/EtC,SAASG,EAAuBC,EAASC,GAKtD,OAJKA,IACHA,EAAMD,EAAQE,MAAM,IAGfpP,OAAOqP,OAAOrP,OAAOsP,iBAAiBJ,EAAS,CACpDC,IAAK,CACH/K,MAAOpE,OAAOqP,OAAOF,O","sources":["../node_modules/@chakra-ui/tabs/dist/chakra-ui-tabs.esm.js","../node_modules/date-fns/esm/compareAsc/index.js","../node_modules/date-fns/esm/_lib/cloneObject/index.js","../node_modules/date-fns/esm/_lib/assign/index.js","../node_modules/date-fns/esm/formatDistanceStrict/index.js","../node_modules/date-fns/esm/formatDistanceToNowStrict/index.js","../javascript/esm|/home/runner/work/construct-hub-webapp/construct-hub-webapp/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"],"sourcesContent":["import { forwardRef, useMultiStyleConfig, omitThemingProps, StylesProvider, chakra, useStyles } from '@chakra-ui/system';\nimport { normalizeEventKey, callAllHandlers, determineLazyBehavior, isUndefined, focus, omit, cx, __DEV__ } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { useClickable } from '@chakra-ui/clickable';\nimport { createDescendantContext } from '@chakra-ui/descendant';\nimport { useControllableState, useId, useSafeLayoutEffect } from '@chakra-ui/hooks';\nimport { createContext, mergeRefs, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$1 = [\"defaultIndex\", \"onChange\", \"index\", \"isManual\", \"isLazy\", \"lazyBehavior\", \"orientation\", \"direction\"],\n _excluded2$1 = [\"isDisabled\", \"isFocusable\"],\n _excluded3 = [\"isSelected\", \"id\", \"children\"];\n/* -------------------------------------------------------------------------------------------------\n * Create context to track descendants and their indices\n * -----------------------------------------------------------------------------------------------*/\n\nvar _createDescendantCont = createDescendantContext(),\n TabsDescendantsProvider = _createDescendantCont[0],\n useTabsDescendantsContext = _createDescendantCont[1],\n useTabsDescendants = _createDescendantCont[2],\n useTabsDescendant = _createDescendantCont[3];\n\n/**\n * Tabs hooks that provides all the states, and accessibility\n * helpers to keep all things working properly.\n *\n * Its returned object will be passed unto a Context Provider\n * so all child components can read from it.\n * There is no document link yet\n * @see Docs https://chakra-ui.com/docs/components/useTabs\n */\nfunction useTabs(props) {\n var defaultIndex = props.defaultIndex,\n onChange = props.onChange,\n index = props.index,\n isManual = props.isManual,\n isLazy = props.isLazy,\n _props$lazyBehavior = props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n _props$orientation = props.orientation,\n orientation = _props$orientation === void 0 ? \"horizontal\" : _props$orientation,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? \"ltr\" : _props$direction,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded$1);\n /**\n * We use this to keep track of the index of the focused tab.\n *\n * Tabs can be automatically activated, this means selection follows focus.\n * When we navigate with the arrow keys, we move focus and selection to next/prev tab\n *\n * Tabs can also be manually activated, this means selection does not follow focus.\n * When we navigate with the arrow keys, we only move focus NOT selection. The user\n * will need not manually activate the tab using `Enter` or `Space`.\n *\n * This is why we need to keep track of the `focusedIndex` and `selectedIndex`\n */\n\n\n var _React$useState = React.useState(defaultIndex != null ? defaultIndex : 0),\n focusedIndex = _React$useState[0],\n setFocusedIndex = _React$useState[1];\n\n var _useControllableState = useControllableState({\n defaultValue: defaultIndex != null ? defaultIndex : 0,\n value: index,\n onChange: onChange\n }),\n selectedIndex = _useControllableState[0],\n setSelectedIndex = _useControllableState[1];\n /**\n * Sync focused `index` with controlled `selectedIndex` (which is the `props.index`)\n */\n\n\n React.useEffect(function () {\n if (index != null) {\n setFocusedIndex(index);\n }\n }, [index]);\n /**\n * Think of `useDescendants` as a register for the tab nodes.\n */\n\n var descendants = useTabsDescendants();\n /**\n * Generate a unique id or use user-provided id for the tabs widget\n */\n\n var id = useId(props.id, \"tabs\");\n return {\n id: id,\n selectedIndex: selectedIndex,\n focusedIndex: focusedIndex,\n setSelectedIndex: setSelectedIndex,\n setFocusedIndex: setFocusedIndex,\n isManual: isManual,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n orientation: orientation,\n descendants: descendants,\n direction: direction,\n htmlProps: htmlProps\n };\n}\n\nvar _createContext = createContext({\n name: \"TabsContext\",\n errorMessage: \"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />\"\n}),\n TabsProvider = _createContext[0],\n useTabsContext = _createContext[1];\n\n/**\n * Tabs hook to manage multiple tab buttons,\n * and ensures only one tab is selected per time.\n *\n * @param props props object for the tablist\n */\nfunction useTabList(props) {\n var _useTabsContext = useTabsContext(),\n focusedIndex = _useTabsContext.focusedIndex,\n orientation = _useTabsContext.orientation,\n direction = _useTabsContext.direction;\n\n var descendants = useTabsDescendantsContext();\n var onKeyDown = React.useCallback(function (event) {\n var _keyMap;\n\n var nextTab = function nextTab() {\n var next = descendants.nextEnabled(focusedIndex);\n if (next) focus(next.node);\n };\n\n var prevTab = function prevTab() {\n var prev = descendants.prevEnabled(focusedIndex);\n if (prev) focus(prev.node);\n };\n\n var firstTab = function firstTab() {\n var first = descendants.firstEnabled();\n if (first) focus(first.node);\n };\n\n var lastTab = function lastTab() {\n var last = descendants.lastEnabled();\n if (last) focus(last.node);\n };\n\n var isHorizontal = orientation === \"horizontal\";\n var isVertical = orientation === \"vertical\";\n var eventKey = normalizeEventKey(event);\n var ArrowStart = direction === \"ltr\" ? \"ArrowLeft\" : \"ArrowRight\";\n var ArrowEnd = direction === \"ltr\" ? \"ArrowRight\" : \"ArrowLeft\";\n var keyMap = (_keyMap = {}, _keyMap[ArrowStart] = function () {\n return isHorizontal && prevTab();\n }, _keyMap[ArrowEnd] = function () {\n return isHorizontal && nextTab();\n }, _keyMap.ArrowDown = function ArrowDown() {\n return isVertical && nextTab();\n }, _keyMap.ArrowUp = function ArrowUp() {\n return isVertical && prevTab();\n }, _keyMap.Home = firstTab, _keyMap.End = lastTab, _keyMap);\n var action = keyMap[eventKey];\n\n if (action) {\n event.preventDefault();\n action(event);\n }\n }, [descendants, focusedIndex, orientation, direction]);\n return _extends({}, props, {\n role: \"tablist\",\n \"aria-orientation\": orientation,\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n\n/**\n * Tabs hook to manage each tab button.\n *\n * A tab can be disabled and focusable, or both,\n * hence the use of `useClickable` to handle this scenario\n */\nfunction useTab(props) {\n var isDisabled = props.isDisabled,\n isFocusable = props.isFocusable,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded2$1);\n\n var _useTabsContext2 = useTabsContext(),\n setSelectedIndex = _useTabsContext2.setSelectedIndex,\n isManual = _useTabsContext2.isManual,\n id = _useTabsContext2.id,\n setFocusedIndex = _useTabsContext2.setFocusedIndex,\n selectedIndex = _useTabsContext2.selectedIndex;\n\n var _useTabsDescendant = useTabsDescendant({\n disabled: isDisabled && !isFocusable\n }),\n index = _useTabsDescendant.index,\n register = _useTabsDescendant.register;\n\n var isSelected = index === selectedIndex;\n\n var onClick = function onClick() {\n setSelectedIndex(index);\n };\n\n var onFocus = function onFocus() {\n setFocusedIndex(index);\n var isDisabledButFocusable = isDisabled && isFocusable;\n var shouldSelect = !isManual && !isDisabledButFocusable;\n\n if (shouldSelect) {\n setSelectedIndex(index);\n }\n };\n\n var clickableProps = useClickable(_extends({}, htmlProps, {\n ref: mergeRefs(register, props.ref),\n isDisabled: isDisabled,\n isFocusable: isFocusable,\n onClick: callAllHandlers(props.onClick, onClick)\n }));\n var type = \"button\";\n return _extends({}, clickableProps, {\n id: makeTabId(id, index),\n role: \"tab\",\n tabIndex: isSelected ? 0 : -1,\n type: type,\n \"aria-selected\": isSelected,\n \"aria-controls\": makeTabPanelId(id, index),\n onFocus: isDisabled ? undefined : callAllHandlers(props.onFocus, onFocus)\n });\n}\n\n/**\n * Tabs hook for managing the visibility of multiple tab panels.\n *\n * Since only one panel can be show at a time, we use `cloneElement`\n * to inject `selected` panel to each TabPanel.\n *\n * It returns a cloned version of its children with\n * all functionality included.\n */\nfunction useTabPanels(props) {\n var context = useTabsContext();\n var id = context.id,\n selectedIndex = context.selectedIndex;\n var validChildren = getValidChildren(props.children);\n var children = validChildren.map(function (child, index) {\n return /*#__PURE__*/React.cloneElement(child, {\n isSelected: index === selectedIndex,\n id: makeTabPanelId(id, index),\n // Refers to the associated tab element, and also provides an accessible name to the tab panel.\n \"aria-labelledby\": makeTabId(id, index)\n });\n });\n return _extends({}, props, {\n children: children\n });\n}\n/**\n * Tabs hook for managing the visible/hidden states\n * of the tab panel.\n *\n * @param props props object for the tab panel\n */\n\nfunction useTabPanel(props) {\n var isSelected = props.isSelected,\n id = props.id,\n children = props.children,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _useTabsContext3 = useTabsContext(),\n isLazy = _useTabsContext3.isLazy,\n lazyBehavior = _useTabsContext3.lazyBehavior;\n\n var hasBeenSelected = React.useRef(false);\n\n if (isSelected) {\n hasBeenSelected.current = true;\n }\n\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenSelected.current,\n isSelected: isSelected,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior\n });\n return _extends({\n // Puts the tabpanel in the page `Tab` sequence.\n tabIndex: 0\n }, htmlProps, {\n children: shouldRenderChildren ? children : null,\n role: \"tabpanel\",\n hidden: !isSelected,\n id: id\n });\n}\n/**\n * Tabs hook to show an animated indicators that\n * follows the active tab.\n *\n * The way we do it is by measuring the DOM Rect (or dimensions)\n * of the active tab, and return that as CSS style for\n * the indicator.\n */\n\nfunction useTabIndicator() {\n var context = useTabsContext();\n var descendants = useTabsDescendantsContext();\n var selectedIndex = context.selectedIndex,\n orientation = context.orientation;\n var isHorizontal = orientation === \"horizontal\";\n var isVertical = orientation === \"vertical\"; // Get the clientRect of the selected tab\n\n var _React$useState2 = React.useState(function () {\n if (isHorizontal) return {\n left: 0,\n width: 0\n };\n if (isVertical) return {\n top: 0,\n height: 0\n };\n return undefined;\n }),\n rect = _React$useState2[0],\n setRect = _React$useState2[1];\n\n var _React$useState3 = React.useState(false),\n hasMeasured = _React$useState3[0],\n setHasMeasured = _React$useState3[1]; // Update the selected tab rect when the selectedIndex changes\n\n\n useSafeLayoutEffect(function () {\n if (isUndefined(selectedIndex)) return undefined;\n var tab = descendants.item(selectedIndex);\n if (isUndefined(tab)) return undefined; // Horizontal Tab: Calculate width and left distance\n\n if (isHorizontal) {\n setRect({\n left: tab.node.offsetLeft,\n width: tab.node.offsetWidth\n });\n } // Vertical Tab: Calculate height and top distance\n\n\n if (isVertical) {\n setRect({\n top: tab.node.offsetTop,\n height: tab.node.offsetHeight\n });\n } // Prevent unwanted transition from 0 to measured rect\n // by setting the measured state in the next tick\n\n\n var id = requestAnimationFrame(function () {\n setHasMeasured(true);\n });\n return function () {\n if (id) {\n cancelAnimationFrame(id);\n }\n };\n }, [selectedIndex, isHorizontal, isVertical, descendants]);\n return _extends({\n position: \"absolute\",\n transitionProperty: \"left, right, top, bottom\",\n transitionDuration: hasMeasured ? \"200ms\" : \"0ms\",\n transitionTimingFunction: \"cubic-bezier(0, 0, 0.2, 1)\"\n }, rect);\n}\n\nfunction makeTabId(id, index) {\n return id + \"--tab-\" + index;\n}\n\nfunction makeTabPanelId(id, index) {\n return id + \"--tabpanel-\" + index;\n}\n\nvar _excluded = [\"children\", \"className\"],\n _excluded2 = [\"htmlProps\", \"descendants\"];\n\n/**\n * Tabs\n *\n * Provides context and logic for all tabs components.\n */\nvar Tabs = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"Tabs\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded);\n\n var _useTabs = useTabs(rest),\n htmlProps = _useTabs.htmlProps,\n descendants = _useTabs.descendants,\n ctx = _objectWithoutPropertiesLoose(_useTabs, _excluded2);\n\n var context = React.useMemo(function () {\n return ctx;\n }, [ctx]);\n var rootProps = omit(htmlProps, [\"isFitted\"]);\n return /*#__PURE__*/React.createElement(TabsDescendantsProvider, {\n value: descendants\n }, /*#__PURE__*/React.createElement(TabsProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: cx(\"chakra-tabs\", className),\n ref: ref\n }, rootProps, {\n __css: styles.root\n }), children))));\n});\n\nif (__DEV__) {\n Tabs.displayName = \"Tabs\";\n}\n\n/**\n * Tab button used to activate a specific tab panel. It renders a `button`,\n * and is responsible for automatic and manual selection modes.\n */\nvar Tab = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n var tabProps = useTab(_extends({}, props, {\n ref: ref\n }));\n\n var tabStyles = _extends({\n outline: \"0\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }, styles.tab);\n\n return /*#__PURE__*/React.createElement(chakra.button, _extends({}, tabProps, {\n className: cx(\"chakra-tabs__tab\", props.className),\n __css: tabStyles\n }));\n});\n\nif (__DEV__) {\n Tab.displayName = \"Tab\";\n}\n\n/**\n * TabList is used to manage a list of tab buttons. It renders a `div` by default,\n * and is responsible the keyboard interaction between tabs.\n */\nvar TabList = /*#__PURE__*/forwardRef(function (props, ref) {\n var tablistProps = useTabList(_extends({}, props, {\n ref: ref\n }));\n var styles = useStyles();\n\n var tablistStyles = _extends({\n display: \"flex\"\n }, styles.tablist);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, tablistProps, {\n className: cx(\"chakra-tabs__tablist\", props.className),\n __css: tablistStyles\n }));\n});\n\nif (__DEV__) {\n TabList.displayName = \"TabList\";\n}\n\n/**\n * TabPanel\n * Used to render the content for a specific tab.\n */\nvar TabPanel = /*#__PURE__*/forwardRef(function (props, ref) {\n var panelProps = useTabPanel(_extends({}, props, {\n ref: ref\n }));\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n outline: \"0\"\n }, panelProps, {\n className: cx(\"chakra-tabs__tab-panel\", props.className),\n __css: styles.tabpanel\n }));\n});\n\nif (__DEV__) {\n TabPanel.displayName = \"TabPanel\";\n}\n\n/**\n * TabPanel\n *\n * Used to manage the rendering of multiple tab panels. It uses\n * `cloneElement` to hide/show tab panels.\n *\n * It renders a `div` by default.\n */\nvar TabPanels = /*#__PURE__*/forwardRef(function (props, ref) {\n var panelsProps = useTabPanels(props);\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, panelsProps, {\n width: \"100%\",\n ref: ref,\n className: cx(\"chakra-tabs__tab-panels\", props.className),\n __css: styles.tabpanels\n }));\n});\n\nif (__DEV__) {\n TabPanels.displayName = \"TabPanels\";\n}\n\n/**\n * TabIndicator\n *\n * Used to render an active tab indicator that animates between\n * selected tabs.\n */\nvar TabIndicator = /*#__PURE__*/forwardRef(function (props, ref) {\n var indicatorStyle = useTabIndicator();\n\n var style = _extends({}, props.style, indicatorStyle);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref\n }, props, {\n className: cx(\"chakra-tabs__tab-indicator\", props.className),\n style: style,\n __css: styles.indicator\n }));\n});\n\nif (__DEV__) {\n TabIndicator.displayName = \"TabIndicator\";\n}\n\nexport { Tab, TabIndicator, TabList, TabPanel, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext };\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(dirtyObject) {\n return assign({}, dirtyObject);\n}","export default function assign(target, dirtyObject) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n\n dirtyObject = dirtyObject || {};\n\n for (var property in dirtyObject) {\n if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {\n target[property] = dirtyObject[property];\n }\n }\n\n return target;\n}","import getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(2015, 0, 2),\n * new Date(2014, 6, 2)\n * ) //=> '6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(2014, 6, 2),\n * new Date(2015, 0, 2)\n * ) //=> '6 months'\n * ```\n *\n * - `partialMethod` option is renamed to `roundingMethod`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { partialMethod: 'ceil' }\n * ) //=> '2 minutes'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { roundingMethod: 'ceil' }\n * ) //=> '2 minutes'\n * ```\n *\n * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`.\n *\n * - `unit` option now accepts one of the strings:\n * 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { unit: 'm' }\n * )\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { unit: 'minute' }\n * )\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod);\n var roundingMethodFn;\n\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft); // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var unit;\n\n if (options.unit == null) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(options.unit);\n } // 0 up to 60 seconds\n\n\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && options.unit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import formatDistanceStrict from \"../formatDistanceStrict/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNowStrict\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * var result = formatDistanceToNowStrict(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * var result = formatDistanceToNowStrict(\n * new Date(2015, 0, 1, 0, 0, 15)\n * )\n * //=> '20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * var result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in 1 year'\n *\n * @example\n * // If today is 28 January 2015,\n * // what is the distance to 1 January 2015, in months, rounded up??\n * var result = formatDistanceToNowStrict(new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * var eoLocale = require('date-fns/locale/eo')\n * var result = formatDistanceToNowStrict(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceToNowStrict(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n return formatDistanceStrict(dirtyDate, Date.now(), dirtyOptions);\n}","export default function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$1","_excluded2$1","_excluded3","_createDescendantCont","createDescendantContext","TabsDescendantsProvider","useTabsDescendantsContext","useTabsDescendants","useTabsDescendant","_createContext","createContext","name","errorMessage","TabsProvider","useTabsContext","makeTabId","id","index","makeTabPanelId","_excluded","_excluded2","Tabs","forwardRef","props","ref","styles","useMultiStyleConfig","_omitThemingProps","omitThemingProps","children","className","_useTabs","defaultIndex","onChange","isManual","isLazy","_props$lazyBehavior","lazyBehavior","_props$orientation","orientation","_props$direction","direction","htmlProps","_React$useState","React","focusedIndex","setFocusedIndex","_useControllableState","useControllableState","defaultValue","value","selectedIndex","setSelectedIndex","descendants","useId","useTabs","ctx","context","rootProps","omit","StylesProvider","chakra","cx","__css","root","__DEV__","displayName","Tab","useStyles","tabProps","isDisabled","isFocusable","_useTabsContext2","_useTabsDescendant","disabled","register","isSelected","clickableProps","useClickable","mergeRefs","onClick","callAllHandlers","role","tabIndex","type","onFocus","undefined","useTab","tabStyles","outline","display","alignItems","justifyContent","tab","TabList","tablistProps","_useTabsContext","onKeyDown","event","_keyMap","nextTab","next","nextEnabled","focus","node","prevTab","prev","prevEnabled","isHorizontal","isVertical","eventKey","normalizeEventKey","ArrowEnd","action","ArrowDown","ArrowUp","Home","first","firstEnabled","End","last","lastEnabled","preventDefault","useTabList","tablistStyles","tablist","TabPanel","panelProps","_useTabsContext3","hasBeenSelected","current","determineLazyBehavior","hidden","useTabPanel","tabpanel","TabPanels","panelsProps","getValidChildren","map","child","useTabPanels","width","tabpanels","TabIndicator","indicatorStyle","_React$useState2","left","top","height","rect","setRect","_React$useState3","hasMeasured","setHasMeasured","useSafeLayoutEffect","isUndefined","item","offsetLeft","offsetWidth","offsetTop","offsetHeight","requestAnimationFrame","cancelAnimationFrame","position","transitionProperty","transitionDuration","transitionTimingFunction","useTabIndicator","style","indicator","compareAsc","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","diff","getTime","cloneObject","dirtyObject","TypeError","property","MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","locale","defaultLocale","formatDistance","RangeError","comparison","isNaN","localizeOptions","addSuffix","Boolean","roundingMethodFn","roundingMethod","String","Math","floor","ceil","round","unit","milliseconds","minutes","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","seconds","roundedMinutes","hours","days","months","years","formatDistanceToNowStrict","dirtyOptions","Date","now","_taggedTemplateLiteral","strings","raw","slice","freeze","defineProperties"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/225.0a200f20.chunk.js","mappings":"mVAQA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR,WAG9B,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEIC,EAAKJ,EAFLD,EAAS,GACTa,EAAaf,OAAOgB,KAAKV,GAG7B,IAAKH,EAAI,EAAGA,EAAIY,EAAWV,OAAQF,IACjCI,EAAMQ,EAAWZ,GACbW,EAASG,QAAQV,IAAQ,IAC7BL,EAAOK,GAAOD,EAAOC,IAGvB,OAAOL,EAGT,IAAIgB,EAAc,CAAC,eA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,EAAiBS,EAAU,IACvC,OAAOlB,EAAOE,eAAe,SAAUsB,EAAOlB,GACzC,GAAa,QAATU,EAAgB,CACzB,IAAIS,EAAOhB,EAAiBY,EAAuB5B,GACnD,OAAOO,EAAOE,eAAe,QAASuB,EAAMnB,GACvC,GAAa,UAATU,EAAkB,CAC3B,IAAIU,EAASjB,EAAiBY,EAAuB3B,GACrD,OAAkB,KAAXgC,GAAkC,UAAjB3B,EAAQiB,KAAmBhB,EAAOE,eAAe,SAAU,EAAGI,GAAmBN,EAAOE,eAAe,UAAWwB,EAAQpB,GAC7I,GAAa,SAATU,EAAiB,CAC1B,IAAIW,EAAQlB,EAAiBY,EAAuB1B,GACpD,OAAOK,EAAOE,eAAe,SAAUyB,EAAOrB,GAGhD,MAAM,IAAIH,WAAW,qEC7KR,SAASyB,EAA0B/B,EAAWgC,GAE3D,OADA/C,EAAAA,EAAAA,GAAa,EAAG3L,WACTyM,EAAqBC,EAAWiC,KAAKC,MAAOF,K,sBC/EtC,SAASG,EAAuBC,EAASC,GAKtD,OAJKA,IACHA,EAAMD,EAAQE,MAAM,IAGfpP,OAAOqP,OAAOrP,OAAOsP,iBAAiBJ,EAAS,CACpDC,IAAK,CACH/K,MAAOpE,OAAOqP,OAAOF,O","sources":["../node_modules/@chakra-ui/tabs/dist/chakra-ui-tabs.esm.js","../node_modules/date-fns/esm/compareAsc/index.js","../node_modules/date-fns/esm/_lib/cloneObject/index.js","../node_modules/date-fns/esm/_lib/assign/index.js","../node_modules/date-fns/esm/formatDistanceStrict/index.js","../node_modules/date-fns/esm/formatDistanceToNowStrict/index.js","../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js"],"sourcesContent":["import { forwardRef, useMultiStyleConfig, omitThemingProps, StylesProvider, chakra, useStyles } from '@chakra-ui/system';\nimport { normalizeEventKey, callAllHandlers, determineLazyBehavior, isUndefined, focus, omit, cx, __DEV__ } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { useClickable } from '@chakra-ui/clickable';\nimport { createDescendantContext } from '@chakra-ui/descendant';\nimport { useControllableState, useId, useSafeLayoutEffect } from '@chakra-ui/hooks';\nimport { createContext, mergeRefs, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$1 = [\"defaultIndex\", \"onChange\", \"index\", \"isManual\", \"isLazy\", \"lazyBehavior\", \"orientation\", \"direction\"],\n _excluded2$1 = [\"isDisabled\", \"isFocusable\"],\n _excluded3 = [\"isSelected\", \"id\", \"children\"];\n/* -------------------------------------------------------------------------------------------------\n * Create context to track descendants and their indices\n * -----------------------------------------------------------------------------------------------*/\n\nvar _createDescendantCont = createDescendantContext(),\n TabsDescendantsProvider = _createDescendantCont[0],\n useTabsDescendantsContext = _createDescendantCont[1],\n useTabsDescendants = _createDescendantCont[2],\n useTabsDescendant = _createDescendantCont[3];\n\n/**\n * Tabs hooks that provides all the states, and accessibility\n * helpers to keep all things working properly.\n *\n * Its returned object will be passed unto a Context Provider\n * so all child components can read from it.\n * There is no document link yet\n * @see Docs https://chakra-ui.com/docs/components/useTabs\n */\nfunction useTabs(props) {\n var defaultIndex = props.defaultIndex,\n onChange = props.onChange,\n index = props.index,\n isManual = props.isManual,\n isLazy = props.isLazy,\n _props$lazyBehavior = props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n _props$orientation = props.orientation,\n orientation = _props$orientation === void 0 ? \"horizontal\" : _props$orientation,\n _props$direction = props.direction,\n direction = _props$direction === void 0 ? \"ltr\" : _props$direction,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded$1);\n /**\n * We use this to keep track of the index of the focused tab.\n *\n * Tabs can be automatically activated, this means selection follows focus.\n * When we navigate with the arrow keys, we move focus and selection to next/prev tab\n *\n * Tabs can also be manually activated, this means selection does not follow focus.\n * When we navigate with the arrow keys, we only move focus NOT selection. The user\n * will need not manually activate the tab using `Enter` or `Space`.\n *\n * This is why we need to keep track of the `focusedIndex` and `selectedIndex`\n */\n\n\n var _React$useState = React.useState(defaultIndex != null ? defaultIndex : 0),\n focusedIndex = _React$useState[0],\n setFocusedIndex = _React$useState[1];\n\n var _useControllableState = useControllableState({\n defaultValue: defaultIndex != null ? defaultIndex : 0,\n value: index,\n onChange: onChange\n }),\n selectedIndex = _useControllableState[0],\n setSelectedIndex = _useControllableState[1];\n /**\n * Sync focused `index` with controlled `selectedIndex` (which is the `props.index`)\n */\n\n\n React.useEffect(function () {\n if (index != null) {\n setFocusedIndex(index);\n }\n }, [index]);\n /**\n * Think of `useDescendants` as a register for the tab nodes.\n */\n\n var descendants = useTabsDescendants();\n /**\n * Generate a unique id or use user-provided id for the tabs widget\n */\n\n var id = useId(props.id, \"tabs\");\n return {\n id: id,\n selectedIndex: selectedIndex,\n focusedIndex: focusedIndex,\n setSelectedIndex: setSelectedIndex,\n setFocusedIndex: setFocusedIndex,\n isManual: isManual,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n orientation: orientation,\n descendants: descendants,\n direction: direction,\n htmlProps: htmlProps\n };\n}\n\nvar _createContext = createContext({\n name: \"TabsContext\",\n errorMessage: \"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />\"\n}),\n TabsProvider = _createContext[0],\n useTabsContext = _createContext[1];\n\n/**\n * Tabs hook to manage multiple tab buttons,\n * and ensures only one tab is selected per time.\n *\n * @param props props object for the tablist\n */\nfunction useTabList(props) {\n var _useTabsContext = useTabsContext(),\n focusedIndex = _useTabsContext.focusedIndex,\n orientation = _useTabsContext.orientation,\n direction = _useTabsContext.direction;\n\n var descendants = useTabsDescendantsContext();\n var onKeyDown = React.useCallback(function (event) {\n var _keyMap;\n\n var nextTab = function nextTab() {\n var next = descendants.nextEnabled(focusedIndex);\n if (next) focus(next.node);\n };\n\n var prevTab = function prevTab() {\n var prev = descendants.prevEnabled(focusedIndex);\n if (prev) focus(prev.node);\n };\n\n var firstTab = function firstTab() {\n var first = descendants.firstEnabled();\n if (first) focus(first.node);\n };\n\n var lastTab = function lastTab() {\n var last = descendants.lastEnabled();\n if (last) focus(last.node);\n };\n\n var isHorizontal = orientation === \"horizontal\";\n var isVertical = orientation === \"vertical\";\n var eventKey = normalizeEventKey(event);\n var ArrowStart = direction === \"ltr\" ? \"ArrowLeft\" : \"ArrowRight\";\n var ArrowEnd = direction === \"ltr\" ? \"ArrowRight\" : \"ArrowLeft\";\n var keyMap = (_keyMap = {}, _keyMap[ArrowStart] = function () {\n return isHorizontal && prevTab();\n }, _keyMap[ArrowEnd] = function () {\n return isHorizontal && nextTab();\n }, _keyMap.ArrowDown = function ArrowDown() {\n return isVertical && nextTab();\n }, _keyMap.ArrowUp = function ArrowUp() {\n return isVertical && prevTab();\n }, _keyMap.Home = firstTab, _keyMap.End = lastTab, _keyMap);\n var action = keyMap[eventKey];\n\n if (action) {\n event.preventDefault();\n action(event);\n }\n }, [descendants, focusedIndex, orientation, direction]);\n return _extends({}, props, {\n role: \"tablist\",\n \"aria-orientation\": orientation,\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n\n/**\n * Tabs hook to manage each tab button.\n *\n * A tab can be disabled and focusable, or both,\n * hence the use of `useClickable` to handle this scenario\n */\nfunction useTab(props) {\n var isDisabled = props.isDisabled,\n isFocusable = props.isFocusable,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded2$1);\n\n var _useTabsContext2 = useTabsContext(),\n setSelectedIndex = _useTabsContext2.setSelectedIndex,\n isManual = _useTabsContext2.isManual,\n id = _useTabsContext2.id,\n setFocusedIndex = _useTabsContext2.setFocusedIndex,\n selectedIndex = _useTabsContext2.selectedIndex;\n\n var _useTabsDescendant = useTabsDescendant({\n disabled: isDisabled && !isFocusable\n }),\n index = _useTabsDescendant.index,\n register = _useTabsDescendant.register;\n\n var isSelected = index === selectedIndex;\n\n var onClick = function onClick() {\n setSelectedIndex(index);\n };\n\n var onFocus = function onFocus() {\n setFocusedIndex(index);\n var isDisabledButFocusable = isDisabled && isFocusable;\n var shouldSelect = !isManual && !isDisabledButFocusable;\n\n if (shouldSelect) {\n setSelectedIndex(index);\n }\n };\n\n var clickableProps = useClickable(_extends({}, htmlProps, {\n ref: mergeRefs(register, props.ref),\n isDisabled: isDisabled,\n isFocusable: isFocusable,\n onClick: callAllHandlers(props.onClick, onClick)\n }));\n var type = \"button\";\n return _extends({}, clickableProps, {\n id: makeTabId(id, index),\n role: \"tab\",\n tabIndex: isSelected ? 0 : -1,\n type: type,\n \"aria-selected\": isSelected,\n \"aria-controls\": makeTabPanelId(id, index),\n onFocus: isDisabled ? undefined : callAllHandlers(props.onFocus, onFocus)\n });\n}\n\n/**\n * Tabs hook for managing the visibility of multiple tab panels.\n *\n * Since only one panel can be show at a time, we use `cloneElement`\n * to inject `selected` panel to each TabPanel.\n *\n * It returns a cloned version of its children with\n * all functionality included.\n */\nfunction useTabPanels(props) {\n var context = useTabsContext();\n var id = context.id,\n selectedIndex = context.selectedIndex;\n var validChildren = getValidChildren(props.children);\n var children = validChildren.map(function (child, index) {\n return /*#__PURE__*/React.cloneElement(child, {\n isSelected: index === selectedIndex,\n id: makeTabPanelId(id, index),\n // Refers to the associated tab element, and also provides an accessible name to the tab panel.\n \"aria-labelledby\": makeTabId(id, index)\n });\n });\n return _extends({}, props, {\n children: children\n });\n}\n/**\n * Tabs hook for managing the visible/hidden states\n * of the tab panel.\n *\n * @param props props object for the tab panel\n */\n\nfunction useTabPanel(props) {\n var isSelected = props.isSelected,\n id = props.id,\n children = props.children,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _useTabsContext3 = useTabsContext(),\n isLazy = _useTabsContext3.isLazy,\n lazyBehavior = _useTabsContext3.lazyBehavior;\n\n var hasBeenSelected = React.useRef(false);\n\n if (isSelected) {\n hasBeenSelected.current = true;\n }\n\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenSelected.current,\n isSelected: isSelected,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior\n });\n return _extends({\n // Puts the tabpanel in the page `Tab` sequence.\n tabIndex: 0\n }, htmlProps, {\n children: shouldRenderChildren ? children : null,\n role: \"tabpanel\",\n hidden: !isSelected,\n id: id\n });\n}\n/**\n * Tabs hook to show an animated indicators that\n * follows the active tab.\n *\n * The way we do it is by measuring the DOM Rect (or dimensions)\n * of the active tab, and return that as CSS style for\n * the indicator.\n */\n\nfunction useTabIndicator() {\n var context = useTabsContext();\n var descendants = useTabsDescendantsContext();\n var selectedIndex = context.selectedIndex,\n orientation = context.orientation;\n var isHorizontal = orientation === \"horizontal\";\n var isVertical = orientation === \"vertical\"; // Get the clientRect of the selected tab\n\n var _React$useState2 = React.useState(function () {\n if (isHorizontal) return {\n left: 0,\n width: 0\n };\n if (isVertical) return {\n top: 0,\n height: 0\n };\n return undefined;\n }),\n rect = _React$useState2[0],\n setRect = _React$useState2[1];\n\n var _React$useState3 = React.useState(false),\n hasMeasured = _React$useState3[0],\n setHasMeasured = _React$useState3[1]; // Update the selected tab rect when the selectedIndex changes\n\n\n useSafeLayoutEffect(function () {\n if (isUndefined(selectedIndex)) return undefined;\n var tab = descendants.item(selectedIndex);\n if (isUndefined(tab)) return undefined; // Horizontal Tab: Calculate width and left distance\n\n if (isHorizontal) {\n setRect({\n left: tab.node.offsetLeft,\n width: tab.node.offsetWidth\n });\n } // Vertical Tab: Calculate height and top distance\n\n\n if (isVertical) {\n setRect({\n top: tab.node.offsetTop,\n height: tab.node.offsetHeight\n });\n } // Prevent unwanted transition from 0 to measured rect\n // by setting the measured state in the next tick\n\n\n var id = requestAnimationFrame(function () {\n setHasMeasured(true);\n });\n return function () {\n if (id) {\n cancelAnimationFrame(id);\n }\n };\n }, [selectedIndex, isHorizontal, isVertical, descendants]);\n return _extends({\n position: \"absolute\",\n transitionProperty: \"left, right, top, bottom\",\n transitionDuration: hasMeasured ? \"200ms\" : \"0ms\",\n transitionTimingFunction: \"cubic-bezier(0, 0, 0.2, 1)\"\n }, rect);\n}\n\nfunction makeTabId(id, index) {\n return id + \"--tab-\" + index;\n}\n\nfunction makeTabPanelId(id, index) {\n return id + \"--tabpanel-\" + index;\n}\n\nvar _excluded = [\"children\", \"className\"],\n _excluded2 = [\"htmlProps\", \"descendants\"];\n\n/**\n * Tabs\n *\n * Provides context and logic for all tabs components.\n */\nvar Tabs = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"Tabs\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded);\n\n var _useTabs = useTabs(rest),\n htmlProps = _useTabs.htmlProps,\n descendants = _useTabs.descendants,\n ctx = _objectWithoutPropertiesLoose(_useTabs, _excluded2);\n\n var context = React.useMemo(function () {\n return ctx;\n }, [ctx]);\n var rootProps = omit(htmlProps, [\"isFitted\"]);\n return /*#__PURE__*/React.createElement(TabsDescendantsProvider, {\n value: descendants\n }, /*#__PURE__*/React.createElement(TabsProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: cx(\"chakra-tabs\", className),\n ref: ref\n }, rootProps, {\n __css: styles.root\n }), children))));\n});\n\nif (__DEV__) {\n Tabs.displayName = \"Tabs\";\n}\n\n/**\n * Tab button used to activate a specific tab panel. It renders a `button`,\n * and is responsible for automatic and manual selection modes.\n */\nvar Tab = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n var tabProps = useTab(_extends({}, props, {\n ref: ref\n }));\n\n var tabStyles = _extends({\n outline: \"0\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }, styles.tab);\n\n return /*#__PURE__*/React.createElement(chakra.button, _extends({}, tabProps, {\n className: cx(\"chakra-tabs__tab\", props.className),\n __css: tabStyles\n }));\n});\n\nif (__DEV__) {\n Tab.displayName = \"Tab\";\n}\n\n/**\n * TabList is used to manage a list of tab buttons. It renders a `div` by default,\n * and is responsible the keyboard interaction between tabs.\n */\nvar TabList = /*#__PURE__*/forwardRef(function (props, ref) {\n var tablistProps = useTabList(_extends({}, props, {\n ref: ref\n }));\n var styles = useStyles();\n\n var tablistStyles = _extends({\n display: \"flex\"\n }, styles.tablist);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, tablistProps, {\n className: cx(\"chakra-tabs__tablist\", props.className),\n __css: tablistStyles\n }));\n});\n\nif (__DEV__) {\n TabList.displayName = \"TabList\";\n}\n\n/**\n * TabPanel\n * Used to render the content for a specific tab.\n */\nvar TabPanel = /*#__PURE__*/forwardRef(function (props, ref) {\n var panelProps = useTabPanel(_extends({}, props, {\n ref: ref\n }));\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n outline: \"0\"\n }, panelProps, {\n className: cx(\"chakra-tabs__tab-panel\", props.className),\n __css: styles.tabpanel\n }));\n});\n\nif (__DEV__) {\n TabPanel.displayName = \"TabPanel\";\n}\n\n/**\n * TabPanel\n *\n * Used to manage the rendering of multiple tab panels. It uses\n * `cloneElement` to hide/show tab panels.\n *\n * It renders a `div` by default.\n */\nvar TabPanels = /*#__PURE__*/forwardRef(function (props, ref) {\n var panelsProps = useTabPanels(props);\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, panelsProps, {\n width: \"100%\",\n ref: ref,\n className: cx(\"chakra-tabs__tab-panels\", props.className),\n __css: styles.tabpanels\n }));\n});\n\nif (__DEV__) {\n TabPanels.displayName = \"TabPanels\";\n}\n\n/**\n * TabIndicator\n *\n * Used to render an active tab indicator that animates between\n * selected tabs.\n */\nvar TabIndicator = /*#__PURE__*/forwardRef(function (props, ref) {\n var indicatorStyle = useTabIndicator();\n\n var style = _extends({}, props.style, indicatorStyle);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref\n }, props, {\n className: cx(\"chakra-tabs__tab-indicator\", props.className),\n style: style,\n __css: styles.indicator\n }));\n});\n\nif (__DEV__) {\n TabIndicator.displayName = \"TabIndicator\";\n}\n\nexport { Tab, TabIndicator, TabList, TabPanel, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext };\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(dirtyObject) {\n return assign({}, dirtyObject);\n}","export default function assign(target, dirtyObject) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n\n dirtyObject = dirtyObject || {};\n\n for (var property in dirtyObject) {\n if (Object.prototype.hasOwnProperty.call(dirtyObject, property)) {\n target[property] = dirtyObject[property];\n }\n }\n\n return target;\n}","import getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(2015, 0, 2),\n * new Date(2014, 6, 2)\n * ) //=> '6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(2014, 6, 2),\n * new Date(2015, 0, 2)\n * ) //=> '6 months'\n * ```\n *\n * - `partialMethod` option is renamed to `roundingMethod`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { partialMethod: 'ceil' }\n * ) //=> '2 minutes'\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { roundingMethod: 'ceil' }\n * ) //=> '2 minutes'\n * ```\n *\n * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`.\n *\n * - `unit` option now accepts one of the strings:\n * 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsStrict(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 10, 33, 1),\n * { unit: 'm' }\n * )\n *\n * // v2.0.0 onward\n *\n * formatDistanceStrict(\n * new Date(1986, 3, 4, 10, 33, 1),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { unit: 'minute' }\n * )\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod);\n var roundingMethodFn;\n\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft); // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var unit;\n\n if (options.unit == null) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(options.unit);\n } // 0 up to 60 seconds\n\n\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && options.unit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import formatDistanceStrict from \"../formatDistanceStrict/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNowStrict\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * var result = formatDistanceToNowStrict(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * var result = formatDistanceToNowStrict(\n * new Date(2015, 0, 1, 0, 0, 15)\n * )\n * //=> '20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * var result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in 1 year'\n *\n * @example\n * // If today is 28 January 2015,\n * // what is the distance to 1 January 2015, in months, rounded up??\n * var result = formatDistanceToNowStrict(new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * var eoLocale = require('date-fns/locale/eo')\n * var result = formatDistanceToNowStrict(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceToNowStrict(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n return formatDistanceStrict(dirtyDate, Date.now(), dirtyOptions);\n}","export default function _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$1","_excluded2$1","_excluded3","_createDescendantCont","createDescendantContext","TabsDescendantsProvider","useTabsDescendantsContext","useTabsDescendants","useTabsDescendant","_createContext","createContext","name","errorMessage","TabsProvider","useTabsContext","makeTabId","id","index","makeTabPanelId","_excluded","_excluded2","Tabs","forwardRef","props","ref","styles","useMultiStyleConfig","_omitThemingProps","omitThemingProps","children","className","_useTabs","defaultIndex","onChange","isManual","isLazy","_props$lazyBehavior","lazyBehavior","_props$orientation","orientation","_props$direction","direction","htmlProps","_React$useState","React","focusedIndex","setFocusedIndex","_useControllableState","useControllableState","defaultValue","value","selectedIndex","setSelectedIndex","descendants","useId","useTabs","ctx","context","rootProps","omit","StylesProvider","chakra","cx","__css","root","__DEV__","displayName","Tab","useStyles","tabProps","isDisabled","isFocusable","_useTabsContext2","_useTabsDescendant","disabled","register","isSelected","clickableProps","useClickable","mergeRefs","onClick","callAllHandlers","role","tabIndex","type","onFocus","undefined","useTab","tabStyles","outline","display","alignItems","justifyContent","tab","TabList","tablistProps","_useTabsContext","onKeyDown","event","_keyMap","nextTab","next","nextEnabled","focus","node","prevTab","prev","prevEnabled","isHorizontal","isVertical","eventKey","normalizeEventKey","ArrowEnd","action","ArrowDown","ArrowUp","Home","first","firstEnabled","End","last","lastEnabled","preventDefault","useTabList","tablistStyles","tablist","TabPanel","panelProps","_useTabsContext3","hasBeenSelected","current","determineLazyBehavior","hidden","useTabPanel","tabpanel","TabPanels","panelsProps","getValidChildren","map","child","useTabPanels","width","tabpanels","TabIndicator","indicatorStyle","_React$useState2","left","top","height","rect","setRect","_React$useState3","hasMeasured","setHasMeasured","useSafeLayoutEffect","isUndefined","item","offsetLeft","offsetWidth","offsetTop","offsetHeight","requestAnimationFrame","cancelAnimationFrame","position","transitionProperty","transitionDuration","transitionTimingFunction","useTabIndicator","style","indicator","compareAsc","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","diff","getTime","cloneObject","dirtyObject","TypeError","property","MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","locale","defaultLocale","formatDistance","RangeError","comparison","isNaN","localizeOptions","addSuffix","Boolean","roundingMethodFn","roundingMethod","String","Math","floor","ceil","round","unit","milliseconds","minutes","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","seconds","roundedMinutes","hours","days","months","years","formatDistanceToNowStrict","dirtyOptions","Date","now","_taggedTemplateLiteral","strings","raw","slice","freeze","defineProperties"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[543,577],{29880:function(e,n,t){t.d(n,{KD:function(){return a},_J:function(){return o},Kj:function(){return i},_c:function(){return c}});var r=t(29499),a=function(e,n){return n?"".concat(n,"/").concat(e):e},o=function(e,n,t){var o="".concat(r.i0.PACKAGES_PREFIX,"/"),i=a(e,t),c="/v".concat(n);return"".concat(o).concat(i).concat(c)},i=function(e){var n=e;return(n.startsWith("~")||n.startsWith("^"))&&(n=n.substring(1)),n},c=function(e,n){var t=e.packages.filter((function(e){return e.name===n}));return t.length>1?t.sort((function(e,n){var t=new Date(e.metadata.date);return new Date(n.metadata.date).getTime()-t.getTime()}))[0]:t[0]}},50535:function(e,n,t){t.d(n,{y:function(){return i}});var r=t(28735),a=t(53046),o=t(80184),i=function(e){var n=e.label,t=e.color,i=e.icon;return(0,o.jsxs)(r.Kq,{align:"center",direction:"row",spacing:2,children:[(0,o.jsx)(a.Ee,{alt:"".concat(n," icon"),src:i,w:4}),(0,o.jsx)(r.xv,{color:t,fontWeight:"bold",children:n})]})}},2148:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(81070),a=t(86617),o=t(80184),i=function(e){var n=e.children,t=e.language,i=a.dX.has(t),c=a.k8[t],s=i?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,o.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,o.jsx)("span",{children:n})})}},29988:function(e,n,t){t.d(n,{X:function(){return d}});var r=t(1413),a=t(45987),o=t(96450),i=t(19748),c=t(67003),s=t(80184),l=["children","value","label","zIndex"],d=function(e){var n=e.children,t=e.value,d=e.label,u=void 0===d?t:d,h=e.zIndex,p=(0,a.Z)(e,l);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,i.yc)({keywords:[t]}),zIndex:h,children:(0,s.jsx)(o.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},p),{},{children:(0,s.jsx)(o.Sn,{children:n})}))})}},41712:function(e,n,t){t.d(n,{T:function(){return s}});var r=t(72791),a=t(54270),o={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},i=t(59534),c=t(80184),s=(["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" "),function(e){var n=e.children,t=e.meta,s=e.pageName,l=(0,i.aQ)(o[s]);(0,r.useEffect)((function(){l()}),[l]);var d=t.suffix,u=void 0===d||d,h=t.title,p=t.description,v=u?"".concat(h," - Construct Hub"):h;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(a.q,{children:[!1,(0,c.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,c.jsx)("meta",{charSet:"utf-8"}),(0,c.jsx)("title",{children:v}),(0,c.jsx)("meta",{content:v,property:"og:title"}),(0,c.jsx)("meta",{content:v,name:"twitter:title"}),(0,c.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,c.jsx)("meta",{content:p,name:"description"}),(0,c.jsx)("meta",{content:p,property:"og:description"}),(0,c.jsx)("meta",{content:p,name:"twitter:description"})]}),n]})})},79227:function(e,n,t){t.d(n,{q:function(){return d}});var r=t(1413),a=t(45987),o=t(63209),i=t(28735),c=t(29158),s=t(80184),l=["date","format","formattedDate"],d=(0,o.Gp)((function(e,n){var t=e.date,o=e.format,d=e.formattedDate,u=(0,a.Z)(e,l);return(0,s.jsx)(i.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:t.toISOString(),ref:n},u),{},{children:null!==d&&void 0!==d?d:(0,c.Z)(t,null!==o&&void 0!==o?o:"")}))}));d.displayName="Time"},56804:function(e,n,t){t.d(n,{E:function(){return a}});var r=t(24026),a=function(e){var n=(0,r.Z)().data;return(null!==n&&void 0!==n?n:{})[e]}},7991:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(70885),a=t(72791),o=t(79271),i=t(86617),c=t(29499),s=t(4487),l=i.SQ.TypeScript,d="preferred-language",u=function(e){return null!=e&&i.dX.has(e)},h=function(e){if(u(e))return e;try{var n,t=null!==(n=localStorage.getItem(d))&&void 0!==n?n:"";if(u(t))return t}catch(r){}return l},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.updateUrl,t=e.updateSaved,i=(0,o.TH)(),l=i.pathname,p=i.hash,v=(0,o.k6)(),m=v.replace,f=(0,s.K)(),x=f.get(c.Tx.LANGUAGE),g=(0,a.useState)((function(){return h(x)})),j=(0,r.Z)(g,2),b=j[0],y=j[1];(0,a.useEffect)((function(){u(x)&&x!==b&&y(x)}),[x]),(0,a.useEffect)((function(){x!==b&&n&&(f.set(c.Tx.LANGUAGE,b),m({pathname:l,hash:p,search:f.toString()}))}),[b,n]);var w=(0,a.useCallback)((function(e){if(y(e),t)try{localStorage.setItem(d,e)}catch(n){}}),[t]);return(0,a.useMemo)((function(){return[b,w]}),[b,w])}},4487:function(e,n,t){t.d(n,{K:function(){return o}});var r=t(72791),a=t(79271),o=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,n,t){t.d(n,{JA:function(){return i},QX:function(){return c}});var r=t(1413),a=t(42982),o=t(9272),i=function(e){return!e||e.length<1?[]:e.reduce((function(e,n){return n.highlight?[].concat((0,a.Z)(e),[n.highlight]):e}),[])},c=function(e){for(var n=e.packageTags,t=e.keywords,i=new Array,c=new Set,s=0,l=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e.keyword)||void 0===n?void 0:n.label)})).map((function(e){var n;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(n=e.keyword)||void 0===n?void 0:n.label})}))}(n)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!o.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(t)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();c.has(u)||(i.push(d),c.add(u))}return i}},42577:function(e,n,t){t.r(n),t.d(n,{NotFound:function(){return m},default:function(){return m}});var r=t(28735),a=t(82504),o=t(91523),i=t(41712),c=t(1413),s=t(45987),l=t(63209),d=t(53046),u=t(80184),h=["sources"],p=(0,l.Gp)((function(e,n){var t=e.sources,a=(0,s.Z)(e,h);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===t||void 0===t?void 0:t.map((function(e,n){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},n)})),(0,u.jsx)(d.Ee,(0,c.Z)({ref:n},a))]})}));p.displayName="Picture";var v={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},m=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(p,{alt:"",inset:0,position:"absolute",sources:v.optimal,src:v.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(p,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:o.rU,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},26543:function(e,n,t){t.r(n),t.d(n,{default:function(){return rt}});var r=t(79271),a=t(42577),o=t(70885),i=t(28735),c=t(13822),s=t(72791),l=t(41712),d=t(78236),u=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return d.o.apply(void 0,["Package Page"].concat(n))},h={SCOPE:u(),SELECT_VERSION:u("Select Version"),CDK_BADGE:{eventName:function(e){return u("CDK Badge",e)}},KEYWORD:{eventName:function(e){return u("Keyword",e)}},LANGUAGE:{eventName:function(e){return u("Language",e)}},DOCUMENTATION:{TAB:u("Documentation","Tab")},DEPENDENCIES:{TAB:u("Dependencies","Tab")},FEEDBACK:{PUBLISHER:u("Feedback","Publisher"),CONSTRUCT_HUB:u("Feedback","Construct Hub"),ABUSE:u("Feedback","Abuse")}},p=t(29880),v=t(67003),m=t(7752),f=t(19748),x=t(1413),g=t(91933),j=t(15861),b=t(87757),y=t.n(b),w=t(29499),k=function(){var e=(0,j.Z)(y().mark((function e(n,t,r){var a,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat((0,p._J)(n,t,r)).concat(w.i0.ASSEMBLY_SUFFIX),e.next=3,fetch(a);case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),C=function(){var e=(0,j.Z)(y().mark((function e(n,t,r,a,o){var i,c,s,l,d;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="/docs-".concat(o?"".concat(o,"-"):"").concat(r,".md"),c="".concat((0,p._J)(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="text/markdown",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),S=function(){var e=(0,j.Z)(y().mark((function e(n,t,r){var a,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).startsWith("^")&&(a=a.substring(1,a.length)),o="".concat((0,p._J)(n,t,r)).concat(w.i0.METADATA_SUFFIX),e.next=5,fetch(o);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(o,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),Z=t(86617),T=t(7991),L=t(4487),E={packages:{},updated:"NOT_FOUND"},O=function(){var e=(0,j.Z)(y().mark((function e(){var n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(w.i0.ALL_VERSIONS);case 2:if((n=e.sent).ok){e.next=7;break}return console.error(n.statusText),console.warn("Could not retrieve package versions. Using empty data."),e.abrupt("return",E);case 7:return e.abrupt("return",n.json().catch((function(e){return console.error(e),console.warn("Error in package versions response. Using empty data."),E})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=t(4942),A=t(42982),D=t(15841),N=t.n(D),z=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},B=function e(n,t){var r=n[n.length-1];return r&&r.level<t.level?(r.children=e(r.children,t),n):(n.push(t),n)},R=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(n,"}[^#].*)"),"gm");return e.split(t).reduce((function(e,n){var t=e[e.length-1];return n.startsWith("#")||null!==t&&void 0!==t&&t.startsWith("#")?[].concat((0,A.Z)(e),[n]):(e[e.length-1]+=n,e)}),[])},U=function(e){var n,t,r,a,i=(null!==(n=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==n?n:[]).reduce((function(e,n){var t,r=n.split("="),a=(0,o.Z)(r,2),i=a[0],c=a[1],s=null!==(t=/['"](.*?)['"]/.exec(c))&&void 0!==t?t:[],l=(0,o.Z)(s,2),d=(l[0],l[1]);return(0,x.Z)((0,x.Z)({},e),{},(0,I.Z)({},i,d))}),{}),c=null!==(t=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==t?t:[e,e],s=(0,o.Z)(c,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var n;return null!==(n=N().get(e))&&void 0!==n?n:e}))),d=null!==(r=i["data-heading-title"])&&void 0!==r?r:l;return{id:null!==(a=i["data-heading-id"])&&void 0!==a?a:encodeURIComponent(z(d)),title:d}},W=function(e,n){var t=n.scope,r=n.language,a=n.name,o=n.version,i=n.submodule,c=t?"".concat(t,"/").concat(a):"".concat(a),s="/packages/".concat(c,"/v/").concat(o),l="?".concat(w.Tx.LANGUAGE,"=").concat(r);i&&(l+="&submodule=".concat(i));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),h=u.length>1?u.pop():"",p=u.join(d),v=R(h,3),m=R(p),f=[d.trim()].concat((0,A.Z)(null!==v&&void 0!==v?v:[])),g="".concat(s).concat(l),j=m.reduce((function(e,n){if(n.startsWith("#")){var t,r,a=U(n),o=a.id,i=a.title,c=null!==(t=null===(r=n.match(/(#)/gm))||void 0===r?void 0:r.length)&&void 0!==t?t:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(i),l={level:c,id:o,title:s,path:"".concat(g,"#").concat(o),children:[]};return B(e,l)}return e}),[]);1===j.length&&(j=j[0].children);var b,y,k=[].concat([{level:1,id:"Readme",title:"Readme",path:g,children:j}]),C={};return null===f||void 0===f||f.forEach((function(e){var n,t,r,a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(n=null===(t=e.match(/(#)/gm))||void 0===t?void 0:t.length)&&void 0!==n?n:1;if(null!==a&&void 0!==a&&a.length){var i=U(e),c=i.id,d=i.title,u=3===o?(r=c,"".concat(s,"/api/").concat(r).concat(l)):void 0,h=(0,x.Z)({level:o,id:c,title:d,children:[]},u?{path:u}:{});k=B(k,h),b={id:c,title:d},y=o}else 3===y&&(C[b.id]={title:b.title,content:e})})),{readme:p,apiReference:C,menuItems:k}},P=t(80184),F=(0,s.createContext)(void 0),M=function(){var e=(0,s.useContext)(F);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},K=function(e){var n,t,i,c,l,d=e.children,u=(0,r.UO)(),h=u.name,p=u.scope,v=u.version,m="".concat(p,"/").concat(h,"/v").concat(v),f=(0,T.Z)(),j=(0,o.Z)(f,1)[0],b=null!==(n=(0,L.K)().get(w.Tx.SUBMODULE))&&void 0!==n?n:"",y=(0,g.useQuery)("Versions",O).data,E=p?"".concat(p,"/").concat(h):h,I=null===y||void 0===y?void 0:y.packages[E],A=(0,g.useQuery)("".concat(m,"-docs-").concat(j,"-").concat(b),(function(){return C(h,v,Z.$[j],p,b)})),D=(0,g.useQuery)("".concat(m,"-assembly"),(function(){return k(h,v,p)})),N=(0,g.useQuery)("".concat(m,"-metadata"),(function(){return S(h,v,p)})),z="".concat(p?"".concat(p,"/").concat(h):h," ").concat(v),B=null!==(t=null===(i=D.data)||void 0===i?void 0:i.description)&&void 0!==t?t:"",R=Boolean(A.error||D.error),U=Boolean(!A.isLoading&&!D.isLoading&&A.data&&D.data),M=Boolean(j===Z.SQ.TypeScript||D.isLoading||D.error||null!=(null===(c=D.data)||void 0===c||null===(l=c.targets)||void 0===l?void 0:l[j.toString()])),K=Boolean(!N.isLoading&&(D.isLoading||A.isLoading)),_=(0,s.useMemo)((function(){return A.data?W(A.data,{scope:p,name:h,version:v,language:j,submodule:b}):{menuItems:[]}}),[A.data,h,p,v,j,b]);return D.error?(0,P.jsx)(a.NotFound,{}):(0,P.jsx)(F.Provider,{value:(0,x.Z)({assembly:D,hasDocs:U,hasError:R,isLoadingDocs:K,isSupported:M,language:j,markdown:A,metadata:N,name:h,pageDescription:B,pageTitle:z,scope:p,version:v,allVersions:I},_),children:d})},_=t(88606),H=(0,_.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),q=function(){var e,n=M().assembly.data;if(!n)return(0,P.jsx)(m.w,{});var t=Object.entries(null!==(e=n.dependencies)&&void 0!==e?e:{});return t.length?(0,P.jsx)(i.Kq,{"data-testid":H.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:t.map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)(v.O,{_first:{ml:4},"data-testid":H.dependenciesLink,fontWeight:"semibold",p:2,to:(0,f.Mt)({name:t,version:(0,p.Kj)(r)}),children:[t," - ",r]},"".concat(t,"-").concat(r))}))}):(0,P.jsx)(i.M5,{children:"This library does not have any known CDK dependencies"})},Q=t(75272),G=t(10855),V=t(6074),X=t(76798),$=t(69113),J=function(e){return(0,P.jsxs)($.JO,(0,x.Z)((0,x.Z)({},e),{},{children:[(0,P.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,P.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]}))},Y={h:6,ml:2,w:6},ee=function(){var e,n=M(),t=(0,G.Sx)({base:"horizontal",md:"vertical"}),r=(0,P.jsx)(i.iz,{borderColor:"white",mr:6,orientation:t}),a=n.metadata.data,o=n.assembly.data;if(!o||!a)return null;var c,s=null!==(e=null===o||void 0===o?void 0:o.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=null!==(c=s.url)&&void 0!==c&&c.endsWith(".git")?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return(0,P.jsxs)(i.Kq,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":H.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.PUBLISHER,"data-testid":H.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:(0,P.jsx)(J,(0,x.Z)({color:"white"},Y)),variant:"solid",children:"Provide feedback to publisher"}),r]}),(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.CONSTRUCT_HUB,"data-testid":H.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(X.Sx,"/issues/new"),rightIcon:(0,P.jsx)(J,(0,x.Z)({color:"white"},Y)),children:"Provide feedback to Construct Hub"}),r,(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.ABUSE,"data-testid":H.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===o||void 0===o?void 0:o.name))),rightIcon:(0,P.jsx)(Q.LQ,(0,x.Z)({},Y)),children:"Report abuse"})]})},ne=t(65223),te=t(82504),re=t(59534),ae=function(e,n){return(0,re.oJ)(e,"NavTree",n)},oe={color:"gray.900",h:4,w:4},ie=function(e){var n=e.children,t=e["data-event"],r=e.path,a=e.title,o=e.showToggle,c={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:o?2:1,marginLeft:o?0:1,fontWeight:o?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return r?(0,P.jsx)(v.O,(0,x.Z)((0,x.Z)({"data-event":t,title:a,to:r},c),{},{children:n})):(0,P.jsx)(i.xv,(0,x.Z)((0,x.Z)({},c),{},{children:n}))},ce=function e(n){var t,a=n.children,o=n["data-event"],c=n.title,l=n.path,d=n.level,u=n.onOpen,h=(0,re.z$)().trackCustomEvent,p=d<2,v=(0,ne.qY)({onOpen:u,defaultIsOpen:p}),m=(0,r.TH)(),f=m.hash,g=m.pathname,j=new URL(null!==l&&void 0!==l?l:"",window.origin),b=null!==l&&void 0!==l&&l.includes("/api/")?j.pathname===g:j.hash&&f&&j.hash===f,y=(null!==(t=null===a||void 0===a?void 0:a.length)&&void 0!==t?t:0)>0,w=v.isOpen&&y,k=(0,s.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(n,t){return(0,s.createElement)(e,(0,x.Z)((0,x.Z)({"data-event":o},n),{},{key:t,level:d+1,onOpen:v.onOpen}))}))}),[a,o,v.onOpen,d]);return(0,P.jsxs)(i.kC,{direction:"column",children:[(0,P.jsxs)(i.kC,{align:"center",color:b?"blue.500":"gray.800",children:[y&&(0,P.jsx)(te.hU,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:v.isOpen?(0,P.jsx)(Q.v4,(0,x.Z)({},oe)):(0,P.jsx)(Q.XC,(0,x.Z)({},oe)),ml:-1,onClick:function(){v.onToggle(),o&&h((0,re.Q5)({name:ae(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,P.jsx)(ie,{"data-event":o?ae(o,"Link"):void 0,path:l,showToggle:y,title:c,children:c})]}),(0,P.jsx)(i.xu,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:w?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:k})]})},se=function(e){var n=e["data-event"],t=e.items;return(0,P.jsx)(i.kC,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return(0,s.createElement)(ce,(0,x.Z)((0,x.Z)({},e),{},{"data-event":n,key:t,level:0,onOpen:void 0}))}))})},le=t(86988),de=t(3669),ue=t(63209),he=t(95798),pe=t(57992),ve=t(89570),me=(0,ue.Gp)((function(e,n){var t=e.value,r=e.onChange,a=e.onSubmit,i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];return(0,ve.N)(l,{onChange:r}),(0,P.jsx)(pe.l,{"data-testid":"choose-submodule-search-form",onSubmit:a,children:(0,P.jsxs)(he.BZ,{children:[(0,P.jsx)(he.Z8,{children:(0,P.jsx)(Q.W1,{color:"gray.400"})}),(0,P.jsx)(he.II,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:n,value:l,variant:"filled"})]})})}));me.displayName="SearchInput";var fe=function(e){var n=e.inputValue,t=e.isOpen,a=e.onClose,o=e.onInputChange,c=e.submodules,l=(0,s.useRef)(null),d=(0,r.k6)().push,u=(0,s.useCallback)((function(e){a(),d(e)}),[a,d]),h=(0,s.useCallback)((function(e){if(e.preventDefault(),c.length){var n=c[0].to;u(n)}}),[u,c]);return(0,P.jsx)(le.u_,{initialFocusRef:l,isOpen:t,onClose:a,children:(0,P.jsx)(le.ZA,{children:(0,P.jsxs)(le.hz,{mx:4,children:[(0,P.jsx)(le.ol,{"data-testid":"choose-submodule-modal-close"}),(0,P.jsx)(le.xB,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,P.jsxs)(le.fe,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,P.jsx)(i.xu,{pb:4,px:4,children:(0,P.jsx)(me,{onChange:o,onSubmit:h,ref:l,value:n})}),(0,P.jsx)(i.iz,{}),(0,P.jsx)(i.QI,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:c.map((function(e){var n=e.name,t=e.to;return(0,P.jsx)(de.T,{"data-testid":"choose-submodule-result",name:n,onClick:function(){return u(t)}},n)}))})]})]})})})},xe=function(){var e,n,t,a=M(),c=a.assembly,l=a.name,d=a.language,u=a.scope,h=a.version,p=(0,r.k6)().push,v=(0,L.K)(),m=Object.keys(null!==(e=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}),x=(0,ne.qY)(),g=x.isOpen,j=x.onOpen,b=x.onClose,y=v.get(w.Tx.SUBMODULE),k=y?"Submodule: ".concat(y):"Choose Submodule",C=(0,s.useState)(""),S=(0,o.Z)(C,2),Z=S[0],T=S[1],E=u?"".concat(u,"/").concat(l):l,O=(0,s.useCallback)((function(e){return(0,f.Mt)({name:E,version:h,language:d,submodule:e})}),[d,E,h]),I=(0,s.useMemo)((function(){var e=m;return Z&&(e=e.filter((function(e){return e.toLowerCase().includes(Z.toLowerCase())}))),e.map((function(e){var n=e.split(".")[1];return{name:n,to:O(n)}}))}),[m,Z,O]);return 0===m.length?null:(0,P.jsxs)(i.Kq,{spacing:4,w:"100%",children:[y&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(te.zx,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,P.jsx)(Q.Rp,{"aria-label":"Back to construct root"}),onClick:function(){p((0,f.Mt)({name:E,version:h,language:d}))},title:"Back to construct root",variant:"link",children:null===c||void 0===c||null===(t=c.data)||void 0===t?void 0:t.name}),(0,P.jsx)(i.iz,{})]}),(0,P.jsx)(te.zx,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:(0,P.jsx)(Q.v4,{}),title:"Choose Submodule",variant:"link",children:k}),(0,P.jsx)(fe,{inputValue:Z,isOpen:g,onClose:b,onInputChange:T,submodules:I})]})},ge=t(51922),je=function(){var e,n,t=M(),a=t.assembly,o=t.menuItems,c=(0,ne.qY)(),l=(0,r.TH)(),d=Object.keys(null!==(e=null===(n=a.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0;return(0,s.useEffect)((function(){c.isOpen&&c.onClose()}),[l]),(0,P.jsxs)(i.xu,{bottom:0,display:{md:"none"},left:0,pos:"fixed",right:0,children:[(0,P.jsx)(te.zx,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:c.onOpen,variant:"unstyled",w:"full",children:(0,P.jsxs)(i.kC,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,P.jsx)(Q.g8,{})]})}),(0,P.jsx)(ge.h_,{children:(0,P.jsxs)(le.dy,(0,x.Z)((0,x.Z)({},c),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,P.jsx)(le.P1,{}),(0,P.jsxs)(le.sc,{maxH:"60vh",children:[(0,P.jsx)(le.OX,{children:"Table of contents"}),(0,P.jsx)(le.cC,{}),(0,P.jsxs)(le.Ng,{children:[d&&(0,P.jsx)(i.xu,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,P.jsx)(xe,{})}),(0,P.jsx)(se,{items:o})]})]})]}))})]})},be=t(29370),ye=t(54915),we=t.n(ye),ke=t(5474),Ce=t.n(ke),Se=t(16580),Ze=t.n(Se),Te=t(45618),Le=t(65218),Ee=t.n(Le),Oe=t(45987),Ie=t(60185),Ae=t(32536),De=["value"],Ne=(0,ue.Gp)((function(e,n){var t=e.value,r=(0,Oe.Z)(e,De),a=(0,ne.VP)(t),o=a.hasCopied,i=a.onCopy;return(0,P.jsx)(te.hU,(0,x.Z)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:o?(0,P.jsx)(Q.nQ,{color:"green.300"}):(0,P.jsx)(Q.TI,{}),minW:"auto",ml:1,onClick:i,ref:n,variant:"ghost",w:6},r))}));Ne.displayName="CopyButton";var ze,Be=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.kC,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,P.jsx)(Ne,{value:n})}),(0,P.jsx)(i.xu,{overflowX:"auto",p:2,children:t.map((function(e,n){return(0,P.jsx)("div",(0,x.Z)((0,x.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,P.jsx)(i.xu,(0,x.Z)({as:"span",sx:{wordWrap:"normal"}},a({token:e,key:n})),n)}))}),n)}))})]})},Re=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,P.jsxs)(i.rj,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,P.jsx)(i.xu,{m:-3,maxW:"full",overflow:"auto",p:3,children:t.map((function(e,n){return(0,P.jsx)("div",(0,x.Z)((0,x.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,P.jsx)("span",(0,x.Z)({},a({token:e,key:n})),n)}))}),n)}))}),(0,P.jsx)(i.kC,{align:"center",ml:1,children:(0,P.jsx)(Ne,{value:n})})]})},Ue=["code","language"],We=function(e){var n=e.code,t=e.language,r=(0,Oe.Z)(e,Ue);return(0,P.jsx)(Ie.ZP,(0,x.Z)((0,x.Z)({},Ie.lG),{},{code:n,language:t,theme:Ae.Z,children:function(e){return(0,P.jsx)(i.xu,(0,x.Z)((0,x.Z)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},r),{},{children:e.tokens.length>1?(0,P.jsx)(Be,(0,x.Z)((0,x.Z)({},e),{},{code:n})):(0,P.jsx)(Re,(0,x.Z)((0,x.Z)({},e),{},{code:n}))}))}}))},Pe=function(e){var n=e.inline,t=e.children,r=e.language,a=void 0===r?"typescript":r;if(n)return(0,P.jsx)(i.EK,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:t});var o=s.Children.toArray(t).reduce((function(e,n){return"string"===typeof n?"".concat(e).concat(n):e}),"").trim();return(0,P.jsx)(We,{code:o,fontSize:"0.9rem",language:a})},Fe=t(58340),Me=function e(n){return s.Children.toArray(n).reduce((function(n,t){return"string"===typeof t?n+t:"object"===typeof t&&"props"in t?n+e(t.props.children):n}),"").trim()},Ke=function(e){var n,t,r=e.level,a=e.children,o=["2xl","xl","lg","md","sm","xs"][r-1],c="h".concat(r),s=(new DOMParser).parseFromString(Fe.renderToStaticMarkup(a),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(n=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==n?n:Me(a),d=null!==(t=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==t?t:z(l);return(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(i.X6,{as:c,backgroundColor:5===r?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:r,marginBottom:4,marginTop:r>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:r>=4?2:void 0,size:o,children:(0,P.jsx)(v.O,{"data-heading-id":"#".concat(d),"data-heading-level":r,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:a})})})},_e=t(53046),He=t(97005),qe=(0,_.$)("markdown",["container"]),Qe=["children","href"],Ge={a:function(e){var n=e.children,t=e.href,r=(0,Oe.Z)(e,Qe),a=i.rU;try{if(t&&t.startsWith("http"))if(new URL(t).hostname!==window.location.hostname){a=function(e){return(0,P.jsx)(V.d,(0,x.Z)({},e))}}}catch(o){a=i.rU}return(0,P.jsx)(a,(0,x.Z)((0,x.Z)({color:"blue.500",href:t,sx:{"> img + svg":{display:"none"}}},r),{},{children:n}))},blockquote:function(e){var n=e.children;return(0,P.jsx)(i.xu,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:n})},caption:He.Rn,code:Pe,em:function(e){var n=e.children;return(0,P.jsx)(i.xu,{as:"em",fontStyle:"normal",fontWeight:"bold",children:n})},h1:Ke,h2:Ke,h3:Ke,h4:Ke,h5:Ke,h6:Ke,hr:function(){return(0,P.jsx)(P.Fragment,{})},img:function(e){return(0,P.jsx)(_e.Ee,(0,x.Z)({display:"inline-block"},e))},li:function(e){var n=e.children;return(0,P.jsx)(i.HC,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:n})},ol:function(e){var n=e.children;return(0,P.jsx)(i.GS,{children:n})},p:function(e){var n=e.children;return(0,P.jsx)(i.xv,{lineHeight:"1.5",mx:2,my:4,children:n})},pre:function(e){var n=e.children,t=e.lang;return t?(0,P.jsx)(Pe,{language:t,children:n}):(0,P.jsx)(i.xu,{as:"pre",children:n})},sup:function(e){var n=e.children,t=void 0,r="";if(Array.isArray(n)){var a=(0,o.Z)(n,1)[0];"string"===typeof a&&(r=a)}return"Required"===r?t="orange.700":"Optional"===r&&(t="green.700"),(0,P.jsx)(i.xu,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:function(e){var n=e.children;return(0,P.jsx)(i.xu,{maxW:"100%",overflowX:"auto",children:(0,P.jsx)(He.iA,{variant:"striped",children:n})})},tbody:He.p3,td:He.Td,tfoot:He.$R,th:He.Th,thead:He.hr,tr:He.Tr,ul:function(e){var n=e.children;return(0,P.jsx)(i.QI,{marginTop:2,padding:0,children:n})}},Ve=(0,x.Z)({},be);Ve.attributes.span=(null!==(ze=Ve.attributes.span)&&void 0!==ze?ze:[]).concat(["dataHeadingTitle","dataHeadingId"]);var Xe=[[Ce()],[Ze(),Ve]],$e=[Ee(),Te.Z],Je=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ye=function(e){var n=e.children,t=function(e){var n=e.type,t=e.url,r=e.directory;if("git"===n){var a=Je.exec(t);if(null!=a){var i=(0,o.Z)(a,3);return{owner:i[1],repo:i[2],directory:r}}}}(e.repository),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==t?we().uriTransformer:function(r){var a=we().uriTransformer(r),i=(0,o.Z)(a,1)[0];if("#"===i||"/"===i)return a;if(a.includes("://"))return a;var c=t.owner,s=t.repo.replace(/\.git$/,""),l=t.directory?"".concat(t.directory,"/"):"";return"https://".concat(e,"/").concat(c,"/").concat(s,"/").concat(n,"/").concat(l).concat(a)}};return(0,P.jsx)(i.xu,{"data-testid":qe.container,px:8,children:(0,P.jsx)(we(),{components:Ge,rehypePlugins:Xe,remarkPlugins:$e,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})},en=function(e){var n=e.children;return(0,P.jsx)(i.xv,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:n})},nn=function(){var e=M(),n=e.isLoadingDocs,t=e.readme,r=e.assembly.data;return!n&&t&&r?"\n"===t?(0,P.jsx)(en,{children:"No readme available for this module or submodule"}):(0,P.jsx)(Ye,{repository:r.repository,children:t}):null},tn=t(91523),rn=function(){var e=M().language,n=(0,P.jsx)(V.d,{href:"".concat(X.Sx,"/issues/new"),children:"issue"});return(0,P.jsxs)(en,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},an=function(e){var n=e.rootId,t=(0,r.TH)(),a=t.pathname,o=t.hash,c=t.search,s=M(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=(0,r.UO)().typeId,n=M().apiReference;if(e)return null===n||void 0===n?void 0:n[e]}();if(l)return null;if(!u||!d)return(0,P.jsx)(rn,{});var h=u.title,p=u.content,v="".concat(a).concat(c,"#").concat(o);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.X6,{as:"h2",p:8,size:"2xl",children:(0,P.jsx)(tn.OL,{id:n,to:v,children:h})}),(0,P.jsx)(Ye,{repository:d.repository,children:p})]})},on="4.5rem",cn="apidocs_header",sn="api",ln=function(){var e,n=M().assembly.data;return Object.keys(null!==(e=null===n||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0?(0,P.jsx)(i.kC,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:(0,P.jsx)(xe,{})}):null},dn=function(){var e=(0,r.$B)().path,n=M().menuItems,t=(0,r.TH)(),a=t.hash,o=t.pathname,c=t.search;return(0,s.useEffect)((function(){if(a){var e=document.querySelector('[data-heading-id="'.concat(a,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var n=e.split("/");return n[n.length-2]===sn}(o)){var n=document.getElementById(cn);null===n||void 0===n||n.scrollIntoView(!0)}else window.scrollTo(0,0)})),(0,P.jsxs)(i.rj,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[(0,P.jsxs)(i.kC,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(on,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:on,children:[(0,P.jsx)(ln,{}),(0,P.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,P.jsx)(se,{"data-event":h.SCOPE,items:n})})]}),(0,P.jsx)(i.xu,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:on}},children:(0,P.jsxs)(r.rs,{children:[(0,P.jsx)(r.l_,{exact:!0,from:"".concat(e,"/").concat(sn),to:{pathname:e,search:c}}),(0,P.jsx)(r.AW,{exact:!0,path:e,children:(0,P.jsx)(nn,{})}),(0,P.jsx)(r.AW,{exact:!0,path:"".concat(e,"/").concat(sn,"/:typeId"),children:(0,P.jsx)(an,{rootId:cn})})]})}),(0,P.jsx)(je,{})]})},un=t(92213),hn=t(2148),pn=function(e){var n=e.targetLanguages,t=e.selectedLanguage,a=(0,re.z$)().trackCustomEvent,o=M(),c=o.name,s=o.scope,l=o.version,d=(0,r.k6)().push;return(0,P.jsx)(i.Kq,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:(0,A.Z)(n).sort((function(e,n){return Z.a2.indexOf(e)-Z.a2.indexOf(n)})).map((function(e){var n=!Z.dX.has(e),r=e===t,o=Z.kP[e].icon;return(0,P.jsx)(hn.N,{language:e,children:(0,P.jsx)(te.hU,{"aria-label":"Select ".concat(e," icon"),border:r?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:n?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:n,icon:(0,P.jsx)(o,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){r||(a((0,re.Q5)({name:h.LANGUAGE.eventName(e)})),d((0,f.Mt)({name:(0,p.KD)(c,s),version:l,language:e})))},p:1,variant:"outline",w:"max-content"})},e)}))})},vn=new Set(Z.a2),mn=function(){var e,n=M(),t=n.assembly.data,r=n.language,a=(0,T.Z)({updateSaved:!0,updateUrl:!0}),i=(0,o.Z)(a,2)[1],c=(0,T.Z)({updateUrl:!0}),l=(0,o.Z)(c,2)[1],d=[].concat((0,A.Z)(Object.keys(null!==(e=null===t||void 0===t?void 0:t.targets)&&void 0!==e?e:{})),[Z.SQ.TypeScript]),u=d.includes(r);(0,s.useEffect)((function(){u||l(Z.SQ.TypeScript)}),[u]);var h={selectedLanguage:u?r:Z.SQ.TypeScript,setSelectedLanguage:i,targetLanguages:d.filter((function(e){return vn.has(e)}))};return(0,P.jsx)(pn,(0,x.Z)({},h))},fn=t(81070),xn=t(77231),gn=t(44717),jn=t(50535),bn=["license"],yn=(0,ue.Gp)((function(e,n){var t=e.license,r=(0,Oe.Z)(e,bn),a=gn[t].url;return(0,P.jsx)(V.d,(0,x.Z)((0,x.Z)({href:a,ref:n},r),{},{children:t}))}));yn.displayName="LicenseLink";var wn=t(79227),kn="MMM dd, yyyy 'at' h:mmaaa",Cn=t(56804),Sn=t(10297),Zn=t(98371),Tn=["openText","closeText","isOpen"],Ln=function(e){var n=e.openText,t=e.closeText,r=e.isOpen,a=(0,Oe.Z)(e,Tn);return(0,P.jsx)(te.zx,(0,x.Z)((0,x.Z)({colorScheme:"blue",leftIcon:r?(0,P.jsx)(Q.g8,{}):(0,P.jsx)(Q.v4,{}),variant:"link"},a),{},{children:r?t:n}))},En=function(e){var n=e.children,t=e.label,r=e.tooltip;return(0,P.jsx)(fn.u,{hasArrow:!0,isDisabled:!r,label:r,placement:"left",children:(0,P.jsxs)(i.xv,{fontWeight:"bold",children:[t," ",(0,P.jsx)(i.xu,{as:"span",fontWeight:"normal",children:n})]})})},On=function(e){var n=e.downloads;return(0,P.jsx)(En,{label:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.xu,{as:"span",mr:1,children:(0,P.jsx)(Q._8,{})}),n.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},In=function(e){var n=M(),t=(0,Sn.V)().data,r=(0,ne.qY)({defaultIsOpen:!0}),a=(0,Cn.E)("packageLinks"),c=n.assembly.data,l=n.metadata.data,d=n.scope?"".concat(n.scope,"/").concat(n.name):n.name,u=(0,Zn.JA)(null===l||void 0===l?void 0:l.packageTags),h=(0,o.Z)(u,1)[0],p=function(e){var n=e.assembly,t=e.metadata,r=e.name,a=e.packageLinks,o=e.stats,i=[];if(n||t||o||a){var c,l,d,u,h,p=null===o||void 0===o||null===(c=o.packages)||void 0===c||null===(l=c[r])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&i.push((0,P.jsx)(On,{downloads:p}));var m=null===n||void 0===n?void 0:n.author.name,x=null===n||void 0===n?void 0:n.repository,g=null===n||void 0===n?void 0:n.license;if(m){var j=(0,P.jsx)(v.O,{color:"blue.500",to:(0,f.yc)({query:m}),children:m});i.push((0,P.jsx)(En,{label:"Author",children:j}))}var b=null===t||void 0===t?void 0:t.date;if(b){var y=(0,P.jsx)(wn.q,{date:new Date(b),fontWeight:"normal",format:kn});i.push((0,P.jsx)(En,{label:"Published",children:y}))}if(x){var w=(0,f.rM)(x.url);if(w){var k=(0,P.jsx)(V.d,{href:w.url,children:w.hostname});i.push((0,P.jsx)(En,{label:"Repository",children:k}))}}if(g&&g in gn){var C=(0,P.jsx)(yn,{license:g});i.push((0,P.jsx)(En,{label:"License",children:C}))}null!==a&&void 0!==a&&a.length&&a.forEach((function(e){var n,r=e.linkLabel,a=e.configKey,o=e.linkText,c=(null!==(n=null===t||void 0===t?void 0:t.packageLinks)&&void 0!==n?n:{})[a];if(c){var s=(0,P.jsx)(V.d,{href:c,children:null!==o&&void 0!==o?o:c});i.push((0,P.jsxs)(En,{label:r,children:[r,": ",s]}))}}));var S=null!==(u=null===t||void 0===t||null===(h=t.links)||void 0===h?void 0:h.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===n||void 0===n?void 0:n.name,"/v/").concat(null===n||void 0===n?void 0:n.version);if(S){var Z=(0,P.jsx)(V.d,{href:S,children:new URL(S).hostname});i.push((0,P.jsx)(En,{label:"Registry",children:Z}))}}return i.map((function(e,n){return(0,P.jsx)(s.Fragment,{children:e},n)}))}({assembly:c,metadata:l,name:d,packageLinks:a,stats:t});if(!p.length)return null;var m=p.slice(0,2),g=p.slice(2,p.length);return(0,P.jsxs)(i.Kq,(0,x.Z)((0,x.Z)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[h&&(0,P.jsx)(jn.y,(0,x.Z)({},h)),m,g.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(xn.UO,{animateOpacity:!0,in:r.isOpen,children:(0,P.jsx)(i.Kq,{spacing:2,children:g})}),(0,P.jsx)(Ln,{closeText:"See fewer details (".concat(m.length,")"),fontSize:"inherit",isOpen:r.isOpen,onClick:r.onToggle,openText:"See more details (".concat(g.length,")")})]})]}))},An=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},Dn="heading",Nn="install",zn="languages",Bn="meta",Rn=An([Dn],[Bn],[zn],[Nn]),Un=An([Dn,zn,Nn],[Dn,null,Bn]),Wn=function(e){var n=e.children;return(0,P.jsx)(i.rj,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Rn,lg:Un},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:n})},Pn=t(77766),Fn=t(29988),Mn=t(57640),Kn=t(10724),_n=t.n(Kn),Hn=t(84586),qn=function(){var e=M(),n=e.scope,t=e.name,a=e.version,o=e.allVersions,i=e.language,c=n?"".concat(n,"/").concat(t):t,l=(0,Hn.A)(),d=(0,r.k6)().push,u=l.findByName(c),p=(0,s.useMemo)((function(){var e=u.map((function(e){return e.version})),n=(0,A.Z)(new Set([].concat((0,A.Z)(null!==o&&void 0!==o?o:[]),(0,A.Z)(e),[a])));return n.sort(_n().rcompare),n}),[u,a,o]);return(0,P.jsx)(Mn.Ph,{"data-event":h.SELECT_VERSION,"data-testid":H.selectVersionDropdown,fontWeight:"500",onChange:function(e){d((0,f.Mt)({name:c,version:e.target.value,language:i}))},size:"sm",value:a,width:"10rem",children:p.map((function(e){return(0,P.jsx)("option",{"data-testid":H.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},Qn=["assembly","name","description","metadata","version"],Gn=function(e){var n,t,r,a=e.assembly,o=e.name,c=e.description,s=e.metadata,l=(e.version,(0,Oe.Z)(e,Qn)),d=(0,Zn.QX)({packageTags:null!==(n=null===s||void 0===s?void 0:s.packageTags)&&void 0!==n?n:[],keywords:null!==(t=null===a||void 0===a?void 0:a.keywords)&&void 0!==t?t:[]}),u=null!==(r=s.constructFramework)&&void 0!==r?r:{};return(0,P.jsxs)(i.Kq,(0,x.Z)((0,x.Z)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[(0,P.jsxs)(i.kC,{align:"center",wrap:"wrap",children:[(0,P.jsx)(i.X6,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:o}),(0,P.jsx)(qn,{})]}),(0,P.jsx)(i.xv,{"data-testid":H.description,fontSize:"1rem",children:c}),(0,P.jsxs)(i.kC,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,P.jsx)(Pn.uo,(0,x.Z)({"data-event":h.CDK_BADGE.eventName("".concat(u.name).concat(void 0!==u.majorVersion?" v".concat(u.majorVersion):""))},u)),d.map((function(e){var n=e.id,t=e.keyword,r=(t=void 0===t?{}:t).label,a=t.color;return(0,P.jsx)(Fn.X,{"data-event":h.KEYWORD.eventName(r),value:n,variant:a,children:r},n)}))]})]}))},Vn=function(e){var n=M(),t=n.language,r=n.assembly.data,a=(0,ne.qY)();if(!r)return null;var o=function(e){var n=e.language,t=e.assembly,r=t.version;if(n===Z.SQ.TypeScript){var a=t.name;return"npm install ".concat(a,"@").concat(r)}if(n===Z.SQ.Python){var o,i,c=null===(o=t.targets)||void 0===o||null===(i=o.python)||void 0===i?void 0:i.distName;if(!c)return;return"pip install ".concat(c,"==").concat(r)}if(n===Z.SQ.Java){var s,l,d,u,h,p,v=null===(s=t.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,m=null===(u=t.targets)||void 0===u||null===(h=u.java)||void 0===h||null===(p=h.maven)||void 0===p?void 0:p.artifactId;if(!v||!m)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(v,"</groupId>")," <artifactId>".concat(m,"</artifactId>")," <version>".concat(r,"</version>"),"</dependency>"].join("\n")}if(n===Z.SQ.DotNet){var f,x,g=null===(f=t.targets)||void 0===f||null===(x=f.dotnet)||void 0===x?void 0:x.packageId;if(!g)return;return"dotnet add package ".concat(g," --version ").concat(r)}}({language:t,assembly:r});return o&&t?(0,P.jsx)(i.kC,(0,x.Z)((0,x.Z)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===Z.SQ.Java?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ln,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,P.jsx)(i.xu,{maxW:"full",overflow:"hidden",children:(0,P.jsx)(xn.UO,{in:a.isOpen,children:(0,P.jsx)(We,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,P.jsx)(We,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null},Xn=function(){var e=M(),n=e.assembly,t=e.metadata,r=e.version,a=n.data,o=t.data;return a&&o?(0,P.jsxs)(Wn,{children:[(0,P.jsx)(Gn,{assembly:a,description:a.description,gridArea:Dn,metadata:o,name:a.name,version:r}),(0,P.jsx)(i.kC,{align:"start",gridArea:zn,children:(0,P.jsx)(mn,{})}),(0,P.jsxs)(i.kC,{direction:"column",gridArea:Bn,children:[(0,P.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mb:2}),(0,P.jsx)(In,{}),(0,P.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,P.jsx)(i.kC,{align:"start",gridArea:Nn,children:(0,P.jsx)(Vn,{})})]}):(0,P.jsx)(un.$,{mx:"auto",my:10,size:"xl"})},$n=function(){var e=M(),n=e.pageDescription,t=e.pageTitle,r=(0,s.useState)(0),a=(0,o.Z)(r,2),d=a[0],u=a[1];return(0,s.useEffect)((function(){u(0)}),[t]),(0,P.jsx)(l.T,{meta:{title:t,description:n},pageName:"packageProfile",children:(0,P.jsxs)(i.rj,{bg:"white","data-testid":H.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,P.jsx)(Xn,{}),(0,P.jsxs)(c.mQ,{index:d,onChange:u,pt:4,variant:"line",children:[(0,P.jsxs)(c.td,{borderBottom:"base",mx:{base:0,lg:6},children:[(0,P.jsx)(c.OK,{"data-event":h.DOCUMENTATION.TAB,children:"Documentation"}),(0,P.jsx)(c.OK,{"data-event":h.DEPENDENCIES.TAB,"data-testid":H.dependenciesTab,children:"Dependencies"})]}),(0,P.jsxs)(c.nP,{maxW:"full",children:[(0,P.jsx)(c.x4,{p:0,children:(0,P.jsx)(dn,{})}),(0,P.jsx)(c.x4,{children:(0,P.jsx)(q,{})})]})]}),(0,P.jsx)(ee,{})]})})},Jn=function(){return(0,P.jsx)(K,{children:(0,P.jsx)($n,{})})},Yn=t(95038),et=function(){var e=(0,r.UO)(),n=e.name,t=e.scope,o=(0,Yn.r)();if(o.isLoading||!o.data)return(0,P.jsx)(i.M5,{minH:"16rem",children:(0,P.jsx)(un.$,{size:"xl"})});var c=function(e,n,t){var r=(0,p.KD)(n,t),a=(0,p._c)(e,r);if(a){var o=a.version,i="/v/".concat(o);return"".concat("/packages/").concat(r).concat(i)}}(o.data,n,t);return c?(0,P.jsx)(r.l_,{to:c}):(0,P.jsx)(a.default,{})},nt="[^@\\/]+",tt="@[^\\/]+",rt=function(){var e=(0,r.$B)().path;return(0,P.jsxs)(r.rs,{children:[(0,P.jsx)(r.AW,{exact:!0,path:"".concat(e,"/:scope(").concat(tt,")?/:name(").concat(nt,")"),children:(0,P.jsx)(et,{})}),(0,P.jsx)(r.AW,{path:"".concat(e,"/:scope(").concat(tt,")?/:name(").concat(nt,")/v/:version"),children:(0,P.jsx)(Jn,{})}),(0,P.jsx)(r.AW,{path:"*",children:(0,P.jsx)(a.NotFound,{})})]})}}}]);
|
|
2
|
-
//# sourceMappingURL=543.
|
|
1
|
+
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[543,577],{29880:function(e,n,t){t.d(n,{KD:function(){return a},_J:function(){return o},Kj:function(){return i},_c:function(){return c}});var r=t(29499),a=function(e,n){return n?"".concat(n,"/").concat(e):e},o=function(e,n,t){var o="".concat(r.i0.PACKAGES_PREFIX,"/"),i=a(e,t),c="/v".concat(n);return"".concat(o).concat(i).concat(c)},i=function(e){var n=e;return(n.startsWith("~")||n.startsWith("^"))&&(n=n.substring(1)),n},c=function(e,n){var t=e.packages.filter((function(e){return e.name===n}));return t.length>1?t.sort((function(e,n){var t=new Date(e.metadata.date);return new Date(n.metadata.date).getTime()-t.getTime()}))[0]:t[0]}},50535:function(e,n,t){t.d(n,{y:function(){return i}});var r=t(28735),a=t(53046),o=t(80184),i=function(e){var n=e.label,t=e.color,i=e.icon;return(0,o.jsxs)(r.Kq,{align:"center",direction:"row",spacing:2,children:[(0,o.jsx)(a.Ee,{alt:"".concat(n," icon"),src:i,w:4}),(0,o.jsx)(r.xv,{color:t,fontWeight:"bold",children:n})]})}},2148:function(e,n,t){t.d(n,{N:function(){return i}});var r=t(81070),a=t(86617),o=t(80184),i=function(e){var n=e.children,t=e.language,i=a.dX.has(t),c=a.k8[t],s=i?"Click to view documentation in ".concat(c):"Documentation support for ".concat(c," is coming soon!");return(0,o.jsx)(r.u,{hasArrow:!0,label:s,placement:"top-start",children:(0,o.jsx)("span",{children:n})})}},29988:function(e,n,t){t.d(n,{X:function(){return d}});var r=t(1413),a=t(45987),o=t(96450),i=t(19748),c=t(67003),s=t(80184),l=["children","value","label","zIndex"],d=function(e){var n=e.children,t=e.value,d=e.label,u=void 0===d?t:d,h=e.zIndex,p=(0,a.Z)(e,l);return(0,s.jsx)(c.O,{"aria-label":"Tag: ".concat(u),to:(0,i.yc)({keywords:[t]}),zIndex:h,children:(0,s.jsx)(o.Vp,(0,r.Z)((0,r.Z)({_hover:{textDecoration:"underline"}},p),{},{children:(0,s.jsx)(o.Sn,{children:n})}))})}},41712:function(e,n,t){t.d(n,{T:function(){return s}});var r=t(72791),a=t(54270),o={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}},i=t(59534),c=t(80184),s=(["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" "),function(e){var n=e.children,t=e.meta,s=e.pageName,l=(0,i.aQ)(o[s]);(0,r.useEffect)((function(){l()}),[l]);var d=t.suffix,u=void 0===d||d,h=t.title,p=t.description,v=u?"".concat(h," - Construct Hub"):h;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(a.q,{children:[!1,(0,c.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,c.jsx)("meta",{charSet:"utf-8"}),(0,c.jsx)("title",{children:v}),(0,c.jsx)("meta",{content:v,property:"og:title"}),(0,c.jsx)("meta",{content:v,name:"twitter:title"}),(0,c.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,c.jsx)("meta",{content:p,name:"description"}),(0,c.jsx)("meta",{content:p,property:"og:description"}),(0,c.jsx)("meta",{content:p,name:"twitter:description"})]}),n]})})},79227:function(e,n,t){t.d(n,{q:function(){return d}});var r=t(1413),a=t(45987),o=t(63209),i=t(28735),c=t(29158),s=t(80184),l=["date","format","formattedDate"],d=(0,o.Gp)((function(e,n){var t=e.date,o=e.format,d=e.formattedDate,u=(0,a.Z)(e,l);return(0,s.jsx)(i.xu,(0,r.Z)((0,r.Z)({as:"time",dateTime:t.toISOString(),ref:n},u),{},{children:null!==d&&void 0!==d?d:(0,c.Z)(t,null!==o&&void 0!==o?o:"")}))}));d.displayName="Time"},56804:function(e,n,t){t.d(n,{E:function(){return a}});var r=t(24026),a=function(e){var n=(0,r.Z)().data;return(null!==n&&void 0!==n?n:{})[e]}},7991:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(70885),a=t(72791),o=t(79271),i=t(86617),c=t(29499),s=t(4487),l=i.SQ.TypeScript,d="preferred-language",u=function(e){return null!=e&&i.dX.has(e)},h=function(e){if(u(e))return e;try{var n,t=null!==(n=localStorage.getItem(d))&&void 0!==n?n:"";if(u(t))return t}catch(r){}return l},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.updateUrl,t=e.updateSaved,i=(0,o.TH)(),l=i.pathname,p=i.hash,v=(0,o.k6)(),m=v.replace,f=(0,s.K)(),x=f.get(c.Tx.LANGUAGE),g=(0,a.useState)((function(){return h(x)})),j=(0,r.Z)(g,2),b=j[0],y=j[1];(0,a.useEffect)((function(){u(x)&&x!==b&&y(x)}),[x]),(0,a.useEffect)((function(){x!==b&&n&&(f.set(c.Tx.LANGUAGE,b),m({pathname:l,hash:p,search:f.toString()}))}),[b,n]);var w=(0,a.useCallback)((function(e){if(y(e),t)try{localStorage.setItem(d,e)}catch(n){}}),[t]);return(0,a.useMemo)((function(){return[b,w]}),[b,w])}},4487:function(e,n,t){t.d(n,{K:function(){return o}});var r=t(72791),a=t(79271),o=function(){var e=(0,a.TH)().search;return(0,r.useMemo)((function(){return new URLSearchParams(e)}),[e])}},98371:function(e,n,t){t.d(n,{JA:function(){return i},QX:function(){return c}});var r=t(1413),a=t(42982),o=t(9272),i=function(e){return!e||e.length<1?[]:e.reduce((function(e,n){return n.highlight?[].concat((0,a.Z)(e),[n.highlight]):e}),[])},c=function(e){for(var n=e.packageTags,t=e.keywords,i=new Array,c=new Set,s=0,l=[].concat((0,a.Z)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var n;return Boolean(null===(n=e.keyword)||void 0===n?void 0:n.label)})).map((function(e){var n;return(0,r.Z)((0,r.Z)({},e),{},{id:null===(n=e.keyword)||void 0===n?void 0:n.label})}))}(n)),(0,a.Z)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!o.h.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(t)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();c.has(u)||(i.push(d),c.add(u))}return i}},42577:function(e,n,t){t.r(n),t.d(n,{NotFound:function(){return m},default:function(){return m}});var r=t(28735),a=t(82504),o=t(91523),i=t(41712),c=t(1413),s=t(45987),l=t(63209),d=t(53046),u=t(80184),h=["sources"],p=(0,l.Gp)((function(e,n){var t=e.sources,a=(0,s.Z)(e,h);return(0,u.jsxs)(r.xu,{as:"picture",children:[null===t||void 0===t?void 0:t.map((function(e,n){return(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},n)})),(0,u.jsx)(d.Ee,(0,c.Z)({ref:n},a))]})}));p.displayName="Picture";var v={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},m=function(){return(0,u.jsx)(i.T,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(r.M5,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(p,{alt:"",inset:0,position:"absolute",sources:v.optimal,src:v.fallback,zIndex:"hide"}),(0,u.jsxs)(r.kC,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(p,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(a.zx,{as:o.rU,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},26543:function(e,n,t){t.r(n),t.d(n,{default:function(){return rt}});var r=t(79271),a=t(42577),o=t(70885),i=t(28735),c=t(13822),s=t(72791),l=t(41712),d=t(78236),u=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return d.o.apply(void 0,["Package Page"].concat(n))},h={SCOPE:u(),SELECT_VERSION:u("Select Version"),CDK_BADGE:{eventName:function(e){return u("CDK Badge",e)}},KEYWORD:{eventName:function(e){return u("Keyword",e)}},LANGUAGE:{eventName:function(e){return u("Language",e)}},DOCUMENTATION:{TAB:u("Documentation","Tab")},DEPENDENCIES:{TAB:u("Dependencies","Tab")},FEEDBACK:{PUBLISHER:u("Feedback","Publisher"),CONSTRUCT_HUB:u("Feedback","Construct Hub"),ABUSE:u("Feedback","Abuse")}},p=t(29880),v=t(67003),m=t(7752),f=t(19748),x=t(1413),g=t(91933),j=t(15861),b=t(87757),y=t.n(b),w=t(29499),k=function(){var e=(0,j.Z)(y().mark((function e(n,t,r){var a,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="".concat((0,p._J)(n,t,r)).concat(w.i0.ASSEMBLY_SUFFIX),e.next=3,fetch(a);case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),C=function(){var e=(0,j.Z)(y().mark((function e(n,t,r,a,o){var i,c,s,l,d;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="/docs-".concat(o?"".concat(o,"-"):"").concat(r,".md"),c="".concat((0,p._J)(n,t,a)).concat(i),e.next=4,fetch(c);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(c,": ").concat(s.statusText));case 7:if(l="text/markdown",(d=s.headers.get("Content-Type"))&&d.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(d,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(n,t,r,a,o){return e.apply(this,arguments)}}(),S=function(){var e=(0,j.Z)(y().mark((function e(n,t,r){var a,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).startsWith("^")&&(a=a.substring(1,a.length)),o="".concat((0,p._J)(n,t,r)).concat(w.i0.METADATA_SUFFIX),e.next=5,fetch(o);case 5:if((i=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(o,": ").concat(i.statusText));case 8:return e.abrupt("return",i.json());case 9:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}(),Z=t(86617),T=t(7991),L=t(4487),E={packages:{},updated:"NOT_FOUND"},O=function(){var e=(0,j.Z)(y().mark((function e(){var n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(w.i0.ALL_VERSIONS);case 2:if((n=e.sent).ok){e.next=7;break}return console.error(n.statusText),console.warn("Could not retrieve package versions. Using empty data."),e.abrupt("return",E);case 7:return e.abrupt("return",n.json().catch((function(e){return console.error(e),console.warn("Error in package versions response. Using empty data."),E})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=t(4942),A=t(42982),D=t(15841),N=t.n(D),z=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},B=function e(n,t){var r=n[n.length-1];return r&&r.level<t.level?(r.children=e(r.children,t),n):(n.push(t),n)},R=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(n,"}[^#].*)"),"gm");return e.split(t).reduce((function(e,n){var t=e[e.length-1];return n.startsWith("#")||null!==t&&void 0!==t&&t.startsWith("#")?[].concat((0,A.Z)(e),[n]):(e[e.length-1]+=n,e)}),[])},U=function(e){var n,t,r,a,i=(null!==(n=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==n?n:[]).reduce((function(e,n){var t,r=n.split("="),a=(0,o.Z)(r,2),i=a[0],c=a[1],s=null!==(t=/['"](.*?)['"]/.exec(c))&&void 0!==t?t:[],l=(0,o.Z)(s,2),d=(l[0],l[1]);return(0,x.Z)((0,x.Z)({},e),{},(0,I.Z)({},i,d))}),{}),c=null!==(t=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==t?t:[e,e],s=(0,o.Z)(c,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var n;return null!==(n=N().get(e))&&void 0!==n?n:e}))),d=null!==(r=i["data-heading-title"])&&void 0!==r?r:l;return{id:null!==(a=i["data-heading-id"])&&void 0!==a?a:encodeURIComponent(z(d)),title:d}},W=function(e,n){var t=n.scope,r=n.language,a=n.name,o=n.version,i=n.submodule,c=t?"".concat(t,"/").concat(a):"".concat(a),s="/packages/".concat(c,"/v/").concat(o),l="?".concat(w.Tx.LANGUAGE,"=").concat(r);i&&(l+="&submodule=".concat(i));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),h=u.length>1?u.pop():"",p=u.join(d),v=R(h,3),m=R(p),f=[d.trim()].concat((0,A.Z)(null!==v&&void 0!==v?v:[])),g="".concat(s).concat(l),j=m.reduce((function(e,n){if(n.startsWith("#")){var t,r,a=U(n),o=a.id,i=a.title,c=null!==(t=null===(r=n.match(/(#)/gm))||void 0===r?void 0:r.length)&&void 0!==t?t:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(i),l={level:c,id:o,title:s,path:"".concat(g,"#").concat(o),children:[]};return B(e,l)}return e}),[]);1===j.length&&(j=j[0].children);var b,y,k=[].concat([{level:1,id:"Readme",title:"Readme",path:g,children:j}]),C={};return null===f||void 0===f||f.forEach((function(e){var n,t,r,a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(n=null===(t=e.match(/(#)/gm))||void 0===t?void 0:t.length)&&void 0!==n?n:1;if(null!==a&&void 0!==a&&a.length){var i=U(e),c=i.id,d=i.title,u=3===o?(r=c,"".concat(s,"/api/").concat(r).concat(l)):void 0,h=(0,x.Z)({level:o,id:c,title:d,children:[]},u?{path:u}:{});k=B(k,h),b={id:c,title:d},y=o}else 3===y&&(C[b.id]={title:b.title,content:e})})),{readme:p,apiReference:C,menuItems:k}},P=t(80184),F=(0,s.createContext)(void 0),M=function(){var e=(0,s.useContext)(F);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},K=function(e){var n,t,i,c,l,d=e.children,u=(0,r.UO)(),h=u.name,p=u.scope,v=u.version,m="".concat(p,"/").concat(h,"/v").concat(v),f=(0,T.Z)(),j=(0,o.Z)(f,1)[0],b=null!==(n=(0,L.K)().get(w.Tx.SUBMODULE))&&void 0!==n?n:"",y=(0,g.useQuery)("Versions",O).data,E=p?"".concat(p,"/").concat(h):h,I=null===y||void 0===y?void 0:y.packages[E],A=(0,g.useQuery)("".concat(m,"-docs-").concat(j,"-").concat(b),(function(){return C(h,v,Z.$[j],p,b)})),D=(0,g.useQuery)("".concat(m,"-assembly"),(function(){return k(h,v,p)})),N=(0,g.useQuery)("".concat(m,"-metadata"),(function(){return S(h,v,p)})),z="".concat(p?"".concat(p,"/").concat(h):h," ").concat(v),B=null!==(t=null===(i=D.data)||void 0===i?void 0:i.description)&&void 0!==t?t:"",R=Boolean(A.error||D.error),U=Boolean(!A.isLoading&&!D.isLoading&&A.data&&D.data),M=Boolean(j===Z.SQ.TypeScript||D.isLoading||D.error||null!=(null===(c=D.data)||void 0===c||null===(l=c.targets)||void 0===l?void 0:l[j.toString()])),K=Boolean(!N.isLoading&&(D.isLoading||A.isLoading)),_=(0,s.useMemo)((function(){return A.data?W(A.data,{scope:p,name:h,version:v,language:j,submodule:b}):{menuItems:[]}}),[A.data,h,p,v,j,b]);return D.error?(0,P.jsx)(a.NotFound,{}):(0,P.jsx)(F.Provider,{value:(0,x.Z)({assembly:D,hasDocs:U,hasError:R,isLoadingDocs:K,isSupported:M,language:j,markdown:A,metadata:N,name:h,pageDescription:B,pageTitle:z,scope:p,version:v,allVersions:I},_),children:d})},_=t(88606),H=(0,_.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),q=function(){var e,n=M().assembly.data;if(!n)return(0,P.jsx)(m.w,{});var t=Object.entries(null!==(e=n.dependencies)&&void 0!==e?e:{});return t.length?(0,P.jsx)(i.Kq,{"data-testid":H.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:t.map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)(v.O,{_first:{ml:4},"data-testid":H.dependenciesLink,fontWeight:"semibold",p:2,to:(0,f.Mt)({name:t,version:(0,p.Kj)(r)}),children:[t," - ",r]},"".concat(t,"-").concat(r))}))}):(0,P.jsx)(i.M5,{children:"This library does not have any known CDK dependencies"})},Q=t(75272),G=t(10855),V=t(6074),X=t(76798),$=t(69113),J=function(e){return(0,P.jsxs)($.JO,(0,x.Z)((0,x.Z)({},e),{},{children:[(0,P.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,P.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]}))},Y={h:6,ml:2,w:6},ee=function(){var e,n=M(),t=(0,G.Sx)({base:"horizontal",md:"vertical"}),r=(0,P.jsx)(i.iz,{borderColor:"white",mr:6,orientation:t}),a=n.metadata.data,o=n.assembly.data;if(!o||!a)return null;var c,s=null!==(e=null===o||void 0===o?void 0:o.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=null!==(c=s.url)&&void 0!==c&&c.endsWith(".git")?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return(0,P.jsxs)(i.Kq,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":H.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.PUBLISHER,"data-testid":H.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:(0,P.jsx)(J,(0,x.Z)({color:"white"},Y)),variant:"solid",children:"Provide feedback to publisher"}),r]}),(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.CONSTRUCT_HUB,"data-testid":H.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(X.Sx,"/issues/new"),rightIcon:(0,P.jsx)(J,(0,x.Z)({color:"white"},Y)),children:"Provide feedback to Construct Hub"}),r,(0,P.jsx)(V.d,{color:"currentcolor","data-event":h.FEEDBACK.ABUSE,"data-testid":H.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===o||void 0===o?void 0:o.name))),rightIcon:(0,P.jsx)(Q.LQ,(0,x.Z)({},Y)),children:"Report abuse"})]})},ne=t(65223),te=t(82504),re=t(59534),ae=function(e,n){return(0,re.oJ)(e,"NavTree",n)},oe={color:"gray.900",h:4,w:4},ie=function(e){var n=e.children,t=e["data-event"],r=e.path,a=e.title,o=e.showToggle,c={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:o?2:1,marginLeft:o?0:1,fontWeight:o?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return r?(0,P.jsx)(v.O,(0,x.Z)((0,x.Z)({"data-event":t,title:a,to:r},c),{},{children:n})):(0,P.jsx)(i.xv,(0,x.Z)((0,x.Z)({},c),{},{children:n}))},ce=function e(n){var t,a=n.children,o=n["data-event"],c=n.title,l=n.path,d=n.level,u=n.onOpen,h=(0,re.z$)().trackCustomEvent,p=d<2,v=(0,ne.qY)({onOpen:u,defaultIsOpen:p}),m=(0,r.TH)(),f=m.hash,g=m.pathname,j=new URL(null!==l&&void 0!==l?l:"",window.origin),b=null!==l&&void 0!==l&&l.includes("/api/")?j.pathname===g:j.hash&&f&&j.hash===f,y=(null!==(t=null===a||void 0===a?void 0:a.length)&&void 0!==t?t:0)>0,w=v.isOpen&&y,k=(0,s.useMemo)((function(){return null===a||void 0===a?void 0:a.map((function(n,t){return(0,s.createElement)(e,(0,x.Z)((0,x.Z)({"data-event":o},n),{},{key:t,level:d+1,onOpen:v.onOpen}))}))}),[a,o,v.onOpen,d]);return(0,P.jsxs)(i.kC,{direction:"column",children:[(0,P.jsxs)(i.kC,{align:"center",color:b?"blue.500":"gray.800",children:[y&&(0,P.jsx)(te.hU,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:v.isOpen?(0,P.jsx)(Q.v4,(0,x.Z)({},oe)):(0,P.jsx)(Q.XC,(0,x.Z)({},oe)),ml:-1,onClick:function(){v.onToggle(),o&&h((0,re.Q5)({name:ae(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,P.jsx)(ie,{"data-event":o?ae(o,"Link"):void 0,path:l,showToggle:y,title:c,children:c})]}),(0,P.jsx)(i.xu,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:w?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:k})]})},se=function(e){var n=e["data-event"],t=e.items;return(0,P.jsx)(i.kC,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return(0,s.createElement)(ce,(0,x.Z)((0,x.Z)({},e),{},{"data-event":n,key:t,level:0,onOpen:void 0}))}))})},le=t(86988),de=t(3669),ue=t(63209),he=t(95798),pe=t(57992),ve=t(89570),me=(0,ue.Gp)((function(e,n){var t=e.value,r=e.onChange,a=e.onSubmit,i=(0,s.useState)(t),c=(0,o.Z)(i,2),l=c[0],d=c[1];return(0,ve.N)(l,{onChange:r}),(0,P.jsx)(pe.l,{"data-testid":"choose-submodule-search-form",onSubmit:a,children:(0,P.jsxs)(he.BZ,{children:[(0,P.jsx)(he.Z8,{children:(0,P.jsx)(Q.W1,{color:"gray.400"})}),(0,P.jsx)(he.II,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:n,value:l,variant:"filled"})]})})}));me.displayName="SearchInput";var fe=function(e){var n=e.inputValue,t=e.isOpen,a=e.onClose,o=e.onInputChange,c=e.submodules,l=(0,s.useRef)(null),d=(0,r.k6)().push,u=(0,s.useCallback)((function(e){a(),d(e)}),[a,d]),h=(0,s.useCallback)((function(e){if(e.preventDefault(),c.length){var n=c[0].to;u(n)}}),[u,c]);return(0,P.jsx)(le.u_,{initialFocusRef:l,isOpen:t,onClose:a,children:(0,P.jsx)(le.ZA,{children:(0,P.jsxs)(le.hz,{mx:4,children:[(0,P.jsx)(le.ol,{"data-testid":"choose-submodule-modal-close"}),(0,P.jsx)(le.xB,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,P.jsxs)(le.fe,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,P.jsx)(i.xu,{pb:4,px:4,children:(0,P.jsx)(me,{onChange:o,onSubmit:h,ref:l,value:n})}),(0,P.jsx)(i.iz,{}),(0,P.jsx)(i.QI,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:c.map((function(e){var n=e.name,t=e.to;return(0,P.jsx)(de.T,{"data-testid":"choose-submodule-result",name:n,onClick:function(){return u(t)}},n)}))})]})]})})})},xe=function(){var e,n,t,a=M(),c=a.assembly,l=a.name,d=a.language,u=a.scope,h=a.version,p=(0,r.k6)().push,v=(0,L.K)(),m=Object.keys(null!==(e=null===c||void 0===c||null===(n=c.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}),x=(0,ne.qY)(),g=x.isOpen,j=x.onOpen,b=x.onClose,y=v.get(w.Tx.SUBMODULE),k=y?"Submodule: ".concat(y):"Choose Submodule",C=(0,s.useState)(""),S=(0,o.Z)(C,2),Z=S[0],T=S[1],E=u?"".concat(u,"/").concat(l):l,O=(0,s.useCallback)((function(e){return(0,f.Mt)({name:E,version:h,language:d,submodule:e})}),[d,E,h]),I=(0,s.useMemo)((function(){var e=m;return Z&&(e=e.filter((function(e){return e.toLowerCase().includes(Z.toLowerCase())}))),e.map((function(e){var n=e.split(".")[1];return{name:n,to:O(n)}}))}),[m,Z,O]);return 0===m.length?null:(0,P.jsxs)(i.Kq,{spacing:4,w:"100%",children:[y&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(te.zx,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,P.jsx)(Q.Rp,{"aria-label":"Back to construct root"}),onClick:function(){p((0,f.Mt)({name:E,version:h,language:d}))},title:"Back to construct root",variant:"link",children:null===c||void 0===c||null===(t=c.data)||void 0===t?void 0:t.name}),(0,P.jsx)(i.iz,{})]}),(0,P.jsx)(te.zx,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:(0,P.jsx)(Q.v4,{}),title:"Choose Submodule",variant:"link",children:k}),(0,P.jsx)(fe,{inputValue:Z,isOpen:g,onClose:b,onInputChange:T,submodules:I})]})},ge=t(51922),je=function(){var e,n,t=M(),a=t.assembly,o=t.menuItems,c=(0,ne.qY)(),l=(0,r.TH)(),d=Object.keys(null!==(e=null===(n=a.data)||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0;return(0,s.useEffect)((function(){c.isOpen&&c.onClose()}),[l]),(0,P.jsxs)(i.xu,{bottom:0,display:{md:"none"},left:0,pos:"fixed",right:0,children:[(0,P.jsx)(te.zx,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:c.onOpen,variant:"unstyled",w:"full",children:(0,P.jsxs)(i.kC,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,P.jsx)(Q.g8,{})]})}),(0,P.jsx)(ge.h_,{children:(0,P.jsxs)(le.dy,(0,x.Z)((0,x.Z)({},c),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,P.jsx)(le.P1,{}),(0,P.jsxs)(le.sc,{maxH:"60vh",children:[(0,P.jsx)(le.OX,{children:"Table of contents"}),(0,P.jsx)(le.cC,{}),(0,P.jsxs)(le.Ng,{children:[d&&(0,P.jsx)(i.xu,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,P.jsx)(xe,{})}),(0,P.jsx)(se,{items:o})]})]})]}))})]})},be=t(29370),ye=t(54915),we=t.n(ye),ke=t(5474),Ce=t.n(ke),Se=t(16580),Ze=t.n(Se),Te=t(45618),Le=t(65218),Ee=t.n(Le),Oe=t(45987),Ie=t(60185),Ae=t(32536),De=["value"],Ne=(0,ue.Gp)((function(e,n){var t=e.value,r=(0,Oe.Z)(e,De),a=(0,ne.VP)(t),o=a.hasCopied,i=a.onCopy;return(0,P.jsx)(te.hU,(0,x.Z)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:o?(0,P.jsx)(Q.nQ,{color:"green.300"}):(0,P.jsx)(Q.TI,{}),minW:"auto",ml:1,onClick:i,ref:n,variant:"ghost",w:6},r))}));Ne.displayName="CopyButton";var ze,Be=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.kC,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,P.jsx)(Ne,{value:n})}),(0,P.jsx)(i.xu,{overflowX:"auto",p:2,children:t.map((function(e,n){return(0,P.jsx)("div",(0,x.Z)((0,x.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,P.jsx)(i.xu,(0,x.Z)({as:"span",sx:{wordWrap:"normal"}},a({token:e,key:n})),n)}))}),n)}))})]})},Re=function(e){var n=e.code,t=e.tokens,r=e.getLineProps,a=e.getTokenProps;return(0,P.jsxs)(i.rj,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,P.jsx)(i.xu,{m:-3,maxW:"full",overflow:"auto",p:3,children:t.map((function(e,n){return(0,P.jsx)("div",(0,x.Z)((0,x.Z)({},r({line:e,key:n})),{},{children:e.map((function(e,n){return(0,P.jsx)("span",(0,x.Z)({},a({token:e,key:n})),n)}))}),n)}))}),(0,P.jsx)(i.kC,{align:"center",ml:1,children:(0,P.jsx)(Ne,{value:n})})]})},Ue=["code","language"],We=function(e){var n=e.code,t=e.language,r=(0,Oe.Z)(e,Ue);return(0,P.jsx)(Ie.ZP,(0,x.Z)((0,x.Z)({},Ie.lG),{},{code:n,language:t,theme:Ae.Z,children:function(e){return(0,P.jsx)(i.xu,(0,x.Z)((0,x.Z)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},r),{},{children:e.tokens.length>1?(0,P.jsx)(Be,(0,x.Z)((0,x.Z)({},e),{},{code:n})):(0,P.jsx)(Re,(0,x.Z)((0,x.Z)({},e),{},{code:n}))}))}}))},Pe=function(e){var n=e.inline,t=e.children,r=e.language,a=void 0===r?"typescript":r;if(n)return(0,P.jsx)(i.EK,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:t});var o=s.Children.toArray(t).reduce((function(e,n){return"string"===typeof n?"".concat(e).concat(n):e}),"").trim();return(0,P.jsx)(We,{code:o,fontSize:"0.9rem",language:a})},Fe=t(58340),Me=function e(n){return s.Children.toArray(n).reduce((function(n,t){return"string"===typeof t?n+t:"object"===typeof t&&"props"in t?n+e(t.props.children):n}),"").trim()},Ke=function(e){var n,t,r=e.level,a=e.children,o=["2xl","xl","lg","md","sm","xs"][r-1],c="h".concat(r),s=(new DOMParser).parseFromString(Fe.renderToStaticMarkup(a),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(n=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==n?n:Me(a),d=null!==(t=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==t?t:z(l);return(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(i.X6,{as:c,backgroundColor:5===r?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:r,marginBottom:4,marginTop:r>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:r>=4?2:void 0,size:o,children:(0,P.jsx)(v.O,{"data-heading-id":"#".concat(d),"data-heading-level":r,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:a})})})},_e=t(53046),He=t(97005),qe=(0,_.$)("markdown",["container"]),Qe=["children","href"],Ge={a:function(e){var n=e.children,t=e.href,r=(0,Oe.Z)(e,Qe),a=i.rU;try{if(t&&t.startsWith("http"))if(new URL(t).hostname!==window.location.hostname){a=function(e){return(0,P.jsx)(V.d,(0,x.Z)({},e))}}}catch(o){a=i.rU}return(0,P.jsx)(a,(0,x.Z)((0,x.Z)({color:"blue.500",href:t,sx:{"> img + svg":{display:"none"}}},r),{},{children:n}))},blockquote:function(e){var n=e.children;return(0,P.jsx)(i.xu,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:n})},caption:He.Rn,code:Pe,em:function(e){var n=e.children;return(0,P.jsx)(i.xu,{as:"em",fontStyle:"normal",fontWeight:"bold",children:n})},h1:Ke,h2:Ke,h3:Ke,h4:Ke,h5:Ke,h6:Ke,hr:function(){return(0,P.jsx)(P.Fragment,{})},img:function(e){return(0,P.jsx)(_e.Ee,(0,x.Z)({display:"inline-block"},e))},li:function(e){var n=e.children;return(0,P.jsx)(i.HC,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:n})},ol:function(e){var n=e.children;return(0,P.jsx)(i.GS,{children:n})},p:function(e){var n=e.children;return(0,P.jsx)(i.xv,{lineHeight:"1.5",mx:2,my:4,children:n})},pre:function(e){var n=e.children,t=e.lang;return t?(0,P.jsx)(Pe,{language:t,children:n}):(0,P.jsx)(i.xu,{as:"pre",children:n})},sup:function(e){var n=e.children,t=void 0,r="";if(Array.isArray(n)){var a=(0,o.Z)(n,1)[0];"string"===typeof a&&(r=a)}return"Required"===r?t="orange.700":"Optional"===r&&(t="green.700"),(0,P.jsx)(i.xu,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:function(e){var n=e.children;return(0,P.jsx)(i.xu,{maxW:"100%",overflowX:"auto",children:(0,P.jsx)(He.iA,{variant:"striped",children:n})})},tbody:He.p3,td:He.Td,tfoot:He.$R,th:He.Th,thead:He.hr,tr:He.Tr,ul:function(e){var n=e.children;return(0,P.jsx)(i.QI,{marginTop:2,padding:0,children:n})}},Ve=(0,x.Z)({},be);Ve.attributes.span=(null!==(ze=Ve.attributes.span)&&void 0!==ze?ze:[]).concat(["dataHeadingTitle","dataHeadingId"]);var Xe=[[Ce()],[Ze(),Ve]],$e=[Ee(),Te.Z],Je=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ye=function(e){var n=e.children,t=function(e){var n=e.type,t=e.url,r=e.directory;if("git"===n){var a=Je.exec(t);if(null!=a){var i=(0,o.Z)(a,3);return{owner:i[1],repo:i[2],directory:r}}}}(e.repository),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==t?we().uriTransformer:function(r){var a=we().uriTransformer(r),i=(0,o.Z)(a,1)[0];if("#"===i||"/"===i)return a;if(a.includes("://"))return a;var c=t.owner,s=t.repo.replace(/\.git$/,""),l=t.directory?"".concat(t.directory,"/"):"";return"https://".concat(e,"/").concat(c,"/").concat(s,"/").concat(n,"/").concat(l).concat(a)}};return(0,P.jsx)(i.xu,{"data-testid":qe.container,px:8,children:(0,P.jsx)(we(),{components:Ge,rehypePlugins:Xe,remarkPlugins:$e,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})},en=function(e){var n=e.children;return(0,P.jsx)(i.xv,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:n})},nn=function(){var e=M(),n=e.isLoadingDocs,t=e.readme,r=e.assembly.data;return!n&&t&&r?"\n"===t?(0,P.jsx)(en,{children:"No readme available for this module or submodule"}):(0,P.jsx)(Ye,{repository:r.repository,children:t}):null},tn=t(91523),rn=function(){var e=M().language,n=(0,P.jsx)(V.d,{href:"".concat(X.Sx,"/issues/new"),children:"issue"});return(0,P.jsxs)(en,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",n,"."]})},an=function(e){var n=e.rootId,t=(0,r.TH)(),a=t.pathname,o=t.hash,c=t.search,s=M(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=(0,r.UO)().typeId,n=M().apiReference;if(e)return null===n||void 0===n?void 0:n[e]}();if(l)return null;if(!u||!d)return(0,P.jsx)(rn,{});var h=u.title,p=u.content,v="".concat(a).concat(c,"#").concat(o);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.X6,{as:"h2",p:8,size:"2xl",children:(0,P.jsx)(tn.OL,{id:n,to:v,children:h})}),(0,P.jsx)(Ye,{repository:d.repository,children:p})]})},on="4.5rem",cn="apidocs_header",sn="api",ln=function(){var e,n=M().assembly.data;return Object.keys(null!==(e=null===n||void 0===n?void 0:n.submodules)&&void 0!==e?e:{}).length>0?(0,P.jsx)(i.kC,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:(0,P.jsx)(xe,{})}):null},dn=function(){var e=(0,r.$B)().path,n=M().menuItems,t=(0,r.TH)(),a=t.hash,o=t.pathname,c=t.search;return(0,s.useEffect)((function(){if(a){var e=document.querySelector('[data-heading-id="'.concat(a,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var n=e.split("/");return n[n.length-2]===sn}(o)){var n=document.getElementById(cn);null===n||void 0===n||n.scrollIntoView(!0)}else window.scrollTo(0,0)}),[a,o]),(0,P.jsxs)(i.rj,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[(0,P.jsxs)(i.kC,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(on,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:on,children:[(0,P.jsx)(ln,{}),(0,P.jsx)(i.xu,{overflowY:"auto",py:4,children:(0,P.jsx)(se,{"data-event":h.SCOPE,items:n})})]}),(0,P.jsx)(i.xu,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:on}},children:(0,P.jsxs)(r.rs,{children:[(0,P.jsx)(r.l_,{exact:!0,from:"".concat(e,"/").concat(sn),to:{pathname:e,search:c}}),(0,P.jsx)(r.AW,{exact:!0,path:e,children:(0,P.jsx)(nn,{})}),(0,P.jsx)(r.AW,{exact:!0,path:"".concat(e,"/").concat(sn,"/:typeId"),children:(0,P.jsx)(an,{rootId:cn})})]})}),(0,P.jsx)(je,{})]})},un=t(92213),hn=t(2148),pn=function(e){var n=e.targetLanguages,t=e.selectedLanguage,a=(0,re.z$)().trackCustomEvent,o=M(),c=o.name,s=o.scope,l=o.version,d=(0,r.k6)().push;return(0,P.jsx)(i.Kq,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:(0,A.Z)(n).sort((function(e,n){return Z.a2.indexOf(e)-Z.a2.indexOf(n)})).map((function(e){var n=!Z.dX.has(e),r=e===t,o=Z.kP[e].icon;return(0,P.jsx)(hn.N,{language:e,children:(0,P.jsx)(te.hU,{"aria-label":"Select ".concat(e," icon"),border:r?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:n?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:n,icon:(0,P.jsx)(o,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){r||(a((0,re.Q5)({name:h.LANGUAGE.eventName(e)})),d((0,f.Mt)({name:(0,p.KD)(c,s),version:l,language:e})))},p:1,variant:"outline",w:"max-content"})},e)}))})},vn=new Set(Z.a2),mn=function(){var e,n=M(),t=n.assembly.data,r=n.language,a=(0,T.Z)({updateSaved:!0,updateUrl:!0}),i=(0,o.Z)(a,2)[1],c=(0,T.Z)({updateUrl:!0}),l=(0,o.Z)(c,2)[1],d=[].concat((0,A.Z)(Object.keys(null!==(e=null===t||void 0===t?void 0:t.targets)&&void 0!==e?e:{})),[Z.SQ.TypeScript]),u=d.includes(r);(0,s.useEffect)((function(){u||l(Z.SQ.TypeScript)}),[u]);var h={selectedLanguage:u?r:Z.SQ.TypeScript,setSelectedLanguage:i,targetLanguages:d.filter((function(e){return vn.has(e)}))};return(0,P.jsx)(pn,(0,x.Z)({},h))},fn=t(81070),xn=t(77231),gn=t(44717),jn=t(50535),bn=["license"],yn=(0,ue.Gp)((function(e,n){var t=e.license,r=(0,Oe.Z)(e,bn),a=gn[t].url;return(0,P.jsx)(V.d,(0,x.Z)((0,x.Z)({href:a,ref:n},r),{},{children:t}))}));yn.displayName="LicenseLink";var wn=t(79227),kn="MMM dd, yyyy 'at' h:mmaaa",Cn=t(56804),Sn=t(10297),Zn=t(98371),Tn=["openText","closeText","isOpen"],Ln=function(e){var n=e.openText,t=e.closeText,r=e.isOpen,a=(0,Oe.Z)(e,Tn);return(0,P.jsx)(te.zx,(0,x.Z)((0,x.Z)({colorScheme:"blue",leftIcon:r?(0,P.jsx)(Q.g8,{}):(0,P.jsx)(Q.v4,{}),variant:"link"},a),{},{children:r?t:n}))},En=function(e){var n=e.children,t=e.label,r=e.tooltip;return(0,P.jsx)(fn.u,{hasArrow:!0,isDisabled:!r,label:r,placement:"left",children:(0,P.jsxs)(i.xv,{fontWeight:"bold",children:[t," ",(0,P.jsx)(i.xu,{as:"span",fontWeight:"normal",children:n})]})})},On=function(e){var n=e.downloads;return(0,P.jsx)(En,{label:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(i.xu,{as:"span",mr:1,children:(0,P.jsx)(Q._8,{})}),n.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},In=function(e){var n=M(),t=(0,Sn.V)().data,r=(0,ne.qY)({defaultIsOpen:!0}),a=(0,Cn.E)("packageLinks"),c=n.assembly.data,l=n.metadata.data,d=n.scope?"".concat(n.scope,"/").concat(n.name):n.name,u=(0,Zn.JA)(null===l||void 0===l?void 0:l.packageTags),h=(0,o.Z)(u,1)[0],p=function(e){var n=e.assembly,t=e.metadata,r=e.name,a=e.packageLinks,o=e.stats,i=[];if(n||t||o||a){var c,l,d,u,h,p=null===o||void 0===o||null===(c=o.packages)||void 0===c||null===(l=c[r])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&i.push((0,P.jsx)(On,{downloads:p}));var m=null===n||void 0===n?void 0:n.author.name,x=null===n||void 0===n?void 0:n.repository,g=null===n||void 0===n?void 0:n.license;if(m){var j=(0,P.jsx)(v.O,{color:"blue.500",to:(0,f.yc)({query:m}),children:m});i.push((0,P.jsx)(En,{label:"Author",children:j}))}var b=null===t||void 0===t?void 0:t.date;if(b){var y=(0,P.jsx)(wn.q,{date:new Date(b),fontWeight:"normal",format:kn});i.push((0,P.jsx)(En,{label:"Published",children:y}))}if(x){var w=(0,f.rM)(x.url);if(w){var k=(0,P.jsx)(V.d,{href:w.url,children:w.hostname});i.push((0,P.jsx)(En,{label:"Repository",children:k}))}}if(g&&g in gn){var C=(0,P.jsx)(yn,{license:g});i.push((0,P.jsx)(En,{label:"License",children:C}))}null!==a&&void 0!==a&&a.length&&a.forEach((function(e){var n,r=e.linkLabel,a=e.configKey,o=e.linkText,c=(null!==(n=null===t||void 0===t?void 0:t.packageLinks)&&void 0!==n?n:{})[a];if(c){var s=(0,P.jsx)(V.d,{href:c,children:null!==o&&void 0!==o?o:c});i.push((0,P.jsxs)(En,{label:r,children:[r,": ",s]}))}}));var S=null!==(u=null===t||void 0===t||null===(h=t.links)||void 0===h?void 0:h.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===n||void 0===n?void 0:n.name,"/v/").concat(null===n||void 0===n?void 0:n.version);if(S){var Z=(0,P.jsx)(V.d,{href:S,children:new URL(S).hostname});i.push((0,P.jsx)(En,{label:"Registry",children:Z}))}}return i.map((function(e,n){return(0,P.jsx)(s.Fragment,{children:e},n)}))}({assembly:c,metadata:l,name:d,packageLinks:a,stats:t});if(!p.length)return null;var m=p.slice(0,2),g=p.slice(2,p.length);return(0,P.jsxs)(i.Kq,(0,x.Z)((0,x.Z)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[h&&(0,P.jsx)(jn.y,(0,x.Z)({},h)),m,g.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(xn.UO,{animateOpacity:!0,in:r.isOpen,children:(0,P.jsx)(i.Kq,{spacing:2,children:g})}),(0,P.jsx)(Ln,{closeText:"See fewer details (".concat(m.length,")"),fontSize:"inherit",isOpen:r.isOpen,onClick:r.onToggle,openText:"See more details (".concat(g.length,")")})]})]}))},An=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")},Dn="heading",Nn="install",zn="languages",Bn="meta",Rn=An([Dn],[Bn],[zn],[Nn]),Un=An([Dn,zn,Nn],[Dn,null,Bn]),Wn=function(e){var n=e.children;return(0,P.jsx)(i.rj,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Rn,lg:Un},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:n})},Pn=t(77766),Fn=t(29988),Mn=t(57640),Kn=t(10724),_n=t.n(Kn),Hn=t(84586),qn=function(){var e=M(),n=e.scope,t=e.name,a=e.version,o=e.allVersions,i=e.language,c=n?"".concat(n,"/").concat(t):t,l=(0,Hn.A)(),d=(0,r.k6)().push,u=l.findByName(c),p=(0,s.useMemo)((function(){var e=u.map((function(e){return e.version})),n=(0,A.Z)(new Set([].concat((0,A.Z)(null!==o&&void 0!==o?o:[]),(0,A.Z)(e),[a])));return n.sort(_n().rcompare),n}),[u,a,o]);return(0,P.jsx)(Mn.Ph,{"data-event":h.SELECT_VERSION,"data-testid":H.selectVersionDropdown,fontWeight:"500",onChange:function(e){d((0,f.Mt)({name:c,version:e.target.value,language:i}))},size:"sm",value:a,width:"10rem",children:p.map((function(e){return(0,P.jsx)("option",{"data-testid":H.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},Qn=["assembly","name","description","metadata","version"],Gn=function(e){var n,t,r,a=e.assembly,o=e.name,c=e.description,s=e.metadata,l=(e.version,(0,Oe.Z)(e,Qn)),d=(0,Zn.QX)({packageTags:null!==(n=null===s||void 0===s?void 0:s.packageTags)&&void 0!==n?n:[],keywords:null!==(t=null===a||void 0===a?void 0:a.keywords)&&void 0!==t?t:[]}),u=null!==(r=s.constructFramework)&&void 0!==r?r:{};return(0,P.jsxs)(i.Kq,(0,x.Z)((0,x.Z)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[(0,P.jsxs)(i.kC,{align:"center",wrap:"wrap",children:[(0,P.jsx)(i.X6,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:o}),(0,P.jsx)(qn,{})]}),(0,P.jsx)(i.xv,{"data-testid":H.description,fontSize:"1rem",children:c}),(0,P.jsxs)(i.kC,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,P.jsx)(Pn.uo,(0,x.Z)({"data-event":h.CDK_BADGE.eventName("".concat(u.name).concat(void 0!==u.majorVersion?" v".concat(u.majorVersion):""))},u)),d.map((function(e){var n=e.id,t=e.keyword,r=(t=void 0===t?{}:t).label,a=t.color;return(0,P.jsx)(Fn.X,{"data-event":h.KEYWORD.eventName(r),value:n,variant:a,children:r},n)}))]})]}))},Vn=function(e){var n=M(),t=n.language,r=n.assembly.data,a=(0,ne.qY)();if(!r)return null;var o=function(e){var n=e.language,t=e.assembly,r=t.version;if(n===Z.SQ.TypeScript){var a=t.name;return"npm install ".concat(a,"@").concat(r)}if(n===Z.SQ.Python){var o,i,c=null===(o=t.targets)||void 0===o||null===(i=o.python)||void 0===i?void 0:i.distName;if(!c)return;return"pip install ".concat(c,"==").concat(r)}if(n===Z.SQ.Java){var s,l,d,u,h,p,v=null===(s=t.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,m=null===(u=t.targets)||void 0===u||null===(h=u.java)||void 0===h||null===(p=h.maven)||void 0===p?void 0:p.artifactId;if(!v||!m)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(v,"</groupId>")," <artifactId>".concat(m,"</artifactId>")," <version>".concat(r,"</version>"),"</dependency>"].join("\n")}if(n===Z.SQ.DotNet){var f,x,g=null===(f=t.targets)||void 0===f||null===(x=f.dotnet)||void 0===x?void 0:x.packageId;if(!g)return;return"dotnet add package ".concat(g," --version ").concat(r)}}({language:t,assembly:r});return o&&t?(0,P.jsx)(i.kC,(0,x.Z)((0,x.Z)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===Z.SQ.Java?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ln,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,P.jsx)(i.xu,{maxW:"full",overflow:"hidden",children:(0,P.jsx)(xn.UO,{in:a.isOpen,children:(0,P.jsx)(We,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,P.jsx)(We,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null},Xn=function(){var e=M(),n=e.assembly,t=e.metadata,r=e.version,a=n.data,o=t.data;return a&&o?(0,P.jsxs)(Wn,{children:[(0,P.jsx)(Gn,{assembly:a,description:a.description,gridArea:Dn,metadata:o,name:a.name,version:r}),(0,P.jsx)(i.kC,{align:"start",gridArea:zn,children:(0,P.jsx)(mn,{})}),(0,P.jsxs)(i.kC,{direction:"column",gridArea:Bn,children:[(0,P.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mb:2}),(0,P.jsx)(In,{}),(0,P.jsx)(i.iz,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,P.jsx)(i.kC,{align:"start",gridArea:Nn,children:(0,P.jsx)(Vn,{})})]}):(0,P.jsx)(un.$,{mx:"auto",my:10,size:"xl"})},$n=function(){var e=M(),n=e.pageDescription,t=e.pageTitle,r=(0,s.useState)(0),a=(0,o.Z)(r,2),d=a[0],u=a[1];return(0,s.useEffect)((function(){u(0)}),[t]),(0,P.jsx)(l.T,{meta:{title:t,description:n},pageName:"packageProfile",children:(0,P.jsxs)(i.rj,{bg:"white","data-testid":H.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,P.jsx)(Xn,{}),(0,P.jsxs)(c.mQ,{index:d,onChange:u,pt:4,variant:"line",children:[(0,P.jsxs)(c.td,{borderBottom:"base",mx:{base:0,lg:6},children:[(0,P.jsx)(c.OK,{"data-event":h.DOCUMENTATION.TAB,children:"Documentation"}),(0,P.jsx)(c.OK,{"data-event":h.DEPENDENCIES.TAB,"data-testid":H.dependenciesTab,children:"Dependencies"})]}),(0,P.jsxs)(c.nP,{maxW:"full",children:[(0,P.jsx)(c.x4,{p:0,children:(0,P.jsx)(dn,{})}),(0,P.jsx)(c.x4,{children:(0,P.jsx)(q,{})})]})]}),(0,P.jsx)(ee,{})]})})},Jn=function(){return(0,P.jsx)(K,{children:(0,P.jsx)($n,{})})},Yn=t(95038),et=function(){var e=(0,r.UO)(),n=e.name,t=e.scope,o=(0,Yn.r)();if(o.isLoading||!o.data)return(0,P.jsx)(i.M5,{minH:"16rem",children:(0,P.jsx)(un.$,{size:"xl"})});var c=function(e,n,t){var r=(0,p.KD)(n,t),a=(0,p._c)(e,r);if(a){var o=a.version,i="/v/".concat(o);return"".concat("/packages/").concat(r).concat(i)}}(o.data,n,t);return c?(0,P.jsx)(r.l_,{to:c}):(0,P.jsx)(a.default,{})},nt="[^@\\/]+",tt="@[^\\/]+",rt=function(){var e=(0,r.$B)().path;return(0,P.jsxs)(r.rs,{children:[(0,P.jsx)(r.AW,{exact:!0,path:"".concat(e,"/:scope(").concat(tt,")?/:name(").concat(nt,")"),children:(0,P.jsx)(et,{})}),(0,P.jsx)(r.AW,{path:"".concat(e,"/:scope(").concat(tt,")?/:name(").concat(nt,")/v/:version"),children:(0,P.jsx)(Jn,{})}),(0,P.jsx)(r.AW,{path:"*",children:(0,P.jsx)(a.NotFound,{})})]})}}}]);
|
|
2
|
+
//# sourceMappingURL=543.1847047c.chunk.js.map
|