From 5f09b901da243a143fc3b62ea9ad2d488618a5db Mon Sep 17 00:00:00 2001 From: Lingfan Gao Date: Wed, 16 Mar 2022 09:29:47 +0100 Subject: [PATCH 1/4] works so far --- package.json | 2 + packages/react-menu/package.json | 1 + ...129.1d200ecba50bc13ad2c1.manager.bundle.js | 2599 + .../129.94424133.iframe.bundle.js | 2611 + .../129.94424133.iframe.bundle.js.map | 1 + .../135.2ba59a88.iframe.bundle.js | 1966 + .../135.2ba59a88.iframe.bundle.js.map | 1 + .../2.79197dde81a03a301057.manager.bundle.js | 105065 +++++++++++++++ ...81a03a301057.manager.bundle.js.LICENSE.txt | 147 + ...418.a9d0461145413678d550.manager.bundle.js | 3276 + ...45413678d550.manager.bundle.js.LICENSE.txt | 8 + .../453.ffa64a7e.iframe.bundle.js | 5 + .../453.ffa64a7e.iframe.bundle.js.map | 1 + .../491.95fba3e3.iframe.bundle.js | 166 + .../491.95fba3e3.iframe.bundle.js.map | 1 + .../531.316e1847.iframe.bundle.js | 373 + .../531.316e1847.iframe.bundle.js.map | 1 + ...531.72dd5ac980651fcbfadd.manager.bundle.js | 365 + .../54.4731f583.iframe.bundle.js | 78911 +++++++++++ .../54.4731f583.iframe.bundle.js.LICENSE.txt | 126 + .../54.4731f583.iframe.bundle.js.map | 1 + ...715.b6016431f6ae386b204b.manager.bundle.js | 1481 + .../855.82cdfe5d.iframe.bundle.js | 3352 + .../855.82cdfe5d.iframe.bundle.js.LICENSE.txt | 8 + .../855.82cdfe5d.iframe.bundle.js.map | 1 + .../887.a84c0c8b.iframe.bundle.js | 5125 + .../887.a84c0c8b.iframe.bundle.js.LICENSE.txt | 12 + .../887.a84c0c8b.iframe.bundle.js.map | 1 + ...887.fdc0b05a4b45406b8730.manager.bundle.js | 5118 + ...4b45406b8730.manager.bundle.js.LICENSE.txt | 12 + .../892.4e8d7e77.iframe.bundle.js | 21063 +++ .../892.4e8d7e77.iframe.bundle.js.LICENSE.txt | 11 + .../892.4e8d7e77.iframe.bundle.js.map | 1 + .../906.4e8948fa.iframe.bundle.js | 17027 +++ .../906.4e8948fa.iframe.bundle.js.map | 1 + ...950.704de7e0ba693e7d70ad.manager.bundle.js | 62 + .../react-menu/storybook-static/favicon.ico | Bin 0 -> 32988 bytes .../react-menu/storybook-static/iframe.html | 1130 + .../react-menu/storybook-static/index.html | 76 + ...ain.5e6638d1c33e8c581b80.manager.bundle.js | 29 + .../main.ba3683cd.iframe.bundle.js | 15445 +++ .../main.ba3683cd.iframe.bundle.js.map | 1 + .../runtime~main.22923fb0.iframe.bundle.js | 214 + ...runtime~main.22923fb0.iframe.bundle.js.map | 1 + ...ain.c422352df9311717e2a0.manager.bundle.js | 210 + scripts/just.config.ts | 2 + scripts/storybook/getStorybookDependencies.js | 37 + scripts/storybook/runner.js | 24 +- scripts/tasks/e2e.ts | 49 + yarn.lock | 77 + 50 files changed, 266175 insertions(+), 22 deletions(-) create mode 100644 packages/react-menu/storybook-static/129.1d200ecba50bc13ad2c1.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/129.94424133.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/129.94424133.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/2.79197dde81a03a301057.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/2.79197dde81a03a301057.manager.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/418.a9d0461145413678d550.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/418.a9d0461145413678d550.manager.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/453.ffa64a7e.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/453.ffa64a7e.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/491.95fba3e3.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/491.95fba3e3.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/531.316e1847.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/531.316e1847.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/531.72dd5ac980651fcbfadd.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/54.4731f583.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/54.4731f583.iframe.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/54.4731f583.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/715.b6016431f6ae386b204b.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/855.82cdfe5d.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/855.82cdfe5d.iframe.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/855.82cdfe5d.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/887.a84c0c8b.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/887.a84c0c8b.iframe.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/887.a84c0c8b.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/887.fdc0b05a4b45406b8730.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/887.fdc0b05a4b45406b8730.manager.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/892.4e8d7e77.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/892.4e8d7e77.iframe.bundle.js.LICENSE.txt create mode 100644 packages/react-menu/storybook-static/892.4e8d7e77.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/906.4e8948fa.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/906.4e8948fa.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/950.704de7e0ba693e7d70ad.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/favicon.ico create mode 100644 packages/react-menu/storybook-static/iframe.html create mode 100644 packages/react-menu/storybook-static/index.html create mode 100644 packages/react-menu/storybook-static/main.5e6638d1c33e8c581b80.manager.bundle.js create mode 100644 packages/react-menu/storybook-static/main.ba3683cd.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/main.ba3683cd.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/runtime~main.22923fb0.iframe.bundle.js create mode 100644 packages/react-menu/storybook-static/runtime~main.22923fb0.iframe.bundle.js.map create mode 100644 packages/react-menu/storybook-static/runtime~main.c422352df9311717e2a0.manager.bundle.js create mode 100644 scripts/storybook/getStorybookDependencies.js create mode 100644 scripts/tasks/e2e.ts diff --git a/package.json b/package.json index b5ef95734ca48f..931778464d449e 100644 --- a/package.json +++ b/package.json @@ -140,6 +140,7 @@ "@types/scheduler": "0.16.2", "@types/semver": "^5.5.0", "@types/tmp": "0.2.0", + "@types/wait-on": "5.3.1", "@types/webpack-dev-middleware": "4.1.0", "@types/webpack-env": "1.16.0", "@types/yargs": "13.0.11", @@ -237,6 +238,7 @@ "tsconfig-paths-webpack-plugin": "3.5.2", "tslib": "2.3.1", "typescript": "4.3.5", + "wait-on": "6.0.1", "webpack": "5.44.0", "webpack-bundle-analyzer": "4.4.2", "webpack-cli": "4.7.2", diff --git a/packages/react-menu/package.json b/packages/react-menu/package.json index ca8bfe12b6bfd0..12ff0ed78d0ca2 100644 --- a/packages/react-menu/package.json +++ b/packages/react-menu/package.json @@ -18,6 +18,7 @@ "bundle-size": "bundle-size measure", "clean": "just-scripts clean", "code-style": "just-scripts code-style", + "test:e2e": "just-scripts e2e", "e2e": "e2e", "just": "just-scripts", "lint": "just-scripts lint", diff --git a/packages/react-menu/storybook-static/129.1d200ecba50bc13ad2c1.manager.bundle.js b/packages/react-menu/storybook-static/129.1d200ecba50bc13ad2c1.manager.bundle.js new file mode 100644 index 00000000000000..541692298597a6 --- /dev/null +++ b/packages/react-menu/storybook-static/129.1d200ecba50bc13ad2c1.manager.bundle.js @@ -0,0 +1,2599 @@ +(self.webpackChunk_fluentui_react_menu = self.webpackChunk_fluentui_react_menu || []).push([ + [129], + { + 9129: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + WithToolTipState: () => WithToolTipState, + WithTooltip: () => WithToolTipState, + WithTooltipPure: () => WithTooltipPure, + }); + __webpack_require__(32501), + __webpack_require__(22144), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(43105), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(28673), + __webpack_require__(1939); + var react = __webpack_require__(2784), + esm = __webpack_require__(77439), + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + objectWithoutPropertiesLoose = __webpack_require__(98283), + esm_extends = __webpack_require__(7560), + inheritsLoose = __webpack_require__(35307), + react_dom = __webpack_require__(28316), + ManagerReferenceNodeContext = react.createContext(), + ManagerReferenceNodeSetterContext = react.createContext(); + function Manager(_ref) { + var children = _ref.children, + _React$useState = react.useState(null), + referenceNode = _React$useState[0], + setReferenceNode = _React$useState[1]; + return ( + react.useEffect( + function () { + return function () { + setReferenceNode(null); + }; + }, + [setReferenceNode], + ), + react.createElement( + ManagerReferenceNodeContext.Provider, + { value: referenceNode }, + react.createElement(ManagerReferenceNodeSetterContext.Provider, { value: setReferenceNode }, children), + ) + ); + } + var unwrapArray = function unwrapArray(arg) { + return Array.isArray(arg) ? arg[0] : arg; + }, + safeInvoke = function safeInvoke(fn) { + if ('function' == typeof fn) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + args[_key - 1] = arguments[_key]; + return fn.apply(void 0, args); + } + }, + setRef = function setRef(ref, node) { + if ('function' == typeof ref) return safeInvoke(ref, node); + null != ref && (ref.current = node); + }, + fromEntries = function fromEntries(entries) { + return entries.reduce(function (acc, _ref) { + var key = _ref[0], + value = _ref[1]; + return (acc[key] = value), acc; + }, {}); + }, + useIsomorphicLayoutEffect = + 'undefined' != typeof window && window.document && window.document.createElement + ? react.useLayoutEffect + : react.useEffect; + function getBoundingClientRect(element) { + var rect = element.getBoundingClientRect(); + return { + width: rect.width, + height: rect.height, + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + x: rect.left, + y: rect.top, + }; + } + function getWindow(node) { + if ('[object Window]' !== node.toString()) { + var ownerDocument = node.ownerDocument; + return (ownerDocument && ownerDocument.defaultView) || window; + } + return node; + } + function getWindowScroll(node) { + var win = getWindow(node); + return { scrollLeft: win.pageXOffset, scrollTop: win.pageYOffset }; + } + function isElement(node) { + return node instanceof getWindow(node).Element || node instanceof Element; + } + function isHTMLElement(node) { + return node instanceof getWindow(node).HTMLElement || node instanceof HTMLElement; + } + function getNodeName(element) { + return element ? (element.nodeName || '').toLowerCase() : null; + } + function getDocumentElement(element) { + return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement; + } + function getWindowScrollBarX(element) { + return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; + } + function getComputedStyle(element) { + return getWindow(element).getComputedStyle(element); + } + function isScrollParent(element) { + var _getComputedStyle = getComputedStyle(element), + overflow = _getComputedStyle.overflow, + overflowX = _getComputedStyle.overflowX, + overflowY = _getComputedStyle.overflowY; + return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); + } + function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) { + void 0 === isFixed && (isFixed = !1); + var documentElement = getDocumentElement(offsetParent), + rect = getBoundingClientRect(elementOrVirtualElement), + isOffsetParentAnElement = isHTMLElement(offsetParent), + scroll = { scrollLeft: 0, scrollTop: 0 }, + offsets = { x: 0, y: 0 }; + return ( + (isOffsetParentAnElement || (!isOffsetParentAnElement && !isFixed)) && + (('body' !== getNodeName(offsetParent) || isScrollParent(documentElement)) && + (scroll = (function getNodeScroll(node) { + return node !== getWindow(node) && isHTMLElement(node) + ? (function getHTMLElementScroll(element) { + return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop }; + })(node) + : getWindowScroll(node); + })(offsetParent)), + isHTMLElement(offsetParent) + ? (((offsets = getBoundingClientRect(offsetParent)).x += offsetParent.clientLeft), + (offsets.y += offsetParent.clientTop)) + : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), + { + x: rect.left + scroll.scrollLeft - offsets.x, + y: rect.top + scroll.scrollTop - offsets.y, + width: rect.width, + height: rect.height, + } + ); + } + function getLayoutRect(element) { + return { + x: element.offsetLeft, + y: element.offsetTop, + width: element.offsetWidth, + height: element.offsetHeight, + }; + } + function getParentNode(element) { + return 'html' === getNodeName(element) + ? element + : element.assignedSlot || element.parentNode || element.host || getDocumentElement(element); + } + function getScrollParent(node) { + return ['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0 + ? node.ownerDocument.body + : isHTMLElement(node) && isScrollParent(node) + ? node + : getScrollParent(getParentNode(node)); + } + function listScrollParents(element, list) { + void 0 === list && (list = []); + var scrollParent = getScrollParent(element), + isBody = scrollParent === element.ownerDocument.body, + win = getWindow(scrollParent), + target = isBody + ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) + : scrollParent, + updatedList = list.concat(target); + return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target))); + } + function isTableElement(element) { + return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0; + } + function getTrueOffsetParent(element) { + if (!isHTMLElement(element) || 'fixed' === getComputedStyle(element).position) return null; + var offsetParent = element.offsetParent; + if (offsetParent) { + var html = getDocumentElement(offsetParent); + if ( + 'body' === getNodeName(offsetParent) && + 'static' === getComputedStyle(offsetParent).position && + 'static' !== getComputedStyle(html).position + ) + return html; + } + return offsetParent; + } + function getOffsetParent(element) { + for ( + var window = getWindow(element), offsetParent = getTrueOffsetParent(element); + offsetParent && isTableElement(offsetParent) && 'static' === getComputedStyle(offsetParent).position; + + ) + offsetParent = getTrueOffsetParent(offsetParent); + return offsetParent && + 'body' === getNodeName(offsetParent) && + 'static' === getComputedStyle(offsetParent).position + ? window + : offsetParent || + (function getContainingBlock(element) { + for ( + var currentNode = getParentNode(element); + isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0; + + ) { + var css = getComputedStyle(currentNode); + if ( + 'none' !== css.transform || + 'none' !== css.perspective || + (css.willChange && 'auto' !== css.willChange) + ) + return currentNode; + currentNode = currentNode.parentNode; + } + return null; + })(element) || + window; + } + var enums_top = 'top', + bottom = 'bottom', + right = 'right', + left = 'left', + basePlacements = [enums_top, bottom, right, left], + variationPlacements = basePlacements.reduce(function (acc, placement) { + return acc.concat([placement + '-start', placement + '-end']); + }, []), + enums_placements = [].concat(basePlacements, ['auto']).reduce(function (acc, placement) { + return acc.concat([placement, placement + '-start', placement + '-end']); + }, []), + modifierPhases = [ + 'beforeRead', + 'read', + 'afterRead', + 'beforeMain', + 'main', + 'afterMain', + 'beforeWrite', + 'write', + 'afterWrite', + ]; + function order(modifiers) { + var map = new Map(), + visited = new Set(), + result = []; + function sort(modifier) { + visited.add(modifier.name), + [].concat(modifier.requires || [], modifier.requiresIfExists || []).forEach(function (dep) { + if (!visited.has(dep)) { + var depModifier = map.get(dep); + depModifier && sort(depModifier); + } + }), + result.push(modifier); + } + return ( + modifiers.forEach(function (modifier) { + map.set(modifier.name, modifier); + }), + modifiers.forEach(function (modifier) { + visited.has(modifier.name) || sort(modifier); + }), + result + ); + } + function format(str) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + args[_key - 1] = arguments[_key]; + return [].concat(args).reduce(function (p, c) { + return p.replace(/%s/, c); + }, str); + } + var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', + VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options']; + function getBasePlacement(placement) { + return placement.split('-')[0]; + } + var INVALID_ELEMENT_ERROR = + 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.', + DEFAULT_OPTIONS = { placement: 'bottom', modifiers: [], strategy: 'absolute' }; + function areValidElements() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return !args.some(function (element) { + return !(element && 'function' == typeof element.getBoundingClientRect); + }); + } + function popperGenerator(generatorOptions) { + void 0 === generatorOptions && (generatorOptions = {}); + var _generatorOptions = generatorOptions, + _generatorOptions$def = _generatorOptions.defaultModifiers, + defaultModifiers = void 0 === _generatorOptions$def ? [] : _generatorOptions$def, + _generatorOptions$def2 = _generatorOptions.defaultOptions, + defaultOptions = void 0 === _generatorOptions$def2 ? DEFAULT_OPTIONS : _generatorOptions$def2; + return function createPopper(reference, popper, options) { + void 0 === options && (options = defaultOptions); + var fn, + pending, + state = { + placement: 'bottom', + orderedModifiers: [], + options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions), + modifiersData: {}, + elements: { reference, popper }, + attributes: {}, + styles: {}, + }, + effectCleanupFns = [], + isDestroyed = !1, + instance = { + state, + setOptions: function setOptions(options) { + cleanupModifierEffects(), + (state.options = Object.assign( + Object.assign(Object.assign({}, defaultOptions), state.options), + options, + )), + (state.scrollParents = { + reference: isElement(reference) + ? listScrollParents(reference) + : reference.contextElement + ? listScrollParents(reference.contextElement) + : [], + popper: listScrollParents(popper), + }); + var orderedModifiers = (function orderModifiers(modifiers) { + var orderedModifiers = order(modifiers); + return modifierPhases.reduce(function (acc, phase) { + return acc.concat( + orderedModifiers.filter(function (modifier) { + return modifier.phase === phase; + }), + ); + }, []); + })( + (function mergeByName(modifiers) { + var merged = modifiers.reduce(function (merged, current) { + var existing = merged[current.name]; + return ( + (merged[current.name] = existing + ? Object.assign( + Object.assign(Object.assign({}, existing), current), + {}, + { + options: Object.assign(Object.assign({}, existing.options), current.options), + data: Object.assign(Object.assign({}, existing.data), current.data), + }, + ) + : current), + merged + ); + }, {}); + return Object.keys(merged).map(function (key) { + return merged[key]; + }); + })([].concat(defaultModifiers, state.options.modifiers)), + ); + (state.orderedModifiers = orderedModifiers.filter(function (m) { + return m.enabled; + })), + (function validateModifiers(modifiers) { + modifiers.forEach(function (modifier) { + Object.keys(modifier).forEach(function (key) { + switch (key) { + case 'name': + 'string' != typeof modifier.name && + console.error( + format( + INVALID_MODIFIER_ERROR, + String(modifier.name), + '"name"', + '"string"', + '"' + String(modifier.name) + '"', + ), + ); + break; + case 'enabled': + 'boolean' != typeof modifier.enabled && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"enabled"', + '"boolean"', + '"' + String(modifier.enabled) + '"', + ), + ); + case 'phase': + modifierPhases.indexOf(modifier.phase) < 0 && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"phase"', + 'either ' + modifierPhases.join(', '), + '"' + String(modifier.phase) + '"', + ), + ); + break; + case 'fn': + 'function' != typeof modifier.fn && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"fn"', + '"function"', + '"' + String(modifier.fn) + '"', + ), + ); + break; + case 'effect': + 'function' != typeof modifier.effect && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"effect"', + '"function"', + '"' + String(modifier.fn) + '"', + ), + ); + break; + case 'requires': + Array.isArray(modifier.requires) || + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"requires"', + '"array"', + '"' + String(modifier.requires) + '"', + ), + ); + break; + case 'requiresIfExists': + Array.isArray(modifier.requiresIfExists) || + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"requiresIfExists"', + '"array"', + '"' + String(modifier.requiresIfExists) + '"', + ), + ); + break; + case 'options': + case 'data': + break; + default: + console.error( + 'PopperJS: an invalid property has been provided to the "' + + modifier.name + + '" modifier, valid properties are ' + + VALID_PROPERTIES.map(function (s) { + return '"' + s + '"'; + }).join(', ') + + '; but "' + + key + + '" was provided.', + ); + } + modifier.requires && + modifier.requires.forEach(function (requirement) { + null == + modifiers.find(function (mod) { + return mod.name === requirement; + }) && + console.error( + format( + 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', + String(modifier.name), + requirement, + requirement, + ), + ); + }); + }); + }); + })( + (function uniqueBy(arr, fn) { + var identifiers = new Set(); + return arr.filter(function (item) { + var identifier = fn(item); + if (!identifiers.has(identifier)) return identifiers.add(identifier), !0; + }); + })([].concat(orderedModifiers, state.options.modifiers), function (_ref) { + return _ref.name; + }), + ), + 'auto' === getBasePlacement(state.options.placement) && + (state.orderedModifiers.find(function (_ref2) { + return 'flip' === _ref2.name; + }) || + console.error( + [ + 'Popper: "auto" placements require the "flip" modifier be', + 'present and enabled to work.', + ].join(' '), + )); + var _getComputedStyle = getComputedStyle(popper); + return ( + [ + _getComputedStyle.marginTop, + _getComputedStyle.marginRight, + _getComputedStyle.marginBottom, + _getComputedStyle.marginLeft, + ].some(function (margin) { + return parseFloat(margin); + }) && + console.warn( + [ + 'Popper: CSS "margin" styles cannot be used to apply padding', + 'between the popper and its reference element or boundary.', + 'To replicate margin, use the `offset` modifier, as well as', + 'the `padding` option in the `preventOverflow` and `flip`', + 'modifiers.', + ].join(' '), + ), + (function runModifierEffects() { + state.orderedModifiers.forEach(function (_ref3) { + var name = _ref3.name, + _ref3$options = _ref3.options, + options = void 0 === _ref3$options ? {} : _ref3$options, + effect = _ref3.effect; + if ('function' == typeof effect) { + var cleanupFn = effect({ state, name, instance, options }), + noopFn = function noopFn() {}; + effectCleanupFns.push(cleanupFn || noopFn); + } + }); + })(), + instance.update() + ); + }, + forceUpdate: function forceUpdate() { + if (!isDestroyed) { + var _state$elements = state.elements, + reference = _state$elements.reference, + popper = _state$elements.popper; + if (areValidElements(reference, popper)) { + (state.rects = { + reference: getCompositeRect( + reference, + getOffsetParent(popper), + 'fixed' === state.options.strategy, + ), + popper: getLayoutRect(popper), + }), + (state.reset = !1), + (state.placement = state.options.placement), + state.orderedModifiers.forEach(function (modifier) { + return (state.modifiersData[modifier.name] = Object.assign({}, modifier.data)); + }); + for (var __debug_loops__ = 0, index = 0; index < state.orderedModifiers.length; index++) { + if ((__debug_loops__ += 1) > 100) { + console.error( + 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.', + ); + break; + } + if (!0 !== state.reset) { + var _state$orderedModifie = state.orderedModifiers[index], + fn = _state$orderedModifie.fn, + _state$orderedModifie2 = _state$orderedModifie.options, + _options = void 0 === _state$orderedModifie2 ? {} : _state$orderedModifie2, + name = _state$orderedModifie.name; + 'function' == typeof fn && (state = fn({ state, options: _options, name, instance }) || state); + } else (state.reset = !1), (index = -1); + } + } else console.error(INVALID_ELEMENT_ERROR); + } + }, + update: + ((fn = function () { + return new Promise(function (resolve) { + instance.forceUpdate(), resolve(state); + }); + }), + function () { + return ( + pending || + (pending = new Promise(function (resolve) { + Promise.resolve().then(function () { + (pending = void 0), resolve(fn()); + }); + })), + pending + ); + }), + destroy: function destroy() { + cleanupModifierEffects(), (isDestroyed = !0); + }, + }; + if (!areValidElements(reference, popper)) return console.error(INVALID_ELEMENT_ERROR), instance; + function cleanupModifierEffects() { + effectCleanupFns.forEach(function (fn) { + return fn(); + }), + (effectCleanupFns = []); + } + return ( + instance.setOptions(options).then(function (state) { + !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state); + }), + instance + ); + }; + } + var passive = { passive: !0 }; + const eventListeners = { + name: 'eventListeners', + enabled: !0, + phase: 'write', + fn: function fn() {}, + effect: function effect(_ref) { + var state = _ref.state, + instance = _ref.instance, + options = _ref.options, + _options$scroll = options.scroll, + scroll = void 0 === _options$scroll || _options$scroll, + _options$resize = options.resize, + resize = void 0 === _options$resize || _options$resize, + window = getWindow(state.elements.popper), + scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper); + return ( + scroll && + scrollParents.forEach(function (scrollParent) { + scrollParent.addEventListener('scroll', instance.update, passive); + }), + resize && window.addEventListener('resize', instance.update, passive), + function () { + scroll && + scrollParents.forEach(function (scrollParent) { + scrollParent.removeEventListener('scroll', instance.update, passive); + }), + resize && window.removeEventListener('resize', instance.update, passive); + } + ); + }, + data: {}, + }; + function getVariation(placement) { + return placement.split('-')[1]; + } + function getMainAxisFromPlacement(placement) { + return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; + } + function computeOffsets(_ref) { + var offsets, + reference = _ref.reference, + element = _ref.element, + placement = _ref.placement, + basePlacement = placement ? getBasePlacement(placement) : null, + variation = placement ? getVariation(placement) : null, + commonX = reference.x + reference.width / 2 - element.width / 2, + commonY = reference.y + reference.height / 2 - element.height / 2; + switch (basePlacement) { + case enums_top: + offsets = { x: commonX, y: reference.y - element.height }; + break; + case bottom: + offsets = { x: commonX, y: reference.y + reference.height }; + break; + case right: + offsets = { x: reference.x + reference.width, y: commonY }; + break; + case left: + offsets = { x: reference.x - element.width, y: commonY }; + break; + default: + offsets = { x: reference.x, y: reference.y }; + } + var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null; + if (null != mainAxis) { + var len = 'y' === mainAxis ? 'height' : 'width'; + switch (variation) { + case 'start': + offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2); + break; + case 'end': + offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2); + } + } + return offsets; + } + const modifiers_popperOffsets = { + name: 'popperOffsets', + enabled: !0, + phase: 'read', + fn: function popperOffsets(_ref) { + var state = _ref.state, + name = _ref.name; + state.modifiersData[name] = computeOffsets({ + reference: state.rects.reference, + element: state.rects.popper, + strategy: 'absolute', + placement: state.placement, + }); + }, + data: {}, + }; + var round = Math.round, + unsetSides = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }; + function mapToStyles(_ref2) { + var _Object$assign2, + popper = _ref2.popper, + popperRect = _ref2.popperRect, + placement = _ref2.placement, + offsets = _ref2.offsets, + position = _ref2.position, + gpuAcceleration = _ref2.gpuAcceleration, + adaptive = _ref2.adaptive, + roundOffsets = _ref2.roundOffsets, + _ref3 = + !0 === roundOffsets + ? (function roundOffsetsByDPR(_ref) { + var x = _ref.x, + y = _ref.y, + dpr = window.devicePixelRatio || 1; + return { x: round(round(x * dpr) / dpr) || 0, y: round(round(y * dpr) / dpr) || 0 }; + })(offsets) + : 'function' == typeof roundOffsets + ? roundOffsets(offsets) + : offsets, + _ref3$x = _ref3.x, + x = void 0 === _ref3$x ? 0 : _ref3$x, + _ref3$y = _ref3.y, + y = void 0 === _ref3$y ? 0 : _ref3$y, + hasX = offsets.hasOwnProperty('x'), + hasY = offsets.hasOwnProperty('y'), + sideX = left, + sideY = enums_top, + win = window; + if (adaptive) { + var offsetParent = getOffsetParent(popper); + offsetParent === getWindow(popper) && (offsetParent = getDocumentElement(popper)), + placement === enums_top && + ((sideY = bottom), (y -= offsetParent.clientHeight - popperRect.height), (y *= gpuAcceleration ? 1 : -1)), + placement === left && + ((sideX = right), (x -= offsetParent.clientWidth - popperRect.width), (x *= gpuAcceleration ? 1 : -1)); + } + var _Object$assign, + commonStyles = Object.assign({ position }, adaptive && unsetSides); + return gpuAcceleration + ? Object.assign( + Object.assign({}, commonStyles), + {}, + (((_Object$assign = {})[sideY] = hasY ? '0' : ''), + (_Object$assign[sideX] = hasX ? '0' : ''), + (_Object$assign.transform = + (win.devicePixelRatio || 1) < 2 + ? 'translate(' + x + 'px, ' + y + 'px)' + : 'translate3d(' + x + 'px, ' + y + 'px, 0)'), + _Object$assign), + ) + : Object.assign( + Object.assign({}, commonStyles), + {}, + (((_Object$assign2 = {})[sideY] = hasY ? y + 'px' : ''), + (_Object$assign2[sideX] = hasX ? x + 'px' : ''), + (_Object$assign2.transform = ''), + _Object$assign2), + ); + } + const modifiers_offset = { + name: 'offset', + enabled: !0, + phase: 'main', + requires: ['popperOffsets'], + fn: function offset(_ref2) { + var state = _ref2.state, + options = _ref2.options, + name = _ref2.name, + _options$offset = options.offset, + offset = void 0 === _options$offset ? [0, 0] : _options$offset, + data = enums_placements.reduce(function (acc, placement) { + return ( + (acc[placement] = (function distanceAndSkiddingToXY(placement, rects, offset) { + var basePlacement = getBasePlacement(placement), + invertDistance = [left, enums_top].indexOf(basePlacement) >= 0 ? -1 : 1, + _ref = + 'function' == typeof offset + ? offset(Object.assign(Object.assign({}, rects), {}, { placement })) + : offset, + skidding = _ref[0], + distance = _ref[1]; + return ( + (skidding = skidding || 0), + (distance = (distance || 0) * invertDistance), + [left, right].indexOf(basePlacement) >= 0 + ? { x: distance, y: skidding } + : { x: skidding, y: distance } + ); + })(placement, state.rects, offset)), + acc + ); + }, {}), + _data$state$placement = data[state.placement], + x = _data$state$placement.x, + y = _data$state$placement.y; + null != state.modifiersData.popperOffsets && + ((state.modifiersData.popperOffsets.x += x), (state.modifiersData.popperOffsets.y += y)), + (state.modifiersData[name] = data); + }, + }; + var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; + function getOppositePlacement(placement) { + return placement.replace(/left|right|bottom|top/g, function (matched) { + return hash[matched]; + }); + } + var getOppositeVariationPlacement_hash = { start: 'end', end: 'start' }; + function getOppositeVariationPlacement(placement) { + return placement.replace(/start|end/g, function (matched) { + return getOppositeVariationPlacement_hash[matched]; + }); + } + function contains(parent, child) { + var rootNode = child.getRootNode && child.getRootNode(); + if (parent.contains(child)) return !0; + if ( + rootNode && + (function isShadowRoot(node) { + return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot; + })(rootNode) + ) { + var next = child; + do { + if (next && parent.isSameNode(next)) return !0; + next = next.parentNode || next.host; + } while (next); + } + return !1; + } + function rectToClientRect(rect) { + return Object.assign( + Object.assign({}, rect), + {}, + { left: rect.x, top: rect.y, right: rect.x + rect.width, bottom: rect.y + rect.height }, + ); + } + function getClientRectFromMixedType(element, clippingParent) { + return 'viewport' === clippingParent + ? rectToClientRect( + (function getViewportRect(element) { + var win = getWindow(element), + html = getDocumentElement(element), + visualViewport = win.visualViewport, + width = html.clientWidth, + height = html.clientHeight, + x = 0, + y = 0; + return ( + visualViewport && + ((width = visualViewport.width), + (height = visualViewport.height), + /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || + ((x = visualViewport.offsetLeft), (y = visualViewport.offsetTop))), + { width, height, x: x + getWindowScrollBarX(element), y } + ); + })(element), + ) + : isHTMLElement(clippingParent) + ? (function getInnerBoundingClientRect(element) { + var rect = getBoundingClientRect(element); + return ( + (rect.top = rect.top + element.clientTop), + (rect.left = rect.left + element.clientLeft), + (rect.bottom = rect.top + element.clientHeight), + (rect.right = rect.left + element.clientWidth), + (rect.width = element.clientWidth), + (rect.height = element.clientHeight), + (rect.x = rect.left), + (rect.y = rect.top), + rect + ); + })(clippingParent) + : rectToClientRect( + (function getDocumentRect(element) { + var html = getDocumentElement(element), + winScroll = getWindowScroll(element), + body = element.ownerDocument.body, + width = Math.max( + html.scrollWidth, + html.clientWidth, + body ? body.scrollWidth : 0, + body ? body.clientWidth : 0, + ), + height = Math.max( + html.scrollHeight, + html.clientHeight, + body ? body.scrollHeight : 0, + body ? body.clientHeight : 0, + ), + x = -winScroll.scrollLeft + getWindowScrollBarX(element), + y = -winScroll.scrollTop; + return ( + 'rtl' === getComputedStyle(body || html).direction && + (x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width), + { width, height, x, y } + ); + })(getDocumentElement(element)), + ); + } + function getClippingRect(element, boundary, rootBoundary) { + var mainClippingParents = + 'clippingParents' === boundary + ? (function getClippingParents(element) { + var clippingParents = listScrollParents(getParentNode(element)), + clipperElement = + ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0 && isHTMLElement(element) + ? getOffsetParent(element) + : element; + return isElement(clipperElement) + ? clippingParents.filter(function (clippingParent) { + return ( + isElement(clippingParent) && + contains(clippingParent, clipperElement) && + 'body' !== getNodeName(clippingParent) + ); + }) + : []; + })(element) + : [].concat(boundary), + clippingParents = [].concat(mainClippingParents, [rootBoundary]), + firstClippingParent = clippingParents[0], + clippingRect = clippingParents.reduce(function (accRect, clippingParent) { + var rect = getClientRectFromMixedType(element, clippingParent); + return ( + (accRect.top = Math.max(rect.top, accRect.top)), + (accRect.right = Math.min(rect.right, accRect.right)), + (accRect.bottom = Math.min(rect.bottom, accRect.bottom)), + (accRect.left = Math.max(rect.left, accRect.left)), + accRect + ); + }, getClientRectFromMixedType(element, firstClippingParent)); + return ( + (clippingRect.width = clippingRect.right - clippingRect.left), + (clippingRect.height = clippingRect.bottom - clippingRect.top), + (clippingRect.x = clippingRect.left), + (clippingRect.y = clippingRect.top), + clippingRect + ); + } + function mergePaddingObject(paddingObject) { + return Object.assign(Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }), paddingObject); + } + function expandToHashMap(value, keys) { + return keys.reduce(function (hashMap, key) { + return (hashMap[key] = value), hashMap; + }, {}); + } + function detectOverflow(state, options) { + void 0 === options && (options = {}); + var _options = options, + _options$placement = _options.placement, + placement = void 0 === _options$placement ? state.placement : _options$placement, + _options$boundary = _options.boundary, + boundary = void 0 === _options$boundary ? 'clippingParents' : _options$boundary, + _options$rootBoundary = _options.rootBoundary, + rootBoundary = void 0 === _options$rootBoundary ? 'viewport' : _options$rootBoundary, + _options$elementConte = _options.elementContext, + elementContext = void 0 === _options$elementConte ? 'popper' : _options$elementConte, + _options$altBoundary = _options.altBoundary, + altBoundary = void 0 !== _options$altBoundary && _options$altBoundary, + _options$padding = _options.padding, + padding = void 0 === _options$padding ? 0 : _options$padding, + paddingObject = mergePaddingObject( + 'number' != typeof padding ? padding : expandToHashMap(padding, basePlacements), + ), + altContext = 'popper' === elementContext ? 'reference' : 'popper', + referenceElement = state.elements.reference, + popperRect = state.rects.popper, + element = state.elements[altBoundary ? altContext : elementContext], + clippingClientRect = getClippingRect( + isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), + boundary, + rootBoundary, + ), + referenceClientRect = getBoundingClientRect(referenceElement), + popperOffsets = computeOffsets({ + reference: referenceClientRect, + element: popperRect, + strategy: 'absolute', + placement, + }), + popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets)), + elementClientRect = 'popper' === elementContext ? popperClientRect : referenceClientRect, + overflowOffsets = { + top: clippingClientRect.top - elementClientRect.top + paddingObject.top, + bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom, + left: clippingClientRect.left - elementClientRect.left + paddingObject.left, + right: elementClientRect.right - clippingClientRect.right + paddingObject.right, + }, + offsetData = state.modifiersData.offset; + if ('popper' === elementContext && offsetData) { + var offset = offsetData[placement]; + Object.keys(overflowOffsets).forEach(function (key) { + var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, + axis = [enums_top, bottom].indexOf(key) >= 0 ? 'y' : 'x'; + overflowOffsets[key] += offset[axis] * multiply; + }); + } + return overflowOffsets; + } + function within(min, value, max) { + return Math.max(min, Math.min(value, max)); + } + const modifiers_preventOverflow = { + name: 'preventOverflow', + enabled: !0, + phase: 'main', + fn: function preventOverflow(_ref) { + var state = _ref.state, + options = _ref.options, + name = _ref.name, + _options$mainAxis = options.mainAxis, + checkMainAxis = void 0 === _options$mainAxis || _options$mainAxis, + _options$altAxis = options.altAxis, + checkAltAxis = void 0 !== _options$altAxis && _options$altAxis, + boundary = options.boundary, + rootBoundary = options.rootBoundary, + altBoundary = options.altBoundary, + padding = options.padding, + _options$tether = options.tether, + tether = void 0 === _options$tether || _options$tether, + _options$tetherOffset = options.tetherOffset, + tetherOffset = void 0 === _options$tetherOffset ? 0 : _options$tetherOffset, + overflow = detectOverflow(state, { boundary, rootBoundary, padding, altBoundary }), + basePlacement = getBasePlacement(state.placement), + variation = getVariation(state.placement), + isBasePlacement = !variation, + mainAxis = getMainAxisFromPlacement(basePlacement), + altAxis = (function getAltAxis(axis) { + return 'x' === axis ? 'y' : 'x'; + })(mainAxis), + popperOffsets = state.modifiersData.popperOffsets, + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + tetherOffsetValue = + 'function' == typeof tetherOffset + ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, { placement: state.placement })) + : tetherOffset, + data = { x: 0, y: 0 }; + if (popperOffsets) { + if (checkMainAxis) { + var mainSide = 'y' === mainAxis ? enums_top : left, + altSide = 'y' === mainAxis ? bottom : right, + len = 'y' === mainAxis ? 'height' : 'width', + offset = popperOffsets[mainAxis], + min = popperOffsets[mainAxis] + overflow[mainSide], + max = popperOffsets[mainAxis] - overflow[altSide], + additive = tether ? -popperRect[len] / 2 : 0, + minLen = 'start' === variation ? referenceRect[len] : popperRect[len], + maxLen = 'start' === variation ? -popperRect[len] : -referenceRect[len], + arrowElement = state.elements.arrow, + arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : { width: 0, height: 0 }, + arrowPaddingObject = state.modifiersData['arrow#persistent'] + ? state.modifiersData['arrow#persistent'].padding + : { top: 0, right: 0, bottom: 0, left: 0 }, + arrowPaddingMin = arrowPaddingObject[mainSide], + arrowPaddingMax = arrowPaddingObject[altSide], + arrowLen = within(0, referenceRect[len], arrowRect[len]), + minOffset = isBasePlacement + ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue + : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue, + maxOffset = isBasePlacement + ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue + : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue, + arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow), + clientOffset = arrowOffsetParent + ? 'y' === mainAxis + ? arrowOffsetParent.clientTop || 0 + : arrowOffsetParent.clientLeft || 0 + : 0, + offsetModifierValue = state.modifiersData.offset + ? state.modifiersData.offset[state.placement][mainAxis] + : 0, + tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset, + tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue, + preventedOffset = within( + tether ? Math.min(min, tetherMin) : min, + offset, + tether ? Math.max(max, tetherMax) : max, + ); + (popperOffsets[mainAxis] = preventedOffset), (data[mainAxis] = preventedOffset - offset); + } + if (checkAltAxis) { + var _mainSide = 'x' === mainAxis ? enums_top : left, + _altSide = 'x' === mainAxis ? bottom : right, + _offset = popperOffsets[altAxis], + _preventedOffset = within(_offset + overflow[_mainSide], _offset, _offset - overflow[_altSide]); + (popperOffsets[altAxis] = _preventedOffset), (data[altAxis] = _preventedOffset - _offset); + } + state.modifiersData[name] = data; + } + }, + requiresIfExists: ['offset'], + }; + const modifiers_arrow = { + name: 'arrow', + enabled: !0, + phase: 'main', + fn: function arrow(_ref) { + var _state$modifiersData$, + state = _ref.state, + name = _ref.name, + arrowElement = state.elements.arrow, + popperOffsets = state.modifiersData.popperOffsets, + basePlacement = getBasePlacement(state.placement), + axis = getMainAxisFromPlacement(basePlacement), + len = [left, right].indexOf(basePlacement) >= 0 ? 'height' : 'width'; + if (arrowElement && popperOffsets) { + var paddingObject = state.modifiersData[name + '#persistent'].padding, + arrowRect = getLayoutRect(arrowElement), + minProp = 'y' === axis ? enums_top : left, + maxProp = 'y' === axis ? bottom : right, + endDiff = + state.rects.reference[len] + + state.rects.reference[axis] - + popperOffsets[axis] - + state.rects.popper[len], + startDiff = popperOffsets[axis] - state.rects.reference[axis], + arrowOffsetParent = getOffsetParent(arrowElement), + clientSize = arrowOffsetParent + ? 'y' === axis + ? arrowOffsetParent.clientHeight || 0 + : arrowOffsetParent.clientWidth || 0 + : 0, + centerToReference = endDiff / 2 - startDiff / 2, + min = paddingObject[minProp], + max = clientSize - arrowRect[len] - paddingObject[maxProp], + center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, + offset = within(min, center, max), + axisProp = axis; + state.modifiersData[name] = + (((_state$modifiersData$ = {})[axisProp] = offset), + (_state$modifiersData$.centerOffset = offset - center), + _state$modifiersData$); + } + }, + effect: function arrow_effect(_ref2) { + var state = _ref2.state, + options = _ref2.options, + name = _ref2.name, + _options$element = options.element, + arrowElement = void 0 === _options$element ? '[data-popper-arrow]' : _options$element, + _options$padding = options.padding, + padding = void 0 === _options$padding ? 0 : _options$padding; + null != arrowElement && + ('string' != typeof arrowElement || (arrowElement = state.elements.popper.querySelector(arrowElement))) && + (isHTMLElement(arrowElement) || + console.error( + [ + 'Popper: "arrow" element must be an HTMLElement (not an SVGElement).', + 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', + 'the arrow.', + ].join(' '), + ), + contains(state.elements.popper, arrowElement) + ? ((state.elements.arrow = arrowElement), + (state.modifiersData[name + '#persistent'] = { + padding: mergePaddingObject( + 'number' != typeof padding ? padding : expandToHashMap(padding, basePlacements), + ), + })) + : console.error( + ['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '), + )); + }, + requires: ['popperOffsets'], + requiresIfExists: ['preventOverflow'], + }; + function getSideOffsets(overflow, rect, preventedOffsets) { + return ( + void 0 === preventedOffsets && (preventedOffsets = { x: 0, y: 0 }), + { + top: overflow.top - rect.height - preventedOffsets.y, + right: overflow.right - rect.width + preventedOffsets.x, + bottom: overflow.bottom - rect.height + preventedOffsets.y, + left: overflow.left - rect.width - preventedOffsets.x, + } + ); + } + function isAnySideFullyClipped(overflow) { + return [enums_top, right, bottom, left].some(function (side) { + return overflow[side] >= 0; + }); + } + var popper_createPopper = popperGenerator({ + defaultModifiers: [ + eventListeners, + modifiers_popperOffsets, + { + name: 'computeStyles', + enabled: !0, + phase: 'beforeWrite', + fn: function computeStyles(_ref4) { + var state = _ref4.state, + options = _ref4.options, + _options$gpuAccelerat = options.gpuAcceleration, + gpuAcceleration = void 0 === _options$gpuAccelerat || _options$gpuAccelerat, + _options$adaptive = options.adaptive, + adaptive = void 0 === _options$adaptive || _options$adaptive, + _options$roundOffsets = options.roundOffsets, + roundOffsets = void 0 === _options$roundOffsets || _options$roundOffsets, + transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || ''; + adaptive && + ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) { + return transitionProperty.indexOf(property) >= 0; + }) && + console.warn( + [ + 'Popper: Detected CSS transitions on at least one of the following', + 'CSS properties: "transform", "top", "right", "bottom", "left".', + '\n\n', + 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', + 'for smooth transitions, or remove these properties from the CSS', + 'transition declaration on the popper element if only transitioning', + 'opacity or background-color for example.', + '\n\n', + 'We recommend using the popper element as a wrapper around an inner', + 'element that can have any CSS property transitioned for animations.', + ].join(' '), + ); + var commonStyles = { + placement: getBasePlacement(state.placement), + popper: state.elements.popper, + popperRect: state.rects.popper, + gpuAcceleration, + }; + null != state.modifiersData.popperOffsets && + (state.styles.popper = Object.assign( + Object.assign({}, state.styles.popper), + mapToStyles( + Object.assign( + Object.assign({}, commonStyles), + {}, + { + offsets: state.modifiersData.popperOffsets, + position: state.options.strategy, + adaptive, + roundOffsets, + }, + ), + ), + )), + null != state.modifiersData.arrow && + (state.styles.arrow = Object.assign( + Object.assign({}, state.styles.arrow), + mapToStyles( + Object.assign( + Object.assign({}, commonStyles), + {}, + { offsets: state.modifiersData.arrow, position: 'absolute', adaptive: !1, roundOffsets }, + ), + ), + )), + (state.attributes.popper = Object.assign( + Object.assign({}, state.attributes.popper), + {}, + { 'data-popper-placement': state.placement }, + )); + }, + data: {}, + }, + { + name: 'applyStyles', + enabled: !0, + phase: 'write', + fn: function applyStyles(_ref) { + var state = _ref.state; + Object.keys(state.elements).forEach(function (name) { + var style = state.styles[name] || {}, + attributes = state.attributes[name] || {}, + element = state.elements[name]; + isHTMLElement(element) && + getNodeName(element) && + (Object.assign(element.style, style), + Object.keys(attributes).forEach(function (name) { + var value = attributes[name]; + !1 === value + ? element.removeAttribute(name) + : element.setAttribute(name, !0 === value ? '' : value); + })); + }); + }, + effect: function applyStyles_effect(_ref2) { + var state = _ref2.state, + initialStyles = { + popper: { position: state.options.strategy, left: '0', top: '0', margin: '0' }, + arrow: { position: 'absolute' }, + reference: {}, + }; + return ( + Object.assign(state.elements.popper.style, initialStyles.popper), + state.elements.arrow && Object.assign(state.elements.arrow.style, initialStyles.arrow), + function () { + Object.keys(state.elements).forEach(function (name) { + var element = state.elements[name], + attributes = state.attributes[name] || {}, + style = Object.keys( + state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name], + ).reduce(function (style, property) { + return (style[property] = ''), style; + }, {}); + isHTMLElement(element) && + getNodeName(element) && + (Object.assign(element.style, style), + Object.keys(attributes).forEach(function (attribute) { + element.removeAttribute(attribute); + })); + }); + } + ); + }, + requires: ['computeStyles'], + }, + modifiers_offset, + { + name: 'flip', + enabled: !0, + phase: 'main', + fn: function flip(_ref) { + var state = _ref.state, + options = _ref.options, + name = _ref.name; + if (!state.modifiersData[name]._skip) { + for ( + var _options$mainAxis = options.mainAxis, + checkMainAxis = void 0 === _options$mainAxis || _options$mainAxis, + _options$altAxis = options.altAxis, + checkAltAxis = void 0 === _options$altAxis || _options$altAxis, + specifiedFallbackPlacements = options.fallbackPlacements, + padding = options.padding, + boundary = options.boundary, + rootBoundary = options.rootBoundary, + altBoundary = options.altBoundary, + _options$flipVariatio = options.flipVariations, + flipVariations = void 0 === _options$flipVariatio || _options$flipVariatio, + allowedAutoPlacements = options.allowedAutoPlacements, + preferredPlacement = state.options.placement, + basePlacement = getBasePlacement(preferredPlacement), + fallbackPlacements = + specifiedFallbackPlacements || + (basePlacement === preferredPlacement || !flipVariations + ? [getOppositePlacement(preferredPlacement)] + : (function getExpandedFallbackPlacements(placement) { + if ('auto' === getBasePlacement(placement)) return []; + var oppositePlacement = getOppositePlacement(placement); + return [ + getOppositeVariationPlacement(placement), + oppositePlacement, + getOppositeVariationPlacement(oppositePlacement), + ]; + })(preferredPlacement)), + placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) { + return acc.concat( + 'auto' === getBasePlacement(placement) + ? (function computeAutoPlacement(state, options) { + void 0 === options && (options = {}); + var _options = options, + placement = _options.placement, + boundary = _options.boundary, + rootBoundary = _options.rootBoundary, + padding = _options.padding, + flipVariations = _options.flipVariations, + _options$allowedAutoP = _options.allowedAutoPlacements, + allowedAutoPlacements = + void 0 === _options$allowedAutoP ? enums_placements : _options$allowedAutoP, + variation = getVariation(placement), + placements = variation + ? flipVariations + ? variationPlacements + : variationPlacements.filter(function (placement) { + return getVariation(placement) === variation; + }) + : basePlacements, + allowedPlacements = placements.filter(function (placement) { + return allowedAutoPlacements.indexOf(placement) >= 0; + }); + 0 === allowedPlacements.length && + ((allowedPlacements = placements), + console.error( + [ + 'Popper: The `allowedAutoPlacements` option did not allow any', + 'placements. Ensure the `placement` option matches the variation', + 'of the allowed placements.', + 'For example, "auto" cannot be used to allow "bottom-start".', + 'Use "auto-start" instead.', + ].join(' '), + )); + var overflows = allowedPlacements.reduce(function (acc, placement) { + return ( + (acc[placement] = detectOverflow(state, { + placement, + boundary, + rootBoundary, + padding, + })[getBasePlacement(placement)]), + acc + ); + }, {}); + return Object.keys(overflows).sort(function (a, b) { + return overflows[a] - overflows[b]; + }); + })(state, { + placement, + boundary, + rootBoundary, + padding, + flipVariations, + allowedAutoPlacements, + }) + : placement, + ); + }, []), + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + checksMap = new Map(), + makeFallbackChecks = !0, + firstFittingPlacement = placements[0], + i = 0; + i < placements.length; + i++ + ) { + var placement = placements[i], + _basePlacement = getBasePlacement(placement), + isStartVariation = 'start' === getVariation(placement), + isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0, + len = isVertical ? 'width' : 'height', + overflow = detectOverflow(state, { placement, boundary, rootBoundary, altBoundary, padding }), + mainVariationSide = isVertical + ? isStartVariation + ? right + : left + : isStartVariation + ? bottom + : enums_top; + referenceRect[len] > popperRect[len] && + (mainVariationSide = getOppositePlacement(mainVariationSide)); + var altVariationSide = getOppositePlacement(mainVariationSide), + checks = []; + if ( + (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), + checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), + checks.every(function (check) { + return check; + })) + ) { + (firstFittingPlacement = placement), (makeFallbackChecks = !1); + break; + } + checksMap.set(placement, checks); + } + if (makeFallbackChecks) + for ( + var _loop = function _loop(_i) { + var fittingPlacement = placements.find(function (placement) { + var checks = checksMap.get(placement); + if (checks) + return checks.slice(0, _i).every(function (check) { + return check; + }); + }); + if (fittingPlacement) return (firstFittingPlacement = fittingPlacement), 'break'; + }, + _i = flipVariations ? 3 : 1; + _i > 0; + _i-- + ) { + if ('break' === _loop(_i)) break; + } + state.placement !== firstFittingPlacement && + ((state.modifiersData[name]._skip = !0), + (state.placement = firstFittingPlacement), + (state.reset = !0)); + } + }, + requiresIfExists: ['offset'], + data: { _skip: !1 }, + }, + modifiers_preventOverflow, + modifiers_arrow, + { + name: 'hide', + enabled: !0, + phase: 'main', + requiresIfExists: ['preventOverflow'], + fn: function hide(_ref) { + var state = _ref.state, + name = _ref.name, + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + preventedOffsets = state.modifiersData.preventOverflow, + referenceOverflow = detectOverflow(state, { elementContext: 'reference' }), + popperAltOverflow = detectOverflow(state, { altBoundary: !0 }), + referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), + popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), + isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), + hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); + (state.modifiersData[name] = { + referenceClippingOffsets, + popperEscapeOffsets, + isReferenceHidden, + hasPopperEscaped, + }), + (state.attributes.popper = Object.assign( + Object.assign({}, state.attributes.popper), + {}, + { 'data-popper-reference-hidden': isReferenceHidden, 'data-popper-escaped': hasPopperEscaped }, + )); + }, + }, + ], + }), + react_fast_compare = __webpack_require__(83577), + react_fast_compare_default = __webpack_require__.n(react_fast_compare), + EMPTY_MODIFIERS = [], + NOOP = function NOOP() {}, + NOOP_PROMISE = function NOOP_PROMISE() { + return Promise.resolve(null); + }, + Popper_EMPTY_MODIFIERS = []; + function Popper(_ref) { + var _ref$placement = _ref.placement, + placement = void 0 === _ref$placement ? 'bottom' : _ref$placement, + _ref$strategy = _ref.strategy, + strategy = void 0 === _ref$strategy ? 'absolute' : _ref$strategy, + _ref$modifiers = _ref.modifiers, + modifiers = void 0 === _ref$modifiers ? Popper_EMPTY_MODIFIERS : _ref$modifiers, + referenceElement = _ref.referenceElement, + onFirstUpdate = _ref.onFirstUpdate, + innerRef = _ref.innerRef, + children = _ref.children, + referenceNode = react.useContext(ManagerReferenceNodeContext), + _React$useState = react.useState(null), + popperElement = _React$useState[0], + setPopperElement = _React$useState[1], + _React$useState2 = react.useState(null), + arrowElement = _React$useState2[0], + setArrowElement = _React$useState2[1]; + react.useEffect( + function () { + setRef(innerRef, popperElement); + }, + [innerRef, popperElement], + ); + var options = react.useMemo( + function () { + return { + placement, + strategy, + onFirstUpdate, + modifiers: [].concat(modifiers, [ + { name: 'arrow', enabled: null != arrowElement, options: { element: arrowElement } }, + ]), + }; + }, + [placement, strategy, onFirstUpdate, modifiers, arrowElement], + ), + _usePopper = (function usePopper(referenceElement, popperElement, options) { + void 0 === options && (options = {}); + var prevOptions = react.useRef(null), + optionsWithDefaults = { + onFirstUpdate: options.onFirstUpdate, + placement: options.placement || 'bottom', + strategy: options.strategy || 'absolute', + modifiers: options.modifiers || EMPTY_MODIFIERS, + }, + _React$useState = react.useState({ + styles: { popper: { position: optionsWithDefaults.strategy, left: '0', top: '0' } }, + attributes: {}, + }), + state = _React$useState[0], + setState = _React$useState[1], + updateStateModifier = react.useMemo(function () { + return { + name: 'updateState', + enabled: !0, + phase: 'write', + fn: function fn(_ref) { + var state = _ref.state, + elements = Object.keys(state.elements); + setState({ + styles: fromEntries( + elements.map(function (element) { + return [element, state.styles[element] || {}]; + }), + ), + attributes: fromEntries( + elements.map(function (element) { + return [element, state.attributes[element]]; + }), + ), + }); + }, + requires: ['computeStyles'], + }; + }, []), + popperOptions = react.useMemo( + function () { + var newOptions = { + onFirstUpdate: optionsWithDefaults.onFirstUpdate, + placement: optionsWithDefaults.placement, + strategy: optionsWithDefaults.strategy, + modifiers: [].concat(optionsWithDefaults.modifiers, [ + updateStateModifier, + { name: 'applyStyles', enabled: !1 }, + ]), + }; + return react_fast_compare_default()(prevOptions.current, newOptions) + ? prevOptions.current || newOptions + : ((prevOptions.current = newOptions), newOptions); + }, + [ + optionsWithDefaults.onFirstUpdate, + optionsWithDefaults.placement, + optionsWithDefaults.strategy, + optionsWithDefaults.modifiers, + updateStateModifier, + ], + ), + popperInstanceRef = react.useRef(); + return ( + useIsomorphicLayoutEffect( + function () { + popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions); + }, + [popperOptions], + ), + useIsomorphicLayoutEffect( + function () { + if (null != referenceElement && null != popperElement) { + var popperInstance = (options.createPopper || popper_createPopper)( + referenceElement, + popperElement, + popperOptions, + ); + return ( + (popperInstanceRef.current = popperInstance), + function () { + popperInstance.destroy(), (popperInstanceRef.current = null); + } + ); + } + }, + [referenceElement, popperElement, options.createPopper], + ), + { + state: popperInstanceRef.current ? popperInstanceRef.current.state : null, + styles: state.styles, + attributes: state.attributes, + update: popperInstanceRef.current ? popperInstanceRef.current.update : null, + forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null, + } + ); + })(referenceElement || referenceNode, popperElement, options), + state = _usePopper.state, + styles = _usePopper.styles, + forceUpdate = _usePopper.forceUpdate, + update = _usePopper.update, + childrenProps = react.useMemo( + function () { + return { + ref: setPopperElement, + style: styles.popper, + placement: state ? state.placement : placement, + hasPopperEscaped: state && state.modifiersData.hide ? state.modifiersData.hide.hasPopperEscaped : null, + isReferenceHidden: + state && state.modifiersData.hide ? state.modifiersData.hide.isReferenceHidden : null, + arrowProps: { style: styles.arrow, ref: setArrowElement }, + forceUpdate: forceUpdate || NOOP, + update: update || NOOP_PROMISE, + }; + }, + [setPopperElement, setArrowElement, placement, state, styles, update, forceUpdate], + ); + return unwrapArray(children)(childrenProps); + } + var warning = __webpack_require__(45982), + warning_default = __webpack_require__.n(warning); + function Reference(_ref) { + var children = _ref.children, + innerRef = _ref.innerRef, + setReferenceNode = react.useContext(ManagerReferenceNodeSetterContext), + refHandler = react.useCallback( + function (node) { + setRef(innerRef, node), safeInvoke(setReferenceNode, node); + }, + [innerRef, setReferenceNode], + ); + return ( + react.useEffect(function () { + return function () { + return setRef(innerRef, null); + }; + }), + react.useEffect( + function () { + warning_default()( + Boolean(setReferenceNode), + '`Reference` should not be used outside of a `Manager` component.', + ); + }, + [setReferenceNode], + ), + unwrapArray(children)({ ref: refHandler }) + ); + } + var TooltipContext = react.createContext({}), + callAll = function callAll() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) + fns[_key] = arguments[_key]; + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) + args[_key2] = arguments[_key2]; + return fns.forEach(function (fn) { + return fn && fn.apply(void 0, args); + }); + }; + }, + canUseDOM = function canUseDOM() { + return !('undefined' == typeof window || !window.document || !window.document.createElement); + }, + react_popper_tooltip_setRef = function setRef(ref, node) { + if ('function' == typeof ref) return ref(node); + null != ref && (ref.current = node); + }, + Tooltip = (function (_Component) { + function Tooltip() { + for (var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + ((_this = _Component.call.apply(_Component, [this].concat(args)) || this).observer = void 0), + (_this.tooltipRef = void 0), + (_this.handleOutsideClick = function (event) { + if (_this.tooltipRef && !_this.tooltipRef.contains(event.target)) { + var parentOutsideClickHandler = _this.context.parentOutsideClickHandler, + _this$props = _this.props, + hideTooltip = _this$props.hideTooltip; + (0, _this$props.clearScheduled)(), + hideTooltip(), + parentOutsideClickHandler && parentOutsideClickHandler(event); + } + }), + (_this.handleOutsideRightClick = function (event) { + if (_this.tooltipRef && !_this.tooltipRef.contains(event.target)) { + var parentOutsideRightClickHandler = _this.context.parentOutsideRightClickHandler, + _this$props2 = _this.props, + hideTooltip = _this$props2.hideTooltip; + (0, _this$props2.clearScheduled)(), + hideTooltip(), + parentOutsideRightClickHandler && parentOutsideRightClickHandler(event); + } + }), + (_this.addOutsideClickHandler = function () { + document.body.addEventListener('touchend', _this.handleOutsideClick), + document.body.addEventListener('click', _this.handleOutsideClick); + }), + (_this.removeOutsideClickHandler = function () { + document.body.removeEventListener('touchend', _this.handleOutsideClick), + document.body.removeEventListener('click', _this.handleOutsideClick); + }), + (_this.addOutsideRightClickHandler = function () { + return document.body.addEventListener('contextmenu', _this.handleOutsideRightClick); + }), + (_this.removeOutsideRightClickHandler = function () { + return document.body.removeEventListener('contextmenu', _this.handleOutsideRightClick); + }), + (_this.getTooltipRef = function (node) { + (_this.tooltipRef = node), react_popper_tooltip_setRef(_this.props.innerRef, node); + }), + (_this.getArrowProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)({}, props, { + style: (0, esm_extends.Z)({}, props.style, _this.props.arrowProps.style), + }) + ); + }), + (_this.getTooltipProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)( + {}, + props, + _this.isTriggeredBy('hover') && { + onMouseEnter: callAll(_this.props.clearScheduled, props.onMouseEnter), + onMouseLeave: callAll(_this.props.hideTooltip, props.onMouseLeave), + }, + { style: (0, esm_extends.Z)({}, props.style, _this.props.style) }, + ) + ); + }), + (_this.contextValue = { + isParentNoneTriggered: 'none' === _this.props.trigger, + addParentOutsideClickHandler: _this.addOutsideClickHandler, + addParentOutsideRightClickHandler: _this.addOutsideRightClickHandler, + parentOutsideClickHandler: _this.handleOutsideClick, + parentOutsideRightClickHandler: _this.handleOutsideRightClick, + removeParentOutsideClickHandler: _this.removeOutsideClickHandler, + removeParentOutsideRightClickHandler: _this.removeOutsideRightClickHandler, + }), + _this + ); + } + (0, inheritsLoose.Z)(Tooltip, _Component); + var _proto = Tooltip.prototype; + return ( + (_proto.componentDidMount = function componentDidMount() { + var _this2 = this; + if ( + ((this.observer = new MutationObserver(function () { + _this2.props.update(); + })).observe(this.tooltipRef, this.props.mutationObserverOptions), + this.isTriggeredBy('hover') || this.isTriggeredBy('click') || this.isTriggeredBy('right-click')) + ) { + var _this$context = this.context, + removeParentOutsideClickHandler = _this$context.removeParentOutsideClickHandler, + removeParentOutsideRightClickHandler = _this$context.removeParentOutsideRightClickHandler; + this.addOutsideClickHandler(), + this.addOutsideRightClickHandler(), + removeParentOutsideClickHandler && removeParentOutsideClickHandler(), + removeParentOutsideRightClickHandler && removeParentOutsideRightClickHandler(); + } + }), + (_proto.componentDidUpdate = function componentDidUpdate() { + this.props.closeOnReferenceHidden && this.props.isReferenceHidden && this.props.hideTooltip(); + }), + (_proto.componentWillUnmount = function componentWillUnmount() { + if ( + (this.observer && this.observer.disconnect(), + this.isTriggeredBy('hover') || this.isTriggeredBy('click') || this.isTriggeredBy('right-click')) + ) { + var _this$context2 = this.context, + isParentNoneTriggered = _this$context2.isParentNoneTriggered, + addParentOutsideClickHandler = _this$context2.addParentOutsideClickHandler, + addParentOutsideRightClickHandler = _this$context2.addParentOutsideRightClickHandler; + this.removeOutsideClickHandler(), + this.removeOutsideRightClickHandler(), + (this.handleOutsideClick = void 0), + (this.handleOutsideRightClick = void 0), + !isParentNoneTriggered && addParentOutsideClickHandler && addParentOutsideClickHandler(), + !isParentNoneTriggered && addParentOutsideRightClickHandler && addParentOutsideRightClickHandler(); + } + }), + (_proto.render = function render() { + var _this$props3 = this.props, + arrowProps = _this$props3.arrowProps, + placement = _this$props3.placement, + tooltip = _this$props3.tooltip; + return react.createElement( + TooltipContext.Provider, + { value: this.contextValue }, + tooltip({ + arrowRef: arrowProps.ref, + getArrowProps: this.getArrowProps, + getTooltipProps: this.getTooltipProps, + placement, + tooltipRef: this.getTooltipRef, + }), + ); + }), + (_proto.isTriggeredBy = function isTriggeredBy(event) { + var trigger = this.props.trigger; + return trigger === event || (Array.isArray(trigger) && trigger.includes(event)); + }), + Tooltip + ); + })(react.Component); + Tooltip.contextType = TooltipContext; + var TooltipTrigger = (function (_Component) { + function TooltipTrigger() { + for (var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + ((_this = _Component.call.apply(_Component, [this].concat(args)) || this).state = { + tooltipShown: _this.props.defaultTooltipShown, + }), + (_this.hideTimeout = void 0), + (_this.showTimeout = void 0), + (_this.popperOffset = void 0), + (_this.setTooltipState = function (state) { + var cb = function cb() { + return _this.props.onVisibilityChange(state.tooltipShown); + }; + _this.isControlled() ? cb() : _this.setState(state, cb); + }), + (_this.clearScheduled = function () { + clearTimeout(_this.hideTimeout), clearTimeout(_this.showTimeout); + }), + (_this.showTooltip = function (_ref) { + var pageX = _ref.pageX, + pageY = _ref.pageY; + _this.clearScheduled(); + var state = { tooltipShown: !0 }; + _this.props.followCursor && (state = (0, esm_extends.Z)({}, state, { pageX, pageY })), + (_this.showTimeout = window.setTimeout(function () { + return _this.setTooltipState(state); + }, _this.props.delayShow)); + }), + (_this.hideTooltip = function () { + _this.clearScheduled(), + (_this.hideTimeout = window.setTimeout(function () { + return _this.setTooltipState({ tooltipShown: !1 }); + }, _this.props.delayHide)); + }), + (_this.toggleTooltip = function (_ref2) { + var pageX = _ref2.pageX, + pageY = _ref2.pageY, + action = _this.getState() ? 'hideTooltip' : 'showTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.clickToggle = function (event) { + event.preventDefault(); + var pageX = event.pageX, + pageY = event.pageY, + action = _this.props.followCursor ? 'showTooltip' : 'toggleTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.contextMenuToggle = function (event) { + event.preventDefault(); + var pageX = event.pageX, + pageY = event.pageY, + action = _this.props.followCursor ? 'showTooltip' : 'toggleTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.getTriggerProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)( + {}, + props, + _this.isTriggeredBy('click') && { + onClick: callAll(_this.clickToggle, props.onClick), + onTouchEnd: callAll(_this.clickToggle, props.onTouchEnd), + }, + _this.isTriggeredBy('right-click') && { + onContextMenu: callAll(_this.contextMenuToggle, props.onContextMenu), + }, + _this.isTriggeredBy('hover') && + (0, esm_extends.Z)( + { + onMouseEnter: callAll(_this.showTooltip, props.onMouseEnter), + onMouseLeave: callAll(_this.hideTooltip, props.onMouseLeave), + }, + _this.props.followCursor && { onMouseMove: callAll(_this.showTooltip, props.onMouseMove) }, + ), + _this.isTriggeredBy('focus') && { + onFocus: callAll(_this.showTooltip, props.onFocus), + onBlur: callAll(_this.hideTooltip, props.onBlur), + }, + ) + ); + }), + _this + ); + } + (0, inheritsLoose.Z)(TooltipTrigger, _Component); + var _proto = TooltipTrigger.prototype; + return ( + (_proto.componentWillUnmount = function componentWillUnmount() { + this.clearScheduled(); + }), + (_proto.render = function render() { + var _this2 = this, + _this$props = this.props, + children = _this$props.children, + tooltip = _this$props.tooltip, + placement = _this$props.placement, + trigger = _this$props.trigger, + getTriggerRef = _this$props.getTriggerRef, + modifiers = _this$props.modifiers, + closeOnReferenceHidden = _this$props.closeOnReferenceHidden, + usePortal = _this$props.usePortal, + portalContainer = _this$props.portalContainer, + followCursor = _this$props.followCursor, + getTooltipRef = _this$props.getTooltipRef, + mutationObserverOptions = _this$props.mutationObserverOptions, + restProps = (0, objectWithoutPropertiesLoose.Z)(_this$props, [ + 'children', + 'tooltip', + 'placement', + 'trigger', + 'getTriggerRef', + 'modifiers', + 'closeOnReferenceHidden', + 'usePortal', + 'portalContainer', + 'followCursor', + 'getTooltipRef', + 'mutationObserverOptions', + ]), + popper = react.createElement( + Popper, + (0, esm_extends.Z)( + { + innerRef: getTooltipRef, + placement, + modifiers: [ + { + name: 'followCursor', + enabled: followCursor, + phase: 'main', + fn: function fn(data) { + _this2.popperOffset = data.state.rects.popper; + }, + }, + ].concat(modifiers), + }, + restProps, + ), + function (_ref3) { + var ref = _ref3.ref, + style = _ref3.style, + placement = _ref3.placement, + arrowProps = _ref3.arrowProps, + isReferenceHidden = _ref3.isReferenceHidden, + update = _ref3.update; + if (followCursor && _this2.popperOffset) { + var _this2$state = _this2.state, + pageX = _this2$state.pageX, + pageY = _this2$state.pageY, + _this2$popperOffset = _this2.popperOffset, + width = _this2$popperOffset.width, + height = _this2$popperOffset.height, + x = pageX + width > window.pageXOffset + document.body.offsetWidth ? pageX - width : pageX, + y = pageY + height > window.pageYOffset + document.body.offsetHeight ? pageY - height : pageY; + style.transform = 'translate3d(' + x + 'px, ' + y + 'px, 0'; + } + return react.createElement( + Tooltip, + (0, esm_extends.Z)( + { + arrowProps, + closeOnReferenceHidden, + isReferenceHidden, + placement, + update, + style, + tooltip, + trigger, + mutationObserverOptions, + }, + { clearScheduled: _this2.clearScheduled, hideTooltip: _this2.hideTooltip, innerRef: ref }, + ), + ); + }, + ); + return react.createElement( + Manager, + null, + react.createElement(Reference, { innerRef: getTriggerRef }, function (_ref4) { + var ref = _ref4.ref; + return children({ getTriggerProps: _this2.getTriggerProps, triggerRef: ref }); + }), + this.getState() && (usePortal ? (0, react_dom.createPortal)(popper, portalContainer) : popper), + ); + }), + (_proto.isControlled = function isControlled() { + return void 0 !== this.props.tooltipShown; + }), + (_proto.getState = function getState() { + return this.isControlled() ? this.props.tooltipShown : this.state.tooltipShown; + }), + (_proto.isTriggeredBy = function isTriggeredBy(event) { + var trigger = this.props.trigger; + return trigger === event || (Array.isArray(trigger) && trigger.includes(event)); + }), + TooltipTrigger + ); + })(react.Component); + TooltipTrigger.defaultProps = { + closeOnReferenceHidden: !0, + defaultTooltipShown: !1, + delayHide: 0, + delayShow: 0, + followCursor: !1, + onVisibilityChange: function noop() {}, + placement: 'right', + portalContainer: canUseDOM() ? document.body : null, + trigger: 'hover', + usePortal: canUseDOM(), + mutationObserverOptions: { childList: !0, subtree: !0 }, + modifiers: [], + }; + const react_popper_tooltip = TooltipTrigger; + __webpack_require__(48319), __webpack_require__(77950), __webpack_require__(44112), __webpack_require__(18178); + var memoizerific = __webpack_require__(49224), + memoizerific_default = __webpack_require__.n(memoizerific), + utils = __webpack_require__(30457); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var _templateObject, + _templateObject2, + match = memoizerific_default()(1e3)(function (requests, actual, value) { + var fallback = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0; + return actual.split('-')[0] === requests ? value : fallback; + }), + Arrow = esm.styled.div( + { position: 'absolute', borderStyle: 'solid' }, + function (_ref) { + var placement = _ref.placement, + x = 0, + y = 0; + switch (!0) { + case placement.startsWith('left') || placement.startsWith('right'): + y = 8; + break; + case placement.startsWith('top') || placement.startsWith('bottom'): + x = 8; + } + return { transform: 'translate3d('.concat(x, 'px, ').concat(y, 'px, 0px)') }; + }, + function (_ref2) { + var theme = _ref2.theme, + color = _ref2.color, + placement = _ref2.placement; + return { + bottom: ''.concat(match('top', placement, -8, 'auto'), 'px'), + top: ''.concat(match('bottom', placement, -8, 'auto'), 'px'), + right: ''.concat(match('left', placement, -8, 'auto'), 'px'), + left: ''.concat(match('right', placement, -8, 'auto'), 'px'), + borderBottomWidth: ''.concat(match('top', placement, '0', 8), 'px'), + borderTopWidth: ''.concat(match('bottom', placement, '0', 8), 'px'), + borderRightWidth: ''.concat(match('left', placement, '0', 8), 'px'), + borderLeftWidth: ''.concat(match('right', placement, '0', 8), 'px'), + borderTopColor: match( + 'top', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderBottomColor: match( + 'bottom', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderLeftColor: match( + 'left', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderRightColor: match( + 'right', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + }; + }, + ), + Wrapper = esm.styled.div( + function (_ref3) { + return { display: _ref3.hidden ? 'none' : 'inline-block', zIndex: 2147483647 }; + }, + function (_ref4) { + var theme = _ref4.theme, + color = _ref4.color; + return _ref4.hasChrome + ? { + background: + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + filter: + '\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ', + borderRadius: 2 * theme.appBorderRadius, + fontSize: theme.typography.size.s1, + } + : {}; + }, + ), + Tooltip_Tooltip = function Tooltip(_ref5) { + var placement = _ref5.placement, + hasChrome = _ref5.hasChrome, + children = _ref5.children, + arrowProps = _ref5.arrowProps, + tooltipRef = _ref5.tooltipRef, + arrowRef = _ref5.arrowRef, + color = _ref5.color, + props = _objectWithoutProperties(_ref5, [ + 'placement', + 'hasChrome', + 'children', + 'arrowProps', + 'tooltipRef', + 'arrowRef', + 'color', + ]); + return react.createElement( + Wrapper, + _extends({ hasChrome, placement, ref: tooltipRef }, props, { color }), + hasChrome && react.createElement(Arrow, _extends({ placement, ref: arrowRef }, arrowProps, { color })), + children, + ); + }; + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function WithTooltip_extends() { + return ( + (WithTooltip_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + WithTooltip_extends.apply(this, arguments) + ); + } + function WithTooltip_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function WithTooltip_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + (Tooltip_Tooltip.displayName = 'Tooltip'), + (Tooltip_Tooltip.defaultProps = { + color: void 0, + arrowRef: void 0, + tooltipRef: void 0, + hasChrome: !0, + placement: 'top', + arrowProps: {}, + }); + var WithTooltip_document = window_default().document, + TargetContainer = esm.styled.div( + _templateObject || + (_templateObject = _taggedTemplateLiteral(['\n display: inline-block;\n cursor: ', ';\n'])), + function (props) { + return 'hover' === props.mode ? 'default' : 'pointer'; + }, + ), + TargetSvgContainer = esm.styled.g( + _templateObject2 || (_templateObject2 = _taggedTemplateLiteral(['\n cursor: ', ';\n'])), + function (props) { + return 'hover' === props.mode ? 'default' : 'pointer'; + }, + ), + WithTooltipPure = function WithTooltipPure(_ref) { + var svg = _ref.svg, + trigger = _ref.trigger, + placement = (_ref.closeOnClick, _ref.placement), + modifiers = _ref.modifiers, + hasChrome = _ref.hasChrome, + _tooltip = _ref.tooltip, + children = _ref.children, + tooltipShown = _ref.tooltipShown, + onVisibilityChange = _ref.onVisibilityChange, + props = WithTooltip_objectWithoutProperties(_ref, [ + 'svg', + 'trigger', + 'closeOnClick', + 'placement', + 'modifiers', + 'hasChrome', + 'tooltip', + 'children', + 'tooltipShown', + 'onVisibilityChange', + ]), + Container = svg ? TargetSvgContainer : TargetContainer; + return react.createElement( + react_popper_tooltip, + { + placement, + trigger, + modifiers, + tooltipShown, + onVisibilityChange, + tooltip: function tooltip(_ref2) { + var getTooltipProps = _ref2.getTooltipProps, + getArrowProps = _ref2.getArrowProps, + tooltipRef = _ref2.tooltipRef, + arrowRef = _ref2.arrowRef, + tooltipPlacement = _ref2.placement; + return react.createElement( + Tooltip_Tooltip, + WithTooltip_extends( + { hasChrome, placement: tooltipPlacement, tooltipRef, arrowRef, arrowProps: getArrowProps() }, + getTooltipProps(), + ), + 'function' == typeof _tooltip + ? _tooltip({ + onHide: function onHide() { + return onVisibilityChange(!1); + }, + }) + : _tooltip, + ); + }, + }, + function (_ref3) { + var getTriggerProps = _ref3.getTriggerProps, + triggerRef = _ref3.triggerRef; + return react.createElement( + Container, + WithTooltip_extends({ ref: triggerRef }, getTriggerProps(), props), + children, + ); + }, + ); + }; + (WithTooltipPure.displayName = 'WithTooltipPure'), + (WithTooltipPure.defaultProps = { + svg: !1, + trigger: 'hover', + closeOnClick: !1, + placement: 'top', + modifiers: [ + { name: 'preventOverflow', options: { padding: 8 } }, + { name: 'offset', options: { offset: [8, 8] } }, + { name: 'arrow', options: { padding: 8 } }, + ], + hasChrome: !0, + tooltipShown: !1, + }); + var WithToolTipState = function WithToolTipState(_ref4) { + var startOpen = _ref4.startOpen, + onChange = _ref4.onVisibilityChange, + rest = WithTooltip_objectWithoutProperties(_ref4, ['startOpen', 'onVisibilityChange']), + _useState2 = _slicedToArray((0, react.useState)(startOpen || !1), 2), + tooltipShown = _useState2[0], + setTooltipShown = _useState2[1], + onVisibilityChange = (0, react.useCallback)( + function (visibility) { + (onChange && !1 === onChange(visibility)) || setTooltipShown(visibility); + }, + [onChange], + ); + return ( + (0, react.useEffect)(function () { + var hide = function hide() { + return onVisibilityChange(!1); + }; + WithTooltip_document.addEventListener('keydown', hide, !1); + var iframes = Array.from(WithTooltip_document.getElementsByTagName('iframe')), + unbinders = []; + return ( + iframes.forEach(function (iframe) { + var bind = function bind() { + try { + iframe.contentWindow.document && + (iframe.contentWindow.document.addEventListener('click', hide), + unbinders.push(function () { + try { + iframe.contentWindow.document.removeEventListener('click', hide); + } catch (e) {} + })); + } catch (e) {} + }; + bind(), + iframe.addEventListener('load', bind), + unbinders.push(function () { + iframe.removeEventListener('load', bind); + }); + }), + function () { + WithTooltip_document.removeEventListener('keydown', hide), + unbinders.forEach(function (unbind) { + unbind(); + }); + } + ); + }), + react.createElement(WithTooltipPure, WithTooltip_extends({}, rest, { tooltipShown, onVisibilityChange })) + ); + }; + WithToolTipState.displayName = 'WithToolTipState'; + }, + 83577: module => { + var hasElementType = 'undefined' != typeof Element, + hasMap = 'function' == typeof Map, + hasSet = 'function' == typeof Set, + hasArrayBuffer = 'function' == typeof ArrayBuffer && !!ArrayBuffer.isView; + function equal(a, b) { + if (a === b) return !0; + if (a && b && 'object' == typeof a && 'object' == typeof b) { + if (a.constructor !== b.constructor) return !1; + var length, i, keys, it; + if (Array.isArray(a)) { + if ((length = a.length) != b.length) return !1; + for (i = length; 0 != i--; ) if (!equal(a[i], b[i])) return !1; + return !0; + } + if (hasMap && a instanceof Map && b instanceof Map) { + if (a.size !== b.size) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!b.has(i.value[0])) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!equal(i.value[1], b.get(i.value[0]))) return !1; + return !0; + } + if (hasSet && a instanceof Set && b instanceof Set) { + if (a.size !== b.size) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!b.has(i.value[0])) return !1; + return !0; + } + if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { + if ((length = a.length) != b.length) return !1; + for (i = length; 0 != i--; ) if (a[i] !== b[i]) return !1; + return !0; + } + if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; + if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); + if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); + if ((length = (keys = Object.keys(a)).length) !== Object.keys(b).length) return !1; + for (i = length; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return !1; + if (hasElementType && a instanceof Element) return !1; + for (i = length; 0 != i--; ) + if ( + (('_owner' !== keys[i] && '__v' !== keys[i] && '__o' !== keys[i]) || !a.$$typeof) && + !equal(a[keys[i]], b[keys[i]]) + ) + return !1; + return !0; + } + return a != a && b != b; + } + module.exports = function isEqual(a, b) { + try { + return equal(a, b); + } catch (error) { + if ((error.message || '').match(/stack|recursion/i)) + return console.warn('react-fast-compare cannot handle circular refs'), !1; + throw error; + } + }; + }, + 45982: module => { + 'use strict'; + var warning = function () {}, + printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + for (var key = 1; key < len; key++) args[key - 1] = arguments[key]; + var argIndex = 0, + message = + 'Warning: ' + + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + 'undefined' != typeof console && console.error(message); + try { + throw new Error(message); + } catch (x) {} + }; + (warning = function (condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) args[key - 2] = arguments[key]; + if (void 0 === format) + throw new Error('`warning(condition, format, ...args)` requires a warning message argument'); + condition || printWarning.apply(null, [format].concat(args)); + }), + (module.exports = warning); + }, + }, +]); diff --git a/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js b/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js new file mode 100644 index 00000000000000..e9f790a253f7c5 --- /dev/null +++ b/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js @@ -0,0 +1,2611 @@ +(self.webpackChunk_fluentui_react_menu = self.webpackChunk_fluentui_react_menu || []).push([ + [129], + { + '../../node_modules/@storybook/components/dist/esm/tooltip/WithTooltip.js': ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__, + ) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + WithToolTipState: () => WithToolTipState, + WithTooltip: () => WithToolTipState, + WithTooltipPure: () => WithTooltipPure, + }); + __webpack_require__('../../node_modules/core-js/modules/es.array.slice.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.freeze.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.keys.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.assign.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.description.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.to-string.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/web.dom-collections.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.function.name.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.from.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/web.dom-collections.for-each.js'); + var react = __webpack_require__('../../node_modules/react/index.js'), + esm = __webpack_require__('../../node_modules/@storybook/theming/dist/esm/index.js'), + global_window = __webpack_require__('../../node_modules/global/window.js'), + window_default = __webpack_require__.n(global_window), + objectWithoutPropertiesLoose = __webpack_require__( + '../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js', + ), + esm_extends = __webpack_require__('../../node_modules/@babel/runtime/helpers/esm/extends.js'), + inheritsLoose = __webpack_require__('../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js'), + react_dom = __webpack_require__('../../node_modules/react-dom/index.js'), + ManagerReferenceNodeContext = react.createContext(), + ManagerReferenceNodeSetterContext = react.createContext(); + function Manager(_ref) { + var children = _ref.children, + _React$useState = react.useState(null), + referenceNode = _React$useState[0], + setReferenceNode = _React$useState[1]; + return ( + react.useEffect( + function () { + return function () { + setReferenceNode(null); + }; + }, + [setReferenceNode], + ), + react.createElement( + ManagerReferenceNodeContext.Provider, + { value: referenceNode }, + react.createElement(ManagerReferenceNodeSetterContext.Provider, { value: setReferenceNode }, children), + ) + ); + } + var unwrapArray = function unwrapArray(arg) { + return Array.isArray(arg) ? arg[0] : arg; + }, + safeInvoke = function safeInvoke(fn) { + if ('function' == typeof fn) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + args[_key - 1] = arguments[_key]; + return fn.apply(void 0, args); + } + }, + setRef = function setRef(ref, node) { + if ('function' == typeof ref) return safeInvoke(ref, node); + null != ref && (ref.current = node); + }, + fromEntries = function fromEntries(entries) { + return entries.reduce(function (acc, _ref) { + var key = _ref[0], + value = _ref[1]; + return (acc[key] = value), acc; + }, {}); + }, + useIsomorphicLayoutEffect = + 'undefined' != typeof window && window.document && window.document.createElement + ? react.useLayoutEffect + : react.useEffect; + function getBoundingClientRect(element) { + var rect = element.getBoundingClientRect(); + return { + width: rect.width, + height: rect.height, + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + x: rect.left, + y: rect.top, + }; + } + function getWindow(node) { + if ('[object Window]' !== node.toString()) { + var ownerDocument = node.ownerDocument; + return (ownerDocument && ownerDocument.defaultView) || window; + } + return node; + } + function getWindowScroll(node) { + var win = getWindow(node); + return { scrollLeft: win.pageXOffset, scrollTop: win.pageYOffset }; + } + function isElement(node) { + return node instanceof getWindow(node).Element || node instanceof Element; + } + function isHTMLElement(node) { + return node instanceof getWindow(node).HTMLElement || node instanceof HTMLElement; + } + function getNodeName(element) { + return element ? (element.nodeName || '').toLowerCase() : null; + } + function getDocumentElement(element) { + return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement; + } + function getWindowScrollBarX(element) { + return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; + } + function getComputedStyle(element) { + return getWindow(element).getComputedStyle(element); + } + function isScrollParent(element) { + var _getComputedStyle = getComputedStyle(element), + overflow = _getComputedStyle.overflow, + overflowX = _getComputedStyle.overflowX, + overflowY = _getComputedStyle.overflowY; + return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); + } + function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) { + void 0 === isFixed && (isFixed = !1); + var documentElement = getDocumentElement(offsetParent), + rect = getBoundingClientRect(elementOrVirtualElement), + isOffsetParentAnElement = isHTMLElement(offsetParent), + scroll = { scrollLeft: 0, scrollTop: 0 }, + offsets = { x: 0, y: 0 }; + return ( + (isOffsetParentAnElement || (!isOffsetParentAnElement && !isFixed)) && + (('body' !== getNodeName(offsetParent) || isScrollParent(documentElement)) && + (scroll = (function getNodeScroll(node) { + return node !== getWindow(node) && isHTMLElement(node) + ? (function getHTMLElementScroll(element) { + return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop }; + })(node) + : getWindowScroll(node); + })(offsetParent)), + isHTMLElement(offsetParent) + ? (((offsets = getBoundingClientRect(offsetParent)).x += offsetParent.clientLeft), + (offsets.y += offsetParent.clientTop)) + : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), + { + x: rect.left + scroll.scrollLeft - offsets.x, + y: rect.top + scroll.scrollTop - offsets.y, + width: rect.width, + height: rect.height, + } + ); + } + function getLayoutRect(element) { + return { + x: element.offsetLeft, + y: element.offsetTop, + width: element.offsetWidth, + height: element.offsetHeight, + }; + } + function getParentNode(element) { + return 'html' === getNodeName(element) + ? element + : element.assignedSlot || element.parentNode || element.host || getDocumentElement(element); + } + function getScrollParent(node) { + return ['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0 + ? node.ownerDocument.body + : isHTMLElement(node) && isScrollParent(node) + ? node + : getScrollParent(getParentNode(node)); + } + function listScrollParents(element, list) { + void 0 === list && (list = []); + var scrollParent = getScrollParent(element), + isBody = scrollParent === element.ownerDocument.body, + win = getWindow(scrollParent), + target = isBody + ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) + : scrollParent, + updatedList = list.concat(target); + return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target))); + } + function isTableElement(element) { + return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0; + } + function getTrueOffsetParent(element) { + if (!isHTMLElement(element) || 'fixed' === getComputedStyle(element).position) return null; + var offsetParent = element.offsetParent; + if (offsetParent) { + var html = getDocumentElement(offsetParent); + if ( + 'body' === getNodeName(offsetParent) && + 'static' === getComputedStyle(offsetParent).position && + 'static' !== getComputedStyle(html).position + ) + return html; + } + return offsetParent; + } + function getOffsetParent(element) { + for ( + var window = getWindow(element), offsetParent = getTrueOffsetParent(element); + offsetParent && isTableElement(offsetParent) && 'static' === getComputedStyle(offsetParent).position; + + ) + offsetParent = getTrueOffsetParent(offsetParent); + return offsetParent && + 'body' === getNodeName(offsetParent) && + 'static' === getComputedStyle(offsetParent).position + ? window + : offsetParent || + (function getContainingBlock(element) { + for ( + var currentNode = getParentNode(element); + isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0; + + ) { + var css = getComputedStyle(currentNode); + if ( + 'none' !== css.transform || + 'none' !== css.perspective || + (css.willChange && 'auto' !== css.willChange) + ) + return currentNode; + currentNode = currentNode.parentNode; + } + return null; + })(element) || + window; + } + var enums_top = 'top', + bottom = 'bottom', + right = 'right', + left = 'left', + basePlacements = [enums_top, bottom, right, left], + variationPlacements = basePlacements.reduce(function (acc, placement) { + return acc.concat([placement + '-start', placement + '-end']); + }, []), + enums_placements = [].concat(basePlacements, ['auto']).reduce(function (acc, placement) { + return acc.concat([placement, placement + '-start', placement + '-end']); + }, []), + modifierPhases = [ + 'beforeRead', + 'read', + 'afterRead', + 'beforeMain', + 'main', + 'afterMain', + 'beforeWrite', + 'write', + 'afterWrite', + ]; + function order(modifiers) { + var map = new Map(), + visited = new Set(), + result = []; + function sort(modifier) { + visited.add(modifier.name), + [].concat(modifier.requires || [], modifier.requiresIfExists || []).forEach(function (dep) { + if (!visited.has(dep)) { + var depModifier = map.get(dep); + depModifier && sort(depModifier); + } + }), + result.push(modifier); + } + return ( + modifiers.forEach(function (modifier) { + map.set(modifier.name, modifier); + }), + modifiers.forEach(function (modifier) { + visited.has(modifier.name) || sort(modifier); + }), + result + ); + } + function format(str) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + args[_key - 1] = arguments[_key]; + return [].concat(args).reduce(function (p, c) { + return p.replace(/%s/, c); + }, str); + } + var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', + VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options']; + function getBasePlacement(placement) { + return placement.split('-')[0]; + } + var INVALID_ELEMENT_ERROR = + 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.', + DEFAULT_OPTIONS = { placement: 'bottom', modifiers: [], strategy: 'absolute' }; + function areValidElements() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return !args.some(function (element) { + return !(element && 'function' == typeof element.getBoundingClientRect); + }); + } + function popperGenerator(generatorOptions) { + void 0 === generatorOptions && (generatorOptions = {}); + var _generatorOptions = generatorOptions, + _generatorOptions$def = _generatorOptions.defaultModifiers, + defaultModifiers = void 0 === _generatorOptions$def ? [] : _generatorOptions$def, + _generatorOptions$def2 = _generatorOptions.defaultOptions, + defaultOptions = void 0 === _generatorOptions$def2 ? DEFAULT_OPTIONS : _generatorOptions$def2; + return function createPopper(reference, popper, options) { + void 0 === options && (options = defaultOptions); + var fn, + pending, + state = { + placement: 'bottom', + orderedModifiers: [], + options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions), + modifiersData: {}, + elements: { reference, popper }, + attributes: {}, + styles: {}, + }, + effectCleanupFns = [], + isDestroyed = !1, + instance = { + state, + setOptions: function setOptions(options) { + cleanupModifierEffects(), + (state.options = Object.assign( + Object.assign(Object.assign({}, defaultOptions), state.options), + options, + )), + (state.scrollParents = { + reference: isElement(reference) + ? listScrollParents(reference) + : reference.contextElement + ? listScrollParents(reference.contextElement) + : [], + popper: listScrollParents(popper), + }); + var orderedModifiers = (function orderModifiers(modifiers) { + var orderedModifiers = order(modifiers); + return modifierPhases.reduce(function (acc, phase) { + return acc.concat( + orderedModifiers.filter(function (modifier) { + return modifier.phase === phase; + }), + ); + }, []); + })( + (function mergeByName(modifiers) { + var merged = modifiers.reduce(function (merged, current) { + var existing = merged[current.name]; + return ( + (merged[current.name] = existing + ? Object.assign( + Object.assign(Object.assign({}, existing), current), + {}, + { + options: Object.assign(Object.assign({}, existing.options), current.options), + data: Object.assign(Object.assign({}, existing.data), current.data), + }, + ) + : current), + merged + ); + }, {}); + return Object.keys(merged).map(function (key) { + return merged[key]; + }); + })([].concat(defaultModifiers, state.options.modifiers)), + ); + (state.orderedModifiers = orderedModifiers.filter(function (m) { + return m.enabled; + })), + (function validateModifiers(modifiers) { + modifiers.forEach(function (modifier) { + Object.keys(modifier).forEach(function (key) { + switch (key) { + case 'name': + 'string' != typeof modifier.name && + console.error( + format( + INVALID_MODIFIER_ERROR, + String(modifier.name), + '"name"', + '"string"', + '"' + String(modifier.name) + '"', + ), + ); + break; + case 'enabled': + 'boolean' != typeof modifier.enabled && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"enabled"', + '"boolean"', + '"' + String(modifier.enabled) + '"', + ), + ); + case 'phase': + modifierPhases.indexOf(modifier.phase) < 0 && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"phase"', + 'either ' + modifierPhases.join(', '), + '"' + String(modifier.phase) + '"', + ), + ); + break; + case 'fn': + 'function' != typeof modifier.fn && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"fn"', + '"function"', + '"' + String(modifier.fn) + '"', + ), + ); + break; + case 'effect': + 'function' != typeof modifier.effect && + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"effect"', + '"function"', + '"' + String(modifier.fn) + '"', + ), + ); + break; + case 'requires': + Array.isArray(modifier.requires) || + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"requires"', + '"array"', + '"' + String(modifier.requires) + '"', + ), + ); + break; + case 'requiresIfExists': + Array.isArray(modifier.requiresIfExists) || + console.error( + format( + INVALID_MODIFIER_ERROR, + modifier.name, + '"requiresIfExists"', + '"array"', + '"' + String(modifier.requiresIfExists) + '"', + ), + ); + break; + case 'options': + case 'data': + break; + default: + console.error( + 'PopperJS: an invalid property has been provided to the "' + + modifier.name + + '" modifier, valid properties are ' + + VALID_PROPERTIES.map(function (s) { + return '"' + s + '"'; + }).join(', ') + + '; but "' + + key + + '" was provided.', + ); + } + modifier.requires && + modifier.requires.forEach(function (requirement) { + null == + modifiers.find(function (mod) { + return mod.name === requirement; + }) && + console.error( + format( + 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', + String(modifier.name), + requirement, + requirement, + ), + ); + }); + }); + }); + })( + (function uniqueBy(arr, fn) { + var identifiers = new Set(); + return arr.filter(function (item) { + var identifier = fn(item); + if (!identifiers.has(identifier)) return identifiers.add(identifier), !0; + }); + })([].concat(orderedModifiers, state.options.modifiers), function (_ref) { + return _ref.name; + }), + ), + 'auto' === getBasePlacement(state.options.placement) && + (state.orderedModifiers.find(function (_ref2) { + return 'flip' === _ref2.name; + }) || + console.error( + [ + 'Popper: "auto" placements require the "flip" modifier be', + 'present and enabled to work.', + ].join(' '), + )); + var _getComputedStyle = getComputedStyle(popper); + return ( + [ + _getComputedStyle.marginTop, + _getComputedStyle.marginRight, + _getComputedStyle.marginBottom, + _getComputedStyle.marginLeft, + ].some(function (margin) { + return parseFloat(margin); + }) && + console.warn( + [ + 'Popper: CSS "margin" styles cannot be used to apply padding', + 'between the popper and its reference element or boundary.', + 'To replicate margin, use the `offset` modifier, as well as', + 'the `padding` option in the `preventOverflow` and `flip`', + 'modifiers.', + ].join(' '), + ), + (function runModifierEffects() { + state.orderedModifiers.forEach(function (_ref3) { + var name = _ref3.name, + _ref3$options = _ref3.options, + options = void 0 === _ref3$options ? {} : _ref3$options, + effect = _ref3.effect; + if ('function' == typeof effect) { + var cleanupFn = effect({ state, name, instance, options }), + noopFn = function noopFn() {}; + effectCleanupFns.push(cleanupFn || noopFn); + } + }); + })(), + instance.update() + ); + }, + forceUpdate: function forceUpdate() { + if (!isDestroyed) { + var _state$elements = state.elements, + reference = _state$elements.reference, + popper = _state$elements.popper; + if (areValidElements(reference, popper)) { + (state.rects = { + reference: getCompositeRect( + reference, + getOffsetParent(popper), + 'fixed' === state.options.strategy, + ), + popper: getLayoutRect(popper), + }), + (state.reset = !1), + (state.placement = state.options.placement), + state.orderedModifiers.forEach(function (modifier) { + return (state.modifiersData[modifier.name] = Object.assign({}, modifier.data)); + }); + for (var __debug_loops__ = 0, index = 0; index < state.orderedModifiers.length; index++) { + if ((__debug_loops__ += 1) > 100) { + console.error( + 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.', + ); + break; + } + if (!0 !== state.reset) { + var _state$orderedModifie = state.orderedModifiers[index], + fn = _state$orderedModifie.fn, + _state$orderedModifie2 = _state$orderedModifie.options, + _options = void 0 === _state$orderedModifie2 ? {} : _state$orderedModifie2, + name = _state$orderedModifie.name; + 'function' == typeof fn && (state = fn({ state, options: _options, name, instance }) || state); + } else (state.reset = !1), (index = -1); + } + } else console.error(INVALID_ELEMENT_ERROR); + } + }, + update: + ((fn = function () { + return new Promise(function (resolve) { + instance.forceUpdate(), resolve(state); + }); + }), + function () { + return ( + pending || + (pending = new Promise(function (resolve) { + Promise.resolve().then(function () { + (pending = void 0), resolve(fn()); + }); + })), + pending + ); + }), + destroy: function destroy() { + cleanupModifierEffects(), (isDestroyed = !0); + }, + }; + if (!areValidElements(reference, popper)) return console.error(INVALID_ELEMENT_ERROR), instance; + function cleanupModifierEffects() { + effectCleanupFns.forEach(function (fn) { + return fn(); + }), + (effectCleanupFns = []); + } + return ( + instance.setOptions(options).then(function (state) { + !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state); + }), + instance + ); + }; + } + var passive = { passive: !0 }; + const eventListeners = { + name: 'eventListeners', + enabled: !0, + phase: 'write', + fn: function fn() {}, + effect: function effect(_ref) { + var state = _ref.state, + instance = _ref.instance, + options = _ref.options, + _options$scroll = options.scroll, + scroll = void 0 === _options$scroll || _options$scroll, + _options$resize = options.resize, + resize = void 0 === _options$resize || _options$resize, + window = getWindow(state.elements.popper), + scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper); + return ( + scroll && + scrollParents.forEach(function (scrollParent) { + scrollParent.addEventListener('scroll', instance.update, passive); + }), + resize && window.addEventListener('resize', instance.update, passive), + function () { + scroll && + scrollParents.forEach(function (scrollParent) { + scrollParent.removeEventListener('scroll', instance.update, passive); + }), + resize && window.removeEventListener('resize', instance.update, passive); + } + ); + }, + data: {}, + }; + function getVariation(placement) { + return placement.split('-')[1]; + } + function getMainAxisFromPlacement(placement) { + return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; + } + function computeOffsets(_ref) { + var offsets, + reference = _ref.reference, + element = _ref.element, + placement = _ref.placement, + basePlacement = placement ? getBasePlacement(placement) : null, + variation = placement ? getVariation(placement) : null, + commonX = reference.x + reference.width / 2 - element.width / 2, + commonY = reference.y + reference.height / 2 - element.height / 2; + switch (basePlacement) { + case enums_top: + offsets = { x: commonX, y: reference.y - element.height }; + break; + case bottom: + offsets = { x: commonX, y: reference.y + reference.height }; + break; + case right: + offsets = { x: reference.x + reference.width, y: commonY }; + break; + case left: + offsets = { x: reference.x - element.width, y: commonY }; + break; + default: + offsets = { x: reference.x, y: reference.y }; + } + var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null; + if (null != mainAxis) { + var len = 'y' === mainAxis ? 'height' : 'width'; + switch (variation) { + case 'start': + offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2); + break; + case 'end': + offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2); + } + } + return offsets; + } + const modifiers_popperOffsets = { + name: 'popperOffsets', + enabled: !0, + phase: 'read', + fn: function popperOffsets(_ref) { + var state = _ref.state, + name = _ref.name; + state.modifiersData[name] = computeOffsets({ + reference: state.rects.reference, + element: state.rects.popper, + strategy: 'absolute', + placement: state.placement, + }); + }, + data: {}, + }; + var round = Math.round, + unsetSides = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }; + function mapToStyles(_ref2) { + var _Object$assign2, + popper = _ref2.popper, + popperRect = _ref2.popperRect, + placement = _ref2.placement, + offsets = _ref2.offsets, + position = _ref2.position, + gpuAcceleration = _ref2.gpuAcceleration, + adaptive = _ref2.adaptive, + roundOffsets = _ref2.roundOffsets, + _ref3 = + !0 === roundOffsets + ? (function roundOffsetsByDPR(_ref) { + var x = _ref.x, + y = _ref.y, + dpr = window.devicePixelRatio || 1; + return { x: round(round(x * dpr) / dpr) || 0, y: round(round(y * dpr) / dpr) || 0 }; + })(offsets) + : 'function' == typeof roundOffsets + ? roundOffsets(offsets) + : offsets, + _ref3$x = _ref3.x, + x = void 0 === _ref3$x ? 0 : _ref3$x, + _ref3$y = _ref3.y, + y = void 0 === _ref3$y ? 0 : _ref3$y, + hasX = offsets.hasOwnProperty('x'), + hasY = offsets.hasOwnProperty('y'), + sideX = left, + sideY = enums_top, + win = window; + if (adaptive) { + var offsetParent = getOffsetParent(popper); + offsetParent === getWindow(popper) && (offsetParent = getDocumentElement(popper)), + placement === enums_top && + ((sideY = bottom), (y -= offsetParent.clientHeight - popperRect.height), (y *= gpuAcceleration ? 1 : -1)), + placement === left && + ((sideX = right), (x -= offsetParent.clientWidth - popperRect.width), (x *= gpuAcceleration ? 1 : -1)); + } + var _Object$assign, + commonStyles = Object.assign({ position }, adaptive && unsetSides); + return gpuAcceleration + ? Object.assign( + Object.assign({}, commonStyles), + {}, + (((_Object$assign = {})[sideY] = hasY ? '0' : ''), + (_Object$assign[sideX] = hasX ? '0' : ''), + (_Object$assign.transform = + (win.devicePixelRatio || 1) < 2 + ? 'translate(' + x + 'px, ' + y + 'px)' + : 'translate3d(' + x + 'px, ' + y + 'px, 0)'), + _Object$assign), + ) + : Object.assign( + Object.assign({}, commonStyles), + {}, + (((_Object$assign2 = {})[sideY] = hasY ? y + 'px' : ''), + (_Object$assign2[sideX] = hasX ? x + 'px' : ''), + (_Object$assign2.transform = ''), + _Object$assign2), + ); + } + const modifiers_offset = { + name: 'offset', + enabled: !0, + phase: 'main', + requires: ['popperOffsets'], + fn: function offset(_ref2) { + var state = _ref2.state, + options = _ref2.options, + name = _ref2.name, + _options$offset = options.offset, + offset = void 0 === _options$offset ? [0, 0] : _options$offset, + data = enums_placements.reduce(function (acc, placement) { + return ( + (acc[placement] = (function distanceAndSkiddingToXY(placement, rects, offset) { + var basePlacement = getBasePlacement(placement), + invertDistance = [left, enums_top].indexOf(basePlacement) >= 0 ? -1 : 1, + _ref = + 'function' == typeof offset + ? offset(Object.assign(Object.assign({}, rects), {}, { placement })) + : offset, + skidding = _ref[0], + distance = _ref[1]; + return ( + (skidding = skidding || 0), + (distance = (distance || 0) * invertDistance), + [left, right].indexOf(basePlacement) >= 0 + ? { x: distance, y: skidding } + : { x: skidding, y: distance } + ); + })(placement, state.rects, offset)), + acc + ); + }, {}), + _data$state$placement = data[state.placement], + x = _data$state$placement.x, + y = _data$state$placement.y; + null != state.modifiersData.popperOffsets && + ((state.modifiersData.popperOffsets.x += x), (state.modifiersData.popperOffsets.y += y)), + (state.modifiersData[name] = data); + }, + }; + var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; + function getOppositePlacement(placement) { + return placement.replace(/left|right|bottom|top/g, function (matched) { + return hash[matched]; + }); + } + var getOppositeVariationPlacement_hash = { start: 'end', end: 'start' }; + function getOppositeVariationPlacement(placement) { + return placement.replace(/start|end/g, function (matched) { + return getOppositeVariationPlacement_hash[matched]; + }); + } + function contains(parent, child) { + var rootNode = child.getRootNode && child.getRootNode(); + if (parent.contains(child)) return !0; + if ( + rootNode && + (function isShadowRoot(node) { + return node instanceof getWindow(node).ShadowRoot || node instanceof ShadowRoot; + })(rootNode) + ) { + var next = child; + do { + if (next && parent.isSameNode(next)) return !0; + next = next.parentNode || next.host; + } while (next); + } + return !1; + } + function rectToClientRect(rect) { + return Object.assign( + Object.assign({}, rect), + {}, + { left: rect.x, top: rect.y, right: rect.x + rect.width, bottom: rect.y + rect.height }, + ); + } + function getClientRectFromMixedType(element, clippingParent) { + return 'viewport' === clippingParent + ? rectToClientRect( + (function getViewportRect(element) { + var win = getWindow(element), + html = getDocumentElement(element), + visualViewport = win.visualViewport, + width = html.clientWidth, + height = html.clientHeight, + x = 0, + y = 0; + return ( + visualViewport && + ((width = visualViewport.width), + (height = visualViewport.height), + /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || + ((x = visualViewport.offsetLeft), (y = visualViewport.offsetTop))), + { width, height, x: x + getWindowScrollBarX(element), y } + ); + })(element), + ) + : isHTMLElement(clippingParent) + ? (function getInnerBoundingClientRect(element) { + var rect = getBoundingClientRect(element); + return ( + (rect.top = rect.top + element.clientTop), + (rect.left = rect.left + element.clientLeft), + (rect.bottom = rect.top + element.clientHeight), + (rect.right = rect.left + element.clientWidth), + (rect.width = element.clientWidth), + (rect.height = element.clientHeight), + (rect.x = rect.left), + (rect.y = rect.top), + rect + ); + })(clippingParent) + : rectToClientRect( + (function getDocumentRect(element) { + var html = getDocumentElement(element), + winScroll = getWindowScroll(element), + body = element.ownerDocument.body, + width = Math.max( + html.scrollWidth, + html.clientWidth, + body ? body.scrollWidth : 0, + body ? body.clientWidth : 0, + ), + height = Math.max( + html.scrollHeight, + html.clientHeight, + body ? body.scrollHeight : 0, + body ? body.clientHeight : 0, + ), + x = -winScroll.scrollLeft + getWindowScrollBarX(element), + y = -winScroll.scrollTop; + return ( + 'rtl' === getComputedStyle(body || html).direction && + (x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width), + { width, height, x, y } + ); + })(getDocumentElement(element)), + ); + } + function getClippingRect(element, boundary, rootBoundary) { + var mainClippingParents = + 'clippingParents' === boundary + ? (function getClippingParents(element) { + var clippingParents = listScrollParents(getParentNode(element)), + clipperElement = + ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0 && isHTMLElement(element) + ? getOffsetParent(element) + : element; + return isElement(clipperElement) + ? clippingParents.filter(function (clippingParent) { + return ( + isElement(clippingParent) && + contains(clippingParent, clipperElement) && + 'body' !== getNodeName(clippingParent) + ); + }) + : []; + })(element) + : [].concat(boundary), + clippingParents = [].concat(mainClippingParents, [rootBoundary]), + firstClippingParent = clippingParents[0], + clippingRect = clippingParents.reduce(function (accRect, clippingParent) { + var rect = getClientRectFromMixedType(element, clippingParent); + return ( + (accRect.top = Math.max(rect.top, accRect.top)), + (accRect.right = Math.min(rect.right, accRect.right)), + (accRect.bottom = Math.min(rect.bottom, accRect.bottom)), + (accRect.left = Math.max(rect.left, accRect.left)), + accRect + ); + }, getClientRectFromMixedType(element, firstClippingParent)); + return ( + (clippingRect.width = clippingRect.right - clippingRect.left), + (clippingRect.height = clippingRect.bottom - clippingRect.top), + (clippingRect.x = clippingRect.left), + (clippingRect.y = clippingRect.top), + clippingRect + ); + } + function mergePaddingObject(paddingObject) { + return Object.assign(Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }), paddingObject); + } + function expandToHashMap(value, keys) { + return keys.reduce(function (hashMap, key) { + return (hashMap[key] = value), hashMap; + }, {}); + } + function detectOverflow(state, options) { + void 0 === options && (options = {}); + var _options = options, + _options$placement = _options.placement, + placement = void 0 === _options$placement ? state.placement : _options$placement, + _options$boundary = _options.boundary, + boundary = void 0 === _options$boundary ? 'clippingParents' : _options$boundary, + _options$rootBoundary = _options.rootBoundary, + rootBoundary = void 0 === _options$rootBoundary ? 'viewport' : _options$rootBoundary, + _options$elementConte = _options.elementContext, + elementContext = void 0 === _options$elementConte ? 'popper' : _options$elementConte, + _options$altBoundary = _options.altBoundary, + altBoundary = void 0 !== _options$altBoundary && _options$altBoundary, + _options$padding = _options.padding, + padding = void 0 === _options$padding ? 0 : _options$padding, + paddingObject = mergePaddingObject( + 'number' != typeof padding ? padding : expandToHashMap(padding, basePlacements), + ), + altContext = 'popper' === elementContext ? 'reference' : 'popper', + referenceElement = state.elements.reference, + popperRect = state.rects.popper, + element = state.elements[altBoundary ? altContext : elementContext], + clippingClientRect = getClippingRect( + isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), + boundary, + rootBoundary, + ), + referenceClientRect = getBoundingClientRect(referenceElement), + popperOffsets = computeOffsets({ + reference: referenceClientRect, + element: popperRect, + strategy: 'absolute', + placement, + }), + popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets)), + elementClientRect = 'popper' === elementContext ? popperClientRect : referenceClientRect, + overflowOffsets = { + top: clippingClientRect.top - elementClientRect.top + paddingObject.top, + bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom, + left: clippingClientRect.left - elementClientRect.left + paddingObject.left, + right: elementClientRect.right - clippingClientRect.right + paddingObject.right, + }, + offsetData = state.modifiersData.offset; + if ('popper' === elementContext && offsetData) { + var offset = offsetData[placement]; + Object.keys(overflowOffsets).forEach(function (key) { + var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, + axis = [enums_top, bottom].indexOf(key) >= 0 ? 'y' : 'x'; + overflowOffsets[key] += offset[axis] * multiply; + }); + } + return overflowOffsets; + } + function within(min, value, max) { + return Math.max(min, Math.min(value, max)); + } + const modifiers_preventOverflow = { + name: 'preventOverflow', + enabled: !0, + phase: 'main', + fn: function preventOverflow(_ref) { + var state = _ref.state, + options = _ref.options, + name = _ref.name, + _options$mainAxis = options.mainAxis, + checkMainAxis = void 0 === _options$mainAxis || _options$mainAxis, + _options$altAxis = options.altAxis, + checkAltAxis = void 0 !== _options$altAxis && _options$altAxis, + boundary = options.boundary, + rootBoundary = options.rootBoundary, + altBoundary = options.altBoundary, + padding = options.padding, + _options$tether = options.tether, + tether = void 0 === _options$tether || _options$tether, + _options$tetherOffset = options.tetherOffset, + tetherOffset = void 0 === _options$tetherOffset ? 0 : _options$tetherOffset, + overflow = detectOverflow(state, { boundary, rootBoundary, padding, altBoundary }), + basePlacement = getBasePlacement(state.placement), + variation = getVariation(state.placement), + isBasePlacement = !variation, + mainAxis = getMainAxisFromPlacement(basePlacement), + altAxis = (function getAltAxis(axis) { + return 'x' === axis ? 'y' : 'x'; + })(mainAxis), + popperOffsets = state.modifiersData.popperOffsets, + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + tetherOffsetValue = + 'function' == typeof tetherOffset + ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, { placement: state.placement })) + : tetherOffset, + data = { x: 0, y: 0 }; + if (popperOffsets) { + if (checkMainAxis) { + var mainSide = 'y' === mainAxis ? enums_top : left, + altSide = 'y' === mainAxis ? bottom : right, + len = 'y' === mainAxis ? 'height' : 'width', + offset = popperOffsets[mainAxis], + min = popperOffsets[mainAxis] + overflow[mainSide], + max = popperOffsets[mainAxis] - overflow[altSide], + additive = tether ? -popperRect[len] / 2 : 0, + minLen = 'start' === variation ? referenceRect[len] : popperRect[len], + maxLen = 'start' === variation ? -popperRect[len] : -referenceRect[len], + arrowElement = state.elements.arrow, + arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : { width: 0, height: 0 }, + arrowPaddingObject = state.modifiersData['arrow#persistent'] + ? state.modifiersData['arrow#persistent'].padding + : { top: 0, right: 0, bottom: 0, left: 0 }, + arrowPaddingMin = arrowPaddingObject[mainSide], + arrowPaddingMax = arrowPaddingObject[altSide], + arrowLen = within(0, referenceRect[len], arrowRect[len]), + minOffset = isBasePlacement + ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue + : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue, + maxOffset = isBasePlacement + ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue + : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue, + arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow), + clientOffset = arrowOffsetParent + ? 'y' === mainAxis + ? arrowOffsetParent.clientTop || 0 + : arrowOffsetParent.clientLeft || 0 + : 0, + offsetModifierValue = state.modifiersData.offset + ? state.modifiersData.offset[state.placement][mainAxis] + : 0, + tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset, + tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue, + preventedOffset = within( + tether ? Math.min(min, tetherMin) : min, + offset, + tether ? Math.max(max, tetherMax) : max, + ); + (popperOffsets[mainAxis] = preventedOffset), (data[mainAxis] = preventedOffset - offset); + } + if (checkAltAxis) { + var _mainSide = 'x' === mainAxis ? enums_top : left, + _altSide = 'x' === mainAxis ? bottom : right, + _offset = popperOffsets[altAxis], + _preventedOffset = within(_offset + overflow[_mainSide], _offset, _offset - overflow[_altSide]); + (popperOffsets[altAxis] = _preventedOffset), (data[altAxis] = _preventedOffset - _offset); + } + state.modifiersData[name] = data; + } + }, + requiresIfExists: ['offset'], + }; + const modifiers_arrow = { + name: 'arrow', + enabled: !0, + phase: 'main', + fn: function arrow(_ref) { + var _state$modifiersData$, + state = _ref.state, + name = _ref.name, + arrowElement = state.elements.arrow, + popperOffsets = state.modifiersData.popperOffsets, + basePlacement = getBasePlacement(state.placement), + axis = getMainAxisFromPlacement(basePlacement), + len = [left, right].indexOf(basePlacement) >= 0 ? 'height' : 'width'; + if (arrowElement && popperOffsets) { + var paddingObject = state.modifiersData[name + '#persistent'].padding, + arrowRect = getLayoutRect(arrowElement), + minProp = 'y' === axis ? enums_top : left, + maxProp = 'y' === axis ? bottom : right, + endDiff = + state.rects.reference[len] + + state.rects.reference[axis] - + popperOffsets[axis] - + state.rects.popper[len], + startDiff = popperOffsets[axis] - state.rects.reference[axis], + arrowOffsetParent = getOffsetParent(arrowElement), + clientSize = arrowOffsetParent + ? 'y' === axis + ? arrowOffsetParent.clientHeight || 0 + : arrowOffsetParent.clientWidth || 0 + : 0, + centerToReference = endDiff / 2 - startDiff / 2, + min = paddingObject[minProp], + max = clientSize - arrowRect[len] - paddingObject[maxProp], + center = clientSize / 2 - arrowRect[len] / 2 + centerToReference, + offset = within(min, center, max), + axisProp = axis; + state.modifiersData[name] = + (((_state$modifiersData$ = {})[axisProp] = offset), + (_state$modifiersData$.centerOffset = offset - center), + _state$modifiersData$); + } + }, + effect: function arrow_effect(_ref2) { + var state = _ref2.state, + options = _ref2.options, + name = _ref2.name, + _options$element = options.element, + arrowElement = void 0 === _options$element ? '[data-popper-arrow]' : _options$element, + _options$padding = options.padding, + padding = void 0 === _options$padding ? 0 : _options$padding; + null != arrowElement && + ('string' != typeof arrowElement || (arrowElement = state.elements.popper.querySelector(arrowElement))) && + (isHTMLElement(arrowElement) || + console.error( + [ + 'Popper: "arrow" element must be an HTMLElement (not an SVGElement).', + 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', + 'the arrow.', + ].join(' '), + ), + contains(state.elements.popper, arrowElement) + ? ((state.elements.arrow = arrowElement), + (state.modifiersData[name + '#persistent'] = { + padding: mergePaddingObject( + 'number' != typeof padding ? padding : expandToHashMap(padding, basePlacements), + ), + })) + : console.error( + ['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '), + )); + }, + requires: ['popperOffsets'], + requiresIfExists: ['preventOverflow'], + }; + function getSideOffsets(overflow, rect, preventedOffsets) { + return ( + void 0 === preventedOffsets && (preventedOffsets = { x: 0, y: 0 }), + { + top: overflow.top - rect.height - preventedOffsets.y, + right: overflow.right - rect.width + preventedOffsets.x, + bottom: overflow.bottom - rect.height + preventedOffsets.y, + left: overflow.left - rect.width - preventedOffsets.x, + } + ); + } + function isAnySideFullyClipped(overflow) { + return [enums_top, right, bottom, left].some(function (side) { + return overflow[side] >= 0; + }); + } + var popper_createPopper = popperGenerator({ + defaultModifiers: [ + eventListeners, + modifiers_popperOffsets, + { + name: 'computeStyles', + enabled: !0, + phase: 'beforeWrite', + fn: function computeStyles(_ref4) { + var state = _ref4.state, + options = _ref4.options, + _options$gpuAccelerat = options.gpuAcceleration, + gpuAcceleration = void 0 === _options$gpuAccelerat || _options$gpuAccelerat, + _options$adaptive = options.adaptive, + adaptive = void 0 === _options$adaptive || _options$adaptive, + _options$roundOffsets = options.roundOffsets, + roundOffsets = void 0 === _options$roundOffsets || _options$roundOffsets, + transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || ''; + adaptive && + ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) { + return transitionProperty.indexOf(property) >= 0; + }) && + console.warn( + [ + 'Popper: Detected CSS transitions on at least one of the following', + 'CSS properties: "transform", "top", "right", "bottom", "left".', + '\n\n', + 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', + 'for smooth transitions, or remove these properties from the CSS', + 'transition declaration on the popper element if only transitioning', + 'opacity or background-color for example.', + '\n\n', + 'We recommend using the popper element as a wrapper around an inner', + 'element that can have any CSS property transitioned for animations.', + ].join(' '), + ); + var commonStyles = { + placement: getBasePlacement(state.placement), + popper: state.elements.popper, + popperRect: state.rects.popper, + gpuAcceleration, + }; + null != state.modifiersData.popperOffsets && + (state.styles.popper = Object.assign( + Object.assign({}, state.styles.popper), + mapToStyles( + Object.assign( + Object.assign({}, commonStyles), + {}, + { + offsets: state.modifiersData.popperOffsets, + position: state.options.strategy, + adaptive, + roundOffsets, + }, + ), + ), + )), + null != state.modifiersData.arrow && + (state.styles.arrow = Object.assign( + Object.assign({}, state.styles.arrow), + mapToStyles( + Object.assign( + Object.assign({}, commonStyles), + {}, + { offsets: state.modifiersData.arrow, position: 'absolute', adaptive: !1, roundOffsets }, + ), + ), + )), + (state.attributes.popper = Object.assign( + Object.assign({}, state.attributes.popper), + {}, + { 'data-popper-placement': state.placement }, + )); + }, + data: {}, + }, + { + name: 'applyStyles', + enabled: !0, + phase: 'write', + fn: function applyStyles(_ref) { + var state = _ref.state; + Object.keys(state.elements).forEach(function (name) { + var style = state.styles[name] || {}, + attributes = state.attributes[name] || {}, + element = state.elements[name]; + isHTMLElement(element) && + getNodeName(element) && + (Object.assign(element.style, style), + Object.keys(attributes).forEach(function (name) { + var value = attributes[name]; + !1 === value + ? element.removeAttribute(name) + : element.setAttribute(name, !0 === value ? '' : value); + })); + }); + }, + effect: function applyStyles_effect(_ref2) { + var state = _ref2.state, + initialStyles = { + popper: { position: state.options.strategy, left: '0', top: '0', margin: '0' }, + arrow: { position: 'absolute' }, + reference: {}, + }; + return ( + Object.assign(state.elements.popper.style, initialStyles.popper), + state.elements.arrow && Object.assign(state.elements.arrow.style, initialStyles.arrow), + function () { + Object.keys(state.elements).forEach(function (name) { + var element = state.elements[name], + attributes = state.attributes[name] || {}, + style = Object.keys( + state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name], + ).reduce(function (style, property) { + return (style[property] = ''), style; + }, {}); + isHTMLElement(element) && + getNodeName(element) && + (Object.assign(element.style, style), + Object.keys(attributes).forEach(function (attribute) { + element.removeAttribute(attribute); + })); + }); + } + ); + }, + requires: ['computeStyles'], + }, + modifiers_offset, + { + name: 'flip', + enabled: !0, + phase: 'main', + fn: function flip(_ref) { + var state = _ref.state, + options = _ref.options, + name = _ref.name; + if (!state.modifiersData[name]._skip) { + for ( + var _options$mainAxis = options.mainAxis, + checkMainAxis = void 0 === _options$mainAxis || _options$mainAxis, + _options$altAxis = options.altAxis, + checkAltAxis = void 0 === _options$altAxis || _options$altAxis, + specifiedFallbackPlacements = options.fallbackPlacements, + padding = options.padding, + boundary = options.boundary, + rootBoundary = options.rootBoundary, + altBoundary = options.altBoundary, + _options$flipVariatio = options.flipVariations, + flipVariations = void 0 === _options$flipVariatio || _options$flipVariatio, + allowedAutoPlacements = options.allowedAutoPlacements, + preferredPlacement = state.options.placement, + basePlacement = getBasePlacement(preferredPlacement), + fallbackPlacements = + specifiedFallbackPlacements || + (basePlacement === preferredPlacement || !flipVariations + ? [getOppositePlacement(preferredPlacement)] + : (function getExpandedFallbackPlacements(placement) { + if ('auto' === getBasePlacement(placement)) return []; + var oppositePlacement = getOppositePlacement(placement); + return [ + getOppositeVariationPlacement(placement), + oppositePlacement, + getOppositeVariationPlacement(oppositePlacement), + ]; + })(preferredPlacement)), + placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) { + return acc.concat( + 'auto' === getBasePlacement(placement) + ? (function computeAutoPlacement(state, options) { + void 0 === options && (options = {}); + var _options = options, + placement = _options.placement, + boundary = _options.boundary, + rootBoundary = _options.rootBoundary, + padding = _options.padding, + flipVariations = _options.flipVariations, + _options$allowedAutoP = _options.allowedAutoPlacements, + allowedAutoPlacements = + void 0 === _options$allowedAutoP ? enums_placements : _options$allowedAutoP, + variation = getVariation(placement), + placements = variation + ? flipVariations + ? variationPlacements + : variationPlacements.filter(function (placement) { + return getVariation(placement) === variation; + }) + : basePlacements, + allowedPlacements = placements.filter(function (placement) { + return allowedAutoPlacements.indexOf(placement) >= 0; + }); + 0 === allowedPlacements.length && + ((allowedPlacements = placements), + console.error( + [ + 'Popper: The `allowedAutoPlacements` option did not allow any', + 'placements. Ensure the `placement` option matches the variation', + 'of the allowed placements.', + 'For example, "auto" cannot be used to allow "bottom-start".', + 'Use "auto-start" instead.', + ].join(' '), + )); + var overflows = allowedPlacements.reduce(function (acc, placement) { + return ( + (acc[placement] = detectOverflow(state, { + placement, + boundary, + rootBoundary, + padding, + })[getBasePlacement(placement)]), + acc + ); + }, {}); + return Object.keys(overflows).sort(function (a, b) { + return overflows[a] - overflows[b]; + }); + })(state, { + placement, + boundary, + rootBoundary, + padding, + flipVariations, + allowedAutoPlacements, + }) + : placement, + ); + }, []), + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + checksMap = new Map(), + makeFallbackChecks = !0, + firstFittingPlacement = placements[0], + i = 0; + i < placements.length; + i++ + ) { + var placement = placements[i], + _basePlacement = getBasePlacement(placement), + isStartVariation = 'start' === getVariation(placement), + isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0, + len = isVertical ? 'width' : 'height', + overflow = detectOverflow(state, { placement, boundary, rootBoundary, altBoundary, padding }), + mainVariationSide = isVertical + ? isStartVariation + ? right + : left + : isStartVariation + ? bottom + : enums_top; + referenceRect[len] > popperRect[len] && + (mainVariationSide = getOppositePlacement(mainVariationSide)); + var altVariationSide = getOppositePlacement(mainVariationSide), + checks = []; + if ( + (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), + checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), + checks.every(function (check) { + return check; + })) + ) { + (firstFittingPlacement = placement), (makeFallbackChecks = !1); + break; + } + checksMap.set(placement, checks); + } + if (makeFallbackChecks) + for ( + var _loop = function _loop(_i) { + var fittingPlacement = placements.find(function (placement) { + var checks = checksMap.get(placement); + if (checks) + return checks.slice(0, _i).every(function (check) { + return check; + }); + }); + if (fittingPlacement) return (firstFittingPlacement = fittingPlacement), 'break'; + }, + _i = flipVariations ? 3 : 1; + _i > 0; + _i-- + ) { + if ('break' === _loop(_i)) break; + } + state.placement !== firstFittingPlacement && + ((state.modifiersData[name]._skip = !0), + (state.placement = firstFittingPlacement), + (state.reset = !0)); + } + }, + requiresIfExists: ['offset'], + data: { _skip: !1 }, + }, + modifiers_preventOverflow, + modifiers_arrow, + { + name: 'hide', + enabled: !0, + phase: 'main', + requiresIfExists: ['preventOverflow'], + fn: function hide(_ref) { + var state = _ref.state, + name = _ref.name, + referenceRect = state.rects.reference, + popperRect = state.rects.popper, + preventedOffsets = state.modifiersData.preventOverflow, + referenceOverflow = detectOverflow(state, { elementContext: 'reference' }), + popperAltOverflow = detectOverflow(state, { altBoundary: !0 }), + referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), + popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), + isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), + hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); + (state.modifiersData[name] = { + referenceClippingOffsets, + popperEscapeOffsets, + isReferenceHidden, + hasPopperEscaped, + }), + (state.attributes.popper = Object.assign( + Object.assign({}, state.attributes.popper), + {}, + { 'data-popper-reference-hidden': isReferenceHidden, 'data-popper-escaped': hasPopperEscaped }, + )); + }, + }, + ], + }), + react_fast_compare = __webpack_require__( + '../../node_modules/react-popper-tooltip/node_modules/react-fast-compare/index.js', + ), + react_fast_compare_default = __webpack_require__.n(react_fast_compare), + EMPTY_MODIFIERS = [], + NOOP = function NOOP() {}, + NOOP_PROMISE = function NOOP_PROMISE() { + return Promise.resolve(null); + }, + Popper_EMPTY_MODIFIERS = []; + function Popper(_ref) { + var _ref$placement = _ref.placement, + placement = void 0 === _ref$placement ? 'bottom' : _ref$placement, + _ref$strategy = _ref.strategy, + strategy = void 0 === _ref$strategy ? 'absolute' : _ref$strategy, + _ref$modifiers = _ref.modifiers, + modifiers = void 0 === _ref$modifiers ? Popper_EMPTY_MODIFIERS : _ref$modifiers, + referenceElement = _ref.referenceElement, + onFirstUpdate = _ref.onFirstUpdate, + innerRef = _ref.innerRef, + children = _ref.children, + referenceNode = react.useContext(ManagerReferenceNodeContext), + _React$useState = react.useState(null), + popperElement = _React$useState[0], + setPopperElement = _React$useState[1], + _React$useState2 = react.useState(null), + arrowElement = _React$useState2[0], + setArrowElement = _React$useState2[1]; + react.useEffect( + function () { + setRef(innerRef, popperElement); + }, + [innerRef, popperElement], + ); + var options = react.useMemo( + function () { + return { + placement, + strategy, + onFirstUpdate, + modifiers: [].concat(modifiers, [ + { name: 'arrow', enabled: null != arrowElement, options: { element: arrowElement } }, + ]), + }; + }, + [placement, strategy, onFirstUpdate, modifiers, arrowElement], + ), + _usePopper = (function usePopper(referenceElement, popperElement, options) { + void 0 === options && (options = {}); + var prevOptions = react.useRef(null), + optionsWithDefaults = { + onFirstUpdate: options.onFirstUpdate, + placement: options.placement || 'bottom', + strategy: options.strategy || 'absolute', + modifiers: options.modifiers || EMPTY_MODIFIERS, + }, + _React$useState = react.useState({ + styles: { popper: { position: optionsWithDefaults.strategy, left: '0', top: '0' } }, + attributes: {}, + }), + state = _React$useState[0], + setState = _React$useState[1], + updateStateModifier = react.useMemo(function () { + return { + name: 'updateState', + enabled: !0, + phase: 'write', + fn: function fn(_ref) { + var state = _ref.state, + elements = Object.keys(state.elements); + setState({ + styles: fromEntries( + elements.map(function (element) { + return [element, state.styles[element] || {}]; + }), + ), + attributes: fromEntries( + elements.map(function (element) { + return [element, state.attributes[element]]; + }), + ), + }); + }, + requires: ['computeStyles'], + }; + }, []), + popperOptions = react.useMemo( + function () { + var newOptions = { + onFirstUpdate: optionsWithDefaults.onFirstUpdate, + placement: optionsWithDefaults.placement, + strategy: optionsWithDefaults.strategy, + modifiers: [].concat(optionsWithDefaults.modifiers, [ + updateStateModifier, + { name: 'applyStyles', enabled: !1 }, + ]), + }; + return react_fast_compare_default()(prevOptions.current, newOptions) + ? prevOptions.current || newOptions + : ((prevOptions.current = newOptions), newOptions); + }, + [ + optionsWithDefaults.onFirstUpdate, + optionsWithDefaults.placement, + optionsWithDefaults.strategy, + optionsWithDefaults.modifiers, + updateStateModifier, + ], + ), + popperInstanceRef = react.useRef(); + return ( + useIsomorphicLayoutEffect( + function () { + popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions); + }, + [popperOptions], + ), + useIsomorphicLayoutEffect( + function () { + if (null != referenceElement && null != popperElement) { + var popperInstance = (options.createPopper || popper_createPopper)( + referenceElement, + popperElement, + popperOptions, + ); + return ( + (popperInstanceRef.current = popperInstance), + function () { + popperInstance.destroy(), (popperInstanceRef.current = null); + } + ); + } + }, + [referenceElement, popperElement, options.createPopper], + ), + { + state: popperInstanceRef.current ? popperInstanceRef.current.state : null, + styles: state.styles, + attributes: state.attributes, + update: popperInstanceRef.current ? popperInstanceRef.current.update : null, + forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null, + } + ); + })(referenceElement || referenceNode, popperElement, options), + state = _usePopper.state, + styles = _usePopper.styles, + forceUpdate = _usePopper.forceUpdate, + update = _usePopper.update, + childrenProps = react.useMemo( + function () { + return { + ref: setPopperElement, + style: styles.popper, + placement: state ? state.placement : placement, + hasPopperEscaped: state && state.modifiersData.hide ? state.modifiersData.hide.hasPopperEscaped : null, + isReferenceHidden: + state && state.modifiersData.hide ? state.modifiersData.hide.isReferenceHidden : null, + arrowProps: { style: styles.arrow, ref: setArrowElement }, + forceUpdate: forceUpdate || NOOP, + update: update || NOOP_PROMISE, + }; + }, + [setPopperElement, setArrowElement, placement, state, styles, update, forceUpdate], + ); + return unwrapArray(children)(childrenProps); + } + var warning = __webpack_require__('../../node_modules/warning/warning.js'), + warning_default = __webpack_require__.n(warning); + function Reference(_ref) { + var children = _ref.children, + innerRef = _ref.innerRef, + setReferenceNode = react.useContext(ManagerReferenceNodeSetterContext), + refHandler = react.useCallback( + function (node) { + setRef(innerRef, node), safeInvoke(setReferenceNode, node); + }, + [innerRef, setReferenceNode], + ); + return ( + react.useEffect(function () { + return function () { + return setRef(innerRef, null); + }; + }), + react.useEffect( + function () { + warning_default()( + Boolean(setReferenceNode), + '`Reference` should not be used outside of a `Manager` component.', + ); + }, + [setReferenceNode], + ), + unwrapArray(children)({ ref: refHandler }) + ); + } + var TooltipContext = react.createContext({}), + callAll = function callAll() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) + fns[_key] = arguments[_key]; + return function () { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) + args[_key2] = arguments[_key2]; + return fns.forEach(function (fn) { + return fn && fn.apply(void 0, args); + }); + }; + }, + canUseDOM = function canUseDOM() { + return !('undefined' == typeof window || !window.document || !window.document.createElement); + }, + react_popper_tooltip_setRef = function setRef(ref, node) { + if ('function' == typeof ref) return ref(node); + null != ref && (ref.current = node); + }, + Tooltip = (function (_Component) { + function Tooltip() { + for (var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + ((_this = _Component.call.apply(_Component, [this].concat(args)) || this).observer = void 0), + (_this.tooltipRef = void 0), + (_this.handleOutsideClick = function (event) { + if (_this.tooltipRef && !_this.tooltipRef.contains(event.target)) { + var parentOutsideClickHandler = _this.context.parentOutsideClickHandler, + _this$props = _this.props, + hideTooltip = _this$props.hideTooltip; + (0, _this$props.clearScheduled)(), + hideTooltip(), + parentOutsideClickHandler && parentOutsideClickHandler(event); + } + }), + (_this.handleOutsideRightClick = function (event) { + if (_this.tooltipRef && !_this.tooltipRef.contains(event.target)) { + var parentOutsideRightClickHandler = _this.context.parentOutsideRightClickHandler, + _this$props2 = _this.props, + hideTooltip = _this$props2.hideTooltip; + (0, _this$props2.clearScheduled)(), + hideTooltip(), + parentOutsideRightClickHandler && parentOutsideRightClickHandler(event); + } + }), + (_this.addOutsideClickHandler = function () { + document.body.addEventListener('touchend', _this.handleOutsideClick), + document.body.addEventListener('click', _this.handleOutsideClick); + }), + (_this.removeOutsideClickHandler = function () { + document.body.removeEventListener('touchend', _this.handleOutsideClick), + document.body.removeEventListener('click', _this.handleOutsideClick); + }), + (_this.addOutsideRightClickHandler = function () { + return document.body.addEventListener('contextmenu', _this.handleOutsideRightClick); + }), + (_this.removeOutsideRightClickHandler = function () { + return document.body.removeEventListener('contextmenu', _this.handleOutsideRightClick); + }), + (_this.getTooltipRef = function (node) { + (_this.tooltipRef = node), react_popper_tooltip_setRef(_this.props.innerRef, node); + }), + (_this.getArrowProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)({}, props, { + style: (0, esm_extends.Z)({}, props.style, _this.props.arrowProps.style), + }) + ); + }), + (_this.getTooltipProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)( + {}, + props, + _this.isTriggeredBy('hover') && { + onMouseEnter: callAll(_this.props.clearScheduled, props.onMouseEnter), + onMouseLeave: callAll(_this.props.hideTooltip, props.onMouseLeave), + }, + { style: (0, esm_extends.Z)({}, props.style, _this.props.style) }, + ) + ); + }), + (_this.contextValue = { + isParentNoneTriggered: 'none' === _this.props.trigger, + addParentOutsideClickHandler: _this.addOutsideClickHandler, + addParentOutsideRightClickHandler: _this.addOutsideRightClickHandler, + parentOutsideClickHandler: _this.handleOutsideClick, + parentOutsideRightClickHandler: _this.handleOutsideRightClick, + removeParentOutsideClickHandler: _this.removeOutsideClickHandler, + removeParentOutsideRightClickHandler: _this.removeOutsideRightClickHandler, + }), + _this + ); + } + (0, inheritsLoose.Z)(Tooltip, _Component); + var _proto = Tooltip.prototype; + return ( + (_proto.componentDidMount = function componentDidMount() { + var _this2 = this; + if ( + ((this.observer = new MutationObserver(function () { + _this2.props.update(); + })).observe(this.tooltipRef, this.props.mutationObserverOptions), + this.isTriggeredBy('hover') || this.isTriggeredBy('click') || this.isTriggeredBy('right-click')) + ) { + var _this$context = this.context, + removeParentOutsideClickHandler = _this$context.removeParentOutsideClickHandler, + removeParentOutsideRightClickHandler = _this$context.removeParentOutsideRightClickHandler; + this.addOutsideClickHandler(), + this.addOutsideRightClickHandler(), + removeParentOutsideClickHandler && removeParentOutsideClickHandler(), + removeParentOutsideRightClickHandler && removeParentOutsideRightClickHandler(); + } + }), + (_proto.componentDidUpdate = function componentDidUpdate() { + this.props.closeOnReferenceHidden && this.props.isReferenceHidden && this.props.hideTooltip(); + }), + (_proto.componentWillUnmount = function componentWillUnmount() { + if ( + (this.observer && this.observer.disconnect(), + this.isTriggeredBy('hover') || this.isTriggeredBy('click') || this.isTriggeredBy('right-click')) + ) { + var _this$context2 = this.context, + isParentNoneTriggered = _this$context2.isParentNoneTriggered, + addParentOutsideClickHandler = _this$context2.addParentOutsideClickHandler, + addParentOutsideRightClickHandler = _this$context2.addParentOutsideRightClickHandler; + this.removeOutsideClickHandler(), + this.removeOutsideRightClickHandler(), + (this.handleOutsideClick = void 0), + (this.handleOutsideRightClick = void 0), + !isParentNoneTriggered && addParentOutsideClickHandler && addParentOutsideClickHandler(), + !isParentNoneTriggered && addParentOutsideRightClickHandler && addParentOutsideRightClickHandler(); + } + }), + (_proto.render = function render() { + var _this$props3 = this.props, + arrowProps = _this$props3.arrowProps, + placement = _this$props3.placement, + tooltip = _this$props3.tooltip; + return react.createElement( + TooltipContext.Provider, + { value: this.contextValue }, + tooltip({ + arrowRef: arrowProps.ref, + getArrowProps: this.getArrowProps, + getTooltipProps: this.getTooltipProps, + placement, + tooltipRef: this.getTooltipRef, + }), + ); + }), + (_proto.isTriggeredBy = function isTriggeredBy(event) { + var trigger = this.props.trigger; + return trigger === event || (Array.isArray(trigger) && trigger.includes(event)); + }), + Tooltip + ); + })(react.Component); + Tooltip.contextType = TooltipContext; + var TooltipTrigger = (function (_Component) { + function TooltipTrigger() { + for (var _this, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + ((_this = _Component.call.apply(_Component, [this].concat(args)) || this).state = { + tooltipShown: _this.props.defaultTooltipShown, + }), + (_this.hideTimeout = void 0), + (_this.showTimeout = void 0), + (_this.popperOffset = void 0), + (_this.setTooltipState = function (state) { + var cb = function cb() { + return _this.props.onVisibilityChange(state.tooltipShown); + }; + _this.isControlled() ? cb() : _this.setState(state, cb); + }), + (_this.clearScheduled = function () { + clearTimeout(_this.hideTimeout), clearTimeout(_this.showTimeout); + }), + (_this.showTooltip = function (_ref) { + var pageX = _ref.pageX, + pageY = _ref.pageY; + _this.clearScheduled(); + var state = { tooltipShown: !0 }; + _this.props.followCursor && (state = (0, esm_extends.Z)({}, state, { pageX, pageY })), + (_this.showTimeout = window.setTimeout(function () { + return _this.setTooltipState(state); + }, _this.props.delayShow)); + }), + (_this.hideTooltip = function () { + _this.clearScheduled(), + (_this.hideTimeout = window.setTimeout(function () { + return _this.setTooltipState({ tooltipShown: !1 }); + }, _this.props.delayHide)); + }), + (_this.toggleTooltip = function (_ref2) { + var pageX = _ref2.pageX, + pageY = _ref2.pageY, + action = _this.getState() ? 'hideTooltip' : 'showTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.clickToggle = function (event) { + event.preventDefault(); + var pageX = event.pageX, + pageY = event.pageY, + action = _this.props.followCursor ? 'showTooltip' : 'toggleTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.contextMenuToggle = function (event) { + event.preventDefault(); + var pageX = event.pageX, + pageY = event.pageY, + action = _this.props.followCursor ? 'showTooltip' : 'toggleTooltip'; + _this[action]({ pageX, pageY }); + }), + (_this.getTriggerProps = function (props) { + return ( + void 0 === props && (props = {}), + (0, esm_extends.Z)( + {}, + props, + _this.isTriggeredBy('click') && { + onClick: callAll(_this.clickToggle, props.onClick), + onTouchEnd: callAll(_this.clickToggle, props.onTouchEnd), + }, + _this.isTriggeredBy('right-click') && { + onContextMenu: callAll(_this.contextMenuToggle, props.onContextMenu), + }, + _this.isTriggeredBy('hover') && + (0, esm_extends.Z)( + { + onMouseEnter: callAll(_this.showTooltip, props.onMouseEnter), + onMouseLeave: callAll(_this.hideTooltip, props.onMouseLeave), + }, + _this.props.followCursor && { onMouseMove: callAll(_this.showTooltip, props.onMouseMove) }, + ), + _this.isTriggeredBy('focus') && { + onFocus: callAll(_this.showTooltip, props.onFocus), + onBlur: callAll(_this.hideTooltip, props.onBlur), + }, + ) + ); + }), + _this + ); + } + (0, inheritsLoose.Z)(TooltipTrigger, _Component); + var _proto = TooltipTrigger.prototype; + return ( + (_proto.componentWillUnmount = function componentWillUnmount() { + this.clearScheduled(); + }), + (_proto.render = function render() { + var _this2 = this, + _this$props = this.props, + children = _this$props.children, + tooltip = _this$props.tooltip, + placement = _this$props.placement, + trigger = _this$props.trigger, + getTriggerRef = _this$props.getTriggerRef, + modifiers = _this$props.modifiers, + closeOnReferenceHidden = _this$props.closeOnReferenceHidden, + usePortal = _this$props.usePortal, + portalContainer = _this$props.portalContainer, + followCursor = _this$props.followCursor, + getTooltipRef = _this$props.getTooltipRef, + mutationObserverOptions = _this$props.mutationObserverOptions, + restProps = (0, objectWithoutPropertiesLoose.Z)(_this$props, [ + 'children', + 'tooltip', + 'placement', + 'trigger', + 'getTriggerRef', + 'modifiers', + 'closeOnReferenceHidden', + 'usePortal', + 'portalContainer', + 'followCursor', + 'getTooltipRef', + 'mutationObserverOptions', + ]), + popper = react.createElement( + Popper, + (0, esm_extends.Z)( + { + innerRef: getTooltipRef, + placement, + modifiers: [ + { + name: 'followCursor', + enabled: followCursor, + phase: 'main', + fn: function fn(data) { + _this2.popperOffset = data.state.rects.popper; + }, + }, + ].concat(modifiers), + }, + restProps, + ), + function (_ref3) { + var ref = _ref3.ref, + style = _ref3.style, + placement = _ref3.placement, + arrowProps = _ref3.arrowProps, + isReferenceHidden = _ref3.isReferenceHidden, + update = _ref3.update; + if (followCursor && _this2.popperOffset) { + var _this2$state = _this2.state, + pageX = _this2$state.pageX, + pageY = _this2$state.pageY, + _this2$popperOffset = _this2.popperOffset, + width = _this2$popperOffset.width, + height = _this2$popperOffset.height, + x = pageX + width > window.pageXOffset + document.body.offsetWidth ? pageX - width : pageX, + y = pageY + height > window.pageYOffset + document.body.offsetHeight ? pageY - height : pageY; + style.transform = 'translate3d(' + x + 'px, ' + y + 'px, 0'; + } + return react.createElement( + Tooltip, + (0, esm_extends.Z)( + { + arrowProps, + closeOnReferenceHidden, + isReferenceHidden, + placement, + update, + style, + tooltip, + trigger, + mutationObserverOptions, + }, + { clearScheduled: _this2.clearScheduled, hideTooltip: _this2.hideTooltip, innerRef: ref }, + ), + ); + }, + ); + return react.createElement( + Manager, + null, + react.createElement(Reference, { innerRef: getTriggerRef }, function (_ref4) { + var ref = _ref4.ref; + return children({ getTriggerProps: _this2.getTriggerProps, triggerRef: ref }); + }), + this.getState() && (usePortal ? (0, react_dom.createPortal)(popper, portalContainer) : popper), + ); + }), + (_proto.isControlled = function isControlled() { + return void 0 !== this.props.tooltipShown; + }), + (_proto.getState = function getState() { + return this.isControlled() ? this.props.tooltipShown : this.state.tooltipShown; + }), + (_proto.isTriggeredBy = function isTriggeredBy(event) { + var trigger = this.props.trigger; + return trigger === event || (Array.isArray(trigger) && trigger.includes(event)); + }), + TooltipTrigger + ); + })(react.Component); + TooltipTrigger.defaultProps = { + closeOnReferenceHidden: !0, + defaultTooltipShown: !1, + delayHide: 0, + delayShow: 0, + followCursor: !1, + onVisibilityChange: function noop() {}, + placement: 'right', + portalContainer: canUseDOM() ? document.body : null, + trigger: 'hover', + usePortal: canUseDOM(), + mutationObserverOptions: { childList: !0, subtree: !0 }, + modifiers: [], + }; + const react_popper_tooltip = TooltipTrigger; + __webpack_require__('../../node_modules/core-js/modules/es.string.split.js'), + __webpack_require__('../../node_modules/core-js/modules/es.regexp.exec.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.starts-with.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.concat.js'); + var memoizerific = __webpack_require__('../../node_modules/memoizerific/memoizerific.js'), + memoizerific_default = __webpack_require__.n(memoizerific), + utils = __webpack_require__('../../node_modules/@storybook/theming/dist/esm/utils.js'); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var _templateObject, + _templateObject2, + match = memoizerific_default()(1e3)(function (requests, actual, value) { + var fallback = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0; + return actual.split('-')[0] === requests ? value : fallback; + }), + Arrow = esm.zo.div( + { position: 'absolute', borderStyle: 'solid' }, + function (_ref) { + var placement = _ref.placement, + x = 0, + y = 0; + switch (!0) { + case placement.startsWith('left') || placement.startsWith('right'): + y = 8; + break; + case placement.startsWith('top') || placement.startsWith('bottom'): + x = 8; + } + return { transform: 'translate3d('.concat(x, 'px, ').concat(y, 'px, 0px)') }; + }, + function (_ref2) { + var theme = _ref2.theme, + color = _ref2.color, + placement = _ref2.placement; + return { + bottom: ''.concat(match('top', placement, -8, 'auto'), 'px'), + top: ''.concat(match('bottom', placement, -8, 'auto'), 'px'), + right: ''.concat(match('left', placement, -8, 'auto'), 'px'), + left: ''.concat(match('right', placement, -8, 'auto'), 'px'), + borderBottomWidth: ''.concat(match('top', placement, '0', 8), 'px'), + borderTopWidth: ''.concat(match('bottom', placement, '0', 8), 'px'), + borderRightWidth: ''.concat(match('left', placement, '0', 8), 'px'), + borderLeftWidth: ''.concat(match('right', placement, '0', 8), 'px'), + borderTopColor: match( + 'top', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderBottomColor: match( + 'bottom', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderLeftColor: match( + 'left', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + borderRightColor: match( + 'right', + placement, + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + 'transparent', + ), + }; + }, + ), + Wrapper = esm.zo.div( + function (_ref3) { + return { display: _ref3.hidden ? 'none' : 'inline-block', zIndex: 2147483647 }; + }, + function (_ref4) { + var theme = _ref4.theme, + color = _ref4.color; + return _ref4.hasChrome + ? { + background: + theme.color[color] || color || 'light' === theme.base + ? (0, utils.tG)(theme.background.app) + : (0, utils.r5)(theme.background.app), + filter: + '\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ', + borderRadius: 2 * theme.appBorderRadius, + fontSize: theme.typography.size.s1, + } + : {}; + }, + ), + Tooltip_Tooltip = function Tooltip(_ref5) { + var placement = _ref5.placement, + hasChrome = _ref5.hasChrome, + children = _ref5.children, + arrowProps = _ref5.arrowProps, + tooltipRef = _ref5.tooltipRef, + arrowRef = _ref5.arrowRef, + color = _ref5.color, + props = _objectWithoutProperties(_ref5, [ + 'placement', + 'hasChrome', + 'children', + 'arrowProps', + 'tooltipRef', + 'arrowRef', + 'color', + ]); + return react.createElement( + Wrapper, + _extends({ hasChrome, placement, ref: tooltipRef }, props, { color }), + hasChrome && react.createElement(Arrow, _extends({ placement, ref: arrowRef }, arrowProps, { color })), + children, + ); + }; + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function WithTooltip_extends() { + return ( + (WithTooltip_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + WithTooltip_extends.apply(this, arguments) + ); + } + function WithTooltip_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function WithTooltip_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + (Tooltip_Tooltip.displayName = 'Tooltip'), + (Tooltip_Tooltip.defaultProps = { + color: void 0, + arrowRef: void 0, + tooltipRef: void 0, + hasChrome: !0, + placement: 'top', + arrowProps: {}, + }); + var WithTooltip_document = window_default().document, + TargetContainer = esm.zo.div( + _templateObject || + (_templateObject = _taggedTemplateLiteral(['\n display: inline-block;\n cursor: ', ';\n'])), + function (props) { + return 'hover' === props.mode ? 'default' : 'pointer'; + }, + ), + TargetSvgContainer = esm.zo.g( + _templateObject2 || (_templateObject2 = _taggedTemplateLiteral(['\n cursor: ', ';\n'])), + function (props) { + return 'hover' === props.mode ? 'default' : 'pointer'; + }, + ), + WithTooltipPure = function WithTooltipPure(_ref) { + var svg = _ref.svg, + trigger = _ref.trigger, + placement = (_ref.closeOnClick, _ref.placement), + modifiers = _ref.modifiers, + hasChrome = _ref.hasChrome, + _tooltip = _ref.tooltip, + children = _ref.children, + tooltipShown = _ref.tooltipShown, + onVisibilityChange = _ref.onVisibilityChange, + props = WithTooltip_objectWithoutProperties(_ref, [ + 'svg', + 'trigger', + 'closeOnClick', + 'placement', + 'modifiers', + 'hasChrome', + 'tooltip', + 'children', + 'tooltipShown', + 'onVisibilityChange', + ]), + Container = svg ? TargetSvgContainer : TargetContainer; + return react.createElement( + react_popper_tooltip, + { + placement, + trigger, + modifiers, + tooltipShown, + onVisibilityChange, + tooltip: function tooltip(_ref2) { + var getTooltipProps = _ref2.getTooltipProps, + getArrowProps = _ref2.getArrowProps, + tooltipRef = _ref2.tooltipRef, + arrowRef = _ref2.arrowRef, + tooltipPlacement = _ref2.placement; + return react.createElement( + Tooltip_Tooltip, + WithTooltip_extends( + { hasChrome, placement: tooltipPlacement, tooltipRef, arrowRef, arrowProps: getArrowProps() }, + getTooltipProps(), + ), + 'function' == typeof _tooltip + ? _tooltip({ + onHide: function onHide() { + return onVisibilityChange(!1); + }, + }) + : _tooltip, + ); + }, + }, + function (_ref3) { + var getTriggerProps = _ref3.getTriggerProps, + triggerRef = _ref3.triggerRef; + return react.createElement( + Container, + WithTooltip_extends({ ref: triggerRef }, getTriggerProps(), props), + children, + ); + }, + ); + }; + (WithTooltipPure.displayName = 'WithTooltipPure'), + (WithTooltipPure.defaultProps = { + svg: !1, + trigger: 'hover', + closeOnClick: !1, + placement: 'top', + modifiers: [ + { name: 'preventOverflow', options: { padding: 8 } }, + { name: 'offset', options: { offset: [8, 8] } }, + { name: 'arrow', options: { padding: 8 } }, + ], + hasChrome: !0, + tooltipShown: !1, + }); + var WithToolTipState = function WithToolTipState(_ref4) { + var startOpen = _ref4.startOpen, + onChange = _ref4.onVisibilityChange, + rest = WithTooltip_objectWithoutProperties(_ref4, ['startOpen', 'onVisibilityChange']), + _useState2 = _slicedToArray((0, react.useState)(startOpen || !1), 2), + tooltipShown = _useState2[0], + setTooltipShown = _useState2[1], + onVisibilityChange = (0, react.useCallback)( + function (visibility) { + (onChange && !1 === onChange(visibility)) || setTooltipShown(visibility); + }, + [onChange], + ); + return ( + (0, react.useEffect)(function () { + var hide = function hide() { + return onVisibilityChange(!1); + }; + WithTooltip_document.addEventListener('keydown', hide, !1); + var iframes = Array.from(WithTooltip_document.getElementsByTagName('iframe')), + unbinders = []; + return ( + iframes.forEach(function (iframe) { + var bind = function bind() { + try { + iframe.contentWindow.document && + (iframe.contentWindow.document.addEventListener('click', hide), + unbinders.push(function () { + try { + iframe.contentWindow.document.removeEventListener('click', hide); + } catch (e) {} + })); + } catch (e) {} + }; + bind(), + iframe.addEventListener('load', bind), + unbinders.push(function () { + iframe.removeEventListener('load', bind); + }); + }), + function () { + WithTooltip_document.removeEventListener('keydown', hide), + unbinders.forEach(function (unbind) { + unbind(); + }); + } + ); + }), + react.createElement(WithTooltipPure, WithTooltip_extends({}, rest, { tooltipShown, onVisibilityChange })) + ); + }; + WithToolTipState.displayName = 'WithToolTipState'; + }, + '../../node_modules/react-popper-tooltip/node_modules/react-fast-compare/index.js': module => { + var hasElementType = 'undefined' != typeof Element, + hasMap = 'function' == typeof Map, + hasSet = 'function' == typeof Set, + hasArrayBuffer = 'function' == typeof ArrayBuffer && !!ArrayBuffer.isView; + function equal(a, b) { + if (a === b) return !0; + if (a && b && 'object' == typeof a && 'object' == typeof b) { + if (a.constructor !== b.constructor) return !1; + var length, i, keys, it; + if (Array.isArray(a)) { + if ((length = a.length) != b.length) return !1; + for (i = length; 0 != i--; ) if (!equal(a[i], b[i])) return !1; + return !0; + } + if (hasMap && a instanceof Map && b instanceof Map) { + if (a.size !== b.size) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!b.has(i.value[0])) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!equal(i.value[1], b.get(i.value[0]))) return !1; + return !0; + } + if (hasSet && a instanceof Set && b instanceof Set) { + if (a.size !== b.size) return !1; + for (it = a.entries(); !(i = it.next()).done; ) if (!b.has(i.value[0])) return !1; + return !0; + } + if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { + if ((length = a.length) != b.length) return !1; + for (i = length; 0 != i--; ) if (a[i] !== b[i]) return !1; + return !0; + } + if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; + if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); + if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); + if ((length = (keys = Object.keys(a)).length) !== Object.keys(b).length) return !1; + for (i = length; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return !1; + if (hasElementType && a instanceof Element) return !1; + for (i = length; 0 != i--; ) + if ( + (('_owner' !== keys[i] && '__v' !== keys[i] && '__o' !== keys[i]) || !a.$$typeof) && + !equal(a[keys[i]], b[keys[i]]) + ) + return !1; + return !0; + } + return a != a && b != b; + } + module.exports = function isEqual(a, b) { + try { + return equal(a, b); + } catch (error) { + if ((error.message || '').match(/stack|recursion/i)) + return console.warn('react-fast-compare cannot handle circular refs'), !1; + throw error; + } + }; + }, + '../../node_modules/warning/warning.js': module => { + 'use strict'; + var warning = function () {}, + printWarning = function printWarning(format, args) { + var len = arguments.length; + args = new Array(len > 1 ? len - 1 : 0); + for (var key = 1; key < len; key++) args[key - 1] = arguments[key]; + var argIndex = 0, + message = + 'Warning: ' + + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + 'undefined' != typeof console && console.error(message); + try { + throw new Error(message); + } catch (x) {} + }; + (warning = function (condition, format, args) { + var len = arguments.length; + args = new Array(len > 2 ? len - 2 : 0); + for (var key = 2; key < len; key++) args[key - 2] = arguments[key]; + if (void 0 === format) + throw new Error('`warning(condition, format, ...args)` requires a warning message argument'); + condition || printWarning.apply(null, [format].concat(args)); + }), + (module.exports = warning); + }, + }, +]); +//# sourceMappingURL=129.94424133.iframe.bundle.js.map diff --git a/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js.map b/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js.map new file mode 100644 index 00000000000000..ed850d65d70cff --- /dev/null +++ b/packages/react-menu/storybook-static/129.94424133.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"129.94424133.iframe.bundle.js","sources":["webpack://@fluentui/react-menu/129.94424133.iframe.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js b/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js new file mode 100644 index 00000000000000..cbeddfb8ea6a07 --- /dev/null +++ b/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js @@ -0,0 +1,1966 @@ +(self.webpackChunk_fluentui_react_menu = self.webpackChunk_fluentui_react_menu || []).push([ + [135], + { + '../../node_modules/@storybook/components/dist/esm/controls/Color.js': ( + __unused_webpack_module, + __webpack_exports__, + __webpack_require__, + ) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { ColorControl: () => ColorControl, default: () => Color }); + __webpack_require__('../../node_modules/core-js/modules/es.object.keys.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.description.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.to-string.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/web.dom-collections.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.from.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.concat.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.assign.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.values.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.match.js'), + __webpack_require__('../../node_modules/core-js/modules/es.regexp.exec.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.map.js'), + __webpack_require__('../../node_modules/core-js/modules/es.number.constructor.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.replace.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.starts-with.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.split.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.slice.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.filter.js'), + __webpack_require__('../../node_modules/core-js/modules/es.function.name.js'); + var react = __webpack_require__('../../node_modules/react/index.js'); + function l() { + return (l = + Object.assign || + function (e) { + for (var r = 1; r < arguments.length; r++) { + var t = arguments[r]; + for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + } + return e; + }).apply(this, arguments); + } + function u(e, r) { + if (null == e) return {}; + var t, + o, + n = {}, + a = Object.keys(e); + for (o = 0; o < a.length; o++) r.indexOf((t = a[o])) >= 0 || (n[t] = e[t]); + return n; + } + var c = 'undefined' != typeof window ? react.useLayoutEffect : react.useEffect; + function i(e) { + var r = (0, react.useRef)(e); + return ( + (0, react.useEffect)(function () { + r.current = e; + }), + (0, react.useCallback)(function (e) { + return r.current && r.current(e); + }, []) + ); + } + var s, + f = function (e, r, t) { + return void 0 === r && (r = 0), void 0 === t && (t = 1), e > t ? t : e < r ? r : e; + }, + v = function (e) { + return 'touches' in e; + }, + d = function (e, r) { + var t = e.getBoundingClientRect(), + o = v(r) ? r.touches[0] : r; + return { + left: f((o.pageX - (t.left + window.pageXOffset)) / t.width), + top: f((o.pageY - (t.top + window.pageYOffset)) / t.height), + }; + }, + h = function (e) { + !v(e) && e.preventDefault(); + }, + m = react.memo(function (r) { + var t = r.onMove, + s = r.onKey, + f = u(r, ['onMove', 'onKey']), + m = (0, react.useRef)(null), + g = (0, react.useRef)(!1), + p = (0, react.useState)(!1), + b = p[0], + _ = p[1], + C = i(t), + x = i(s), + E = (0, react.useCallback)( + function (e) { + h(e), (v(e) ? e.touches.length > 0 : e.buttons > 0) && m.current ? C(d(m.current, e)) : _(!1); + }, + [C], + ), + H = (0, react.useCallback)( + function (e) { + var r, + t = e.nativeEvent, + o = m.current; + h(t), + (r = t), + (g.current && !v(r)) || (g.current || (g.current = v(r)), 0) || !o || (o.focus(), C(d(o, t)), _(!0)); + }, + [C], + ), + M = (0, react.useCallback)( + function (e) { + var r = e.which || e.keyCode; + r < 37 || + r > 40 || + (e.preventDefault(), + x({ left: 39 === r ? 0.05 : 37 === r ? -0.05 : 0, top: 40 === r ? 0.05 : 38 === r ? -0.05 : 0 })); + }, + [x], + ), + N = (0, react.useCallback)(function () { + return _(!1); + }, []), + w = (0, react.useCallback)( + function (e) { + var r = e ? window.addEventListener : window.removeEventListener; + r(g.current ? 'touchmove' : 'mousemove', E), r(g.current ? 'touchend' : 'mouseup', N); + }, + [E, N], + ); + return ( + c( + function () { + return ( + w(b), + function () { + b && w(!1); + } + ); + }, + [b, w], + ), + react.createElement( + 'div', + l({}, f, { + className: 'react-colorful__interactive', + ref: m, + onTouchStart: H, + onMouseDown: H, + onKeyDown: M, + tabIndex: 0, + role: 'slider', + }), + ) + ); + }), + g = function (e) { + return e.filter(Boolean).join(' '); + }, + p = function (r) { + var t = r.color, + o = r.left, + n = r.top, + a = void 0 === n ? 0.5 : n, + l = g(['react-colorful__pointer', r.className]); + return react.createElement( + 'div', + { className: l, style: { top: 100 * a + '%', left: 100 * o + '%' } }, + react.createElement('div', { className: 'react-colorful__pointer-fill', style: { backgroundColor: t } }), + ); + }, + b = function (e, r, t) { + return void 0 === r && (r = 0), void 0 === t && (t = Math.pow(10, r)), Math.round(t * e) / t; + }, + _ = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, + C = function (e) { + return ( + '#' === e[0] && (e = e.substr(1)), + e.length < 6 + ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: 1 } + : { + r: parseInt(e.substr(0, 2), 16), + g: parseInt(e.substr(2, 2), 16), + b: parseInt(e.substr(4, 2), 16), + a: 1, + } + ); + }, + x = function (e, r) { + return void 0 === r && (r = 'deg'), Number(e) * (_[r] || 1); + }, + E = function (e) { + var r = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( + e, + ); + return r + ? M({ + h: x(r[1], r[2]), + s: Number(r[3]), + l: Number(r[4]), + a: void 0 === r[5] ? 1 : Number(r[5]) / (r[6] ? 100 : 1), + }) + : { h: 0, s: 0, v: 0, a: 1 }; + }, + M = function (e) { + var r = e.s, + t = e.l; + return { + h: e.h, + s: (r *= (t < 50 ? t : 100 - t) / 100) > 0 ? ((2 * r) / (t + r)) * 100 : 0, + v: t + r, + a: e.a, + }; + }, + N = function (e) { + var r = e.s, + t = e.v, + o = e.a, + n = ((200 - r) * t) / 100; + return { + h: b(e.h), + s: b(n > 0 && n < 200 ? ((r * t) / 100 / (n <= 100 ? n : 200 - n)) * 100 : 0), + l: b(n / 2), + a: b(o, 2), + }; + }, + w = function (e) { + var r = N(e); + return 'hsl(' + r.h + ', ' + r.s + '%, ' + r.l + '%)'; + }, + y = function (e) { + var r = N(e); + return 'hsla(' + r.h + ', ' + r.s + '%, ' + r.l + '%, ' + r.a + ')'; + }, + q = function (e) { + var r = e.h, + t = e.s, + o = e.v, + n = e.a; + (r = (r / 360) * 6), (t /= 100), (o /= 100); + var a = Math.floor(r), + l = o * (1 - t), + u = o * (1 - (r - a) * t), + c = o * (1 - (1 - r + a) * t), + i = a % 6; + return { + r: b(255 * [o, u, l, l, c, o][i]), + g: b(255 * [c, o, o, u, l, l][i]), + b: b(255 * [l, l, c, o, o, u][i]), + a: b(n, 2), + }; + }, + I = function (e) { + var r = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( + e, + ); + return r + ? B({ + r: Number(r[1]) / (r[2] ? 100 / 255 : 1), + g: Number(r[3]) / (r[4] ? 100 / 255 : 1), + b: Number(r[5]) / (r[6] ? 100 / 255 : 1), + a: void 0 === r[7] ? 1 : Number(r[7]) / (r[8] ? 100 : 1), + }) + : { h: 0, s: 0, v: 0, a: 1 }; + }, + z = function (e) { + var r = e.toString(16); + return r.length < 2 ? '0' + r : r; + }, + B = function (e) { + var r = e.r, + t = e.g, + o = e.b, + n = e.a, + a = Math.max(r, t, o), + l = a - Math.min(r, t, o), + u = l ? (a === r ? (t - o) / l : a === t ? 2 + (o - r) / l : 4 + (r - t) / l) : 0; + return { h: b(60 * (u < 0 ? u + 6 : u)), s: b(a ? (l / a) * 100 : 0), v: b((a / 255) * 100), a: n }; + }, + A = react.memo(function (r) { + var t = r.hue, + o = r.onChange, + n = g(['react-colorful__hue', r.className]); + return react.createElement( + 'div', + { className: n }, + react.createElement( + m, + { + onMove: function (e) { + o({ h: 360 * e.left }); + }, + onKey: function (e) { + o({ h: f(t + 360 * e.left, 0, 360) }); + }, + 'aria-label': 'Hue', + 'aria-valuetext': b(t), + }, + react.createElement(p, { + className: 'react-colorful__hue-pointer', + left: t / 360, + color: w({ h: t, s: 100, v: 100, a: 1 }), + }), + ), + ); + }), + L = react.memo(function (r) { + var t = r.hsva, + o = r.onChange, + n = { backgroundColor: w({ h: t.h, s: 100, v: 100, a: 1 }) }; + return react.createElement( + 'div', + { className: 'react-colorful__saturation', style: n }, + react.createElement( + m, + { + onMove: function (e) { + o({ s: 100 * e.left, v: 100 - 100 * e.top }); + }, + onKey: function (e) { + o({ s: f(t.s + 100 * e.left, 0, 100), v: f(t.v - 100 * e.top, 0, 100) }); + }, + 'aria-label': 'Color', + 'aria-valuetext': 'Saturation ' + b(t.s) + '%, Brightness ' + b(t.v) + '%', + }, + react.createElement(p, { + className: 'react-colorful__saturation-pointer', + top: 1 - t.v / 100, + left: t.s / 100, + color: w(t), + }), + ), + ); + }), + D = function (e, r) { + if (e === r) return !0; + for (var t in e) if (e[t] !== r[t]) return !1; + return !0; + }, + F = function (e, r) { + return e.replace(/\s/g, '') === r.replace(/\s/g, ''); + }; + function S(e, r, l) { + var u = i(l), + c = (0, react.useState)(function () { + return e.toHsva(r); + }), + s = c[0], + f = c[1], + v = (0, react.useRef)({ color: r, hsva: s }); + (0, react.useEffect)( + function () { + if (!e.equal(r, v.current.color)) { + var t = e.toHsva(r); + (v.current = { hsva: t, color: r }), f(t); + } + }, + [r, e], + ), + (0, react.useEffect)( + function () { + var r; + D(s, v.current.hsva) || + e.equal((r = e.fromHsva(s)), v.current.color) || + ((v.current = { hsva: s, color: r }), u(r)); + }, + [s, e, u], + ); + var d = (0, react.useCallback)(function (e) { + f(function (r) { + return Object.assign({}, r, e); + }); + }, []); + return [s, d]; + } + var P, + Y = function () { + c(function () { + if ('undefined' != typeof document && !P) { + (P = document.createElement('style')).innerHTML = + '.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}'; + var e = s || __webpack_require__.nc; + e && P.setAttribute('nonce', e), document.head.appendChild(P); + } + }, []); + }, + $ = function (r) { + var t = r.className, + o = r.colorModel, + n = r.color, + a = void 0 === n ? o.defaultColor : n, + c = r.onChange, + i = u(r, ['className', 'colorModel', 'color', 'onChange']); + Y(); + var s = S(o, a, c), + f = s[0], + v = s[1], + d = g(['react-colorful', t]); + return react.createElement( + 'div', + l({}, i, { className: d }), + react.createElement(L, { hsva: f, onChange: v }), + react.createElement(A, { hue: f.h, onChange: v, className: 'react-colorful__last-control' }), + ); + }, + R = { + defaultColor: '000', + toHsva: function (e) { + return B(C(e)); + }, + fromHsva: function (e) { + return (t = (r = q(e)).g), (o = r.b), '#' + z(r.r) + z(t) + z(o); + var r, t, o; + }, + equal: function (e, r) { + return e.toLowerCase() === r.toLowerCase() || D(C(e), C(r)); + }, + }, + J = function (r) { + var t = r.className, + o = r.hsva, + n = r.onChange, + a = { + backgroundImage: + 'linear-gradient(90deg, ' + + y(Object.assign({}, o, { a: 0 })) + + ', ' + + y(Object.assign({}, o, { a: 1 })) + + ')', + }, + l = g(['react-colorful__alpha', t]); + return react.createElement( + 'div', + { className: l }, + react.createElement('div', { className: 'react-colorful__alpha-gradient', style: a }), + react.createElement( + m, + { + onMove: function (e) { + n({ a: e.left }); + }, + onKey: function (e) { + n({ a: f(o.a + e.left) }); + }, + 'aria-label': 'Alpha', + 'aria-valuetext': b(100 * o.a) + '%', + }, + react.createElement(p, { className: 'react-colorful__alpha-pointer', left: o.a, color: y(o) }), + ), + ); + }, + Q = function (r) { + var t = r.className, + o = r.colorModel, + n = r.color, + a = void 0 === n ? o.defaultColor : n, + c = r.onChange, + i = u(r, ['className', 'colorModel', 'color', 'onChange']); + Y(); + var s = S(o, a, c), + f = s[0], + v = s[1], + d = g(['react-colorful', t]); + return react.createElement( + 'div', + l({}, i, { className: d }), + react.createElement(L, { hsva: f, onChange: v }), + react.createElement(A, { hue: f.h, onChange: v }), + react.createElement(J, { hsva: f, onChange: v, className: 'react-colorful__last-control' }), + ); + }, + W = { defaultColor: 'hsla(0, 0%, 0%, 1)', toHsva: E, fromHsva: y, equal: F }, + he = { + defaultColor: 'rgba(0, 0, 0, 1)', + toHsva: I, + fromHsva: function (e) { + var r = q(e); + return 'rgba(' + r.r + ', ' + r.g + ', ' + r.b + ', ' + r.a + ')'; + }, + equal: F, + }, + color_convert = __webpack_require__( + '../../node_modules/@storybook/components/node_modules/color-convert/index.js', + ), + color_convert_default = __webpack_require__.n(color_convert), + throttle = __webpack_require__('../../node_modules/lodash/throttle.js'), + throttle_default = __webpack_require__.n(throttle), + esm = __webpack_require__('../../node_modules/@storybook/theming/dist/esm/index.js'); + __webpack_require__('../../node_modules/core-js/modules/es.string.bold.js'); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Note = esm.zo.div(function (_ref) { + var theme = _ref.theme; + return { + padding: '2px 6px', + lineHeight: '16px', + fontSize: 10, + fontWeight: theme.typography.weight.bold, + color: theme.color.lightest, + boxShadow: '0 0 5px 0 rgba(0, 0, 0, 0.3)', + borderRadius: 4, + whiteSpace: 'nowrap', + pointerEvents: 'none', + zIndex: -1, + background: 'light' === theme.base ? 'rgba(60, 60, 60, 0.9)' : 'rgba(20, 20, 20, 0.85)', + margin: 6, + }; + }), + TooltipNote = function TooltipNote(_ref2) { + var note = _ref2.note, + props = _objectWithoutProperties(_ref2, ['note']); + return react.createElement(Note, props, note); + }; + TooltipNote.displayName = 'TooltipNote'; + var _ColorPicker, + _fallbackColor, + lazy_WithTooltip = __webpack_require__( + '../../node_modules/@storybook/components/dist/esm/tooltip/lazy-WithTooltip.js', + ), + esm_form = __webpack_require__('../../node_modules/@storybook/components/dist/esm/form/index.js'), + icon = __webpack_require__('../../node_modules/@storybook/components/dist/esm/icon/icon.js'), + helpers = __webpack_require__('../../node_modules/@storybook/components/dist/esm/controls/helpers.js'); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function Color_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function Color_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Wrapper = esm.zo.div({ position: 'relative', maxWidth: 250 }), + PickerTooltip = (0, esm.zo)(lazy_WithTooltip.R)({ position: 'absolute', zIndex: 1, top: 4, left: 4 }), + TooltipContent = esm.zo.div({ + width: 200, + margin: 5, + '.react-colorful__saturation': { borderRadius: '4px 4px 0 0' }, + '.react-colorful__hue': { boxShadow: 'inset 0 0 0 1px rgb(0 0 0 / 5%)' }, + '.react-colorful__last-control': { borderRadius: '0 0 4px 4px' }, + }), + Color_Note = (0, esm.zo)(TooltipNote)(function (_ref) { + return { fontFamily: _ref.theme.typography.fonts.base }; + }), + Swatches = esm.zo.div({ + display: 'grid', + gridTemplateColumns: 'repeat(9, 16px)', + gap: 6, + padding: 3, + marginTop: 5, + width: 200, + }), + SwatchColor = esm.zo.div(function (_ref2) { + var theme = _ref2.theme; + return { + width: 16, + height: 16, + boxShadow: _ref2.active + ? ''.concat(theme.appBorderColor, ' 0 0 0 1px inset, ').concat(theme.color.mediumdark, '50 0 0 0 4px') + : ''.concat(theme.appBorderColor, ' 0 0 0 1px inset'), + borderRadius: theme.appBorderRadius, + }; + }), + Swatch = function Swatch(_ref3) { + var value = _ref3.value, + active = _ref3.active, + onClick = _ref3.onClick, + style = _ref3.style, + props = Color_objectWithoutProperties(_ref3, ['value', 'active', 'onClick', 'style']), + backgroundImage = 'linear-gradient(' + .concat(value, ', ') + .concat(value, '), ') + .concat( + 'url(\'data:image/svg+xml;charset=utf-8,\')', + ', linear-gradient(#fff, #fff)', + ); + return react.createElement( + SwatchColor, + _extends({}, props, { active, onClick, style: Object.assign({}, style, { backgroundImage }) }), + ); + }; + Swatch.displayName = 'Swatch'; + var ColorSpace, + Input = (0, esm.zo)(esm_form.l.Input)(function (_ref4) { + return { + width: '100%', + paddingLeft: 30, + paddingRight: 30, + boxSizing: 'border-box', + fontFamily: _ref4.theme.typography.fonts.base, + }; + }), + ToggleIcon = (0, esm.zo)(icon.P)(function (_ref5) { + return { + position: 'absolute', + zIndex: 1, + top: 6, + right: 7, + width: 20, + height: 20, + padding: 4, + boxSizing: 'border-box', + cursor: 'pointer', + color: _ref5.theme.input.color, + }; + }); + !(function (ColorSpace) { + (ColorSpace.RGB = 'rgb'), (ColorSpace.HSL = 'hsl'), (ColorSpace.HEX = 'hex'); + })(ColorSpace || (ColorSpace = {})); + var COLOR_SPACES = Object.values(ColorSpace), + COLOR_REGEXP = /\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/, + RGB_REGEXP = /^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i, + HSL_REGEXP = /^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i, + HEX_REGEXP = /^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i, + SHORTHEX_REGEXP = /^\s*#?([0-9a-f]{3})\s*$/i, + ColorPicker = + (_defineProperty((_ColorPicker = {}), ColorSpace.HEX, function (r) { + return react.createElement($, l({}, r, { colorModel: R })); + }), + _defineProperty(_ColorPicker, ColorSpace.RGB, function (r) { + return react.createElement(Q, l({}, r, { colorModel: he })); + }), + _defineProperty(_ColorPicker, ColorSpace.HSL, function (r) { + return react.createElement(Q, l({}, r, { colorModel: W })); + }), + _ColorPicker), + fallbackColor = + (_defineProperty((_fallbackColor = {}), ColorSpace.HEX, 'transparent'), + _defineProperty(_fallbackColor, ColorSpace.RGB, 'rgba(0, 0, 0, 0)'), + _defineProperty(_fallbackColor, ColorSpace.HSL, 'hsla(0, 0%, 0%, 0)'), + _fallbackColor), + stringToArgs = function stringToArgs(value) { + var match = null == value ? void 0 : value.match(COLOR_REGEXP); + if (!match) return [0, 0, 0, 1]; + var _match = _slicedToArray(match, 5), + x = _match[1], + y = _match[2], + z = _match[3], + _match$ = _match[4]; + return [x, y, z, void 0 === _match$ ? 1 : _match$].map(Number); + }, + parseValue = function parseValue(value) { + var _ref12; + if (value) { + var valid = !0; + if (RGB_REGEXP.test(value)) { + var _ref8, + _stringToArgs2 = _slicedToArray(stringToArgs(value), 4), + r = _stringToArgs2[0], + g = _stringToArgs2[1], + b = _stringToArgs2[2], + a = _stringToArgs2[3], + _ref7 = _slicedToArray(color_convert_default().rgb.hsl([r, g, b]) || [0, 0, 0], 3), + h = _ref7[0], + s = _ref7[1], + l = _ref7[2]; + return ( + _defineProperty( + (_ref8 = { + valid, + value, + keyword: color_convert_default().rgb.keyword([r, g, b]), + colorSpace: ColorSpace.RGB, + }), + ColorSpace.RGB, + value, + ), + _defineProperty( + _ref8, + ColorSpace.HSL, + 'hsla('.concat(h, ', ').concat(s, '%, ').concat(l, '%, ').concat(a, ')'), + ), + _defineProperty( + _ref8, + ColorSpace.HEX, + '#'.concat(color_convert_default().rgb.hex([r, g, b]).toLowerCase()), + ), + _ref8 + ); + } + if (HSL_REGEXP.test(value)) { + var _ref11, + _stringToArgs4 = _slicedToArray(stringToArgs(value), 4), + _h = _stringToArgs4[0], + _s2 = _stringToArgs4[1], + _l = _stringToArgs4[2], + _a = _stringToArgs4[3], + _ref10 = _slicedToArray(color_convert_default().hsl.rgb([_h, _s2, _l]) || [0, 0, 0], 3), + _r = _ref10[0], + _g = _ref10[1], + _b = _ref10[2]; + return ( + _defineProperty( + (_ref11 = { + valid, + value, + keyword: color_convert_default().hsl.keyword([_h, _s2, _l]), + colorSpace: ColorSpace.HSL, + }), + ColorSpace.RGB, + 'rgba('.concat(_r, ', ').concat(_g, ', ').concat(_b, ', ').concat(_a, ')'), + ), + _defineProperty(_ref11, ColorSpace.HSL, value), + _defineProperty( + _ref11, + ColorSpace.HEX, + '#'.concat(color_convert_default().hsl.hex([_h, _s2, _l]).toLowerCase()), + ), + _ref11 + ); + } + var plain = value.replace('#', ''), + rgb = color_convert_default().keyword.rgb(plain) || color_convert_default().hex.rgb(plain), + hsl = color_convert_default().rgb.hsl(rgb), + mapped = value; + if ( + (/[^#a-f0-9]/i.test(value) ? (mapped = plain) : HEX_REGEXP.test(value) && (mapped = '#'.concat(plain)), + mapped.startsWith('#')) + ) + valid = HEX_REGEXP.test(mapped); + else + try { + color_convert_default().keyword.hex(mapped); + } catch (e) { + valid = !1; + } + return ( + _defineProperty( + (_ref12 = { + valid, + value: mapped, + keyword: color_convert_default().rgb.keyword(rgb), + colorSpace: ColorSpace.HEX, + }), + ColorSpace.RGB, + 'rgba('.concat(rgb[0], ', ').concat(rgb[1], ', ').concat(rgb[2], ', 1)'), + ), + _defineProperty( + _ref12, + ColorSpace.HSL, + 'hsla('.concat(hsl[0], ', ').concat(hsl[1], '%, ').concat(hsl[2], '%, 1)'), + ), + _defineProperty(_ref12, ColorSpace.HEX, mapped), + _ref12 + ); + } + }, + useColorInput = function useColorInput(initialValue, onChange) { + var _useState2 = _slicedToArray((0, react.useState)(initialValue || ''), 2), + value = _useState2[0], + setValue = _useState2[1], + _useState4 = _slicedToArray( + (0, react.useState)(function () { + return parseValue(value); + }), + 2, + ), + color = _useState4[0], + setColor = _useState4[1], + _useState6 = _slicedToArray( + (0, react.useState)((null == color ? void 0 : color.colorSpace) || ColorSpace.HEX), + 2, + ), + colorSpace = _useState6[0], + setColorSpace = _useState6[1]; + (0, react.useEffect)( + function () { + void 0 === initialValue && (setValue(''), setColor(void 0), setColorSpace(ColorSpace.HEX)); + }, + [initialValue], + ); + var realValue = (0, react.useMemo)( + function () { + return (function getRealValue(value, color, colorSpace) { + if (!value || null == color || !color.valid) return fallbackColor[colorSpace]; + if (colorSpace !== ColorSpace.HEX) + return (null == color ? void 0 : color[colorSpace]) || fallbackColor[colorSpace]; + if (!color.hex.startsWith('#')) + try { + return '#'.concat(color_convert_default().keyword.hex(color.hex)); + } catch (e) { + return fallbackColor.hex; + } + var short = color.hex.match(SHORTHEX_REGEXP); + if (!short) return HEX_REGEXP.test(color.hex) ? color.hex : fallbackColor.hex; + var _short$1$split2 = _slicedToArray(short[1].split(''), 3), + r = _short$1$split2[0], + g = _short$1$split2[1], + b = _short$1$split2[2]; + return '#'.concat(r).concat(r).concat(g).concat(g).concat(b).concat(b); + })(value, color, colorSpace).toLowerCase(); + }, + [value, color, colorSpace], + ), + updateValue = (0, react.useCallback)( + function (update) { + var parsed = parseValue(update); + setValue((null == parsed ? void 0 : parsed.value) || update || ''), + parsed && (setColor(parsed), setColorSpace(parsed.colorSpace), onChange(parsed.value)); + }, + [onChange], + ), + cycleColorSpace = (0, react.useCallback)( + function () { + var next = COLOR_SPACES.indexOf(colorSpace) + 1; + next >= COLOR_SPACES.length && (next = 0), setColorSpace(COLOR_SPACES[next]); + var update = (null == color ? void 0 : color[COLOR_SPACES[next]]) || ''; + setValue(update), onChange(update); + }, + [color, colorSpace, onChange], + ); + return { value, realValue, updateValue, color, colorSpace, cycleColorSpace }; + }, + id = function id(value) { + return value.replace(/\s*/, '').toLowerCase(); + }, + ColorControl = function ColorControl(_ref13) { + var name = _ref13.name, + initialValue = _ref13.value, + onChange = _ref13.onChange, + onFocus = _ref13.onFocus, + onBlur = _ref13.onBlur, + presetColors = _ref13.presetColors, + startOpen = _ref13.startOpen, + _useColorInput = useColorInput(initialValue, throttle_default()(onChange, 200)), + value = _useColorInput.value, + realValue = _useColorInput.realValue, + updateValue = _useColorInput.updateValue, + color = _useColorInput.color, + colorSpace = _useColorInput.colorSpace, + cycleColorSpace = _useColorInput.cycleColorSpace, + _usePresets = (function usePresets(presetColors, currentColor, colorSpace) { + var _useState8 = _slicedToArray( + (0, react.useState)(null != currentColor && currentColor.valid ? [currentColor] : []), + 2, + ), + selectedColors = _useState8[0], + setSelectedColors = _useState8[1]; + (0, react.useEffect)( + function () { + void 0 === currentColor && setSelectedColors([]); + }, + [currentColor], + ); + var presets = (0, react.useMemo)( + function () { + return (presetColors || []) + .map(function (preset) { + return 'string' == typeof preset + ? parseValue(preset) + : preset.title + ? Object.assign({}, parseValue(preset.color), { keyword: preset.title }) + : parseValue(preset.color); + }) + .concat(selectedColors) + .filter(Boolean) + .slice(-27); + }, + [presetColors, selectedColors], + ), + addPreset = (0, react.useCallback)( + function (color) { + null != color && + color.valid && + (presets.some(function (preset) { + return id(preset[colorSpace]) === id(color[colorSpace]); + }) || + setSelectedColors(function (arr) { + return arr.concat(color); + })); + }, + [colorSpace, presets], + ); + return { presets, addPreset }; + })(presetColors, color, colorSpace), + presets = _usePresets.presets, + addPreset = _usePresets.addPreset, + Picker = ColorPicker[colorSpace]; + return react.createElement( + Wrapper, + null, + react.createElement( + PickerTooltip, + { + trigger: 'click', + startOpen, + closeOnClick: !0, + onVisibilityChange: function onVisibilityChange() { + return addPreset(color); + }, + tooltip: react.createElement( + TooltipContent, + null, + react.createElement(Picker, { + color: 'transparent' === realValue ? '#000000' : realValue, + onChange: updateValue, + onFocus, + onBlur, + }), + presets.length > 0 && + react.createElement( + Swatches, + null, + presets.map(function (preset, index) { + return react.createElement( + lazy_WithTooltip.R, + { + key: ''.concat(preset.value, '-').concat(index), + hasChrome: !1, + tooltip: react.createElement(Color_Note, { note: preset.keyword || preset.value }), + }, + react.createElement(Swatch, { + value: preset[colorSpace], + active: color && id(preset[colorSpace]) === id(color[colorSpace]), + onClick: function onClick() { + return updateValue(preset.value); + }, + }), + ); + }), + ), + ), + }, + react.createElement(Swatch, { value: realValue, style: { margin: 4 } }), + ), + react.createElement(Input, { + id: (0, helpers.d)(name), + value, + onChange: function onChange(e) { + return updateValue(e.target.value); + }, + onFocus: function onFocus(e) { + return e.target.select(); + }, + placeholder: 'Choose color...', + }), + value ? react.createElement(ToggleIcon, { icon: 'markup', onClick: cycleColorSpace }) : null, + ); + }; + ColorControl.displayName = 'ColorControl'; + const Color = ColorControl; + }, + '../../node_modules/@storybook/components/node_modules/color-convert/conversions.js': ( + module, + __unused_webpack_exports, + __webpack_require__, + ) => { + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + var _i = null == arr ? null : ('undefined' != typeof Symbol && arr[Symbol.iterator]) || arr['@@iterator']; + if (null == _i) return; + var _s, + _e, + _arr = [], + _n = !0, + _d = !1; + try { + for ( + _i = _i.call(arr); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + __webpack_require__('../../node_modules/core-js/modules/es.object.keys.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.define-property.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.to-string.js'), + __webpack_require__('../../node_modules/core-js/modules/es.regexp.to-string.js'), + __webpack_require__('../../node_modules/core-js/modules/es.date.to-string.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.match.js'), + __webpack_require__('../../node_modules/core-js/modules/es.regexp.exec.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.join.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.map.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.split.js'), + __webpack_require__('../../node_modules/core-js/modules/es.parse-int.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.is-array.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.description.js'), + __webpack_require__('../../node_modules/core-js/modules/es.symbol.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.string.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/web.dom-collections.iterator.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.slice.js'), + __webpack_require__('../../node_modules/core-js/modules/es.function.name.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.from.js'); + for ( + var cssKeywords = __webpack_require__('../../node_modules/color-name/index.js'), + reverseKeywords = {}, + _i = 0, + _Object$keys = Object.keys(cssKeywords); + _i < _Object$keys.length; + _i++ + ) { + var key = _Object$keys[_i]; + reverseKeywords[cssKeywords[key]] = key; + } + var convert = { + rgb: { channels: 3, labels: 'rgb' }, + hsl: { channels: 3, labels: 'hsl' }, + hsv: { channels: 3, labels: 'hsv' }, + hwb: { channels: 3, labels: 'hwb' }, + cmyk: { channels: 4, labels: 'cmyk' }, + xyz: { channels: 3, labels: 'xyz' }, + lab: { channels: 3, labels: 'lab' }, + lch: { channels: 3, labels: 'lch' }, + hex: { channels: 1, labels: ['hex'] }, + keyword: { channels: 1, labels: ['keyword'] }, + ansi16: { channels: 1, labels: ['ansi16'] }, + ansi256: { channels: 1, labels: ['ansi256'] }, + hcg: { channels: 3, labels: ['h', 'c', 'g'] }, + apple: { channels: 3, labels: ['r16', 'g16', 'b16'] }, + gray: { channels: 1, labels: ['gray'] }, + }; + module.exports = convert; + for (var _i2 = 0, _Object$keys2 = Object.keys(convert); _i2 < _Object$keys2.length; _i2++) { + var model = _Object$keys2[_i2]; + if (!('channels' in convert[model])) throw new Error('missing channels property: ' + model); + if (!('labels' in convert[model])) throw new Error('missing channel labels property: ' + model); + if (convert[model].labels.length !== convert[model].channels) + throw new Error('channel and label counts mismatch: ' + model); + var _convert$model = convert[model], + channels = _convert$model.channels, + labels = _convert$model.labels; + delete convert[model].channels, + delete convert[model].labels, + Object.defineProperty(convert[model], 'channels', { value: channels }), + Object.defineProperty(convert[model], 'labels', { value: labels }); + } + (convert.rgb.hsl = function (rgb) { + var h, + r = rgb[0] / 255, + g = rgb[1] / 255, + b = rgb[2] / 255, + min = Math.min(r, g, b), + max = Math.max(r, g, b), + delta = max - min; + max === min + ? (h = 0) + : r === max + ? (h = (g - b) / delta) + : g === max + ? (h = 2 + (b - r) / delta) + : b === max && (h = 4 + (r - g) / delta), + (h = Math.min(60 * h, 360)) < 0 && (h += 360); + var l = (min + max) / 2; + return [h, 100 * (max === min ? 0 : l <= 0.5 ? delta / (max + min) : delta / (2 - max - min)), 100 * l]; + }), + (convert.rgb.hsv = function (rgb) { + var rdif, + gdif, + bdif, + h, + s, + r = rgb[0] / 255, + g = rgb[1] / 255, + b = rgb[2] / 255, + v = Math.max(r, g, b), + diff = v - Math.min(r, g, b), + diffc = function diffc(c) { + return (v - c) / 6 / diff + 0.5; + }; + return ( + 0 === diff + ? ((h = 0), (s = 0)) + : ((s = diff / v), + (rdif = diffc(r)), + (gdif = diffc(g)), + (bdif = diffc(b)), + r === v + ? (h = bdif - gdif) + : g === v + ? (h = 1 / 3 + rdif - bdif) + : b === v && (h = 2 / 3 + gdif - rdif), + h < 0 ? (h += 1) : h > 1 && (h -= 1)), + [360 * h, 100 * s, 100 * v] + ); + }), + (convert.rgb.hwb = function (rgb) { + var r = rgb[0], + g = rgb[1], + b = rgb[2]; + return [ + convert.rgb.hsl(rgb)[0], + 100 * ((1 / 255) * Math.min(r, Math.min(g, b))), + 100 * (b = 1 - (1 / 255) * Math.max(r, Math.max(g, b))), + ]; + }), + (convert.rgb.cmyk = function (rgb) { + var r = rgb[0] / 255, + g = rgb[1] / 255, + b = rgb[2] / 255, + k = Math.min(1 - r, 1 - g, 1 - b); + return [ + 100 * ((1 - r - k) / (1 - k) || 0), + 100 * ((1 - g - k) / (1 - k) || 0), + 100 * ((1 - b - k) / (1 - k) || 0), + 100 * k, + ]; + }), + (convert.rgb.keyword = function (rgb) { + var reversed = reverseKeywords[rgb]; + if (reversed) return reversed; + for ( + var currentClosestKeyword, + x, + y, + currentClosestDistance = 1 / 0, + _i3 = 0, + _Object$keys3 = Object.keys(cssKeywords); + _i3 < _Object$keys3.length; + _i3++ + ) { + var keyword = _Object$keys3[_i3], + value = cssKeywords[keyword], + distance = + ((x = rgb), + (y = value), + Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2)); + distance < currentClosestDistance && + ((currentClosestDistance = distance), (currentClosestKeyword = keyword)); + } + return currentClosestKeyword; + }), + (convert.keyword.rgb = function (keyword) { + return cssKeywords[keyword]; + }), + (convert.rgb.xyz = function (rgb) { + var r = rgb[0] / 255, + g = rgb[1] / 255, + b = rgb[2] / 255; + return [ + 100 * + (0.4124 * (r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92) + + 0.3576 * (g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92) + + 0.1805 * (b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92)), + 100 * (0.2126 * r + 0.7152 * g + 0.0722 * b), + 100 * (0.0193 * r + 0.1192 * g + 0.9505 * b), + ]; + }), + (convert.rgb.lab = function (rgb) { + var xyz = convert.rgb.xyz(rgb), + x = xyz[0], + y = xyz[1], + z = xyz[2]; + return ( + (y /= 100), + (z /= 108.883), + (x = (x /= 95.047) > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116), + [ + 116 * (y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116) - 16, + 500 * (x - y), + 200 * (y - (z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116)), + ] + ); + }), + (convert.hsl.rgb = function (hsl) { + var t2, + t3, + val, + h = hsl[0] / 360, + s = hsl[1] / 100, + l = hsl[2] / 100; + if (0 === s) return [(val = 255 * l), val, val]; + for (var t1 = 2 * l - (t2 = l < 0.5 ? l * (1 + s) : l + s - l * s), rgb = [0, 0, 0], i = 0; i < 3; i++) + (t3 = h + (1 / 3) * -(i - 1)) < 0 && t3++, + t3 > 1 && t3--, + (val = + 6 * t3 < 1 + ? t1 + 6 * (t2 - t1) * t3 + : 2 * t3 < 1 + ? t2 + : 3 * t3 < 2 + ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 + : t1), + (rgb[i] = 255 * val); + return rgb; + }), + (convert.hsl.hsv = function (hsl) { + var h = hsl[0], + s = hsl[1] / 100, + l = hsl[2] / 100, + smin = s, + lmin = Math.max(l, 0.01); + return ( + (s *= (l *= 2) <= 1 ? l : 2 - l), + (smin *= lmin <= 1 ? lmin : 2 - lmin), + [h, 100 * (0 === l ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s)), 100 * ((l + s) / 2)] + ); + }), + (convert.hsv.rgb = function (hsv) { + var h = hsv[0] / 60, + s = hsv[1] / 100, + v = hsv[2] / 100, + hi = Math.floor(h) % 6, + f = h - Math.floor(h), + p = 255 * v * (1 - s), + q = 255 * v * (1 - s * f), + t = 255 * v * (1 - s * (1 - f)); + switch (((v *= 255), hi)) { + case 0: + return [v, t, p]; + case 1: + return [q, v, p]; + case 2: + return [p, v, t]; + case 3: + return [p, q, v]; + case 4: + return [t, p, v]; + case 5: + return [v, p, q]; + } + }), + (convert.hsv.hsl = function (hsv) { + var sl, + l, + h = hsv[0], + s = hsv[1] / 100, + v = hsv[2] / 100, + vmin = Math.max(v, 0.01); + l = (2 - s) * v; + var lmin = (2 - s) * vmin; + return (sl = s * vmin), [h, 100 * (sl = (sl /= lmin <= 1 ? lmin : 2 - lmin) || 0), 100 * (l /= 2)]; + }), + (convert.hwb.rgb = function (hwb) { + var f, + h = hwb[0] / 360, + wh = hwb[1] / 100, + bl = hwb[2] / 100, + ratio = wh + bl; + ratio > 1 && ((wh /= ratio), (bl /= ratio)); + var i = Math.floor(6 * h), + v = 1 - bl; + (f = 6 * h - i), 0 != (1 & i) && (f = 1 - f); + var r, + g, + b, + n = wh + f * (v - wh); + switch (i) { + default: + case 6: + case 0: + (r = v), (g = n), (b = wh); + break; + case 1: + (r = n), (g = v), (b = wh); + break; + case 2: + (r = wh), (g = v), (b = n); + break; + case 3: + (r = wh), (g = n), (b = v); + break; + case 4: + (r = n), (g = wh), (b = v); + break; + case 5: + (r = v), (g = wh), (b = n); + } + return [255 * r, 255 * g, 255 * b]; + }), + (convert.cmyk.rgb = function (cmyk) { + var c = cmyk[0] / 100, + m = cmyk[1] / 100, + y = cmyk[2] / 100, + k = cmyk[3] / 100; + return [ + 255 * (1 - Math.min(1, c * (1 - k) + k)), + 255 * (1 - Math.min(1, m * (1 - k) + k)), + 255 * (1 - Math.min(1, y * (1 - k) + k)), + ]; + }), + (convert.xyz.rgb = function (xyz) { + var r, + g, + b, + x = xyz[0] / 100, + y = xyz[1] / 100, + z = xyz[2] / 100; + return ( + (g = -0.9689 * x + 1.8758 * y + 0.0415 * z), + (b = 0.0557 * x + -0.204 * y + 1.057 * z), + (r = + (r = 3.2406 * x + -1.5372 * y + -0.4986 * z) > 0.0031308 + ? 1.055 * Math.pow(r, 1 / 2.4) - 0.055 + : 12.92 * r), + (g = g > 0.0031308 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : 12.92 * g), + (b = b > 0.0031308 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : 12.92 * b), + [ + 255 * (r = Math.min(Math.max(0, r), 1)), + 255 * (g = Math.min(Math.max(0, g), 1)), + 255 * (b = Math.min(Math.max(0, b), 1)), + ] + ); + }), + (convert.xyz.lab = function (xyz) { + var x = xyz[0], + y = xyz[1], + z = xyz[2]; + return ( + (y /= 100), + (z /= 108.883), + (x = (x /= 95.047) > 0.008856 ? Math.pow(x, 1 / 3) : 7.787 * x + 16 / 116), + [ + 116 * (y = y > 0.008856 ? Math.pow(y, 1 / 3) : 7.787 * y + 16 / 116) - 16, + 500 * (x - y), + 200 * (y - (z = z > 0.008856 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116)), + ] + ); + }), + (convert.lab.xyz = function (lab) { + var x, + y, + z, + l = lab[0]; + (x = lab[1] / 500 + (y = (l + 16) / 116)), (z = y - lab[2] / 200); + var y2 = Math.pow(y, 3), + x2 = Math.pow(x, 3), + z2 = Math.pow(z, 3); + return ( + (y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787), + (x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787), + (z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787), + [(x *= 95.047), (y *= 100), (z *= 108.883)] + ); + }), + (convert.lab.lch = function (lab) { + var h, + l = lab[0], + a = lab[1], + b = lab[2]; + return (h = (360 * Math.atan2(b, a)) / 2 / Math.PI) < 0 && (h += 360), [l, Math.sqrt(a * a + b * b), h]; + }), + (convert.lch.lab = function (lch) { + var l = lch[0], + c = lch[1], + hr = (lch[2] / 360) * 2 * Math.PI; + return [l, c * Math.cos(hr), c * Math.sin(hr)]; + }), + (convert.rgb.ansi16 = function (args) { + var saturation = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null, + _args = _slicedToArray(args, 3), + r = _args[0], + g = _args[1], + b = _args[2], + value = null === saturation ? convert.rgb.hsv(args)[2] : saturation; + if (0 === (value = Math.round(value / 50))) return 30; + var ansi = 30 + ((Math.round(b / 255) << 2) | (Math.round(g / 255) << 1) | Math.round(r / 255)); + return 2 === value && (ansi += 60), ansi; + }), + (convert.hsv.ansi16 = function (args) { + return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); + }), + (convert.rgb.ansi256 = function (args) { + var r = args[0], + g = args[1], + b = args[2]; + return r === g && g === b + ? r < 8 + ? 16 + : r > 248 + ? 231 + : Math.round(((r - 8) / 247) * 24) + 232 + : 16 + 36 * Math.round((r / 255) * 5) + 6 * Math.round((g / 255) * 5) + Math.round((b / 255) * 5); + }), + (convert.ansi16.rgb = function (args) { + var color = args % 10; + if (0 === color || 7 === color) + return args > 50 && (color += 3.5), [(color = (color / 10.5) * 255), color, color]; + var mult = 0.5 * (1 + ~~(args > 50)); + return [(1 & color) * mult * 255, ((color >> 1) & 1) * mult * 255, ((color >> 2) & 1) * mult * 255]; + }), + (convert.ansi256.rgb = function (args) { + if (args >= 232) { + var c = 10 * (args - 232) + 8; + return [c, c, c]; + } + var rem; + return ( + (args -= 16), + [(Math.floor(args / 36) / 5) * 255, (Math.floor((rem = args % 36) / 6) / 5) * 255, ((rem % 6) / 5) * 255] + ); + }), + (convert.rgb.hex = function (args) { + var string = ( + ((255 & Math.round(args[0])) << 16) + + ((255 & Math.round(args[1])) << 8) + + (255 & Math.round(args[2])) + ) + .toString(16) + .toUpperCase(); + return '000000'.substring(string.length) + string; + }), + (convert.hex.rgb = function (args) { + var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match) return [0, 0, 0]; + var colorString = match[0]; + 3 === match[0].length && + (colorString = colorString + .split('') + .map(function (char) { + return char + char; + }) + .join('')); + var integer = parseInt(colorString, 16); + return [(integer >> 16) & 255, (integer >> 8) & 255, 255 & integer]; + }), + (convert.rgb.hcg = function (rgb) { + var hue, + r = rgb[0] / 255, + g = rgb[1] / 255, + b = rgb[2] / 255, + max = Math.max(Math.max(r, g), b), + min = Math.min(Math.min(r, g), b), + chroma = max - min; + return ( + (hue = + chroma <= 0 + ? 0 + : max === r + ? ((g - b) / chroma) % 6 + : max === g + ? 2 + (b - r) / chroma + : 4 + (r - g) / chroma), + (hue /= 6), + [360 * (hue %= 1), 100 * chroma, 100 * (chroma < 1 ? min / (1 - chroma) : 0)] + ); + }), + (convert.hsl.hcg = function (hsl) { + var s = hsl[1] / 100, + l = hsl[2] / 100, + c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l), + f = 0; + return c < 1 && (f = (l - 0.5 * c) / (1 - c)), [hsl[0], 100 * c, 100 * f]; + }), + (convert.hsv.hcg = function (hsv) { + var s = hsv[1] / 100, + v = hsv[2] / 100, + c = s * v, + f = 0; + return c < 1 && (f = (v - c) / (1 - c)), [hsv[0], 100 * c, 100 * f]; + }), + (convert.hcg.rgb = function (hcg) { + var h = hcg[0] / 360, + c = hcg[1] / 100, + g = hcg[2] / 100; + if (0 === c) return [255 * g, 255 * g, 255 * g]; + var mg, + pure = [0, 0, 0], + hi = (h % 1) * 6, + v = hi % 1, + w = 1 - v; + switch (Math.floor(hi)) { + case 0: + (pure[0] = 1), (pure[1] = v), (pure[2] = 0); + break; + case 1: + (pure[0] = w), (pure[1] = 1), (pure[2] = 0); + break; + case 2: + (pure[0] = 0), (pure[1] = 1), (pure[2] = v); + break; + case 3: + (pure[0] = 0), (pure[1] = w), (pure[2] = 1); + break; + case 4: + (pure[0] = v), (pure[1] = 0), (pure[2] = 1); + break; + default: + (pure[0] = 1), (pure[1] = 0), (pure[2] = w); + } + return (mg = (1 - c) * g), [255 * (c * pure[0] + mg), 255 * (c * pure[1] + mg), 255 * (c * pure[2] + mg)]; + }), + (convert.hcg.hsv = function (hcg) { + var c = hcg[1] / 100, + v = c + (hcg[2] / 100) * (1 - c), + f = 0; + return v > 0 && (f = c / v), [hcg[0], 100 * f, 100 * v]; + }), + (convert.hcg.hsl = function (hcg) { + var c = hcg[1] / 100, + l = (hcg[2] / 100) * (1 - c) + 0.5 * c, + s = 0; + return ( + l > 0 && l < 0.5 ? (s = c / (2 * l)) : l >= 0.5 && l < 1 && (s = c / (2 * (1 - l))), + [hcg[0], 100 * s, 100 * l] + ); + }), + (convert.hcg.hwb = function (hcg) { + var c = hcg[1] / 100, + v = c + (hcg[2] / 100) * (1 - c); + return [hcg[0], 100 * (v - c), 100 * (1 - v)]; + }), + (convert.hwb.hcg = function (hwb) { + var w = hwb[1] / 100, + v = 1 - hwb[2] / 100, + c = v - w, + g = 0; + return c < 1 && (g = (v - c) / (1 - c)), [hwb[0], 100 * c, 100 * g]; + }), + (convert.apple.rgb = function (apple) { + return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; + }), + (convert.rgb.apple = function (rgb) { + return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; + }), + (convert.gray.rgb = function (args) { + return [(args[0] / 100) * 255, (args[0] / 100) * 255, (args[0] / 100) * 255]; + }), + (convert.gray.hsl = function (args) { + return [0, 0, args[0]]; + }), + (convert.gray.hsv = convert.gray.hsl), + (convert.gray.hwb = function (gray) { + return [0, 100, gray[0]]; + }), + (convert.gray.cmyk = function (gray) { + return [0, 0, 0, gray[0]]; + }), + (convert.gray.lab = function (gray) { + return [gray[0], 0, 0]; + }), + (convert.gray.hex = function (gray) { + var val = 255 & Math.round((gray[0] / 100) * 255), + string = ((val << 16) + (val << 8) + val).toString(16).toUpperCase(); + return '000000'.substring(string.length) + string; + }), + (convert.rgb.gray = function (rgb) { + return [((rgb[0] + rgb[1] + rgb[2]) / 3 / 255) * 100]; + }); + }, + '../../node_modules/@storybook/components/node_modules/color-convert/index.js': ( + module, + __unused_webpack_exports, + __webpack_require__, + ) => { + __webpack_require__('../../node_modules/core-js/modules/es.object.keys.js'), + __webpack_require__('../../node_modules/core-js/modules/es.array.for-each.js'), + __webpack_require__('../../node_modules/core-js/modules/web.dom-collections.for-each.js'), + __webpack_require__('../../node_modules/core-js/modules/es.object.define-property.js'); + var conversions = __webpack_require__( + '../../node_modules/@storybook/components/node_modules/color-convert/conversions.js', + ), + route = __webpack_require__('../../node_modules/@storybook/components/node_modules/color-convert/route.js'), + convert = {}; + Object.keys(conversions).forEach(function (fromModel) { + (convert[fromModel] = {}), + Object.defineProperty(convert[fromModel], 'channels', { value: conversions[fromModel].channels }), + Object.defineProperty(convert[fromModel], 'labels', { value: conversions[fromModel].labels }); + var routes = route(fromModel); + Object.keys(routes).forEach(function (toModel) { + var fn = routes[toModel]; + (convert[fromModel][toModel] = (function wrapRounded(fn) { + var wrappedFn = function wrappedFn() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) + args[_key2] = arguments[_key2]; + var arg0 = args[0]; + if (null == arg0) return arg0; + arg0.length > 1 && (args = arg0); + var result = fn(args); + if ('object' == typeof result) + for (var len = result.length, i = 0; i < len; i++) result[i] = Math.round(result[i]); + return result; + }; + return 'conversion' in fn && (wrappedFn.conversion = fn.conversion), wrappedFn; + })(fn)), + (convert[fromModel][toModel].raw = (function wrapRaw(fn) { + var wrappedFn = function wrappedFn() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + var arg0 = args[0]; + return null == arg0 ? arg0 : (arg0.length > 1 && (args = arg0), fn(args)); + }; + return 'conversion' in fn && (wrappedFn.conversion = fn.conversion), wrappedFn; + })(fn)); + }); + }), + (module.exports = convert); + }, + '../../node_modules/@storybook/components/node_modules/color-convert/route.js': ( + module, + __unused_webpack_exports, + __webpack_require__, + ) => { + __webpack_require__('../../node_modules/core-js/modules/es.object.keys.js'); + var conversions = __webpack_require__( + '../../node_modules/@storybook/components/node_modules/color-convert/conversions.js', + ); + function deriveBFS(fromModel) { + var graph = (function buildGraph() { + for (var graph = {}, models = Object.keys(conversions), len = models.length, i = 0; i < len; i++) + graph[models[i]] = { distance: -1, parent: null }; + return graph; + })(), + queue = [fromModel]; + for (graph[fromModel].distance = 0; queue.length; ) + for ( + var current = queue.pop(), adjacents = Object.keys(conversions[current]), len = adjacents.length, i = 0; + i < len; + i++ + ) { + var adjacent = adjacents[i], + node = graph[adjacent]; + -1 === node.distance && + ((node.distance = graph[current].distance + 1), (node.parent = current), queue.unshift(adjacent)); + } + return graph; + } + function link(from, to) { + return function (args) { + return to(from(args)); + }; + } + function wrapConversion(toModel, graph) { + for ( + var path = [graph[toModel].parent, toModel], + fn = conversions[graph[toModel].parent][toModel], + cur = graph[toModel].parent; + graph[cur].parent; + + ) + path.unshift(graph[cur].parent), + (fn = link(conversions[graph[cur].parent][cur], fn)), + (cur = graph[cur].parent); + return (fn.conversion = path), fn; + } + module.exports = function (fromModel) { + for ( + var graph = deriveBFS(fromModel), conversion = {}, models = Object.keys(graph), len = models.length, i = 0; + i < len; + i++ + ) { + var toModel = models[i]; + null !== graph[toModel].parent && (conversion[toModel] = wrapConversion(toModel, graph)); + } + return conversion; + }; + }, + '../../node_modules/color-name/index.js': module => { + 'use strict'; + module.exports = { + aliceblue: [240, 248, 255], + antiquewhite: [250, 235, 215], + aqua: [0, 255, 255], + aquamarine: [127, 255, 212], + azure: [240, 255, 255], + beige: [245, 245, 220], + bisque: [255, 228, 196], + black: [0, 0, 0], + blanchedalmond: [255, 235, 205], + blue: [0, 0, 255], + blueviolet: [138, 43, 226], + brown: [165, 42, 42], + burlywood: [222, 184, 135], + cadetblue: [95, 158, 160], + chartreuse: [127, 255, 0], + chocolate: [210, 105, 30], + coral: [255, 127, 80], + cornflowerblue: [100, 149, 237], + cornsilk: [255, 248, 220], + crimson: [220, 20, 60], + cyan: [0, 255, 255], + darkblue: [0, 0, 139], + darkcyan: [0, 139, 139], + darkgoldenrod: [184, 134, 11], + darkgray: [169, 169, 169], + darkgreen: [0, 100, 0], + darkgrey: [169, 169, 169], + darkkhaki: [189, 183, 107], + darkmagenta: [139, 0, 139], + darkolivegreen: [85, 107, 47], + darkorange: [255, 140, 0], + darkorchid: [153, 50, 204], + darkred: [139, 0, 0], + darksalmon: [233, 150, 122], + darkseagreen: [143, 188, 143], + darkslateblue: [72, 61, 139], + darkslategray: [47, 79, 79], + darkslategrey: [47, 79, 79], + darkturquoise: [0, 206, 209], + darkviolet: [148, 0, 211], + deeppink: [255, 20, 147], + deepskyblue: [0, 191, 255], + dimgray: [105, 105, 105], + dimgrey: [105, 105, 105], + dodgerblue: [30, 144, 255], + firebrick: [178, 34, 34], + floralwhite: [255, 250, 240], + forestgreen: [34, 139, 34], + fuchsia: [255, 0, 255], + gainsboro: [220, 220, 220], + ghostwhite: [248, 248, 255], + gold: [255, 215, 0], + goldenrod: [218, 165, 32], + gray: [128, 128, 128], + green: [0, 128, 0], + greenyellow: [173, 255, 47], + grey: [128, 128, 128], + honeydew: [240, 255, 240], + hotpink: [255, 105, 180], + indianred: [205, 92, 92], + indigo: [75, 0, 130], + ivory: [255, 255, 240], + khaki: [240, 230, 140], + lavender: [230, 230, 250], + lavenderblush: [255, 240, 245], + lawngreen: [124, 252, 0], + lemonchiffon: [255, 250, 205], + lightblue: [173, 216, 230], + lightcoral: [240, 128, 128], + lightcyan: [224, 255, 255], + lightgoldenrodyellow: [250, 250, 210], + lightgray: [211, 211, 211], + lightgreen: [144, 238, 144], + lightgrey: [211, 211, 211], + lightpink: [255, 182, 193], + lightsalmon: [255, 160, 122], + lightseagreen: [32, 178, 170], + lightskyblue: [135, 206, 250], + lightslategray: [119, 136, 153], + lightslategrey: [119, 136, 153], + lightsteelblue: [176, 196, 222], + lightyellow: [255, 255, 224], + lime: [0, 255, 0], + limegreen: [50, 205, 50], + linen: [250, 240, 230], + magenta: [255, 0, 255], + maroon: [128, 0, 0], + mediumaquamarine: [102, 205, 170], + mediumblue: [0, 0, 205], + mediumorchid: [186, 85, 211], + mediumpurple: [147, 112, 219], + mediumseagreen: [60, 179, 113], + mediumslateblue: [123, 104, 238], + mediumspringgreen: [0, 250, 154], + mediumturquoise: [72, 209, 204], + mediumvioletred: [199, 21, 133], + midnightblue: [25, 25, 112], + mintcream: [245, 255, 250], + mistyrose: [255, 228, 225], + moccasin: [255, 228, 181], + navajowhite: [255, 222, 173], + navy: [0, 0, 128], + oldlace: [253, 245, 230], + olive: [128, 128, 0], + olivedrab: [107, 142, 35], + orange: [255, 165, 0], + orangered: [255, 69, 0], + orchid: [218, 112, 214], + palegoldenrod: [238, 232, 170], + palegreen: [152, 251, 152], + paleturquoise: [175, 238, 238], + palevioletred: [219, 112, 147], + papayawhip: [255, 239, 213], + peachpuff: [255, 218, 185], + peru: [205, 133, 63], + pink: [255, 192, 203], + plum: [221, 160, 221], + powderblue: [176, 224, 230], + purple: [128, 0, 128], + rebeccapurple: [102, 51, 153], + red: [255, 0, 0], + rosybrown: [188, 143, 143], + royalblue: [65, 105, 225], + saddlebrown: [139, 69, 19], + salmon: [250, 128, 114], + sandybrown: [244, 164, 96], + seagreen: [46, 139, 87], + seashell: [255, 245, 238], + sienna: [160, 82, 45], + silver: [192, 192, 192], + skyblue: [135, 206, 235], + slateblue: [106, 90, 205], + slategray: [112, 128, 144], + slategrey: [112, 128, 144], + snow: [255, 250, 250], + springgreen: [0, 255, 127], + steelblue: [70, 130, 180], + tan: [210, 180, 140], + teal: [0, 128, 128], + thistle: [216, 191, 216], + tomato: [255, 99, 71], + turquoise: [64, 224, 208], + violet: [238, 130, 238], + wheat: [245, 222, 179], + white: [255, 255, 255], + whitesmoke: [245, 245, 245], + yellow: [255, 255, 0], + yellowgreen: [154, 205, 50], + }; + }, + '../../node_modules/core-js/modules/es.date.to-string.js': ( + __unused_webpack_module, + __unused_webpack_exports, + __webpack_require__, + ) => { + var redefine = __webpack_require__('../../node_modules/core-js/internals/redefine.js'), + DatePrototype = Date.prototype, + nativeDateToString = DatePrototype.toString, + getTime = DatePrototype.getTime; + new Date(NaN) + '' != 'Invalid Date' && + redefine(DatePrototype, 'toString', function toString() { + var value = getTime.call(this); + return value == value ? nativeDateToString.call(this) : 'Invalid Date'; + }); + }, + '../../node_modules/lodash/throttle.js': (module, __unused_webpack_exports, __webpack_require__) => { + var debounce = __webpack_require__('../../node_modules/lodash/debounce.js'), + isObject = __webpack_require__('../../node_modules/lodash/isObject.js'); + module.exports = function throttle(func, wait, options) { + var leading = !0, + trailing = !0; + if ('function' != typeof func) throw new TypeError('Expected a function'); + return ( + isObject(options) && + ((leading = 'leading' in options ? !!options.leading : leading), + (trailing = 'trailing' in options ? !!options.trailing : trailing)), + debounce(func, wait, { leading, maxWait: wait, trailing }) + ); + }; + }, + }, +]); +//# sourceMappingURL=135.2ba59a88.iframe.bundle.js.map diff --git a/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js.map b/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js.map new file mode 100644 index 00000000000000..ec878234a0407a --- /dev/null +++ b/packages/react-menu/storybook-static/135.2ba59a88.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"135.2ba59a88.iframe.bundle.js","sources":["webpack://@fluentui/react-menu/135.2ba59a88.iframe.bundle.js"],"mappings":"AAAA","sourceRoot":""} \ No newline at end of file diff --git a/packages/react-menu/storybook-static/2.79197dde81a03a301057.manager.bundle.js b/packages/react-menu/storybook-static/2.79197dde81a03a301057.manager.bundle.js new file mode 100644 index 00000000000000..fa6a9d0de65bd7 --- /dev/null +++ b/packages/react-menu/storybook-static/2.79197dde81a03a301057.manager.bundle.js @@ -0,0 +1,105065 @@ +/*! For license information please see 2.79197dde81a03a301057.manager.bundle.js.LICENSE.txt */ +(self.webpackChunk_fluentui_react_menu = self.webpackChunk_fluentui_react_menu || []).push([ + [2], + { + 73989: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + __webpack_require__.d(__webpack_exports__, { Z: () => _assertThisInitialized }); + }, + 51119: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + __webpack_require__.d(__webpack_exports__, { Z: () => _defineProperty }); + }, + 7560: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + __webpack_require__.d(__webpack_exports__, { Z: () => _extends }); + }, + 75630: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + __webpack_require__.d(__webpack_exports__, { Z: () => _getPrototypeOf }); + }, + 35307: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => _inheritsLoose }); + var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74938); + function _inheritsLoose(subClass, superClass) { + (subClass.prototype = Object.create(superClass.prototype)), + (subClass.prototype.constructor = subClass), + (0, _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.Z)(subClass, superClass); + } + }, + 54530: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => _objectWithoutProperties }); + var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98283); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (0, _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__.Z)(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + }, + 98283: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + } + __webpack_require__.d(__webpack_exports__, { Z: () => _objectWithoutPropertiesLoose }); + }, + 74938: (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + __webpack_require__.d(__webpack_exports__, { Z: () => _setPrototypeOf }); + }, + 5049: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => cache_browser_esm }); + var sheet_browser_esm = __webpack_require__(26617); + const stylis_browser_esm = function stylis_min(W) { + function M(d, c, e, h, a) { + for ( + var q, + g, + k, + y, + C, + m = 0, + b = 0, + v = 0, + n = 0, + x = 0, + K = 0, + u = (k = q = 0), + l = 0, + r = 0, + I = 0, + t = 0, + B = e.length, + J = B - 1, + f = '', + p = '', + F = '', + G = ''; + l < B; + + ) { + if ( + ((g = e.charCodeAt(l)), + l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), (n = v = m = 0), B++, J++), + 0 === b + n + v + m) + ) { + if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) { + switch (g) { + case 32: + case 9: + case 59: + case 13: + case 10: + break; + default: + f += e.charAt(l); + } + g = 59; + } + switch (g) { + case 123: + for (q = (f = f.trim()).charCodeAt(0), k = 1, t = ++l; l < B; ) { + switch ((g = e.charCodeAt(l))) { + case 123: + k++; + break; + case 125: + k--; + break; + case 47: + switch ((g = e.charCodeAt(l + 1))) { + case 42: + case 47: + a: { + for (u = l + 1; u < J; ++u) + switch (e.charCodeAt(u)) { + case 47: + if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) { + l = u + 1; + break a; + } + break; + case 10: + if (47 === g) { + l = u + 1; + break a; + } + } + l = u; + } + } + break; + case 91: + g++; + case 40: + g++; + case 34: + case 39: + for (; l++ < J && e.charCodeAt(l) !== g; ); + } + if (0 === k) break; + l++; + } + if ( + ((k = e.substring(t, l)), 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0)), 64 === q) + ) { + switch ((0 < r && (f = f.replace(N, '')), (g = f.charCodeAt(1)))) { + case 100: + case 109: + case 115: + case 45: + r = c; + break; + default: + r = O; + } + if ( + ((t = (k = M(c, r, k, g, a + 1)).length), + 0 < A && + ((C = H(3, k, (r = X(O, f, I)), c, D, z, t, g, a, h)), + (f = r.join('')), + void 0 !== C && 0 === (t = (k = C.trim()).length) && ((g = 0), (k = ''))), + 0 < t) + ) + switch (g) { + case 115: + f = f.replace(da, ea); + case 100: + case 109: + case 45: + k = f + '{' + k + '}'; + break; + case 107: + (k = (f = f.replace(fa, '$1 $2')) + '{' + k + '}'), + (k = 1 === w || (2 === w && L('@' + k, 3)) ? '@-webkit-' + k + '@' + k : '@' + k); + break; + default: + (k = f + k), 112 === h && ((p += k), (k = '')); + } + else k = ''; + } else k = M(c, X(c, f, I), k, h, a + 1); + (F += k), (k = I = r = u = q = 0), (f = ''), (g = e.charCodeAt(++l)); + break; + case 125: + case 59: + if (1 < (t = (f = (0 < r ? f.replace(N, '') : f).trim()).length)) + switch ( + (0 === u && + ((q = f.charCodeAt(0)), 45 === q || (96 < q && 123 > q)) && + (t = (f = f.replace(' ', ':')).length), + 0 < A && + void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && + 0 === (t = (f = C.trim()).length) && + (f = '\0\0'), + (q = f.charCodeAt(0)), + (g = f.charCodeAt(1)), + q) + ) { + case 0: + break; + case 64: + if (105 === g || 99 === g) { + G += f + e.charAt(l); + break; + } + default: + 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); + } + (I = r = u = q = 0), (f = ''), (g = e.charCodeAt(++l)); + } + } + switch (g) { + case 13: + case 10: + 47 === b ? (b = 0) : 0 === 1 + q && 107 !== h && 0 < f.length && ((r = 1), (f += '\0')), + 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h), + (z = 1), + D++; + break; + case 59: + case 125: + if (0 === b + n + v + m) { + z++; + break; + } + default: + switch ((z++, (y = e.charAt(l)), g)) { + case 9: + case 32: + if (0 === n + m + b) + switch (x) { + case 44: + case 58: + case 9: + case 32: + y = ''; + break; + default: + 32 !== g && (y = ' '); + } + break; + case 0: + y = '\\0'; + break; + case 12: + y = '\\f'; + break; + case 11: + y = '\\v'; + break; + case 38: + 0 === n + b + m && ((r = I = 1), (y = '\f' + y)); + break; + case 108: + if (0 === n + b + m + E && 0 < u) + switch (l - u) { + case 2: + 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); + case 8: + 111 === K && (E = K); + } + break; + case 58: + 0 === n + b + m && (u = l); + break; + case 44: + 0 === b + v + n + m && ((r = 1), (y += '\r')); + break; + case 34: + case 39: + 0 === b && (n = n === g ? 0 : 0 === n ? g : n); + break; + case 91: + 0 === n + b + v && m++; + break; + case 93: + 0 === n + b + v && m--; + break; + case 41: + 0 === n + b + m && v--; + break; + case 40: + if (0 === n + b + m) { + if (0 === q) + if (2 * x + 3 * K == 533); + else q = 1; + v++; + } + break; + case 64: + 0 === b + v + n + m + u + k && (k = 1); + break; + case 42: + case 47: + if (!(0 < n + m + v)) + switch (b) { + case 0: + switch (2 * g + 3 * e.charCodeAt(l + 1)) { + case 235: + b = 47; + break; + case 220: + (t = l), (b = 42); + } + break; + case 42: + 47 === g && + 42 === x && + t + 2 !== l && + (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), (y = ''), (b = 0)); + } + } + 0 === b && (f += y); + } + (K = x), (x = g), l++; + } + if (0 < (t = p.length)) { + if (((r = c), 0 < A && void 0 !== (C = H(2, p, r, d, D, z, t, h, a, h)) && 0 === (p = C).length)) + return G + p + F; + if (((p = r.join(',') + '{' + p + '}'), 0 != w * E)) { + switch ((2 !== w || L(p, 2) || (E = 0), E)) { + case 111: + p = p.replace(ha, ':-moz-$1') + p; + break; + case 112: + p = + p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p; + } + E = 0; + } + } + return G + p + F; + } + function X(d, c, e) { + var h = c.trim().split(ia); + c = h; + var a = h.length, + m = d.length; + switch (m) { + case 0: + case 1: + var b = 0; + for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) c[b] = Z(d, c[b], e).trim(); + break; + default: + var v = (b = 0); + for (c = []; b < a; ++b) for (var n = 0; n < m; ++n) c[v++] = Z(d[n] + ' ', h[b], e).trim(); + } + return c; + } + function Z(d, c, e) { + var h = c.charCodeAt(0); + switch ((33 > h && (h = (c = c.trim()).charCodeAt(0)), h)) { + case 38: + return c.replace(F, '$1' + d.trim()); + case 58: + return d.trim() + c.replace(F, '$1' + d.trim()); + default: + if (0 < 1 * e && 0 < c.indexOf('\f')) + return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim()); + } + return d + c; + } + function P(d, c, e, h) { + var a = d + ';', + m = 2 * c + 3 * e + 4 * h; + if (944 === m) { + d = a.indexOf(':', 9) + 1; + var b = a.substring(d, a.length - 1).trim(); + return (b = a.substring(0, d).trim() + b + ';'), 1 === w || (2 === w && L(b, 1)) ? '-webkit-' + b + b : b; + } + if (0 === w || (2 === w && !L(a, 1))) return a; + switch (m) { + case 1015: + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + case 951: + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + case 963: + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + case 1009: + if (100 !== a.charCodeAt(4)) break; + case 969: + case 942: + return '-webkit-' + a + a; + case 978: + return '-webkit-' + a + '-moz-' + a + a; + case 1019: + case 983: + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + case 883: + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a; + break; + case 932: + if (45 === a.charCodeAt(4)) + switch (a.charCodeAt(5)) { + case 103: + return ( + '-webkit-box-' + + a.replace('-grow', '') + + '-webkit-' + + a + + '-ms-' + + a.replace('grow', 'positive') + + a + ); + case 115: + return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a; + case 98: + return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a; + } + return '-webkit-' + a + '-ms-' + a + a; + case 964: + return '-webkit-' + a + '-ms-flex-' + a + a; + case 1023: + if (99 !== a.charCodeAt(8)) break; + return ( + '-webkit-box-pack' + + (b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')) + + '-webkit-' + + a + + '-ms-flex-pack' + + b + + a + ); + case 1005: + return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a; + case 1e3: + switch (((c = (b = a.substring(13).trim()).indexOf('-') + 1), b.charCodeAt(0) + b.charCodeAt(c))) { + case 226: + b = a.replace(G, 'tb'); + break; + case 232: + b = a.replace(G, 'tb-rl'); + break; + case 220: + b = a.replace(G, 'lr'); + break; + default: + return a; + } + return '-webkit-' + a + '-ms-' + b + a; + case 1017: + if (-1 === a.indexOf('sticky', 9)) break; + case 975: + switch ( + ((c = (a = d).length - 10), + (m = + (b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a) + .substring(d.indexOf(':', 7) + 1) + .trim()).charCodeAt(0) + + (0 | b.charCodeAt(7)))) + ) { + case 203: + if (111 > b.charCodeAt(8)) break; + case 115: + a = a.replace(b, '-webkit-' + b) + ';' + a; + break; + case 207: + case 102: + a = + a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + + ';' + + a.replace(b, '-webkit-' + b) + + ';' + + a.replace(b, '-ms-' + b + 'box') + + ';' + + a; + } + return a + ';'; + case 938: + if (45 === a.charCodeAt(5)) + switch (a.charCodeAt(6)) { + case 105: + return (b = a.replace('-items', '')), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a; + case 115: + return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a; + default: + return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a; + } + break; + case 973: + case 989: + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + case 931: + case 953: + if (!0 === la.test(d)) + return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) + ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') + : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a; + break; + case 962: + if ( + ((a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a), + 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) + ) + return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a; + } + return a; + } + function L(d, c) { + var e = d.indexOf(1 === c ? ':' : '{'), + h = d.substring(0, 3 !== c ? e : 10); + return (e = d.substring(e + 1, d.length - 1)), R(2 !== c ? h : h.replace(na, '$1'), e, c); + } + function ea(d, c) { + var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); + return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')'; + } + function H(d, c, e, h, a, m, b, v, n, q) { + for (var w, g = 0, x = c; g < A; ++g) + switch ((w = S[g].call(B, d, x, e, h, a, m, b, v, n, q))) { + case void 0: + case !1: + case !0: + case null: + break; + default: + x = w; + } + if (x !== c) return x; + } + function U(d) { + return ( + void 0 !== (d = d.prefix) && + ((R = null), d ? ('function' != typeof d ? (w = 1) : ((w = 2), (R = d))) : (w = 0)), + U + ); + } + function B(d, c) { + var e = d; + if ((33 > e.charCodeAt(0) && (e = e.trim()), (e = [e]), 0 < A)) { + var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); + void 0 !== h && 'string' == typeof h && (c = h); + } + var a = M(O, e, c, 0, 0); + return ( + 0 < A && void 0 !== (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0)) && (a = h), '', (E = 0), (z = D = 1), a + ); + } + var ca = /^\0+/g, + N = /[\0\r\f]/g, + aa = /: */g, + ka = /zoo|gra/, + ma = /([,: ])(transform)/g, + ia = /,\r+?/g, + F = /([\t\r\n ])*\f?&/g, + fa = /@(k\w+)\s*(\S*)\s*/, + Q = /::(place)/g, + ha = /:(read-only)/g, + G = /[svh]\w+-[tblr]{2}/, + da = /\(\s*(.*)\s*\)/g, + oa = /([\s\S]*?);/g, + ba = /-self|flex-/g, + na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + la = /stretch|:\s*\w+\-(?:conte|avail)/, + ja = /([^-])(image-set\()/, + z = 1, + D = 1, + E = 0, + w = 1, + O = [], + S = [], + A = 0, + R = null, + Y = 0; + return ( + (B.use = function T(d) { + switch (d) { + case void 0: + case null: + A = S.length = 0; + break; + default: + if ('function' == typeof d) S[A++] = d; + else if ('object' == typeof d) for (var c = 0, e = d.length; c < e; ++c) T(d[c]); + else Y = 0 | !!d; + } + return T; + }), + (B.set = U), + void 0 !== W && U(W), + B + ); + }; + function toSheet(block) { + block && Sheet.current.insert(block + '}'); + } + var Sheet = { current: null }, + ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) { + switch (context) { + case 1: + switch (content.charCodeAt(0)) { + case 64: + return Sheet.current.insert(content + ';'), ''; + case 108: + if (98 === content.charCodeAt(2)) return ''; + } + break; + case 2: + if (0 === ns) return content + '/*|*/'; + break; + case 3: + switch (ns) { + case 102: + case 112: + return Sheet.current.insert(selectors[0] + content), ''; + default: + return content + (0 === at ? '/*|*/' : ''); + } + case -2: + content.split('/*|*/}').forEach(toSheet); + } + }; + const cache_browser_esm = function createCache(options) { + void 0 === options && (options = {}); + var stylisOptions, + key = options.key || 'css'; + void 0 !== options.prefix && (stylisOptions = { prefix: options.prefix }); + var stylis = new stylis_browser_esm(stylisOptions); + if (/[^a-z-]/.test(key)) + throw new Error( + 'Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed', + ); + var container, + inserted = {}; + container = options.container || document.head; + var _insert, + nodes = document.querySelectorAll('style[data-emotion-' + key + ']'); + Array.prototype.forEach.call(nodes, function (node) { + node + .getAttribute('data-emotion-' + key) + .split(' ') + .forEach(function (id) { + inserted[id] = !0; + }), + node.parentNode !== container && container.appendChild(node); + }), + stylis.use(options.stylisPlugins)(ruleSheet), + (_insert = function insert(selector, serialized, sheet, shouldCache) { + var name = serialized.name; + if (((Sheet.current = sheet), void 0 !== serialized.map)) { + var map = serialized.map; + Sheet.current = { + insert: function insert(rule) { + sheet.insert(rule + map); + }, + }; + } + stylis(selector, serialized.styles), shouldCache && (cache.inserted[name] = !0); + }); + var commentStart = /\/\*/g, + commentEnd = /\*\//g; + stylis.use(function (context, content) { + if (-1 === context) { + for (; commentStart.test(content); ) { + if (((commentEnd.lastIndex = commentStart.lastIndex), !commentEnd.test(content))) + throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").'); + commentStart.lastIndex = commentEnd.lastIndex; + } + commentStart.lastIndex = 0; + } + }), + stylis.use(function (context, content, selectors) { + if (-1 === context) { + var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g); + unsafePseudoClasses && + !0 !== cache.compat && + unsafePseudoClasses.forEach(function (unsafePseudoClass) { + var ignore = new RegExp( + unsafePseudoClass + + '.*\\/\\* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason \\*\\/', + ).test(content); + unsafePseudoClass && + !ignore && + console.error( + 'The pseudo class "' + + unsafePseudoClass + + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + + unsafePseudoClass.split('-child')[0] + + '-of-type".', + ); + }); + } + }); + var cache = { + key, + sheet: new sheet_browser_esm.m({ key, container, nonce: options.nonce, speedy: options.speedy }), + nonce: options.nonce, + inserted, + registered: {}, + insert: _insert, + }; + return cache; + }; + }, + 47134: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + nq: () => CacheProvider, + ms: () => ClassNames, + xB: () => Global, + Ni: () => ThemeContext, + az: () => jsx, + iv: () => css_browser_esm.Z, + tZ: () => jsx, + F4: () => keyframes, + Xn: () => withEmotionCache, + }); + var inheritsLoose = __webpack_require__(35307), + react = __webpack_require__(2784), + cache_browser_esm = __webpack_require__(5049), + utils_browser_esm = __webpack_require__(19057), + serialize_browser_esm = __webpack_require__(54268), + emotion_element_57a3a7a3_browser_esm_hasOwnProperty = Object.prototype.hasOwnProperty, + EmotionCacheContext = (0, react.createContext)( + 'undefined' != typeof HTMLElement ? (0, cache_browser_esm.Z)() : null, + ), + ThemeContext = (0, react.createContext)({}), + CacheProvider = EmotionCacheContext.Provider, + withEmotionCache = function withEmotionCache(func) { + var render = function render(props, ref) { + return (0, react.createElement)(EmotionCacheContext.Consumer, null, function (cache) { + return func(props, cache, ref); + }); + }; + return (0, react.forwardRef)(render); + }, + typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__', + labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__', + createEmotionProps = function createEmotionProps(type, props) { + if ('string' == typeof props.css && -1 !== props.css.indexOf(':')) + throw new Error( + "Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + + props.css + + '`', + ); + var newProps = {}; + for (var key in props) + emotion_element_57a3a7a3_browser_esm_hasOwnProperty.call(props, key) && (newProps[key] = props[key]); + newProps[typePropName] = type; + var error = new Error(); + if (error.stack) { + var match = error.stack.match( + /at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /, + ); + match || (match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/)), + match && + (newProps[labelPropName] = (function sanitizeIdentifier(identifier) { + return identifier.replace(/\$/g, '-'); + })(match[1])); + } + return newProps; + }, + render = function render(cache, props, theme, ref) { + var cssProp = null === theme ? props.css : props.css(theme); + 'string' == typeof cssProp && void 0 !== cache.registered[cssProp] && (cssProp = cache.registered[cssProp]); + var type = props[typePropName], + registeredStyles = [cssProp], + className = ''; + 'string' == typeof props.className + ? (className = (0, utils_browser_esm.f)(cache.registered, registeredStyles, props.className)) + : null != props.className && (className = props.className + ' '); + var serialized = (0, serialize_browser_esm.O)(registeredStyles); + if (-1 === serialized.name.indexOf('-')) { + var labelFromStack = props[labelPropName]; + labelFromStack && + (serialized = (0, serialize_browser_esm.O)([serialized, 'label:' + labelFromStack + ';'])); + } + (0, utils_browser_esm.M)(cache, serialized, 'string' == typeof type); + className += cache.key + '-' + serialized.name; + var newProps = {}; + for (var key in props) + emotion_element_57a3a7a3_browser_esm_hasOwnProperty.call(props, key) && + 'css' !== key && + key !== typePropName && + key !== labelPropName && + (newProps[key] = props[key]); + return (newProps.ref = ref), (newProps.className = className), (0, react.createElement)(type, newProps); + }, + Emotion = withEmotionCache(function (props, cache, ref) { + return 'function' == typeof props.css + ? (0, react.createElement)(ThemeContext.Consumer, null, function (theme) { + return render(cache, props, theme, ref); + }) + : render(cache, props, null, ref); + }); + Emotion.displayName = 'EmotionCssPropInternal'; + var sheet_browser_esm = __webpack_require__(26617), + css_browser_esm = __webpack_require__(78951), + jsx = function jsx(type, props) { + var args = arguments; + if (null == props || !emotion_element_57a3a7a3_browser_esm_hasOwnProperty.call(props, 'css')) + return react.createElement.apply(void 0, args); + var argsLength = args.length, + createElementArgArray = new Array(argsLength); + (createElementArgArray[0] = Emotion), (createElementArgArray[1] = createEmotionProps(type, props)); + for (var i = 2; i < argsLength; i++) createElementArgArray[i] = args[i]; + return react.createElement.apply(null, createElementArgArray); + }, + warnedAboutCssPropForGlobal = !1, + Global = withEmotionCache(function (props, cache) { + warnedAboutCssPropForGlobal || + (!props.className && !props.css) || + (console.error( + "It looks like you're using the css prop on Global, did you mean to use the styles prop instead?", + ), + (warnedAboutCssPropForGlobal = !0)); + var styles = props.styles; + if ('function' == typeof styles) + return (0, react.createElement)(ThemeContext.Consumer, null, function (theme) { + var serialized = (0, serialize_browser_esm.O)([styles(theme)]); + return (0, react.createElement)(InnerGlobal, { serialized, cache }); + }); + var serialized = (0, serialize_browser_esm.O)([styles]); + return (0, react.createElement)(InnerGlobal, { serialized, cache }); + }), + InnerGlobal = (function (_React$Component) { + function InnerGlobal(props, context, updater) { + return _React$Component.call(this, props, context, updater) || this; + } + (0, inheritsLoose.Z)(InnerGlobal, _React$Component); + var _proto = InnerGlobal.prototype; + return ( + (_proto.componentDidMount = function componentDidMount() { + this.sheet = new sheet_browser_esm.m({ + key: this.props.cache.key + '-global', + nonce: this.props.cache.sheet.nonce, + container: this.props.cache.sheet.container, + }); + var node = document.querySelector( + 'style[data-emotion-' + this.props.cache.key + '="' + this.props.serialized.name + '"]', + ); + null !== node && this.sheet.tags.push(node), + this.props.cache.sheet.tags.length && (this.sheet.before = this.props.cache.sheet.tags[0]), + this.insertStyles(); + }), + (_proto.componentDidUpdate = function componentDidUpdate(prevProps) { + prevProps.serialized.name !== this.props.serialized.name && this.insertStyles(); + }), + (_proto.insertStyles = function insertStyles$1() { + if ( + (void 0 !== this.props.serialized.next && + (0, utils_browser_esm.M)(this.props.cache, this.props.serialized.next, !0), + this.sheet.tags.length) + ) { + var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling; + (this.sheet.before = element), this.sheet.flush(); + } + this.props.cache.insert('', this.props.serialized, this.sheet, !1); + }), + (_proto.componentWillUnmount = function componentWillUnmount() { + this.sheet.flush(); + }), + (_proto.render = function render() { + return null; + }), + InnerGlobal + ); + })(react.Component), + keyframes = function keyframes() { + var insertable = css_browser_esm.Z.apply(void 0, arguments), + name = 'animation-' + insertable.name; + return { + name, + styles: '@keyframes ' + name + '{' + insertable.styles + '}', + anim: 1, + toString: function toString() { + return '_EMO_' + this.name + '_' + this.styles + '_EMO_'; + }, + }; + }, + classnames = function classnames(args) { + for (var len = args.length, i = 0, cls = ''; i < len; i++) { + var arg = args[i]; + if (null != arg) { + var toAdd = void 0; + switch (typeof arg) { + case 'boolean': + break; + case 'object': + if (Array.isArray(arg)) toAdd = classnames(arg); + else for (var k in ((toAdd = ''), arg)) arg[k] && k && (toAdd && (toAdd += ' '), (toAdd += k)); + break; + default: + toAdd = arg; + } + toAdd && (cls && (cls += ' '), (cls += toAdd)); + } + } + return cls; + }; + function merge(registered, css, className) { + var registeredStyles = [], + rawClassName = (0, utils_browser_esm.f)(registered, registeredStyles, className); + return registeredStyles.length < 2 ? className : rawClassName + css(registeredStyles); + } + var ClassNames = withEmotionCache(function (props, context) { + return (0, react.createElement)(ThemeContext.Consumer, null, function (theme) { + var hasRendered = !1, + css = function css() { + if (hasRendered) throw new Error('css can only be used during render'); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + var serialized = (0, serialize_browser_esm.O)(args, context.registered); + return (0, utils_browser_esm.M)(context, serialized, !1), context.key + '-' + serialized.name; + }, + content = { + css, + cx: function cx() { + if (hasRendered) throw new Error('cx can only be used during render'); + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) + args[_key2] = arguments[_key2]; + return merge(context.registered, css, classnames(args)); + }, + theme, + }, + ele = props.children(content); + return (hasRendered = !0), ele; + }); + }); + }, + 78951: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + var _emotion_serialize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54268); + const __WEBPACK_DEFAULT_EXPORT__ = function css() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return (0, _emotion_serialize__WEBPACK_IMPORTED_MODULE_0__.O)(args); + }; + }, + 96607: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3369), + reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; + const __WEBPACK_DEFAULT_EXPORT__ = (0, _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__.Z)(function (prop) { + return ( + reactPropsRegex.test(prop) || + (111 === prop.charCodeAt(0) && 110 === prop.charCodeAt(1) && prop.charCodeAt(2) < 91) + ); + }); + }, + 3369: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + const __WEBPACK_DEFAULT_EXPORT__ = function memoize(fn) { + var cache = {}; + return function (arg) { + return void 0 === cache[arg] && (cache[arg] = fn(arg)), cache[arg]; + }; + }; + }, + 54268: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { O: () => serializeStyles }); + const hash_browser_esm = function murmurhash2_32_gc(str) { + for (var k, l = str.length, h = l ^ l, i = 0; l >= 4; ) + (k = + 1540483477 * + (65535 & + (k = + (255 & str.charCodeAt(i)) | + ((255 & str.charCodeAt(++i)) << 8) | + ((255 & str.charCodeAt(++i)) << 16) | + ((255 & str.charCodeAt(++i)) << 24))) + + (((1540483477 * (k >>> 16)) & 65535) << 16)), + (h = + (1540483477 * (65535 & h) + (((1540483477 * (h >>> 16)) & 65535) << 16)) ^ + (k = 1540483477 * (65535 & (k ^= k >>> 24)) + (((1540483477 * (k >>> 16)) & 65535) << 16))), + (l -= 4), + ++i; + switch (l) { + case 3: + h ^= (255 & str.charCodeAt(i + 2)) << 16; + case 2: + h ^= (255 & str.charCodeAt(i + 1)) << 8; + case 1: + h = 1540483477 * (65535 & (h ^= 255 & str.charCodeAt(i))) + (((1540483477 * (h >>> 16)) & 65535) << 16); + } + return ( + (h = 1540483477 * (65535 & (h ^= h >>> 13)) + (((1540483477 * (h >>> 16)) & 65535) << 16)), + ((h ^= h >>> 15) >>> 0).toString(36) + ); + }; + const unitless_browser_esm = { + animationIterationCount: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1, + }; + var memoize_browser_esm = __webpack_require__(3369), + ILLEGAL_ESCAPE_SEQUENCE_ERROR = + "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences", + UNDEFINED_AS_OBJECT_KEY_ERROR = + "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", + hyphenateRegex = /[A-Z]|^ms/g, + animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, + isCustomProperty = function isCustomProperty(property) { + return 45 === property.charCodeAt(1); + }, + isProcessableValue = function isProcessableValue(value) { + return null != value && 'boolean' != typeof value; + }, + processStyleName = (0, memoize_browser_esm.Z)(function (styleName) { + return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); + }), + processStyleValue = function processStyleValue(key, value) { + switch (key) { + case 'animation': + case 'animationName': + if ('string' == typeof value) + return value.replace(animationRegex, function (match, p1, p2) { + return (cursor = { name: p1, styles: p2, next: cursor }), p1; + }); + } + return 1 === unitless_browser_esm[key] || isCustomProperty(key) || 'number' != typeof value || 0 === value + ? value + : value + 'px'; + }, + contentValuePattern = /(attr|calc|counters?|url)\(/, + contentValues = [ + 'normal', + 'none', + 'counter', + 'open-quote', + 'close-quote', + 'no-open-quote', + 'no-close-quote', + 'initial', + 'inherit', + 'unset', + ], + oldProcessStyleValue = processStyleValue, + msPattern = /^-ms-/, + hyphenPattern = /-(.)/g, + hyphenatedCache = {}; + processStyleValue = function processStyleValue(key, value) { + 'content' === key && + ('string' != typeof value || + (-1 === contentValues.indexOf(value) && + !contentValuePattern.test(value) && + (value.charAt(0) !== value.charAt(value.length - 1) || + ('"' !== value.charAt(0) && "'" !== value.charAt(0))))) && + console.error( + "You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + + value + + '"\'`', + ); + var processed = oldProcessStyleValue(key, value); + return ( + '' === processed || + isCustomProperty(key) || + -1 === key.indexOf('-') || + void 0 !== hyphenatedCache[key] || + ((hyphenatedCache[key] = !0), + console.error( + 'Using kebab-case for css properties in objects is not supported. Did you mean ' + + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { + return _char.toUpperCase(); + }) + + '?', + )), + processed + ); + }; + var shouldWarnAboutInterpolatingClassNameFromCss = !0; + function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) { + if (null == interpolation) return ''; + if (void 0 !== interpolation.__emotion_styles) { + if ('NO_COMPONENT_SELECTOR' === interpolation.toString()) + throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); + return interpolation; + } + switch (typeof interpolation) { + case 'boolean': + return ''; + case 'object': + if (1 === interpolation.anim) + return ( + (cursor = { name: interpolation.name, styles: interpolation.styles, next: cursor }), interpolation.name + ); + if (void 0 !== interpolation.styles) { + var next = interpolation.next; + if (void 0 !== next) + for (; void 0 !== next; ) + (cursor = { name: next.name, styles: next.styles, next: cursor }), (next = next.next); + var styles = interpolation.styles + ';'; + return void 0 !== interpolation.map && (styles += interpolation.map), styles; + } + return (function createStringFromObject(mergedProps, registered, obj) { + var string = ''; + if (Array.isArray(obj)) + for (var i = 0; i < obj.length; i++) string += handleInterpolation(mergedProps, registered, obj[i], !1); + else + for (var _key in obj) { + var value = obj[_key]; + if ('object' != typeof value) + null != registered && void 0 !== registered[value] + ? (string += _key + '{' + registered[value] + '}') + : isProcessableValue(value) && + (string += processStyleName(_key) + ':' + processStyleValue(_key, value) + ';'); + else { + if ('NO_COMPONENT_SELECTOR' === _key) + throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); + if ( + !Array.isArray(value) || + 'string' != typeof value[0] || + (null != registered && void 0 !== registered[value[0]]) + ) { + var interpolated = handleInterpolation(mergedProps, registered, value, !1); + switch (_key) { + case 'animation': + case 'animationName': + string += processStyleName(_key) + ':' + interpolated + ';'; + break; + default: + 'undefined' === _key && console.error(UNDEFINED_AS_OBJECT_KEY_ERROR), + (string += _key + '{' + interpolated + '}'); + } + } else + for (var _i = 0; _i < value.length; _i++) + isProcessableValue(value[_i]) && + (string += processStyleName(_key) + ':' + processStyleValue(_key, value[_i]) + ';'); + } + } + return string; + })(mergedProps, registered, interpolation); + case 'function': + if (void 0 !== mergedProps) { + var previousCursor = cursor, + result = interpolation(mergedProps); + return ( + (cursor = previousCursor), + handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation) + ); + } + console.error( + "Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`", + ); + break; + case 'string': + var matched = [], + replaced = interpolation.replace(animationRegex, function (match, p1, p2) { + var fakeVarName = 'animation' + matched.length; + return ( + matched.push( + 'const ' + fakeVarName + ' = keyframes`' + p2.replace(/^@keyframes animation-\w+/, '') + '`', + ), + '${' + fakeVarName + '}' + ); + }); + matched.length && + console.error( + '`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n' + + [].concat(matched, ['`' + replaced + '`']).join('\n') + + '\n\nYou should wrap it with `css` like this:\n\ncss`' + + replaced + + '`', + ); + } + if (null == registered) return interpolation; + var cached = registered[interpolation]; + return ( + couldBeSelectorInterpolation && + shouldWarnAboutInterpolatingClassNameFromCss && + void 0 !== cached && + (console.error( + 'Interpolating a className from css`` is not recommended and will cause problems with composition.\nInterpolating a className from css`` will be completely unsupported in a future major version of Emotion', + ), + (shouldWarnAboutInterpolatingClassNameFromCss = !1)), + void 0 === cached || couldBeSelectorInterpolation ? interpolation : cached + ); + } + var sourceMapPattern, + cursor, + labelPattern = /label:\s*([^\s;\n{]+)\s*;/g; + sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//; + var serializeStyles = function serializeStyles(args, registered, mergedProps) { + if (1 === args.length && 'object' == typeof args[0] && null !== args[0] && void 0 !== args[0].styles) + return args[0]; + var stringMode = !0, + styles = ''; + cursor = void 0; + var sourceMap, + strings = args[0]; + null == strings || void 0 === strings.raw + ? ((stringMode = !1), (styles += handleInterpolation(mergedProps, registered, strings, !1))) + : (void 0 === strings[0] && console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR), (styles += strings[0])); + for (var i = 1; i < args.length; i++) + (styles += handleInterpolation( + mergedProps, + registered, + args[i], + 46 === styles.charCodeAt(styles.length - 1), + )), + stringMode && + (void 0 === strings[i] && console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR), (styles += strings[i])); + (styles = styles.replace(sourceMapPattern, function (match) { + return (sourceMap = match), ''; + })), + (labelPattern.lastIndex = 0); + for (var match, identifierName = ''; null !== (match = labelPattern.exec(styles)); ) + identifierName += '-' + match[1]; + var name = hash_browser_esm(styles) + identifierName; + return { + name, + styles, + map: sourceMap, + next: cursor, + toString: function toString() { + return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; + }, + }; + }; + }, + 26617: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { m: () => StyleSheet }); + var StyleSheet = (function () { + function StyleSheet(options) { + (this.isSpeedy = void 0 !== options.speedy && options.speedy), + (this.tags = []), + (this.ctr = 0), + (this.nonce = options.nonce), + (this.key = options.key), + (this.container = options.container), + (this.before = null); + } + var _proto = StyleSheet.prototype; + return ( + (_proto.insert = function insert(rule) { + if (this.ctr % (this.isSpeedy ? 65e3 : 1) == 0) { + var before, + _tag = (function createStyleElement(options) { + var tag = document.createElement('style'); + return ( + tag.setAttribute('data-emotion', options.key), + void 0 !== options.nonce && tag.setAttribute('nonce', options.nonce), + tag.appendChild(document.createTextNode('')), + tag + ); + })(this); + (before = 0 === this.tags.length ? this.before : this.tags[this.tags.length - 1].nextSibling), + this.container.insertBefore(_tag, before), + this.tags.push(_tag); + } + var tag = this.tags[this.tags.length - 1]; + if (this.isSpeedy) { + var sheet = (function sheetForTag(tag) { + if (tag.sheet) return tag.sheet; + for (var i = 0; i < document.styleSheets.length; i++) + if (document.styleSheets[i].ownerNode === tag) return document.styleSheets[i]; + })(tag); + try { + var isImportRule = 105 === rule.charCodeAt(1) && 64 === rule.charCodeAt(0); + sheet.insertRule(rule, isImportRule ? 0 : sheet.cssRules.length); + } catch (e) { + console.warn('There was a problem inserting the following rule: "' + rule + '"', e); + } + } else tag.appendChild(document.createTextNode(rule)); + this.ctr++; + }), + (_proto.flush = function flush() { + this.tags.forEach(function (tag) { + return tag.parentNode.removeChild(tag); + }), + (this.tags = []), + (this.ctr = 0); + }), + StyleSheet + ); + })(); + }, + 65334: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => styled_browser_esm }); + var defineProperty = __webpack_require__(51119), + react = __webpack_require__(2784), + memoize_browser_esm = __webpack_require__(3369), + reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; + const is_prop_valid_browser_esm = (0, memoize_browser_esm.Z)(function (prop) { + return ( + reactPropsRegex.test(prop) || + (111 === prop.charCodeAt(0) && 110 === prop.charCodeAt(1) && prop.charCodeAt(2) < 91) + ); + }); + var core_browser_esm = __webpack_require__(47134), + utils_browser_esm = __webpack_require__(19057), + serialize_browser_esm = __webpack_require__(54268), + testOmitPropsOnStringTag = is_prop_valid_browser_esm, + testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { + return 'theme' !== key && 'innerRef' !== key; + }, + getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) { + return 'string' == typeof tag && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; + }; + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys(source, !0).forEach(function (key) { + (0, defineProperty.Z)(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + var ILLEGAL_ESCAPE_SEQUENCE_ERROR = + "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; + const styled_base_browser_esm = function createStyled(tag, options) { + if (void 0 === tag) + throw new Error( + 'You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.', + ); + var identifierName, shouldForwardProp, targetClassName; + void 0 !== options && + ((identifierName = options.label), + (targetClassName = options.target), + (shouldForwardProp = + tag.__emotion_forwardProp && options.shouldForwardProp + ? function (propName) { + return tag.__emotion_forwardProp(propName) && options.shouldForwardProp(propName); + } + : options.shouldForwardProp)); + var isReal = tag.__emotion_real === tag, + baseTag = (isReal && tag.__emotion_base) || tag; + 'function' != typeof shouldForwardProp && isReal && (shouldForwardProp = tag.__emotion_forwardProp); + var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), + shouldUseAs = !defaultShouldForwardProp('as'); + return function () { + var args = arguments, + styles = isReal && void 0 !== tag.__emotion_styles ? tag.__emotion_styles.slice(0) : []; + if ( + (void 0 !== identifierName && styles.push('label:' + identifierName + ';'), + null == args[0] || void 0 === args[0].raw) + ) + styles.push.apply(styles, args); + else { + void 0 === args[0][0] && console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR), styles.push(args[0][0]); + for (var len = args.length, i = 1; i < len; i++) + void 0 === args[0][i] && console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR), styles.push(args[i], args[0][i]); + } + var Styled = (0, core_browser_esm.Xn)(function (props, context, ref) { + return (0, react.createElement)(core_browser_esm.Ni.Consumer, null, function (theme) { + var finalTag = (shouldUseAs && props.as) || baseTag, + className = '', + classInterpolations = [], + mergedProps = props; + if (null == props.theme) { + for (var key in ((mergedProps = {}), props)) mergedProps[key] = props[key]; + mergedProps.theme = theme; + } + 'string' == typeof props.className + ? (className = (0, utils_browser_esm.f)(context.registered, classInterpolations, props.className)) + : null != props.className && (className = props.className + ' '); + var serialized = (0, serialize_browser_esm.O)( + styles.concat(classInterpolations), + context.registered, + mergedProps, + ); + (0, utils_browser_esm.M)(context, serialized, 'string' == typeof finalTag); + (className += context.key + '-' + serialized.name), + void 0 !== targetClassName && (className += ' ' + targetClassName); + var finalShouldForwardProp = + shouldUseAs && void 0 === shouldForwardProp + ? getDefaultShouldForwardProp(finalTag) + : defaultShouldForwardProp, + newProps = {}; + for (var _key in props) + (shouldUseAs && 'as' === _key) || (finalShouldForwardProp(_key) && (newProps[_key] = props[_key])); + return ( + (newProps.className = className), + (newProps.ref = ref || props.innerRef), + props.innerRef && + console.error( + '`innerRef` is deprecated and will be removed in a future major version of Emotion, please use the `ref` prop instead' + + (void 0 === identifierName ? '' : ' in the usage of `' + identifierName + '`'), + ), + (0, react.createElement)(finalTag, newProps) + ); + }); + }); + return ( + (Styled.displayName = + void 0 !== identifierName + ? identifierName + : 'Styled(' + + ('string' == typeof baseTag ? baseTag : baseTag.displayName || baseTag.name || 'Component') + + ')'), + (Styled.defaultProps = tag.defaultProps), + (Styled.__emotion_real = Styled), + (Styled.__emotion_base = baseTag), + (Styled.__emotion_styles = styles), + (Styled.__emotion_forwardProp = shouldForwardProp), + Object.defineProperty(Styled, 'toString', { + value: function value() { + return void 0 === targetClassName ? 'NO_COMPONENT_SELECTOR' : '.' + targetClassName; + }, + }), + (Styled.withComponent = function (nextTag, nextOptions) { + return createStyled( + nextTag, + void 0 !== nextOptions ? _objectSpread({}, options || {}, {}, nextOptions) : options, + ).apply(void 0, styles); + }), + Styled + ); + }; + }; + var newStyled = styled_base_browser_esm.bind(); + [ + 'a', + 'abbr', + 'address', + 'area', + 'article', + 'aside', + 'audio', + 'b', + 'base', + 'bdi', + 'bdo', + 'big', + 'blockquote', + 'body', + 'br', + 'button', + 'canvas', + 'caption', + 'cite', + 'code', + 'col', + 'colgroup', + 'data', + 'datalist', + 'dd', + 'del', + 'details', + 'dfn', + 'dialog', + 'div', + 'dl', + 'dt', + 'em', + 'embed', + 'fieldset', + 'figcaption', + 'figure', + 'footer', + 'form', + 'h1', + 'h2', + 'h3', + 'h4', + 'h5', + 'h6', + 'head', + 'header', + 'hgroup', + 'hr', + 'html', + 'i', + 'iframe', + 'img', + 'input', + 'ins', + 'kbd', + 'keygen', + 'label', + 'legend', + 'li', + 'link', + 'main', + 'map', + 'mark', + 'marquee', + 'menu', + 'menuitem', + 'meta', + 'meter', + 'nav', + 'noscript', + 'object', + 'ol', + 'optgroup', + 'option', + 'output', + 'p', + 'param', + 'picture', + 'pre', + 'progress', + 'q', + 'rp', + 'rt', + 'ruby', + 's', + 'samp', + 'script', + 'section', + 'select', + 'small', + 'source', + 'span', + 'strong', + 'style', + 'sub', + 'summary', + 'sup', + 'table', + 'tbody', + 'td', + 'textarea', + 'tfoot', + 'th', + 'thead', + 'time', + 'title', + 'tr', + 'track', + 'u', + 'ul', + 'var', + 'video', + 'wbr', + 'circle', + 'clipPath', + 'defs', + 'ellipse', + 'foreignObject', + 'g', + 'image', + 'line', + 'linearGradient', + 'mask', + 'path', + 'pattern', + 'polygon', + 'polyline', + 'radialGradient', + 'rect', + 'stop', + 'svg', + 'text', + 'tspan', + ].forEach(function (tagName) { + newStyled[tagName] = newStyled(tagName); + }); + const styled_browser_esm = newStyled; + }, + 19057: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { f: () => getRegisteredStyles, M: () => insertStyles }); + function getRegisteredStyles(registered, registeredStyles, classNames) { + var rawClassName = ''; + return ( + classNames.split(' ').forEach(function (className) { + void 0 !== registered[className] + ? registeredStyles.push(registered[className]) + : (rawClassName += className + ' '); + }), + rawClassName + ); + } + var insertStyles = function insertStyles(cache, serialized, isStringTag) { + var className = cache.key + '-' + serialized.name; + if ( + (!1 === isStringTag && + void 0 === cache.registered[className] && + (cache.registered[className] = serialized.styles), + void 0 === cache.inserted[serialized.name]) + ) { + var current = serialized; + do { + cache.insert('.' + className, current, cache.sheet, !0); + current = current.next; + } while (void 0 !== current); + } + }; + }, + 91985: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + ADDON_ID = 'storybook/a11y', + PANEL_ID = ''.concat(ADDON_ID, '/panel'), + EVENTS = { + RESULT: ''.concat(ADDON_ID, '/result'), + REQUEST: ''.concat(ADDON_ID, '/request'), + RUNNING: ''.concat(ADDON_ID, '/running'), + ERROR: ''.concat(ADDON_ID, '/error'), + MANUAL: ''.concat(ADDON_ID, '/manual'), + HIGHLIGHT: ''.concat(ADDON_ID, '/highlight'), + }, + dist_esm = + (__webpack_require__(95342), + __webpack_require__(18178), + __webpack_require__(43450), + __webpack_require__(32501), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(27233), + __webpack_require__(26936), + __webpack_require__(77439)), + core_browser_esm = __webpack_require__(47134), + lazy_WithTooltip = __webpack_require__(35881), + TooltipLinkList = __webpack_require__(65662), + bar_button = __webpack_require__(82269), + icon = __webpack_require__(35016), + Filters = function Filters(props) { + return react.createElement( + 'svg', + props, + react.createElement( + 'defs', + null, + react.createElement( + 'filter', + { id: 'protanopia' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.567, 0.433, 0, 0, 0 0.558, 0.442, 0, 0, 0 0, 0.242, 0.758, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'protanomaly' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.817, 0.183, 0, 0, 0 0.333, 0.667, 0, 0, 0 0, 0.125, 0.875, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'deuteranopia' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.625, 0.375, 0, 0, 0 0.7, 0.3, 0, 0, 0 0, 0.3, 0.7, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'deuteranomaly' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.8, 0.2, 0, 0, 0 0.258, 0.742, 0, 0, 0 0, 0.142, 0.858, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'tritanopia' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.95, 0.05, 0, 0, 0 0, 0.433, 0.567, 0, 0 0, 0.475, 0.525, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'tritanomaly' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.967, 0.033, 0, 0, 0 0, 0.733, 0.267, 0, 0 0, 0.183, 0.817, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'achromatopsia' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0, 0, 0, 1, 0', + }), + ), + react.createElement( + 'filter', + { id: 'achromatomaly' }, + react.createElement('feColorMatrix', { + in: 'SourceGraphic', + type: 'matrix', + values: '0.618, 0.320, 0.062, 0, 0 0.163, 0.775, 0.062, 0, 0 0.163, 0.320, 0.516, 0, 0 0, 0, 0, 1, 0', + }), + ), + ), + ); + }; + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var ImpactValue, + baseList = [ + 'blurred vision', + 'deuteranomaly', + 'deuteranopia', + 'protanomaly', + 'protanopia', + 'tritanomaly', + 'tritanopia', + 'achromatomaly', + 'achromatopsia', + 'grayscale', + ], + getFilter = function getFilter(filter) { + return filter + ? 'blurred vision' === filter + ? 'blur(2px)' + : 'grayscale' === filter + ? 'grayscale(100%)' + : "url('#".concat(filter, "')") + : 'none'; + }, + Hidden = dist_esm.styled.div(function () { + return { '&, & svg': { position: 'absolute', width: 0, height: 0 } }; + }), + ColorIcon = dist_esm.styled.span( + { + background: 'linear-gradient(to right, #F44336, #FF9800, #FFEB3B, #8BC34A, #2196F3, #9C27B0)', + borderRadius: '1rem', + display: 'block', + height: '1rem', + width: '1rem', + }, + function (_ref) { + var filter = _ref.filter; + return { filter: getFilter(filter) }; + }, + function (_ref2) { + var theme = _ref2.theme; + return { boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset') }; + }, + ), + VisionSimulator = function VisionSimulator() { + var obj, + key, + value, + _useState2 = _slicedToArray((0, react.useState)(null), 2), + filter = _useState2[0], + setFilter = _useState2[1]; + return react.createElement( + react.Fragment, + null, + filter && + react.createElement(core_browser_esm.xB, { + styles: + ((obj = {}), + (key = '#'.concat('storybook-preview-iframe')), + (value = { filter: getFilter(filter) }), + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj), + }), + react.createElement( + lazy_WithTooltip.R, + { + placement: 'top', + trigger: 'click', + tooltip: function tooltip(_ref4) { + var onHide = _ref4.onHide, + colorList = (function getColorList(active, set) { + return [].concat( + _toConsumableArray( + null !== active + ? [ + { + id: 'reset', + title: 'Reset color filter', + onClick: function onClick() { + set(null); + }, + right: void 0, + active: !1, + }, + ] + : [], + ), + _toConsumableArray( + baseList.map(function (i) { + return { + id: i, + title: i.charAt(0).toUpperCase() + i.slice(1), + onClick: function onClick() { + set(i); + }, + right: react.createElement(ColorIcon, { filter: i }), + active: active === i, + }; + }), + ), + ); + })(filter, function (i) { + setFilter(i), onHide(); + }); + return react.createElement(TooltipLinkList.$, { links: colorList }); + }, + closeOnClick: !0, + onDoubleClick: function onDoubleClick() { + return setFilter(null); + }, + }, + react.createElement( + bar_button.hU, + { key: 'filter', active: !!filter, title: 'Vision simulator' }, + react.createElement(icon.P, { icon: 'accessibility' }), + ), + ), + react.createElement(Hidden, null, react.createElement(Filters, null)), + ); + }, + ActionBar = __webpack_require__(97408), + ScrollArea = __webpack_require__(54214), + api_dist_esm = __webpack_require__(98918), + placeholder = __webpack_require__(92678), + Wrapper = dist_esm.styled.div({ padding: 12, marginBottom: 10 }), + Description = dist_esm.styled.p({ margin: '0 0 12px' }), + Link = dist_esm.styled.a({ marginTop: 12, textDecoration: 'underline', color: 'inherit', display: 'block' }), + Info = function Info(_ref) { + var item = _ref.item; + return react.createElement( + Wrapper, + null, + react.createElement(Description, null, item.description), + react.createElement(Link, { href: item.helpUrl, target: '_blank' }, 'More info...'), + ); + }, + Badge = __webpack_require__(36400), + react_sizeme = __webpack_require__(70726), + List = dist_esm.styled.div({ + display: 'flex', + flexDirection: 'column', + paddingBottom: 4, + paddingRight: 4, + paddingTop: 4, + fontWeight: '400', + }), + Item = dist_esm.styled.div(function (_ref) { + var elementWidth = _ref.elementWidth; + return { + flexDirection: elementWidth > 407 ? 'row' : 'inherit', + marginBottom: elementWidth > 407 ? 6 : 12, + display: elementWidth > 407 ? 'flex' : 'block', + }; + }), + StyledBadge = (0, dist_esm.styled)(Badge.C)({ + padding: '2px 8px', + marginBottom: 3, + minWidth: 65, + maxWidth: 'fit-content', + width: '100%', + textAlign: 'center', + }), + Message = dist_esm.styled.div({ paddingLeft: 6, paddingRight: 23 }); + !(function (ImpactValue) { + (ImpactValue.MINOR = 'minor'), + (ImpactValue.MODERATE = 'moderate'), + (ImpactValue.SERIOUS = 'serious'), + (ImpactValue.CRITICAL = 'critical'); + })(ImpactValue || (ImpactValue = {})); + var Rule = function Rule(_ref2) { + var rule = _ref2.rule, + badgeType = null; + switch (rule.impact) { + case ImpactValue.CRITICAL: + badgeType = 'critical'; + break; + case ImpactValue.SERIOUS: + badgeType = 'negative'; + break; + case ImpactValue.MODERATE: + badgeType = 'warning'; + break; + case ImpactValue.MINOR: + badgeType = 'neutral'; + } + return react.createElement(react_sizeme.SizeMe, { refreshMode: 'debounce' }, function (_ref3) { + var size = _ref3.size; + return react.createElement( + Item, + { elementWidth: size.width || 0 }, + react.createElement( + StyledBadge, + { status: badgeType }, + (function formatSeverityText(severity) { + return severity.charAt(0).toUpperCase().concat(severity.slice(1)); + })(rule.impact), + ), + react.createElement(Message, null, rule.message), + ); + }); + }, + Rules = function Rules(_ref4) { + var rules = _ref4.rules; + return react.createElement( + List, + null, + rules.map(function (rule, index) { + return react.createElement(Rule, { rule, key: index }); + }), + ); + }, + convert = + (__webpack_require__(39529), + __webpack_require__(31235), + __webpack_require__(34769), + __webpack_require__(43105), + __webpack_require__(43624)), + create = __webpack_require__(92350), + core_events_dist_esm = __webpack_require__(69844); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function A11yContext_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function A11yContext_toConsumableArray(arr) { + return ( + (function A11yContext_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return A11yContext_arrayLikeToArray(arr); + })(arr) || + (function A11yContext_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + A11yContext_unsupportedIterableToArray(arr) || + (function A11yContext_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function A11yContext_slicedToArray(arr, i) { + return ( + (function A11yContext_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function A11yContext_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + A11yContext_unsupportedIterableToArray(arr, i) || + (function A11yContext_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function A11yContext_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return A11yContext_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? A11yContext_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function A11yContext_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var CheckBoxStates, + colorsByType = [ + (0, convert.O)(create.n.normal).color.negative, + (0, convert.O)(create.n.normal).color.positive, + (0, convert.O)(create.n.normal).color.warning, + ], + A11yContext = react.createContext({ + results: { passes: [], incomplete: [], violations: [] }, + setResults: function setResults() {}, + highlighted: [], + toggleHighlight: function toggleHighlight() {}, + clearHighlights: function clearHighlights() {}, + tab: 0, + setTab: function setTab() {}, + }), + defaultResult = { passes: [], incomplete: [], violations: [] }, + A11yContextProvider = function A11yContextProvider(_ref) { + var _useChannel, + active = _ref.active, + props = _objectWithoutProperties(_ref, ['active']), + _React$useState2 = A11yContext_slicedToArray(react.useState(defaultResult), 2), + results = _React$useState2[0], + setResults = _React$useState2[1], + _React$useState4 = A11yContext_slicedToArray(react.useState(0), 2), + tab = _React$useState4[0], + setTab = _React$useState4[1], + _React$useState6 = A11yContext_slicedToArray(react.useState([]), 2), + highlighted = _React$useState6[0], + setHighlighted = _React$useState6[1], + storyId = (0, api_dist_esm.aL)().storyId, + handleToggleHighlight = react.useCallback(function (target, highlight) { + setHighlighted(function (prevHighlighted) { + return highlight + ? [].concat(A11yContext_toConsumableArray(prevHighlighted), A11yContext_toConsumableArray(target)) + : prevHighlighted.filter(function (t) { + return !target.includes(t); + }); + }); + }, []), + handleRun = function handleRun(renderedStoryId) { + emit(EVENTS.REQUEST, renderedStoryId); + }, + handleClearHighlights = react.useCallback(function () { + return setHighlighted([]); + }, []), + handleSetTab = react.useCallback(function (index) { + handleClearHighlights(), setTab(index); + }, []), + handleReset = react.useCallback(function () { + setTab(0), setResults(defaultResult); + }, []), + emit = (0, api_dist_esm.EM)( + (A11yContext_defineProperty((_useChannel = {}), core_events_dist_esm.STORY_RENDERED, handleRun), + A11yContext_defineProperty(_useChannel, core_events_dist_esm.STORY_CHANGED, handleReset), + _useChannel), + ); + return ( + react.useEffect( + function () { + emit(EVENTS.HIGHLIGHT, { elements: highlighted, color: colorsByType[tab] }); + }, + [highlighted, tab], + ), + react.useEffect( + function () { + active ? handleRun(storyId) : handleClearHighlights(); + }, + [active, handleClearHighlights, emit, storyId], + ), + active + ? react.createElement( + A11yContext.Provider, + _extends( + { + value: { + results, + setResults, + highlighted, + toggleHighlight: handleToggleHighlight, + clearHighlights: handleClearHighlights, + tab, + setTab: handleSetTab, + }, + }, + props, + ), + ) + : null + ); + }, + useA11yContext = function useA11yContext() { + return react.useContext(A11yContext); + }; + function HighlightToggle_slicedToArray(arr, i) { + return ( + (function HighlightToggle_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function HighlightToggle_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function HighlightToggle_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return HighlightToggle_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return HighlightToggle_arrayLikeToArray(o, minLen); + })(arr, i) || + (function HighlightToggle_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function HighlightToggle_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + !(function (CheckBoxStates) { + (CheckBoxStates[(CheckBoxStates.CHECKED = 0)] = 'CHECKED'), + (CheckBoxStates[(CheckBoxStates.UNCHECKED = 1)] = 'UNCHECKED'), + (CheckBoxStates[(CheckBoxStates.INDETERMINATE = 2)] = 'INDETERMINATE'); + })(CheckBoxStates || (CheckBoxStates = {})); + var Checkbox = dist_esm.styled.input(function (_ref) { + return { cursor: _ref.disabled ? 'not-allowed' : 'pointer' }; + }); + function areAllRequiredElementsHighlighted(elementsToHighlight, highlighted) { + var highlightedCount = elementsToHighlight.filter(function (item) { + return highlighted.includes(item.target[0]); + }).length; + return 0 === highlightedCount + ? CheckBoxStates.UNCHECKED + : highlightedCount === elementsToHighlight.length + ? CheckBoxStates.CHECKED + : CheckBoxStates.INDETERMINATE; + } + const Report_HighlightToggle = function HighlightToggle(_ref2) { + var toggleId = _ref2.toggleId, + _ref2$elementsToHighl = _ref2.elementsToHighlight, + elementsToHighlight = void 0 === _ref2$elementsToHighl ? [] : _ref2$elementsToHighl, + _useA11yContext = useA11yContext(), + toggleHighlight = _useA11yContext.toggleHighlight, + highlighted = _useA11yContext.highlighted, + checkBoxRef = react.useRef(null), + _React$useState2 = HighlightToggle_slicedToArray( + react.useState(areAllRequiredElementsHighlighted(elementsToHighlight, highlighted)), + 2, + ), + checkBoxState = _React$useState2[0], + setChecked = _React$useState2[1]; + react.useEffect( + function () { + var newState = areAllRequiredElementsHighlighted(elementsToHighlight, highlighted); + checkBoxRef.current && (checkBoxRef.current.indeterminate = newState === CheckBoxStates.INDETERMINATE), + setChecked(newState); + }, + [elementsToHighlight, highlighted], + ); + var handleToggle = react.useCallback( + function () { + toggleHighlight( + elementsToHighlight.map(function (e) { + return e.target[0]; + }), + checkBoxState !== CheckBoxStates.CHECKED, + ); + }, + [elementsToHighlight, checkBoxState, toggleHighlight], + ); + return react.createElement(Checkbox, { + ref: checkBoxRef, + id: toggleId, + type: 'checkbox', + 'aria-label': 'Highlight result', + disabled: !elementsToHighlight.length, + onChange: handleToggle, + checked: checkBoxState === CheckBoxStates.CHECKED, + }); + }; + function Elements_toConsumableArray(arr) { + return ( + (function Elements_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Elements_arrayLikeToArray(arr); + })(arr) || + (function Elements_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function Elements_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Elements_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Elements_arrayLikeToArray(o, minLen); + })(arr) || + (function Elements_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Elements_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Elements_Item = dist_esm.styled.li({ fontWeight: 600 }), + ItemTitle = dist_esm.styled.span(function (_ref) { + var theme = _ref.theme; + return { + borderBottom: '1px solid '.concat(theme.appBorderColor), + width: '100%', + display: 'flex', + paddingBottom: 6, + marginBottom: 6, + justifyContent: 'space-between', + }; + }), + HighlightToggleElement = dist_esm.styled.span({ + fontWeight: 'normal', + alignSelf: 'center', + paddingRight: 15, + input: { margin: 0, display: 'block' }, + }), + Element = function Element(_ref2) { + var element = _ref2.element, + type = _ref2.type, + any = element.any, + all = element.all, + none = element.none, + rules = [].concat( + Elements_toConsumableArray(any), + Elements_toConsumableArray(all), + Elements_toConsumableArray(none), + ), + highlightToggleId = ''.concat(type, '-').concat(element.target[0]); + return react.createElement( + Elements_Item, + null, + react.createElement( + ItemTitle, + null, + element.target[0], + react.createElement( + HighlightToggleElement, + null, + react.createElement(Report_HighlightToggle, { + toggleId: highlightToggleId, + elementsToHighlight: [element], + }), + ), + ), + react.createElement(Rules, { rules }), + ); + }, + Elements = function Elements(_ref3) { + var elements = _ref3.elements, + type = _ref3.type; + return react.createElement( + 'ol', + null, + elements.map(function (element, index) { + return react.createElement(Element, { element, key: index, type }); + }), + ); + }, + Tags_Wrapper = dist_esm.styled.div({ display: 'flex', flexWrap: 'wrap', margin: '12px 0' }), + Tags_Item = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + margin: '0 6px', + padding: 5, + border: '1px solid '.concat(theme.appBorderColor), + borderRadius: theme.appBorderRadius, + }; + }), + Tags = function Tags(_ref2) { + var tags = _ref2.tags; + return react.createElement( + Tags_Wrapper, + null, + tags.map(function (tag) { + return react.createElement(Tags_Item, { key: tag }, tag); + }), + ); + }; + function Item_slicedToArray(arr, i) { + return ( + (function Item_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Item_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function Item_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Item_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Item_arrayLikeToArray(o, minLen); + })(arr, i) || + (function Item_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Item_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Item_Wrapper = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + display: 'flex', + width: '100%', + borderBottom: '1px solid '.concat(theme.appBorderColor), + '&:hover': { background: theme.background.hoverable }, + }; + }), + Icon = (0, dist_esm.styled)(icon.P)(function (_ref2) { + return { + height: 10, + width: 10, + minWidth: 10, + color: _ref2.theme.color.mediumdark, + marginRight: 10, + transition: 'transform 0.1s ease-in-out', + alignSelf: 'center', + display: 'inline-flex', + }; + }), + HeaderBar = dist_esm.styled.div(function (_ref3) { + var theme = _ref3.theme; + return { + padding: theme.layoutMargin, + paddingLeft: theme.layoutMargin - 3, + lineHeight: '20px', + background: 'none', + color: 'inherit', + textAlign: 'left', + cursor: 'pointer', + borderLeft: '3px solid transparent', + width: '100%', + '&:focus': { outline: '0 none', borderLeft: '3px solid '.concat(theme.color.secondary) }, + }; + }), + Item_HighlightToggleElement = dist_esm.styled.span({ + fontWeight: 'normal', + float: 'right', + marginRight: 15, + alignSelf: 'center', + input: { margin: 0, display: 'block' }, + }), + Item_Item = function Item(props) { + var _useState2 = Item_slicedToArray((0, react.useState)(!1), 2), + open = _useState2[0], + onToggle = _useState2[1], + item = props.item, + type = props.type, + highlightToggleId = ''.concat(type, '-').concat(item.id); + return react.createElement( + react.Fragment, + null, + react.createElement( + Item_Wrapper, + null, + react.createElement( + HeaderBar, + { + onClick: function onClick() { + return onToggle(!open); + }, + role: 'button', + }, + react.createElement(Icon, { + icon: 'chevrondown', + size: 10, + color: '#9DA5AB', + style: { transform: 'rotate('.concat(open ? 0 : -90, 'deg)') }, + }), + item.help, + ), + react.createElement( + Item_HighlightToggleElement, + null, + react.createElement(Report_HighlightToggle, { + toggleId: highlightToggleId, + elementsToHighlight: item.nodes, + }), + ), + ), + open + ? react.createElement( + react.Fragment, + null, + react.createElement(Info, { item, key: 'info' }), + react.createElement(Elements, { elements: item.nodes, type, key: 'elements' }), + react.createElement(Tags, { tags: item.tags, key: 'tags' }), + ) + : null, + ); + }, + Report = function Report(_ref) { + var items = _ref.items, + empty = _ref.empty, + type = _ref.type; + return react.createElement( + react.Fragment, + null, + items && items.length + ? items.map(function (item) { + return react.createElement(Item_Item, { item, key: ''.concat(type, ':').concat(item.id), type }); + }) + : react.createElement(placeholder.V, { key: 'placeholder' }, empty), + ); + }, + Container = + (__webpack_require__(35744), dist_esm.styled.div({ width: '100%', position: 'relative', minHeight: '100%' })), + HighlightToggleLabel = dist_esm.styled.label(function (_ref) { + return { cursor: 'pointer', userSelect: 'none', color: _ref.theme.color.dark }; + }), + GlobalToggle = dist_esm.styled.div(function (_ref2) { + var elementWidth = _ref2.elementWidth, + theme = _ref2.theme; + return { + cursor: 'pointer', + fontSize: 13, + lineHeight: '20px', + padding: elementWidth > 450 ? '10px 15px 10px 0' : '10px 0px 10px 15px', + height: '40px', + border: 'none', + marginTop: elementWidth > 450 ? -40 : 0, + float: elementWidth > 450 ? 'right' : 'left', + display: 'flex', + alignItems: 'center', + width: elementWidth > 450 ? 'auto' : '100%', + borderBottom: elementWidth > 450 ? 'none' : '1px solid '.concat(theme.appBorderColor), + input: { marginLeft: 10, marginRight: 0, marginTop: -1, marginBottom: 0 }, + }; + }), + Tabs_Item = dist_esm.styled.button( + function (_ref3) { + var theme = _ref3.theme; + return { + textDecoration: 'none', + padding: '10px 15px', + cursor: 'pointer', + fontWeight: theme.typography.weight.bold, + fontSize: theme.typography.size.s2 - 1, + lineHeight: 1, + height: 40, + border: 'none', + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + background: 'transparent', + '&:focus': { outline: '0 none', borderBottom: '3px solid '.concat(theme.color.secondary) }, + }; + }, + function (_ref4) { + var active = _ref4.active, + theme = _ref4.theme; + return active ? { opacity: 1, borderBottom: '3px solid '.concat(theme.color.secondary) } : {}; + }, + ), + TabsWrapper = dist_esm.styled.div({}), + Tabs_List = dist_esm.styled.div(function (_ref5) { + var theme = _ref5.theme; + return { + boxShadow: ''.concat(theme.appBorderColor, ' 0 -1px 0 0 inset'), + background: 'rgba(0, 0, 0, .05)', + display: 'flex', + justifyContent: 'space-between', + whiteSpace: 'nowrap', + }; + }); + var RuleType, + Tabs = function Tabs(_ref6) { + var tabs = _ref6.tabs, + _useA11yContext = useA11yContext(), + activeTab = _useA11yContext.tab, + setTab = _useA11yContext.setTab, + handleToggle = react.useCallback( + function (event) { + setTab(parseInt(event.currentTarget.getAttribute('data-index') || '', 10)); + }, + [setTab], + ), + highlightToggleId = ''.concat(tabs[activeTab].type, '-global-checkbox'); + return react.createElement(react_sizeme.SizeMe, { refreshMode: 'debounce' }, function (_ref7) { + var items, + size = _ref7.size; + return react.createElement( + Container, + null, + react.createElement( + Tabs_List, + null, + react.createElement( + TabsWrapper, + null, + tabs.map(function (tab, index) { + return react.createElement( + Tabs_Item, + { key: index, 'data-index': index, active: activeTab === index, onClick: handleToggle }, + tab.label, + ); + }), + ), + ), + tabs[activeTab].items.length > 0 + ? react.createElement( + GlobalToggle, + { elementWidth: size.width || 0 }, + react.createElement(HighlightToggleLabel, { htmlFor: highlightToggleId }, 'Highlight results'), + react.createElement(Report_HighlightToggle, { + toggleId: highlightToggleId, + elementsToHighlight: + ((items = tabs[activeTab].items), + items.reduce(function (acc, item) { + return acc.concat(item.nodes); + }, [])), + }), + ) + : null, + tabs[activeTab].panel, + ); + }); + }; + function A11YPanel_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function A11YPanel_slicedToArray(arr, i) { + return ( + (function A11YPanel_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function A11YPanel_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function A11YPanel_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return A11YPanel_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return A11YPanel_arrayLikeToArray(o, minLen); + })(arr, i) || + (function A11YPanel_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function A11YPanel_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + !(function (RuleType) { + (RuleType[(RuleType.VIOLATION = 0)] = 'VIOLATION'), + (RuleType[(RuleType.PASS = 1)] = 'PASS'), + (RuleType[(RuleType.INCOMPLETION = 2)] = 'INCOMPLETION'); + })(RuleType || (RuleType = {})); + var A11YPanel_Icon = (0, dist_esm.styled)(icon.P)({ height: 12, width: 12, marginRight: 4 }), + RotatingIcon = (0, dist_esm.styled)(A11YPanel_Icon)(function (_ref) { + var theme = _ref.theme; + return { animation: ''.concat(theme.animation.rotate360, ' 1s linear infinite;') }; + }), + Passes = dist_esm.styled.span(function (_ref2) { + return { color: _ref2.theme.color.positive }; + }), + Violations = dist_esm.styled.span(function (_ref3) { + return { color: _ref3.theme.color.negative }; + }), + Incomplete = dist_esm.styled.span(function (_ref4) { + return { color: _ref4.theme.color.warning }; + }), + Centered = dist_esm.styled.span({ + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + height: '100%', + }), + A11YPanel = function A11YPanel() { + var _useChannel, + manual = (0, api_dist_esm.Ut)('a11y', { manual: !1 }).manual, + _useState2 = A11YPanel_slicedToArray((0, react.useState)(manual ? 'manual' : 'initial'), 2), + status = _useState2[0], + setStatus = _useState2[1], + _React$useState2 = A11YPanel_slicedToArray(react.useState(void 0), 2), + error = _React$useState2[0], + setError = _React$useState2[1], + _useA11yContext = useA11yContext(), + setResults = _useA11yContext.setResults, + results = _useA11yContext.results, + storyId = (0, api_dist_esm.aL)().storyId; + react.useEffect( + function () { + setStatus(manual ? 'manual' : 'initial'); + }, + [manual], + ); + var handleRun = (0, react.useCallback)(function () { + setStatus('running'); + }, []), + handleError = (0, react.useCallback)(function (err) { + setStatus('error'), setError(err); + }, []), + emit = (0, api_dist_esm.EM)( + (A11YPanel_defineProperty((_useChannel = {}), EVENTS.RUNNING, handleRun), + A11YPanel_defineProperty(_useChannel, EVENTS.RESULT, function handleResult(axeResults) { + setStatus('ran'), + setResults(axeResults), + setTimeout(function () { + 'ran' === status && setStatus('ready'); + }, 900); + }), + A11YPanel_defineProperty(_useChannel, EVENTS.ERROR, handleError), + _useChannel), + ), + handleManual = (0, react.useCallback)( + function () { + setStatus('running'), emit(EVENTS.MANUAL, storyId); + }, + [storyId], + ), + manualActionItems = (0, react.useMemo)( + function () { + return [{ title: 'Run test', onClick: handleManual }]; + }, + [handleManual], + ), + readyActionItems = (0, react.useMemo)( + function () { + return [ + { + title: + 'ready' === status + ? 'Rerun tests' + : react.createElement( + react.Fragment, + null, + react.createElement(A11YPanel_Icon, { inline: !0, icon: 'check' }), + ' Tests completed', + ), + onClick: handleManual, + }, + ]; + }, + [status, handleManual], + ), + tabs = (0, react.useMemo)( + function () { + var passes = results.passes, + incomplete = results.incomplete, + violations = results.violations; + return [ + { + label: react.createElement(Violations, null, violations.length, ' Violations'), + panel: react.createElement(Report, { + items: violations, + type: RuleType.VIOLATION, + empty: 'No accessibility violations found.', + }), + items: violations, + type: RuleType.VIOLATION, + }, + { + label: react.createElement(Passes, null, passes.length, ' Passes'), + panel: react.createElement(Report, { + items: passes, + type: RuleType.PASS, + empty: 'No accessibility checks passed.', + }), + items: passes, + type: RuleType.PASS, + }, + { + label: react.createElement(Incomplete, null, incomplete.length, ' Incomplete'), + panel: react.createElement(Report, { + items: incomplete, + type: RuleType.INCOMPLETION, + empty: 'No accessibility checks incomplete.', + }), + items: incomplete, + type: RuleType.INCOMPLETION, + }, + ]; + }, + [results], + ); + return react.createElement( + react.Fragment, + null, + 'initial' === status && react.createElement(Centered, null, 'Initializing...'), + 'manual' === status && + react.createElement( + react.Fragment, + null, + react.createElement(Centered, null, 'Manually run the accessibility scan.'), + react.createElement(ActionBar.o, { key: 'actionbar', actionItems: manualActionItems }), + ), + 'running' === status && + react.createElement( + Centered, + null, + react.createElement(RotatingIcon, { inline: !0, icon: 'sync' }), + ' Please wait while the accessibility scan is running ...', + ), + ('ready' === status || 'ran' === status) && + react.createElement( + react.Fragment, + null, + react.createElement( + ScrollArea.x, + { vertical: !0, horizontal: !0 }, + react.createElement(Tabs, { key: 'tabs', tabs }), + ), + react.createElement(ActionBar.o, { key: 'actionbar', actionItems: readyActionItems }), + ), + 'error' === status && + react.createElement( + Centered, + null, + 'The accessibility scan encountered an error.', + react.createElement('br', null), + 'string' == typeof error ? error : JSON.stringify(error), + ), + ); + }; + esm.KP.register(ADDON_ID, function () { + esm.KP.add(PANEL_ID, { + title: '', + type: types.V.TOOL, + match: function match(_ref) { + return 'story' === _ref.viewMode; + }, + render: function render() { + return react.createElement(VisionSimulator, null); + }, + }), + esm.KP.add(PANEL_ID, { + title: 'Accessibility', + type: types.V.PANEL, + render: function render(_ref2) { + var _ref2$active = _ref2.active, + active = void 0 === _ref2$active || _ref2$active, + key = _ref2.key; + return react.createElement(A11yContextProvider, { key, active }, react.createElement(A11YPanel, null)); + }, + paramKey: 'a11y', + }); + }); + }, + 44773: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + Sz: () => PARAM_KEY, + ZY: () => ADDON_ID, + im: () => PANEL_ID, + RS: () => EVENT_ID, + }); + var PARAM_KEY = 'actions', + ADDON_ID = 'storybook/actions', + PANEL_ID = ''.concat(ADDON_ID, '/panel'), + EVENT_ID = ''.concat(ADDON_ID, '/action-event'); + }, + 66702: (module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { RS: () => constants.RS }); + var constants = __webpack_require__(44773), + v4 = + (__webpack_require__(96928), + __webpack_require__(26936), + __webpack_require__(62775), + __webpack_require__(68625), + __webpack_require__(43105), + __webpack_require__(43450), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(74953)), + v4_default = __webpack_require__.n(v4), + esm = __webpack_require__(21872), + config = { depth: 10, clearOnStoryChange: !0, limit: 50 }; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + var findProto = function findProto(obj, callback) { + var proto = Object.getPrototypeOf(obj); + return !proto || callback(proto) ? proto : findProto(proto, callback); + }, + isReactSyntheticEvent = function isReactSyntheticEvent(e) { + return Boolean( + 'object' === _typeof(e) && + e && + findProto(e, function (proto) { + return /^Synthetic(?:Base)?Event$/.test(proto.constructor.name); + }) && + 'function' == typeof e.persist, + ); + }, + serializeArg = function serializeArg(a) { + if (isReactSyntheticEvent(a)) { + var e = Object.create(a.constructor.prototype, Object.getOwnPropertyDescriptors(a)); + e.persist(); + var viewDescriptor = Object.getOwnPropertyDescriptor(e, 'view'), + view = null == viewDescriptor ? void 0 : viewDescriptor.value; + return ( + 'object' === _typeof(view) && + 'Window' === (null == view ? void 0 : view.constructor.name) && + Object.defineProperty( + e, + 'view', + Object.assign({}, viewDescriptor, { value: Object.create(view.constructor.prototype) }), + ), + e + ); + } + return a; + }; + function action(name) { + var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + actionOptions = Object.assign({}, config, options), + handler = function actionHandler() { + for ( + var channel = esm.KP.getChannel(), + id = v4_default()(), + minDepth = 5, + _len = arguments.length, + args = new Array(_len), + _key = 0; + _key < _len; + _key++ + ) + args[_key] = arguments[_key]; + var serializedArgs = args.map(serializeArg), + normalizedArgs = args.length > 1 ? serializedArgs : serializedArgs[0], + actionDisplayToEmit = { + id, + count: 0, + data: { name, args: normalizedArgs }, + options: Object.assign({}, actionOptions, { + maxDepth: minDepth + (actionOptions.depth || 3), + allowFunction: actionOptions.allowFunction || !1, + }), + }; + channel.emit(constants.RS, actionDisplayToEmit); + }; + return handler; + } + __webpack_require__(1939), __webpack_require__(34769), __webpack_require__(32501), __webpack_require__(27233); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var actions = function actions() { + for (var options = config, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + var names = args; + if (1 === names.length && Array.isArray(names[0])) { + var _names = names, + _names2 = _slicedToArray(_names, 1); + names = _names2[0]; + } + 1 !== names.length && + 'string' != typeof names[names.length - 1] && + (options = Object.assign({}, config, names.pop())); + var namesObject = names[0]; + (1 === names.length && 'string' != typeof namesObject) || + ((namesObject = {}), + names.forEach(function (name) { + namesObject[name] = name; + })); + var actionsObject = {}; + return ( + Object.keys(namesObject).forEach(function (name) { + actionsObject[name] = action(namesObject[name], options); + }), + actionsObject + ); + }, + browser = (__webpack_require__(22144), __webpack_require__(5803)), + browser_default = __webpack_require__.n(browser); + browser_default()(function () {}, 'decorate.* is no longer supported as of Storybook 6.0.'), + __webpack_require__(35883), + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(18178); + var withActions_templateObject, + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + hooks = __webpack_require__(86870), + make_decorator = __webpack_require__(65440), + ts_dedent_esm = __webpack_require__(51893); + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return withActions_arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + withActions_unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function withActions_slicedToArray(arr, i) { + return ( + (function withActions_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function withActions_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + withActions_unsupportedIterableToArray(arr, i) || + (function withActions_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function withActions_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return withActions_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? withActions_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function withActions_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var withActions_document = window_default().document, + Element = window_default().Element, + delegateEventSplitter = /^(\S+)\s*(.*)$/, + matchesMethod = null != Element && !Element.prototype.matches ? 'msMatchesSelector' : 'matches', + root = withActions_document && withActions_document.getElementById('root'), + hasMatchInAncestry = function hasMatchInAncestry(element, selector) { + if (element[matchesMethod](selector)) return !0; + var parent = element.parentElement; + return !!parent && hasMatchInAncestry(parent, selector); + }, + createHandlers = function createHandlers(actionsFn) { + for (var _len = arguments.length, handles = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + handles[_key - 1] = arguments[_key]; + var actionsObject = actionsFn.apply(void 0, handles); + return Object.entries(actionsObject).map(function (_ref) { + var _ref2 = withActions_slicedToArray(_ref, 2), + key = _ref2[0], + action = _ref2[1], + _key$match2 = withActions_slicedToArray(key.match(delegateEventSplitter), 3), + eventName = (_key$match2[0], _key$match2[1]), + selector = _key$match2[2]; + return { + eventName, + handler: function handler(e) { + (selector && !hasMatchInAncestry(e.target, selector)) || action(e); + }, + }; + }); + }, + applyEventHandlers = browser_default()( + function (actionsFn) { + for ( + var _len2 = arguments.length, handles = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) + handles[_key2 - 1] = arguments[_key2]; + (0, hooks.d4)( + function () { + if (null != root) { + var handlers = createHandlers.apply(void 0, [actionsFn].concat(handles)); + return ( + handlers.forEach(function (_ref3) { + var eventName = _ref3.eventName, + handler = _ref3.handler; + return root.addEventListener(eventName, handler); + }), + function () { + return handlers.forEach(function (_ref4) { + var eventName = _ref4.eventName, + handler = _ref4.handler; + return root.removeEventListener(eventName, handler); + }); + } + ); + } + }, + [root, actionsFn, handles], + ); + }, + (0, ts_dedent_esm.C)( + withActions_templateObject || + (withActions_templateObject = (function withActions_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + '\n withActions(options) is deprecated, please configure addon-actions using the addParameter api:\n\n addParameters({\n actions: {\n handles: options\n },\n });\n ', + ])), + ), + ); + (0, make_decorator.h)({ + name: 'withActions', + parameterName: constants.Sz, + skipIfNoParametersOrOptions: !0, + wrapper: function wrapper(getStory, context, _ref5) { + var parameters = _ref5.parameters, + options = _ref5.options; + return ( + (function applyDeprecatedOptions(actionsFn, options) { + options && applyEventHandlers(actionsFn, options); + })(actions, options), + parameters && + parameters.handles && + applyEventHandlers.apply(void 0, [actions].concat(_toConsumableArray(parameters.handles))), + getStory(context) + ); + }, + }); + (module = __webpack_require__.hmd(module)) && module.hot && module.hot.decline && module.hot.decline(); + }, + 11499: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233); + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + dist_esm = __webpack_require__(69844), + fast_deep_equal = (__webpack_require__(96928), __webpack_require__(61229), __webpack_require__(69378)), + fast_deep_equal_default = __webpack_require__.n(fast_deep_equal), + theming_dist_esm = + (__webpack_require__(43450), + __webpack_require__(34769), + __webpack_require__(43105), + __webpack_require__(77439)), + emotion_theming_browser_esm = __webpack_require__(43352), + prop_types = __webpack_require__(13980), + prop_types_default = __webpack_require__.n(prop_types), + is_dom = __webpack_require__(2273), + is_dom_default = __webpack_require__.n(is_dom); + function unwrapExports(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x; + } + function createCommonjsModule(fn, module) { + return fn((module = { exports: {} }), module.exports), module.exports; + } + var _extends_1 = createCommonjsModule(function (module) { + function _extends() { + return ( + (module.exports = _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0), + _extends.apply(this, arguments) + ); + } + (module.exports = _extends), (module.exports.default = module.exports), (module.exports.__esModule = !0); + }), + _extends = unwrapExports(_extends_1), + objectWithoutPropertiesLoose = createCommonjsModule(function (module) { + (module.exports = function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(objectWithoutPropertiesLoose); + var _objectWithoutProperties = unwrapExports( + createCommonjsModule(function (module) { + (module.exports = function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = objectWithoutPropertiesLoose(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }), + ), + themes = Object.freeze({ + __proto__: null, + chromeDark: { + BASE_FONT_FAMILY: 'Menlo, monospace', + BASE_FONT_SIZE: '11px', + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: 'rgb(36, 36, 36)', + BASE_COLOR: 'rgb(213, 213, 213)', + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: 'rgb(227, 110, 236)', + OBJECT_VALUE_NULL_COLOR: 'rgb(127, 127, 127)', + OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(127, 127, 127)', + OBJECT_VALUE_REGEXP_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_STRING_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_SYMBOL_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_NUMBER_COLOR: 'hsl(252, 100%, 75%)', + OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(252, 100%, 75%)', + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(85, 106, 242)', + HTML_TAG_COLOR: 'rgb(93, 176, 215)', + HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)', + HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', + HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)', + HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)', + HTML_COMMENT_COLOR: 'rgb(137, 137, 137)', + HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', + ARROW_COLOR: 'rgb(145, 145, 145)', + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: '0', + TREENODE_FONT_FAMILY: 'Menlo, monospace', + TREENODE_FONT_SIZE: '11px', + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: 'rgb(85, 85, 85)', + TABLE_TH_BACKGROUND_COLOR: 'rgb(44, 44, 44)', + TABLE_TH_HOVER_COLOR: 'rgb(48, 48, 48)', + TABLE_SORT_ICON_COLOR: 'black', + TABLE_DATA_BACKGROUND_IMAGE: + 'linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))', + TABLE_DATA_BACKGROUND_SIZE: '128px 32px', + }, + chromeLight: { + BASE_FONT_FAMILY: 'Menlo, monospace', + BASE_FONT_SIZE: '11px', + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: 'white', + BASE_COLOR: 'black', + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: 'rgb(136, 19, 145)', + OBJECT_VALUE_NULL_COLOR: 'rgb(128, 128, 128)', + OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(128, 128, 128)', + OBJECT_VALUE_REGEXP_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_STRING_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_SYMBOL_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_NUMBER_COLOR: 'rgb(28, 0, 207)', + OBJECT_VALUE_BOOLEAN_COLOR: 'rgb(28, 0, 207)', + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(13, 34, 170)', + HTML_TAG_COLOR: 'rgb(168, 148, 166)', + HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)', + HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', + HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)', + HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)', + HTML_COMMENT_COLOR: 'rgb(35, 110, 37)', + HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', + ARROW_COLOR: '#6e6e6e', + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: '0', + TREENODE_FONT_FAMILY: 'Menlo, monospace', + TREENODE_FONT_SIZE: '11px', + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: '#aaa', + TABLE_TH_BACKGROUND_COLOR: '#eee', + TABLE_TH_HOVER_COLOR: 'hsla(0, 0%, 90%, 1)', + TABLE_SORT_ICON_COLOR: '#6e6e6e', + TABLE_DATA_BACKGROUND_IMAGE: + 'linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))', + TABLE_DATA_BACKGROUND_SIZE: '128px 32px', + }, + }), + arrayWithHoles = createCommonjsModule(function (module) { + (module.exports = function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(arrayWithHoles); + var iterableToArrayLimit = createCommonjsModule(function (module) { + (module.exports = function _iterableToArrayLimit(arr, i) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(arr)) { + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(iterableToArrayLimit); + var arrayLikeToArray = createCommonjsModule(function (module) { + (module.exports = function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(arrayLikeToArray); + var unsupportedIterableToArray = createCommonjsModule(function (module) { + (module.exports = function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? arrayLikeToArray(o, minLen) + : void 0 + ); + } + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(unsupportedIterableToArray); + var nonIterableRest = createCommonjsModule(function (module) { + (module.exports = function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(nonIterableRest); + var _slicedToArray = unwrapExports( + createCommonjsModule(function (module) { + (module.exports = function _slicedToArray(arr, i) { + return ( + arrayWithHoles(arr) || + iterableToArrayLimit(arr, i) || + unsupportedIterableToArray(arr, i) || + nonIterableRest() + ); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }), + ), + _typeof_1 = createCommonjsModule(function (module) { + function _typeof(obj) { + return ( + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? ((module.exports = _typeof = function _typeof(obj) { + return typeof obj; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0)) + : ((module.exports = _typeof = function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0)), + _typeof(obj) + ); + } + (module.exports = _typeof), (module.exports.default = module.exports), (module.exports.__esModule = !0); + }), + _typeof = unwrapExports(_typeof_1), + regenerator = createCommonjsModule(function (module) { + var runtime = (function (exports) { + var Op = Object.prototype, + hasOwn = Op.hasOwnProperty, + $Symbol = 'function' == typeof Symbol ? Symbol : {}, + iteratorSymbol = $Symbol.iterator || '@@iterator', + asyncIteratorSymbol = $Symbol.asyncIterator || '@@asyncIterator', + toStringTagSymbol = $Symbol.toStringTag || '@@toStringTag'; + function define(obj, key, value) { + return ( + Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }), obj[key] + ); + } + try { + define({}, ''); + } catch (err) { + define = function (obj, key, value) { + return (obj[key] = value); + }; + } + function wrap(innerFn, outerFn, self, tryLocsList) { + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, + generator = Object.create(protoGenerator.prototype), + context = new Context(tryLocsList || []); + return ( + (generator._invoke = (function makeInvokeMethod(innerFn, self, context) { + var state = 'suspendedStart'; + return function invoke(method, arg) { + if ('executing' === state) throw new Error('Generator is already running'); + if ('completed' === state) { + if ('throw' === method) throw arg; + return doneResult(); + } + for (context.method = method, context.arg = arg; ; ) { + var delegate = context.delegate; + if (delegate) { + var delegateResult = maybeInvokeDelegate(delegate, context); + if (delegateResult) { + if (delegateResult === ContinueSentinel) continue; + return delegateResult; + } + } + if ('next' === context.method) context.sent = context._sent = context.arg; + else if ('throw' === context.method) { + if ('suspendedStart' === state) throw ((state = 'completed'), context.arg); + context.dispatchException(context.arg); + } else 'return' === context.method && context.abrupt('return', context.arg); + state = 'executing'; + var record = tryCatch(innerFn, self, context); + if ('normal' === record.type) { + if (((state = context.done ? 'completed' : 'suspendedYield'), record.arg === ContinueSentinel)) + continue; + return { value: record.arg, done: context.done }; + } + 'throw' === record.type && + ((state = 'completed'), (context.method = 'throw'), (context.arg = record.arg)); + } + }; + })(innerFn, self, context)), + generator + ); + } + function tryCatch(fn, obj, arg) { + try { + return { type: 'normal', arg: fn.call(obj, arg) }; + } catch (err) { + return { type: 'throw', arg: err }; + } + } + exports.wrap = wrap; + var ContinueSentinel = {}; + function Generator() {} + function GeneratorFunction() {} + function GeneratorFunctionPrototype() {} + var IteratorPrototype = {}; + IteratorPrototype[iteratorSymbol] = function () { + return this; + }; + var getProto = Object.getPrototypeOf, + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); + NativeIteratorPrototype && + NativeIteratorPrototype !== Op && + hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && + (IteratorPrototype = NativeIteratorPrototype); + var Gp = (GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype)); + function defineIteratorMethods(prototype) { + ['next', 'throw', 'return'].forEach(function (method) { + define(prototype, method, function (arg) { + return this._invoke(method, arg); + }); + }); + } + function AsyncIterator(generator, PromiseImpl) { + function invoke(method, arg, resolve, reject) { + var record = tryCatch(generator[method], generator, arg); + if ('throw' !== record.type) { + var result = record.arg, + value = result.value; + return value && 'object' == typeof value && hasOwn.call(value, '__await') + ? PromiseImpl.resolve(value.__await).then( + function (value) { + invoke('next', value, resolve, reject); + }, + function (err) { + invoke('throw', err, resolve, reject); + }, + ) + : PromiseImpl.resolve(value).then( + function (unwrapped) { + (result.value = unwrapped), resolve(result); + }, + function (error) { + return invoke('throw', error, resolve, reject); + }, + ); + } + reject(record.arg); + } + var previousPromise; + this._invoke = function enqueue(method, arg) { + function callInvokeWithMethodAndArg() { + return new PromiseImpl(function (resolve, reject) { + invoke(method, arg, resolve, reject); + }); + } + return (previousPromise = previousPromise + ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) + : callInvokeWithMethodAndArg()); + }; + } + function maybeInvokeDelegate(delegate, context) { + var method = delegate.iterator[context.method]; + if (undefined === method) { + if (((context.delegate = null), 'throw' === context.method)) { + if ( + delegate.iterator.return && + ((context.method = 'return'), + (context.arg = undefined), + maybeInvokeDelegate(delegate, context), + 'throw' === context.method) + ) + return ContinueSentinel; + (context.method = 'throw'), + (context.arg = new TypeError("The iterator does not provide a 'throw' method")); + } + return ContinueSentinel; + } + var record = tryCatch(method, delegate.iterator, context.arg); + if ('throw' === record.type) + return ( + (context.method = 'throw'), (context.arg = record.arg), (context.delegate = null), ContinueSentinel + ); + var info = record.arg; + return info + ? info.done + ? ((context[delegate.resultName] = info.value), + (context.next = delegate.nextLoc), + 'return' !== context.method && ((context.method = 'next'), (context.arg = undefined)), + (context.delegate = null), + ContinueSentinel) + : info + : ((context.method = 'throw'), + (context.arg = new TypeError('iterator result is not an object')), + (context.delegate = null), + ContinueSentinel); + } + function pushTryEntry(locs) { + var entry = { tryLoc: locs[0] }; + 1 in locs && (entry.catchLoc = locs[1]), + 2 in locs && ((entry.finallyLoc = locs[2]), (entry.afterLoc = locs[3])), + this.tryEntries.push(entry); + } + function resetTryEntry(entry) { + var record = entry.completion || {}; + (record.type = 'normal'), delete record.arg, (entry.completion = record); + } + function Context(tryLocsList) { + (this.tryEntries = [{ tryLoc: 'root' }]), tryLocsList.forEach(pushTryEntry, this), this.reset(!0); + } + function values(iterable) { + if (iterable) { + var iteratorMethod = iterable[iteratorSymbol]; + if (iteratorMethod) return iteratorMethod.call(iterable); + if ('function' == typeof iterable.next) return iterable; + if (!isNaN(iterable.length)) { + var i = -1, + next = function next() { + for (; ++i < iterable.length; ) + if (hasOwn.call(iterable, i)) return (next.value = iterable[i]), (next.done = !1), next; + return (next.value = undefined), (next.done = !0), next; + }; + return (next.next = next); + } + } + return { next: doneResult }; + } + function doneResult() { + return { value: undefined, done: !0 }; + } + return ( + (GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype), + (GeneratorFunctionPrototype.constructor = GeneratorFunction), + (GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, 'GeneratorFunction')), + (exports.isGeneratorFunction = function (genFun) { + var ctor = 'function' == typeof genFun && genFun.constructor; + return ( + !!ctor && (ctor === GeneratorFunction || 'GeneratorFunction' === (ctor.displayName || ctor.name)) + ); + }), + (exports.mark = function (genFun) { + return ( + Object.setPrototypeOf + ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) + : ((genFun.__proto__ = GeneratorFunctionPrototype), + define(genFun, toStringTagSymbol, 'GeneratorFunction')), + (genFun.prototype = Object.create(Gp)), + genFun + ); + }), + (exports.awrap = function (arg) { + return { __await: arg }; + }), + defineIteratorMethods(AsyncIterator.prototype), + (AsyncIterator.prototype[asyncIteratorSymbol] = function () { + return this; + }), + (exports.AsyncIterator = AsyncIterator), + (exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { + void 0 === PromiseImpl && (PromiseImpl = Promise); + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); + return exports.isGeneratorFunction(outerFn) + ? iter + : iter.next().then(function (result) { + return result.done ? result.value : iter.next(); + }); + }), + defineIteratorMethods(Gp), + define(Gp, toStringTagSymbol, 'Generator'), + (Gp[iteratorSymbol] = function () { + return this; + }), + (Gp.toString = function () { + return '[object Generator]'; + }), + (exports.keys = function (object) { + var keys = []; + for (var key in object) keys.push(key); + return ( + keys.reverse(), + function next() { + for (; keys.length; ) { + var key = keys.pop(); + if (key in object) return (next.value = key), (next.done = !1), next; + } + return (next.done = !0), next; + } + ); + }), + (exports.values = values), + (Context.prototype = { + constructor: Context, + reset: function (skipTempReset) { + if ( + ((this.prev = 0), + (this.next = 0), + (this.sent = this._sent = undefined), + (this.done = !1), + (this.delegate = null), + (this.method = 'next'), + (this.arg = undefined), + this.tryEntries.forEach(resetTryEntry), + !skipTempReset) + ) + for (var name in this) + 't' === name.charAt(0) && + hasOwn.call(this, name) && + !isNaN(+name.slice(1)) && + (this[name] = undefined); + }, + stop: function () { + this.done = !0; + var rootRecord = this.tryEntries[0].completion; + if ('throw' === rootRecord.type) throw rootRecord.arg; + return this.rval; + }, + dispatchException: function (exception) { + if (this.done) throw exception; + var context = this; + function handle(loc, caught) { + return ( + (record.type = 'throw'), + (record.arg = exception), + (context.next = loc), + caught && ((context.method = 'next'), (context.arg = undefined)), + !!caught + ); + } + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i], + record = entry.completion; + if ('root' === entry.tryLoc) return handle('end'); + if (entry.tryLoc <= this.prev) { + var hasCatch = hasOwn.call(entry, 'catchLoc'), + hasFinally = hasOwn.call(entry, 'finallyLoc'); + if (hasCatch && hasFinally) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } else if (hasCatch) { + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); + } else { + if (!hasFinally) throw new Error('try statement without catch or finally'); + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); + } + } + } + }, + abrupt: function (type, arg) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc <= this.prev && hasOwn.call(entry, 'finallyLoc') && this.prev < entry.finallyLoc) { + var finallyEntry = entry; + break; + } + } + finallyEntry && + ('break' === type || 'continue' === type) && + finallyEntry.tryLoc <= arg && + arg <= finallyEntry.finallyLoc && + (finallyEntry = null); + var record = finallyEntry ? finallyEntry.completion : {}; + return ( + (record.type = type), + (record.arg = arg), + finallyEntry + ? ((this.method = 'next'), (this.next = finallyEntry.finallyLoc), ContinueSentinel) + : this.complete(record) + ); + }, + complete: function (record, afterLoc) { + if ('throw' === record.type) throw record.arg; + return ( + 'break' === record.type || 'continue' === record.type + ? (this.next = record.arg) + : 'return' === record.type + ? ((this.rval = this.arg = record.arg), (this.method = 'return'), (this.next = 'end')) + : 'normal' === record.type && afterLoc && (this.next = afterLoc), + ContinueSentinel + ); + }, + finish: function (finallyLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.finallyLoc === finallyLoc) + return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; + } + }, + catch: function (tryLoc) { + for (var i = this.tryEntries.length - 1; i >= 0; --i) { + var entry = this.tryEntries[i]; + if (entry.tryLoc === tryLoc) { + var record = entry.completion; + if ('throw' === record.type) { + var thrown = record.arg; + resetTryEntry(entry); + } + return thrown; + } + } + throw new Error('illegal catch attempt'); + }, + delegateYield: function (iterable, resultName, nextLoc) { + return ( + (this.delegate = { iterator: values(iterable), resultName, nextLoc }), + 'next' === this.method && (this.arg = undefined), + ContinueSentinel + ); + }, + }), + exports + ); + })(module.exports); + try { + regeneratorRuntime = runtime; + } catch (accidentalStrictMode) { + Function('r', 'regeneratorRuntime = r')(runtime); + } + }), + arrayWithoutHoles = createCommonjsModule(function (module) { + (module.exports = function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return arrayLikeToArray(arr); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(arrayWithoutHoles); + var iterableToArray = createCommonjsModule(function (module) { + (module.exports = function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(iterableToArray); + var nonIterableSpread = createCommonjsModule(function (module) { + (module.exports = function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }); + unwrapExports(nonIterableSpread); + var _toConsumableArray = unwrapExports( + createCommonjsModule(function (module) { + (module.exports = function _toConsumableArray(arr) { + return ( + arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread() + ); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }), + ), + _defineProperty = unwrapExports( + createCommonjsModule(function (module) { + (module.exports = function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + }), + (module.exports.default = module.exports), + (module.exports.__esModule = !0); + }), + ), + ExpandedPathsContext = (0, react.createContext)([{}, function () {}]), + unselectable = { + WebkitTouchCallout: 'none', + WebkitUserSelect: 'none', + KhtmlUserSelect: 'none', + MozUserSelect: 'none', + msUserSelect: 'none', + OUserSelect: 'none', + userSelect: 'none', + }; + function ownKeys$7(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$7(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$7(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$7(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + var base = function (theme) { + return { + DOMNodePreview: { + htmlOpenTag: { + base: { color: theme.HTML_TAG_COLOR }, + tagName: { color: theme.HTML_TAGNAME_COLOR, textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM }, + htmlAttributeName: { color: theme.HTML_ATTRIBUTE_NAME_COLOR }, + htmlAttributeValue: { color: theme.HTML_ATTRIBUTE_VALUE_COLOR }, + }, + htmlCloseTag: { + base: { color: theme.HTML_TAG_COLOR }, + offsetLeft: { marginLeft: -theme.TREENODE_PADDING_LEFT }, + tagName: { color: theme.HTML_TAGNAME_COLOR, textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM }, + }, + htmlComment: { color: theme.HTML_COMMENT_COLOR }, + htmlDoctype: { color: theme.HTML_DOCTYPE_COLOR }, + }, + ObjectPreview: { + objectDescription: { fontStyle: 'italic' }, + preview: { fontStyle: 'italic' }, + arrayMaxProperties: theme.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES, + objectMaxProperties: theme.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES, + }, + ObjectName: { base: { color: theme.OBJECT_NAME_COLOR }, dimmed: { opacity: 0.6 } }, + ObjectValue: { + objectValueNull: { color: theme.OBJECT_VALUE_NULL_COLOR }, + objectValueUndefined: { color: theme.OBJECT_VALUE_UNDEFINED_COLOR }, + objectValueRegExp: { color: theme.OBJECT_VALUE_REGEXP_COLOR }, + objectValueString: { color: theme.OBJECT_VALUE_STRING_COLOR }, + objectValueSymbol: { color: theme.OBJECT_VALUE_SYMBOL_COLOR }, + objectValueNumber: { color: theme.OBJECT_VALUE_NUMBER_COLOR }, + objectValueBoolean: { color: theme.OBJECT_VALUE_BOOLEAN_COLOR }, + objectValueFunctionPrefix: { color: theme.OBJECT_VALUE_FUNCTION_PREFIX_COLOR, fontStyle: 'italic' }, + objectValueFunctionName: { fontStyle: 'italic' }, + }, + TreeView: { treeViewOutline: { padding: 0, margin: 0, listStyleType: 'none' } }, + TreeNode: { + treeNodeBase: { + color: theme.BASE_COLOR, + backgroundColor: theme.BASE_BACKGROUND_COLOR, + lineHeight: theme.TREENODE_LINE_HEIGHT, + cursor: 'default', + boxSizing: 'border-box', + listStyle: 'none', + fontFamily: theme.TREENODE_FONT_FAMILY, + fontSize: theme.TREENODE_FONT_SIZE, + }, + treeNodePreviewContainer: {}, + treeNodePlaceholder: _objectSpread$7( + { whiteSpace: 'pre', fontSize: theme.ARROW_FONT_SIZE, marginRight: theme.ARROW_MARGIN_RIGHT }, + unselectable, + ), + treeNodeArrow: { + base: _objectSpread$7( + _objectSpread$7( + { + color: theme.ARROW_COLOR, + display: 'inline-block', + fontSize: theme.ARROW_FONT_SIZE, + marginRight: theme.ARROW_MARGIN_RIGHT, + }, + parseFloat(theme.ARROW_ANIMATION_DURATION) > 0 + ? { transition: 'transform '.concat(theme.ARROW_ANIMATION_DURATION, ' ease 0s') } + : {}, + ), + unselectable, + ), + expanded: { + WebkitTransform: 'rotateZ(90deg)', + MozTransform: 'rotateZ(90deg)', + transform: 'rotateZ(90deg)', + }, + collapsed: { + WebkitTransform: 'rotateZ(0deg)', + MozTransform: 'rotateZ(0deg)', + transform: 'rotateZ(0deg)', + }, + }, + treeNodeChildNodesContainer: { margin: 0, paddingLeft: theme.TREENODE_PADDING_LEFT }, + }, + TableInspector: { + base: { + color: theme.BASE_COLOR, + position: 'relative', + border: '1px solid '.concat(theme.TABLE_BORDER_COLOR), + fontFamily: theme.BASE_FONT_FAMILY, + fontSize: theme.BASE_FONT_SIZE, + lineHeight: '120%', + boxSizing: 'border-box', + cursor: 'default', + }, + }, + TableInspectorHeaderContainer: { + base: { top: 0, height: '17px', left: 0, right: 0, overflowX: 'hidden' }, + table: { + tableLayout: 'fixed', + borderSpacing: 0, + borderCollapse: 'separate', + height: '100%', + width: '100%', + margin: 0, + }, + }, + TableInspectorDataContainer: { + tr: { display: 'table-row' }, + td: { + boxSizing: 'border-box', + border: 'none', + height: '16px', + verticalAlign: 'top', + padding: '1px 4px', + WebkitUserSelect: 'text', + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + overflow: 'hidden', + lineHeight: '14px', + }, + div: { + position: 'static', + top: '17px', + bottom: 0, + overflowY: 'overlay', + transform: 'translateZ(0)', + left: 0, + right: 0, + overflowX: 'hidden', + }, + table: { + positon: 'static', + left: 0, + top: 0, + right: 0, + bottom: 0, + borderTop: '0 none transparent', + margin: 0, + backgroundImage: theme.TABLE_DATA_BACKGROUND_IMAGE, + backgroundSize: theme.TABLE_DATA_BACKGROUND_SIZE, + tableLayout: 'fixed', + borderSpacing: 0, + borderCollapse: 'separate', + width: '100%', + fontSize: theme.BASE_FONT_SIZE, + lineHeight: '120%', + }, + }, + TableInspectorTH: { + base: { + position: 'relative', + height: 'auto', + textAlign: 'left', + backgroundColor: theme.TABLE_TH_BACKGROUND_COLOR, + borderBottom: '1px solid '.concat(theme.TABLE_BORDER_COLOR), + fontWeight: 'normal', + verticalAlign: 'middle', + padding: '0 4px', + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + overflow: 'hidden', + lineHeight: '14px', + ':hover': { backgroundColor: theme.TABLE_TH_HOVER_COLOR }, + }, + div: { + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + overflow: 'hidden', + fontSize: theme.BASE_FONT_SIZE, + lineHeight: '120%', + }, + }, + TableInspectorLeftBorder: { + none: { borderLeft: 'none' }, + solid: { borderLeft: '1px solid '.concat(theme.TABLE_BORDER_COLOR) }, + }, + TableInspectorSortIcon: _objectSpread$7( + { + display: 'block', + marginRight: 3, + width: 8, + height: 7, + marginTop: -7, + color: theme.TABLE_SORT_ICON_COLOR, + fontSize: 12, + }, + unselectable, + ), + }; + }, + ThemeContext = (0, react.createContext)(base(themes.chromeLight)), + useStyles = function useStyles(baseStylesKey) { + return (0, react.useContext)(ThemeContext)[baseStylesKey]; + }, + themeAcceptor = function themeAcceptor(WrappedComponent) { + var ThemeAcceptor = function ThemeAcceptor(_ref) { + var _ref$theme = _ref.theme, + theme = void 0 === _ref$theme ? 'chromeLight' : _ref$theme, + restProps = _objectWithoutProperties(_ref, ['theme']), + themeStyles = (0, react.useMemo)( + function () { + switch (Object.prototype.toString.call(theme)) { + case '[object String]': + return base(themes[theme]); + case '[object Object]': + return base(theme); + default: + return base(themes.chromeLight); + } + }, + [theme], + ); + return react.createElement( + ThemeContext.Provider, + { value: themeStyles }, + react.createElement(WrappedComponent, restProps), + ); + }; + return ( + (ThemeAcceptor.propTypes = { + theme: prop_types_default().oneOfType([prop_types_default().string, prop_types_default().object]), + }), + ThemeAcceptor + ); + }; + function ownKeys$6(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$6(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$6(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$6(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + var Arrow = function Arrow(_ref) { + var expanded = _ref.expanded, + styles = _ref.styles; + return react.createElement( + 'span', + { style: _objectSpread$6(_objectSpread$6({}, styles.base), expanded ? styles.expanded : styles.collapsed) }, + '▶', + ); + }, + TreeNode = (0, react.memo)(function (props) { + var _props = (props = _objectSpread$6( + { + expanded: !0, + nodeRenderer: function nodeRenderer(_ref2) { + var name = _ref2.name; + return react.createElement('span', null, name); + }, + onClick: function onClick() {}, + shouldShowArrow: !1, + shouldShowPlaceholder: !0, + }, + props, + )), + expanded = _props.expanded, + onClick = _props.onClick, + children = _props.children, + nodeRenderer = _props.nodeRenderer, + title = _props.title, + shouldShowArrow = _props.shouldShowArrow, + shouldShowPlaceholder = _props.shouldShowPlaceholder, + styles = useStyles('TreeNode'), + NodeRenderer = nodeRenderer; + return react.createElement( + 'li', + { 'aria-expanded': expanded, role: 'treeitem', style: styles.treeNodeBase, title }, + react.createElement( + 'div', + { style: styles.treeNodePreviewContainer, onClick }, + shouldShowArrow || react.Children.count(children) > 0 + ? react.createElement(Arrow, { expanded, styles: styles.treeNodeArrow }) + : shouldShowPlaceholder && react.createElement('span', { style: styles.treeNodePlaceholder }, ' '), + react.createElement(NodeRenderer, props), + ), + react.createElement( + 'ol', + { role: 'group', style: styles.treeNodeChildNodesContainer }, + expanded ? children : void 0, + ), + ); + }); + function ownKeys$5(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _createForOfIteratorHelper$1(o, allowArrayLike) { + var it; + if ('undefined' == typeof Symbol || null == o[Symbol.iterator]) { + if ( + Array.isArray(o) || + (it = (function _unsupportedIterableToArray$1(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray$1(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray$1(o, minLen); + })(o)) || + (allowArrayLike && o && 'number' == typeof o.length) + ) { + it && (o = it); + var i = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; + }, + e: function e(_e) { + throw _e; + }, + f: F, + }; + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + var err, + normalCompletion = !0, + didErr = !1; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + return (normalCompletion = step.done), step; + }, + e: function e(_e2) { + (didErr = !0), (err = _e2); + }, + f: function f() { + try { + normalCompletion || null == it.return || it.return(); + } finally { + if (didErr) throw err; + } + }, + }; + } + function _arrayLikeToArray$1(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + TreeNode.propTypes = { + name: prop_types_default().string, + data: prop_types_default().any, + expanded: prop_types_default().bool, + shouldShowArrow: prop_types_default().bool, + shouldShowPlaceholder: prop_types_default().bool, + nodeRenderer: prop_types_default().func, + onClick: prop_types_default().func, + }; + var DEFAULT_ROOT_PATH = '$'; + function hasChildNodes(data, dataIterator) { + return !dataIterator(data).next().done; + } + var getExpandedPaths = function getExpandedPaths( + data, + dataIterator, + expandPaths, + expandLevel, + prevExpandedPaths, + ) { + var wildcardPaths = [] + .concat( + (function wildcardPathsFromLevel(level) { + return Array.from({ length: level }, function (_, i) { + return [DEFAULT_ROOT_PATH] + .concat( + Array.from({ length: i }, function () { + return '*'; + }), + ) + .join('.'); + }); + })(expandLevel), + ) + .concat(expandPaths) + .filter(function (path) { + return 'string' == typeof path; + }), + expandedPaths = []; + return ( + wildcardPaths.forEach(function (wildcardPath) { + var keyPaths = wildcardPath.split('.'); + !(function populatePaths(curData, curPath, depth) { + if (depth !== keyPaths.length) { + var key = keyPaths[depth]; + if (0 === depth) + !hasChildNodes(curData, dataIterator) || + (key !== DEFAULT_ROOT_PATH && '*' !== key) || + populatePaths(curData, DEFAULT_ROOT_PATH, depth + 1); + else if ('*' === key) { + var _step, + _iterator = _createForOfIteratorHelper$1(dataIterator(curData)); + try { + for (_iterator.s(); !(_step = _iterator.n()).done; ) { + var _step$value = _step.value, + name = _step$value.name, + _data = _step$value.data; + hasChildNodes(_data, dataIterator) && + populatePaths(_data, ''.concat(curPath, '.').concat(name), depth + 1); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + } else { + var value = curData[key]; + hasChildNodes(value, dataIterator) && + populatePaths(value, ''.concat(curPath, '.').concat(key), depth + 1); + } + } else expandedPaths.push(curPath); + })(data, '', 0); + }), + expandedPaths.reduce( + function (obj, path) { + return (obj[path] = !0), obj; + }, + (function _objectSpread$5(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$5(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$5(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + })({}, prevExpandedPaths), + ) + ); + }; + function ownKeys$4(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$4(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$4(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$4(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + var ConnectedTreeNode = (0, react.memo)(function (props) { + var data = props.data, + dataIterator = props.dataIterator, + path = props.path, + depth = props.depth, + nodeRenderer = props.nodeRenderer, + _useContext = (0, react.useContext)(ExpandedPathsContext), + _useContext2 = _slicedToArray(_useContext, 2), + expandedPaths = _useContext2[0], + setExpandedPaths = _useContext2[1], + nodeHasChildNodes = hasChildNodes(data, dataIterator), + expanded = !!expandedPaths[path], + handleClick = (0, react.useCallback)( + function () { + return ( + nodeHasChildNodes && + setExpandedPaths(function (prevExpandedPaths) { + return _objectSpread$4( + _objectSpread$4({}, prevExpandedPaths), + {}, + _defineProperty({}, path, !expanded), + ); + }) + ); + }, + [nodeHasChildNodes, setExpandedPaths, path, expanded], + ); + return react.createElement( + TreeNode, + _extends( + { + expanded, + onClick: handleClick, + shouldShowArrow: nodeHasChildNodes, + shouldShowPlaceholder: depth > 0, + nodeRenderer, + }, + props, + ), + expanded + ? _toConsumableArray(dataIterator(data)).map(function (_ref) { + var name = _ref.name, + data = _ref.data, + renderNodeProps = _objectWithoutProperties(_ref, ['name', 'data']); + return react.createElement( + ConnectedTreeNode, + _extends( + { + name, + data, + depth: depth + 1, + path: ''.concat(path, '.').concat(name), + key: name, + dataIterator, + nodeRenderer, + }, + renderNodeProps, + ), + ); + }) + : null, + ); + }); + ConnectedTreeNode.propTypes = { + name: prop_types_default().string, + data: prop_types_default().any, + dataIterator: prop_types_default().func, + depth: prop_types_default().number, + expanded: prop_types_default().bool, + nodeRenderer: prop_types_default().func, + }; + var TreeView = (0, react.memo)(function (_ref2) { + var name = _ref2.name, + data = _ref2.data, + dataIterator = _ref2.dataIterator, + nodeRenderer = _ref2.nodeRenderer, + expandPaths = _ref2.expandPaths, + expandLevel = _ref2.expandLevel, + styles = useStyles('TreeView'), + stateAndSetter = (0, react.useState)({}), + setExpandedPaths = _slicedToArray(stateAndSetter, 2)[1]; + return ( + (0, react.useLayoutEffect)( + function () { + return setExpandedPaths(function (prevExpandedPaths) { + return getExpandedPaths(data, dataIterator, expandPaths, expandLevel, prevExpandedPaths); + }); + }, + [data, dataIterator, expandPaths, expandLevel], + ), + react.createElement( + ExpandedPathsContext.Provider, + { value: stateAndSetter }, + react.createElement( + 'ol', + { role: 'tree', style: styles.treeViewOutline }, + react.createElement(ConnectedTreeNode, { + name, + data, + dataIterator, + depth: 0, + path: DEFAULT_ROOT_PATH, + nodeRenderer, + }), + ), + ) + ); + }); + function ownKeys$3(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$3(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$3(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$3(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + TreeView.propTypes = { + name: prop_types_default().string, + data: prop_types_default().any, + dataIterator: prop_types_default().func, + nodeRenderer: prop_types_default().func, + expandPaths: prop_types_default().oneOfType([prop_types_default().string, prop_types_default().array]), + expandLevel: prop_types_default().number, + }; + var ObjectName = function ObjectName(_ref) { + var name = _ref.name, + _ref$dimmed = _ref.dimmed, + dimmed = void 0 !== _ref$dimmed && _ref$dimmed, + _ref$styles = _ref.styles, + styles = void 0 === _ref$styles ? {} : _ref$styles, + themeStyles = useStyles('ObjectName'), + appliedStyles = _objectSpread$3( + _objectSpread$3(_objectSpread$3({}, themeStyles.base), dimmed ? themeStyles.dimmed : {}), + styles, + ); + return react.createElement('span', { style: appliedStyles }, name); + }; + function ownKeys$2(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$2(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$2(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + ObjectName.propTypes = { name: prop_types_default().string, dimmed: prop_types_default().bool }; + var ObjectValue = function ObjectValue(_ref) { + var object = _ref.object, + styles = _ref.styles, + themeStyles = useStyles('ObjectValue'), + mkStyle = function mkStyle(key) { + return _objectSpread$2(_objectSpread$2({}, themeStyles[key]), styles); + }; + switch (_typeof(object)) { + case 'bigint': + return react.createElement('span', { style: mkStyle('objectValueNumber') }, String(object), 'n'); + case 'number': + return react.createElement('span', { style: mkStyle('objectValueNumber') }, String(object)); + case 'string': + return react.createElement('span', { style: mkStyle('objectValueString') }, '"', object, '"'); + case 'boolean': + return react.createElement('span', { style: mkStyle('objectValueBoolean') }, String(object)); + case 'undefined': + return react.createElement('span', { style: mkStyle('objectValueUndefined') }, 'undefined'); + case 'object': + return null === object + ? react.createElement('span', { style: mkStyle('objectValueNull') }, 'null') + : object instanceof Date + ? react.createElement('span', null, object.toString()) + : object instanceof RegExp + ? react.createElement('span', { style: mkStyle('objectValueRegExp') }, object.toString()) + : Array.isArray(object) + ? react.createElement('span', null, 'Array('.concat(object.length, ')')) + : object.constructor + ? 'function' == typeof object.constructor.isBuffer && object.constructor.isBuffer(object) + ? react.createElement('span', null, 'Buffer['.concat(object.length, ']')) + : react.createElement('span', null, object.constructor.name) + : react.createElement('span', null, 'Object'); + case 'function': + return react.createElement( + 'span', + null, + react.createElement('span', { style: mkStyle('objectValueFunctionPrefix') }, 'ƒ '), + react.createElement('span', { style: mkStyle('objectValueFunctionName') }, object.name, '()'), + ); + case 'symbol': + return react.createElement('span', { style: mkStyle('objectValueSymbol') }, object.toString()); + default: + return react.createElement('span', null); + } + }; + ObjectValue.propTypes = { object: prop_types_default().any }; + var react_inspector_hasOwnProperty = Object.prototype.hasOwnProperty, + propertyIsEnumerable = Object.prototype.propertyIsEnumerable; + function getPropertyValue(object, propertyName) { + var propertyDescriptor = Object.getOwnPropertyDescriptor(object, propertyName); + if (propertyDescriptor.get) + try { + return propertyDescriptor.get(); + } catch (_unused) { + return propertyDescriptor.get; + } + return object[propertyName]; + } + function intersperse(arr, sep) { + return 0 === arr.length + ? [] + : arr.slice(1).reduce( + function (xs, x) { + return xs.concat([sep, x]); + }, + [arr[0]], + ); + } + var ObjectPreview = function ObjectPreview(_ref) { + var data = _ref.data, + styles = useStyles('ObjectPreview'), + object = data; + if ('object' !== _typeof(object) || null === object || object instanceof Date || object instanceof RegExp) + return react.createElement(ObjectValue, { object }); + if (Array.isArray(object)) { + var maxProperties = styles.arrayMaxProperties, + previewArray = object.slice(0, maxProperties).map(function (element, index) { + return react.createElement(ObjectValue, { key: index, object: element }); + }); + object.length > maxProperties && previewArray.push(react.createElement('span', { key: 'ellipsis' }, '…')); + var arrayLength = object.length; + return react.createElement( + react.Fragment, + null, + react.createElement( + 'span', + { style: styles.objectDescription }, + 0 === arrayLength ? '' : '('.concat(arrayLength, ') '), + ), + react.createElement('span', { style: styles.preview }, '[', intersperse(previewArray, ', '), ']'), + ); + } + var _maxProperties = styles.objectMaxProperties, + propertyNodes = []; + for (var propertyName in object) + if (react_inspector_hasOwnProperty.call(object, propertyName)) { + var ellipsis = void 0; + propertyNodes.length === _maxProperties - 1 && + Object.keys(object).length > _maxProperties && + (ellipsis = react.createElement('span', { key: 'ellipsis' }, '…')); + var propertyValue = getPropertyValue(object, propertyName); + if ( + (propertyNodes.push( + react.createElement( + 'span', + { key: propertyName }, + react.createElement(ObjectName, { name: propertyName || '""' }), + ': ', + react.createElement(ObjectValue, { object: propertyValue }), + ellipsis, + ), + ), + ellipsis) + ) + break; + } + var objectConstructorName = object.constructor ? object.constructor.name : 'Object'; + return react.createElement( + react.Fragment, + null, + react.createElement( + 'span', + { style: styles.objectDescription }, + 'Object' === objectConstructorName ? '' : ''.concat(objectConstructorName, ' '), + ), + react.createElement('span', { style: styles.preview }, '{', intersperse(propertyNodes, ', '), '}'), + ); + }, + ObjectRootLabel = function ObjectRootLabel(_ref) { + var name = _ref.name, + data = _ref.data; + return 'string' == typeof name + ? react.createElement( + 'span', + null, + react.createElement(ObjectName, { name }), + react.createElement('span', null, ': '), + react.createElement(ObjectPreview, { data }), + ) + : react.createElement(ObjectPreview, { data }); + }, + ObjectLabel = function ObjectLabel(_ref) { + var name = _ref.name, + data = _ref.data, + _ref$isNonenumerable = _ref.isNonenumerable, + isNonenumerable = void 0 !== _ref$isNonenumerable && _ref$isNonenumerable, + object = data; + return react.createElement( + 'span', + null, + 'string' == typeof name + ? react.createElement(ObjectName, { name, dimmed: isNonenumerable }) + : react.createElement(ObjectPreview, { data: name }), + react.createElement('span', null, ': '), + react.createElement(ObjectValue, { object }), + ); + }; + function _createForOfIteratorHelper(o, allowArrayLike) { + var it; + if ('undefined' == typeof Symbol || null == o[Symbol.iterator]) { + if ( + Array.isArray(o) || + (it = (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(o)) || + (allowArrayLike && o && 'number' == typeof o.length) + ) { + it && (o = it); + var i = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; + }, + e: function e(_e) { + throw _e; + }, + f: F, + }; + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + var err, + normalCompletion = !0, + didErr = !1; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + return (normalCompletion = step.done), step; + }, + e: function e(_e2) { + (didErr = !0), (err = _e2); + }, + f: function f() { + try { + normalCompletion || null == it.return || it.return(); + } finally { + if (didErr) throw err; + } + }, + }; + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + ObjectLabel.propTypes = { isNonenumerable: prop_types_default().bool }; + var defaultNodeRenderer = function defaultNodeRenderer(_ref) { + var depth = _ref.depth, + name = _ref.name, + data = _ref.data, + isNonenumerable = _ref.isNonenumerable; + return 0 === depth + ? react.createElement(ObjectRootLabel, { name, data }) + : react.createElement(ObjectLabel, { name, data, isNonenumerable }); + }, + ObjectInspector = function ObjectInspector(_ref2) { + var _ref2$showNonenumerab = _ref2.showNonenumerable, + showNonenumerable = void 0 !== _ref2$showNonenumerab && _ref2$showNonenumerab, + sortObjectKeys = _ref2.sortObjectKeys, + nodeRenderer = _ref2.nodeRenderer, + treeViewProps = _objectWithoutProperties(_ref2, ['showNonenumerable', 'sortObjectKeys', 'nodeRenderer']), + dataIterator = (function createIterator(showNonenumerable, sortObjectKeys) { + return regenerator.mark(function objectIterator(data) { + var dataIsArray, + i, + _iterator, + _step, + entry, + _entry, + k, + v, + keys, + _iterator2, + _step2, + propertyName, + propertyValue, + _propertyValue; + return regenerator.wrap( + function objectIterator$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if (('object' === _typeof(data) && null !== data) || 'function' == typeof data) { + _context.next = 3; + break; + } + return _context.abrupt('return'); + case 3: + if ((dataIsArray = Array.isArray(data)) || !data[Symbol.iterator]) { + _context.next = 32; + break; + } + (i = 0), (_iterator = _createForOfIteratorHelper(data)), (_context.prev = 7), _iterator.s(); + case 9: + if ((_step = _iterator.n()).done) { + _context.next = 22; + break; + } + if (((entry = _step.value), !Array.isArray(entry) || 2 !== entry.length)) { + _context.next = 17; + break; + } + return ( + (_entry = _slicedToArray(entry, 2)), + (k = _entry[0]), + (v = _entry[1]), + (_context.next = 15), + { name: k, data: v } + ); + case 15: + _context.next = 19; + break; + case 17: + return (_context.next = 19), { name: i.toString(), data: entry }; + case 19: + i++; + case 20: + _context.next = 9; + break; + case 22: + _context.next = 27; + break; + case 24: + (_context.prev = 24), (_context.t0 = _context.catch(7)), _iterator.e(_context.t0); + case 27: + return (_context.prev = 27), _iterator.f(), _context.finish(27); + case 30: + _context.next = 64; + break; + case 32: + (keys = Object.getOwnPropertyNames(data)), + !0 !== sortObjectKeys || dataIsArray + ? 'function' == typeof sortObjectKeys && keys.sort(sortObjectKeys) + : keys.sort(), + (_iterator2 = _createForOfIteratorHelper(keys)), + (_context.prev = 35), + _iterator2.s(); + case 37: + if ((_step2 = _iterator2.n()).done) { + _context.next = 53; + break; + } + if (((propertyName = _step2.value), !propertyIsEnumerable.call(data, propertyName))) { + _context.next = 45; + break; + } + return ( + (propertyValue = getPropertyValue(data, propertyName)), + (_context.next = 43), + { name: propertyName || '""', data: propertyValue } + ); + case 43: + _context.next = 51; + break; + case 45: + if (!showNonenumerable) { + _context.next = 51; + break; + } + _propertyValue = void 0; + try { + _propertyValue = getPropertyValue(data, propertyName); + } catch (e) {} + if (void 0 === _propertyValue) { + _context.next = 51; + break; + } + return ( + (_context.next = 51), { name: propertyName, data: _propertyValue, isNonenumerable: !0 } + ); + case 51: + _context.next = 37; + break; + case 53: + _context.next = 58; + break; + case 55: + (_context.prev = 55), (_context.t1 = _context.catch(35)), _iterator2.e(_context.t1); + case 58: + return (_context.prev = 58), _iterator2.f(), _context.finish(58); + case 61: + if (!showNonenumerable || data === Object.prototype) { + _context.next = 64; + break; + } + return ( + (_context.next = 64), + { name: '__proto__', data: Object.getPrototypeOf(data), isNonenumerable: !0 } + ); + case 64: + case 'end': + return _context.stop(); + } + }, + objectIterator, + null, + [ + [7, 24, 27, 30], + [35, 55, 58, 61], + ], + ); + }); + })(showNonenumerable, sortObjectKeys), + renderer = nodeRenderer || defaultNodeRenderer; + return react.createElement(TreeView, _extends({ nodeRenderer: renderer, dataIterator }, treeViewProps)); + }; + ObjectInspector.propTypes = { + expandLevel: prop_types_default().number, + expandPaths: prop_types_default().oneOfType([prop_types_default().string, prop_types_default().array]), + name: prop_types_default().string, + data: prop_types_default().any, + showNonenumerable: prop_types_default().bool, + sortObjectKeys: prop_types_default().oneOfType([prop_types_default().bool, prop_types_default().func]), + nodeRenderer: prop_types_default().func, + }; + var ObjectInspector$1 = themeAcceptor(ObjectInspector); + function ownKeys$1(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread$1(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys$1(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys$1(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + Array.prototype.includes || + (Array.prototype.includes = function (searchElement) { + var O = Object(this), + len = parseInt(O.length) || 0; + if (0 === len) return !1; + var k, + currentElement, + n = parseInt(arguments[1]) || 0; + for (n >= 0 ? (k = n) : (k = len + n) < 0 && (k = 0); k < len; ) { + if ( + searchElement === (currentElement = O[k]) || + (searchElement != searchElement && currentElement != currentElement) + ) + return !0; + k++; + } + return !1; + }); + var DataContainer = function DataContainer(_ref) { + var rows = _ref.rows, + columns = _ref.columns, + rowsData = _ref.rowsData, + styles = useStyles('TableInspectorDataContainer'), + borderStyles = useStyles('TableInspectorLeftBorder'); + return react.createElement( + 'div', + { style: styles.div }, + react.createElement( + 'table', + { style: styles.table }, + react.createElement('colgroup', null), + react.createElement( + 'tbody', + null, + rows.map(function (row, i) { + return react.createElement( + 'tr', + { key: row, style: styles.tr }, + react.createElement( + 'td', + { style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.none) }, + row, + ), + columns.map(function (column) { + var rowData = rowsData[i]; + return 'object' === _typeof(rowData) && + null !== rowData && + react_inspector_hasOwnProperty.call(rowData, column) + ? react.createElement( + 'td', + { key: column, style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.solid) }, + react.createElement(ObjectValue, { object: rowData[column] }), + ) + : react.createElement('td', { + key: column, + style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.solid), + }); + }), + ); + }), + ), + ), + ); + }; + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + var SortIconContainer = function SortIconContainer(props) { + return react.createElement( + 'div', + { style: { position: 'absolute', top: 1, right: 0, bottom: 1, display: 'flex', alignItems: 'center' } }, + props.children, + ); + }, + SortIcon = function SortIcon(_ref) { + var sortAscending = _ref.sortAscending, + styles = useStyles('TableInspectorSortIcon'), + glyph = sortAscending ? '▲' : '▼'; + return react.createElement('div', { style: styles }, glyph); + }, + TH = function TH(_ref2) { + var _ref2$sortAscending = _ref2.sortAscending, + sortAscending = void 0 !== _ref2$sortAscending && _ref2$sortAscending, + _ref2$sorted = _ref2.sorted, + sorted = void 0 !== _ref2$sorted && _ref2$sorted, + _ref2$onClick = _ref2.onClick, + onClick = void 0 === _ref2$onClick ? void 0 : _ref2$onClick, + _ref2$borderStyle = _ref2.borderStyle, + borderStyle = void 0 === _ref2$borderStyle ? {} : _ref2$borderStyle, + children = _ref2.children, + thProps = _objectWithoutProperties(_ref2, [ + 'sortAscending', + 'sorted', + 'onClick', + 'borderStyle', + 'children', + ]), + styles = useStyles('TableInspectorTH'), + _useState = (0, react.useState)(!1), + _useState2 = _slicedToArray(_useState, 2), + hovered = _useState2[0], + setHovered = _useState2[1], + handleMouseEnter = (0, react.useCallback)(function () { + return setHovered(!0); + }, []), + handleMouseLeave = (0, react.useCallback)(function () { + return setHovered(!1); + }, []); + return react.createElement( + 'th', + _extends({}, thProps, { + style: _objectSpread( + _objectSpread(_objectSpread({}, styles.base), borderStyle), + hovered ? styles.base[':hover'] : {}, + ), + onMouseEnter: handleMouseEnter, + onMouseLeave: handleMouseLeave, + onClick, + }), + react.createElement('div', { style: styles.div }, children), + sorted && react.createElement(SortIconContainer, null, react.createElement(SortIcon, { sortAscending })), + ); + }, + HeaderContainer = function HeaderContainer(_ref) { + var _ref$indexColumnText = _ref.indexColumnText, + indexColumnText = void 0 === _ref$indexColumnText ? '(index)' : _ref$indexColumnText, + _ref$columns = _ref.columns, + columns = void 0 === _ref$columns ? [] : _ref$columns, + sorted = _ref.sorted, + sortIndexColumn = _ref.sortIndexColumn, + sortColumn = _ref.sortColumn, + sortAscending = _ref.sortAscending, + onTHClick = _ref.onTHClick, + onIndexTHClick = _ref.onIndexTHClick, + styles = useStyles('TableInspectorHeaderContainer'), + borderStyles = useStyles('TableInspectorLeftBorder'); + return react.createElement( + 'div', + { style: styles.base }, + react.createElement( + 'table', + { style: styles.table }, + react.createElement( + 'tbody', + null, + react.createElement( + 'tr', + null, + react.createElement( + TH, + { + borderStyle: borderStyles.none, + sorted: sorted && sortIndexColumn, + sortAscending, + onClick: onIndexTHClick, + }, + indexColumnText, + ), + columns.map(function (column) { + return react.createElement( + TH, + { + borderStyle: borderStyles.solid, + key: column, + sorted: sorted && sortColumn === column, + sortAscending, + onClick: onTHClick.bind(null, column), + }, + column, + ); + }), + ), + ), + ), + ); + }, + TableInspector = function TableInspector(_ref) { + var data = _ref.data, + columns = _ref.columns, + styles = useStyles('TableInspector'), + _useState = (0, react.useState)({ sorted: !1, sortIndexColumn: !1, sortColumn: void 0, sortAscending: !1 }), + _useState2 = _slicedToArray(_useState, 2), + _useState2$ = _useState2[0], + sorted = _useState2$.sorted, + sortIndexColumn = _useState2$.sortIndexColumn, + sortColumn = _useState2$.sortColumn, + sortAscending = _useState2$.sortAscending, + setState = _useState2[1], + handleIndexTHClick = (0, react.useCallback)(function () { + setState(function (_ref2) { + var sortIndexColumn = _ref2.sortIndexColumn, + sortAscending = _ref2.sortAscending; + return { + sorted: !0, + sortIndexColumn: !0, + sortColumn: void 0, + sortAscending: !sortIndexColumn || !sortAscending, + }; + }); + }, []), + handleTHClick = (0, react.useCallback)(function (col) { + setState(function (_ref3) { + var sortColumn = _ref3.sortColumn, + sortAscending = _ref3.sortAscending; + return { + sorted: !0, + sortIndexColumn: !1, + sortColumn: col, + sortAscending: col !== sortColumn || !sortAscending, + }; + }); + }, []); + if ('object' !== _typeof(data) || null === data) return react.createElement('div', null); + var _getHeaders = (function getHeaders(data) { + if ('object' === _typeof(data)) { + var rowHeaders; + if (Array.isArray(data)) { + var nRows = data.length; + rowHeaders = _toConsumableArray(Array(nRows).keys()); + } else null !== data && (rowHeaders = Object.keys(data)); + var colHeaders = rowHeaders.reduce(function (colHeaders, rowHeader) { + var row = data[rowHeader]; + return ( + 'object' === _typeof(row) && + null !== row && + Object.keys(row).reduce(function (xs, x) { + return xs.includes(x) || xs.push(x), xs; + }, colHeaders), + colHeaders + ); + }, []); + return { rowHeaders, colHeaders }; + } + })(data), + rowHeaders = _getHeaders.rowHeaders, + colHeaders = _getHeaders.colHeaders; + void 0 !== columns && (colHeaders = columns); + var columnDataWithRowIndexes, + rowsData = rowHeaders.map(function (rowHeader) { + return data[rowHeader]; + }); + if ( + (void 0 !== sortColumn + ? (columnDataWithRowIndexes = rowsData.map(function (rowData, index) { + return 'object' === _typeof(rowData) && null !== rowData + ? [rowData[sortColumn], index] + : [void 0, index]; + })) + : sortIndexColumn && + (columnDataWithRowIndexes = rowHeaders.map(function (rowData, index) { + return [rowHeaders[index], index]; + })), + void 0 !== columnDataWithRowIndexes) + ) { + var sortedRowIndexes = columnDataWithRowIndexes + .sort( + (function comparator(mapper, ascending) { + return function (a, b) { + var result, + v1 = mapper(a), + v2 = mapper(b), + type1 = _typeof(v1), + type2 = _typeof(v2), + lt = function lt(v1, v2) { + return v1 < v2 ? -1 : v1 > v2 ? 1 : 0; + }; + if (type1 === type2) result = lt(v1, v2); + else { + var order = { string: 0, number: 1, object: 2, symbol: 3, boolean: 4, undefined: 5, function: 6 }; + result = lt(order[type1], order[type2]); + } + return ascending || (result = -result), result; + }; + })(function (item) { + return item[0]; + }, sortAscending), + ) + .map(function (item) { + return item[1]; + }); + (rowHeaders = sortedRowIndexes.map(function (i) { + return rowHeaders[i]; + })), + (rowsData = sortedRowIndexes.map(function (i) { + return rowsData[i]; + })); + } + return react.createElement( + 'div', + { style: styles.base }, + react.createElement(HeaderContainer, { + columns: colHeaders, + sorted, + sortIndexColumn, + sortColumn, + sortAscending, + onTHClick: handleTHClick, + onIndexTHClick: handleIndexTHClick, + }), + react.createElement(DataContainer, { rows: rowHeaders, columns: colHeaders, rowsData }), + ); + }; + TableInspector.propTypes = { + data: prop_types_default().oneOfType([prop_types_default().array, prop_types_default().object]), + columns: prop_types_default().array, + }; + var TableInspector$1 = themeAcceptor(TableInspector), + shouldInline = function shouldInline(data) { + return ( + 0 === data.childNodes.length || + (1 === data.childNodes.length && + data.childNodes[0].nodeType === Node.TEXT_NODE && + data.textContent.length < 80) + ); + }, + OpenTag = function OpenTag(_ref) { + var tagName = _ref.tagName, + attributes = _ref.attributes, + styles = _ref.styles; + return react.createElement( + 'span', + { style: styles.base }, + '<', + react.createElement('span', { style: styles.tagName }, tagName), + (function () { + if (attributes) { + for (var attributeNodes = [], i = 0; i < attributes.length; i++) { + var attribute = attributes[i]; + attributeNodes.push( + react.createElement( + 'span', + { key: i }, + ' ', + react.createElement('span', { style: styles.htmlAttributeName }, attribute.name), + '="', + react.createElement('span', { style: styles.htmlAttributeValue }, attribute.value), + '"', + ), + ); + } + return attributeNodes; + } + })(), + '>', + ); + }, + CloseTag = function CloseTag(_ref2) { + var tagName = _ref2.tagName, + _ref2$isChildNode = _ref2.isChildNode, + isChildNode = void 0 !== _ref2$isChildNode && _ref2$isChildNode, + styles = _ref2.styles; + return react.createElement( + 'span', + { style: _extends({}, styles.base, isChildNode && styles.offsetLeft) }, + '', + ); + }, + nameByNodeType = { + 1: 'ELEMENT_NODE', + 3: 'TEXT_NODE', + 7: 'PROCESSING_INSTRUCTION_NODE', + 8: 'COMMENT_NODE', + 9: 'DOCUMENT_NODE', + 10: 'DOCUMENT_TYPE_NODE', + 11: 'DOCUMENT_FRAGMENT_NODE', + }, + DOMNodePreview = function DOMNodePreview(_ref3) { + var isCloseTag = _ref3.isCloseTag, + data = _ref3.data, + expanded = _ref3.expanded, + styles = useStyles('DOMNodePreview'); + if (isCloseTag) + return react.createElement(CloseTag, { + styles: styles.htmlCloseTag, + isChildNode: !0, + tagName: data.tagName, + }); + switch (data.nodeType) { + case Node.ELEMENT_NODE: + return react.createElement( + 'span', + null, + react.createElement(OpenTag, { + tagName: data.tagName, + attributes: data.attributes, + styles: styles.htmlOpenTag, + }), + shouldInline(data) ? data.textContent : !expanded && '…', + !expanded && react.createElement(CloseTag, { tagName: data.tagName, styles: styles.htmlCloseTag }), + ); + case Node.TEXT_NODE: + return react.createElement('span', null, data.textContent); + case Node.CDATA_SECTION_NODE: + return react.createElement('span', null, ''); + case Node.COMMENT_NODE: + return react.createElement('span', { style: styles.htmlComment }, '\x3c!--', data.textContent, '--\x3e'); + case Node.PROCESSING_INSTRUCTION_NODE: + return react.createElement('span', null, data.nodeName); + case Node.DOCUMENT_TYPE_NODE: + return react.createElement( + 'span', + { style: styles.htmlDoctype }, + '', + ); + case Node.DOCUMENT_NODE: + case Node.DOCUMENT_FRAGMENT_NODE: + return react.createElement('span', null, data.nodeName); + default: + return react.createElement('span', null, nameByNodeType[data.nodeType]); + } + }; + DOMNodePreview.propTypes = { + isCloseTag: prop_types_default().bool, + name: prop_types_default().string, + data: prop_types_default().object.isRequired, + expanded: prop_types_default().bool.isRequired, + }; + var domIterator = regenerator.mark(function domIterator(data) { + var i, node; + return regenerator.wrap(function domIterator$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if (!data || !data.childNodes) { + _context.next = 17; + break; + } + if (!shouldInline(data)) { + _context.next = 4; + break; + } + return _context.abrupt('return'); + case 4: + i = 0; + case 5: + if (!(i < data.childNodes.length)) { + _context.next = 14; + break; + } + if ((node = data.childNodes[i]).nodeType !== Node.TEXT_NODE || 0 !== node.textContent.trim().length) { + _context.next = 9; + break; + } + return _context.abrupt('continue', 11); + case 9: + return (_context.next = 11), { name: ''.concat(node.tagName, '[').concat(i, ']'), data: node }; + case 11: + i++, (_context.next = 5); + break; + case 14: + if (!data.tagName) { + _context.next = 17; + break; + } + return (_context.next = 17), { name: 'CLOSE_TAG', data: { tagName: data.tagName }, isCloseTag: !0 }; + case 17: + case 'end': + return _context.stop(); + } + }, domIterator); + }), + DOMInspector = function DOMInspector(props) { + return react.createElement( + TreeView, + _extends({ nodeRenderer: DOMNodePreview, dataIterator: domIterator }, props), + ); + }; + DOMInspector.propTypes = { data: prop_types_default().object.isRequired }; + var DOMInspector$1 = themeAcceptor(DOMInspector), + Inspector = function Inspector(_ref) { + var _ref$table = _ref.table, + table = void 0 !== _ref$table && _ref$table, + data = _ref.data, + rest = _objectWithoutProperties(_ref, ['table', 'data']); + return table + ? react.createElement(TableInspector$1, _extends({ data }, rest)) + : is_dom_default()(data) + ? react.createElement(DOMInspector$1, _extends({ data }, rest)) + : react.createElement(ObjectInspector$1, _extends({ data }, rest)); + }; + Inspector.propTypes = { + data: prop_types_default().any, + name: prop_types_default().string, + table: prop_types_default().bool, + }; + const react_inspector = Inspector; + var ScrollArea = __webpack_require__(54214), + ActionBar = __webpack_require__(97408), + polished_esm = (__webpack_require__(35744), __webpack_require__(1039)), + Action = theming_dist_esm.styled.div({ + display: 'flex', + padding: 0, + borderLeft: '5px solid transparent', + borderBottom: '1px solid transparent', + transition: 'all 0.1s', + alignItems: 'flex-start', + whiteSpace: 'pre', + }), + Counter = theming_dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + backgroundColor: (0, polished_esm.jb)(0.5, theme.appBorderColor), + color: theme.color.inverseText, + fontSize: theme.typography.size.s1, + fontWeight: theme.typography.weight.bold, + lineHeight: 1, + padding: '1px 5px', + borderRadius: 20, + margin: '2px 0px', + }; + }), + InspectorContainer = theming_dist_esm.styled.div({ flex: 1, padding: '0 0 0 5px' }); + function ActionLogger_extends() { + return ( + (ActionLogger_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + ActionLogger_extends.apply(this, arguments) + ); + } + function ActionLogger_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Wrapper = (0, theming_dist_esm.styled)(function (_ref) { + var children = _ref.children, + className = _ref.className; + return react.createElement(ScrollArea.x, { horizontal: !0, vertical: !0, className }, children); + })({ margin: 0, padding: '10px 5px 20px' }), + ThemedInspector = (0, emotion_theming_browser_esm.Zz)(function (_ref2) { + var theme = _ref2.theme, + props = ActionLogger_objectWithoutProperties(_ref2, ['theme']); + return react.createElement( + react_inspector, + ActionLogger_extends({ theme: theme.addonActionsTheme || 'chromeLight' }, props), + ); + }), + ActionLogger_ActionLogger = function ActionLogger(_ref3) { + var actions = _ref3.actions, + onClear = _ref3.onClear; + return react.createElement( + react.Fragment, + null, + react.createElement( + Wrapper, + { title: 'actionslogger' }, + actions.map(function (action) { + return react.createElement( + Action, + { key: action.id }, + action.count > 1 && react.createElement(Counter, null, action.count), + react.createElement( + InspectorContainer, + null, + react.createElement(ThemedInspector, { + sortObjectKeys: !0, + showNonenumerable: !1, + name: action.data.name, + data: action.data.args || action.data, + }), + ), + ); + }), + ), + react.createElement(ActionBar.o, { actionItems: [{ title: 'Clear', onClick: onClear }] }), + ); + }, + addon_actions_dist_esm = __webpack_require__(66702); + function ActionLogger_typeof(obj) { + return ( + (ActionLogger_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + ActionLogger_typeof(obj) + ); + } + function ActionLogger_toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return ActionLogger_arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function ActionLogger_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return ActionLogger_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return ActionLogger_arrayLikeToArray(o, minLen); + })(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function ActionLogger_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== ActionLogger_typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var ActionLogger = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ActionLogger, _Component); + var _super = _createSuper(ActionLogger); + function ActionLogger(props) { + var _this; + return ( + (function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, ActionLogger), + ((_this = _super.call(this, props)).mounted = void 0), + (_this.handleStoryChange = function () { + var actions = _this.state.actions; + actions.length > 0 && actions[0].options.clearOnStoryChange && _this.clearActions(); + }), + (_this.addAction = function (action) { + _this.setState(function (prevState) { + var actions = ActionLogger_toConsumableArray(prevState.actions), + previous = actions.length && actions[0]; + return ( + previous && + (function safeDeepEqual(a, b) { + try { + return fast_deep_equal_default()(a, b); + } catch (e) { + return !1; + } + })(previous.data, action.data) + ? previous.count++ + : ((action.count = 1), actions.unshift(action)), + { actions: actions.slice(0, action.options.limit) } + ); + }); + }), + (_this.clearActions = function () { + _this.setState({ actions: [] }); + }), + (_this.state = { actions: [] }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(ActionLogger, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + this.mounted = !0; + var api = this.props.api; + api.on(addon_actions_dist_esm.RS, this.addAction), + api.on(dist_esm.STORY_CHANGED, this.handleStoryChange); + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.mounted = !1; + var api = this.props.api; + api.off(dist_esm.STORY_CHANGED, this.handleStoryChange), + api.off(addon_actions_dist_esm.RS, this.addAction); + }, + }, + { + key: 'render', + value: function render() { + var _this$state$actions = this.state.actions, + actions = void 0 === _this$state$actions ? [] : _this$state$actions, + active = this.props.active, + props = { actions, onClear: this.clearActions }; + return active ? react.createElement(ActionLogger_ActionLogger, props) : null; + }, + }, + ]), + ActionLogger + ); + })(react.Component), + constants = __webpack_require__(44773); + function register_slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function register_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return register_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return register_arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function register_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + esm.KP.register(constants.ZY, function (api) { + esm.KP.addPanel(constants.im, { + title: function title() { + var _useState2 = register_slicedToArray((0, react.useState)(0), 2), + actionsCount = _useState2[0], + setActionsCount = _useState2[1], + onEvent = function onEvent() { + return setActionsCount(function (previous) { + return previous + 1; + }); + }, + onChange = function onChange() { + return setActionsCount(0); + }; + (0, react.useEffect)(function () { + return ( + api.on(constants.RS, onEvent), + api.on(dist_esm.STORY_CHANGED, onChange), + function () { + api.off(constants.RS, onEvent), api.off(dist_esm.STORY_CHANGED, onChange); + } + ); + }); + var suffix = 0 === actionsCount ? '' : ' ('.concat(actionsCount, ')'); + return 'Actions'.concat(suffix); + }, + type: types.V.PANEL, + render: function render(_ref) { + var active = _ref.active, + key = _ref.key; + return react.createElement(ActionLogger, { key, api, active }); + }, + paramKey: constants.Sz, + }); + }); + }, + 47044: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(74069), __webpack_require__(77950); + var _templateObject, + react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + ADDON_ID = 'storybook/background', + PARAM_KEY = 'backgrounds', + memoizerific = + (''.concat(ADDON_ID, '/update'), + __webpack_require__(43450), + __webpack_require__(26936), + __webpack_require__(18178), + __webpack_require__(58188), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(43105), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(27233), + __webpack_require__(32501), + __webpack_require__(49224)), + memoizerific_default = __webpack_require__.n(memoizerific), + dist_esm = __webpack_require__(98918), + client_logger_dist_esm = __webpack_require__(87537), + lazy_WithTooltip = __webpack_require__(35881), + TooltipLinkList = __webpack_require__(65662), + bar_button = __webpack_require__(82269), + icon = __webpack_require__(35016), + ColorIcon = __webpack_require__(77439).styled.span( + function (_ref) { + return { + borderRadius: '1rem', + display: 'block', + height: '1rem', + width: '1rem', + background: _ref.background, + }; + }, + function (_ref2) { + var theme = _ref2.theme; + return { boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset') }; + }, + ), + global_window = + (__webpack_require__(22144), + __webpack_require__(49228), + __webpack_require__(16781), + __webpack_require__(1939), + __webpack_require__(35048)), + window_default = __webpack_require__.n(global_window), + ts_dedent_esm = __webpack_require__(51893); + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + window_default().document, window_default().window; + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var createBackgroundSelectorItem = memoizerific_default()(1e3)(function ( + id, + name, + value, + hasSwatch, + change, + active, + ) { + return { + id: id || name, + title: name, + onClick: function onClick() { + change({ selected: value, name }); + }, + value, + right: hasSwatch ? react.createElement(ColorIcon, { background: value }) : void 0, + active, + }; + }), + getDisplayedItems = memoizerific_default()(10)(function (backgrounds, selectedBackgroundColor, change) { + var backgroundSelectorItems = backgrounds.map(function (_ref) { + var name = _ref.name, + value = _ref.value; + return createBackgroundSelectorItem(null, name, value, !0, change, value === selectedBackgroundColor); + }); + return 'transparent' !== selectedBackgroundColor + ? [createBackgroundSelectorItem('reset', 'Clear background', 'transparent', null, change, !1)].concat( + _toConsumableArray(backgroundSelectorItems), + ) + : backgroundSelectorItems; + }), + DEFAULT_BACKGROUNDS_CONFIG = { default: null, disable: !0, values: [] }, + BackgroundSelector = (0, react.memo)(function () { + var _globals$BACKGROUNDS_, + backgroundsConfig = (0, dist_esm.Ut)(PARAM_KEY, DEFAULT_BACKGROUNDS_CONFIG), + _useGlobals2 = _slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + globalsBackgroundColor = + null === (_globals$BACKGROUNDS_ = globals[PARAM_KEY]) || void 0 === _globals$BACKGROUNDS_ + ? void 0 + : _globals$BACKGROUNDS_.value, + selectedBackgroundColor = (0, react.useMemo)( + function () { + return (function getBackgroundColorByName(currentSelectedValue) { + var backgrounds = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], + defaultName = arguments.length > 2 ? arguments[2] : void 0; + if ('transparent' === currentSelectedValue) return 'transparent'; + if ( + backgrounds.find(function (background) { + return background.value === currentSelectedValue; + }) + ) + return currentSelectedValue; + var defaultBackground = backgrounds.find(function (background) { + return background.name === defaultName; + }); + if (defaultBackground) return defaultBackground.value; + if (defaultName) { + var availableColors = backgrounds + .map(function (background) { + return background.name; + }) + .join(', '); + client_logger_dist_esm.kg.warn( + (0, ts_dedent_esm.C)( + _templateObject || + (_templateObject = _taggedTemplateLiteral([ + '\n Backgrounds Addon: could not find the default color "', + '".\n These are the available colors for your story based on your configuration:\n ', + '.\n ', + ])), + defaultName, + availableColors, + ), + ); + } + return 'transparent'; + })(globalsBackgroundColor, backgroundsConfig.values, backgroundsConfig.default); + }, + [backgroundsConfig, globalsBackgroundColor], + ); + Array.isArray(backgroundsConfig) && + client_logger_dist_esm.kg.warn( + 'Addon Backgrounds api has changed in Storybook 6.0. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md', + ); + var onBackgroundChange = (0, react.useCallback)( + function (value) { + updateGlobals( + (function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, PARAM_KEY, Object.assign({}, globals[PARAM_KEY], { value })), + ); + }, + [backgroundsConfig, globals, updateGlobals], + ); + return backgroundsConfig.disable + ? null + : react.createElement( + react.Fragment, + null, + react.createElement( + lazy_WithTooltip.R, + { + placement: 'top', + trigger: 'click', + closeOnClick: !0, + tooltip: function tooltip(_ref2) { + var onHide = _ref2.onHide; + return react.createElement(TooltipLinkList.$, { + links: getDisplayedItems(backgroundsConfig.values, selectedBackgroundColor, function (_ref3) { + var selected = _ref3.selected; + selectedBackgroundColor !== selected && onBackgroundChange(selected), onHide(); + }), + }); + }, + }, + react.createElement( + bar_button.hU, + { + key: 'background', + title: 'Change the background of the preview', + active: 'transparent' !== selectedBackgroundColor, + }, + react.createElement(icon.P, { icon: 'photo' }), + ), + ), + ); + }); + function GridSelector_slicedToArray(arr, i) { + return ( + (function GridSelector_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function GridSelector_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function GridSelector_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return GridSelector_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return GridSelector_arrayLikeToArray(o, minLen); + })(arr, i) || + (function GridSelector_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function GridSelector_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var GridSelector = (0, react.memo)(function () { + var _globals$BACKGROUNDS_, + _useGlobals2 = GridSelector_slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + grid = (0, dist_esm.Ut)(PARAM_KEY, { grid: { disable: !1 } }).grid; + if (null != grid && grid.disable) return null; + var isActive = + (null === (_globals$BACKGROUNDS_ = globals[PARAM_KEY]) || void 0 === _globals$BACKGROUNDS_ + ? void 0 + : _globals$BACKGROUNDS_.grid) || !1; + return react.createElement( + bar_button.hU, + { + key: 'background', + active: isActive, + title: 'Apply a grid to the preview', + onClick: function onClick() { + return updateGlobals( + (function GridSelector_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, PARAM_KEY, Object.assign({}, globals[PARAM_KEY], { grid: !isActive })), + ); + }, + }, + react.createElement(icon.P, { icon: 'grid' }), + ); + }); + esm.KP.register(ADDON_ID, function () { + esm.KP.add(ADDON_ID, { + title: 'Backgrounds', + type: types.V.TOOL, + match: function match(_ref) { + var viewMode = _ref.viewMode; + return !(!viewMode || !viewMode.match(/^(story|docs)$/)); + }, + render: function render() { + return react.createElement( + react.Fragment, + null, + react.createElement(BackgroundSelector, null), + react.createElement(GridSelector, null), + ); + }, + }); + }); + }, + 71947: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(95342), __webpack_require__(67890); + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + addon_panel = __webpack_require__(31945), + dist_esm = __webpack_require__(98918), + components_dist_esm = + (__webpack_require__(35883), + __webpack_require__(43105), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(24926)); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var ControlsPanel = function ControlsPanel() { + var _useArgs2 = _slicedToArray((0, dist_esm.D8)(), 3), + args = _useArgs2[0], + updateArgs = _useArgs2[1], + resetArgs = _useArgs2[2], + rows = (0, dist_esm.eF)(), + isArgsStory = (0, dist_esm.Ut)('__isArgsStory', !1), + _useParameter = (0, dist_esm.Ut)('controls', {}), + expanded = _useParameter.expanded, + sort = _useParameter.sort, + presetColors = _useParameter.presetColors, + _useParameter$hideNoC = _useParameter.hideNoControlsWarning, + hideNoControlsWarning = void 0 !== _useParameter$hideNoC && _useParameter$hideNoC, + path = (0, dist_esm.aL)().path, + hasControls = Object.values(rows).some(function (arg) { + return null == arg ? void 0 : arg.control; + }), + showWarning = !((hasControls && isArgsStory) || hideNoControlsWarning), + withPresetColors = Object.entries(rows).reduce(function (acc, _ref) { + var _arg$control, + _arg$control2, + _ref2 = _slicedToArray(_ref, 2), + key = _ref2[0], + arg = _ref2[1]; + return ( + 'color' !== + (null == arg || null === (_arg$control = arg.control) || void 0 === _arg$control + ? void 0 + : _arg$control.type) || + (null != arg && + null !== (_arg$control2 = arg.control) && + void 0 !== _arg$control2 && + _arg$control2.presetColors) + ? (acc[key] = arg) + : (acc[key] = Object.assign({}, arg, { control: Object.assign({}, arg.control, { presetColors }) })), + acc + ); + }, {}); + return react.createElement( + react.Fragment, + null, + showWarning && react.createElement(components_dist_esm.NoControlsWarning, null), + react.createElement(components_dist_esm.ArgsTable, { + key: path, + compact: !expanded && hasControls, + rows: withPresetColors, + args, + updateArgs, + resetArgs, + inAddonPanel: !0, + sort, + }), + ); + }; + esm.KP.register('addon-controls', function (api) { + esm.KP.addPanel('addon-controls', { + title: function title() { + var rows = (0, dist_esm.eF)(), + controlsCount = Object.values(rows).filter(function (argType) { + return null == argType ? void 0 : argType.control; + }).length, + suffix = 0 === controlsCount ? '' : ' ('.concat(controlsCount, ')'); + return 'Controls'.concat(suffix); + }, + type: types.V.PANEL, + paramKey: 'controls', + render: function render(_ref) { + var key = _ref.key, + active = _ref.active; + return active && api.getCurrentStoryData() + ? react.createElement(addon_panel.g, { key, active }, react.createElement(ControlsPanel, null)) + : null; + }, + }); + }); + }, + 53243: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(18178); + var SourceType, + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + PANEL_ID = ''.concat('storybook/docs', '/panel'); + ''.concat('storybook/docs', '/snippet-rendered'); + !(function (SourceType) { + (SourceType.AUTO = 'auto'), (SourceType.CODE = 'code'), (SourceType.DYNAMIC = 'dynamic'); + })(SourceType || (SourceType = {})), + esm.KP.register('storybook/docs', function () { + esm.KP.add(PANEL_ID, { + type: types.V.TAB, + title: 'Docs', + route: function route(_ref) { + var storyId = _ref.storyId, + refId = _ref.refId; + return refId ? '/docs/'.concat(refId, '_').concat(storyId) : '/docs/'.concat(storyId); + }, + match: function match(_ref2) { + return 'docs' === _ref2.viewMode; + }, + render: function render() { + return null; + }, + }); + }); + }, + 65019: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), + (exports.default = exports.DEFAULT_GROUP_ID = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _qs = _interopRequireDefault(__webpack_require__(19126)), + _global = __webpack_require__(35048), + _theming = __webpack_require__(77439), + _copyToClipboard = _interopRequireDefault(__webpack_require__(50381)), + _coreEvents = __webpack_require__(69844), + _components = __webpack_require__(24926), + _shared = __webpack_require__(49483), + _types = __webpack_require__(98480), + _PropForm = _interopRequireDefault(__webpack_require__(85405)); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + var _i = arr && (('undefined' != typeof Symbol && arr[Symbol.iterator]) || arr['@@iterator']); + if (null == _i) return; + var _s, + _e, + _arr = [], + _n = !0, + _d = !1; + try { + for ( + _i = _i.call(arr); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var getTimestamp = function getTimestamp() { + return +new Date(); + }; + exports.DEFAULT_GROUP_ID = 'Other'; + var PanelWrapper = (0, _theming.styled)(function (_ref) { + var children = _ref.children, + className = _ref.className; + return _react.default.createElement( + _components.ScrollArea, + { horizontal: !0, vertical: !0, className }, + children, + ); + })({ height: '100%', width: '100%' }), + KnobPanel = (function (_PureComponent) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(KnobPanel, _PureComponent); + var _super = _createSuper(KnobPanel); + function KnobPanel() { + var _this; + _classCallCheck(this, KnobPanel); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'state', + { knobs: {} }, + ), + _defineProperty(_assertThisInitialized(_this), 'options', {}), + _defineProperty(_assertThisInitialized(_this), 'lastEdit', getTimestamp()), + _defineProperty(_assertThisInitialized(_this), 'loadedFromUrl', !1), + _defineProperty(_assertThisInitialized(_this), 'mounted', !1), + _defineProperty(_assertThisInitialized(_this), 'setOptions', function () { + var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { timestamps: !1 }; + _this.options = options; + }), + _defineProperty(_assertThisInitialized(_this), 'setKnobs', function (_ref2) { + var knobs = _ref2.knobs, + timestamp = _ref2.timestamp, + queryParams = {}, + api = _this.props.api; + (!_this.options.timestamps || !timestamp || _this.lastEdit <= timestamp) && + (Object.keys(knobs).forEach(function (name) { + var knob = knobs[name]; + if (!_this.loadedFromUrl) { + var urlValue = api.getQueryParam('knob-'.concat(name)); + if (void 0 !== urlValue) { + var value = (0, _types.getKnobControl)(knob.type).deserialize(urlValue); + (knob.value = value), + (queryParams['knob-'.concat(name)] = (0, _types.getKnobControl)(knob.type).serialize(value)), + api.emit(_shared.CHANGE, knob); + } + } + }), + api.setQueryParams(queryParams), + _this.setState({ knobs }), + (_this.loadedFromUrl = !0)); + }), + _defineProperty(_assertThisInitialized(_this), 'reset', function () { + _this.props.api.emit(_shared.RESET); + }), + _defineProperty(_assertThisInitialized(_this), 'copy', function () { + var location = _global.document.location, + query = _qs.default.parse(location.search, { ignoreQueryPrefix: !0 }), + knobs = _this.state.knobs; + Object.entries(knobs).forEach(function (_ref3) { + var _ref4 = _slicedToArray(_ref3, 2), + name = _ref4[0], + knob = _ref4[1]; + query['knob-'.concat(name)] = (0, _types.getKnobControl)(knob.type).serialize(knob.value); + }), + (0, _copyToClipboard.default)( + '' + .concat(location.origin + location.pathname, '?') + .concat(_qs.default.stringify(query, { encode: !1 })), + ); + }), + _defineProperty(_assertThisInitialized(_this), 'emitChange', function (changedKnob) { + _this.props.api.emit(_shared.CHANGE, changedKnob); + }), + _defineProperty(_assertThisInitialized(_this), 'handleChange', function (changedKnob) { + _this.lastEdit = getTimestamp(); + var api = _this.props.api, + knobs = _this.state.knobs, + name = changedKnob.name, + newKnobs = _objectSpread({}, knobs); + (newKnobs[name] = _objectSpread(_objectSpread({}, newKnobs[name]), changedKnob)), + _this.setState({ knobs: newKnobs }, function () { + _this.emitChange(changedKnob); + var queryParams = {}; + Object.keys(newKnobs).forEach(function (n) { + var knob = newKnobs[n]; + queryParams['knob-'.concat(n)] = (0, _types.getKnobControl)(knob.type).serialize(knob.value); + }), + api.setQueryParams(queryParams); + }); + }), + _defineProperty(_assertThisInitialized(_this), 'handleClick', function (knob) { + _this.props.api.emit(_shared.CLICK, knob); + }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(KnobPanel, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + var _this2 = this; + this.mounted = !0; + var api = this.props.api; + api.on(_shared.SET, this.setKnobs), + api.on(_shared.SET_OPTIONS, this.setOptions), + (this.stopListeningOnStory = api.on(_coreEvents.STORY_CHANGED, function () { + _this2.mounted && _this2.setKnobs({ knobs: {} }), _this2.setKnobs({ knobs: {} }); + })); + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + (this.mounted = !1), this.props.api.off(_shared.SET, this.setKnobs), this.stopListeningOnStory(); + }, + }, + { + key: 'render', + value: function render() { + var _this3 = this, + knobs = this.state.knobs; + if (!this.props.active) return null; + var groups = {}, + groupIds = [], + knobKeysArray = Object.keys(knobs).filter(function (key) { + return knobs[key].used; + }); + knobKeysArray.forEach(function (key) { + var knobKeyGroupId = knobs[key].groupId || 'Other'; + groupIds.push(knobKeyGroupId), + (groups[knobKeyGroupId] = { + render: function render(_ref5) { + var active = _ref5.active; + return _react.default.createElement( + _components.TabWrapper, + { key: knobKeyGroupId, active }, + _react.default.createElement(_PropForm.default, { + knobs: knobsArray.filter(function (knob) { + return (knob.groupId || 'Other') === knobKeyGroupId; + }), + onFieldChange: _this3.handleChange, + onFieldClick: _this3.handleClick, + }), + ); + }, + title: knobKeyGroupId, + }); + }); + var knobsArray = knobKeysArray.map(function (key) { + return knobs[key]; + }); + if (0 === knobsArray.length) + return _react.default.createElement( + _components.Placeholder, + null, + _react.default.createElement(_react.Fragment, null, 'No knobs found'), + _react.default.createElement( + _react.Fragment, + null, + 'Learn how to ', + _react.default.createElement( + _components.Link, + { + href: 'https://github.com/storybookjs/storybook/tree/master/addons/knobs', + target: '_blank', + withArrow: !0, + cancel: !1, + }, + 'dynamically interact with components', + ), + ), + ); + var entries = (function sortEntries(g) { + var unsortedKeys = Object.keys(g); + if (unsortedKeys.includes('Other')) { + var sortedKeys = unsortedKeys.filter(function (key) { + return 'Other' !== key; + }); + return ( + sortedKeys.push('Other'), + sortedKeys.map(function (key) { + return [key, g[key]]; + }) + ); + } + return Object.entries(g); + })(groups); + return _react.default.createElement( + _react.Fragment, + null, + _react.default.createElement( + PanelWrapper, + null, + entries.length > 1 + ? _react.default.createElement( + _components.TabsState, + null, + entries.map(function (_ref6) { + var _ref7 = _slicedToArray(_ref6, 2), + k = _ref7[0], + v = _ref7[1]; + return _react.default.createElement('div', { id: k, key: k, title: v.title }, v.render); + }), + ) + : _react.default.createElement(_PropForm.default, { + knobs: knobsArray, + onFieldChange: this.handleChange, + onFieldClick: this.handleClick, + }), + ), + _react.default.createElement(_components.ActionBar, { + actionItems: [ + { title: 'Copy', onClick: this.copy }, + { title: 'Reset', onClick: this.reset }, + ], + }), + ); + }, + }, + ]), + KnobPanel + ); + })(_react.PureComponent); + (exports.default = KnobPanel), + _defineProperty(KnobPanel, 'propTypes', { + active: _propTypes.default.bool.isRequired, + onReset: _propTypes.default.object, + api: _propTypes.default.shape({ + on: _propTypes.default.func, + off: _propTypes.default.func, + emit: _propTypes.default.func, + getQueryParam: _propTypes.default.func, + setQueryParams: _propTypes.default.func, + }).isRequired, + }), + _defineProperty(KnobPanel, 'defaultProps', { + active: !0, + api: { + on: function on() { + return function () {}; + }, + off: function off() {}, + emit: function emit() {}, + getQueryParam: function getQueryParam() {}, + setQueryParams: function setQueryParams() {}, + }, + }); + }, + 85405: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _components = __webpack_require__(24926), + _types = __webpack_require__(98480); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var InvalidType = function InvalidType() { + return _react.default.createElement('span', null, 'Invalid Type'); + }, + PropForm = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(PropForm, _Component); + var _super = _createSuper(PropForm); + function PropForm() { + return _classCallCheck(this, PropForm), _super.apply(this, arguments); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(PropForm, [ + { + key: 'makeChangeHandler', + value: function makeChangeHandler(name, type) { + var onFieldChange = this.props.onFieldChange; + return function () { + var value = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', + change = { name, type, value }; + onFieldChange(change); + }; + }, + }, + { + key: 'render', + value: function render() { + var _this = this, + _this$props = this.props, + knobs = _this$props.knobs, + onFieldClick = _this$props.onFieldClick; + return _react.default.createElement( + _components.Form, + null, + knobs.map(function (knob) { + var changeHandler = _this.makeChangeHandler(knob.name, knob.type), + InputType = (0, _types.getKnobControl)(knob.type) || InvalidType; + return _react.default.createElement( + _components.Form.Field, + { key: knob.name, label: !knob.hideLabel && ''.concat(knob.label || knob.name) }, + _react.default.createElement(InputType, { + knob, + onChange: changeHandler, + onClick: onFieldClick, + }), + ); + }), + ); + }, + }, + ]), + PropForm + ); + })(_react.Component); + (exports.default = PropForm), + _defineProperty(PropForm, 'displayName', 'PropForm'), + _defineProperty(PropForm, 'defaultProps', { + knobs: [], + onFieldChange: function onFieldChange() {}, + onFieldClick: function onFieldClick() {}, + }), + _defineProperty(PropForm, 'propTypes', { + knobs: _propTypes.default.arrayOf( + _propTypes.default.shape({ name: _propTypes.default.string, value: _propTypes.default.any }), + ).isRequired, + onFieldChange: _propTypes.default.func.isRequired, + onFieldClick: _propTypes.default.func.isRequired, + }); + }, + 76495: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _components = __webpack_require__(24926); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if (('undefined' != typeof Symbol && null != iter[Symbol.iterator]) || null != iter['@@iterator']) + return Array.from(iter); + })(arr) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function formatArray(value, separator) { + return '' === value ? [] : value.split(separator); + } + var ArrayType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ArrayType, _Component); + var _super = _createSuper(ArrayType); + function ArrayType() { + var _this; + _classCallCheck(this, ArrayType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'handleChange', + function (e) { + var _this$props = _this.props, + knob = _this$props.knob; + (0, _this$props.onChange)(formatArray(e.target.value, knob.separator)); + }, + ), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(ArrayType, [ + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps) { + var knob = this.props.knob; + return nextProps.knob.value !== knob.value; + }, + }, + { + key: 'render', + value: function render() { + var knob = this.props.knob, + value = knob.value && knob.value.join(knob.separator); + return _react.default.createElement(_components.Form.Textarea, { + id: knob.name, + name: knob.name, + value, + onChange: this.handleChange, + size: 'flex', + }); + }, + }, + ]), + ArrayType + ); + })(_react.Component); + (exports.default = ArrayType), + _defineProperty(ArrayType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(ArrayType, 'propTypes', { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.array, + separator: _propTypes.default.string, + }), + onChange: _propTypes.default.func, + }), + _defineProperty(ArrayType, 'serialize', function (value) { + return value; + }), + _defineProperty(ArrayType, 'deserialize', function (value) { + return Array.isArray(value) + ? value + : Object.keys(value) + .sort() + .reduce(function (array, key) { + return [].concat(_toConsumableArray(array), [value[key]]); + }, []); + }); + }, + 54201: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _react = _interopRequireDefault(__webpack_require__(2784)); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var Input = __webpack_require__(77439).styled.input({ + display: 'table-cell', + boxSizing: 'border-box', + verticalAlign: 'top', + height: 21, + outline: 'none', + border: '1px solid #ececec', + fontSize: '12px', + color: '#555', + }), + BooleanType = function BooleanType(_ref) { + var knob = _ref.knob, + _onChange = _ref.onChange; + return _react.default.createElement(Input, { + id: knob.name, + name: knob.name, + type: 'checkbox', + onChange: function onChange(e) { + return _onChange(e.target.checked); + }, + checked: knob.value || !1, + }); + }; + (BooleanType.defaultProps = { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + (BooleanType.propTypes = { + knob: _propTypes.default.shape({ name: _propTypes.default.string, value: _propTypes.default.bool }), + onChange: _propTypes.default.func, + }), + (BooleanType.serialize = function serialize(value) { + return value ? String(value) : null; + }), + (BooleanType.deserialize = function deserialize(value) { + return 'true' === value; + }); + var _default = BooleanType; + exports.default = _default; + }, + 85767: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _react = _interopRequireDefault(__webpack_require__(2784)), + _components = __webpack_require__(24926); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var ButtonType = function ButtonType(_ref) { + var knob = _ref.knob, + _onClick = _ref.onClick; + return _react.default.createElement( + _components.Form.Button, + { + type: 'button', + name: knob.name, + onClick: function onClick() { + return _onClick(knob); + }, + }, + knob.name, + ); + }; + (ButtonType.defaultProps = { knob: {}, onClick: function onClick() {} }), + (ButtonType.propTypes = { + knob: _propTypes.default.shape({ name: _propTypes.default.string }).isRequired, + onClick: _propTypes.default.func.isRequired, + }), + (ButtonType.serialize = function serialize() {}), + (ButtonType.deserialize = function deserialize() {}); + var _default = ButtonType; + exports.default = _default; + }, + 98726: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _theming = __webpack_require__(77439); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var CheckboxesWrapper = _theming.styled.div(function (_ref) { + return _ref.isInline + ? { display: 'flex', flexWrap: 'wrap', alignItems: 'center', '> * + *': { marginLeft: 10 } } + : {}; + }), + CheckboxFieldset = _theming.styled.fieldset({ border: 0, padding: 0, margin: 0 }), + CheckboxLabel = _theming.styled.label({ + padding: '3px 0 3px 5px', + lineHeight: '18px', + display: 'inline-block', + }), + CheckboxesType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(CheckboxesType, _Component); + var _super = _createSuper(CheckboxesType); + function CheckboxesType(props) { + var _this; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, CheckboxesType), + _defineProperty(_assertThisInitialized((_this = _super.call(this, props))), 'handleChange', function (e) { + var onChange = _this.props.onChange, + currentValue = e.target.value, + values = _this.state.values; + values.includes(currentValue) + ? values.splice(values.indexOf(currentValue), 1) + : values.push(currentValue), + _this.setState({ values }), + onChange(values); + }), + _defineProperty(_assertThisInitialized(_this), 'renderCheckboxList', function (_ref2) { + var options = _ref2.options; + return Object.keys(options).map(function (key) { + return _this.renderCheckbox(key, options[key]); + }); + }), + _defineProperty(_assertThisInitialized(_this), 'renderCheckbox', function (label, value) { + var name = _this.props.knob.name, + id = ''.concat(name, '-').concat(value), + values = _this.state.values; + return _react.default.createElement( + 'div', + { key: id }, + _react.default.createElement('input', { + type: 'checkbox', + id, + name, + value, + onChange: _this.handleChange, + checked: values.includes(value), + }), + _react.default.createElement(CheckboxLabel, { htmlFor: id }, label), + ); + }); + var _knob = props.knob; + return (_this.state = { values: _knob.defaultValue || [] }), _this; + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(CheckboxesType, [ + { + key: 'render', + value: function render() { + var _this$props = this.props, + knob = _this$props.knob, + isInline = _this$props.isInline; + return _react.default.createElement( + CheckboxFieldset, + null, + _react.default.createElement(CheckboxesWrapper, { isInline }, this.renderCheckboxList(knob)), + ); + }, + }, + ]), + CheckboxesType + ); + })(_react.Component); + (exports.default = CheckboxesType), + _defineProperty(CheckboxesType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + isInline: !1, + }), + _defineProperty(CheckboxesType, 'propTypes', { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.array, + options: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]), + }), + onChange: _propTypes.default.func, + isInline: _propTypes.default.bool, + }), + _defineProperty(CheckboxesType, 'serialize', function (value) { + return value; + }), + _defineProperty(CheckboxesType, 'deserialize', function (value) { + return value; + }); + }, + 845: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _global = __webpack_require__(35048), + _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _reactColorful = __webpack_require__(24777), + _theming = __webpack_require__(77439); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var Button = __webpack_require__(24926).Form.Button, + Swatch = _theming.styled.div(function (_ref) { + var theme = _ref.theme; + return { + position: 'absolute', + top: '50%', + transform: 'translateY(-50%)', + left: 6, + width: 16, + height: 16, + boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset'), + borderRadius: '1rem', + }; + }), + ColorButton = (0, _theming.styled)(Button)(function (_ref2) { + return { zIndex: _ref2.active ? 3 : 'unset' }; + }), + Popover = _theming.styled.div({ position: 'absolute', zIndex: 2 }), + ColorType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ColorType, _Component); + var _super = _createSuper(ColorType); + function ColorType() { + var _this; + _classCallCheck(this, ColorType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'state', + { displayColorPicker: !1 }, + ), + _defineProperty(_assertThisInitialized(_this), 'handleWindowMouseDown', function (e) { + _this.state.displayColorPicker && + !_this.popover.contains(e.target) && + _this.setState({ displayColorPicker: !1 }); + }), + _defineProperty(_assertThisInitialized(_this), 'handleClick', function () { + var displayColorPicker = _this.state.displayColorPicker; + _this.setState({ displayColorPicker: !displayColorPicker }); + }), + _defineProperty(_assertThisInitialized(_this), 'handleChange', function (color) { + (0, _this.props.onChange)(color); + }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(ColorType, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + _global.document.addEventListener('mousedown', this.handleWindowMouseDown); + }, + }, + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + var knob = this.props.knob, + displayColorPicker = this.state.displayColorPicker; + return nextProps.knob.value !== knob.value || nextState.displayColorPicker !== displayColorPicker; + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + _global.document.removeEventListener('mousedown', this.handleWindowMouseDown); + }, + }, + { + key: 'render', + value: function render() { + var _this2 = this, + knob = this.props.knob, + displayColorPicker = this.state.displayColorPicker, + colorStyle = { background: knob.value }; + return _react.default.createElement( + ColorButton, + { + active: displayColorPicker, + type: 'button', + name: knob.name, + onClick: this.handleClick, + size: 'flex', + }, + knob.value && knob.value.toUpperCase(), + _react.default.createElement(Swatch, { style: colorStyle }), + displayColorPicker + ? _react.default.createElement( + Popover, + { + ref: function ref(e) { + e && (_this2.popover = e); + }, + }, + _react.default.createElement(_reactColorful.RgbaStringColorPicker, { + color: knob.value, + onChange: this.handleChange, + }), + ) + : null, + ); + }, + }, + ]), + ColorType + ); + })(_react.Component); + (exports.default = ColorType), + _defineProperty(ColorType, 'propTypes', { + knob: _propTypes.default.shape({ name: _propTypes.default.string, value: _propTypes.default.string }), + onChange: _propTypes.default.func, + }), + _defineProperty(ColorType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(ColorType, 'serialize', function (value) { + return value; + }), + _defineProperty(ColorType, 'deserialize', function (value) { + return value; + }); + }, + 24100: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _theming = __webpack_require__(77439), + _components = __webpack_require__(24926); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + var _i = arr && (('undefined' != typeof Symbol && arr[Symbol.iterator]) || arr['@@iterator']); + if (null == _i) return; + var _s, + _e, + _arr = [], + _n = !0, + _d = !1; + try { + for ( + _i = _i.call(arr); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var FlexSpaced = _theming.styled.div({ + flex: 1, + display: 'flex', + '&& > *': { marginLeft: 10 }, + '&& > *:first-of-type': { marginLeft: 0 }, + }), + FlexInput = (0, _theming.styled)(_components.Form.Input)({ flex: 1 }), + DateType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(DateType, _Component); + var _super = _createSuper(DateType); + function DateType() { + var _this; + _classCallCheck(this, DateType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'state', + { valid: void 0 }, + ), + _defineProperty(_assertThisInitialized(_this), 'onDateChange', function (e) { + var _this$props = _this.props, + knob = _this$props.knob, + onChange = _this$props.onChange, + state = _assertThisInitialized(_this).state, + valid = !1, + _e$target$value$split2 = _slicedToArray(e.target.value.split('-'), 3), + year = _e$target$value$split2[0], + month = _e$target$value$split2[1], + day = _e$target$value$split2[2], + result = new Date(knob.value); + result.getTime() && + (result.setFullYear(parseInt(year, 10), parseInt(month, 10) - 1, parseInt(day, 10)), + result.getTime() && ((valid = !0), onChange(result.getTime()))), + valid !== state.valid && _this.setState({ valid }); + }), + _defineProperty(_assertThisInitialized(_this), 'onTimeChange', function (e) { + var _this$props2 = _this.props, + knob = _this$props2.knob, + onChange = _this$props2.onChange, + state = _assertThisInitialized(_this).state, + valid = !1, + _e$target$value$split4 = _slicedToArray(e.target.value.split(':'), 2), + hours = _e$target$value$split4[0], + minutes = _e$target$value$split4[1], + result = new Date(knob.value); + result.getTime() && + (result.setHours(parseInt(hours, 10)), + result.setMinutes(parseInt(minutes, 10)), + result.getTime() && (onChange(result.getTime()), (valid = !0))), + valid !== state.valid && _this.setState({ valid }); + }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })( + DateType, + [ + { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + var knob = this.props.knob, + valid = this.state.valid, + value = new Date(knob.value); + !1 !== valid && + ((this.dateInput.value = (function formatDate(date) { + var year = '000'.concat(date.getFullYear()).slice(-4), + month = '0'.concat(date.getMonth() + 1).slice(-2), + day = '0'.concat(date.getDate()).slice(-2); + return ''.concat(year, '-').concat(month, '-').concat(day); + })(value)), + (this.timeInput.value = (function formatTime(date) { + var hours = '0'.concat(date.getHours()).slice(-2), + minutes = '0'.concat(date.getMinutes()).slice(-2); + return ''.concat(hours, ':').concat(minutes); + })(value))); + }, + }, + { + key: 'render', + value: function render() { + var _this2 = this, + name = this.props.knob.name, + valid = this.state.valid; + return name + ? _react.default.createElement( + FlexSpaced, + { style: { display: 'flex' } }, + _react.default.createElement(FlexInput, { + type: 'date', + max: '9999-12-31', + ref: function ref(el) { + _this2.dateInput = el; + }, + id: ''.concat(name, 'date'), + name: ''.concat(name, 'date'), + onChange: this.onDateChange, + }), + _react.default.createElement(FlexInput, { + type: 'time', + id: ''.concat(name, 'time'), + name: ''.concat(name, 'time'), + ref: function ref(el) { + _this2.timeInput = el; + }, + onChange: this.onTimeChange, + }), + valid ? null : _react.default.createElement('div', null, 'invalid'), + ) + : null; + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps() { + return { valid: !0 }; + }, + }, + ], + ), + DateType + ); + })(_react.Component); + (exports.default = DateType), + _defineProperty(DateType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(DateType, 'propTypes', { + knob: _propTypes.default.shape({ name: _propTypes.default.string, value: _propTypes.default.number }), + onChange: _propTypes.default.func, + }), + _defineProperty(DateType, 'serialize', function (value) { + return new Date(value).getTime() || new Date().getTime(); + }), + _defineProperty(DateType, 'deserialize', function (value) { + return new Date(value).getTime() || new Date().getTime(); + }); + }, + 65993: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _global = __webpack_require__(35048), + _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _react = _interopRequireDefault(__webpack_require__(2784)), + _theming = __webpack_require__(77439), + _components = __webpack_require__(24926); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var FileInput = (0, _theming.styled)(_components.Form.Input)({ paddingTop: 4 }); + function fileReaderPromise(file) { + return new Promise(function (resolve) { + var fileReader = new _global.FileReader(); + (fileReader.onload = function (e) { + return resolve(e.currentTarget.result); + }), + fileReader.readAsDataURL(file); + }); + } + var FilesType = function FilesType(_ref) { + var knob = _ref.knob, + _onChange = _ref.onChange; + return _react.default.createElement(FileInput, { + type: 'file', + name: knob.name, + multiple: !0, + onChange: function onChange(e) { + e.target.files && Promise.all(Array.from(e.target.files).map(fileReaderPromise)).then(_onChange); + }, + accept: knob.accept, + size: 'flex', + }); + }; + (FilesType.defaultProps = { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + (FilesType.propTypes = { + knob: _propTypes.default.shape({ name: _propTypes.default.string }), + onChange: _propTypes.default.func, + }), + (FilesType.serialize = function serialize() {}), + (FilesType.deserialize = function deserialize() {}); + var _default = FilesType; + exports.default = _default; + }, + 82202: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _theming = __webpack_require__(77439), + _components = __webpack_require__(24926); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var RangeInput = _theming.styled.input( + { + boxSizing: 'border-box', + height: 25, + outline: 'none', + border: '1px solid #f7f4f4', + borderRadius: 2, + fontSize: 11, + padding: 5, + color: '#444', + }, + { display: 'table-cell', flexGrow: 1 }, + ), + RangeLabel = _theming.styled.span({ paddingLeft: 5, paddingRight: 5, fontSize: 12, whiteSpace: 'nowrap' }), + RangeWrapper = _theming.styled.div({ display: 'flex', alignItems: 'center', width: '100%' }), + NumberType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(NumberType, _Component); + var _super = _createSuper(NumberType); + function NumberType() { + var _this; + _classCallCheck(this, NumberType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'handleChange', + function (event) { + var onChange = _this.props.onChange, + value = event.target.value, + parsedValue = Number(value); + (Number.isNaN(parsedValue) || '' === value) && (parsedValue = null), onChange(parsedValue); + }, + ), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(NumberType, [ + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps) { + var knob = this.props.knob; + return nextProps.knob.value !== knob.value; + }, + }, + { + key: 'render', + value: function render() { + var knob = this.props.knob; + return knob.range + ? _react.default.createElement( + RangeWrapper, + null, + _react.default.createElement(RangeLabel, null, knob.min), + _react.default.createElement(RangeInput, { + value: knob.value, + type: 'range', + name: knob.name, + min: knob.min, + max: knob.max, + step: knob.step, + onChange: this.handleChange, + }), + _react.default.createElement(RangeLabel, null, ''.concat(knob.value, ' / ').concat(knob.max)), + ) + : _react.default.createElement(_components.Form.Input, { + value: knob.value, + type: 'number', + name: knob.name, + min: knob.min, + max: knob.max, + step: knob.step, + onChange: this.handleChange, + size: 'flex', + }); + }, + }, + ]), + NumberType + ); + })(_react.Component); + (exports.default = NumberType), + _defineProperty(NumberType, 'propTypes', { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]), + range: _propTypes.default.bool, + min: _propTypes.default.number, + max: _propTypes.default.number, + step: _propTypes.default.number, + }).isRequired, + onChange: _propTypes.default.func.isRequired, + }), + _defineProperty(NumberType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(NumberType, 'serialize', function (value) { + return null == value ? '' : String(value); + }), + _defineProperty(NumberType, 'deserialize', function (value) { + return '' === value ? null : parseFloat(value); + }); + }, + 50137: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _fastDeepEqual = _interopRequireDefault(__webpack_require__(69378)), + _reactLifecyclesCompat = __webpack_require__(46847), + _components = __webpack_require__(24926); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var ObjectType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ObjectType, _Component); + var _super = _createSuper(ObjectType); + function ObjectType() { + var _this; + _classCallCheck(this, ObjectType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty(_assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), 'state', { + value: '', + failed: !1, + json: {}, + }), + _defineProperty(_assertThisInitialized(_this), 'handleChange', function (e) { + var value = e.target.value, + stateJson = _this.state.json, + _this$props = _this.props, + knob = _this$props.knob, + onChange = _this$props.onChange; + try { + var json = JSON.parse(value.trim()); + _this.setState({ value, json, failed: !1 }), + (0, _fastDeepEqual.default)(knob.value, stateJson) && onChange(json); + } catch (err) { + _this.setState({ value, failed: !0 }); + } + }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })( + ObjectType, + [ + { + key: 'render', + value: function render() { + var _this$state = this.state, + value = _this$state.value, + failed = _this$state.failed, + knob = this.props.knob; + return _react.default.createElement(_components.Form.Textarea, { + name: knob.name, + valid: failed ? 'error' : void 0, + value, + onChange: this.handleChange, + size: 'flex', + }); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + if (!(0, _fastDeepEqual.default)(props.knob.value, state.json)) + try { + return { value: JSON.stringify(props.knob.value, null, 2), failed: !1, json: props.knob.value }; + } catch (e) { + return { value: 'Object cannot be stringified', failed: !0 }; + } + return null; + }, + }, + ], + ), + ObjectType + ); + })(_react.Component); + _defineProperty(ObjectType, 'propTypes', { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]), + }).isRequired, + onChange: _propTypes.default.func.isRequired, + }), + _defineProperty(ObjectType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(ObjectType, 'serialize', function (object) { + return JSON.stringify(object); + }), + _defineProperty(ObjectType, 'deserialize', function (value) { + return value ? JSON.parse(value) : {}; + }), + (0, _reactLifecyclesCompat.polyfill)(ObjectType); + var _default = ObjectType; + exports.default = _default; + }, + 21037: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = _interopRequireDefault(__webpack_require__(2784)), + _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _reactSelect = _interopRequireDefault(__webpack_require__(59964)), + _theming = __webpack_require__(77439), + _Radio = _interopRequireDefault(__webpack_require__(90385)), + _Checkboxes = _interopRequireDefault(__webpack_require__(98726)); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + var OptionsSelect = (0, _theming.styled)(_reactSelect.default)({ + width: '100%', + maxWidth: '300px', + color: 'black', + }), + OptionsType = function OptionsType(props) { + var knob = props.knob, + onChange = props.onChange, + display = knob.optionsObj.display; + if ('check' === display || 'inline-check' === display) { + var isInline = 'inline-check' === display; + return _react.default.createElement(_Checkboxes.default, _extends({}, props, { isInline })); + } + if ('radio' === display || 'inline-radio' === display) { + var _isInline = 'inline-radio' === display; + return _react.default.createElement(_Radio.default, _extends({}, props, { isInline: _isInline })); + } + if ('select' === display || 'multi-select' === display) { + var options = Object.keys(knob.options).map(function (key) { + return { value: knob.options[key], label: key }; + }), + isMulti = 'multi-select' === display, + optionsIndex = options.findIndex(function (i) { + return i.value === knob.value; + }), + defaultValue = options[optionsIndex], + handleChange = function handleChange(e) { + return onChange(e.value); + }; + return ( + isMulti && + ((defaultValue = options.filter(function (i) { + return knob.value.includes(i.value); + })), + (handleChange = function handleChange(values) { + return onChange( + values.map(function (item) { + return item.value; + }), + ); + })), + _react.default.createElement(OptionsSelect, { + value: defaultValue, + options, + isMulti, + onChange: handleChange, + }) + ); + } + return null; + }; + (OptionsType.defaultProps = { + knob: {}, + display: 'select', + onChange: function onChange(value) { + return value; + }, + }), + (OptionsType.propTypes = { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.string]), + options: _propTypes.default.object, + }), + display: _propTypes.default.oneOf([ + 'radio', + 'inline-radio', + 'check', + 'inline-check', + 'select', + 'multi-select', + ]), + onChange: _propTypes.default.func, + }), + (OptionsType.serialize = function serialize(value) { + return value; + }), + (OptionsType.deserialize = function deserialize(value) { + return value; + }); + var _default = OptionsType; + exports.default = _default; + }, + 90385: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _theming = __webpack_require__(77439); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var RadiosWrapper = _theming.styled.div(function (_ref) { + return _ref.isInline + ? { display: 'flex', flexWrap: 'wrap', alignItems: 'center', '> * + *': { marginLeft: 10 } } + : {}; + }), + RadioLabel = _theming.styled.label({ padding: '3px 0 3px 5px', lineHeight: '18px', display: 'inline-block' }), + RadiosType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(RadiosType, _Component); + var _super = _createSuper(RadiosType); + function RadiosType() { + return _classCallCheck(this, RadiosType), _super.apply(this, arguments); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(RadiosType, [ + { + key: 'renderRadioButtonList', + value: function renderRadioButtonList(_ref2) { + var _this = this, + options = _ref2.options; + return Array.isArray(options) + ? options.map(function (val) { + return _this.renderRadioButton(val, val); + }) + : Object.keys(options).map(function (key) { + return _this.renderRadioButton(key, options[key]); + }); + }, + }, + { + key: 'renderRadioButton', + value: function renderRadioButton(label, value) { + var opts = { label, value }, + _this$props = this.props, + _onChange = _this$props.onChange, + knob = _this$props.knob, + name = knob.name, + id = ''.concat(name, '-').concat(opts.value); + return _react.default.createElement( + 'div', + { key: id }, + _react.default.createElement('input', { + type: 'radio', + id, + name, + value: opts.value || void 0, + onChange: function onChange(e) { + return _onChange(e.target.value); + }, + checked: value === knob.value, + }), + _react.default.createElement(RadioLabel, { htmlFor: id }, label), + ); + }, + }, + { + key: 'render', + value: function render() { + var _this$props2 = this.props, + knob = _this$props2.knob, + isInline = _this$props2.isInline; + return _react.default.createElement(RadiosWrapper, { isInline }, this.renderRadioButtonList(knob)); + }, + }, + ]), + RadiosType + ); + })(_react.Component); + _defineProperty(RadiosType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + isInline: !1, + }), + _defineProperty(RadiosType, 'propTypes', { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.string, + options: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]), + }), + onChange: _propTypes.default.func, + isInline: _propTypes.default.bool, + }), + _defineProperty(RadiosType, 'serialize', function (value) { + return value; + }), + _defineProperty(RadiosType, 'deserialize', function (value) { + return value; + }); + var _default = RadiosType; + exports.default = _default; + }, + 25250: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _react = _interopRequireDefault(__webpack_require__(2784)), + _propTypes = _interopRequireDefault(__webpack_require__(13980)), + _components = __webpack_require__(24926); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + var _i = arr && (('undefined' != typeof Symbol && arr[Symbol.iterator]) || arr['@@iterator']); + if (null == _i) return; + var _s, + _e, + _arr = [], + _n = !0, + _d = !1; + try { + for ( + _i = _i.call(arr); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys(Object(source), !0).forEach(function (key) { + _defineProperty(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + var SelectType = function SelectType(_ref) { + var knob = _ref.knob, + _onChange = _ref.onChange, + options = knob.options, + entries = Array.isArray(options) + ? options.reduce(function callbackReduceArrayOptions(acc, option, i) { + if ('object' !== _typeof(option) || null === option) + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, option, option)); + var label = option.label || option.key || i; + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, label, option)); + }, {}) + : options, + selectedKey = Object.keys(entries).find(function (key) { + var knobVal = knob.value, + entryVal = entries[key]; + return Array.isArray(knobVal) ? JSON.stringify(entryVal) === JSON.stringify(knobVal) : entryVal === knobVal; + }); + return _react.default.createElement( + _components.Form.Select, + { + value: selectedKey, + name: knob.name, + onChange: function onChange(e) { + _onChange(entries[e.target.value]); + }, + size: 'flex', + }, + Object.entries(entries).map(function (_ref2) { + var key = _slicedToArray(_ref2, 1)[0]; + return _react.default.createElement('option', { key, value: key }, key); + }), + ); + }; + (SelectType.defaultProps = { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + (SelectType.propTypes = { + knob: _propTypes.default.shape({ + name: _propTypes.default.string, + value: _propTypes.default.any, + options: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]), + }), + onChange: _propTypes.default.func, + }), + (SelectType.serialize = function serialize(value) { + return value; + }), + (SelectType.deserialize = function deserialize(value) { + return value; + }); + var _default = SelectType; + exports.default = _default; + }, + 515: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.default = void 0); + var _propTypes = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(13980)), + _react = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _components = __webpack_require__(24926); + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) ? _assertThisInitialized(self) : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var TextType = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(TextType, _Component); + var _super = _createSuper(TextType); + function TextType() { + var _this; + _classCallCheck(this, TextType); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + _defineProperty( + _assertThisInitialized((_this = _super.call.apply(_super, [this].concat(args)))), + 'handleChange', + function (event) { + (0, _this.props.onChange)(event.target.value); + }, + ), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(TextType, [ + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps) { + var knob = this.props.knob; + return nextProps.knob.value !== knob.value; + }, + }, + { + key: 'render', + value: function render() { + var knob = this.props.knob; + return _react.default.createElement(_components.Form.Textarea, { + id: knob.name, + name: knob.name, + value: knob.value, + onChange: this.handleChange, + size: 'flex', + }); + }, + }, + ]), + TextType + ); + })(_react.Component); + (exports.default = TextType), + _defineProperty(TextType, 'defaultProps', { + knob: {}, + onChange: function onChange(value) { + return value; + }, + }), + _defineProperty(TextType, 'propTypes', { + knob: _propTypes.default.shape({ name: _propTypes.default.string, value: _propTypes.default.string }), + onChange: _propTypes.default.func, + }), + _defineProperty(TextType, 'serialize', function (value) { + return value; + }), + _defineProperty(TextType, 'deserialize', function (value) { + return value; + }); + }, + 98480: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), (exports.getKnobControl = exports.default = void 0); + var _Text = _interopRequireDefault(__webpack_require__(515)), + _Number = _interopRequireDefault(__webpack_require__(82202)), + _Color = _interopRequireDefault(__webpack_require__(845)), + _Boolean = _interopRequireDefault(__webpack_require__(54201)), + _Object = _interopRequireDefault(__webpack_require__(50137)), + _Select = _interopRequireDefault(__webpack_require__(25250)), + _Radio = _interopRequireDefault(__webpack_require__(90385)), + _Array = _interopRequireDefault(__webpack_require__(76495)), + _Date = _interopRequireDefault(__webpack_require__(24100)), + _Button = _interopRequireDefault(__webpack_require__(85767)), + _Files = _interopRequireDefault(__webpack_require__(65993)), + _Options = _interopRequireDefault(__webpack_require__(21037)); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var KnobControls = { + text: _Text.default, + number: _Number.default, + color: _Color.default, + boolean: _Boolean.default, + object: _Object.default, + select: _Select.default, + radios: _Radio.default, + array: _Array.default, + date: _Date.default, + button: _Button.default, + files: _Files.default, + options: _Options.default, + }, + _default = KnobControls; + exports.default = _default; + exports.getKnobControl = function getKnobControl(type) { + return KnobControls[type]; + }; + }, + 74687: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + var React = (function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || ('object' !== _typeof(obj) && 'function' != typeof obj)) return { default: obj }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}, + hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) + if ('default' !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : (newObj[key] = obj[key]); + } + (newObj.default = obj), cache && cache.set(obj, newObj); + return newObj; + })(__webpack_require__(2784)), + _addons = _interopRequireDefault(__webpack_require__(9280)), + _Panel = _interopRequireDefault(__webpack_require__(65019)), + _shared = __webpack_require__(49483), + _title = __webpack_require__(16573); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function _getRequireWildcardCache(nodeInterop) { + if ('function' != typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(), + cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + _addons.default.register(_shared.ADDON_ID, function (api) { + _addons.default.addPanel(_shared.PANEL_ID, { + title: (0, _title.createTitleListener)(api), + render: function render(_ref) { + var active = _ref.active, + key = _ref.key; + return React.createElement(_Panel.default, { api, key, active }); + }, + paramKey: _shared.PARAM_KEY, + }); + }); + }, + 49483: (__unused_webpack_module, exports) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), + (exports.CLICK = exports.SET_OPTIONS = exports.CHANGE = exports.SET = exports.RESET = exports.PANEL_ID = exports.ADDON_ID = exports.PARAM_KEY = void 0); + exports.PARAM_KEY = 'knobs'; + var ADDON_ID = 'storybookjs/knobs'; + exports.ADDON_ID = ADDON_ID; + var PANEL_ID = ''.concat(ADDON_ID, '/panel'); + exports.PANEL_ID = PANEL_ID; + var RESET = ''.concat(ADDON_ID, '/reset'); + exports.RESET = RESET; + var SET = ''.concat(ADDON_ID, '/set'); + exports.SET = SET; + var CHANGE = ''.concat(ADDON_ID, '/change'); + exports.CHANGE = CHANGE; + var SET_OPTIONS = ''.concat(ADDON_ID, '/set-options'); + exports.SET_OPTIONS = SET_OPTIONS; + var CLICK = ''.concat(ADDON_ID, '/click'); + exports.CLICK = CLICK; + }, + 16573: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), + (exports.createTitleListener = function createTitleListener(api) { + var knobsCount = 0; + return ( + api.on(_shared.SET, function (_ref) { + var knobs = _ref.knobs; + knobsCount = Object.keys(knobs).length; + }), + function () { + return 0 === knobsCount ? 'Knobs' : 'Knobs ('.concat(knobsCount, ')'); + } + ); + }); + var _shared = __webpack_require__(49483); + }, + 90234: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + ADDON_ID = 'storybook/measure-addon', + TOOL_ID = ''.concat(ADDON_ID, '/tool'), + dist_esm = + (''.concat(ADDON_ID, '/result'), + ''.concat(ADDON_ID, '/request'), + ''.concat(ADDON_ID, '/clear'), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(98918)), + bar_button = __webpack_require__(82269), + icon = __webpack_require__(35016); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Tool = function Tool() { + var _useGlobals2 = _slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + measureEnabled = globals.measureEnabled, + api = (0, dist_esm.Uo)(), + toggleMeasure = (0, react.useCallback)( + function () { + return updateGlobals({ measureEnabled: !measureEnabled }); + }, + [updateGlobals, measureEnabled], + ); + return ( + (0, react.useEffect)( + function () { + api.setAddonShortcut(ADDON_ID, { + label: 'Toggle Measure [M]', + defaultShortcut: ['M'], + actionName: 'measure', + showInMenu: !1, + action: toggleMeasure, + }); + }, + [toggleMeasure, api], + ), + react.createElement( + bar_button.hU, + { key: TOOL_ID, active: measureEnabled, title: 'Enable measure', onClick: toggleMeasure }, + react.createElement(icon.P, { icon: 'ruler' }), + ) + ); + }; + esm.KP.register(ADDON_ID, function () { + esm.KP.add(TOOL_ID, { + type: types.V.TOOL, + title: 'Measure', + match: function match(_ref) { + return 'story' === _ref.viewMode; + }, + render: function render() { + return react.createElement(Tool, null); + }, + }); + }); + }, + 99380: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(74069), __webpack_require__(77950); + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + dist_esm = + (__webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(98918)), + bar_button = __webpack_require__(82269), + icon = __webpack_require__(35016); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var OutlineSelector = (0, react.memo)(function () { + var _useGlobals2 = _slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + isActive = globals.outline || !1, + toggleOutline = (0, react.useCallback)( + function () { + return updateGlobals( + (function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, 'outline', !isActive), + ); + }, + [isActive], + ); + return react.createElement( + bar_button.hU, + { key: 'outline', active: isActive, title: 'Apply outlines to the preview', onClick: toggleOutline }, + react.createElement(icon.P, { icon: 'outline' }), + ); + }); + esm.KP.register('storybook/outline', function () { + esm.KP.add('storybook/outline', { + title: 'Outline', + type: types.V.TOOL, + match: function match(_ref) { + var viewMode = _ref.viewMode; + return !(!viewMode || !viewMode.match(/^(story|docs)$/)); + }, + render: function render() { + return react.createElement(OutlineSelector, null); + }, + }); + }); + }, + 91275: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + dist_esm = + (__webpack_require__(95342), + __webpack_require__(34769), + __webpack_require__(43450), + __webpack_require__(43105), + __webpack_require__(98918)), + separator = __webpack_require__(91315), + lazy_WithTooltip = + (__webpack_require__(26936), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(27233), + __webpack_require__(35881)), + TooltipLinkList = __webpack_require__(65662), + bar_button = __webpack_require__(82269), + icon_icon = __webpack_require__(35016), + ToolbarMenuButton = function ToolbarMenuButton(_ref) { + var active = _ref.active, + title = _ref.title, + icon = _ref.icon, + description = _ref.description, + onClick = _ref.onClick; + return react.createElement( + bar_button.hU, + { active, title: description, onClick }, + icon && react.createElement(icon_icon.P, { icon }), + title ? ' '.concat(title) : null, + ); + }, + disallowedCycleableItemTypes = (__webpack_require__(39529), ['reset']), + ADDON_ID = (__webpack_require__(25047), __webpack_require__(73439), 'addon-toolbars'); + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + var registerShortcuts = (function () { + var _ref = (function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + })( + regeneratorRuntime.mark(function _callee(api, id, shortcuts) { + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if (!shortcuts || !shortcuts.next) { + _context.next = 3; + break; + } + return ( + (_context.next = 3), + api.setAddonShortcut(ADDON_ID, { + label: shortcuts.next.label, + defaultShortcut: shortcuts.next.keys, + actionName: ''.concat(id, ':next'), + action: shortcuts.next.action, + }) + ); + case 3: + if (!shortcuts || !shortcuts.previous) { + _context.next = 6; + break; + } + return ( + (_context.next = 6), + api.setAddonShortcut(ADDON_ID, { + label: shortcuts.previous.label, + defaultShortcut: shortcuts.previous.keys, + actionName: ''.concat(id, ':previous'), + action: shortcuts.previous.action, + }) + ); + case 6: + if (!shortcuts || !shortcuts.reset) { + _context.next = 9; + break; + } + return ( + (_context.next = 9), + api.setAddonShortcut(ADDON_ID, { + label: shortcuts.reset.label, + defaultShortcut: shortcuts.reset.keys, + actionName: ''.concat(id, ':reset'), + action: shortcuts.reset.action, + }) + ); + case 9: + case 'end': + return _context.stop(); + } + }, _callee); + }), + ); + return function registerShortcuts(_x, _x2, _x3) { + return _ref.apply(this, arguments); + }; + })(); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + __webpack_require__(49228); + function ToolbarMenuList_slicedToArray(arr, i) { + return ( + (function ToolbarMenuList_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function ToolbarMenuList_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function ToolbarMenuList_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return ToolbarMenuList_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return ToolbarMenuList_arrayLikeToArray(o, minLen); + })(arr, i) || + (function ToolbarMenuList_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function ToolbarMenuList_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var ToolbarMenuList = (function withKeyboardCycle(Component) { + return function WithKeyboardCycle(props) { + var id = props.id, + _props$toolbar = props.toolbar, + items = _props$toolbar.items, + shortcuts = _props$toolbar.shortcuts, + api = (0, dist_esm.Uo)(), + _useGlobals2 = _slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + cycleValues = (0, react.useRef)([]), + currentValue = globals[id], + reset = (0, react.useCallback)( + function () { + updateGlobals(_defineProperty({}, id, '')); + }, + [updateGlobals], + ), + setNext = (0, react.useCallback)( + function () { + var values = cycleValues.current, + currentIndex = values.indexOf(currentValue), + newCurrentIndex = currentIndex === values.length - 1 ? 0 : currentIndex + 1, + newCurrent = cycleValues.current[newCurrentIndex]; + updateGlobals(_defineProperty({}, id, newCurrent)); + }, + [cycleValues, currentValue, updateGlobals], + ), + setPrevious = (0, react.useCallback)( + function () { + var values = cycleValues.current, + indexOf = values.indexOf(currentValue), + currentIndex = indexOf > -1 ? indexOf : 0, + newCurrentIndex = 0 === currentIndex ? values.length - 1 : currentIndex - 1, + newCurrent = cycleValues.current[newCurrentIndex]; + updateGlobals(_defineProperty({}, id, newCurrent)); + }, + [cycleValues, currentValue, updateGlobals], + ); + return ( + (0, react.useEffect)( + function () { + shortcuts && + registerShortcuts(api, id, { + next: Object.assign({}, shortcuts.next, { action: setNext }), + previous: Object.assign({}, shortcuts.previous, { action: setPrevious }), + reset: Object.assign({}, shortcuts.reset, { action: reset }), + }); + }, + [api, id, shortcuts, setNext, setPrevious, reset], + ), + (0, react.useEffect)(function () { + cycleValues.current = (function createCycleValueArray(items) { + return items + .filter(function (item) { + return !disallowedCycleableItemTypes.includes(item.type); + }) + .map(function (item) { + return item.value; + }); + })(items); + }, []), + react.createElement(Component, _extends({ cycleValues: cycleValues.current }, props)) + ); + }; + })(function (_ref) { + var id = _ref.id, + name = _ref.name, + description = _ref.description, + _ref$toolbar = _ref.toolbar, + _icon = _ref$toolbar.icon, + items = _ref$toolbar.items, + _title = _ref$toolbar.title, + showName = _ref$toolbar.showName, + preventDynamicIcon = _ref$toolbar.preventDynamicIcon, + _useGlobals2 = ToolbarMenuList_slicedToArray((0, dist_esm.kO)(), 2), + globals = _useGlobals2[0], + updateGlobals = _useGlobals2[1], + currentValue = globals[id], + hasGlobalValue = !!currentValue, + icon = _icon, + title = _title; + preventDynamicIcon || + (icon = + (function getSelectedIcon(_ref) { + var currentValue = _ref.currentValue, + items = _ref.items, + selectedItem = + null != currentValue && + items.find(function (item) { + return item.value === currentValue; + }); + return selectedItem && selectedItem.icon; + })({ currentValue, items }) || icon), + showName && !title && (title = name); + var handleItemClick = (0, react.useCallback)( + function (value) { + updateGlobals( + (function ToolbarMenuList_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, id, value), + ); + }, + [currentValue, updateGlobals], + ); + return react.createElement( + lazy_WithTooltip.R, + { + placement: 'top', + trigger: 'click', + tooltip: function tooltip(_ref2) { + var onHide = _ref2.onHide, + links = items + .filter(function (_ref3) { + var shouldReturn = !0; + return 'reset' !== _ref3.type || currentValue || (shouldReturn = !1), shouldReturn; + }) + .map(function (item) { + var listItem = (function ToolbarMenuListItem(_ref) { + var left = _ref.left, + right = _ref.right, + title = _ref.title, + value = _ref.value, + icon = _ref.icon, + hideIcon = _ref.hideIcon, + onClick = _ref.onClick, + currentValue = _ref.currentValue, + Icon = react.createElement(icon_icon.P, { style: { opacity: 1 }, icon }), + hasContent = left || right || title, + Item = { id: value, active: currentValue === value, onClick }; + return ( + left && (Item.left = left), + right && (Item.right = right), + title && (Item.title = title), + icon && + !hideIcon && + (hasContent && !right + ? (Item.right = Icon) + : hasContent && !left + ? (Item.left = Icon) + : hasContent || (Item.right = Icon)), + Item + ); + })( + Object.assign({}, item, { + currentValue, + onClick: function onClick() { + handleItemClick(item.value), onHide(); + }, + }), + ); + return listItem; + }); + return react.createElement(TooltipLinkList.$, { links }); + }, + closeOnClick: !0, + }, + react.createElement(ToolbarMenuButton, { active: hasGlobalValue, description, icon, title }), + ); + }), + defaultItemValues = { type: 'item', value: '' }; + function ToolbarManager_extends() { + return ( + (ToolbarManager_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + ToolbarManager_extends.apply(this, arguments) + ); + } + var ToolbarManager = function ToolbarManager() { + var globalTypes = (0, dist_esm.Af)(), + globalIds = Object.keys(globalTypes).filter(function (id) { + return !!globalTypes[id].toolbar; + }); + return globalIds.length + ? react.createElement( + react.Fragment, + null, + react.createElement(separator.Z, null), + globalIds.map(function (id) { + var normalizedArgType = (function normalizeArgType(key, argType) { + return Object.assign({}, argType, { + name: argType.name || key, + description: argType.description || key, + toolbar: Object.assign({}, argType.toolbar, { + items: argType.toolbar.items.map(function (_item) { + var item = 'string' == typeof _item ? { value: _item, title: _item } : _item; + return ( + 'reset' === item.type && + argType.toolbar.icon && + ((item.icon = argType.toolbar.icon), (item.hideIcon = !0)), + Object.assign({}, defaultItemValues, item) + ); + }), + }), + }); + })(id, globalTypes[id]); + return react.createElement(ToolbarMenuList, ToolbarManager_extends({ key: id, id }, normalizedArgType)); + }), + ) + : null; + }; + esm.KP.register(ADDON_ID, function () { + return esm.KP.add(ADDON_ID, { + title: ADDON_ID, + type: types.V.TOOL, + match: function match() { + return !0; + }, + render: function render() { + return react.createElement(ToolbarManager, null); + }, + }); + }); + }, + 19447: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + var react = __webpack_require__(2784), + esm = __webpack_require__(21872), + types = __webpack_require__(31665), + ADDON_ID = 'storybook/viewport', + memoizerific = + (''.concat(ADDON_ID, '/update'), + ''.concat(ADDON_ID, '/configure'), + ''.concat(ADDON_ID, '/setStoryDefaultViewport'), + ''.concat(ADDON_ID, '/viewportChanged'), + __webpack_require__(18178), + __webpack_require__(43450), + __webpack_require__(35883), + __webpack_require__(26936), + __webpack_require__(43105), + __webpack_require__(95342), + __webpack_require__(35744), + __webpack_require__(49228), + __webpack_require__(34769), + __webpack_require__(85940), + __webpack_require__(77950), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(27233), + __webpack_require__(32501), + __webpack_require__(49224)), + memoizerific_default = __webpack_require__.n(memoizerific), + dist_esm = __webpack_require__(77439), + emotion_theming_browser_esm = __webpack_require__(43352), + core_browser_esm = __webpack_require__(47134), + bar_button = __webpack_require__(82269), + lazy_WithTooltip = __webpack_require__(35881), + TooltipLinkList = __webpack_require__(65662), + icon = __webpack_require__(35016), + api_dist_esm = __webpack_require__(98918); + __webpack_require__(73439), __webpack_require__(25047); + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + var getCurrentViewportIndex = function getCurrentViewportIndex(viewportsKeys, current) { + return viewportsKeys.indexOf(current); + }, + getNextViewport = function getNextViewport(viewportsKeys, current) { + var currentViewportIndex = getCurrentViewportIndex(viewportsKeys, current); + return currentViewportIndex === viewportsKeys.length - 1 + ? viewportsKeys[0] + : viewportsKeys[currentViewportIndex + 1]; + }, + getPreviousViewport = function getPreviousViewport(viewportsKeys, current) { + var currentViewportIndex = getCurrentViewportIndex(viewportsKeys, current); + return currentViewportIndex < 1 + ? viewportsKeys[viewportsKeys.length - 1] + : viewportsKeys[currentViewportIndex - 1]; + }, + registerShortcuts = (function () { + var _ref = (function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + })( + regeneratorRuntime.mark(function _callee(api, setState, viewportsKeys) { + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return ( + (_context.next = 2), + api.setAddonShortcut(ADDON_ID, { + label: 'Previous viewport', + defaultShortcut: ['shift', 'V'], + actionName: 'previous', + action: function action() { + var _api$getAddonState = api.getAddonState(ADDON_ID), + selected = _api$getAddonState.selected, + isRotated = _api$getAddonState.isRotated; + setState({ selected: getPreviousViewport(viewportsKeys, selected), isRotated }); + }, + }) + ); + case 2: + return ( + (_context.next = 4), + api.setAddonShortcut(ADDON_ID, { + label: 'Next viewport', + defaultShortcut: ['V'], + actionName: 'next', + action: function action() { + var _api$getAddonState2 = api.getAddonState(ADDON_ID), + selected = _api$getAddonState2.selected, + isRotated = _api$getAddonState2.isRotated; + setState({ selected: getNextViewport(viewportsKeys, selected), isRotated }); + }, + }) + ); + case 4: + return ( + (_context.next = 6), + api.setAddonShortcut(ADDON_ID, { + label: 'Reset viewport', + defaultShortcut: ['alt', 'V'], + actionName: 'reset', + action: function action() { + var isRotated = api.getAddonState(ADDON_ID).isRotated; + setState({ selected: 'reset', isRotated }); + }, + }) + ); + case 6: + case 'end': + return _context.stop(); + } + }, _callee); + }), + ); + return function registerShortcuts(_x, _x2, _x3) { + return _ref.apply(this, arguments); + }; + })(), + MINIMAL_VIEWPORTS = { + mobile1: { name: 'Small mobile', styles: { height: '568px', width: '320px' }, type: 'mobile' }, + mobile2: { name: 'Large mobile', styles: { height: '896px', width: '414px' }, type: 'mobile' }, + tablet: { name: 'Tablet', styles: { height: '1112px', width: '834px' }, type: 'tablet' }, + }; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var toList = memoizerific_default()(50)(function (items) { + return [].concat( + baseViewports, + _toConsumableArray( + Object.entries(items).map(function (_ref2) { + var _ref3 = _slicedToArray(_ref2, 2), + id = _ref3[0], + _ref = _ref3[1], + name = _ref.name, + rest = _objectWithoutProperties(_ref, ['name']); + return Object.assign({}, rest, { id, title: name }); + }), + ), + ); + }), + responsiveViewport = { id: 'reset', title: 'Reset viewport', styles: null, type: 'other' }, + baseViewports = [responsiveViewport], + toLinks = memoizerific_default()(50)(function (list, active, set, state, close) { + return list + .map(function (i) { + return i.id === responsiveViewport.id && active.id === i.id + ? null + : Object.assign({}, i, { + onClick: function onClick() { + set(Object.assign({}, state, { selected: i.id })), close(); + }, + }); + }) + .filter(Boolean); + }), + ActiveViewportSize = dist_esm.styled.div(function () { + return { display: 'inline-flex' }; + }), + ActiveViewportLabel = dist_esm.styled.div(function (_ref5) { + var theme = _ref5.theme; + return { + display: 'inline-block', + textDecoration: 'none', + padding: 10, + fontWeight: theme.typography.weight.bold, + fontSize: theme.typography.size.s2 - 1, + lineHeight: '1', + height: 40, + border: 'none', + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + background: 'transparent', + }; + }), + IconButtonWithLabel = (0, dist_esm.styled)(bar_button.hU)(function () { + return { display: 'inline-flex', alignItems: 'center' }; + }), + IconButtonLabel = dist_esm.styled.div(function (_ref6) { + return { fontSize: _ref6.theme.typography.size.s2 - 1, marginLeft: 10 }; + }), + getStyles = function getStyles(prevStyles, styles, isRotated) { + if (null === styles) return null; + var result = 'function' == typeof styles ? styles(prevStyles) : styles; + return isRotated + ? (function flip(_ref4) { + var width = _ref4.width, + height = _ref4.height, + styles = _objectWithoutProperties(_ref4, ['width', 'height']); + return Object.assign({}, styles, { height: width, width: height }); + })(result) + : result; + }, + ViewportTool = (0, react.memo)( + (0, emotion_theming_browser_esm.Zz)(function (_ref7) { + var _ref9, + theme = _ref7.theme, + _useParameter = (0, api_dist_esm.Ut)('viewport', {}), + _useParameter$viewpor = _useParameter.viewports, + viewports = void 0 === _useParameter$viewpor ? MINIMAL_VIEWPORTS : _useParameter$viewpor, + _useParameter$default = _useParameter.defaultViewport, + defaultViewport = void 0 === _useParameter$default ? responsiveViewport.id : _useParameter$default, + disable = _useParameter.disable, + _useAddonState2 = _slicedToArray( + (0, api_dist_esm.jt)(ADDON_ID, { selected: defaultViewport, isRotated: !1 }), + 2, + ), + state = _useAddonState2[0], + setState = _useAddonState2[1], + list = toList(viewports), + api = (0, api_dist_esm.Uo)(); + list.find(function (i) { + return i.id === defaultViewport; + }) || + console.warn( + 'Cannot find "defaultViewport" of "'.concat( + defaultViewport, + '" in addon-viewport configs, please check the "viewports" setting in the configuration.', + ), + ), + (0, react.useEffect)( + function () { + registerShortcuts(api, setState, Object.keys(viewports)); + }, + [viewports], + ), + (0, react.useEffect)( + function () { + setState({ + selected: defaultViewport || (viewports[state.selected] ? state.selected : responsiveViewport.id), + isRotated: state.isRotated, + }); + }, + [defaultViewport], + ); + var selected = state.selected, + isRotated = state.isRotated, + item = + list.find(function (i) { + return i.id === selected; + }) || + list.find(function (i) { + return i.id === defaultViewport; + }) || + list.find(function (i) { + return i.default; + }) || + responsiveViewport, + ref = (0, react.useRef)(), + styles = getStyles(ref.current, item.styles, isRotated); + return ( + (0, react.useEffect)( + function () { + ref.current = styles; + }, + [item], + ), + disable || 0 === Object.entries(viewports).length + ? null + : react.createElement( + react.Fragment, + null, + react.createElement( + lazy_WithTooltip.R, + { + placement: 'top', + trigger: 'click', + tooltip: function tooltip(_ref8) { + var onHide = _ref8.onHide; + return react.createElement(TooltipLinkList.$, { + links: toLinks(list, item, setState, state, onHide), + }); + }, + closeOnClick: !0, + }, + react.createElement( + IconButtonWithLabel, + { + key: 'viewport', + title: 'Change the size of the preview', + active: !!styles, + onDoubleClick: function onDoubleClick() { + setState(Object.assign({}, state, { selected: responsiveViewport.id })); + }, + }, + react.createElement(icon.P, { icon: 'grow' }), + styles + ? react.createElement( + IconButtonLabel, + null, + ''.concat(item.title, isRotated ? ' (L)' : ' (P)'), + ) + : null, + ), + ), + styles + ? react.createElement( + ActiveViewportSize, + null, + react.createElement(core_browser_esm.xB, { + styles: + ((_ref9 = {}), + _defineProperty( + _ref9, + '#'.concat('storybook-preview-iframe'), + Object.assign( + { + margin: 'auto', + transition: 'width .3s, height .3s', + position: 'relative', + border: '1px solid black', + boxShadow: '0 0 100px 100vw rgba(0,0,0,0.5)', + }, + styles, + ), + ), + _defineProperty(_ref9, '#'.concat('storybook-preview-wrapper'), { + padding: theme.layoutMargin, + alignContent: 'center', + alignItems: 'center', + justifyContent: 'center', + justifyItems: 'center', + overflow: 'auto', + display: 'grid', + gridTemplateColumns: '100%', + gridTemplateRows: '100%', + }), + _ref9), + }), + react.createElement( + ActiveViewportLabel, + { title: 'Viewport width' }, + styles.width.replace('px', ''), + ), + react.createElement( + bar_button.hU, + { + key: 'viewport-rotate', + title: 'Rotate viewport', + onClick: function onClick() { + setState(Object.assign({}, state, { isRotated: !isRotated })); + }, + }, + react.createElement(icon.P, { icon: 'transfer' }), + ), + react.createElement( + ActiveViewportLabel, + { title: 'Viewport height' }, + styles.height.replace('px', ''), + ), + ) + : null, + ) + ); + }), + ); + esm.KP.register(ADDON_ID, function () { + esm.KP.add(ADDON_ID, { + title: 'viewport / media-queries', + type: types.V.TOOL, + match: function match(_ref) { + return 'story' === _ref.viewMode; + }, + render: function render() { + return react.createElement(ViewportTool, null); + }, + }); + }); + }, + 86870: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + c8: () => HooksContext, + DM: () => applyHooks, + Ye: () => useMemo, + I4: () => useCallback, + sO: () => useRef, + eJ: () => useState, + _Y: () => useReducer, + d4: () => useEffect, + EM: () => useChannel, + e6: () => useStoryContext, + Ut: () => useParameter, + D8: () => useArgs, + kO: () => useGlobals, + }); + __webpack_require__(52356), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(93244), + __webpack_require__(1939), + __webpack_require__(39529), + __webpack_require__(31235), + __webpack_require__(26936), + __webpack_require__(43450), + __webpack_require__(18178), + __webpack_require__(35883), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(27233), + __webpack_require__(32501); + var global__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(35048), + global__WEBPACK_IMPORTED_MODULE_19___default = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_19__), + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(87537), + _storybook_core_events__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(69844), + _index__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(21872); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var globalWindow = global__WEBPACK_IMPORTED_MODULE_19___default().window, + HooksContext = (function () { + function HooksContext() { + var _this = this; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, HooksContext), + (this.hookListsMap = void 0), + (this.mountedDecorators = void 0), + (this.prevMountedDecorators = void 0), + (this.currentHooks = void 0), + (this.nextHookIndex = void 0), + (this.currentPhase = void 0), + (this.currentEffects = void 0), + (this.prevEffects = void 0), + (this.currentDecoratorName = void 0), + (this.hasUpdates = void 0), + (this.currentContext = void 0), + (this.renderListener = function (storyId) { + storyId === _this.currentContext.id && + (_this.triggerEffects(), (_this.currentContext = null), _this.removeRenderListeners()); + }), + this.init(); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(HooksContext, [ + { + key: 'init', + value: function init() { + (this.hookListsMap = new WeakMap()), + (this.mountedDecorators = new Set()), + (this.prevMountedDecorators = this.mountedDecorators), + (this.currentHooks = []), + (this.nextHookIndex = 0), + (this.currentPhase = 'NONE'), + (this.currentEffects = []), + (this.prevEffects = []), + (this.currentDecoratorName = null), + (this.hasUpdates = !1), + (this.currentContext = null); + }, + }, + { + key: 'clean', + value: function clean() { + this.prevEffects.forEach(function (effect) { + effect.destroy && effect.destroy(); + }), + this.init(), + this.removeRenderListeners(); + }, + }, + { + key: 'getNextHook', + value: function getNextHook() { + var hook = this.currentHooks[this.nextHookIndex]; + return (this.nextHookIndex += 1), hook; + }, + }, + { + key: 'triggerEffects', + value: function triggerEffects() { + var _this2 = this; + this.prevEffects.forEach(function (effect) { + !_this2.currentEffects.includes(effect) && effect.destroy && effect.destroy(); + }), + this.currentEffects.forEach(function (effect) { + _this2.prevEffects.includes(effect) || (effect.destroy = effect.create()); + }), + (this.prevEffects = this.currentEffects), + (this.currentEffects = []); + }, + }, + { + key: 'addRenderListeners', + value: function addRenderListeners() { + this.removeRenderListeners(), + _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel().on( + _storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.STORY_RENDERED, + this.renderListener, + ); + }, + }, + { + key: 'removeRenderListeners', + value: function removeRenderListeners() { + _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel().removeListener( + _storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.STORY_RENDERED, + this.renderListener, + ); + }, + }, + ]), + HooksContext + ); + })(); + function hookify(fn) { + return function () { + var _ref = + 'function' == typeof (arguments.length <= 0 ? void 0 : arguments[0]) + ? arguments.length <= 1 + ? void 0 + : arguments[1] + : arguments.length <= 0 + ? void 0 + : arguments[0], + hooks = _ref.hooks, + prevPhase = hooks.currentPhase, + prevHooks = hooks.currentHooks, + prevNextHookIndex = hooks.nextHookIndex, + prevDecoratorName = hooks.currentDecoratorName; + (hooks.currentDecoratorName = fn.name), + hooks.prevMountedDecorators.has(fn) + ? ((hooks.currentPhase = 'UPDATE'), (hooks.currentHooks = hooks.hookListsMap.get(fn) || [])) + : ((hooks.currentPhase = 'MOUNT'), + (hooks.currentHooks = []), + hooks.hookListsMap.set(fn, hooks.currentHooks), + hooks.prevMountedDecorators.add(fn)), + (hooks.nextHookIndex = 0); + var prevContext = globalWindow.STORYBOOK_HOOKS_CONTEXT; + globalWindow.STORYBOOK_HOOKS_CONTEXT = hooks; + var result = fn.apply(void 0, arguments); + if ( + ((globalWindow.STORYBOOK_HOOKS_CONTEXT = prevContext), + 'UPDATE' === hooks.currentPhase && null != hooks.getNextHook()) + ) + throw new Error( + 'Rendered fewer hooks than expected. This may be caused by an accidental early return statement.', + ); + return ( + (hooks.currentPhase = prevPhase), + (hooks.currentHooks = prevHooks), + (hooks.nextHookIndex = prevNextHookIndex), + (hooks.currentDecoratorName = prevDecoratorName), + result + ); + }; + } + var numberOfRenders = 0, + applyHooks = function applyHooks(applyDecorators) { + return function (storyFn, decorators) { + var decorated = applyDecorators( + hookify(storyFn), + decorators.map(function (decorator) { + return hookify(decorator); + }), + ); + return function (context) { + var hooks = context.hooks; + (hooks.prevMountedDecorators = hooks.mountedDecorators), + (hooks.mountedDecorators = new Set([storyFn].concat(_toConsumableArray(decorators)))), + (hooks.currentContext = context), + (hooks.hasUpdates = !1); + var result = decorated(context); + for (numberOfRenders = 1; hooks.hasUpdates; ) + if ( + ((hooks.hasUpdates = !1), + (hooks.currentEffects = []), + (result = decorated(context)), + (numberOfRenders += 1) > 25) + ) + throw new Error( + 'Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.', + ); + return hooks.addRenderListeners(), result; + }; + }; + }, + invalidHooksError = function invalidHooksError() { + return new Error('Storybook preview hooks can only be called inside decorators and story functions.'); + }; + function getHooksContextOrNull() { + return globalWindow.STORYBOOK_HOOKS_CONTEXT || null; + } + function getHooksContextOrThrow() { + var hooks = getHooksContextOrNull(); + if (null == hooks) throw invalidHooksError(); + return hooks; + } + function useMemoLike(name, nextCreate, deps) { + var _useHook = (function useHook(name, callback, deps) { + var hooks = getHooksContextOrThrow(); + if ('MOUNT' === hooks.currentPhase) { + null == deps || + Array.isArray(deps) || + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn( + '' + .concat(name, ' received a final argument that is not an array (instead, received ') + .concat(deps, '). When specified, the final argument must be an array.'), + ); + var _hook = { name, deps }; + return hooks.currentHooks.push(_hook), callback(_hook), _hook; + } + if ('UPDATE' === hooks.currentPhase) { + var _hook2 = hooks.getNextHook(); + if (null == _hook2) throw new Error('Rendered more hooks than during the previous render.'); + return ( + _hook2.name !== name && + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn( + 'Storybook has detected a change in the order of Hooks'.concat( + hooks.currentDecoratorName ? ' called by '.concat(hooks.currentDecoratorName) : '', + '. This will lead to bugs and errors if not fixed.', + ), + ), + null != deps && + null == _hook2.deps && + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn( + ''.concat( + name, + ' received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.', + ), + ), + null != deps && + null != _hook2.deps && + deps.length !== _hook2.deps.length && + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn( + 'The final argument passed to ' + .concat( + name, + ' changed size between renders. The order and size of this array must remain constant.\nPrevious: ', + ) + .concat(_hook2.deps, '\nIncoming: ') + .concat(deps), + ), + (null != deps && + null != _hook2.deps && + (function areDepsEqual(deps, nextDeps) { + return ( + deps.length === nextDeps.length && + deps.every(function (dep, i) { + return dep === nextDeps[i]; + }) + ); + })(deps, _hook2.deps)) || + (callback(_hook2), (_hook2.deps = deps)), + _hook2 + ); + } + throw invalidHooksError(); + })( + name, + function (hook) { + hook.memoizedState = nextCreate(); + }, + deps, + ); + return _useHook.memoizedState; + } + function useMemo(nextCreate, deps) { + return useMemoLike('useMemo', nextCreate, deps); + } + function useCallback(callback, deps) { + return useMemoLike( + 'useCallback', + function () { + return callback; + }, + deps, + ); + } + function useRefLike(name, initialValue) { + return useMemoLike( + name, + function () { + return { current: initialValue }; + }, + [], + ); + } + function useRef(initialValue) { + return useRefLike('useRef', initialValue); + } + function useStateLike(name, initialState) { + var stateRef = useRefLike(name, 'function' == typeof initialState ? initialState() : initialState); + return [ + stateRef.current, + function setState(update) { + (stateRef.current = 'function' == typeof update ? update(stateRef.current) : update), + (function triggerUpdate() { + var hooks = getHooksContextOrNull(); + if (null != hooks && 'NONE' !== hooks.currentPhase) hooks.hasUpdates = !0; + else + try { + _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel().emit( + _storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.FORCE_RE_RENDER, + ); + } catch (e) { + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_22__.kg.warn( + 'State updates of Storybook preview hooks work only in browser', + ); + } + })(); + }, + ]; + } + function useState(initialState) { + return useStateLike('useState', initialState); + } + function useReducer(reducer, initialArg, init) { + var _useStateLike2 = _slicedToArray( + useStateLike( + 'useReducer', + null != init + ? function () { + return init(initialArg); + } + : initialArg, + ), + 2, + ), + state = _useStateLike2[0], + setState = _useStateLike2[1]; + return [ + state, + function dispatch(action) { + return setState(function (prevState) { + return reducer(prevState, action); + }); + }, + ]; + } + function useEffect(create, deps) { + var hooks = getHooksContextOrThrow(), + effect = useMemoLike( + 'useEffect', + function () { + return { create }; + }, + deps, + ); + hooks.currentEffects.includes(effect) || hooks.currentEffects.push(effect); + } + function useChannel(eventMap) { + var deps = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], + channel = _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel(); + return ( + useEffect(function () { + return ( + Object.entries(eventMap).forEach(function (_ref3) { + var _ref4 = _slicedToArray(_ref3, 2), + type = _ref4[0], + listener = _ref4[1]; + return channel.on(type, listener); + }), + function () { + Object.entries(eventMap).forEach(function (_ref5) { + var _ref6 = _slicedToArray(_ref5, 2), + type = _ref6[0], + listener = _ref6[1]; + return channel.removeListener(type, listener); + }); + } + ); + }, [].concat(_toConsumableArray(Object.keys(eventMap)), _toConsumableArray(deps))), + useCallback(channel.emit.bind(channel), [channel]) + ); + } + function useStoryContext() { + var currentContext = getHooksContextOrThrow().currentContext; + if (null == currentContext) throw invalidHooksError(); + return currentContext; + } + function useParameter(parameterKey, defaultValue) { + var _parameters$parameter, + parameters = useStoryContext().parameters; + if (parameterKey) + return null !== (_parameters$parameter = parameters[parameterKey]) && void 0 !== _parameters$parameter + ? _parameters$parameter + : defaultValue; + } + function useArgs() { + var channel = _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel(), + _useStoryContext2 = useStoryContext(), + storyId = _useStoryContext2.id; + return [ + _useStoryContext2.args, + useCallback( + function (updatedArgs) { + return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.UPDATE_STORY_ARGS, { + storyId, + updatedArgs, + }); + }, + [channel, storyId], + ), + useCallback( + function (argNames) { + return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.RESET_STORY_ARGS, { + storyId, + argNames, + }); + }, + [channel, storyId], + ), + ]; + } + function useGlobals() { + var channel = _index__WEBPACK_IMPORTED_MODULE_20__.KP.getChannel(); + return [ + useStoryContext().globals, + useCallback( + function (newGlobals) { + return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_21__.UPDATE_GLOBALS, { + globals: newGlobals, + }); + }, + [channel], + ), + ]; + } + }, + 21872: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + $W: () => _storybook_channels__WEBPACK_IMPORTED_MODULE_6__.$, + P$: () => AddonStore, + KP: () => addons, + }); + __webpack_require__(43105), + __webpack_require__(1939), + __webpack_require__(67890), + __webpack_require__(73439), + __webpack_require__(58188); + var global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35048), + global__WEBPACK_IMPORTED_MODULE_5___default = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_5__), + _storybook_channels__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74844), + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(87537), + _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(31665); + var AddonStore = function AddonStore() { + var _this = this; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, AddonStore), + (this.loaders = {}), + (this.elements = {}), + (this.config = {}), + (this.channel = void 0), + (this.serverChannel = void 0), + (this.promise = void 0), + (this.resolve = void 0), + (this.getChannel = function () { + if (!_this.channel) + throw new Error( + 'Accessing non-existent addons channel, see https://storybook.js.org/basics/faq/#why-is-there-no-addons-channel', + ); + return _this.channel; + }), + (this.getServerChannel = function () { + if (!_this.serverChannel) throw new Error('Accessing non-existent serverChannel'); + return _this.serverChannel; + }), + (this.ready = function () { + return _this.promise; + }), + (this.hasChannel = function () { + return !!_this.channel; + }), + (this.hasServerChannel = function () { + return !!_this.serverChannel; + }), + (this.setChannel = function (channel) { + (_this.channel = channel), _this.resolve(); + }), + (this.setServerChannel = function (channel) { + _this.serverChannel = channel; + }), + (this.getElements = function (type) { + return _this.elements[type] || (_this.elements[type] = {}), _this.elements[type]; + }), + (this.addPanel = function (name, options) { + _this.add(name, Object.assign({ type: _types__WEBPACK_IMPORTED_MODULE_7__.V.PANEL }, options)); + }), + (this.add = function (name, addon) { + var type = addon.type; + _this.getElements(type)[name] = Object.assign({ id: name }, addon); + }), + (this.setConfig = function (value) { + Object.assign(_this.config, value); + }), + (this.getConfig = function () { + return _this.config; + }), + (this.register = function (name, registerCallback) { + _this.loaders[name] && + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_8__.kg.warn( + ''.concat(name, ' was loaded twice, this could have bad side-effects'), + ), + (_this.loaders[name] = registerCallback); + }), + (this.loadAddons = function (api) { + Object.values(_this.loaders).forEach(function (value) { + return value(api); + }); + }), + (this.promise = new Promise(function (res) { + _this.resolve = function () { + return res(_this.getChannel()); + }; + })); + }, + KEY = '__STORYBOOK_ADDONS'; + var addons = (function getAddonsStore() { + return ( + global__WEBPACK_IMPORTED_MODULE_5___default()[KEY] || + (global__WEBPACK_IMPORTED_MODULE_5___default()[KEY] = new AddonStore()), + global__WEBPACK_IMPORTED_MODULE_5___default()[KEY] + ); + })(); + }, + 65440: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { h: () => makeDecorator }); + __webpack_require__(26936), __webpack_require__(18178); + var makeDecorator = function makeDecorator(_ref) { + var name = _ref.name, + parameterName = _ref.parameterName, + wrapper = _ref.wrapper, + _ref$skipIfNoParamete = _ref.skipIfNoParametersOrOptions, + skipIfNoParametersOrOptions = void 0 !== _ref$skipIfNoParamete && _ref$skipIfNoParamete, + decorator = function decorator(options) { + return function (storyFn, context) { + var parameters = context.parameters && context.parameters[parameterName]; + return parameters && parameters.disable + ? storyFn(context) + : !skipIfNoParametersOrOptions || options || parameters + ? wrapper(storyFn, context, { options, parameters }) + : storyFn(context); + }; + }; + return function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return 'function' == typeof args[0] + ? decorator().apply(void 0, args) + : function () { + if (arguments.length > 1) + return args.length > 1 + ? decorator(args).apply(void 0, arguments) + : decorator.apply(void 0, args).apply(void 0, arguments); + throw new Error( + 'Passing stories directly into ' + .concat(name, '() is not allowed,\n instead use addDecorator(') + .concat(name, ") and pass options with the '") + .concat(parameterName, "' parameter"), + ); + }; + }; + }; + }, + 9280: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + AddonStore: () => esm.P$, + Channel: () => esm.$W, + HooksContext: () => hooks.c8, + addons: () => esm.KP, + applyHooks: () => hooks.DM, + default: () => public_api, + isSupportedType: () => types.Q, + makeDecorator: () => make_decorator.h, + mockChannel: () => mockChannel, + types: () => types.V, + useArgs: () => hooks.D8, + useCallback: () => hooks.I4, + useChannel: () => hooks.EM, + useEffect: () => hooks.d4, + useGlobals: () => hooks.kO, + useMemo: () => hooks.Ye, + useParameter: () => hooks.Ut, + useReducer: () => hooks._Y, + useRef: () => hooks.sO, + useState: () => hooks.eJ, + useStoryContext: () => hooks.e6, + }); + var esm = __webpack_require__(21872), + make_decorator = __webpack_require__(65440), + types = __webpack_require__(31665), + dist_esm = __webpack_require__(74844); + function mockChannel() { + return new dist_esm.Z({ transport: { setHandler: function setHandler() {}, send: function send() {} } }); + } + var hooks = __webpack_require__(86870); + const public_api = esm.KP; + }, + 31665: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { V: () => types, Q: () => isSupportedType }); + var types; + __webpack_require__(49228), __webpack_require__(67890); + function isSupportedType(type) { + return !!Object.values(types).find(function (typeVal) { + return typeVal === type; + }); + } + !(function (types) { + (types.TAB = 'tab'), + (types.PANEL = 'panel'), + (types.TOOL = 'tool'), + (types.TOOLEXTRA = 'toolextra'), + (types.PREVIEW = 'preview'), + (types.NOTES_ELEMENT = 'notes-element'); + })(types || (types = {})); + }, + 98918: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + w0: () => esm_ActiveTabs, + $6: () => ManagerConsumer, + zt: () => ManagerProvider, + fZ: () => combineParameters, + ty: () => isGroup, + C_: () => isRoot, + zK: () => isStory, + TS: () => merge, + jt: () => useAddonState, + eF: () => useArgTypes, + D8: () => useArgs, + EM: () => useChannel, + Af: () => useGlobalTypes, + kO: () => useGlobals, + Ut: () => useParameter, + Uo: () => useStorybookApi, + aL: () => useStorybookState, + }); + var provider_namespaceObject = {}; + __webpack_require__.r(provider_namespaceObject), + __webpack_require__.d(provider_namespaceObject, { init: () => init }); + var addons_namespaceObject = {}; + __webpack_require__.r(addons_namespaceObject), + __webpack_require__.d(addons_namespaceObject, { + ensurePanel: () => ensurePanel, + init: () => addons_init, + types: () => types, + }); + var channel_namespaceObject = {}; + __webpack_require__.r(channel_namespaceObject), + __webpack_require__.d(channel_namespaceObject, { init: () => channel_init }); + var notifications_namespaceObject = {}; + __webpack_require__.r(notifications_namespaceObject), + __webpack_require__.d(notifications_namespaceObject, { init: () => notifications_init }); + var settings_namespaceObject = {}; + __webpack_require__.r(settings_namespaceObject), + __webpack_require__.d(settings_namespaceObject, { init: () => settings_init }); + var release_notes_namespaceObject = {}; + __webpack_require__.r(release_notes_namespaceObject), + __webpack_require__.d(release_notes_namespaceObject, { init: () => release_notes_init }); + var refs_namespaceObject = {}; + __webpack_require__.r(refs_namespaceObject), + __webpack_require__.d(refs_namespaceObject, { + defaultStoryMapper: () => defaultStoryMapper, + getSourceType: () => getSourceType, + init: () => refs_init, + }); + var modules_stories_namespaceObject = {}; + __webpack_require__.r(modules_stories_namespaceObject), + __webpack_require__.d(modules_stories_namespaceObject, { init: () => stories_init }); + var layout_namespaceObject = {}; + __webpack_require__.r(layout_namespaceObject), + __webpack_require__.d(layout_namespaceObject, { + ActiveTabs: () => ActiveTabs, + focusableUIElements: () => focusableUIElements, + init: () => layout_init, + }); + var shortcuts_namespaceObject = {}; + __webpack_require__.r(shortcuts_namespaceObject), + __webpack_require__.d(shortcuts_namespaceObject, { + controlOrMetaKey: () => controlOrMetaKey, + defaultShortcuts: () => defaultShortcuts, + init: () => shortcuts_init, + isMacLike: () => isMacLike, + keys: () => keys, + }); + var url_namespaceObject = {}; + __webpack_require__.r(url_namespaceObject), __webpack_require__.d(url_namespaceObject, { init: () => url_init }); + var versions_namespaceObject = {}; + __webpack_require__.r(versions_namespaceObject), + __webpack_require__.d(versions_namespaceObject, { init: () => versions_init }); + var globals_namespaceObject = {}; + __webpack_require__.r(globals_namespaceObject), + __webpack_require__.d(globals_namespaceObject, { init: () => globals_init }); + __webpack_require__(18178), + __webpack_require__(1939), + __webpack_require__(43105), + __webpack_require__(43450), + __webpack_require__(95342), + __webpack_require__(35883), + __webpack_require__(96928), + __webpack_require__(61229), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(27233), + __webpack_require__(32501), + __webpack_require__(26936); + var react = __webpack_require__(2784), + mergeWith = __webpack_require__(12782), + mergeWith_default = __webpack_require__.n(mergeWith), + esm = __webpack_require__(69844), + store2 = (__webpack_require__(25047), __webpack_require__(73439), __webpack_require__(59042)), + store2_default = __webpack_require__.n(store2), + dist_esm = __webpack_require__(36e3); + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var _; + (_ = store2_default()._).fn('set', function (key, data) { + return _.set(this._area, this._in(key), (0, dist_esm.Pz)(data, { maxDepth: 50 })); + }), + _.fn('get', function (key, alt) { + var value = _.get(this._area, this._in(key)); + return null !== value ? (0, dist_esm.Qc)(value) : alt || value; + }); + function get(storage) { + return storage.get('@storybook/ui/store') || {}; + } + function update(storage, patch) { + var previous = get(storage); + return (function set(storage, value) { + return storage.set('@storybook/ui/store', value); + })(storage, Object.assign({}, previous, patch)); + } + var Store = (function () { + function Store(_ref) { + var setState = _ref.setState, + getState = _ref.getState; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Store), + (this.upstreamGetState = void 0), + (this.upstreamSetState = void 0), + (this.upstreamSetState = setState), + (this.upstreamGetState = getState); + } + var _setState; + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(Store, [ + { + key: 'getInitialState', + value: function getInitialState(base) { + return Object.assign({}, base, get(store2_default().local), get(store2_default().session)); + }, + }, + { + key: 'getState', + value: function getState() { + return this.upstreamGetState(); + }, + }, + { + key: 'setState', + value: + ((_setState = (function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + })( + regeneratorRuntime.mark(function _callee(inputPatch, cbOrOptions, inputOptions) { + var callback, + options, + _ref2$persistence, + persistence, + patch, + delta, + newState, + storage, + _this = this; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return ( + 'function' == typeof cbOrOptions + ? ((callback = cbOrOptions), (options = inputOptions)) + : (options = cbOrOptions), + (_ref2$persistence = (options || {}).persistence), + (persistence = void 0 === _ref2$persistence ? 'none' : _ref2$persistence), + (patch = {}), + (delta = {}), + 'function' == typeof inputPatch + ? (patch = function patch(state) { + return (delta = inputPatch(state)); + }) + : (delta = patch = inputPatch), + (_context.next = 7), + new Promise(function (resolve) { + _this.upstreamSetState(patch, resolve); + }) + ); + case 7: + if (((newState = _context.sent), 'none' === persistence)) { + _context.next = 12; + break; + } + return ( + (storage = + 'session' === persistence ? store2_default().session : store2_default().local), + (_context.next = 12), + update(storage, delta) + ); + case 12: + return callback && callback(newState), _context.abrupt('return', newState); + case 14: + case 'end': + return _context.stop(); + } + }, _callee); + }), + )), + function setState(_x, _x2, _x3) { + return _setState.apply(this, arguments); + }), + }, + ]), + Store + ); + })(), + isEqual = (__webpack_require__(49228), __webpack_require__(18149)), + isEqual_default = __webpack_require__.n(isEqual), + client_logger_dist_esm = __webpack_require__(87537); + const merge = function (a, b) { + return mergeWith_default()({}, a, b, function (objValue, srcValue) { + return Array.isArray(srcValue) && Array.isArray(objValue) + ? (srcValue.forEach(function (s) { + objValue.find(function (o) { + return o === s || isEqual_default()(o, s); + }) || objValue.push(s); + }), + objValue) + : Array.isArray(objValue) + ? (client_logger_dist_esm.kg.log(['the types mismatch, picking', objValue]), objValue) + : void 0; + }); + }; + const initial_state = function main() { + for (var _len = arguments.length, additions = new Array(_len), _key = 0; _key < _len; _key++) + additions[_key] = arguments[_key]; + return additions.reduce(function (acc, item) { + return merge(acc, item); + }, {}); + }; + __webpack_require__(22144), + __webpack_require__(67890), + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(48319), + __webpack_require__(45794), + __webpack_require__(39529), + __webpack_require__(31235); + var _templateObject, + _templateObject2, + _templateObject3, + browser = __webpack_require__(5803), + browser_default = __webpack_require__.n(browser), + ts_dedent_esm = __webpack_require__(51893), + mapValues = __webpack_require__(34519), + mapValues_default = __webpack_require__.n(mapValues), + countBy = __webpack_require__(24471), + countBy_default = __webpack_require__.n(countBy), + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + dist = __webpack_require__(95876); + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + var FEATURES = window_default().FEATURES, + warnLegacyShowRoots = browser_default()(function () {}, + (0, ts_dedent_esm.C)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n The 'showRoots' config option is deprecated and will be removed in Storybook 7.0. Use 'sidebar.showRoots' instead.\n Read more about it in the migration guide: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md\n "])))), + warnChangedDefaultHierarchySeparators = browser_default()(function () {}, + (0, ts_dedent_esm.C)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n The default hierarchy separators changed in Storybook 6.0.\n '|' and '.' will no longer create a hierarchy, but codemods are available.\n Read more about it in the migration guide: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md\n "])))), + denormalizeStoryParameters = function denormalizeStoryParameters(_ref) { + var globalParameters = _ref.globalParameters, + kindParameters = _ref.kindParameters, + stories = _ref.stories; + return mapValues_default()(stories, function (storyData) { + return Object.assign({}, storyData, { + parameters: combineParameters(globalParameters, kindParameters[storyData.kind], storyData.parameters), + }); + }); + }, + STORY_KIND_PATH_SEPARATOR = /\s*\/\s*/, + transformStoryIndexToStoriesHash = function transformStoryIndexToStoriesHash(index, _ref2) { + var provider = _ref2.provider, + countByTitle = countBy_default()(Object.values(index.stories), 'title'), + input = Object.entries(index.stories).reduce(function (acc, _ref3) { + var _ref4 = _slicedToArray(_ref3, 2), + id = _ref4[0], + _ref4$ = _ref4[1], + title = _ref4$.title, + name = _ref4$.name, + importPath = _ref4$.importPath, + docsOnly = 'Page' === name && 1 === countByTitle[title]; + return ( + (acc[id] = { id, kind: title, name, parameters: { fileName: importPath, options: {}, docsOnly } }), acc + ); + }, {}); + return transformStoriesRawToStoriesHash(input, { provider, prepared: !1 }); + }, + transformStoriesRawToStoriesHash = function transformStoriesRawToStoriesHash(input, _ref5) { + var provider = _ref5.provider, + _ref5$prepared = _ref5.prepared, + prepared = void 0 === _ref5$prepared || _ref5$prepared, + values = Object.values(input).filter(Boolean), + usesOldHierarchySeparator = values.some(function (_ref6) { + return _ref6.kind.match(/\.|\|/); + }), + storiesHashOutOfOrder = values.reduce(function (acc, item) { + var kind = item.kind, + parameters = item.parameters, + _provider$getConfig = provider.getConfig(), + _provider$getConfig$s = _provider$getConfig.sidebar, + sidebar = void 0 === _provider$getConfig$s ? {} : _provider$getConfig$s, + deprecatedShowRoots = _provider$getConfig.showRoots, + _sidebar$showRoots = sidebar.showRoots, + showRoots = void 0 === _sidebar$showRoots ? deprecatedShowRoots : _sidebar$showRoots, + _sidebar$collapsedRoo = sidebar.collapsedRoots, + collapsedRoots = void 0 === _sidebar$collapsedRoo ? [] : _sidebar$collapsedRoo, + renderLabel = sidebar.renderLabel; + void 0 !== deprecatedShowRoots && warnLegacyShowRoots(); + var setShowRoots = void 0 !== showRoots; + usesOldHierarchySeparator && + !setShowRoots && + null != FEATURES && + FEATURES.warnOnLegacyHierarchySeparator && + warnChangedDefaultHierarchySeparators(); + var groups = kind.trim().split(STORY_KIND_PATH_SEPARATOR), + root = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [], + rootAndGroups = [].concat(root, _toConsumableArray(groups)).reduce(function (list, name, index) { + var parent = index > 0 && list[index - 1].id, + id = (0, dist.sanitize)(parent ? ''.concat(parent, '-').concat(name) : name); + if (parent === id) + throw new Error( + (0, ts_dedent_esm.C)( + _templateObject3 || + (_templateObject3 = _taggedTemplateLiteral([ + "\n Invalid part '", + "', leading to id === parentId ('", + "'), inside kind '", + "'\n\n Did you create a path that uses the separator char accidentally, such as 'Vue ' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128\n ", + ])), + name, + id, + kind, + ), + ); + return ( + root.length && 0 === index + ? list.push({ + id, + name, + depth: index, + children: [], + isComponent: !1, + isLeaf: !1, + isRoot: !0, + renderLabel, + startCollapsed: collapsedRoots.includes(id), + }) + : list.push({ + id, + name, + parent, + depth: index, + children: [], + isComponent: !1, + isLeaf: !1, + isRoot: !1, + renderLabel, + parameters: { + docsOnly: null == parameters ? void 0 : parameters.docsOnly, + viewMode: null == parameters ? void 0 : parameters.viewMode, + }, + }), + list + ); + }, []), + paths = [].concat( + _toConsumableArray( + rootAndGroups.map(function (_ref7) { + return _ref7.id; + }), + ), + [item.id], + ); + return ( + rootAndGroups.forEach(function (group, index) { + var child = paths[index + 1], + id = group.id; + acc[id] = merge(acc[id] || {}, Object.assign({}, group, child && { children: [child] })); + }), + (acc[item.id] = Object.assign({}, item, { + depth: rootAndGroups.length, + parent: rootAndGroups[rootAndGroups.length - 1].id, + isLeaf: !0, + isComponent: !1, + isRoot: !1, + renderLabel, + prepared, + })), + acc + ); + }, {}); + return Object.values(storiesHashOutOfOrder).reduce(function addItem(acc, item) { + if (!acc[item.id]) { + acc[item.id] = item; + var children = item.children; + if (children) { + var childNodes = children.map(function (id) { + return storiesHashOutOfOrder[id]; + }); + (acc[item.id].isComponent = childNodes.every(function (childNode) { + return childNode.isLeaf; + })), + childNodes.forEach(function (childNode) { + return addItem(acc, childNode); + }); + } + } + return acc; + }, {}); + }; + function isRoot(item) { + return !!item && item.isRoot; + } + function isGroup(item) { + return !!item && !item.isRoot && !item.isLeaf; + } + function isStory(item) { + return !!item && item.isLeaf; + } + var addons_templateObject, + init = function init(_ref) { + var provider = _ref.provider, + fullAPI = _ref.fullAPI; + return { + api: provider.renderPreview ? { renderPreview: provider.renderPreview } : {}, + init: function init() { + provider.handleAPI(fullAPI); + }, + }; + }; + __webpack_require__(34769); + function addons_slicedToArray(arr, i) { + return ( + (function addons_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function addons_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function addons_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return addons_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return addons_arrayLikeToArray(o, minLen); + })(arr, i) || + (function addons_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function addons_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var types, + warnDisabledDeprecated = browser_default()( + function () {}, + (0, ts_dedent_esm.C)( + addons_templateObject || + (addons_templateObject = (function addons_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + "\n Use 'parameters.key.disable' instead of 'parameters.key.disabled'.\n \n https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-disabled-parameter\n ", + ])), + ), + ); + function ensurePanel(panels, selectedPanel, currentPanel) { + var keys = Object.keys(panels); + return keys.indexOf(selectedPanel) >= 0 ? selectedPanel : keys.length ? keys[0] : currentPanel; + } + !(function (types) { + (types.TAB = 'tab'), + (types.PANEL = 'panel'), + (types.TOOL = 'tool'), + (types.PREVIEW = 'preview'), + (types.NOTES_ELEMENT = 'notes-element'); + })(types || (types = {})); + var addons_init = function init(_ref) { + var provider = _ref.provider, + store = _ref.store, + fullAPI = _ref.fullAPI, + api = { + getElements: function getElements(type) { + return provider.getElements(type); + }, + getPanels: function getPanels() { + return api.getElements(types.PANEL); + }, + getStoryPanels: function getStoryPanels() { + var allPanels = api.getPanels(), + storyId = store.getState().storyId, + story = fullAPI.getData(storyId); + if (!allPanels || !story || !isStory(story)) return allPanels; + var parameters = story.parameters, + filteredPanels = {}; + return ( + Object.entries(allPanels).forEach(function (_ref2) { + var _ref3 = addons_slicedToArray(_ref2, 2), + id = _ref3[0], + panel = _ref3[1], + paramKey = panel.paramKey; + paramKey && + parameters && + parameters[paramKey] && + (parameters[paramKey].disabled || parameters[paramKey].disable) + ? parameters[paramKey].disabled && warnDisabledDeprecated() + : (filteredPanels[id] = panel); + }), + filteredPanels + ); + }, + getSelectedPanel: function getSelectedPanel() { + var selectedPanel = store.getState().selectedPanel; + return ensurePanel(api.getPanels(), selectedPanel, selectedPanel); + }, + setSelectedPanel: function setSelectedPanel(panelName) { + store.setState({ selectedPanel: panelName }, { persistence: 'session' }); + }, + setAddonState: function setAddonState(addonId, newStateOrMerger, options) { + var nextState, + obj, + key, + value, + existing = store.getState().addons; + 'function' == typeof newStateOrMerger + ? (nextState = newStateOrMerger(api.getAddonState(addonId))) + : (nextState = newStateOrMerger); + return store + .setState( + { + addons: Object.assign( + {}, + existing, + ((obj = {}), + (key = addonId), + (value = nextState), + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj), + ), + }, + options, + ) + .then(function () { + return api.getAddonState(addonId); + }); + }, + getAddonState: function getAddonState(addonId) { + return store.getState().addons[addonId]; + }, + }; + return { + api, + state: { selectedPanel: ensurePanel(api.getPanels(), store.getState().selectedPanel), addons: {} }, + }; + }, + channel_init = function init(_ref) { + var provider = _ref.provider, + api = { + getChannel: function getChannel() { + return provider.channel; + }, + on: function on(type, cb) { + return ( + provider.channel.addListener(type, cb), + function () { + return provider.channel.removeListener(type, cb); + } + ); + }, + off: function off(type, cb) { + return provider.channel.removeListener(type, cb); + }, + once: function once(type, cb) { + return provider.channel.once(type, cb); + }, + emit: function emit(type) { + for ( + var _provider$channel, _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; + _key < _len; + _key++ + ) + args[_key - 1] = arguments[_key]; + return (_provider$channel = provider.channel).emit.apply(_provider$channel, [type].concat(args)); + }, + collapseAll: function collapseAll() { + provider.channel.emit(esm.STORIES_COLLAPSE_ALL, {}); + }, + expandAll: function expandAll() { + api.emit(esm.STORIES_EXPAND_ALL); + }, + }; + return { api }; + }; + function notifications_toConsumableArray(arr) { + return ( + (function notifications_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return notifications_arrayLikeToArray(arr); + })(arr) || + (function notifications_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function notifications_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return notifications_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return notifications_arrayLikeToArray(o, minLen); + })(arr) || + (function notifications_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function notifications_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var notifications_init = function init(_ref) { + var store = _ref.store, + api = { + addNotification: function addNotification(notification) { + api.clearNotification(notification.id); + var notifications = store.getState().notifications; + store.setState({ + notifications: [].concat(notifications_toConsumableArray(notifications), [notification]), + }); + }, + clearNotification: function clearNotification(id) { + var notifications = store.getState().notifications; + store.setState({ + notifications: notifications.filter(function (n) { + return n.id !== id; + }), + }); + var notification = notifications.find(function (n) { + return n.id === id; + }); + notification && notification.onClear && notification.onClear(); + }, + }; + return { api, state: { notifications: [] } }; + }; + function settings_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function settings_asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + settings_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + settings_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + } + var settings_init = function init(_ref) { + var _navigateToSettingsPage, + store = _ref.store, + navigate = _ref.navigate, + fullAPI = _ref.fullAPI, + isSettingsScreenActive = function isSettingsScreenActive() { + return !!(fullAPI.getUrlState().path || '').match(/^\/settings/); + }, + api = { + closeSettings: function closeSettings() { + var lastTrackedStoryId = store.getState().settings.lastTrackedStoryId; + lastTrackedStoryId ? fullAPI.selectStory(lastTrackedStoryId) : fullAPI.selectFirstStory(); + }, + changeSettingsTab: function changeSettingsTab(tab) { + navigate('/settings/'.concat(tab)); + }, + isSettingsScreenActive, + navigateToSettingsPage: + ((_navigateToSettingsPage = settings_asyncToGenerator( + regeneratorRuntime.mark(function _callee(path) { + var _store$getState2, settings, storyId; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if (isSettingsScreenActive()) { + _context.next = 4; + break; + } + return ( + (_store$getState2 = store.getState()), + (settings = _store$getState2.settings), + (storyId = _store$getState2.storyId), + (_context.next = 4), + store.setState({ settings: Object.assign({}, settings, { lastTrackedStoryId: storyId }) }) + ); + case 4: + navigate(path); + case 5: + case 'end': + return _context.stop(); + } + }, _callee); + }), + )), + function navigateToSettingsPage(_x) { + return _navigateToSettingsPage.apply(this, arguments); + }), + }, + initModule = (function () { + var _ref2 = settings_asyncToGenerator( + regeneratorRuntime.mark(function _callee2() { + return regeneratorRuntime.wrap(function _callee2$(_context2) { + for (;;) + switch ((_context2.prev = _context2.next)) { + case 0: + return (_context2.next = 2), store.setState({ settings: { lastTrackedStoryId: null } }); + case 2: + case 'end': + return _context2.stop(); + } + }, _callee2); + }), + ); + return function initModule() { + return _ref2.apply(this, arguments); + }; + })(); + return { init: initModule, api }; + }, + memoizerific = __webpack_require__(49224), + memoizerific_default = __webpack_require__.n(memoizerific); + function release_notes_toConsumableArray(arr) { + return ( + (function release_notes_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return release_notes_arrayLikeToArray(arr); + })(arr) || + (function release_notes_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function release_notes_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return release_notes_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return release_notes_arrayLikeToArray(o, minLen); + })(arr) || + (function release_notes_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function release_notes_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var refs_templateObject, + RELEASE_NOTES_DATA = window_default().RELEASE_NOTES_DATA, + getReleaseNotesData = memoizerific_default()(1)(function () { + try { + return Object.assign({}, JSON.parse(RELEASE_NOTES_DATA) || {}); + } catch (e) { + return {}; + } + }), + release_notes_init = function init(_ref) { + var store = _ref.store, + releaseNotesData = getReleaseNotesData(), + getReleaseNotesViewed = function getReleaseNotesViewed() { + return store.getState().releaseNotesViewed || []; + }; + return { + init: function initModule() {}, + api: { + releaseNotesVersion: function releaseNotesVersion() { + return releaseNotesData.currentVersion; + }, + setDidViewReleaseNotes: function setDidViewReleaseNotes() { + var releaseNotesViewed = getReleaseNotesViewed(); + releaseNotesViewed.includes(releaseNotesData.currentVersion) || + store.setState( + { + releaseNotesViewed: [].concat(release_notes_toConsumableArray(releaseNotesViewed), [ + releaseNotesData.currentVersion, + ]), + }, + { persistence: 'permanent' }, + ); + }, + showReleaseNotesOnLaunch: function showReleaseNotesOnLaunch() { + if (!releaseNotesData.currentVersion) return !1; + var didViewReleaseNotes = getReleaseNotesViewed().includes(releaseNotesData.currentVersion), + showReleaseNotesOnLaunch = releaseNotesData.showOnFirstLaunch && !didViewReleaseNotes; + return showReleaseNotesOnLaunch; + }, + }, + }; + }; + __webpack_require__(9949), + __webpack_require__(9575), + __webpack_require__(96264), + __webpack_require__(71245), + __webpack_require__(14121), + __webpack_require__(85940); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function refs_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _toPropertyKey(arg) { + var key = (function _toPrimitive(input, hint) { + if ('object' !== _typeof(input) || null === input) return input; + var prim = input[Symbol.toPrimitive]; + if (void 0 !== prim) { + var res = prim.call(input, hint || 'default'); + if ('object' !== _typeof(res)) return res; + throw new TypeError('@@toPrimitive must return a primitive value.'); + } + return ('string' === hint ? String : Number)(input); + })(arg, 'string'); + return 'symbol' === _typeof(key) ? key : String(key); + } + function refs_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function refs_asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + refs_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + refs_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + } + function refs_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function refs_slicedToArray(arr, i) { + return ( + (function refs_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function refs_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function refs_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return refs_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return refs_arrayLikeToArray(o, minLen); + })(arr, i) || + (function refs_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function refs_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var refs_location = window_default().location, + fetch = window_default().fetch, + findFilename = /(\/((?:[^\/]+?)\.[^\/]+?)|\/)$/, + getSourceType = function getSourceType(source, refId) { + var localOrigin = refs_location.origin, + localPathname = refs_location.pathname, + _URL = new URL(source), + sourceOrigin = _URL.origin, + sourcePathname = _URL.pathname, + localFull = ''.concat(localOrigin + localPathname).replace(findFilename, ''), + sourceFull = ''.concat(sourceOrigin + sourcePathname).replace(findFilename, ''); + return localFull === sourceFull + ? ['local', sourceFull] + : refId || source + ? ['external', sourceFull] + : [null, null]; + }, + defaultStoryMapper = function defaultStoryMapper(b, a) { + return Object.assign({}, a, { kind: a.kind.replace('|', '/') }); + }, + addRefIds = function addRefIds(input, ref) { + return Object.entries(input).reduce(function (acc, _ref) { + var _ref2 = refs_slicedToArray(_ref, 2), + id = _ref2[0], + item = _ref2[1]; + return Object.assign({}, acc, refs_defineProperty({}, id, Object.assign({}, item, { refId: ref.id }))); + }, {}); + }, + handle = (function () { + var _ref3 = refs_asyncToGenerator( + regeneratorRuntime.mark(function _callee(request) { + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if (!request) { + _context.next = 2; + break; + } + return _context.abrupt( + 'return', + Promise.resolve(request) + .then(function (response) { + return response.ok ? response.json() : {}; + }) + .catch(function (error) { + return { error }; + }), + ); + case 2: + return _context.abrupt('return', {}); + case 3: + case 'end': + return _context.stop(); + } + }, _callee); + }), + ); + return function handle(_x) { + return _ref3.apply(this, arguments); + }; + })(), + map = function map(input, ref, options) { + var storyMapper = options.storyMapper; + return storyMapper + ? Object.entries(input).reduce(function (acc, _ref4) { + var _ref5 = refs_slicedToArray(_ref4, 2), + id = _ref5[0], + item = _ref5[1]; + return Object.assign({}, acc, refs_defineProperty({}, id, storyMapper(ref, item))); + }, {}) + : input; + }, + refs_init = function init(_ref6) { + var _checkRef, + store = _ref6.store, + provider = _ref6.provider, + singleStory = _ref6.singleStory, + _ref7 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + _ref7$runCheck = _ref7.runCheck, + runCheck = void 0 === _ref7$runCheck || _ref7$runCheck, + api = { + findRef: function findRef(source) { + var refs = api.getRefs(); + return Object.values(refs).find(function (_ref8) { + return _ref8.url.match(source); + }); + }, + changeRefVersion: function changeRefVersion(id, url) { + var _api$getRefs$id = api.getRefs()[id], + ref = { id, url, versions: _api$getRefs$id.versions, title: _api$getRefs$id.title, stories: {} }; + api.checkRef(ref); + }, + changeRefState: function changeRefState(id, ready) { + var _api$getRefs = api.getRefs(), + ref = _api$getRefs[id], + updated = _objectWithoutProperties(_api$getRefs, [id].map(_toPropertyKey)); + (updated[id] = Object.assign({}, ref, { ready })), store.setState({ refs: updated }); + }, + checkRef: + ((_checkRef = refs_asyncToGenerator( + regeneratorRuntime.mark(function _callee2(ref) { + var id, + url, + version, + type, + isPublic, + loadedData, + query, + credentials, + storiesFetch, + _yield$Promise$all, + _yield$Promise$all2, + stories, + metadata; + return regeneratorRuntime.wrap(function _callee2$(_context2) { + for (;;) + switch ((_context2.prev = _context2.next)) { + case 0: + return ( + (id = ref.id), + (url = ref.url), + (version = ref.version), + (type = ref.type), + (isPublic = 'server-checked' === type), + (loadedData = {}), + (query = version ? '?version='.concat(version) : ''), + (credentials = isPublic ? 'omit' : 'include'), + (_context2.next = 7), + fetch(''.concat(url, '/stories.json').concat(query), { + headers: { Accept: 'application/json' }, + credentials, + }) + ); + case 7: + if ((storiesFetch = _context2.sent).ok || isPublic) { + _context2.next = 12; + break; + } + (loadedData.error = { + message: (0, ts_dedent_esm.C)( + refs_templateObject || + (refs_templateObject = refs_taggedTemplateLiteral([ + '\n Error: Loading of ref failed\n at fetch (lib/api/src/modules/refs.ts)\n\n URL: ', + "\n\n We weren't able to load the above URL,\n it's possible a CORS error happened.\n\n Please check your dev-tools network tab.\n ", + ])), + url, + ), + }), + (_context2.next = 20); + break; + case 12: + if (!storiesFetch.ok) { + _context2.next = 20; + break; + } + return ( + (_context2.next = 15), + Promise.all([ + handle(storiesFetch), + handle( + fetch(''.concat(url, '/metadata.json').concat(query), { + headers: { Accept: 'application/json' }, + credentials, + cache: 'no-cache', + }).catch(function () { + return !1; + }), + ), + ]) + ); + case 15: + (_yield$Promise$all = _context2.sent), + (_yield$Promise$all2 = refs_slicedToArray(_yield$Promise$all, 2)), + (stories = _yield$Promise$all2[0]), + (metadata = _yield$Promise$all2[1]), + Object.assign(loadedData, Object.assign({}, stories, metadata)); + case 20: + return ( + (_context2.next = 22), + api.setRef( + id, + Object.assign({ id, url }, loadedData, { + error: loadedData.error, + type: loadedData.stories ? 'lazy' : 'auto-inject', + }), + ) + ); + case 22: + case 'end': + return _context2.stop(); + } + }, _callee2); + }), + )), + function checkRef(_x2) { + return _checkRef.apply(this, arguments); + }), + getRefs: function getRefs() { + var _store$getState$refs = store.getState().refs; + return void 0 === _store$getState$refs ? {} : _store$getState$refs; + }, + setRef: function setRef(id, _ref9) { + var ready = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], + stories = _ref9.stories, + v = _ref9.v, + rest = _objectWithoutProperties(_ref9, ['stories', 'v']); + if (!singleStory) { + var storiesHash, + _provider$getConfig = provider.getConfig(), + _provider$getConfig$s = _provider$getConfig.storyMapper, + storyMapper = void 0 === _provider$getConfig$s ? defaultStoryMapper : _provider$getConfig$s, + ref = api.getRefs()[id]; + if (stories) { + if (2 === v) + storiesHash = transformStoriesRawToStoriesHash(map(stories, ref, { storyMapper }), { provider }); + else { + if (!v) throw new Error('Composition: Missing stories.json version'); + var index = stories; + storiesHash = transformStoryIndexToStoriesHash({ v, stories: index }, { provider }); + } + storiesHash = addRefIds(storiesHash, ref); + } + api.updateRef(id, Object.assign({ stories: storiesHash }, rest, { ready })); + } + }, + updateRef: function updateRef(id, data) { + var _api$getRefs2 = api.getRefs(), + ref = _api$getRefs2[id], + updated = _objectWithoutProperties(_api$getRefs2, [id].map(_toPropertyKey)); + updated[id] = Object.assign({}, ref, data); + var ordered = Object.keys(initialState).reduce(function (obj, key) { + return (obj[key] = updated[key]), obj; + }, {}); + store.setState({ refs: ordered }); + }, + }, + refs = (!singleStory && provider.getConfig().refs) || {}, + initialState = refs; + return ( + runCheck && + Object.entries(refs).forEach(function (_ref10) { + var _ref11 = refs_slicedToArray(_ref10, 2), + v = (_ref11[0], _ref11[1]); + api.checkRef(v); + }), + { api, state: { refs: initialState } } + ); + }; + function events_slicedToArray(arr, i) { + return ( + (function events_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function events_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function events_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return events_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return events_arrayLikeToArray(o, minLen); + })(arr, i) || + (function events_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function events_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var getEventMetadata = function getEventMetadata(context, fullAPI) { + var source = context.source, + refId = context.refId, + type = context.type, + _getSourceType2 = events_slicedToArray(getSourceType(source, refId), 2), + sourceType = _getSourceType2[0], + sourceLocation = _getSourceType2[1], + meta = { + source, + sourceType, + sourceLocation, + refId, + ref: refId && fullAPI.getRefs()[refId] ? fullAPI.getRefs()[refId] : fullAPI.findRef(sourceLocation), + type, + }; + switch (!0) { + case 'string' == typeof refId: + case 'local' === sourceType: + case 'external' === sourceType: + return meta; + default: + return ( + client_logger_dist_esm.kg.warn('Received a '.concat(type, ' frame that was not configured as a ref')), + null + ); + } + }; + function stories_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function stories_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function stories_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function stories_asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + stories_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + stories_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + } + function stories_toConsumableArray(arr) { + return ( + (function stories_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return stories_arrayLikeToArray(arr); + })(arr) || + (function stories_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function stories_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return stories_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return stories_arrayLikeToArray(o, minLen); + })(arr) || + (function stories_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function stories_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var DOCS_MODE = window_default().DOCS_MODE, + stories_FEATURES = window_default().FEATURES, + stories_fetch = window_default().fetch, + deprecatedOptionsParameterWarnings = ['enableShortcuts', 'theme', 'showRoots'].reduce(function (acc, option) { + return ( + (acc[option] = browser_default()(function () {}, + 'parameters.options.'.concat(option, ' is deprecated and will be removed in Storybook 7.0.\nTo change this setting, use `addons.setConfig`. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-immutable-options-parameters\n '))), + acc + ); + }, {}); + function checkDeprecatedOptionParameters(options) { + options && + Object.keys(options).forEach(function (option) { + deprecatedOptionsParameterWarnings[option] && deprecatedOptionsParameterWarnings[option](); + }); + } + var stories_init = function init(_ref) { + var _updateStory, + _setStoryList, + _fetchStoryList, + _setStories, + fullAPI = _ref.fullAPI, + store = _ref.store, + navigate = _ref.navigate, + provider = _ref.provider, + initialStoryId = _ref.storyId, + initialViewMode = _ref.viewMode, + api = { + storyId: dist.toId, + getData: function getData(storyId, refId) { + var result = api.resolveStory(storyId, refId); + return isRoot(result) ? void 0 : result; + }, + isPrepared: function isPrepared(storyId, refId) { + var data = api.getData(storyId, refId); + return !data.isLeaf || data.prepared; + }, + resolveStory: function resolveStory(storyId, refId) { + var _store$getState = store.getState(), + refs = _store$getState.refs, + storiesHash = _store$getState.storiesHash; + return refId + ? refs[refId].stories + ? refs[refId].stories[storyId] + : void 0 + : storiesHash + ? storiesHash[storyId] + : void 0; + }, + getCurrentStoryData: function getCurrentStoryData() { + var _store$getState2 = store.getState(), + storyId = _store$getState2.storyId, + refId = _store$getState2.refId; + return api.getData(storyId, refId); + }, + getParameters: function getParameters(storyIdOrCombo, parameterName) { + var _ref2 = + 'string' == typeof storyIdOrCombo ? { storyId: storyIdOrCombo, refId: void 0 } : storyIdOrCombo, + storyId = _ref2.storyId, + refId = _ref2.refId, + data = api.getData(storyId, refId); + if (isStory(data)) { + var parameters = data.parameters; + return parameters ? (parameterName ? parameters[parameterName] : parameters) : {}; + } + return null; + }, + getCurrentParameter: function getCurrentParameter(parameterName) { + var _store$getState3 = store.getState(), + storyId = _store$getState3.storyId, + refId = _store$getState3.refId; + return api.getParameters({ storyId, refId }, parameterName) || void 0; + }, + jumpToComponent: function jumpToComponent(direction) { + var _store$getState4 = store.getState(), + storiesHash = _store$getState4.storiesHash, + storyId = _store$getState4.storyId, + refs = _store$getState4.refs, + refId = _store$getState4.refId; + if (api.getData(storyId, refId)) { + var hash = refId ? refs[refId].stories || {} : storiesHash, + lookupList = Object.entries(hash).reduce(function (acc, i) { + return i[1].isComponent && acc.push(stories_toConsumableArray(i[1].children)), acc; + }, []), + index = lookupList.findIndex(function (i) { + return i.includes(storyId); + }); + if (!((index === lookupList.length - 1 && direction > 0) || (0 === index && direction < 0))) { + var result = lookupList[index + direction][0]; + result && api.selectStory(result, void 0, { ref: refId }); + } + } + }, + jumpToStory: function jumpToStory(direction) { + var _store$getState5 = store.getState(), + storiesHash = _store$getState5.storiesHash, + storyId = _store$getState5.storyId, + refs = _store$getState5.refs, + refId = _store$getState5.refId, + story = api.getData(storyId, refId); + if (DOCS_MODE) api.jumpToComponent(direction); + else if (story) { + var hash = story.refId ? refs[story.refId].stories : storiesHash, + lookupList = Object.keys(hash).filter(function (k) { + return !(hash[k].children || Array.isArray(hash[k])); + }), + index = lookupList.indexOf(storyId); + if (!((index === lookupList.length - 1 && direction > 0) || (0 === index && direction < 0))) { + var result = lookupList[index + direction]; + result && api.selectStory(result, void 0, { ref: refId }); + } + } + }, + setStories: + ((_setStories = stories_asyncToGenerator( + regeneratorRuntime.mark(function _callee(input, error) { + var hash; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return ( + (hash = transformStoriesRawToStoriesHash(input, { provider })), + (_context.next = 3), + store.setState({ storiesHash: hash, storiesConfigured: !0, storiesFailed: error }) + ); + case 3: + case 'end': + return _context.stop(); + } + }, _callee); + }), + )), + function setStories(_x, _x2) { + return _setStories.apply(this, arguments); + }), + selectFirstStory: function selectFirstStory() { + var storiesHash = store.getState().storiesHash, + firstStory = Object.keys(storiesHash).find(function (k) { + return !(storiesHash[k].children || Array.isArray(storiesHash[k])); + }); + firstStory ? api.selectStory(firstStory) : navigate('/'); + }, + selectStory: function selectStory() { + var kindOrId = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : void 0, + story = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0, + options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + ref = options.ref, + viewModeFromArgs = options.viewMode, + _store$getState7 = store.getState(), + _store$getState7$view = _store$getState7.viewMode, + viewModeFromState = void 0 === _store$getState7$view ? 'story' : _store$getState7$view, + storyId = _store$getState7.storyId, + storiesHash = _store$getState7.storiesHash, + refs = _store$getState7.refs, + hash = ref ? refs[ref].stories : storiesHash, + kindSlug = null == storyId ? void 0 : storyId.split('--', 2)[0]; + if (story) + if (kindOrId) { + var _id2 = ref + ? ''.concat(ref, '_').concat((0, dist.toId)(kindOrId, story)) + : (0, dist.toId)(kindOrId, story); + if (hash[_id2]) api.selectStory(_id2, void 0, options); + else { + var _k = hash[(0, dist.sanitize)(kindOrId)]; + if (_k && _k.children) { + var foundId = _k.children.find(function (childId) { + return hash[childId].name === story; + }); + foundId && api.selectStory(foundId, void 0, options); + } + } + } else { + var _id = (0, dist.toId)(kindSlug, story); + api.selectStory(_id, void 0, options); + } + else { + var s = kindOrId ? hash[kindOrId] || hash[(0, dist.sanitize)(kindOrId)] : hash[kindSlug], + id = s ? (s.children ? s.children[0] : s.id) : kindOrId, + viewMode = + s && !isRoot(s) && (viewModeFromArgs || s.parameters.viewMode) + ? s.parameters.viewMode + : viewModeFromState; + viewMode.match(/docs|story/) || (viewMode = 'story'); + var p = + s && s.refId + ? '/'.concat(viewMode, '/').concat(s.refId, '_').concat(id) + : '/'.concat(viewMode, '/').concat(id); + navigate(p); + } + }, + findLeafStoryId: function findLeafStoryId(storiesHash, storyId) { + if (storiesHash[storyId].isLeaf) return storyId; + var childStoryId = storiesHash[storyId].children[0]; + return api.findLeafStoryId(storiesHash, childStoryId); + }, + updateStoryArgs: function updateStoryArgs(story, updatedArgs) { + var storyId = story.id, + refId = story.refId; + fullAPI.emit(esm.UPDATE_STORY_ARGS, { + storyId, + updatedArgs, + options: { target: refId ? 'storybook-ref-'.concat(refId) : 'storybook-preview-iframe' }, + }); + }, + resetStoryArgs: function resetStoryArgs(story, argNames) { + var storyId = story.id, + refId = story.refId; + fullAPI.emit(esm.RESET_STORY_ARGS, { + storyId, + argNames, + options: { target: refId ? 'storybook-ref-'.concat(refId) : 'storybook-preview-iframe' }, + }); + }, + fetchStoryList: + ((_fetchStoryList = stories_asyncToGenerator( + regeneratorRuntime.mark(function _callee2() { + var result, storyIndex; + return regeneratorRuntime.wrap( + function _callee2$(_context2) { + for (;;) + switch ((_context2.prev = _context2.next)) { + case 0: + return (_context2.prev = 0), (_context2.next = 3), stories_fetch('./stories.json'); + case 3: + if (200 === (result = _context2.sent).status) { + _context2.next = 10; + break; + } + return (_context2.t0 = Error), (_context2.next = 8), result.text(); + case 8: + throw ((_context2.t1 = _context2.sent), new _context2.t0(_context2.t1)); + case 10: + return (_context2.next = 12), result.json(); + case 12: + if (3 === (storyIndex = _context2.sent).v) { + _context2.next = 16; + break; + } + return ( + client_logger_dist_esm.kg.warn( + 'Skipping story index with version v'.concat(storyIndex.v, ', awaiting SET_STORIES.'), + ), + _context2.abrupt('return') + ); + case 16: + return (_context2.next = 18), fullAPI.setStoryList(storyIndex); + case 18: + _context2.next = 23; + break; + case 20: + (_context2.prev = 20), + (_context2.t2 = _context2.catch(0)), + store.setState({ storiesConfigured: !0, storiesFailed: _context2.t2 }); + case 23: + case 'end': + return _context2.stop(); + } + }, + _callee2, + null, + [[0, 20]], + ); + }), + )), + function fetchStoryList() { + return _fetchStoryList.apply(this, arguments); + }), + setStoryList: + ((_setStoryList = stories_asyncToGenerator( + regeneratorRuntime.mark(function _callee3(storyIndex) { + var hash; + return regeneratorRuntime.wrap(function _callee3$(_context3) { + for (;;) + switch ((_context3.prev = _context3.next)) { + case 0: + return ( + (hash = transformStoryIndexToStoriesHash(storyIndex, { provider })), + (_context3.next = 3), + store.setState({ storiesHash: hash, storiesConfigured: !0, storiesFailed: null }) + ); + case 3: + case 'end': + return _context3.stop(); + } + }, _callee3); + }), + )), + function setStoryList(_x3) { + return _setStoryList.apply(this, arguments); + }), + updateStory: + ((_updateStory = stories_asyncToGenerator( + regeneratorRuntime.mark(function _callee4(storyId, update, ref) { + var _store$getState8, storiesHash, _refId, _stories; + return regeneratorRuntime.wrap(function _callee4$(_context4) { + for (;;) + switch ((_context4.prev = _context4.next)) { + case 0: + if (ref) { + _context4.next = 7; + break; + } + return ( + (_store$getState8 = store.getState()), + ((storiesHash = _store$getState8.storiesHash)[storyId] = Object.assign( + {}, + storiesHash[storyId], + update, + )), + (_context4.next = 5), + store.setState({ storiesHash }) + ); + case 5: + _context4.next = 11; + break; + case 7: + return ( + (_refId = ref.id), + ((_stories = ref.stories)[storyId] = Object.assign({}, _stories[storyId], update)), + (_context4.next = 11), + fullAPI.updateRef(_refId, { stories: _stories }) + ); + case 11: + case 'end': + return _context4.stop(); + } + }, _callee4); + }), + )), + function updateStory(_x4, _x5, _x6) { + return _updateStory.apply(this, arguments); + }), + }, + initModule = (function () { + var _ref3 = stories_asyncToGenerator( + regeneratorRuntime.mark(function _callee5() { + var _provider$serverChann; + return regeneratorRuntime.wrap(function _callee5$(_context5) { + for (;;) + switch ((_context5.prev = _context5.next)) { + case 0: + if ( + (fullAPI.on(esm.STORY_SPECIFIED, function handler(_ref4) { + var storyId = _ref4.storyId, + viewMode = _ref4.viewMode, + sourceType = getEventMetadata(this, fullAPI).sourceType; + if (!fullAPI.isSettingsScreenActive() && 'local' === sourceType) { + var state = store.getState(); + (state.storyId === storyId && state.viewMode === viewMode) || + navigate('/'.concat(viewMode, '/').concat(storyId)); + } + }), + fullAPI.on(esm.STORY_CHANGED, function handler() { + if ('local' === getEventMetadata(this, fullAPI).sourceType) { + var options = fullAPI.getCurrentParameter('options'); + options && (checkDeprecatedOptionParameters(options), fullAPI.setOptions(options)); + } + }), + fullAPI.on(esm.SET_STORIES, function handler(data) { + var ref = getEventMetadata(this, fullAPI).ref, + stories = data.v ? denormalizeStoryParameters(data) : data.stories; + if (ref) fullAPI.setRef(ref.id, Object.assign({}, ref, data, { stories }), !0); + else { + if (!data.v) throw new Error('Unexpected legacy SET_STORIES event from local source'); + fullAPI.setStories(stories); + var options = fullAPI.getCurrentParameter('options'); + checkDeprecatedOptionParameters(options), fullAPI.setOptions(options); + } + }), + fullAPI.on(esm.SELECT_STORY, function handler(_ref5) { + var kind = _ref5.kind, + story = _ref5.story, + storyId = _ref5.storyId, + rest = stories_objectWithoutProperties(_ref5, ['kind', 'story', 'storyId']), + ref = getEventMetadata(this, fullAPI).ref; + ref + ? fullAPI.selectStory(storyId || kind, story, Object.assign({}, rest, { ref: ref.id })) + : fullAPI.selectStory(storyId || kind, story, rest); + }), + fullAPI.on(esm.STORY_PREPARED, function handler(_ref6) { + var id = _ref6.id, + update = stories_objectWithoutProperties(_ref6, ['id']), + ref = getEventMetadata(this, fullAPI).ref; + if ((fullAPI.updateStory(id, Object.assign({}, update, { prepared: !0 }), ref), ref)) + fullAPI.updateRef(ref.id, { ready: !0 }); + else if (!store.getState().hasCalledSetOptions) { + var options = update.parameters.options; + checkDeprecatedOptionParameters(options), + fullAPI.setOptions(options), + store.setState({ hasCalledSetOptions: !0 }); + } + }), + fullAPI.on(esm.STORY_ARGS_UPDATED, function handleStoryArgsUpdated(_ref7) { + var storyId = _ref7.storyId, + args = _ref7.args, + ref = getEventMetadata(this, fullAPI).ref; + fullAPI.updateStory(storyId, { args }, ref); + }), + fullAPI.on(esm.CONFIG_ERROR, function handleConfigError(err) { + store.setState({ storiesConfigured: !0, storiesFailed: err }); + }), + null == stories_FEATURES || !stories_FEATURES.storyStoreV7) + ) { + _context5.next = 11; + break; + } + return ( + null === (_provider$serverChann = provider.serverChannel) || + void 0 === _provider$serverChann || + _provider$serverChann.on(esm.STORY_INDEX_INVALIDATED, function () { + return fullAPI.fetchStoryList(); + }), + (_context5.next = 11), + fullAPI.fetchStoryList() + ); + case 11: + case 'end': + return _context5.stop(); + } + }, _callee5); + }), + ); + return function initModule() { + return _ref3.apply(this, arguments); + }; + })(); + return { + api, + state: { + storiesHash: {}, + storyId: initialStoryId, + viewMode: initialViewMode, + storiesConfigured: !1, + hasCalledSetOptions: !1, + }, + init: initModule, + }; + }, + pick = __webpack_require__(13888), + pick_default = __webpack_require__.n(pick), + fast_deep_equal = __webpack_require__(69378), + fast_deep_equal_default = __webpack_require__.n(fast_deep_equal), + create = __webpack_require__(92350); + function layout_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function layout_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var layout_DOCS_MODE = window_default().DOCS_MODE, + layout_document = window_default().document, + ActiveTabs = { SIDEBAR: 'sidebar', CANVAS: 'canvas', ADDONS: 'addons' }, + defaultState = { + ui: { enableShortcuts: !0, docsMode: !1 }, + layout: { + initialActive: ActiveTabs.CANVAS, + isToolshown: !layout_DOCS_MODE, + isFullscreen: !1, + showPanel: !0, + showNav: !0, + panelPosition: 'bottom', + }, + selectedPanel: void 0, + theme: create.n.light, + }, + focusableUIElements = { + storySearchField: 'storybook-explorer-searchfield', + storyListMenu: 'storybook-explorer-menu', + storyPanelRoot: 'storybook-panel-root', + }, + layout_init = function init(_ref) { + var store = _ref.store, + provider = _ref.provider, + singleStory = _ref.singleStory, + api = { + toggleFullscreen: function toggleFullscreen(toggled) { + return store.setState( + function (state) { + var showNav = state.layout.showNav, + value = 'boolean' == typeof toggled ? toggled : !state.layout.isFullscreen, + shouldShowNav = !1 === showNav && !1 === value; + return { + layout: Object.assign({}, state.layout, { + isFullscreen: value, + showNav: !(singleStory || !shouldShowNav) || showNav, + }), + }; + }, + { persistence: 'session' }, + ); + }, + togglePanel: function togglePanel(toggled) { + return store.setState( + function (state) { + var _state$layout = state.layout, + showNav = _state$layout.showNav, + isFullscreen = _state$layout.isFullscreen, + value = void 0 !== toggled ? toggled : !state.layout.showPanel, + shouldToggleFullScreen = !1 === showNav && !1 === value; + return { + layout: Object.assign({}, state.layout, { + showPanel: value, + isFullscreen: !!shouldToggleFullScreen || isFullscreen, + }), + }; + }, + { persistence: 'session' }, + ); + }, + togglePanelPosition: function togglePanelPosition(position) { + return void 0 !== position + ? store.setState( + function (state) { + return { layout: Object.assign({}, state.layout, { panelPosition: position }) }; + }, + { persistence: 'session' }, + ) + : store.setState( + function (state) { + return { + layout: Object.assign({}, state.layout, { + panelPosition: 'right' === state.layout.panelPosition ? 'bottom' : 'right', + }), + }; + }, + { persistence: 'session' }, + ); + }, + toggleNav: function toggleNav(toggled) { + return store.setState( + function (state) { + if (singleStory) return { layout: state.layout }; + var _state$layout2 = state.layout, + showPanel = _state$layout2.showPanel, + isFullscreen = _state$layout2.isFullscreen, + showNav = void 0 !== toggled ? toggled : !state.layout.showNav, + shouldToggleFullScreen = !1 === showPanel && !1 === showNav; + return { + layout: Object.assign({}, state.layout, { + showNav, + isFullscreen: !!shouldToggleFullScreen || (!showNav && isFullscreen), + }), + }; + }, + { persistence: 'session' }, + ); + }, + toggleToolbar: function toggleToolbar(toggled) { + return store.setState( + function (state) { + var value = void 0 !== toggled ? toggled : !state.layout.isToolshown; + return { layout: Object.assign({}, state.layout, { isToolshown: value }) }; + }, + { persistence: 'session' }, + ); + }, + resetLayout: function resetLayout() { + return store.setState( + function (state) { + return { + layout: Object.assign({}, state.layout, { showNav: !1, showPanel: !1, isFullscreen: !1 }), + }; + }, + { persistence: 'session' }, + ); + }, + focusOnUIElement: function focusOnUIElement(elementId, select) { + if (elementId) { + var element = layout_document.getElementById(elementId); + element && (element.focus(), select && element.select()); + } + }, + getInitialOptions: function getInitialOptions() { + var _provider$getConfig = provider.getConfig(), + theme = _provider$getConfig.theme, + selectedPanel = _provider$getConfig.selectedPanel, + options = layout_objectWithoutProperties(_provider$getConfig, ['theme', 'selectedPanel']); + return Object.assign({}, defaultState, { + layout: Object.assign( + {}, + defaultState.layout, + pick_default()(options, Object.keys(defaultState.layout)), + singleStory && { showNav: !1 }, + ), + ui: Object.assign({}, defaultState.ui, pick_default()(options, Object.keys(defaultState.ui))), + selectedPanel: selectedPanel || defaultState.selectedPanel, + theme: theme || defaultState.theme, + }); + }, + setOptions: function setOptions(options) { + var _store$getState = store.getState(), + layout = _store$getState.layout, + ui = _store$getState.ui, + selectedPanel = _store$getState.selectedPanel, + theme = _store$getState.theme; + if (options) { + var updatedLayout = Object.assign( + {}, + layout, + pick_default()(options, Object.keys(layout)), + singleStory && { showNav: !1 }, + ), + updatedUi = Object.assign({}, ui, pick_default()(options, Object.keys(ui))), + updatedTheme = Object.assign({}, theme, options.theme), + modification = {}; + fast_deep_equal_default()(ui, updatedUi) || (modification.ui = updatedUi), + fast_deep_equal_default()(layout, updatedLayout) || (modification.layout = updatedLayout), + options.selectedPanel && + !fast_deep_equal_default()(selectedPanel, options.selectedPanel) && + (modification.selectedPanel = options.selectedPanel), + Object.keys(modification).length && store.setState(modification, { persistence: 'permanent' }), + fast_deep_equal_default()(theme, updatedTheme) || store.setState({ theme: updatedTheme }); + } + }, + }, + persisted = pick_default()(store.getState(), 'layout', 'ui', 'selectedPanel'); + return { api, state: merge(api.getInitialOptions(), persisted) }; + }, + lib_shortcut = __webpack_require__(49971); + function shortcuts_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function shortcuts_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function shortcuts_asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + shortcuts_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + shortcuts_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + } + function shortcuts_slicedToArray(arr, i) { + return ( + (function shortcuts_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function shortcuts_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function shortcuts_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return shortcuts_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return shortcuts_arrayLikeToArray(o, minLen); + })(arr, i) || + (function shortcuts_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function shortcuts_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var shortcuts_navigator = window_default().navigator, + shortcuts_document = window_default().document, + isMacLike = function isMacLike() { + return ( + !(!shortcuts_navigator || !shortcuts_navigator.platform) && + !!shortcuts_navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) + ); + }, + controlOrMetaKey = function controlOrMetaKey() { + return isMacLike() ? 'meta' : 'control'; + }; + function keys(o) { + return Object.keys(o); + } + var defaultShortcuts = Object.freeze({ + fullScreen: ['F'], + togglePanel: ['A'], + panelPosition: ['D'], + toggleNav: ['S'], + toolbar: ['T'], + search: ['/'], + focusNav: ['1'], + focusIframe: ['2'], + focusPanel: ['3'], + prevComponent: ['alt', 'ArrowUp'], + nextComponent: ['alt', 'ArrowDown'], + prevStory: ['alt', 'ArrowLeft'], + nextStory: ['alt', 'ArrowRight'], + shortcutsPage: [controlOrMetaKey(), 'shift', ','], + aboutPage: [','], + escape: ['escape'], + collapseAll: [controlOrMetaKey(), 'shift', 'ArrowUp'], + expandAll: [controlOrMetaKey(), 'shift', 'ArrowDown'], + }), + addonsShortcuts = {}; + var url_templateObject, + url_templateObject2, + url_templateObject3, + _templateObject4, + shortcuts_init = function init(_ref) { + var store = _ref.store, + fullAPI = _ref.fullAPI, + api = { + getShortcutKeys: function getShortcutKeys() { + return store.getState().shortcuts; + }, + getDefaultShortcuts: function getDefaultShortcuts() { + return Object.assign({}, defaultShortcuts, api.getAddonsShortcutDefaults()); + }, + getAddonsShortcuts: function getAddonsShortcuts() { + return addonsShortcuts; + }, + getAddonsShortcutLabels: function getAddonsShortcutLabels() { + var labels = {}; + return ( + Object.entries(api.getAddonsShortcuts()).forEach(function (_ref2) { + var _ref3 = shortcuts_slicedToArray(_ref2, 2), + actionName = _ref3[0], + label = _ref3[1].label; + labels[actionName] = label; + }), + labels + ); + }, + getAddonsShortcutDefaults: function getAddonsShortcutDefaults() { + var defaults = {}; + return ( + Object.entries(api.getAddonsShortcuts()).forEach(function (_ref4) { + var _ref5 = shortcuts_slicedToArray(_ref4, 2), + actionName = _ref5[0], + defaultShortcut = _ref5[1].defaultShortcut; + defaults[actionName] = defaultShortcut; + }), + defaults + ); + }, + setShortcuts: function setShortcuts(shortcuts) { + return shortcuts_asyncToGenerator( + regeneratorRuntime.mark(function _callee() { + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return (_context.next = 2), store.setState({ shortcuts }, { persistence: 'permanent' }); + case 2: + return _context.abrupt('return', shortcuts); + case 3: + case 'end': + return _context.stop(); + } + }, _callee); + }), + )(); + }, + restoreAllDefaultShortcuts: function restoreAllDefaultShortcuts() { + return shortcuts_asyncToGenerator( + regeneratorRuntime.mark(function _callee2() { + return regeneratorRuntime.wrap(function _callee2$(_context2) { + for (;;) + switch ((_context2.prev = _context2.next)) { + case 0: + return _context2.abrupt('return', api.setShortcuts(api.getDefaultShortcuts())); + case 1: + case 'end': + return _context2.stop(); + } + }, _callee2); + }), + )(); + }, + setShortcut: function setShortcut(action, value) { + return shortcuts_asyncToGenerator( + regeneratorRuntime.mark(function _callee3() { + var shortcuts; + return regeneratorRuntime.wrap(function _callee3$(_context3) { + for (;;) + switch ((_context3.prev = _context3.next)) { + case 0: + return ( + (shortcuts = api.getShortcutKeys()), + (_context3.next = 3), + api.setShortcuts( + Object.assign({}, shortcuts, shortcuts_defineProperty({}, action, value)), + ) + ); + case 3: + return _context3.abrupt('return', value); + case 4: + case 'end': + return _context3.stop(); + } + }, _callee3); + }), + )(); + }, + setAddonShortcut: function setAddonShortcut(addon, shortcut) { + return shortcuts_asyncToGenerator( + regeneratorRuntime.mark(function _callee4() { + var shortcuts; + return regeneratorRuntime.wrap(function _callee4$(_context4) { + for (;;) + switch ((_context4.prev = _context4.next)) { + case 0: + return ( + (shortcuts = api.getShortcutKeys()), + (_context4.next = 3), + api.setShortcuts( + Object.assign( + {}, + shortcuts, + shortcuts_defineProperty( + {}, + ''.concat(addon, '-').concat(shortcut.actionName), + shortcut.defaultShortcut, + ), + ), + ) + ); + case 3: + return ( + (addonsShortcuts[''.concat(addon, '-').concat(shortcut.actionName)] = shortcut), + _context4.abrupt('return', shortcut) + ); + case 5: + case 'end': + return _context4.stop(); + } + }, _callee4); + }), + )(); + }, + restoreDefaultShortcut: function restoreDefaultShortcut(action) { + return shortcuts_asyncToGenerator( + regeneratorRuntime.mark(function _callee5() { + var defaultShortcut; + return regeneratorRuntime.wrap(function _callee5$(_context5) { + for (;;) + switch ((_context5.prev = _context5.next)) { + case 0: + return ( + (defaultShortcut = api.getDefaultShortcuts()[action]), + _context5.abrupt('return', api.setShortcut(action, defaultShortcut)) + ); + case 2: + case 'end': + return _context5.stop(); + } + }, _callee5); + }), + )(); + }, + handleKeydownEvent: function handleKeydownEvent(event) { + var shortcut = (0, lib_shortcut.t3)(event), + shortcuts = api.getShortcutKeys(), + matchedFeature = keys(shortcuts).find(function (feature) { + return (0, lib_shortcut.om)(shortcut, shortcuts[feature]); + }); + matchedFeature && + (null != event && event.preventDefault && event.preventDefault(), + api.handleShortcutFeature(matchedFeature)); + }, + handleShortcutFeature: function handleShortcutFeature(feature) { + var _store$getState = store.getState(), + _store$getState$layou = _store$getState.layout, + isFullscreen = _store$getState$layou.isFullscreen, + showNav = _store$getState$layou.showNav, + showPanel = _store$getState$layou.showPanel; + if (_store$getState.ui.enableShortcuts) + switch (feature) { + case 'escape': + isFullscreen ? fullAPI.toggleFullscreen() : showNav || fullAPI.toggleNav(); + break; + case 'focusNav': + isFullscreen && fullAPI.toggleFullscreen(), + showNav || fullAPI.toggleNav(), + fullAPI.focusOnUIElement(focusableUIElements.storyListMenu); + break; + case 'search': + isFullscreen && fullAPI.toggleFullscreen(), + showNav || fullAPI.toggleNav(), + setTimeout(function () { + fullAPI.focusOnUIElement(focusableUIElements.storySearchField, !0); + }, 0); + break; + case 'focusIframe': + var element = shortcuts_document.getElementById('storybook-preview-iframe'); + if (element) + try { + element.contentWindow.focus(); + } catch (e) {} + break; + case 'focusPanel': + isFullscreen && fullAPI.toggleFullscreen(), + showPanel || fullAPI.togglePanel(), + fullAPI.focusOnUIElement(focusableUIElements.storyPanelRoot); + break; + case 'nextStory': + fullAPI.jumpToStory(1); + break; + case 'prevStory': + fullAPI.jumpToStory(-1); + break; + case 'nextComponent': + fullAPI.jumpToComponent(1); + break; + case 'prevComponent': + fullAPI.jumpToComponent(-1); + break; + case 'fullScreen': + fullAPI.toggleFullscreen(); + break; + case 'togglePanel': + isFullscreen && (fullAPI.toggleFullscreen(), fullAPI.resetLayout()), fullAPI.togglePanel(); + break; + case 'toggleNav': + isFullscreen && (fullAPI.toggleFullscreen(), fullAPI.resetLayout()), fullAPI.toggleNav(); + break; + case 'toolbar': + fullAPI.toggleToolbar(); + break; + case 'panelPosition': + isFullscreen && fullAPI.toggleFullscreen(), + showPanel || fullAPI.togglePanel(), + fullAPI.togglePanelPosition(); + break; + case 'aboutPage': + fullAPI.navigate('/settings/about'); + break; + case 'shortcutsPage': + fullAPI.navigate('/settings/shortcuts'); + break; + case 'collapseAll': + fullAPI.collapseAll(); + break; + case 'expandAll': + fullAPI.expandAll(); + break; + default: + addonsShortcuts[feature].action(); + } + }, + }, + _store$getState2$shor = store.getState().shortcuts, + persistedShortcuts = void 0 === _store$getState2$shor ? defaultShortcuts : _store$getState2$shor, + state = { + shortcuts: keys(defaultShortcuts).reduce(function (acc, key) { + return Object.assign( + {}, + acc, + shortcuts_defineProperty({}, key, persistedShortcuts[key] || defaultShortcuts[key]), + ); + }, defaultShortcuts), + }; + return { + api, + state, + init: function initModule() { + shortcuts_document.addEventListener('keydown', function (event) { + (function focusInInput(event) { + return ( + /input|textarea/i.test(event.target.tagName) || + null !== event.target.getAttribute('contenteditable') + ); + })(event) || fullAPI.handleKeydownEvent(event); + }), + fullAPI.on(esm.PREVIEW_KEYDOWN, function (data) { + fullAPI.handleKeydownEvent(data.event); + }); + }, + }; + }, + utils = (__webpack_require__(16781), __webpack_require__(94098)); + function url_toConsumableArray(arr) { + return ( + (function url_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return url_arrayLikeToArray(arr); + })(arr) || + (function url_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + url_unsupportedIterableToArray(arr) || + (function url_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function url_slicedToArray(arr, i) { + return ( + (function url_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function url_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + url_unsupportedIterableToArray(arr, i) || + (function url_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function url_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return url_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? url_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function url_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function url_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + function url_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function url_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var prevParams, + globalWindow = window_default().window, + parseBoolean = function parseBoolean(value) { + return 'true' === value || '1' === value || ('false' !== value && '0' !== value && void 0); + }, + initialUrlSupport = function initialUrlSupport(_ref) { + var _ref$state = _ref.state, + location = _ref$state.location, + path = _ref$state.path, + viewMode = _ref$state.viewMode, + storyIdFromUrl = _ref$state.storyId, + singleStory = _ref.singleStory, + _queryFromLocation = (0, utils.B5)(location), + full = _queryFromLocation.full, + panel = _queryFromLocation.panel, + nav = _queryFromLocation.nav, + shortcuts = _queryFromLocation.shortcuts, + addonPanel = _queryFromLocation.addonPanel, + addons = _queryFromLocation.addons, + panelRight = _queryFromLocation.panelRight, + stories = _queryFromLocation.stories, + selectedKind = _queryFromLocation.selectedKind, + selectedStory = _queryFromLocation.selectedStory, + otherParams = + (_queryFromLocation.path, + url_objectWithoutProperties(_queryFromLocation, [ + 'full', + 'panel', + 'nav', + 'shortcuts', + 'addonPanel', + 'addons', + 'panelRight', + 'stories', + 'selectedKind', + 'selectedStory', + 'path', + ])), + layout = { + isFullscreen: parseBoolean(full), + showNav: !singleStory && parseBoolean(nav), + showPanel: parseBoolean(panel), + panelPosition: ['right', 'bottom'].includes(panel) ? panel : void 0, + }, + ui = { enableShortcuts: parseBoolean(shortcuts) }, + selectedPanel = addonPanel || void 0; + '0' === addons && + (client_logger_dist_esm.IH.warn( + (0, ts_dedent_esm.C)( + url_templateObject || + (url_templateObject = url_taggedTemplateLiteral([ + "\n The 'addons' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=false' instead.\n\n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params\n ", + ])), + ), + ), + (layout.showPanel = !1)), + '1' === panelRight && + (client_logger_dist_esm.IH.warn( + (0, ts_dedent_esm.C)( + url_templateObject2 || + (url_templateObject2 = url_taggedTemplateLiteral([ + "\n The 'panelRight' query param is deprecated and will be removed in Storybook 7.0. Use 'panel=right' instead.\n\n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params\n ", + ])), + ), + ), + (layout.panelPosition = 'right')), + '0' === stories && + (client_logger_dist_esm.IH.warn( + (0, ts_dedent_esm.C)( + url_templateObject3 || + (url_templateObject3 = url_taggedTemplateLiteral([ + "\n The 'stories' query param is deprecated and will be removed in Storybook 7.0. Use 'nav=false' instead.\n\n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params\n ", + ])), + ), + ), + (layout.showNav = !1)); + var storyId = storyIdFromUrl; + !storyId && + selectedKind && + (client_logger_dist_esm.IH.warn( + (0, ts_dedent_esm.C)( + _templateObject4 || + (_templateObject4 = url_taggedTemplateLiteral([ + "\n The 'selectedKind' and 'selectedStory' query params are deprecated and will be removed in Storybook 7.0. Use 'path' instead.\n\n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-layout-url-params\n ", + ])), + ), + ), + (storyId = selectedStory ? (0, dist.toId)(selectedKind, selectedStory) : (0, dist.sanitize)(selectedKind))); + var customQueryParams = fast_deep_equal_default()(prevParams, otherParams) ? prevParams : otherParams; + return ( + (prevParams = customQueryParams), + { viewMode, layout, ui, selectedPanel, location, path, customQueryParams, storyId } + ); + }, + url_init = function init(_ref2) { + var store = _ref2.store, + navigate = _ref2.navigate, + state = _ref2.state, + provider = _ref2.provider, + fullAPI = _ref2.fullAPI, + rest = url_objectWithoutProperties(_ref2, ['store', 'navigate', 'state', 'provider', 'fullAPI']), + navigateTo = function navigateTo(path) { + var queryParams = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + params = Object.entries(queryParams) + .filter(function (_ref3) { + return url_slicedToArray(_ref3, 2)[1]; + }) + .sort(function (_ref5, _ref6) { + return url_slicedToArray(_ref5, 1)[0] < url_slicedToArray(_ref6, 1)[0] ? -1 : 1; + }) + .map(function (_ref9) { + var _ref10 = url_slicedToArray(_ref9, 2), + k = _ref10[0], + v = _ref10[1]; + return ''.concat(k, '=').concat(v); + }), + to = [path].concat(url_toConsumableArray(params)).join('&'); + return navigate(to, options); + }, + api = { + getQueryParam: function getQueryParam(key) { + var customQueryParams = store.getState().customQueryParams; + return customQueryParams ? customQueryParams[key] : void 0; + }, + getUrlState: function getUrlState() { + var _store$getState2 = store.getState(); + return { + path: _store$getState2.path, + queryParams: _store$getState2.customQueryParams, + storyId: _store$getState2.storyId, + url: _store$getState2.url, + viewMode: _store$getState2.viewMode, + }; + }, + setQueryParams: function setQueryParams(input) { + var customQueryParams = store.getState().customQueryParams, + update = Object.assign( + {}, + customQueryParams, + Object.entries(input).reduce(function (acc, _ref11) { + var _ref12 = url_slicedToArray(_ref11, 2), + key = _ref12[0], + value = _ref12[1]; + return null !== value && (acc[key] = value), acc; + }, {}), + ); + fast_deep_equal_default()(customQueryParams, update) || + (store.setState({ customQueryParams: update }), fullAPI.emit(esm.UPDATE_QUERY_PARAMS, update)); + }, + navigateUrl: function navigateUrl(url, options) { + navigate(url, Object.assign({}, options, { plain: !0 })); + }, + }; + return { + api, + state: initialUrlSupport(Object.assign({ store, navigate, state, provider, fullAPI }, rest)), + init: function initModule() { + var handleOrId, + updateArgsParam = function updateArgsParam() { + var _fullAPI$getUrlState = fullAPI.getUrlState(), + path = _fullAPI$getUrlState.path, + queryParams = _fullAPI$getUrlState.queryParams; + if ('story' === _fullAPI$getUrlState.viewMode) { + var currentStory = fullAPI.getCurrentStoryData(); + if (isStory(currentStory)) { + var args = currentStory.args, + initialArgs = currentStory.initialArgs, + argsString = (0, utils.sy)(initialArgs, args); + navigateTo(path, Object.assign({}, queryParams, { args: argsString }), { replace: !0 }), + api.setQueryParams({ args: argsString }); + } + } + }; + fullAPI.on(esm.SET_CURRENT_STORY, function () { + return updateArgsParam(); + }), + fullAPI.on(esm.STORY_ARGS_UPDATED, function () { + 'requestIdleCallback' in globalWindow + ? (handleOrId && globalWindow.cancelIdleCallback(handleOrId), + (handleOrId = globalWindow.requestIdleCallback(updateArgsParam, { timeout: 1e3 }))) + : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100)); + }), + fullAPI.on(esm.GLOBALS_UPDATED, function (_ref13) { + var globals = _ref13.globals, + initialGlobals = _ref13.initialGlobals, + _fullAPI$getUrlState2 = fullAPI.getUrlState(), + path = _fullAPI$getUrlState2.path, + queryParams = _fullAPI$getUrlState2.queryParams, + globalsString = (0, utils.sy)(initialGlobals, globals); + navigateTo(path, Object.assign({}, queryParams, { globals: globalsString }), { replace: !0 }), + api.setQueryParams({ globals: globalsString }); + }), + fullAPI.on(esm.NAVIGATE_URL, function (url, options) { + fullAPI.navigateUrl(url, options); + }), + fullAPI.showReleaseNotesOnLaunch() && navigate('/settings/release-notes'); + }, + }; + }, + semver = __webpack_require__(33079), + semver_default = __webpack_require__.n(semver); + function versions_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + var VERSIONCHECK = window_default().VERSIONCHECK, + getVersionCheckData = memoizerific_default()(1)(function () { + try { + return Object.assign({}, JSON.parse(VERSIONCHECK).data || {}); + } catch (e) { + return {}; + } + }), + versions_init = function init(_ref) { + var store = _ref.store, + mode = _ref.mode, + fullAPI = _ref.fullAPI, + dismissedVersionNotification = store.getState().dismissedVersionNotification, + state = { + versions: Object.assign({ current: { version: '6.4.19' } }, getVersionCheckData()), + dismissedVersionNotification, + }, + api = { + getCurrentVersion: function getCurrentVersion() { + return store.getState().versions.current; + }, + getLatestVersion: function getLatestVersion() { + var _store$getState3$vers = store.getState().versions, + latest = _store$getState3$vers.latest, + next = _store$getState3$vers.next, + current = _store$getState3$vers.current; + return current && semver_default().prerelease(current.version) && next + ? latest && semver_default().gt(latest.version, next.version) + ? latest + : next + : latest; + }, + versionUpdateAvailable: function versionUpdateAvailable() { + var latest = api.getLatestVersion(), + current = api.getCurrentVersion(); + if (latest) { + if (!latest.version) return !0; + if (!current.version) return !0; + var actualCurrent = !!semver_default().prerelease(current.version) + ? '' + .concat(semver_default().major(current.version), '.') + .concat(semver_default().minor(current.version), '.') + .concat(semver_default().patch(current.version)) + : current.version, + diff = semver_default().diff(actualCurrent, latest.version); + return ( + semver_default().gt(latest.version, actualCurrent) && 'patch' !== diff && !diff.includes('pre') + ); + } + return !1; + }, + }, + initModule = (function () { + var _ref2 = (function versions_asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + versions_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + versions_asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + })( + regeneratorRuntime.mark(function _callee() { + var _store$getState4, + _store$getState4$vers, + versions, + _getVersionCheckData, + latest, + next, + latestVersion, + diff; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return ( + (_store$getState4 = store.getState()), + (_store$getState4$vers = _store$getState4.versions), + (versions = void 0 === _store$getState4$vers ? {} : _store$getState4$vers), + (_getVersionCheckData = getVersionCheckData()), + (latest = _getVersionCheckData.latest), + (next = _getVersionCheckData.next), + (_context.next = 4), + store.setState({ versions: Object.assign({}, versions, { latest, next }) }) + ); + case 4: + api.versionUpdateAvailable() && + ((latestVersion = api.getLatestVersion().version), + (diff = semver_default().diff(versions.current.version, versions.latest.version)), + latestVersion === dismissedVersionNotification || + 'patch' === diff || + semver_default().prerelease(latestVersion) || + 'production' === mode || + fullAPI.addNotification({ + id: 'update', + link: '/settings/about', + content: { + headline: 'Storybook '.concat(latestVersion, ' is available!'), + subHeadline: 'Your current version is: '.concat(versions.current.version), + }, + icon: { name: 'book' }, + onClear: function onClear() { + store.setState( + { dismissedVersionNotification: latestVersion }, + { persistence: 'permanent' }, + ); + }, + })); + case 5: + case 'end': + return _context.stop(); + } + }, _callee); + }), + ); + return function initModule() { + return _ref2.apply(this, arguments); + }; + })(); + return { init: initModule, state, api }; + }, + globals_init = function init(_ref) { + var store = _ref.store, + fullAPI = _ref.fullAPI, + api = { + getGlobals: function getGlobals() { + return store.getState().globals; + }, + getGlobalTypes: function getGlobalTypes() { + return store.getState().globalTypes; + }, + updateGlobals: function updateGlobals(newGlobals) { + fullAPI.emit(esm.UPDATE_GLOBALS, { + globals: newGlobals, + options: { target: 'storybook-preview-iframe' }, + }); + }, + }; + return { + api, + state: { globals: {}, globalTypes: {} }, + init: function initModule() { + fullAPI.on(esm.GLOBALS_UPDATED, function handleGlobalsUpdated(_ref2) { + var globals = _ref2.globals; + getEventMetadata(this, fullAPI).ref + ? client_logger_dist_esm.kg.warn( + 'received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.', + ) + : (function updateGlobals(globals) { + var _store$getState, + currentGlobals = + null === (_store$getState = store.getState()) || void 0 === _store$getState + ? void 0 + : _store$getState.globals; + fast_deep_equal_default()(globals, currentGlobals) || store.setState({ globals }); + })(globals); + }), + fullAPI.on(esm.SET_GLOBALS, function handleSetStories(_ref3) { + var _store$getState2, + globals = _ref3.globals, + globalTypes = _ref3.globalTypes, + ref = getEventMetadata(this, fullAPI).ref, + currentGlobals = + null === (_store$getState2 = store.getState()) || void 0 === _store$getState2 + ? void 0 + : _store$getState2.globals; + ref + ? Object.keys(globals).length > 0 && + client_logger_dist_esm.kg.warn( + 'received globals from a non-local ref. This is not currently supported.', + ) + : store.setState({ globals, globalTypes }), + currentGlobals && + 0 !== Object.keys(currentGlobals).length && + !fast_deep_equal_default()(globals, currentGlobals) && + api.updateGlobals(currentGlobals); + }); + }, + }; + }; + function esm_typeof(obj) { + return ( + (esm_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + esm_typeof(obj) + ); + } + function esm_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function esm_slicedToArray(arr, i) { + return ( + (function esm_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function esm_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + esm_unsupportedIterableToArray(arr, i) || + (function esm_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function esm_toConsumableArray(arr) { + return ( + (function esm_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return esm_arrayLikeToArray(arr); + })(arr) || + (function esm_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + esm_unsupportedIterableToArray(arr) || + (function esm_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function esm_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return esm_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? esm_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function esm_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function esm_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== esm_typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var esm_ActiveTabs = ActiveTabs, + ManagerContext = (function createContext(_ref) { + var api = _ref.api, + state = _ref.state; + return (0, react.createContext)({ api, state }); + })({ api: void 0, state: initial_state({}) }), + combineParameters = function combineParameters() { + for (var _len = arguments.length, parameterSets = new Array(_len), _key = 0; _key < _len; _key++) + parameterSets[_key] = arguments[_key]; + return mergeWith_default().apply( + void 0, + [{}].concat(parameterSets, [ + function (objValue, srcValue) { + if (Array.isArray(srcValue)) return srcValue; + }, + ]), + ); + }, + ManagerProvider = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ManagerProvider, _Component); + var _super = _createSuper(ManagerProvider); + function ManagerProvider(props) { + var _this; + !(function esm_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, ManagerProvider), + ((_this = _super.call(this, props)).api = {}), + (_this.modules = void 0), + (_this.initModules = function () { + _this.modules.forEach(function (_ref) { + var init = _ref.init; + init && init(); + }); + }); + var location = props.location, + path = props.path, + refId = props.refId, + _props$viewMode = props.viewMode, + viewMode = void 0 === _props$viewMode ? (props.docsMode ? 'docs' : 'story') : _props$viewMode, + singleStory = props.singleStory, + storyId = props.storyId, + docsMode = props.docsMode, + navigate = props.navigate, + store = new Store({ + getState: function getState() { + return _this.state; + }, + setState: function setState(stateChange, callback) { + return _this.setState(stateChange, callback); + }, + }), + routeData = { location, path, viewMode, singleStory, storyId, refId }; + _this.state = store.getInitialState( + initial_state( + Object.assign( + {}, + routeData, + docsMode ? { layout: { isToolshown: !1, showPanel: !1 }, ui: { docsMode: !0 } } : null, + ), + ), + ); + var apiData = { navigate, store, provider: props.provider }; + _this.modules = [ + provider_namespaceObject, + channel_namespaceObject, + addons_namespaceObject, + layout_namespaceObject, + notifications_namespaceObject, + settings_namespaceObject, + release_notes_namespaceObject, + shortcuts_namespaceObject, + modules_stories_namespaceObject, + refs_namespaceObject, + globals_namespaceObject, + url_namespaceObject, + versions_namespaceObject, + ].map(function (m) { + return m.init(Object.assign({}, routeData, apiData, { state: _this.state, fullAPI: _this.api })); + }); + var state = initial_state.apply( + void 0, + [_this.state].concat( + esm_toConsumableArray( + _this.modules.map(function (m) { + return m.state; + }), + ), + ), + ), + api = Object.assign.apply( + Object, + [_this.api, { navigate }].concat( + esm_toConsumableArray( + _this.modules.map(function (m) { + return m.api; + }), + ), + ), + ); + return (_this.state = state), (_this.api = api), _this; + } + return ( + (function esm_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && esm_defineProperties(Constructor.prototype, protoProps), + staticProps && esm_defineProperties(Constructor, staticProps), + Constructor + ); + })(ManagerProvider, [ + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps, nextState) { + var prevState = this.state, + prevProps = this.props; + return prevState !== nextState || prevProps.path !== nextProps.path; + }, + }, + { + key: 'render', + value: function render() { + var children = this.props.children, + value = { state: this.state, api: this.api }; + return react.createElement( + EffectOnMount, + { effect: this.initModules }, + react.createElement( + ManagerContext.Provider, + { value }, + react.createElement(ManagerConsumer, null, children), + ), + ); + }, + }, + ]), + ManagerProvider + ); + })(react.Component); + (ManagerProvider.displayName = 'ManagerProvider'), + (ManagerProvider.displayName = 'Manager'), + (ManagerProvider.getDerivedStateFromProps = function (props, state) { + return state.path !== props.path + ? Object.assign({}, state, { + location: props.location, + path: props.path, + refId: props.refId, + viewMode: 'story' === (props.docsMode && props.viewMode) ? 'docs' : props.viewMode, + storyId: props.storyId, + }) + : null; + }); + var EffectOnMount = function EffectOnMount(_ref2) { + var children = _ref2.children, + effect = _ref2.effect; + return react.useEffect(effect, []), children; + }, + defaultFilter = function defaultFilter(c) { + return c; + }; + function ManagerConsumer(_ref3) { + var _ref3$filter = _ref3.filter, + filter = void 0 === _ref3$filter ? defaultFilter : _ref3$filter, + children = _ref3.children, + c = (0, react.useContext)(ManagerContext), + renderer = (0, react.useRef)(children), + filterer = (0, react.useRef)(filter); + if ('function' != typeof renderer.current) return react.createElement(react.Fragment, null, renderer.current); + var data = filterer.current(c), + l = (0, react.useMemo)( + function () { + return esm_toConsumableArray( + Object.entries(data).reduce(function (acc, keyval) { + return acc.concat(keyval); + }, []), + ); + }, + [c.state], + ); + return (0, react.useMemo)(function () { + var Child = renderer.current; + return react.createElement(Child, data); + }, l); + } + function useStorybookState() { + return (0, react.useContext)(ManagerContext).state; + } + function useStorybookApi() { + return (0, react.useContext)(ManagerContext).api; + } + function orDefault(fromStore, defaultState) { + return void 0 === fromStore ? defaultState : fromStore; + } + var useChannel = function useChannel(eventMap) { + var deps = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [], + api = useStorybookApi(); + return ( + (0, react.useEffect)(function () { + return ( + Object.entries(eventMap).forEach(function (_ref4) { + var _ref5 = esm_slicedToArray(_ref4, 2), + type = _ref5[0], + listener = _ref5[1]; + return api.on(type, listener); + }), + function () { + Object.entries(eventMap).forEach(function (_ref6) { + var _ref7 = esm_slicedToArray(_ref6, 2), + type = _ref7[0], + listener = _ref7[1]; + return api.off(type, listener); + }); + } + ); + }, deps), + api.emit + ); + }; + function useParameter(parameterKey, defaultValue) { + return orDefault(useStorybookApi().getCurrentParameter(parameterKey), defaultValue); + } + var addonStateCache = {}; + function useAddonState(addonId, defaultState) { + return (function useSharedState(stateId, defaultState) { + var api = useStorybookApi(), + state = orDefault( + api.getAddonState(stateId), + addonStateCache[stateId] ? addonStateCache[stateId] : defaultState, + ), + setState = function setState(s, options) { + addonStateCache[stateId] && (addonStateCache[stateId] = s), api.setAddonState(stateId, s, options); + }, + allListeners = (0, react.useMemo)( + function () { + var _stateChangeHandlers, + _stateInitializationH, + stateChangeHandlers = + (esm_defineProperty( + (_stateChangeHandlers = {}), + ''.concat(esm.SHARED_STATE_CHANGED, '-client-').concat(stateId), + function client(s) { + return setState(s); + }, + ), + esm_defineProperty( + _stateChangeHandlers, + ''.concat(esm.SHARED_STATE_SET, '-client-').concat(stateId), + function client(s) { + return setState(s); + }, + ), + _stateChangeHandlers), + stateInitializationHandlers = + (esm_defineProperty((_stateInitializationH = {}), esm.SET_STORIES, function () { + var currentState = api.getAddonState(stateId); + currentState + ? ((addonStateCache[stateId] = currentState), + api.emit(''.concat(esm.SHARED_STATE_SET, '-manager-').concat(stateId), currentState)) + : addonStateCache[stateId] + ? (setState(addonStateCache[stateId]), + api.emit( + ''.concat(esm.SHARED_STATE_SET, '-manager-').concat(stateId), + addonStateCache[stateId], + )) + : void 0 !== defaultState && + (setState(defaultState), + (addonStateCache[stateId] = defaultState), + api.emit(''.concat(esm.SHARED_STATE_SET, '-manager-').concat(stateId), defaultState)); + }), + esm_defineProperty(_stateInitializationH, esm.STORY_CHANGED, function () { + var currentState = api.getAddonState(stateId); + void 0 !== currentState && + api.emit(''.concat(esm.SHARED_STATE_SET, '-manager-').concat(stateId), currentState); + }), + _stateInitializationH); + return Object.assign({}, stateChangeHandlers, stateInitializationHandlers); + }, + [stateId], + ), + emit = useChannel(allListeners); + return [ + state, + function (newStateOrMerger, options) { + setState(newStateOrMerger, options), + emit(''.concat(esm.SHARED_STATE_CHANGED, '-manager-').concat(stateId), newStateOrMerger); + }, + ]; + })(addonId, defaultState); + } + function useArgs() { + var _useStorybookApi = useStorybookApi(), + getCurrentStoryData = _useStorybookApi.getCurrentStoryData, + updateStoryArgs = _useStorybookApi.updateStoryArgs, + resetStoryArgs = _useStorybookApi.resetStoryArgs, + data = getCurrentStoryData(); + return [ + isStory(data) ? data.args : {}, + (0, react.useCallback)( + function (newArgs) { + return updateStoryArgs(data, newArgs); + }, + [data, updateStoryArgs], + ), + (0, react.useCallback)( + function (argNames) { + return resetStoryArgs(data, argNames); + }, + [data, resetStoryArgs], + ), + ]; + } + function useGlobals() { + var api = useStorybookApi(); + return [api.getGlobals(), api.updateGlobals]; + } + function useGlobalTypes() { + return useStorybookApi().getGlobalTypes(); + } + function useArgTypes() { + var _useCurrentStory; + return ( + (null === + (_useCurrentStory = (function useCurrentStory() { + return (0, useStorybookApi().getCurrentStoryData)(); + })()) || void 0 === _useCurrentStory + ? void 0 + : _useCurrentStory.argTypes) || {} + ); + } + }, + 49971: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + t3: () => eventToShortcut, + om: () => shortcutMatchesShortcut, + vX: () => shortcutToHumanString, + }); + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(39529), + __webpack_require__(16781), + __webpack_require__(49228), + __webpack_require__(43450); + var global__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35048), + navigator = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_6__)().navigator, + isMacLike = function isMacLike() { + return !(!navigator || !navigator.platform) && !!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i); + }, + eventToShortcut = function eventToShortcut(e) { + if (['Meta', 'Alt', 'Control', 'Shift'].includes(e.key)) return null; + var keys = []; + return ( + e.altKey && keys.push('alt'), + e.ctrlKey && keys.push('control'), + e.metaKey && keys.push('meta'), + e.shiftKey && keys.push('shift'), + e.key && 1 === e.key.length && ' ' !== e.key && keys.push(e.key.toUpperCase()), + ' ' === e.key && keys.push('space'), + 'Escape' === e.key && keys.push('escape'), + 'ArrowRight' === e.key && keys.push('ArrowRight'), + 'ArrowDown' === e.key && keys.push('ArrowDown'), + 'ArrowUp' === e.key && keys.push('ArrowUp'), + 'ArrowLeft' === e.key && keys.push('ArrowLeft'), + keys.length > 0 ? keys : null + ); + }, + shortcutMatchesShortcut = function shortcutMatchesShortcut(inputShortcut, shortcut) { + return ( + !(!inputShortcut || !shortcut) && + ('shift/' === inputShortcut.join('') && inputShortcut.shift(), + inputShortcut.length === shortcut.length && + !inputShortcut.find(function (key, i) { + return key !== shortcut[i]; + })) + ); + }, + keyToSymbol = function keyToSymbol(key) { + return 'alt' === key + ? (function optionOrAltSymbol() { + return isMacLike() ? '⌥' : 'alt'; + })() + : 'control' === key + ? '⌃' + : 'meta' === key + ? '⌘' + : 'shift' === key + ? '⇧​' + : 'Enter' === key || 'Backspace' === key || 'Esc' === key || 'escape' === key + ? '' + : ' ' === key + ? 'SPACE' + : 'ArrowUp' === key + ? '↑' + : 'ArrowDown' === key + ? '↓' + : 'ArrowLeft' === key + ? '←' + : 'ArrowRight' === key + ? '→' + : key.toUpperCase(); + }, + shortcutToHumanString = function shortcutToHumanString(shortcut) { + return shortcut.map(keyToSymbol).join(' '); + }; + }, + 74844: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { $: () => Channel, Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + __webpack_require__(22144), + __webpack_require__(32501), + __webpack_require__(58188), + __webpack_require__(88233), + __webpack_require__(46106), + __webpack_require__(34769), + __webpack_require__(95342), + __webpack_require__(1939); + var _templateObject, + util_deprecate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5803), + util_deprecate__WEBPACK_IMPORTED_MODULE_8___default = __webpack_require__.n( + util_deprecate__WEBPACK_IMPORTED_MODULE_8__, + ), + ts_dedent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(51893); + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var generateRandomId = function generateRandomId() { + return Math.random().toString(16).slice(2); + }, + Channel = (function () { + function Channel() { + var _this = this, + _ref = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, + transport = _ref.transport, + _ref$async = _ref.async, + async = void 0 !== _ref$async && _ref$async; + _classCallCheck(this, Channel), + (this.isAsync = void 0), + (this.sender = generateRandomId()), + (this.events = {}), + (this.data = {}), + (this.transport = void 0), + (this.addPeerListener = util_deprecate__WEBPACK_IMPORTED_MODULE_8___default()(function ( + eventName, + listener, + ) { + _this.addListener(eventName, listener); + }, + (0, ts_dedent__WEBPACK_IMPORTED_MODULE_9__.C)(_templateObject || (_templateObject = _taggedTemplateLiteral(['\n channel.addPeerListener is deprecated\n ']))))), + (this.isAsync = async), + transport && + ((this.transport = transport), + this.transport.setHandler(function (event) { + return _this.handleEvent(event); + })); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(Channel, [ + { + key: 'hasTransport', + get: function get() { + return !!this.transport; + }, + }, + { + key: 'addListener', + value: function addListener(eventName, listener) { + (this.events[eventName] = this.events[eventName] || []), this.events[eventName].push(listener); + }, + }, + { + key: 'emit', + value: function emit(eventName) { + for ( + var _this2 = this, _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; + _key < _len; + _key++ + ) + args[_key - 1] = arguments[_key]; + var event = { type: eventName, args, from: this.sender }, + options = {}; + args.length >= 1 && args[0] && args[0].options && (options = args[0].options); + var handler = function handler() { + _this2.transport && _this2.transport.send(event, options), _this2.handleEvent(event); + }; + this.isAsync ? setImmediate(handler) : handler(); + }, + }, + { + key: 'last', + value: function last(eventName) { + return this.data[eventName]; + }, + }, + { + key: 'eventNames', + value: function eventNames() { + return Object.keys(this.events); + }, + }, + { + key: 'listenerCount', + value: function listenerCount(eventName) { + var listeners = this.listeners(eventName); + return listeners ? listeners.length : 0; + }, + }, + { + key: 'listeners', + value: function listeners(eventName) { + var listeners = this.events[eventName]; + return listeners || void 0; + }, + }, + { + key: 'once', + value: function once(eventName, listener) { + var onceListener = this.onceListener(eventName, listener); + this.addListener(eventName, onceListener); + }, + }, + { + key: 'removeAllListeners', + value: function removeAllListeners(eventName) { + eventName ? this.events[eventName] && delete this.events[eventName] : (this.events = {}); + }, + }, + { + key: 'removeListener', + value: function removeListener(eventName, listener) { + var listeners = this.listeners(eventName); + listeners && + (this.events[eventName] = listeners.filter(function (l) { + return l !== listener; + })); + }, + }, + { + key: 'on', + value: function on(eventName, listener) { + this.addListener(eventName, listener); + }, + }, + { + key: 'off', + value: function off(eventName, listener) { + this.removeListener(eventName, listener); + }, + }, + { + key: 'handleEvent', + value: function handleEvent(event) { + var listeners = this.listeners(event.type); + listeners && + listeners.length && + listeners.forEach(function (fn) { + fn.apply(event, event.args); + }), + (this.data[event.type] = event.args); + }, + }, + { + key: 'onceListener', + value: function onceListener(eventName, listener) { + var _this3 = this, + onceListener = function onceListener() { + return _this3.removeListener(eventName, onceListener), listener.apply(void 0, arguments); + }; + return onceListener; + }, + }, + ]), + Channel + ); + })(); + const __WEBPACK_DEFAULT_EXPORT__ = Channel; + }, + 87537: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { kg: () => logger, IH: () => once, IC: () => pretty }); + __webpack_require__(18178), + __webpack_require__(93244), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(85940), + __webpack_require__(77950); + var global__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(35048), + global__WEBPACK_IMPORTED_MODULE_8___default = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__), + LOGLEVEL = global__WEBPACK_IMPORTED_MODULE_8___default().LOGLEVEL, + console = global__WEBPACK_IMPORTED_MODULE_8___default().console, + levels = { trace: 1, debug: 2, info: 3, warn: 4, error: 5, silent: 10 }, + currentLogLevelNumber = levels[LOGLEVEL] || levels.info, + logger = { + trace: function trace(message) { + for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) + rest[_key - 1] = arguments[_key]; + return currentLogLevelNumber <= levels.trace && console.trace.apply(console, [message].concat(rest)); + }, + debug: function debug(message) { + for ( + var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) + rest[_key2 - 1] = arguments[_key2]; + return currentLogLevelNumber <= levels.debug && console.debug.apply(console, [message].concat(rest)); + }, + info: function info(message) { + for ( + var _len3 = arguments.length, rest = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; + _key3 < _len3; + _key3++ + ) + rest[_key3 - 1] = arguments[_key3]; + return currentLogLevelNumber <= levels.info && console.info.apply(console, [message].concat(rest)); + }, + warn: function warn(message) { + for ( + var _len4 = arguments.length, rest = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; + _key4 < _len4; + _key4++ + ) + rest[_key4 - 1] = arguments[_key4]; + return currentLogLevelNumber <= levels.warn && console.warn.apply(console, [message].concat(rest)); + }, + error: function error(message) { + for ( + var _len5 = arguments.length, rest = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; + _key5 < _len5; + _key5++ + ) + rest[_key5 - 1] = arguments[_key5]; + return currentLogLevelNumber <= levels.error && console.error.apply(console, [message].concat(rest)); + }, + log: function log(message) { + for ( + var _len6 = arguments.length, rest = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; + _key6 < _len6; + _key6++ + ) + rest[_key6 - 1] = arguments[_key6]; + return currentLogLevelNumber < levels.silent && console.log.apply(console, [message].concat(rest)); + }, + }, + logged = new Set(), + once = function once(type) { + return function (message) { + if (!logged.has(message)) { + logged.add(message); + for ( + var _len7 = arguments.length, rest = new Array(_len7 > 1 ? _len7 - 1 : 0), _key7 = 1; + _key7 < _len7; + _key7++ + ) + rest[_key7 - 1] = arguments[_key7]; + return logger[type].apply(logger, [message].concat(rest)); + } + }; + }; + (once.clear = function () { + return logged.clear(); + }), + (once.trace = once('trace')), + (once.debug = once('debug')), + (once.info = once('info')), + (once.warn = once('warn')), + (once.error = once('error')), + (once.log = once('log')); + var pretty = function pretty(type) { + return function () { + for (var argArray = [], _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) + args[_key8] = arguments[_key8]; + if (args.length) { + var reResultArray, + startTagRe = //gi, + endTagRe = /<\/span>/gi; + for ( + argArray.push(args[0].replace(startTagRe, '%c').replace(endTagRe, '%c')); + (reResultArray = startTagRe.exec(args[0])); + + ) + argArray.push(reResultArray[2]), argArray.push(''); + for (var j = 1; j < args.length; j++) argArray.push(args[j]); + } + logger[type].apply(logger, argArray); + }; + }; + (pretty.trace = pretty('trace')), + (pretty.debug = pretty('debug')), + (pretty.info = pretty('info')), + (pretty.warn = pretty('warn')), + (pretty.error = pretty('error')); + }, + 97408: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { o: () => ActionBar }); + __webpack_require__(35744), __webpack_require__(43450), __webpack_require__(34769), __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77439); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Container = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref) { + return { + position: 'absolute', + bottom: 0, + right: 0, + maxWidth: '100%', + display: 'flex', + background: _ref.theme.background.content, + zIndex: 1, + }; + }), + ActionButton = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.button( + function (_ref2) { + var theme = _ref2.theme; + return { + margin: 0, + border: '0 none', + padding: '4px 10px', + cursor: 'pointer', + display: 'flex', + alignItems: 'center', + color: theme.color.defaultText, + background: theme.background.content, + fontSize: 12, + lineHeight: '16px', + fontFamily: theme.typography.fonts.base, + fontWeight: theme.typography.weight.bold, + borderTop: '1px solid '.concat(theme.appBorderColor), + borderLeft: '1px solid '.concat(theme.appBorderColor), + marginLeft: -1, + borderRadius: '4px 0 0 0', + '&:not(:last-child)': { borderRight: '1px solid '.concat(theme.appBorderColor) }, + '& + *': { borderLeft: '1px solid '.concat(theme.appBorderColor), borderRadius: 0 }, + '&:focus': { boxShadow: ''.concat(theme.color.secondary, ' 0 -3px 0 0 inset'), outline: '0 none' }, + }; + }, + function (_ref3) { + return _ref3.disabled && { cursor: 'not-allowed', opacity: 0.5 }; + }, + ); + ActionButton.displayName = 'ActionButton'; + var ActionBar = function ActionBar(_ref4) { + var actionItems = _ref4.actionItems, + props = _objectWithoutProperties(_ref4, ['actionItems']); + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Container, + props, + actionItems.map(function (_ref5, index) { + var title = _ref5.title, + className = _ref5.className, + onClick = _ref5.onClick, + disabled = _ref5.disabled; + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + ActionButton, + { key: index, className, onClick, disabled }, + title, + ); + }), + ); + }; + ActionBar.displayName = 'ActionBar'; + }, + 36400: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { C: () => Badge }); + __webpack_require__(35744), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2784), + BadgeWrapper = __webpack_require__(77439).styled.div( + function (_ref) { + return { + display: 'inline-block', + fontSize: 11, + lineHeight: '12px', + alignSelf: 'center', + padding: '4px 12px', + borderRadius: '3em', + fontWeight: _ref.theme.typography.weight.bold, + }; + }, + { svg: { height: 12, width: 12, marginRight: 4, marginTop: -2, path: { fill: 'currentColor' } } }, + function (_ref2) { + var theme = _ref2.theme; + switch (_ref2.status) { + case 'critical': + return { color: theme.color.critical, background: theme.background.critical }; + case 'negative': + return { color: theme.color.negative, background: theme.background.negative }; + case 'warning': + return { color: theme.color.warning, background: theme.background.warning }; + case 'neutral': + return { color: theme.color.dark, background: theme.color.mediumlight }; + case 'positive': + return { color: theme.color.positive, background: theme.background.positive }; + default: + return {}; + } + }, + ), + Badge = function Badge(_ref3) { + var props = Object.assign({}, _ref3); + return react__WEBPACK_IMPORTED_MODULE_2__.createElement(BadgeWrapper, props); + }; + Badge.displayName = 'Badge'; + }, + 81899: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { z: () => Button }); + __webpack_require__(8532), + __webpack_require__(35744), + __webpack_require__(43105), + __webpack_require__(18178), + __webpack_require__(34769), + __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1039); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var ButtonWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_7__.styled.button( + function (_ref) { + var small = _ref.small, + theme = _ref.theme; + return { + border: 0, + borderRadius: '3em', + cursor: 'pointer', + display: 'inline-block', + overflow: 'hidden', + padding: small ? '8px 16px' : '13px 20px', + position: 'relative', + textAlign: 'center', + textDecoration: 'none', + transition: 'all 150ms ease-out', + transform: 'translate3d(0,0,0)', + verticalAlign: 'top', + whiteSpace: 'nowrap', + userSelect: 'none', + opacity: 1, + margin: 0, + background: 'transparent', + fontSize: ''.concat(small ? theme.typography.size.s1 : theme.typography.size.s2 - 1, 'px'), + fontWeight: theme.typography.weight.bold, + lineHeight: '1', + svg: { + display: 'inline-block', + height: small ? 14 : 16, + width: small ? 14 : 16, + verticalAlign: 'top', + marginRight: small ? 4 : 6, + marginTop: small ? -1 : -2, + marginBottom: small ? -1 : -2, + pointerEvents: 'none', + path: { fill: 'currentColor' }, + }, + }; + }, + function (_ref2) { + return _ref2.disabled + ? { cursor: 'not-allowed !important', opacity: 0.5, '&:hover': { transform: 'none' } } + : {}; + }, + function (_ref3) { + var containsIcon = _ref3.containsIcon, + small = _ref3.small; + return containsIcon + ? Object.assign({ svg: { display: 'block', margin: 0 } }, small ? { padding: 9 } : { padding: 12 }) + : {}; + }, + function (_ref4) { + var color, + theme = _ref4.theme, + primary = _ref4.primary, + secondary = _ref4.secondary, + gray = _ref4.gray; + return ( + gray + ? (color = theme.color.medium) + : secondary + ? (color = theme.color.secondary) + : primary && (color = theme.color.primary), + color + ? { + background: color, + color: gray ? theme.color.darkest : theme.color.lightest, + '&:hover': { background: (0, polished__WEBPACK_IMPORTED_MODULE_8__._j)(0.05, color) }, + '&:active': { boxShadow: 'rgba(0, 0, 0, 0.1) 0 0 0 3em inset' }, + '&:focus': { + boxShadow: ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 1), ' 0 1px 9px 2px'), + outline: 'none', + }, + '&:focus:hover': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 0.2), + ' 0 8px 18px 0px', + ), + }, + } + : {} + ); + }, + function (_ref5) { + var theme = _ref5.theme, + tertiary = _ref5.tertiary, + inForm = _ref5.inForm, + small = _ref5.small; + return tertiary + ? Object.assign( + { + background: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_8__._j)(0.02, theme.input.background) + : (0, polished__WEBPACK_IMPORTED_MODULE_8__.$n)(0.02, theme.input.background), + color: theme.input.color, + boxShadow: ''.concat(theme.input.border, ' 0 0 0 1px inset'), + borderRadius: theme.input.borderRadius, + }, + inForm && small ? { padding: '10px 16px' } : {}, + { + '&:hover': Object.assign( + { + background: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_8__._j)(0.05, theme.input.background) + : (0, polished__WEBPACK_IMPORTED_MODULE_8__.$n)(0.05, theme.input.background), + }, + inForm ? {} : { boxShadow: 'rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset' }, + ), + '&:active': { background: theme.input.background }, + '&:focus': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(theme.color.secondary, 1), + ' 0 0 0 1px inset', + ), + outline: 'none', + }, + }, + ) + : {}; + }, + function (_ref6) { + var theme = _ref6.theme; + return _ref6.outline + ? { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(0.8, theme.color.defaultText), + ' 0 0 0 1px inset', + ), + color: (0, polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(0.3, theme.color.defaultText), + background: 'transparent', + '&:hover, &:focus': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(0.5, theme.color.defaultText), + ' 0 0 0 1px inset', + ), + outline: 'none', + }, + '&:active': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(0.5, theme.color.defaultText), + ' 0 0 0 2px inset', + ), + color: (0, polished__WEBPACK_IMPORTED_MODULE_8__.DZ)(0, theme.color.defaultText), + }, + } + : {}; + }, + function (_ref7) { + var theme = _ref7.theme, + outline = _ref7.outline, + primary = _ref7.primary, + color = theme.color.primary; + return outline && primary + ? { + boxShadow: ''.concat(color, ' 0 0 0 1px inset'), + color, + 'svg path': { fill: color }, + '&:hover': { boxShadow: ''.concat(color, ' 0 0 0 1px inset'), background: 'transparent' }, + '&:active': { + background: color, + boxShadow: ''.concat(color, ' 0 0 0 1px inset'), + color: theme.color.tertiary, + }, + '&:focus': { + boxShadow: '' + .concat(color, ' 0 0 0 1px inset, ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 0.4), ' 0 1px 9px 2px'), + outline: 'none', + }, + '&:focus:hover': { + boxShadow: '' + .concat(color, ' 0 0 0 1px inset, ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 0.2), ' 0 8px 18px 0px'), + }, + } + : {}; + }, + function (_ref8) { + var color, + theme = _ref8.theme, + outline = _ref8.outline, + primary = _ref8.primary; + return ( + _ref8.secondary ? (color = theme.color.secondary) : primary && (color = theme.color.primary), + outline && color + ? { + boxShadow: ''.concat(color, ' 0 0 0 1px inset'), + color, + 'svg path': { fill: color }, + '&:hover': { boxShadow: ''.concat(color, ' 0 0 0 1px inset'), background: 'transparent' }, + '&:active': { + background: color, + boxShadow: ''.concat(color, ' 0 0 0 1px inset'), + color: theme.color.tertiary, + }, + '&:focus': { + boxShadow: '' + .concat(color, ' 0 0 0 1px inset, ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 0.4), ' 0 1px 9px 2px'), + outline: 'none', + }, + '&:focus:hover': { + boxShadow: '' + .concat(color, ' 0 0 0 1px inset, ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_8__.m4)(color, 0.2), ' 0 8px 18px 0px'), + }, + } + : {} + ); + }, + ), + ButtonLink = ButtonWrapper.withComponent('a', { target: 'ex9hp6v0', label: 'ButtonLink' }), + Button = Object.assign( + (0, react__WEBPACK_IMPORTED_MODULE_6__.forwardRef)(function (_ref9, ref) { + var isLink = _ref9.isLink, + children = _ref9.children, + props = _objectWithoutProperties(_ref9, ['isLink', 'children']); + return isLink + ? react__WEBPACK_IMPORTED_MODULE_6__.createElement(ButtonLink, _extends({}, props, { ref }), children) + : react__WEBPACK_IMPORTED_MODULE_6__.createElement(ButtonWrapper, _extends({}, props, { ref }), children); + }), + { defaultProps: { isLink: !1 } }, + ); + }, + 54177: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { a: () => Loader }); + __webpack_require__(32501), + __webpack_require__(22144), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(43105), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(58188), + __webpack_require__(88233), + __webpack_require__(18178); + var _templateObject, + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + polished_esm = __webpack_require__(1039), + react = __webpack_require__(2784), + esm = __webpack_require__(77439), + core_browser_esm = __webpack_require__(47134), + icon = __webpack_require__(35016); + var Loader_templateObject, + rotate360 = (0, core_browser_esm.F4)( + _templateObject || + (_templateObject = (function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })(['\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n'])), + ); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var EventSource = window_default().EventSource, + CONFIG_TYPE = window_default().CONFIG_TYPE, + LoaderWrapper = esm.styled.div(function (_ref) { + var _ref$size = _ref.size, + size = void 0 === _ref$size ? 32 : _ref$size; + return { + borderRadius: '50%', + cursor: 'progress', + display: 'inline-block', + overflow: 'hidden', + position: 'absolute', + transition: 'all 200ms ease-out', + verticalAlign: 'top', + top: '50%', + left: '50%', + marginTop: -size / 2, + marginLeft: -size / 2, + height: size, + width: size, + zIndex: 4, + borderWidth: 2, + borderStyle: 'solid', + borderColor: 'rgba(97, 97, 97, 0.29)', + borderTopColor: 'rgb(100,100,100)', + animation: ''.concat(rotate360, ' 0.7s linear infinite'), + mixBlendMode: 'difference', + }; + }), + ProgressWrapper = esm.styled.div({ + position: 'absolute', + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + alignItems: 'center', + width: '100%', + height: '100%', + }), + ProgressTrack = esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + position: 'relative', + width: '80%', + marginBottom: '0.75rem', + maxWidth: 300, + height: 5, + borderRadius: 5, + background: (0, polished_esm.DZ)(0.8, theme.color.secondary), + overflow: 'hidden', + cursor: 'progress', + }; + }), + ProgressBar = esm.styled.div(function (_ref3) { + return { position: 'absolute', top: 0, left: 0, height: '100%', background: _ref3.theme.color.secondary }; + }), + ProgressMessage = esm.styled.div(function (_ref4) { + var theme = _ref4.theme; + return { minHeight: '2em', fontSize: ''.concat(theme.typography.size.s1, 'px'), color: theme.barTextColor }; + }), + ErrorIcon = (0, esm.styled)(icon.P)(function (_ref5) { + return { width: 20, height: 20, marginBottom: '0.5rem', color: _ref5.theme.color.mediumdark }; + }), + ellipsis = (0, core_browser_esm.F4)( + Loader_templateObject || + (Loader_templateObject = (function Loader_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + '\n from { content: "..." }\n 33% { content: "." }\n 66% { content: ".." }\n to { content: "..." }\n', + ])), + ), + Ellipsis = esm.styled.span({ + '&::after': { + content: "'...'", + animation: ''.concat(ellipsis, ' 1s linear infinite'), + animationDelay: '1s', + display: 'inline-block', + width: '1em', + height: 'auto', + }, + }), + PureLoader = function PureLoader(_ref6) { + var progress = _ref6.progress, + error = _ref6.error, + size = _ref6.size, + props = _objectWithoutProperties(_ref6, ['progress', 'error', 'size']); + if (error) + return react.createElement( + ProgressWrapper, + _extends({ 'aria-label': error.toString(), 'aria-live': 'polite', role: 'status' }, props), + react.createElement(ErrorIcon, { icon: 'lightningoff' }), + react.createElement(ProgressMessage, null, error.message), + ); + if (progress) { + var value = progress.value, + modules = progress.modules, + message = progress.message; + return ( + modules && (message += ' '.concat(modules.complete, ' / ').concat(modules.total, ' modules')), + react.createElement( + ProgressWrapper, + _extends( + { + 'aria-label': 'Content is loading...', + 'aria-live': 'polite', + 'aria-valuemin': 0, + 'aria-valuemax': 100, + 'aria-valuenow': 100 * value, + 'aria-valuetext': message, + role: 'progressbar', + }, + props, + ), + react.createElement( + ProgressTrack, + null, + react.createElement(ProgressBar, { style: { width: ''.concat(100 * value, '%') } }), + ), + react.createElement( + ProgressMessage, + null, + message, + value < 1 && react.createElement(Ellipsis, { key: message }), + ), + ) + ); + } + return react.createElement( + LoaderWrapper, + _extends({ 'aria-label': 'Content is loading...', 'aria-live': 'polite', role: 'status', size }, props), + ); + }; + PureLoader.displayName = 'PureLoader'; + var Loader = function Loader(props) { + var _useState2 = _slicedToArray((0, react.useState)(void 0), 2), + progress = _useState2[0], + setProgress = _useState2[1], + _useState4 = _slicedToArray((0, react.useState)(void 0), 2), + error = _useState4[0], + setError = _useState4[1]; + return ( + (0, react.useEffect)(function () { + if ('DEVELOPMENT' === CONFIG_TYPE && EventSource) { + var lastProgress, + eventSource = new EventSource('/progress'); + return ( + (eventSource.onmessage = function (event) { + try { + (lastProgress = JSON.parse(event.data)), setProgress(lastProgress); + } catch (e) { + setError(e), eventSource.close(); + } + }), + (eventSource.onerror = function () { + lastProgress && 1 !== lastProgress.value && setError(new Error('Connection closed')), + eventSource.close(); + }), + function () { + return eventSource.close(); + } + ); + } + }, []), + react.createElement(PureLoader, _extends({ progress, error }, props)) + ); + }; + Loader.displayName = 'Loader'; + }, + 54214: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { x: () => ScrollArea }); + __webpack_require__(73439), + __webpack_require__(58188), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77439); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var GlobalScrollAreaStyles = react__WEBPACK_IMPORTED_MODULE_5__.lazy(function () { + return __webpack_require__.e(531).then(__webpack_require__.bind(__webpack_require__, 70531)); + }), + OverlayScrollbars = react__WEBPACK_IMPORTED_MODULE_5__.lazy(function () { + return __webpack_require__.e(887).then(__webpack_require__.bind(__webpack_require__, 24887)); + }), + Scroller = function Scroller(_ref) { + _ref.horizontal, _ref.vertical; + var props = _objectWithoutProperties(_ref, ['horizontal', 'vertical']); + return react__WEBPACK_IMPORTED_MODULE_5__.createElement( + react__WEBPACK_IMPORTED_MODULE_5__.Suspense, + { fallback: react__WEBPACK_IMPORTED_MODULE_5__.createElement('div', props) }, + react__WEBPACK_IMPORTED_MODULE_5__.createElement(GlobalScrollAreaStyles, null), + react__WEBPACK_IMPORTED_MODULE_5__.createElement( + OverlayScrollbars, + _extends({ options: { scrollbars: { autoHide: 'leave' } } }, props), + ), + ); + }; + Scroller.displayName = 'Scroller'; + var ScrollArea = (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_6__.styled)(Scroller)( + function (_ref2) { + return _ref2.vertical ? { overflowY: 'auto', height: '100%' } : { overflowY: 'hidden' }; + }, + function (_ref3) { + return _ref3.horizontal ? { overflowX: 'auto', width: '100%' } : { overflowX: 'hidden' }; + }, + ); + ScrollArea.defaultProps = { horizontal: !1, vertical: !1 }; + }, + 7057: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { L: () => Zoom }); + var global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + react = + (__webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(2784)), + esm = __webpack_require__(77439), + globalWindow = window_default().window; + function browserSupportsCssZoom() { + try { + return void 0 !== globalWindow.document.implementation.createHTMLDocument('').body.style.zoom; + } catch (error) { + return !1; + } + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var ZoomElementWrapper = esm.styled.div(function (_ref) { + var _ref$scale = _ref.scale, + scale = void 0 === _ref$scale ? 1 : _ref$scale, + height = _ref.height; + return browserSupportsCssZoom() + ? { '> *': { zoom: 1 / scale } } + : { height: height + 50, transformOrigin: 'top left', transform: 'scale('.concat(1 / scale, ')') }; + }); + function ZoomElement(_ref2) { + var scale = _ref2.scale, + children = _ref2.children, + componentWrapperRef = react.useRef(null), + _useState2 = _slicedToArray((0, react.useState)(0), 2), + height = _useState2[0], + setHeight = _useState2[1]; + return ( + (0, react.useEffect)( + function () { + componentWrapperRef.current && setHeight(componentWrapperRef.current.getBoundingClientRect().height); + }, + [scale, componentWrapperRef.current], + ), + react.createElement( + ZoomElementWrapper, + { scale, height }, + react.createElement('div', { ref: componentWrapperRef, className: 'innerZoomElementWrapper' }, children), + ) + ); + } + ZoomElement.displayName = 'ZoomElement'; + __webpack_require__(18178), __webpack_require__(43105), __webpack_require__(96928), __webpack_require__(61229); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var ZoomIFrame = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(ZoomIFrame, _Component); + var _super = _createSuper(ZoomIFrame); + function ZoomIFrame() { + var _this; + _classCallCheck(this, ZoomIFrame); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ((_this = _super.call.apply(_super, [this].concat(args))).iframe = null), _this; + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(ZoomIFrame, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + var iFrameRef = this.props.iFrameRef; + this.iframe = iFrameRef.current; + }, + }, + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps) { + var _this$props = this.props, + scale = _this$props.scale, + active = _this$props.active; + return ( + scale !== nextProps.scale && this.setIframeInnerZoom(nextProps.scale), + active !== nextProps.active && + this.iframe.setAttribute('data-is-storybook', nextProps.active ? 'true' : 'false'), + !1 + ); + }, + }, + { + key: 'setIframeInnerZoom', + value: function setIframeInnerZoom(scale) { + try { + browserSupportsCssZoom() + ? Object.assign(this.iframe.contentDocument.body.style, { zoom: 1 / scale }) + : Object.assign(this.iframe.contentDocument.body.style, { + width: ''.concat(100 * scale, '%'), + height: ''.concat(100 * scale, '%'), + transform: 'scale('.concat(1 / scale, ')'), + transformOrigin: 'top left', + }); + } catch (e) { + this.setIframeZoom(scale); + } + }, + }, + { + key: 'setIframeZoom', + value: function setIframeZoom(scale) { + Object.assign(this.iframe.style, { + width: ''.concat(100 * scale, '%'), + height: ''.concat(100 * scale, '%'), + transform: 'scale('.concat(1 / scale, ')'), + transformOrigin: 'top left', + }); + }, + }, + { + key: 'render', + value: function render() { + return this.props.children; + }, + }, + ]), + ZoomIFrame + ); + })(react.Component); + ZoomIFrame.displayName = 'ZoomIFrame'; + window_default().window; + var Zoom = { Element: ZoomElement, IFrame: ZoomIFrame }; + }, + 31945: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { g: () => AddonPanel }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784), + useUpdate = function useUpdate(update, value) { + var previousValue = (function usePrevious(value) { + var ref = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); + return ( + (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)( + function () { + ref.current = value; + }, + [value], + ), + ref.current + ); + })(value); + return update ? value : previousValue; + }, + AddonPanel = function AddonPanel(_ref) { + var active = _ref.active, + children = _ref.children; + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + { hidden: !active, style: { transform: 'translateX(0px)' } }, + useUpdate(active, children), + ); + }; + AddonPanel.displayName = 'AddonPanel'; + }, + 37241: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { $: () => Bar, j: () => FlexBar }); + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(77439), + _ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(54214); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Side = _storybook_theming__WEBPACK_IMPORTED_MODULE_12__.styled.div( + { display: 'flex', whiteSpace: 'nowrap', flexBasis: 'auto', flexShrink: 0, marginLeft: 3, marginRight: 3 }, + function (_ref) { + return _ref.left ? { '& > *': { marginLeft: 4 } } : {}; + }, + function (_ref2) { + return _ref2.right ? { marginLeft: 30, '& > *': { marginRight: 4 } } : {}; + }, + ); + Side.displayName = 'Side'; + var Bar = (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_12__.styled)(function (_ref3) { + var children = _ref3.children, + className = _ref3.className; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + _ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_13__.x, + { horizontal: !0, vertical: !1, className }, + children, + ); + })( + function (_ref4) { + return { + color: _ref4.theme.barTextColor, + width: '100%', + height: 40, + flexShrink: 0, + overflow: 'auto', + overflowY: 'hidden', + }; + }, + function (_ref5) { + var theme = _ref5.theme; + return _ref5.border + ? { boxShadow: ''.concat(theme.appBorderColor, ' 0 -1px 0 0 inset'), background: theme.barBg } + : {}; + }, + ); + Bar.displayName = 'Bar'; + var BarInner = _storybook_theming__WEBPACK_IMPORTED_MODULE_12__.styled.div(function (_ref6) { + return { + display: 'flex', + justifyContent: 'space-between', + position: 'relative', + flexWrap: 'nowrap', + flexShrink: 0, + height: 40, + backgroundColor: _ref6.bgColor || '', + }; + }), + FlexBar = function FlexBar(_ref7) { + var children = _ref7.children, + backgroundColor = _ref7.backgroundColor, + rest = _objectWithoutProperties(_ref7, ['children', 'backgroundColor']), + _Children$toArray2 = _slicedToArray(react__WEBPACK_IMPORTED_MODULE_11__.Children.toArray(children), 2), + left = _Children$toArray2[0], + right = _Children$toArray2[1]; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + Bar, + rest, + react__WEBPACK_IMPORTED_MODULE_11__.createElement( + BarInner, + { bgColor: backgroundColor }, + react__WEBPACK_IMPORTED_MODULE_11__.createElement(Side, { left: !0 }, left), + right ? react__WEBPACK_IMPORTED_MODULE_11__.createElement(Side, { right: !0 }, right) : null, + ), + ); + }; + (FlexBar.displayName = 'FlexBar'), (FlexBar.displayName = 'FlexBar'); + }, + 82269: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + hU: () => IconButton, + Z$: () => IconButtonSkeleton, + Y6: () => TabButton, + }); + __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react = __webpack_require__(2784), + esm = __webpack_require__(77439), + is_prop_valid_browser_esm = __webpack_require__(96607), + polished_esm = __webpack_require__(1039); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var ButtonOrLink = function ButtonOrLink(_ref) { + var children = _ref.children, + restProps = _objectWithoutProperties(_ref, ['children']); + return null != restProps.href + ? react.createElement('a', restProps, children) + : react.createElement('button', _extends({ type: 'button' }, restProps), children); + }, + TabButton = (0, esm.styled)(ButtonOrLink, { shouldForwardProp: is_prop_valid_browser_esm.Z })( + { + whiteSpace: 'normal', + display: 'inline-flex', + overflow: 'hidden', + verticalAlign: 'top', + justifyContent: 'center', + alignItems: 'center', + textAlign: 'center', + textDecoration: 'none', + '&:empty': { display: 'none' }, + }, + function (_ref2) { + return { + padding: '0 15px', + transition: 'color 0.2s linear, border-bottom-color 0.2s linear', + height: 40, + lineHeight: '12px', + cursor: 'pointer', + background: 'transparent', + border: '0 solid transparent', + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + fontWeight: 'bold', + fontSize: 13, + '&:focus': { outline: '0 none', borderBottomColor: _ref2.theme.color.secondary }, + }; + }, + function (_ref3) { + var active = _ref3.active, + textColor = _ref3.textColor, + theme = _ref3.theme; + return active + ? { color: textColor || theme.barSelectedColor, borderBottomColor: theme.barSelectedColor } + : { color: textColor || theme.barTextColor, borderBottomColor: 'transparent' }; + }, + ); + TabButton.displayName = 'TabButton'; + var IconButton = (0, esm.styled)(ButtonOrLink, { shouldForwardProp: is_prop_valid_browser_esm.Z })( + function () { + return { + alignItems: 'center', + background: 'transparent', + border: 'none', + borderRadius: 4, + color: 'inherit', + cursor: 'pointer', + display: 'inline-flex', + fontSize: 13, + fontWeight: 'bold', + height: 28, + justifyContent: 'center', + marginTop: 6, + padding: '8px 7px', + '& > svg': { width: 14 }, + }; + }, + function (_ref4) { + var active = _ref4.active, + theme = _ref4.theme; + return active ? { backgroundColor: theme.background.hoverable, color: theme.color.secondary } : {}; + }, + function (_ref5) { + var disabled = _ref5.disabled, + theme = _ref5.theme; + return disabled + ? { opacity: 0.5, cursor: 'not-allowed' } + : { + '&:hover, &:focus-visible': { + background: (0, polished_esm.DZ)(0.88, theme.color.secondary), + color: theme.color.secondary, + }, + '&:focus-visible': { outline: 'auto' }, + '&:focus:not(:focus-visible)': { outline: 'none' }, + }; + }, + ); + IconButton.displayName = 'IconButton'; + var IconPlaceholder = esm.styled.div(function (_ref6) { + var theme = _ref6.theme; + return { + width: 14, + height: 14, + backgroundColor: theme.appBorderColor, + animation: ''.concat(theme.animation.glow, ' 1.5s ease-in-out infinite'), + }; + }), + IconButtonSkeletonWrapper = esm.styled.div(function () { + return { marginTop: 6, padding: 7, height: 28 }; + }), + IconButtonSkeleton = function IconButtonSkeleton() { + return react.createElement(IconButtonSkeletonWrapper, null, react.createElement(IconPlaceholder, null)); + }; + IconButtonSkeleton.displayName = 'IconButtonSkeleton'; + }, + 91315: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => Separator, f: () => interleaveSeparators }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784), + Separator = __webpack_require__(77439).styled.span( + function (_ref) { + return { + width: 1, + height: 20, + background: _ref.theme.appBorderColor, + marginTop: 10, + marginLeft: 6, + marginRight: 2, + }; + }, + function (_ref2) { + return _ref2.force ? {} : { '& + &': { display: 'none' } }; + }, + ); + Separator.displayName = 'Separator'; + var interleaveSeparators = function interleaveSeparators(list) { + return list.reduce(function (acc, item, index) { + return item + ? react__WEBPACK_IMPORTED_MODULE_0__.createElement( + react__WEBPACK_IMPORTED_MODULE_0__.Fragment, + { key: item.id || item.key || 'f-'.concat(index) }, + acc, + index > 0 + ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(Separator, { key: 's-'.concat(index) }) + : null, + item.render() || item, + ) + : acc; + }, null); + }; + }, + 10805: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + $4: () => ArgsTable, + j2: () => ArgsTableError, + y6: () => TableWrapper, + jG: () => argsTableLoadingData, + }); + __webpack_require__(43105), + __webpack_require__(18178), + __webpack_require__(26936), + __webpack_require__(71245), + __webpack_require__(1939), + __webpack_require__(35883), + __webpack_require__(34769), + __webpack_require__(43450), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(27233); + var react = __webpack_require__(2784), + pickBy = __webpack_require__(42208), + pickBy_default = __webpack_require__.n(pickBy), + esm = __webpack_require__(77439), + polished_esm = __webpack_require__(1039), + icon = __webpack_require__(35016), + index_modern = __webpack_require__(38228), + shared = (__webpack_require__(95342), __webpack_require__(29660)), + Table = esm.styled.table(function (_ref) { + var theme = _ref.theme; + return { + '&&': { + borderCollapse: 'collapse', + borderSpacing: 0, + border: 'none', + tr: { border: 'none !important', background: 'none' }, + 'td, th': { padding: 0, border: 'none', width: 'auto!important' }, + marginTop: 0, + marginBottom: 0, + 'th:first-of-type, td:first-of-type': { paddingLeft: 0 }, + 'th:last-of-type, td:last-of-type': { paddingRight: 0 }, + td: { paddingTop: 0, paddingBottom: 4, '&:not(:first-of-type)': { paddingLeft: 10, paddingRight: 0 } }, + tbody: { boxShadow: 'none', border: 'none' }, + code: (0, shared.CI)({ theme }), + '& code': { margin: 0, display: 'inline-block', fontSize: theme.typography.size.s1 }, + }, + }; + }), + ArgJsDoc = function ArgJsDoc(_ref2) { + var tags = _ref2.tags, + params = (tags.params || []).filter(function (x) { + return x.description; + }), + hasDisplayableParams = 0 !== params.length, + hasDisplayableReturns = null != tags.returns && null != tags.returns.description; + return hasDisplayableParams || hasDisplayableReturns + ? react.createElement( + Table, + null, + react.createElement( + 'tbody', + null, + hasDisplayableParams && + params.map(function (x) { + return react.createElement( + 'tr', + { key: x.name }, + react.createElement('td', null, react.createElement('code', null, x.name)), + react.createElement('td', null, x.description), + ); + }), + hasDisplayableReturns && + react.createElement( + 'tr', + { key: 'returns' }, + react.createElement('td', null, react.createElement('code', null, 'Returns')), + react.createElement('td', null, tags.returns.description), + ), + ), + ) + : null; + }; + ArgJsDoc.displayName = 'ArgJsDoc'; + __webpack_require__(48319), __webpack_require__(77950), __webpack_require__(45794), __webpack_require__(88233); + var memoizerific = __webpack_require__(49224), + memoizerific_default = __webpack_require__.n(memoizerific), + uniq = __webpack_require__(75652), + uniq_default = __webpack_require__.n(uniq), + lazy_WithTooltip = __webpack_require__(35881), + lazy_syntaxhighlighter = __webpack_require__(35007); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Summary = esm.styled.div(function (_ref) { + return { + display: 'flex', + flexDirection: _ref.isExpanded ? 'column' : 'row', + flexWrap: 'wrap', + alignItems: 'flex-start', + marginBottom: '-4px', + minWidth: 100, + }; + }), + Text = esm.styled.span(shared.CI, function (_ref2) { + var theme = _ref2.theme, + _ref2$simple = _ref2.simple, + simple = void 0 !== _ref2$simple && _ref2$simple; + return Object.assign( + { + flex: '0 0 auto', + fontFamily: theme.typography.fonts.mono, + fontSize: theme.typography.size.s1, + wordBreak: 'break-word', + whiteSpace: 'normal', + maxWidth: '100%', + margin: 0, + marginRight: '4px', + marginBottom: '4px', + paddingTop: '2px', + paddingBottom: '2px', + lineHeight: '13px', + }, + simple && { background: 'transparent', border: '0 none', paddingLeft: 0 }, + ); + }), + ExpandButton = esm.styled.button(function (_ref3) { + var theme = _ref3.theme; + return { + fontFamily: theme.typography.fonts.mono, + color: theme.color.secondary, + marginBottom: '4px', + background: 'none', + border: 'none', + }; + }), + Expandable = esm.styled.div(shared.CI, function (_ref4) { + var theme = _ref4.theme; + return { + fontFamily: theme.typography.fonts.mono, + color: theme.color.secondary, + fontSize: theme.typography.size.s1, + margin: 0, + whiteSpace: 'nowrap', + display: 'flex', + alignItems: 'center', + }; + }), + Detail = esm.styled.div(function (_ref5) { + var theme = _ref5.theme; + return { + width: _ref5.width, + minWidth: 200, + maxWidth: 800, + padding: 15, + fontFamily: theme.typography.fonts.mono, + fontSize: theme.typography.size.s1, + boxSizing: 'content-box', + '& code': { padding: '0 !important' }, + }; + }), + ArrowIcon = (0, esm.styled)(icon.P)({ height: 10, width: 10, minWidth: 10, marginLeft: 4 }), + EmptyArg = function EmptyArg() { + return react.createElement('span', null, '-'); + }; + EmptyArg.displayName = 'EmptyArg'; + var ArgText = function ArgText(_ref6) { + var text = _ref6.text, + simple = _ref6.simple; + return react.createElement(Text, { simple }, text); + }; + ArgText.displayName = 'ArgText'; + var calculateDetailWidth = memoizerific_default()(1e3)(function (detail) { + var lines = detail.split(/\r?\n/); + return ''.concat( + Math.max.apply( + Math, + _toConsumableArray( + lines.map(function (x) { + return x.length; + }), + ), + ), + 'ch', + ); + }), + renderSummaryItems = function renderSummaryItems(summaryItems) { + var isExpanded = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], + items = summaryItems; + return ( + isExpanded || (items = summaryItems.slice(0, 8)), + items.map(function (item) { + return react.createElement(ArgText, { key: item, text: '' === item ? '""' : item }); + }) + ); + }, + ArgSummary = function ArgSummary(_ref7) { + var value = _ref7.value, + initialExpandedArgs = _ref7.initialExpandedArgs, + summary = value.summary, + detail = value.detail, + _useState2 = _slicedToArray((0, react.useState)(!1), 2), + isOpen = _useState2[0], + setIsOpen = _useState2[1], + _useState4 = _slicedToArray((0, react.useState)(initialExpandedArgs || !1), 2), + isExpanded = _useState4[0], + setIsExpanded = _useState4[1]; + if (null == summary) return null; + var summaryAsString = 'function' == typeof summary.toString ? summary.toString() : summary; + if (null == detail) { + if (/[(){}[\]<>]/.test(summaryAsString)) return react.createElement(ArgText, { text: summaryAsString }); + var summaryItems = (function getSummaryItems(summary) { + if (!summary) return [summary]; + var summaryItems = summary.split('|').map(function (value) { + return value.trim(); + }); + return uniq_default()(summaryItems); + })(summaryAsString), + itemsCount = summaryItems.length; + return itemsCount > 8 + ? react.createElement( + Summary, + { isExpanded }, + renderSummaryItems(summaryItems, isExpanded), + react.createElement( + ExpandButton, + { + onClick: function onClick() { + return setIsExpanded(!isExpanded); + }, + }, + isExpanded ? 'Show less...' : 'Show '.concat(itemsCount - 8, ' more...'), + ), + ) + : react.createElement(Summary, null, renderSummaryItems(summaryItems)); + } + return react.createElement( + lazy_WithTooltip.D, + { + closeOnClick: !0, + trigger: 'click', + placement: 'bottom', + tooltipShown: isOpen, + onVisibilityChange: function onVisibilityChange(isVisible) { + setIsOpen(isVisible); + }, + tooltip: react.createElement( + Detail, + { width: calculateDetailWidth(detail) }, + react.createElement(lazy_syntaxhighlighter.d, { language: 'jsx', format: !1 }, detail), + ), + }, + react.createElement( + Expandable, + { className: 'sbdocs-expandable' }, + react.createElement('span', null, summaryAsString), + react.createElement(ArrowIcon, { icon: isOpen ? 'arrowup' : 'arrowdown' }), + ), + ); + }; + ArgSummary.displayName = 'ArgSummary'; + var ArgValue = function ArgValue(_ref8) { + var value = _ref8.value, + initialExpandedArgs = _ref8.initialExpandedArgs; + return null == value + ? react.createElement(EmptyArg, null) + : react.createElement(ArgSummary, { value, initialExpandedArgs }); + }, + controls = __webpack_require__(53933), + controls_Object = __webpack_require__(91241), + Boolean = __webpack_require__(3888), + controls_Date = __webpack_require__(30700), + controls_Number = __webpack_require__(63020), + Options = __webpack_require__(71555), + Range = __webpack_require__(45389), + controls_Text = __webpack_require__(64081), + Files = __webpack_require__(63654); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function ArgControl_slicedToArray(arr, i) { + return ( + (function ArgControl_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function ArgControl_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function ArgControl_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return ArgControl_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return ArgControl_arrayLikeToArray(o, minLen); + })(arr, i) || + (function ArgControl_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function ArgControl_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Controls = { + array: controls_Object.V, + object: controls_Object.V, + boolean: Boolean.m, + color: controls.ColorControl, + date: controls_Date.E, + number: controls_Number.VW, + check: Options.o, + 'inline-check': Options.o, + radio: Options.o, + 'inline-radio': Options.o, + select: Options.o, + 'multi-select': Options.o, + range: Range.m, + text: controls_Text.w, + file: Files.A, + }, + NoControl = function NoControl() { + return react.createElement(react.Fragment, null, '-'); + }, + ArgControl = function ArgControl(_ref) { + var row = _ref.row, + arg = _ref.arg, + updateArgs = _ref.updateArgs, + key = row.key, + control = row.control, + _useState2 = ArgControl_slicedToArray((0, react.useState)(!1), 2), + isFocused = _useState2[0], + setFocused = _useState2[1], + _useState4 = ArgControl_slicedToArray((0, react.useState)({ value: arg }), 2), + boxedValue = _useState4[0], + setBoxedValue = _useState4[1]; + (0, react.useEffect)( + function () { + isFocused || setBoxedValue({ value: arg }); + }, + [isFocused, arg], + ); + var onChange = (0, react.useCallback)( + function (argVal) { + return ( + setBoxedValue({ value: argVal }), + updateArgs( + (function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, key, argVal), + ), + argVal + ); + }, + [updateArgs, key], + ), + onBlur = (0, react.useCallback)(function () { + return setFocused(!1); + }, []), + onFocus = (0, react.useCallback)(function () { + return setFocused(!0); + }, []); + if (!control || control.disable) return react.createElement(NoControl, null); + var props = { name: key, argType: row, value: boxedValue.value, onChange, onBlur, onFocus }, + Control = Controls[control.type] || NoControl; + return react.createElement(Control, _extends({}, props, control, { controlType: control.type })); + }; + ArgControl.displayName = 'ArgControl'; + var Name = esm.styled.span({ fontWeight: 'bold' }), + Required = esm.styled.span(function (_ref) { + var theme = _ref.theme; + return { color: theme.color.negative, fontFamily: theme.typography.fonts.mono, cursor: 'help' }; + }), + Description = esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + '&&': { p: { margin: '0 0 10px 0' }, a: { color: theme.color.secondary } }, + code: Object.assign({}, (0, shared.CI)({ theme }), { + fontSize: 12, + fontFamily: theme.typography.fonts.mono, + }), + '& code': { margin: 0, display: 'inline-block' }, + '& pre > code': { whiteSpace: 'pre-wrap' }, + }; + }), + Type = esm.styled.div(function (_ref3) { + var theme = _ref3.theme, + hasDescription = _ref3.hasDescription; + return { + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.1, theme.color.defaultText) + : (0, polished_esm.DZ)(0.2, theme.color.defaultText), + marginTop: hasDescription ? 4 : 0, + }; + }), + TypeWithJsDoc = esm.styled.div(function (_ref4) { + var theme = _ref4.theme, + hasDescription = _ref4.hasDescription; + return { + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.1, theme.color.defaultText) + : (0, polished_esm.DZ)(0.2, theme.color.defaultText), + marginTop: hasDescription ? 12 : 0, + marginBottom: 12, + }; + }), + StyledTd = esm.styled.td(function (_ref5) { + _ref5.theme; + return { paddingLeft: _ref5.expandable ? '40px !important' : '20px !important' }; + }), + ArgRow = function ArgRow(props) { + var _row$type, + row = props.row, + updateArgs = props.updateArgs, + compact = props.compact, + expandable = props.expandable, + initialExpandedArgs = props.initialExpandedArgs, + name = row.name, + description = row.description, + table = row.table || {}, + type = table.type || row.type, + defaultValue = table.defaultValue || row.defaultValue, + required = null === (_row$type = row.type) || void 0 === _row$type ? void 0 : _row$type.required, + hasDescription = null != description && '' !== description; + return react.createElement( + 'tr', + null, + react.createElement( + StyledTd, + { expandable }, + react.createElement(Name, null, name), + required ? react.createElement(Required, { title: 'Required' }, '*') : null, + ), + compact + ? null + : react.createElement( + 'td', + null, + hasDescription && + react.createElement(Description, null, react.createElement(index_modern.Z, null, description)), + null != table.jsDocTags + ? react.createElement( + react.Fragment, + null, + react.createElement( + TypeWithJsDoc, + { hasDescription }, + react.createElement(ArgValue, { value: type, initialExpandedArgs }), + ), + react.createElement(ArgJsDoc, { tags: table.jsDocTags }), + ) + : react.createElement( + Type, + { hasDescription }, + react.createElement(ArgValue, { value: type, initialExpandedArgs }), + ), + ), + compact + ? null + : react.createElement( + 'td', + null, + react.createElement(ArgValue, { value: defaultValue, initialExpandedArgs }), + ), + updateArgs ? react.createElement('td', null, react.createElement(ArgControl, props)) : null, + ); + }; + ArgRow.displayName = 'ArgRow'; + __webpack_require__(35744); + function SectionRow_slicedToArray(arr, i) { + return ( + (function SectionRow_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function SectionRow_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function SectionRow_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return SectionRow_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return SectionRow_arrayLikeToArray(o, minLen); + })(arr, i) || + (function SectionRow_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function SectionRow_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var ExpanderIcon = (0, esm.styled)(icon.P)(function (_ref) { + var theme = _ref.theme; + return { + marginRight: 8, + marginLeft: -10, + marginTop: -2, + height: 12, + width: 12, + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.25, theme.color.defaultText) + : (0, polished_esm.DZ)(0.3, theme.color.defaultText), + border: 'none', + display: 'inline-block', + }; + }), + FlexWrapper = esm.styled.span(function (_ref2) { + _ref2.theme; + return { display: 'flex', lineHeight: '20px', alignItems: 'center' }; + }), + Section = esm.styled.td(function (_ref3) { + var theme = _ref3.theme; + return { + position: 'relative', + letterSpacing: '0.35em', + textTransform: 'uppercase', + fontWeight: theme.typography.weight.black, + fontSize: theme.typography.size.s1 - 1, + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.4, theme.color.defaultText) + : (0, polished_esm.DZ)(0.6, theme.color.defaultText), + background: ''.concat(theme.background.app, ' !important'), + '& ~ td': { background: ''.concat(theme.background.app, ' !important') }, + }; + }), + Subsection = esm.styled.td(function (_ref4) { + var theme = _ref4.theme; + return { + position: 'relative', + fontWeight: theme.typography.weight.bold, + fontSize: theme.typography.size.s2 - 1, + background: theme.background.content, + }; + }), + SectionRow_StyledTd = esm.styled.td(function (_ref5) { + _ref5.theme; + return { position: 'relative' }; + }), + StyledTr = esm.styled.tr(function (_ref6) { + var theme = _ref6.theme; + return { + '&:hover > td': { + backgroundColor: ''.concat(theme.background.hoverable, ' !important'), + boxShadow: ''.concat(theme.color.mediumlight, ' 0 - 1px 0 0 inset'), + cursor: 'row-resize', + }, + }; + }), + ClickIntercept = esm.styled.button(function () { + return { + background: 'none', + border: 'none', + padding: '0', + font: 'inherit', + position: 'absolute', + top: 0, + bottom: 0, + left: 0, + right: 0, + height: '100%', + width: '100%', + color: 'transparent', + cursor: 'row-resize !important', + }; + }), + SectionRow = function SectionRow(_ref7) { + var _ref7$level = _ref7.level, + level = void 0 === _ref7$level ? 'section' : _ref7$level, + label = _ref7.label, + children = _ref7.children, + _ref7$initialExpanded = _ref7.initialExpanded, + initialExpanded = void 0 === _ref7$initialExpanded || _ref7$initialExpanded, + _ref7$colSpan = _ref7.colSpan, + colSpan = void 0 === _ref7$colSpan ? 3 : _ref7$colSpan, + _useState2 = SectionRow_slicedToArray((0, react.useState)(initialExpanded), 2), + expanded = _useState2[0], + setExpanded = _useState2[1], + Level = 'subsection' === level ? Subsection : Section, + itemCount = (null == children ? void 0 : children.length) || 0, + caption = 'subsection' === level ? ''.concat(itemCount, ' item').concat(1 !== itemCount ? 's' : '') : '', + icon = expanded ? 'arrowdown' : 'arrowright', + helperText = '' + .concat(expanded ? 'Hide' : 'Show', ' ') + .concat('subsection' === level ? itemCount : label, ' item') + .concat(1 !== itemCount ? 's' : ''); + return react.createElement( + react.Fragment, + null, + react.createElement( + StyledTr, + { title: helperText }, + react.createElement( + Level, + { colSpan: 1 }, + react.createElement( + ClickIntercept, + { + onClick: function onClick(e) { + return setExpanded(!expanded); + }, + tabIndex: 0, + }, + helperText, + ), + react.createElement(FlexWrapper, null, react.createElement(ExpanderIcon, { icon }), label), + ), + react.createElement( + SectionRow_StyledTd, + { colSpan: colSpan - 1 }, + react.createElement( + ClickIntercept, + { + onClick: function onClick(e) { + return setExpanded(!expanded); + }, + tabIndex: -1, + style: { outline: 'none' }, + }, + helperText, + ), + expanded ? null : caption, + ), + ), + expanded ? children : null, + ); + }, + EmptyBlock = __webpack_require__(35597), + link_link = __webpack_require__(13609), + DocumentFormatting = __webpack_require__(4494); + function ArgsTable_extends() { + return ( + (ArgsTable_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + ArgsTable_extends.apply(this, arguments) + ); + } + function ArgsTable_slicedToArray(arr, i) { + return ( + (function ArgsTable_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function ArgsTable_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function ArgsTable_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return ArgsTable_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return ArgsTable_arrayLikeToArray(o, minLen); + })(arr, i) || + (function ArgsTable_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function ArgsTable_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function ArgsTable_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var ArgsTableError, + TableWrapper = esm.styled.table( + function (_ref) { + var _trFirstChild$conca, + _trLastChild$concat, + _, + theme = _ref.theme, + compact = _ref.compact, + inAddonPanel = _ref.inAddonPanel; + return { + '&&': + ((_ = { + borderCollapse: 'collapse', + borderSpacing: 0, + color: theme.color.defaultText, + 'td, th': { padding: 0, border: 'none', verticalAlign: 'top', textOverflow: 'ellipsis' }, + fontSize: theme.typography.size.s2 - 1, + lineHeight: '20px', + textAlign: 'left', + width: '100%', + marginTop: inAddonPanel ? 0 : 25, + marginBottom: inAddonPanel ? 0 : 40, + 'thead th:first-of-type, td:first-of-type': { width: '25%' }, + 'th:first-of-type, td:first-of-type': { paddingLeft: 20 }, + 'th:nth-of-type(2), td:nth-of-type(2)': Object.assign({}, compact ? null : { width: '35%' }), + 'td:nth-of-type(3)': Object.assign({}, compact ? null : { width: '15%' }), + 'th:last-of-type, td:last-of-type': Object.assign( + { paddingRight: 20 }, + compact ? null : { width: '25%' }, + ), + th: { + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.25, theme.color.defaultText) + : (0, polished_esm.DZ)(0.45, theme.color.defaultText), + paddingTop: 10, + paddingBottom: 10, + paddingLeft: 15, + paddingRight: 15, + }, + td: { + paddingTop: '10px', + paddingBottom: '10px', + '&:not(:first-of-type)': { paddingLeft: 15, paddingRight: 15 }, + '&:last-of-type': { paddingRight: 20 }, + }, + marginLeft: inAddonPanel ? 0 : 1, + marginRight: inAddonPanel ? 0 : 1, + }), + ArgsTable_defineProperty( + _, + 'tr:first-child'.concat(esm.ignoreSsrWarning), + ((_trFirstChild$conca = {}), + ArgsTable_defineProperty( + _trFirstChild$conca, + 'td:first-child'.concat(esm.ignoreSsrWarning, ', th:first-child').concat(esm.ignoreSsrWarning), + { borderTopLeftRadius: inAddonPanel ? 0 : theme.appBorderRadius }, + ), + ArgsTable_defineProperty( + _trFirstChild$conca, + 'td:last-child'.concat(esm.ignoreSsrWarning, ', th:last-child').concat(esm.ignoreSsrWarning), + { borderTopRightRadius: inAddonPanel ? 0 : theme.appBorderRadius }, + ), + _trFirstChild$conca), + ), + ArgsTable_defineProperty( + _, + 'tr:last-child'.concat(esm.ignoreSsrWarning), + ((_trLastChild$concat = {}), + ArgsTable_defineProperty( + _trLastChild$concat, + 'td:first-child'.concat(esm.ignoreSsrWarning, ', th:first-child').concat(esm.ignoreSsrWarning), + { borderBottomLeftRadius: inAddonPanel ? 0 : theme.appBorderRadius }, + ), + ArgsTable_defineProperty( + _trLastChild$concat, + 'td:last-child'.concat(esm.ignoreSsrWarning, ', th:last-child').concat(esm.ignoreSsrWarning), + { borderBottomRightRadius: inAddonPanel ? 0 : theme.appBorderRadius }, + ), + _trLastChild$concat), + ), + ArgsTable_defineProperty(_, 'tbody', { + boxShadow: + !inAddonPanel && + ('light' === theme.base + ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 1px,\n '.concat( + (0, polished_esm.DZ)(0.035, theme.appBorderColor), + ' 0 0 0 1px', + ) + : 'rgba(0, 0, 0, 0.20) 0 2px 5px 1px,\n '.concat( + (0, polished_esm.jb)(0.05, theme.appBorderColor), + ' 0 0 0 1px', + )), + borderRadius: theme.appBorderRadius, + '@media not all and (min-resolution:.001dpcm)': { + '@supports (-webkit-appearance:none)': Object.assign( + { borderWidth: 1, borderStyle: 'solid' }, + inAddonPanel && { borderColor: 'transparent' }, + !inAddonPanel && { + borderColor: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.035, theme.appBorderColor) + : (0, polished_esm.jb)(0.05, theme.appBorderColor), + }, + ), + }, + tr: Object.assign( + { background: 'transparent', overflow: 'hidden' }, + inAddonPanel + ? { + borderTopWidth: 1, + borderTopStyle: 'solid', + borderTopColor: + 'light' === theme.base + ? (0, polished_esm._j)(0.1, theme.background.content) + : (0, polished_esm.$n)(0.05, theme.background.content), + } + : ArgsTable_defineProperty({}, '&:not(:first-child'.concat(esm.ignoreSsrWarning, ')'), { + borderTopWidth: 1, + borderTopStyle: 'solid', + borderTopColor: + 'light' === theme.base + ? (0, polished_esm._j)(0.1, theme.background.content) + : (0, polished_esm.$n)(0.05, theme.background.content), + }), + ), + td: { background: theme.background.content }, + }), + _), + }; + }, + function (_ref3) { + var isLoading = _ref3.isLoading, + theme = _ref3.theme; + return isLoading + ? { + 'th span, td span, td button': { + display: 'inline', + backgroundColor: theme.appBorderColor, + animation: ''.concat(theme.animation.glow, ' 1.5s ease-in-out infinite'), + color: 'transparent', + boxShadow: 'none', + borderRadius: 0, + }, + } + : {}; + }, + ), + ResetButton = esm.styled.button(function (_ref4) { + var theme = _ref4.theme; + return { + border: 0, + borderRadius: '3em', + cursor: 'pointer', + display: 'inline-block', + overflow: 'hidden', + padding: '3px 8px', + transition: 'all 150ms ease-out', + verticalAlign: 'top', + userSelect: 'none', + margin: 0, + backgroundColor: 'light' === theme.base ? '#EAF3FC' : theme.color.border, + boxShadow: + 'light' === theme.base + ? ''.concat(theme.color.border, ' 0 0 0 1px inset') + : ''.concat(theme.color.darker, ' 0 0 0 1px inset'), + color: theme.color.secondary, + '&:hover': { + background: + 'light' === theme.base + ? (0, polished_esm._j)(0.03, '#EAF3FC') + : (0, polished_esm.jb)(0.1, theme.color.border), + }, + '&:focus': { boxShadow: ''.concat(theme.color.secondary, ' 0 0 0 1px inset'), outline: 'none' }, + svg: { display: 'block', height: 14, width: 14 }, + }; + }), + ControlHeadingWrapper = esm.styled.span({ display: 'flex', justifyContent: 'space-between' }); + !(function (ArgsTableError) { + (ArgsTableError.NO_COMPONENT = 'No component found.'), + (ArgsTableError.ARGS_UNSUPPORTED = 'Args unsupported. See Args documentation for your framework.'); + })(ArgsTableError || (ArgsTableError = {})); + var sortFns = { + alpha: function alpha(a, b) { + return a.name.localeCompare(b.name); + }, + requiredFirst: function requiredFirst(a, b) { + var _b$type, _a$type; + return ( + Number(!(null === (_b$type = b.type) || void 0 === _b$type || !_b$type.required)) - + Number(!(null === (_a$type = a.type) || void 0 === _a$type || !_a$type.required)) || + a.name.localeCompare(b.name) + ); + }, + none: void 0, + }, + rowLoadingData = function rowLoadingData(key) { + return { + key, + name: 'propertyName', + description: 'This is a short description', + control: { type: 'text' }, + table: { type: { summary: 'summary' }, defaultValue: { summary: 'defaultValue' } }, + }; + }, + argsTableLoadingData = { + rows: { row1: rowLoadingData('row1'), row2: rowLoadingData('row2'), row3: rowLoadingData('row3') }, + }, + ArgsTable = function ArgsTable(props) { + if ('error' in props) + return react.createElement( + EmptyBlock.V, + null, + props.error, + ' ', + react.createElement( + link_link.r, + { href: 'http://storybook.js.org/docs/', target: '_blank', withArrow: !0 }, + 'Read the docs', + ), + ); + var updateArgs = props.updateArgs, + resetArgs = props.resetArgs, + compact = props.compact, + inAddonPanel = props.inAddonPanel, + initialExpandedArgs = props.initialExpandedArgs, + _props$sort = props.sort, + sort = void 0 === _props$sort ? 'none' : _props$sort, + isLoading = 'isLoading' in props, + _ref8 = 'rows' in props ? props : argsTableLoadingData, + rows = _ref8.rows, + args = _ref8.args, + groups = (function groupRows(rows, sort) { + var sections = { ungrouped: [], ungroupedSubsections: {}, sections: {} }; + if (!rows) return sections; + Object.entries(rows).forEach(function (_ref5) { + var _ref6 = ArgsTable_slicedToArray(_ref5, 2), + key = _ref6[0], + row = _ref6[1], + _ref7 = (null == row ? void 0 : row.table) || {}, + category = _ref7.category, + subcategory = _ref7.subcategory; + if (category) { + var section = sections.sections[category] || { ungrouped: [], subsections: {} }; + if (subcategory) { + var subsection = section.subsections[subcategory] || []; + subsection.push(Object.assign({ key }, row)), (section.subsections[subcategory] = subsection); + } else section.ungrouped.push(Object.assign({ key }, row)); + sections.sections[category] = section; + } else if (subcategory) { + var _subsection = sections.ungroupedSubsections[subcategory] || []; + _subsection.push(Object.assign({ key }, row)), + (sections.ungroupedSubsections[subcategory] = _subsection); + } else sections.ungrouped.push(Object.assign({ key }, row)); + }); + var sortFn = sortFns[sort], + sortSubsection = function sortSubsection(record) { + return sortFn + ? Object.keys(record).reduce(function (acc, cur) { + return Object.assign({}, acc, ArgsTable_defineProperty({}, cur, record[cur].sort(sortFn))); + }, {}) + : record; + }; + return { + ungrouped: sections.ungrouped.sort(sortFn), + ungroupedSubsections: sortSubsection(sections.ungroupedSubsections), + sections: Object.keys(sections.sections).reduce(function (acc, cur) { + return Object.assign( + {}, + acc, + ArgsTable_defineProperty({}, cur, { + ungrouped: sections.sections[cur].ungrouped.sort(sortFn), + subsections: sortSubsection(sections.sections[cur].subsections), + }), + ); + }, {}), + }; + })( + pickBy_default()(rows, function (row) { + var _row$table; + return !( + null != row && + null !== (_row$table = row.table) && + void 0 !== _row$table && + _row$table.disable + ); + }), + sort, + ); + if ( + 0 === groups.ungrouped.length && + 0 === Object.entries(groups.sections).length && + 0 === Object.entries(groups.ungroupedSubsections).length + ) + return react.createElement( + EmptyBlock.V, + null, + 'No inputs found for this component. ', + react.createElement( + link_link.r, + { href: 'http://storybook.js.org/docs/', target: '_blank', withArrow: !0 }, + 'Read the docs', + ), + ); + var colSpan = 1; + updateArgs && (colSpan += 1), compact || (colSpan += 2); + var expandable = Object.keys(groups.sections).length > 0, + common = { updateArgs, compact, inAddonPanel, initialExpandedArgs }; + return react.createElement( + DocumentFormatting.i9, + null, + react.createElement( + TableWrapper, + { 'aria-hidden': isLoading, compact, inAddonPanel, isLoading, className: 'docblock-argstable' }, + react.createElement( + 'thead', + { className: 'docblock-argstable-head' }, + react.createElement( + 'tr', + null, + react.createElement('th', null, react.createElement('span', null, 'Name')), + compact ? null : react.createElement('th', null, react.createElement('span', null, 'Description')), + compact ? null : react.createElement('th', null, react.createElement('span', null, 'Default')), + updateArgs + ? react.createElement( + 'th', + null, + react.createElement( + ControlHeadingWrapper, + null, + 'Control', + ' ', + !isLoading && + resetArgs && + react.createElement( + ResetButton, + { + onClick: function onClick() { + return resetArgs(); + }, + title: 'Reset controls', + }, + react.createElement(icon.P, { icon: 'undo', 'aria-hidden': !0 }), + ), + ), + ) + : null, + ), + ), + react.createElement( + 'tbody', + { className: 'docblock-argstable-body' }, + groups.ungrouped.map(function (row) { + return react.createElement( + ArgRow, + ArgsTable_extends({ key: row.key, row, arg: args && args[row.key] }, common), + ); + }), + Object.entries(groups.ungroupedSubsections).map(function (_ref9) { + var _ref10 = ArgsTable_slicedToArray(_ref9, 2), + subcategory = _ref10[0], + subsection = _ref10[1]; + return react.createElement( + SectionRow, + { key: subcategory, label: subcategory, level: 'subsection', colSpan }, + subsection.map(function (row) { + return react.createElement( + ArgRow, + ArgsTable_extends({ key: row.key, row, arg: args && args[row.key], expandable }, common), + ); + }), + ); + }), + Object.entries(groups.sections).map(function (_ref11) { + var _ref12 = ArgsTable_slicedToArray(_ref11, 2), + category = _ref12[0], + section = _ref12[1]; + return react.createElement( + SectionRow, + { key: category, label: category, level: 'section', colSpan }, + section.ungrouped.map(function (row) { + return react.createElement( + ArgRow, + ArgsTable_extends({ key: row.key, row, arg: args && args[row.key] }, common), + ); + }), + Object.entries(section.subsections).map(function (_ref13) { + var _ref14 = ArgsTable_slicedToArray(_ref13, 2), + subcategory = _ref14[0], + subsection = _ref14[1]; + return react.createElement( + SectionRow, + { key: subcategory, label: subcategory, level: 'subsection', colSpan }, + subsection.map(function (row) { + return react.createElement( + ArgRow, + ArgsTable_extends({ key: row.key, row, arg: args && args[row.key], expandable }, common), + ); + }), + ); + }), + ); + }), + ), + ), + ); + }; + ArgsTable.displayName = 'ArgsTable'; + }, + 60064: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { q: () => NoControlsWarning }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77439), + _typography_link_link__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13609), + NoControlsWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_1__.styled.div(function (_ref) { + var theme = _ref.theme; + return { + background: theme.background.warning, + color: theme.color.darkest, + padding: '10px 15px', + lineHeight: '20px', + boxShadow: ''.concat(theme.appBorderColor, ' 0 -1px 0 0 inset'), + }; + }), + NoControlsWarning = function NoControlsWarning() { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + NoControlsWrapper, + null, + 'This story is not configured to handle controls.', + ' ', + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + _typography_link_link__WEBPACK_IMPORTED_MODULE_2__.r, + { + href: 'https://storybook.js.org/docs/react/essentials/controls', + target: '_blank', + cancel: !1, + withArrow: !0, + }, + 'Learn how to add controls', + ), + ); + }; + NoControlsWarning.displayName = 'NoControlsWarning'; + }, + 62674: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { t: () => TabbedArgsTable }); + __webpack_require__(35883), + __webpack_require__(43450), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(43105), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(2784), + _ArgsTable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(10805), + _tabs_tabs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(58929); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var TabbedArgsTable = function TabbedArgsTable(_ref) { + var tabs = _ref.tabs, + props = _objectWithoutProperties(_ref, ['tabs']), + entries = Object.entries(tabs); + return 1 === entries.length + ? react__WEBPACK_IMPORTED_MODULE_14__.createElement( + _ArgsTable__WEBPACK_IMPORTED_MODULE_15__.$4, + _extends({}, entries[0][1], props), + ) + : react__WEBPACK_IMPORTED_MODULE_14__.createElement( + _tabs_tabs__WEBPACK_IMPORTED_MODULE_16__.JG, + null, + entries.map(function (entry) { + var _entry = _slicedToArray(entry, 2), + label = _entry[0], + table = _entry[1], + id = 'prop_table_div_'.concat(label); + return react__WEBPACK_IMPORTED_MODULE_14__.createElement( + 'div', + { key: id, id, title: label }, + function (_ref2) { + return _ref2.active + ? react__WEBPACK_IMPORTED_MODULE_14__.createElement( + _ArgsTable__WEBPACK_IMPORTED_MODULE_15__.$4, + _extends({ key: 'prop_table_'.concat(label) }, table, props), + ) + : null; + }, + ); + }), + ); + }; + TabbedArgsTable.displayName = 'TabbedArgsTable'; + }, + 46215: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + ArgsTable: () => _ArgsTable__WEBPACK_IMPORTED_MODULE_1__.$4, + ArgsTableError: () => _ArgsTable__WEBPACK_IMPORTED_MODULE_1__.j2, + TableWrapper: () => _ArgsTable__WEBPACK_IMPORTED_MODULE_1__.y6, + argsTableLoadingData: () => _ArgsTable__WEBPACK_IMPORTED_MODULE_1__.jG, + TabbedArgsTable: () => _TabbedArgsTable__WEBPACK_IMPORTED_MODULE_2__.t, + NoControlsWarning: () => _NoControlsWarning__WEBPACK_IMPORTED_MODULE_3__.q, + }); + var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5424), + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _types__WEBPACK_IMPORTED_MODULE_0__) + 'default' !== __WEBPACK_IMPORT_KEY__ && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _types__WEBPACK_IMPORTED_MODULE_0__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _ArgsTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10805), + _TabbedArgsTable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62674), + _NoControlsWarning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60064); + }, + 5424: () => {}, + 77205: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { a: () => getBlockBackgroundStyle }); + var getBlockBackgroundStyle = function getBlockBackgroundStyle(theme) { + return { + borderRadius: theme.appBorderRadius, + background: theme.background.content, + boxShadow: 'light' === theme.base ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0', + border: '1px solid '.concat(theme.appBorderColor), + }; + }; + }, + 77444: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { c: () => ColorItem, V: () => ColorPalette }); + __webpack_require__(35744), + __webpack_require__(43105), + __webpack_require__(18178), + __webpack_require__(43450), + __webpack_require__(67890), + __webpack_require__(34769), + __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1039), + _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(77205), + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4494); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var ItemTitle = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref) { + var theme = _ref.theme; + return { fontWeight: theme.typography.weight.bold, color: theme.color.defaultText }; + }), + ItemSubtitle = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + color: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.2, theme.color.defaultText) + : (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.6, theme.color.defaultText), + }; + }), + ItemDescription = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + flex: '0 0 30%', + lineHeight: '20px', + marginTop: 5, + }), + SwatchLabel = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref3) { + var theme = _ref3.theme; + return { + flex: 1, + textAlign: 'center', + fontFamily: theme.typography.fonts.mono, + fontSize: theme.typography.size.s1, + lineHeight: 1, + overflow: 'hidden', + color: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.4, theme.color.defaultText) + : (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.6, theme.color.defaultText), + '> div': { display: 'inline-block', overflow: 'hidden', maxWidth: '100%', textOverflow: 'ellipsis' }, + span: { display: 'block', marginTop: 2 }, + }; + }), + SwatchLabels = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + display: 'flex', + flexDirection: 'row', + }), + Swatch = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref4) { + return { + position: 'relative', + flex: 1, + '&::before': { + position: 'absolute', + top: 0, + left: 0, + width: '100%', + height: '100%', + background: _ref4.background, + content: '""', + }, + }; + }), + SwatchColors = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref5) { + var theme = _ref5.theme; + return Object.assign({}, (0, _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_10__.a)(theme), { + display: 'flex', + flexDirection: 'row', + height: 50, + marginBottom: 5, + overflow: 'hidden', + backgroundColor: 'white', + backgroundImage: 'repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)', + backgroundClip: 'padding-box', + }); + }), + SwatchSpecimen = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + display: 'flex', + flexDirection: 'column', + flex: 1, + position: 'relative', + marginBottom: 30, + }), + Swatches = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + flex: 1, + display: 'flex', + flexDirection: 'row', + }), + Item = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + display: 'flex', + alignItems: 'flex-start', + }), + ListName = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ flex: '0 0 30%' }), + ListSwatches = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ flex: 1 }), + ListHeading = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref6) { + var theme = _ref6.theme; + return { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + paddingBottom: 20, + fontWeight: theme.typography.weight.bold, + color: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.4, theme.color.defaultText) + : (0, polished__WEBPACK_IMPORTED_MODULE_9__.DZ)(0.6, theme.color.defaultText), + }; + }), + List = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div(function (_ref7) { + return { + fontSize: _ref7.theme.typography.size.s2, + lineHeight: '20px', + display: 'flex', + flexDirection: 'column', + }; + }); + function renderSwatch(color, index) { + return react__WEBPACK_IMPORTED_MODULE_7__.createElement(Swatch, { + key: ''.concat(color, '-').concat(index), + title: color, + background: color, + }); + } + function renderSwatchLabel(color, index, colorDescription) { + return react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchLabel, + { key: ''.concat(color, '-').concat(index), title: color }, + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + 'div', + null, + color, + colorDescription && react__WEBPACK_IMPORTED_MODULE_7__.createElement('span', null, colorDescription), + ), + ); + } + function renderSwatchSpecimen(colors) { + return Array.isArray(colors) + ? react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchSpecimen, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchColors, + null, + colors.map(function (color, index) { + return renderSwatch(color, index); + }), + ), + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchLabels, + null, + colors.map(function (color, index) { + return renderSwatchLabel(color, index); + }), + ), + ) + : react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchSpecimen, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchColors, + null, + Object.values(colors).map(function (color, index) { + return renderSwatch(color, index); + }), + ), + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + SwatchLabels, + null, + Object.keys(colors).map(function (color, index) { + return renderSwatchLabel(color, index, colors[color]); + }), + ), + ); + } + (renderSwatch.displayName = 'renderSwatch'), + (renderSwatchLabel.displayName = 'renderSwatchLabel'), + (renderSwatchSpecimen.displayName = 'renderSwatchSpecimen'); + var ColorItem = function ColorItem(_ref8) { + var title = _ref8.title, + subtitle = _ref8.subtitle, + colors = _ref8.colors; + return react__WEBPACK_IMPORTED_MODULE_7__.createElement( + Item, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + ItemDescription, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement(ItemTitle, null, title), + react__WEBPACK_IMPORTED_MODULE_7__.createElement(ItemSubtitle, null, subtitle), + ), + react__WEBPACK_IMPORTED_MODULE_7__.createElement(Swatches, null, renderSwatchSpecimen(colors)), + ); + }; + ColorItem.displayName = 'ColorItem'; + var ColorPalette = function ColorPalette(_ref9) { + var children = _ref9.children, + props = _objectWithoutProperties(_ref9, ['children']); + return react__WEBPACK_IMPORTED_MODULE_7__.createElement( + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_11__.i9, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + List, + _extends({}, props, { className: 'docblock-colorpalette' }), + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + ListHeading, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement(ListName, null, 'Name'), + react__WEBPACK_IMPORTED_MODULE_7__.createElement(ListSwatches, null, 'Swatches'), + ), + children, + ), + ); + }; + ColorPalette.displayName = 'ColorPalette'; + }, + 58273: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { d: () => Description }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784), + markdown_to_jsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38228), + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4494), + Description = function Description(_ref) { + var markdown = _ref.markdown; + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_2__.i9, + null, + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + markdown_to_jsx__WEBPACK_IMPORTED_MODULE_1__.Z, + { + options: { forceBlock: !0, overrides: _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_2__.wx }, + }, + markdown, + ), + ); + }; + Description.displayName = 'Description'; + }, + 61583: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + Dx: () => Title, + QE: () => Subtitle, + s2: () => DocsContent, + DM: () => DocsWrapper, + vT: () => DocsPageWrapper, + }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1039), + _typography_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29660); + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var Title = _storybook_theming__WEBPACK_IMPORTED_MODULE_1__.styled.h1( + _typography_shared__WEBPACK_IMPORTED_MODULE_2__.YX, + function (_ref) { + var theme = _ref.theme; + return _defineProperty( + { + color: theme.color.defaultText, + fontSize: theme.typography.size.m3, + fontWeight: theme.typography.weight.black, + lineHeight: '32px', + }, + '@media (min-width: '.concat(600, 'px)'), + { fontSize: theme.typography.size.l1, lineHeight: '36px', marginBottom: '.5rem' }, + ); + }, + ), + Subtitle = _storybook_theming__WEBPACK_IMPORTED_MODULE_1__.styled.h2( + _typography_shared__WEBPACK_IMPORTED_MODULE_2__.YX, + function (_ref3) { + var _ref4, + theme = _ref3.theme; + return ( + _defineProperty( + (_ref4 = { + fontWeight: theme.typography.weight.regular, + fontSize: theme.typography.size.s3, + lineHeight: '20px', + borderBottom: 'none', + marginBottom: 15, + }), + '@media (min-width: '.concat(600, 'px)'), + { fontSize: theme.typography.size.m1, lineHeight: '28px', marginBottom: 24 }, + ), + _defineProperty( + _ref4, + 'color', + (0, polished__WEBPACK_IMPORTED_MODULE_3__.DZ)(0.25, theme.color.defaultText), + ), + _ref4 + ); + }, + ), + DocsContent = _storybook_theming__WEBPACK_IMPORTED_MODULE_1__.styled.div({ maxWidth: 1e3, width: '100%' }), + DocsWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_1__.styled.div(function (_ref5) { + return _defineProperty( + { + background: _ref5.theme.background.content, + display: 'flex', + justifyContent: 'center', + padding: '4rem 20px', + minHeight: '100vh', + boxSizing: 'border-box', + }, + '@media (min-width: '.concat(600, 'px)'), + {}, + ); + }), + DocsPageWrapper = function DocsPageWrapper(_ref7) { + var children = _ref7.children; + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + DocsWrapper, + null, + react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsContent, null, children), + ); + }; + DocsPageWrapper.displayName = 'DocsPageWrapper'; + }, + 35597: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { V: () => EmptyBlock }); + __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1039), + _typography_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29660); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + var Wrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_2__.styled.div( + _typography_shared__WEBPACK_IMPORTED_MODULE_3__.YX, + function (_ref) { + var theme = _ref.theme; + return { + backgroundColor: 'light' === theme.base ? 'rgba(0,0,0,.01)' : 'rgba(255,255,255,.01)', + borderRadius: theme.appBorderRadius, + border: '1px dashed '.concat(theme.appBorderColor), + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + padding: 20, + margin: '25px 0 40px', + color: (0, polished__WEBPACK_IMPORTED_MODULE_4__.DZ)(0.3, theme.color.defaultText), + fontSize: theme.typography.size.s2, + }; + }, + ), + EmptyBlock = function EmptyBlock(props) { + return react__WEBPACK_IMPORTED_MODULE_1__.createElement( + Wrapper, + _extends({}, props, { className: 'docblock-emptyblock' }), + ); + }; + EmptyBlock.displayName = 'EmptyBlock'; + }, + 42732: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { G: () => IFrame }); + __webpack_require__(18178), + __webpack_require__(43105), + __webpack_require__(96928), + __webpack_require__(61229), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886); + var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2784), + global__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35048); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var globalWindow = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_13__)().window, + IFrame = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(IFrame, _Component); + var _super = _createSuper(IFrame); + function IFrame() { + var _this; + _classCallCheck(this, IFrame); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ((_this = _super.call.apply(_super, [this].concat(args))).iframe = null), _this; + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(IFrame, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + var id = this.props.id; + this.iframe = globalWindow.document.getElementById(id); + }, + }, + { + key: 'shouldComponentUpdate', + value: function shouldComponentUpdate(nextProps) { + var scale = nextProps.scale; + return ( + scale !== this.props.scale && + this.setIframeBodyStyle({ + width: ''.concat(100 * scale, '%'), + height: ''.concat(100 * scale, '%'), + transform: 'scale('.concat(1 / scale, ')'), + transformOrigin: 'top left', + }), + !1 + ); + }, + }, + { + key: 'setIframeBodyStyle', + value: function setIframeBodyStyle(style) { + return Object.assign(this.iframe.contentDocument.body.style, style); + }, + }, + { + key: 'render', + value: function render() { + var _this$props = this.props, + id = _this$props.id, + title = _this$props.title, + src = _this$props.src, + allowFullScreen = _this$props.allowFullScreen, + rest = + (_this$props.scale, + _objectWithoutProperties(_this$props, ['id', 'title', 'src', 'allowFullScreen', 'scale'])); + return react__WEBPACK_IMPORTED_MODULE_12__.createElement( + 'iframe', + _extends({ id, title, src, allowFullScreen, loading: 'lazy' }, rest), + ); + }, + }, + ]), + IFrame + ); + })(react__WEBPACK_IMPORTED_MODULE_12__.Component); + IFrame.displayName = 'IFrame'; + }, + 52117: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { _: () => IconItem, L: () => IconGallery }); + __webpack_require__(43105), __webpack_require__(26936), __webpack_require__(34769), __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77439), + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4494), + _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77205); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var ItemLabel = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref) { + var theme = _ref.theme; + return { + fontFamily: theme.typography.fonts.base, + fontSize: theme.typography.size.s2, + color: theme.color.defaultText, + marginLeft: 10, + lineHeight: 1.2, + }; + }), + ItemSpecimen = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref2) { + var theme = _ref2.theme; + return Object.assign({}, (0, _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_6__.a)(theme), { + overflow: 'hidden', + height: 40, + width: 40, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + flex: 'none', + '> img, > svg': { width: 20, height: 20 }, + }); + }), + Item = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div({ + display: 'inline-flex', + flexDirection: 'row', + alignItems: 'center', + flex: '0 1 calc(20% - 10px)', + minWidth: 120, + margin: '0px 10px 30px 0', + }), + List = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div({ display: 'flex', flexFlow: 'row wrap' }), + IconItem = function IconItem(_ref3) { + var name = _ref3.name, + children = _ref3.children; + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Item, + null, + react__WEBPACK_IMPORTED_MODULE_4__.createElement(ItemSpecimen, null, children), + react__WEBPACK_IMPORTED_MODULE_4__.createElement(ItemLabel, null, name), + ); + }; + IconItem.displayName = 'IconItem'; + var IconGallery = function IconGallery(_ref4) { + var children = _ref4.children, + props = _objectWithoutProperties(_ref4, ['children']); + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_7__.i9, + null, + react__WEBPACK_IMPORTED_MODULE_4__.createElement( + List, + _extends({}, props, { className: 'docblock-icongallery' }), + children, + ), + ); + }; + IconGallery.displayName = 'IconGallery'; + }, + 60821: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { M: () => Preview, n: () => PreviewSkeleton }); + __webpack_require__(25047), + __webpack_require__(43105), + __webpack_require__(18178), + __webpack_require__(73439), + __webpack_require__(58188), + __webpack_require__(95342), + __webpack_require__(16781), + __webpack_require__(43450), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233); + var react = __webpack_require__(2784), + polished_esm = __webpack_require__(1039), + esm = __webpack_require__(77439), + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + BlockBackgroundStyles = __webpack_require__(77205), + Source = __webpack_require__(31509), + ActionBar = __webpack_require__(97408), + bar = __webpack_require__(37241), + icon = __webpack_require__(35016), + bar_button = __webpack_require__(82269); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Zoom = function Zoom(_ref) { + var zoom = _ref.zoom, + resetZoom = _ref.resetZoom; + return react.createElement( + react.Fragment, + null, + react.createElement( + bar_button.hU, + { + key: 'zoomin', + onClick: function onClick(e) { + e.preventDefault(), zoom(0.8); + }, + title: 'Zoom in', + }, + react.createElement(icon.P, { icon: 'zoom' }), + ), + react.createElement( + bar_button.hU, + { + key: 'zoomout', + onClick: function onClick(e) { + e.preventDefault(), zoom(1.25); + }, + title: 'Zoom out', + }, + react.createElement(icon.P, { icon: 'zoomout' }), + ), + react.createElement( + bar_button.hU, + { + key: 'zoomreset', + onClick: function onClick(e) { + e.preventDefault(), resetZoom(); + }, + title: 'Reset zoom', + }, + react.createElement(icon.P, { icon: 'zoomreset' }), + ), + ); + }, + Eject = function Eject(_ref2) { + var baseUrl = _ref2.baseUrl, + storyId = _ref2.storyId; + return react.createElement( + bar_button.hU, + { + key: 'opener', + href: ''.concat(baseUrl, '?id=').concat(storyId), + target: '_blank', + title: 'Open canvas in new tab', + }, + react.createElement(icon.P, { icon: 'share' }), + ); + }; + Eject.displayName = 'Eject'; + var Bar = (0, esm.styled)(bar.j)({ + position: 'absolute', + left: 0, + right: 0, + top: 0, + transition: 'transform .2s linear', + }), + Toolbar = function Toolbar(_ref3) { + var isLoading = _ref3.isLoading, + storyId = _ref3.storyId, + baseUrl = _ref3.baseUrl, + zoom = _ref3.zoom, + resetZoom = _ref3.resetZoom, + rest = _objectWithoutProperties(_ref3, ['isLoading', 'storyId', 'baseUrl', 'zoom', 'resetZoom']); + return react.createElement( + Bar, + rest, + react.createElement( + react.Fragment, + { key: 'left' }, + isLoading + ? [1, 2, 3].map(function (key) { + return react.createElement(bar_button.Z$, { key }); + }) + : react.createElement(Zoom, { zoom, resetZoom }), + ), + react.createElement( + react.Fragment, + { key: 'right' }, + storyId && + (isLoading + ? react.createElement(bar_button.Z$, null) + : react.createElement(Eject, { storyId, baseUrl })), + ), + ); + }; + Toolbar.displayName = 'Toolbar'; + var ZoomContext = __webpack_require__(62930), + Zoom_Zoom = __webpack_require__(7057), + Story = __webpack_require__(52659); + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function Preview_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function Preview_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + var ChildrenContainer = esm.styled.div( + function (_ref) { + var isColumn = _ref.isColumn, + columns = _ref.columns, + layout = _ref.layout; + return { + display: isColumn || !columns ? 'block' : 'flex', + position: 'relative', + flexWrap: 'wrap', + overflow: 'auto', + flexDirection: isColumn ? 'column' : 'row', + '& .innerZoomElementWrapper > *': isColumn + ? { width: 'fullscreen' !== layout ? 'calc(100% - 20px)' : '100%', display: 'block' } + : { maxWidth: 'fullscreen' !== layout ? 'calc(100% - 20px)' : '100%', display: 'inline-block' }, + }; + }, + function (_ref2) { + var _ref2$layout = _ref2.layout, + layout = void 0 === _ref2$layout ? 'padded' : _ref2$layout; + return 'centered' === layout || 'padded' === layout + ? { + padding: '30px 20px', + margin: -10, + '& .innerZoomElementWrapper > *': { width: 'auto', border: '10px solid transparent!important' }, + } + : {}; + }, + function (_ref3) { + var _ref3$layout = _ref3.layout; + return 'centered' === (void 0 === _ref3$layout ? 'padded' : _ref3$layout) + ? { + display: 'flex', + justifyContent: 'center', + justifyItems: 'center', + alignContent: 'center', + alignItems: 'center', + } + : {}; + }, + function (_ref4) { + var columns = _ref4.columns; + return columns && columns > 1 + ? { '.innerZoomElementWrapper > *': { minWidth: 'calc(100% / '.concat(columns, ' - 20px)') } } + : {}; + }, + ), + StyledSource = (0, esm.styled)(Source.Hw)(function (_ref5) { + var theme = _ref5.theme; + return { + margin: 0, + borderTopLeftRadius: 0, + borderTopRightRadius: 0, + borderBottomLeftRadius: theme.appBorderRadius, + borderBottomRightRadius: theme.appBorderRadius, + border: 'none', + background: + 'light' === theme.base ? 'rgba(0, 0, 0, 0.85)' : (0, polished_esm._j)(0.05, theme.background.content), + color: theme.color.lightest, + button: { + background: + 'light' === theme.base ? 'rgba(0, 0, 0, 0.85)' : (0, polished_esm._j)(0.05, theme.background.content), + }, + }; + }), + PreviewContainer = esm.styled.div( + function (_ref6) { + var theme = _ref6.theme, + withSource = _ref6.withSource, + isExpanded = _ref6.isExpanded; + return Object.assign( + { position: 'relative', overflow: 'hidden', margin: '25px 0 40px' }, + (0, BlockBackgroundStyles.a)(theme), + { + borderBottomLeftRadius: withSource && isExpanded && 0, + borderBottomRightRadius: withSource && isExpanded && 0, + borderBottomWidth: isExpanded && 0, + }, + ); + }, + function (_ref7) { + return _ref7.withToolbar && { paddingTop: 40 }; + }, + ); + function getStoryId(children) { + if (1 === react.Children.count(children)) { + var elt = children; + if (elt.props) return elt.props.id; + } + return null; + } + var PositionedToolbar = (0, esm.styled)(Toolbar)({ position: 'absolute', top: 0, left: 0, right: 0, height: 40 }), + Relative = esm.styled.div({ overflow: 'hidden', position: 'relative' }), + Preview = function Preview(_ref8) { + var isLoading = _ref8.isLoading, + isColumn = _ref8.isColumn, + columns = _ref8.columns, + children = _ref8.children, + withSource = _ref8.withSource, + _ref8$withToolbar = _ref8.withToolbar, + withToolbar = void 0 !== _ref8$withToolbar && _ref8$withToolbar, + _ref8$isExpanded = _ref8.isExpanded, + isExpanded = void 0 !== _ref8$isExpanded && _ref8$isExpanded, + additionalActions = _ref8.additionalActions, + className = _ref8.className, + props = Preview_objectWithoutProperties(_ref8, [ + 'isLoading', + 'isColumn', + 'columns', + 'children', + 'withSource', + 'withToolbar', + 'isExpanded', + 'additionalActions', + 'className', + ]), + _useState2 = _slicedToArray((0, react.useState)(isExpanded), 2), + expanded = _useState2[0], + _getSource = (function getSource(withSource, expanded, setExpanded) { + switch (!0) { + case !(!withSource || !withSource.error): + return { + source: null, + actionItem: { + title: 'No code available', + className: 'docblock-code-toggle docblock-code-toggle--disabled', + disabled: !0, + onClick: function onClick() { + return setExpanded(!1); + }, + }, + }; + case expanded: + return { + source: react.createElement(StyledSource, _extends({}, withSource, { dark: !0 })), + actionItem: { + title: 'Hide code', + className: 'docblock-code-toggle docblock-code-toggle--expanded', + onClick: function onClick() { + return setExpanded(!1); + }, + }, + }; + default: + return { + source: react.createElement(StyledSource, _extends({}, withSource, { dark: !0 })), + actionItem: { + title: 'Show code', + className: 'docblock-code-toggle', + onClick: function onClick() { + return setExpanded(!0); + }, + }, + }; + } + })(withSource, expanded, _useState2[1]), + source = _getSource.source, + actionItem = _getSource.actionItem, + _useState4 = _slicedToArray((0, react.useState)(1), 2), + scale = _useState4[0], + setScale = _useState4[1], + previewClasses = [className].concat(['sbdocs', 'sbdocs-preview']), + defaultActionItems = withSource ? [actionItem] : [], + _useState6 = _slicedToArray( + (0, react.useState)(additionalActions ? _toConsumableArray(additionalActions) : []), + 2, + ), + additionalActionItems = _useState6[0], + setAdditionalActionItems = _useState6[1], + actionItems = [].concat(defaultActionItems, _toConsumableArray(additionalActionItems)), + layout = (function getLayout(children) { + return children.reduce(function (result, c) { + return ( + result || + ('string' == typeof c || 'number' == typeof c + ? 'padded' + : (c.props && c.props.parameters && c.props.parameters.layout) || 'padded') + ); + }, void 0); + })(1 === react.Children.count(children) ? [children] : children), + globalWindow = window_default().window, + copyToClipboard = (0, react.useCallback)( + (function () { + var _ref9 = (function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + })( + regeneratorRuntime.mark(function _callee(text) { + var _yield$import; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + return ( + (_context.next = 2), + __webpack_require__.e(418).then(__webpack_require__.bind(__webpack_require__, 4748)) + ); + case 2: + (_yield$import = _context.sent), (0, _yield$import.createCopyToClipboardFunction)(); + case 5: + case 'end': + return _context.stop(); + } + }, _callee); + }), + ); + return function (_x) { + return _ref9.apply(this, arguments); + }; + })(), + [], + ); + return react.createElement( + PreviewContainer, + _extends({ withSource, withToolbar }, props, { className: previewClasses.join(' ') }), + withToolbar && + react.createElement(PositionedToolbar, { + isLoading, + border: !0, + zoom: function zoom(z) { + return setScale(scale * z); + }, + resetZoom: function resetZoom() { + return setScale(1); + }, + storyId: getStoryId(children), + baseUrl: './iframe.html', + }), + react.createElement( + ZoomContext.m.Provider, + { value: { scale } }, + react.createElement( + Relative, + { + className: 'docs-story', + onCopyCapture: + withSource && + function onCopyCapture(e) { + e.preventDefault(), + 0 === + additionalActionItems.filter(function (item) { + return 'Copied' === item.title; + }).length && + copyToClipboard(source.props.code).then(function () { + setAdditionalActionItems( + [].concat(_toConsumableArray(additionalActionItems), [ + { title: 'Copied', onClick: function onClick() {} }, + ]), + ), + globalWindow.setTimeout(function () { + return setAdditionalActionItems( + additionalActionItems.filter(function (item) { + return 'Copied' !== item.title; + }), + ); + }, 1500); + }); + }, + }, + react.createElement( + ChildrenContainer, + { isColumn: isColumn || !Array.isArray(children), columns, layout }, + react.createElement( + Zoom_Zoom.L.Element, + { scale }, + Array.isArray(children) + ? children.map(function (child, i) { + return react.createElement('div', { key: i }, child); + }) + : react.createElement('div', null, children), + ), + ), + react.createElement(ActionBar.o, { actionItems }), + ), + ), + withSource && expanded && source, + ); + }; + Preview.displayName = 'Preview'; + var StyledPreview = (0, esm.styled)(Preview)(function () { + return { '.docs-story': { paddingTop: 32, paddingBottom: 40 } }; + }), + PreviewSkeleton = function PreviewSkeleton() { + return react.createElement( + StyledPreview, + { isLoading: !0, withToolbar: !0 }, + react.createElement(Story.Cr, null), + ); + }; + PreviewSkeleton.displayName = 'PreviewSkeleton'; + }, + 31509: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + ui: () => SourceError, + Hw: () => Source, + iS: () => StyledSyntaxHighlighter, + }); + __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77439), + _storybook_theming__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92350), + _storybook_theming__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43352), + _storybook_theming__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43624), + _EmptyBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35597), + _syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(35007); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var SourceError, + StyledSyntaxHighlighter = (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_4__.styled)( + _syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_5__.d, + )(function (_ref) { + var theme = _ref.theme; + return { + fontSize: ''.concat(theme.typography.size.s2 - 1, 'px'), + lineHeight: '19px', + margin: '25px 0 40px', + borderRadius: theme.appBorderRadius, + boxShadow: 'light' === theme.base ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0', + 'pre.prismjs': { padding: 20, background: 'inherit' }, + }; + }); + !(function (SourceError) { + (SourceError.NO_STORY = 'There’s no story here.'), + (SourceError.SOURCE_UNAVAILABLE = 'Oh no! The source is not available.'); + })(SourceError || (SourceError = {})); + var SourceSkeletonWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_4__.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + background: theme.background.content, + borderRadius: theme.appBorderRadius, + border: '1px solid '.concat(theme.appBorderColor), + boxShadow: 'light' === theme.base ? 'rgba(0, 0, 0, 0.10) 0 1px 3px 0' : 'rgba(0, 0, 0, 0.20) 0 2px 5px 0', + margin: '25px 0 40px', + padding: '20px 20px 20px 22px', + }; + }), + SourceSkeletonPlaceholder = _storybook_theming__WEBPACK_IMPORTED_MODULE_4__.styled.div(function (_ref3) { + var theme = _ref3.theme; + return { + animation: ''.concat(theme.animation.glow, ' 1.5s ease-in-out infinite'), + background: theme.appBorderColor, + height: 17, + marginTop: 1, + width: '60%', + '&:first-child': { margin: 0 }, + }; + }), + SourceSkeleton = function SourceSkeleton() { + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + SourceSkeletonWrapper, + null, + react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder, null), + react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder, { style: { width: '80%' } }), + react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder, { style: { width: '30%' } }), + react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeletonPlaceholder, { style: { width: '80%' } }), + ); + }; + SourceSkeleton.displayName = 'SourceSkeleton'; + var Source = function Source(props) { + var _ref4 = props, + isLoading = _ref4.isLoading, + error = _ref4.error; + if (isLoading) return react__WEBPACK_IMPORTED_MODULE_3__.createElement(SourceSkeleton, null); + if (error) + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + _EmptyBlock__WEBPACK_IMPORTED_MODULE_6__.V, + null, + error, + ); + var _ref5 = props, + language = _ref5.language, + code = _ref5.code, + dark = _ref5.dark, + format = _ref5.format, + rest = _objectWithoutProperties(_ref5, ['language', 'code', 'dark', 'format']), + syntaxHighlighter = react__WEBPACK_IMPORTED_MODULE_3__.createElement( + StyledSyntaxHighlighter, + _extends({ bordered: !0, copyable: !0, format, language, className: 'docblock-source' }, rest), + code, + ); + if (void 0 === dark) return syntaxHighlighter; + var overrideTheme = dark + ? _storybook_theming__WEBPACK_IMPORTED_MODULE_7__.n.dark + : _storybook_theming__WEBPACK_IMPORTED_MODULE_7__.n.light; + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.f6, + { theme: (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.O)(overrideTheme) }, + syntaxHighlighter, + ); + }; + (Source.displayName = 'Source'), (Source.defaultProps = { format: !1 }); + }, + 52659: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { nS: () => StoryError, oG: () => Story, Cr: () => StorySkeleton }); + __webpack_require__(18178), __webpack_require__(34769), __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784), + _IFrame__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42732), + _EmptyBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35597), + _ZoomContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62930), + ___WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54177); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var StoryError; + !(function (StoryError) { + StoryError.NO_STORY = 'No component or story to display'; + })(StoryError || (StoryError = {})); + var InlineStory = function InlineStory(_ref) { + var storyFn = _ref.storyFn, + height = _ref.height, + id = _ref.id; + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + react__WEBPACK_IMPORTED_MODULE_3__.Fragment, + null, + height + ? react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'style', + null, + '#story--'.concat(id, ' { min-height: ').concat(height, '; transform: translateZ(0); overflow: auto }'), + ) + : null, + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + react__WEBPACK_IMPORTED_MODULE_3__.Fragment, + null, + storyFn + ? (0, react__WEBPACK_IMPORTED_MODULE_3__.createElement)(storyFn) + : react__WEBPACK_IMPORTED_MODULE_3__.createElement( + _EmptyBlock__WEBPACK_IMPORTED_MODULE_4__.V, + null, + (function MISSING_STORY(id) { + return id ? 'Story "'.concat(id, '" doesn\'t exist.') : StoryError.NO_STORY; + })(id), + ), + ), + ); + }; + InlineStory.displayName = 'InlineStory'; + var IFrameStory = function IFrameStory(_ref2) { + var id = _ref2.id, + title = _ref2.title, + _ref2$height = _ref2.height, + height = void 0 === _ref2$height ? '500px' : _ref2$height; + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'div', + { style: { width: '100%', height } }, + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + _ZoomContext__WEBPACK_IMPORTED_MODULE_5__.m.Consumer, + null, + function (_ref3) { + var scale = _ref3.scale; + return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_IFrame__WEBPACK_IMPORTED_MODULE_6__.G, { + key: 'iframe', + id: 'iframe--'.concat(id), + title, + src: ''.concat('iframe.html', '?id=').concat(id, '&viewMode=story'), + allowFullScreen: !0, + scale, + style: { width: '100%', height: '100%', border: '0 none' }, + }); + }, + ), + ); + }; + IFrameStory.displayName = 'IFrameStory'; + var Story = function Story(_ref4) { + _ref4.children; + var error = _ref4.error, + inline = _ref4.inline, + props = _objectWithoutProperties(_ref4, ['children', 'error', 'inline']), + id = props.id, + title = props.title, + height = props.height; + return error + ? react__WEBPACK_IMPORTED_MODULE_3__.createElement(_EmptyBlock__WEBPACK_IMPORTED_MODULE_4__.V, null, error) + : inline + ? react__WEBPACK_IMPORTED_MODULE_3__.createElement(InlineStory, props) + : react__WEBPACK_IMPORTED_MODULE_3__.createElement(IFrameStory, { id, title, height }); + }, + StorySkeleton = function StorySkeleton() { + return react__WEBPACK_IMPORTED_MODULE_3__.createElement(___WEBPACK_IMPORTED_MODULE_7__.a, null); + }; + StorySkeleton.displayName = 'StorySkeleton'; + }, + 99259: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { G: () => Typeset }); + __webpack_require__(43105), __webpack_require__(43450), __webpack_require__(34769), __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1039), + _typography_shared__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29660), + _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77205); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Label = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref) { + var theme = _ref.theme; + return { + marginRight: 30, + fontSize: ''.concat(theme.typography.size.s1, 'px'), + color: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_6__.DZ)(0.4, theme.color.defaultText) + : (0, polished__WEBPACK_IMPORTED_MODULE_6__.DZ)(0.6, theme.color.defaultText), + }; + }), + Sample = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div({ + overflow: 'hidden', + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + }), + TypeSpecimen = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div({ + display: 'flex', + flexDirection: 'row', + alignItems: 'baseline', + '&:not(:last-child)': { marginBottom: '1rem' }, + }), + Wrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div( + _typography_shared__WEBPACK_IMPORTED_MODULE_7__.YX, + function (_ref2) { + var theme = _ref2.theme; + return Object.assign({}, (0, _BlockBackgroundStyles__WEBPACK_IMPORTED_MODULE_8__.a)(theme), { + margin: '25px 0 40px', + padding: '30px 20px', + }); + }, + ), + Typeset = function Typeset(_ref3) { + var fontFamily = _ref3.fontFamily, + fontSizes = _ref3.fontSizes, + fontWeight = _ref3.fontWeight, + sampleText = _ref3.sampleText, + props = _objectWithoutProperties(_ref3, ['fontFamily', 'fontSizes', 'fontWeight', 'sampleText']); + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Wrapper, + _extends({}, props, { className: 'docblock-typeset' }), + fontSizes.map(function (size) { + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + TypeSpecimen, + { key: size }, + react__WEBPACK_IMPORTED_MODULE_4__.createElement(Label, null, size), + react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Sample, + { style: { fontFamily, fontSize: size, fontWeight, lineHeight: 1.2 } }, + sampleText || 'Was he a beast if music could move him so?', + ), + ); + }), + ); + }; + Typeset.displayName = 'Typeset'; + }, + 62930: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { m: () => ZoomContext }); + var ZoomContext = (0, __webpack_require__(2784).createContext)({ scale: 1 }); + }, + 79092: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + Description: () => _Description__WEBPACK_IMPORTED_MODULE_0__.d, + DocsContent: () => _DocsPage__WEBPACK_IMPORTED_MODULE_1__.s2, + DocsPageWrapper: () => _DocsPage__WEBPACK_IMPORTED_MODULE_1__.vT, + DocsWrapper: () => _DocsPage__WEBPACK_IMPORTED_MODULE_1__.DM, + Subtitle: () => _DocsPage__WEBPACK_IMPORTED_MODULE_1__.QE, + Title: () => _DocsPage__WEBPACK_IMPORTED_MODULE_1__.Dx, + Preview: () => _Preview__WEBPACK_IMPORTED_MODULE_2__.M, + PreviewSkeleton: () => _Preview__WEBPACK_IMPORTED_MODULE_2__.n, + Source: () => _Source__WEBPACK_IMPORTED_MODULE_4__.Hw, + SourceError: () => _Source__WEBPACK_IMPORTED_MODULE_4__.ui, + StyledSyntaxHighlighter: () => _Source__WEBPACK_IMPORTED_MODULE_4__.iS, + Story: () => _Story__WEBPACK_IMPORTED_MODULE_5__.oG, + StoryError: () => _Story__WEBPACK_IMPORTED_MODULE_5__.nS, + StorySkeleton: () => _Story__WEBPACK_IMPORTED_MODULE_5__.Cr, + IFrame: () => _IFrame__WEBPACK_IMPORTED_MODULE_6__.G, + Typeset: () => _Typeset__WEBPACK_IMPORTED_MODULE_7__.G, + ColorItem: () => _ColorPalette__WEBPACK_IMPORTED_MODULE_8__.c, + ColorPalette: () => _ColorPalette__WEBPACK_IMPORTED_MODULE_8__.V, + IconGallery: () => _IconGallery__WEBPACK_IMPORTED_MODULE_9__.L, + IconItem: () => _IconGallery__WEBPACK_IMPORTED_MODULE_9__._, + }); + var _Description__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(58273), + _DocsPage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61583), + _Preview__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60821), + _ArgsTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(46215), + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _ArgsTable__WEBPACK_IMPORTED_MODULE_3__) + [ + 'default', + 'Description', + 'DocsContent', + 'DocsPageWrapper', + 'DocsWrapper', + 'Subtitle', + 'Title', + 'Preview', + 'PreviewSkeleton', + ].indexOf(__WEBPACK_IMPORT_KEY__) < 0 && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _ArgsTable__WEBPACK_IMPORTED_MODULE_3__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _Source__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31509), + _Story__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52659), + _IFrame__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42732), + _Typeset__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99259), + _ColorPalette__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77444), + _IconGallery__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(52117); + }, + 92796: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { v: () => StorybookIcon }); + __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2784); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + var StorybookIcon = function StorybookIcon(_ref) { + var props = Object.assign({}, _ref); + return react__WEBPACK_IMPORTED_MODULE_1__.createElement( + 'svg', + _extends({ viewBox: '0 0 64 64' }, props), + react__WEBPACK_IMPORTED_MODULE_1__.createElement('title', null, 'Storybook icon'), + react__WEBPACK_IMPORTED_MODULE_1__.createElement( + 'g', + { id: 'Artboard', stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, + react__WEBPACK_IMPORTED_MODULE_1__.createElement('path', { + d: + 'M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z', + id: 'path-1', + fill: '#FF4785', + fillRule: 'nonzero', + }), + react__WEBPACK_IMPORTED_MODULE_1__.createElement('path', { + d: + 'M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z', + id: 'path9_fill-path', + fill: '#FFFFFF', + fillRule: 'nonzero', + }), + react__WEBPACK_IMPORTED_MODULE_1__.createElement('path', { + d: + 'M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z', + id: 'Path', + fill: '#FFFFFF', + }), + ), + ); + }; + StorybookIcon.displayName = 'StorybookIcon'; + }, + 65810: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { G: () => StorybookLogo }); + __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var StorybookLogo = function StorybookLogo(_ref) { + var alt = _ref.alt, + props = _objectWithoutProperties(_ref, ['alt']); + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'svg', + _extends({ width: '200px', height: '40px', viewBox: '0 0 200 40' }, props, { role: 'img' }), + alt ? react__WEBPACK_IMPORTED_MODULE_3__.createElement('title', null, alt) : null, + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'defs', + null, + react__WEBPACK_IMPORTED_MODULE_3__.createElement('path', { + d: + 'M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z', + id: 'a', + }), + ), + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'g', + { fill: 'none', fillRule: 'evenodd' }, + react__WEBPACK_IMPORTED_MODULE_3__.createElement('path', { + d: + 'M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z', + fill: 'currentColor', + }), + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + 'mask', + { id: 'b', fill: '#fff' }, + react__WEBPACK_IMPORTED_MODULE_3__.createElement('use', { xlinkHref: '#a' }), + ), + react__WEBPACK_IMPORTED_MODULE_3__.createElement('use', { + fill: '#FF4785', + fillRule: 'nonzero', + xlinkHref: '#a', + }), + react__WEBPACK_IMPORTED_MODULE_3__.createElement('path', { + d: + 'M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z', + fill: '#FFF', + fillRule: 'nonzero', + mask: 'url(#b)', + }), + ), + ); + }; + StorybookLogo.displayName = 'StorybookLogo'; + }, + 3888: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { m: () => BooleanControl }); + __webpack_require__(35744), __webpack_require__(26936); + var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2784), + polished__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1039), + _storybook_theming__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77439), + _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98199), + _form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(44476), + Label = _storybook_theming__WEBPACK_IMPORTED_MODULE_3__.styled.label(function (_ref) { + var theme = _ref.theme; + return { + lineHeight: '18px', + alignItems: 'center', + marginBottom: 8, + display: 'inline-block', + position: 'relative', + whiteSpace: 'nowrap', + background: ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_4__.jb)(0.05, theme.appBorderColor)), + borderRadius: '3em', + padding: 1, + input: { + appearance: 'none', + width: '100%', + height: '100%', + position: 'absolute', + left: 0, + top: 0, + margin: 0, + padding: 0, + border: 'none', + background: 'transparent', + cursor: 'pointer', + borderRadius: '3em', + '&:focus': { + outline: 'none', + boxShadow: ''.concat(theme.color.secondary, ' 0 0 0 1px inset !important'), + }, + }, + span: { + textAlign: 'center', + fontSize: theme.typography.size.s1, + fontWeight: theme.typography.weight.bold, + lineHeight: '1', + cursor: 'pointer', + display: 'inline-block', + padding: '7px 15px', + transition: 'all 100ms ease-out', + userSelect: 'none', + borderRadius: '3em', + color: (0, polished__WEBPACK_IMPORTED_MODULE_4__.DZ)(0.4, theme.color.defaultText), + background: 'transparent', + '&:hover': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_4__.jb)(0.3, theme.appBorderColor), + ' 0 0 0 1px inset', + ), + }, + '&:active': { + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_4__.jb)(0.05, theme.appBorderColor), + ' 0 0 0 2px inset', + ), + color: (0, polished__WEBPACK_IMPORTED_MODULE_4__.jb)(1, theme.appBorderColor), + }, + '&:first-of-type': { paddingRight: 8 }, + '&:last-of-type': { paddingLeft: 8 }, + }, + 'input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type': { + background: theme.background.app, + boxShadow: ''.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_4__.jb)(0.1, theme.appBorderColor), + ' 0 0 2px', + ), + color: theme.color.defaultText, + padding: '7px 15px', + }, + }; + }), + BooleanControl = function BooleanControl(_ref2) { + var name = _ref2.name, + value = _ref2.value, + _onChange = _ref2.onChange, + onBlur = _ref2.onBlur, + onFocus = _ref2.onFocus, + onSetFalse = (0, react__WEBPACK_IMPORTED_MODULE_2__.useCallback)( + function () { + return _onChange(!1); + }, + [_onChange], + ); + return void 0 === value + ? react__WEBPACK_IMPORTED_MODULE_2__.createElement( + _form__WEBPACK_IMPORTED_MODULE_5__.l.Button, + { id: (0, _helpers__WEBPACK_IMPORTED_MODULE_6__.O)(name), onClick: onSetFalse }, + 'Set boolean', + ) + : react__WEBPACK_IMPORTED_MODULE_2__.createElement( + Label, + { htmlFor: name, title: value ? 'Change to false' : 'Change to true' }, + react__WEBPACK_IMPORTED_MODULE_2__.createElement('input', { + id: (0, _helpers__WEBPACK_IMPORTED_MODULE_6__.d)(name), + type: 'checkbox', + onChange: function onChange(e) { + return _onChange(e.target.checked); + }, + checked: value || !1, + name, + onBlur, + onFocus, + }), + react__WEBPACK_IMPORTED_MODULE_2__.createElement('span', null, 'False'), + react__WEBPACK_IMPORTED_MODULE_2__.createElement('span', null, 'True'), + ); + }; + BooleanControl.displayName = 'BooleanControl'; + }, + 30700: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { E: () => DateControl }); + __webpack_require__(48319), + __webpack_require__(77950), + __webpack_require__(32501), + __webpack_require__(18178), + __webpack_require__(26936), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(77439), + _form__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(44476), + _helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(98199); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var FlexSpaced = _storybook_theming__WEBPACK_IMPORTED_MODULE_14__.styled.div(function (_ref) { + return { + flex: 1, + display: 'flex', + input: { + marginLeft: 10, + flex: 1, + height: 32, + '&::-webkit-calendar-picker-indicator': { + opacity: 0.5, + height: 12, + filter: 'light' === _ref.theme.base ? void 0 : 'invert(1)', + }, + }, + 'input:first-of-type': { marginLeft: 0 }, + }; + }), + DateControl = function DateControl(_ref2) { + var name = _ref2.name, + value = _ref2.value, + onChange = _ref2.onChange, + onFocus = _ref2.onFocus, + onBlur = _ref2.onBlur, + _useState2 = _slicedToArray((0, react__WEBPACK_IMPORTED_MODULE_13__.useState)(!0), 2), + valid = _useState2[0], + setValid = _useState2[1], + dateRef = (0, react__WEBPACK_IMPORTED_MODULE_13__.useRef)(), + timeRef = (0, react__WEBPACK_IMPORTED_MODULE_13__.useRef)(); + (0, react__WEBPACK_IMPORTED_MODULE_13__.useEffect)( + function () { + !1 !== valid && + (dateRef && + dateRef.current && + (dateRef.current.value = (function formatDate(value) { + var date = new Date(value), + year = '000'.concat(date.getFullYear()).slice(-4), + month = '0'.concat(date.getMonth() + 1).slice(-2), + day = '0'.concat(date.getDate()).slice(-2); + return ''.concat(year, '-').concat(month, '-').concat(day); + })(value)), + timeRef && + timeRef.current && + (timeRef.current.value = (function formatTime(value) { + var date = new Date(value), + hours = '0'.concat(date.getHours()).slice(-2), + minutes = '0'.concat(date.getMinutes()).slice(-2); + return ''.concat(hours, ':').concat(minutes); + })(value))); + }, + [value], + ); + var controlId = (0, _helpers__WEBPACK_IMPORTED_MODULE_15__.d)(name); + return react__WEBPACK_IMPORTED_MODULE_13__.createElement( + FlexSpaced, + null, + react__WEBPACK_IMPORTED_MODULE_13__.createElement(_form__WEBPACK_IMPORTED_MODULE_16__.l.Input, { + type: 'date', + max: '9999-12-31', + ref: dateRef, + id: ''.concat(controlId, '-date'), + name: ''.concat(controlId, '-date'), + onChange: function onDateChange(e) { + var parsed = (function parseDate(value) { + var _value$split2 = _slicedToArray(value.split('-'), 3), + year = _value$split2[0], + month = _value$split2[1], + day = _value$split2[2], + result = new Date(); + return result.setFullYear(parseInt(year, 10), parseInt(month, 10) - 1, parseInt(day, 10)), result; + })(e.target.value), + result = new Date(value); + result.setFullYear(parsed.getFullYear(), parsed.getMonth(), parsed.getDate()); + var time = result.getTime(); + time && onChange(time), setValid(!!time); + }, + onFocus, + onBlur, + }), + react__WEBPACK_IMPORTED_MODULE_13__.createElement(_form__WEBPACK_IMPORTED_MODULE_16__.l.Input, { + type: 'time', + id: ''.concat(controlId, '-time'), + name: ''.concat(controlId, '-time'), + ref: timeRef, + onChange: function onTimeChange(e) { + var parsed = (function parseTime(value) { + var _value$split4 = _slicedToArray(value.split(':'), 2), + hours = _value$split4[0], + minutes = _value$split4[1], + result = new Date(); + return result.setHours(parseInt(hours, 10)), result.setMinutes(parseInt(minutes, 10)), result; + })(e.target.value), + result = new Date(value); + result.setHours(parsed.getHours()), result.setMinutes(parsed.getMinutes()); + var time = result.getTime(); + time && onChange(time), setValid(!!time); + }, + onFocus, + onBlur, + }), + valid ? null : react__WEBPACK_IMPORTED_MODULE_13__.createElement('div', null, 'invalid'), + ); + }; + DateControl.displayName = 'DateControl'; + }, + 63654: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { A: () => FilesControl }); + __webpack_require__(1939), + __webpack_require__(44112), + __webpack_require__(14121), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(26936), + __webpack_require__(43450), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(77439), + _form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(44476), + _helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(98199), + FileInput = (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_11__.styled)( + _form__WEBPACK_IMPORTED_MODULE_12__.l.Input, + )({ padding: 10 }); + var FilesControl = function FilesControl(_ref) { + var onChange = _ref.onChange, + name = _ref.name, + _ref$accept = _ref.accept, + accept = void 0 === _ref$accept ? 'image/*' : _ref$accept, + value = _ref.value; + return react__WEBPACK_IMPORTED_MODULE_10__.createElement(FileInput, { + id: (0, _helpers__WEBPACK_IMPORTED_MODULE_13__.d)(name), + type: 'file', + name, + multiple: !0, + onChange: function handleFileChange(e) { + if (e.target.files) { + var fileUrls = Array.from(e.target.files).map(function (file) { + return URL.createObjectURL(file); + }); + onChange(fileUrls), + (function revokeOldUrls(urls) { + urls.forEach(function (url) { + url.startsWith('blob:') && URL.revokeObjectURL(url); + }); + })(value); + } + }, + accept, + size: 'flex', + }); + }; + FilesControl.displayName = 'FilesControl'; + }, + 63020: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Qc: () => parse, WU: () => format, VW: () => NumberControl }); + __webpack_require__(87412), + __webpack_require__(71245), + __webpack_require__(26936), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(77439), + _form__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44476), + _helpers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(98199); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Wrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.label({ display: 'flex' }), + parse = function parse(value) { + var result = parseFloat(value); + return Number.isNaN(result) ? void 0 : result; + }, + format = function format(value) { + return null != value ? String(value) : ''; + }, + NumberControl = function NumberControl(_ref) { + var name = _ref.name, + value = _ref.value, + onChange = _ref.onChange, + min = _ref.min, + max = _ref.max, + step = _ref.step, + onBlur = _ref.onBlur, + onFocus = _ref.onFocus, + _useState2 = _slicedToArray( + (0, react__WEBPACK_IMPORTED_MODULE_12__.useState)('number' == typeof value ? value : ''), + 2, + ), + inputValue = _useState2[0], + setInputValue = _useState2[1], + _useState4 = _slicedToArray((0, react__WEBPACK_IMPORTED_MODULE_12__.useState)(!1), 2), + forceVisible = _useState4[0], + setForceVisible = _useState4[1], + _useState6 = _slicedToArray((0, react__WEBPACK_IMPORTED_MODULE_12__.useState)(null), 2), + parseError = _useState6[0], + setParseError = _useState6[1], + handleChange = (0, react__WEBPACK_IMPORTED_MODULE_12__.useCallback)( + function (event) { + setInputValue(event.target.value); + var result = parseFloat(event.target.value); + Number.isNaN(result) + ? setParseError(new Error("'".concat(event.target.value, "' is not a number"))) + : (onChange(result), setParseError(null)); + }, + [onChange, setParseError], + ), + onForceVisible = (0, react__WEBPACK_IMPORTED_MODULE_12__.useCallback)( + function () { + setInputValue('0'), onChange(0), setForceVisible(!0); + }, + [setForceVisible], + ), + htmlElRef = (0, react__WEBPACK_IMPORTED_MODULE_12__.useRef)(null); + return ( + (0, react__WEBPACK_IMPORTED_MODULE_12__.useEffect)( + function () { + forceVisible && htmlElRef.current && htmlElRef.current.select(); + }, + [forceVisible], + ), + forceVisible || void 0 !== value + ? react__WEBPACK_IMPORTED_MODULE_12__.createElement( + Wrapper, + null, + react__WEBPACK_IMPORTED_MODULE_12__.createElement(_form__WEBPACK_IMPORTED_MODULE_14__.l.Input, { + ref: htmlElRef, + id: (0, _helpers__WEBPACK_IMPORTED_MODULE_15__.d)(name), + type: 'number', + onChange: handleChange, + size: 'flex', + placeholder: 'Edit number...', + value: inputValue, + valid: parseError ? 'error' : null, + autoFocus: forceVisible, + name, + min, + max, + step, + onFocus, + onBlur, + }), + ) + : react__WEBPACK_IMPORTED_MODULE_12__.createElement( + _form__WEBPACK_IMPORTED_MODULE_14__.l.Button, + { id: (0, _helpers__WEBPACK_IMPORTED_MODULE_15__.O)(name), onClick: onForceVisible }, + 'Set number', + ) + ); + }; + NumberControl.displayName = 'NumberControl'; + }, + 91241: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { V: () => ObjectControl }); + __webpack_require__(26936), + __webpack_require__(39529), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(27233); + var global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + cloneDeep = __webpack_require__(9850), + cloneDeep_default = __webpack_require__.n(cloneDeep), + react = __webpack_require__(2784), + esm = __webpack_require__(77439), + emotion_theming_browser_esm = __webpack_require__(43352), + prop_types = + (__webpack_require__(96928), + __webpack_require__(73439), + __webpack_require__(61229), + __webpack_require__(13980)), + prop_types_default = __webpack_require__.n(prop_types); + __webpack_require__(88233), __webpack_require__(18178), __webpack_require__(67789); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function getObjectType(obj) { + return null === obj || + 'object' !== _typeof(obj) || + Array.isArray(obj) || + 'function' != typeof obj[Symbol.iterator] + ? Object.prototype.toString.call(obj).slice(8, -1) + : 'Iterable'; + } + function isComponentWillChange(oldValue, newValue) { + var oldType = getObjectType(oldValue), + newType = getObjectType(newValue); + return ('Function' === oldType || 'Function' === newType) && newType !== oldType; + } + const inputUsageTypes_KEY = 'key', + inputUsageTypes_VALUE = 'value'; + function JsonValue_typeof(obj) { + return ( + (JsonValue_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonValue_typeof(obj) + ); + } + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonValue_typeof(call) && 'function' != typeof call) + ? _assertThisInitialized(self) + : call; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var JsonValue = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(JsonValue, _Component); + var _super = _createSuper(JsonValue); + function JsonValue(props) { + var _this; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonValue), + (_this = _super.call(this, props)); + var keyPath = [].concat(_toConsumableArray(props.keyPath), [props.name]); + return ( + (_this.state = { + value: props.value, + name: props.name, + keyPath, + deep: props.deep, + editEnabled: !1, + inputRef: null, + }), + (_this.handleEditMode = _this.handleEditMode.bind(_assertThisInitialized(_this))), + (_this.refInput = _this.refInput.bind(_assertThisInitialized(_this))), + (_this.handleCancelEdit = _this.handleCancelEdit.bind(_assertThisInitialized(_this))), + (_this.handleEdit = _this.handleEdit.bind(_assertThisInitialized(_this))), + (_this.onKeydown = _this.onKeydown.bind(_assertThisInitialized(_this))), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonValue, + [ + { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + var _this$state = this.state, + editEnabled = _this$state.editEnabled, + inputRef = _this$state.inputRef, + name = _this$state.name, + value = _this$state.value, + keyPath = _this$state.keyPath, + deep = _this$state.deep, + _this$props = this.props, + isReadOnly = (0, _this$props.readOnly)(name, value, keyPath, deep, _this$props.dataType); + editEnabled && !isReadOnly && 'function' == typeof inputRef.focus && inputRef.focus(); + }, + }, + { + key: 'componentDidMount', + value: function componentDidMount() { + document.addEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + document.removeEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'onKeydown', + value: function onKeydown(event) { + event.altKey || + event.ctrlKey || + event.metaKey || + event.shiftKey || + event.repeat || + (('Enter' !== event.code && 'Enter' !== event.key) || (event.preventDefault(), this.handleEdit()), + ('Escape' !== event.code && 'Escape' !== event.key) || + (event.preventDefault(), this.handleCancelEdit())); + }, + }, + { + key: 'handleEdit', + value: function handleEdit() { + var _this2 = this, + _this$props2 = this.props, + handleUpdateValue = _this$props2.handleUpdateValue, + originalValue = _this$props2.originalValue, + logger = _this$props2.logger, + onSubmitValueParser = _this$props2.onSubmitValueParser, + keyPath = _this$props2.keyPath, + _this$state2 = this.state, + inputRef = _this$state2.inputRef, + name = _this$state2.name, + deep = _this$state2.deep; + if (inputRef) { + var newValue = onSubmitValueParser(!0, keyPath, deep, name, inputRef.value); + handleUpdateValue({ value: newValue, key: name }) + .then(function () { + isComponentWillChange(originalValue, newValue) || _this2.handleCancelEdit(); + }) + .catch(logger.error); + } + }, + }, + { + key: 'handleEditMode', + value: function handleEditMode() { + this.setState({ editEnabled: !0 }); + }, + }, + { + key: 'refInput', + value: function refInput(node) { + this.state.inputRef = node; + }, + }, + { + key: 'handleCancelEdit', + value: function handleCancelEdit() { + this.setState({ editEnabled: !1 }); + }, + }, + { + key: 'render', + value: function render() { + var _this$state3 = this.state, + name = _this$state3.name, + value = _this$state3.value, + editEnabled = _this$state3.editEnabled, + keyPath = _this$state3.keyPath, + deep = _this$state3.deep, + _this$props3 = this.props, + handleRemove = _this$props3.handleRemove, + originalValue = _this$props3.originalValue, + readOnly = _this$props3.readOnly, + dataType = _this$props3.dataType, + getStyle = _this$props3.getStyle, + editButtonElement = _this$props3.editButtonElement, + cancelButtonElement = _this$props3.cancelButtonElement, + inputElementGenerator = _this$props3.inputElementGenerator, + minusMenuElement = _this$props3.minusMenuElement, + comeFromKeyPath = _this$props3.keyPath, + style = getStyle(name, originalValue, keyPath, deep, dataType), + isReadOnly = readOnly(name, originalValue, keyPath, deep, dataType), + isEditing = editEnabled && !isReadOnly, + inputElement = inputElementGenerator( + inputUsageTypes_VALUE, + comeFromKeyPath, + deep, + name, + originalValue, + dataType, + ), + editButtonElementLayout = react.cloneElement(editButtonElement, { onClick: this.handleEdit }), + cancelButtonElementLayout = react.cloneElement(cancelButtonElement, { + onClick: this.handleCancelEdit, + }), + inputElementLayout = react.cloneElement(inputElement, { + ref: this.refInput, + defaultValue: JSON.stringify(originalValue), + }), + minusMenuLayout = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: style.minus, + }); + return react.createElement( + 'li', + { className: 'rejt-value-node', style: style.li }, + react.createElement('span', { className: 'rejt-name', style: style.name }, name, ' : '), + isEditing + ? react.createElement( + 'span', + { className: 'rejt-edit-form', style: style.editForm }, + inputElementLayout, + ' ', + cancelButtonElementLayout, + editButtonElementLayout, + ) + : react.createElement( + 'span', + { + className: 'rejt-value', + style: style.value, + onClick: isReadOnly ? null : this.handleEditMode, + }, + String(value), + ), + !isReadOnly && !isEditing && minusMenuLayout, + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.value !== state.value ? { value: props.value } : null; + }, + }, + ], + ), + JsonValue + ); + })(react.Component); + (JsonValue.displayName = 'JsonValue'), + (JsonValue.propTypes = { + name: prop_types_default().string.isRequired, + value: prop_types_default().any.isRequired, + originalValue: prop_types_default().any, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + handleRemove: prop_types_default().func, + handleUpdateValue: prop_types_default().func, + readOnly: prop_types_default().func.isRequired, + dataType: prop_types_default().string, + getStyle: prop_types_default().func.isRequired, + editButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + inputElementGenerator: prop_types_default().func.isRequired, + minusMenuElement: prop_types_default().element, + logger: prop_types_default().object.isRequired, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonValue.defaultProps = { + keyPath: [], + deep: 0, + handleUpdateValue: function handleUpdateValue() { + return Promise.resolve(); + }, + editButtonElement: react.createElement('button', null, 'e'), + cancelButtonElement: react.createElement('button', null, 'c'), + minusMenuElement: react.createElement('span', null, ' - '), + }); + const components_JsonValue = JsonValue; + __webpack_require__(24905), __webpack_require__(43450); + function JsonAddValue_typeof(obj) { + return ( + (JsonAddValue_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonAddValue_typeof(obj) + ); + } + function JsonAddValue_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function JsonAddValue_setPrototypeOf(o, p) { + return ( + (JsonAddValue_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + JsonAddValue_setPrototypeOf(o, p) + ); + } + function JsonAddValue_createSuper(Derived) { + var hasNativeReflectConstruct = (function JsonAddValue_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = JsonAddValue_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = JsonAddValue_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return JsonAddValue_possibleConstructorReturn(this, result); + }; + } + function JsonAddValue_possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonAddValue_typeof(call) && 'function' != typeof call) + ? JsonAddValue_assertThisInitialized(self) + : call; + } + function JsonAddValue_assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function JsonAddValue_getPrototypeOf(o) { + return ( + (JsonAddValue_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + JsonAddValue_getPrototypeOf(o) + ); + } + var JsonAddValue = (function (_Component) { + !(function JsonAddValue_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && JsonAddValue_setPrototypeOf(subClass, superClass); + })(JsonAddValue, _Component); + var _super = JsonAddValue_createSuper(JsonAddValue); + function JsonAddValue(props) { + var _this; + return ( + (function JsonAddValue_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonAddValue), + ((_this = _super.call(this, props)).state = { inputRefKey: null, inputRefValue: null }), + (_this.refInputValue = _this.refInputValue.bind(JsonAddValue_assertThisInitialized(_this))), + (_this.refInputKey = _this.refInputKey.bind(JsonAddValue_assertThisInitialized(_this))), + (_this.onKeydown = _this.onKeydown.bind(JsonAddValue_assertThisInitialized(_this))), + (_this.onSubmit = _this.onSubmit.bind(JsonAddValue_assertThisInitialized(_this))), + _this + ); + } + return ( + (function JsonAddValue_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && JsonAddValue_defineProperties(Constructor.prototype, protoProps), + staticProps && JsonAddValue_defineProperties(Constructor, staticProps), + Constructor + ); + })(JsonAddValue, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + var _this$state = this.state, + inputRefKey = _this$state.inputRefKey, + inputRefValue = _this$state.inputRefValue, + onlyValue = this.props.onlyValue; + inputRefKey && 'function' == typeof inputRefKey.focus && inputRefKey.focus(), + onlyValue && inputRefValue && 'function' == typeof inputRefValue.focus && inputRefValue.focus(), + document.addEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + document.removeEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'onKeydown', + value: function onKeydown(event) { + event.altKey || + event.ctrlKey || + event.metaKey || + event.shiftKey || + event.repeat || + (('Enter' !== event.code && 'Enter' !== event.key) || (event.preventDefault(), this.onSubmit()), + ('Escape' !== event.code && 'Escape' !== event.key) || + (event.preventDefault(), this.props.handleCancel())); + }, + }, + { + key: 'onSubmit', + value: function onSubmit() { + var _this$props = this.props, + handleAdd = _this$props.handleAdd, + onlyValue = _this$props.onlyValue, + onSubmitValueParser = _this$props.onSubmitValueParser, + keyPath = _this$props.keyPath, + deep = _this$props.deep, + _this$state2 = this.state, + inputRefKey = _this$state2.inputRefKey, + inputRefValue = _this$state2.inputRefValue, + result = {}; + if (!onlyValue) { + if (!inputRefKey.value) return; + result.key = inputRefKey.value; + } + (result.newValue = onSubmitValueParser(!1, keyPath, deep, result.key, inputRefValue.value)), + handleAdd(result); + }, + }, + { + key: 'refInputKey', + value: function refInputKey(node) { + this.state.inputRefKey = node; + }, + }, + { + key: 'refInputValue', + value: function refInputValue(node) { + this.state.inputRefValue = node; + }, + }, + { + key: 'render', + value: function render() { + var _this$props2 = this.props, + handleCancel = _this$props2.handleCancel, + onlyValue = _this$props2.onlyValue, + addButtonElement = _this$props2.addButtonElement, + cancelButtonElement = _this$props2.cancelButtonElement, + inputElementGenerator = _this$props2.inputElementGenerator, + keyPath = _this$props2.keyPath, + deep = _this$props2.deep, + addButtonElementLayout = react.cloneElement(addButtonElement, { onClick: this.onSubmit }), + cancelButtonElementLayout = react.cloneElement(cancelButtonElement, { onClick: handleCancel }), + inputElementValue = inputElementGenerator(inputUsageTypes_VALUE, keyPath, deep), + inputElementValueLayout = react.cloneElement(inputElementValue, { + placeholder: 'Value', + ref: this.refInputValue, + }), + inputElementKeyLayout = null; + if (!onlyValue) { + var inputElementKey = inputElementGenerator(inputUsageTypes_KEY, keyPath, deep); + inputElementKeyLayout = react.cloneElement(inputElementKey, { + placeholder: 'Key', + ref: this.refInputKey, + }); + } + return react.createElement( + 'span', + { className: 'rejt-add-value-node' }, + inputElementKeyLayout, + inputElementValueLayout, + cancelButtonElementLayout, + addButtonElementLayout, + ); + }, + }, + ]), + JsonAddValue + ); + })(react.Component); + (JsonAddValue.displayName = 'JsonAddValue'), + (JsonAddValue.propTypes = { + handleAdd: prop_types_default().func.isRequired, + handleCancel: prop_types_default().func.isRequired, + onlyValue: prop_types_default().bool, + addButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + inputElementGenerator: prop_types_default().func.isRequired, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonAddValue.defaultProps = { + onlyValue: !1, + addButtonElement: react.createElement('button', null, '+'), + cancelButtonElement: react.createElement('button', null, 'c'), + }); + const components_JsonAddValue = JsonAddValue; + function JsonObject_typeof(obj) { + return ( + (JsonObject_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonObject_typeof(obj) + ); + } + function JsonObject_toConsumableArray(arr) { + return ( + (function JsonObject_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return JsonObject_arrayLikeToArray(arr); + })(arr) || + (function JsonObject_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function JsonObject_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return JsonObject_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return JsonObject_arrayLikeToArray(o, minLen); + })(arr) || + (function JsonObject_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function JsonObject_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function JsonObject_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function JsonObject_setPrototypeOf(o, p) { + return ( + (JsonObject_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + JsonObject_setPrototypeOf(o, p) + ); + } + function JsonObject_createSuper(Derived) { + var hasNativeReflectConstruct = (function JsonObject_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = JsonObject_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = JsonObject_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return JsonObject_possibleConstructorReturn(this, result); + }; + } + function JsonObject_possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonObject_typeof(call) && 'function' != typeof call) + ? JsonObject_assertThisInitialized(self) + : call; + } + function JsonObject_assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function JsonObject_getPrototypeOf(o) { + return ( + (JsonObject_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + JsonObject_getPrototypeOf(o) + ); + } + var JsonObject = (function (_Component) { + !(function JsonObject_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && JsonObject_setPrototypeOf(subClass, superClass); + })(JsonObject, _Component); + var _super = JsonObject_createSuper(JsonObject); + function JsonObject(props) { + var _this; + !(function JsonObject_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonObject), + (_this = _super.call(this, props)); + var keyPath = -1 === props.deep ? [] : [].concat(JsonObject_toConsumableArray(props.keyPath), [props.name]); + return ( + (_this.state = { + name: props.name, + data: props.data, + keyPath, + deep: props.deep, + nextDeep: props.deep + 1, + collapsed: props.isCollapsed(keyPath, props.deep, props.data), + addFormVisible: !1, + }), + (_this.handleCollapseMode = _this.handleCollapseMode.bind(JsonObject_assertThisInitialized(_this))), + (_this.handleRemoveValue = _this.handleRemoveValue.bind(JsonObject_assertThisInitialized(_this))), + (_this.handleAddMode = _this.handleAddMode.bind(JsonObject_assertThisInitialized(_this))), + (_this.handleAddValueAdd = _this.handleAddValueAdd.bind(JsonObject_assertThisInitialized(_this))), + (_this.handleAddValueCancel = _this.handleAddValueCancel.bind(JsonObject_assertThisInitialized(_this))), + (_this.handleEditValue = _this.handleEditValue.bind(JsonObject_assertThisInitialized(_this))), + (_this.onChildUpdate = _this.onChildUpdate.bind(JsonObject_assertThisInitialized(_this))), + (_this.renderCollapsed = _this.renderCollapsed.bind(JsonObject_assertThisInitialized(_this))), + (_this.renderNotCollapsed = _this.renderNotCollapsed.bind(JsonObject_assertThisInitialized(_this))), + _this + ); + } + return ( + (function JsonObject_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && JsonObject_defineProperties(Constructor.prototype, protoProps), + staticProps && JsonObject_defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonObject, + [ + { + key: 'onChildUpdate', + value: function onChildUpdate(childKey, childData) { + var _this$state = this.state, + data = _this$state.data, + keyPath = _this$state.keyPath; + (data[childKey] = childData), + this.setState({ data }), + (0, this.props.onUpdate)(keyPath[keyPath.length - 1], data); + }, + }, + { + key: 'handleAddMode', + value: function handleAddMode() { + this.setState({ addFormVisible: !0 }); + }, + }, + { + key: 'handleAddValueCancel', + value: function handleAddValueCancel() { + this.setState({ addFormVisible: !1 }); + }, + }, + { + key: 'handleAddValueAdd', + value: function handleAddValueAdd(_ref) { + var _this2 = this, + key = _ref.key, + newValue = _ref.newValue, + _this$state2 = this.state, + data = _this$state2.data, + keyPath = _this$state2.keyPath, + deep = _this$state2.nextDeep, + _this$props = this.props, + beforeAddAction = _this$props.beforeAddAction, + logger = _this$props.logger; + beforeAddAction(key, keyPath, deep, newValue) + .then(function () { + (data[key] = newValue), _this2.setState({ data }), _this2.handleAddValueCancel(); + var _this2$props = _this2.props, + onUpdate = _this2$props.onUpdate, + onDeltaUpdate = _this2$props.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], data), + onDeltaUpdate({ type: 'ADD_DELTA_TYPE', keyPath, deep, key, newValue }); + }) + .catch(logger.error); + }, + }, + { + key: 'handleRemoveValue', + value: function handleRemoveValue(key) { + var _this3 = this; + return function () { + var _this3$props = _this3.props, + beforeRemoveAction = _this3$props.beforeRemoveAction, + logger = _this3$props.logger, + _this3$state = _this3.state, + data = _this3$state.data, + keyPath = _this3$state.keyPath, + deep = _this3$state.nextDeep, + oldValue = data[key]; + beforeRemoveAction(key, keyPath, deep, oldValue) + .then(function () { + var deltaUpdateResult = { keyPath, deep, key, oldValue, type: 'REMOVE_DELTA_TYPE' }; + delete data[key], _this3.setState({ data }); + var _this3$props2 = _this3.props, + onUpdate = _this3$props2.onUpdate, + onDeltaUpdate = _this3$props2.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], data), onDeltaUpdate(deltaUpdateResult); + }) + .catch(logger.error); + }; + }, + }, + { + key: 'handleCollapseMode', + value: function handleCollapseMode() { + this.setState(function (state) { + return { collapsed: !state.collapsed }; + }); + }, + }, + { + key: 'handleEditValue', + value: function handleEditValue(_ref2) { + var _this4 = this, + key = _ref2.key, + value = _ref2.value; + return new Promise(function (resolve, reject) { + var beforeUpdateAction = _this4.props.beforeUpdateAction, + _this4$state = _this4.state, + data = _this4$state.data, + keyPath = _this4$state.keyPath, + deep = _this4$state.nextDeep, + oldValue = data[key]; + beforeUpdateAction(key, keyPath, deep, oldValue, value) + .then(function () { + (data[key] = value), _this4.setState({ data }); + var _this4$props = _this4.props, + onUpdate = _this4$props.onUpdate, + onDeltaUpdate = _this4$props.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], data), + onDeltaUpdate({ type: 'UPDATE_DELTA_TYPE', keyPath, deep, key, newValue: value, oldValue }), + resolve(); + }) + .catch(reject); + }); + }, + }, + { + key: 'renderCollapsed', + value: function renderCollapsed() { + var _this$state3 = this.state, + name = _this$state3.name, + keyPath = _this$state3.keyPath, + deep = _this$state3.deep, + data = _this$state3.data, + _this$props2 = this.props, + handleRemove = _this$props2.handleRemove, + readOnly = _this$props2.readOnly, + dataType = _this$props2.dataType, + getStyle = _this$props2.getStyle, + minusMenuElement = _this$props2.minusMenuElement, + _getStyle = getStyle(name, data, keyPath, deep, dataType), + minus = _getStyle.minus, + collapsed = _getStyle.collapsed, + keyList = Object.getOwnPropertyNames(data), + isReadOnly = readOnly(name, data, keyPath, deep, dataType), + removeItemButton = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: minus, + }); + return react.createElement( + 'span', + { className: 'rejt-collapsed' }, + react.createElement( + 'span', + { className: 'rejt-collapsed-text', style: collapsed, onClick: this.handleCollapseMode }, + '{...}', + ' ', + keyList.length, + ' ', + 1 === keyList.length ? 'key' : 'keys', + ), + !isReadOnly && removeItemButton, + ); + }, + }, + { + key: 'renderNotCollapsed', + value: function renderNotCollapsed() { + var _this5 = this, + _this$state4 = this.state, + name = _this$state4.name, + data = _this$state4.data, + keyPath = _this$state4.keyPath, + deep = _this$state4.deep, + nextDeep = _this$state4.nextDeep, + addFormVisible = _this$state4.addFormVisible, + _this$props3 = this.props, + isCollapsed = _this$props3.isCollapsed, + handleRemove = _this$props3.handleRemove, + onDeltaUpdate = _this$props3.onDeltaUpdate, + readOnly = _this$props3.readOnly, + getStyle = _this$props3.getStyle, + dataType = _this$props3.dataType, + addButtonElement = _this$props3.addButtonElement, + cancelButtonElement = _this$props3.cancelButtonElement, + editButtonElement = _this$props3.editButtonElement, + inputElementGenerator = _this$props3.inputElementGenerator, + textareaElementGenerator = _this$props3.textareaElementGenerator, + minusMenuElement = _this$props3.minusMenuElement, + plusMenuElement = _this$props3.plusMenuElement, + beforeRemoveAction = _this$props3.beforeRemoveAction, + beforeAddAction = _this$props3.beforeAddAction, + beforeUpdateAction = _this$props3.beforeUpdateAction, + logger = _this$props3.logger, + onSubmitValueParser = _this$props3.onSubmitValueParser, + _getStyle2 = getStyle(name, data, keyPath, deep, dataType), + minus = _getStyle2.minus, + plus = _getStyle2.plus, + addForm = _getStyle2.addForm, + ul = _getStyle2.ul, + delimiter = _getStyle2.delimiter, + keyList = Object.getOwnPropertyNames(data), + isReadOnly = readOnly(name, data, keyPath, deep, dataType), + addItemButton = react.cloneElement(plusMenuElement, { + onClick: this.handleAddMode, + className: 'rejt-plus-menu', + style: plus, + }), + removeItemButton = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: minus, + }), + list = keyList.map(function (key) { + return react.createElement(components_JsonNode, { + key, + name: key, + data: data[key], + keyPath, + deep: nextDeep, + isCollapsed, + handleRemove: _this5.handleRemoveValue(key), + handleUpdateValue: _this5.handleEditValue, + onUpdate: _this5.onChildUpdate, + onDeltaUpdate, + readOnly, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + textareaElementGenerator, + minusMenuElement, + plusMenuElement, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }); + }); + return react.createElement( + 'span', + { className: 'rejt-not-collapsed' }, + react.createElement('span', { className: 'rejt-not-collapsed-delimiter', style: delimiter }, '{'), + !isReadOnly && addItemButton, + react.createElement('ul', { className: 'rejt-not-collapsed-list', style: ul }, list), + !isReadOnly && + addFormVisible && + react.createElement( + 'div', + { className: 'rejt-add-form', style: addForm }, + react.createElement(components_JsonAddValue, { + handleAdd: this.handleAddValueAdd, + handleCancel: this.handleAddValueCancel, + addButtonElement, + cancelButtonElement, + inputElementGenerator, + keyPath, + deep, + onSubmitValueParser, + }), + ), + react.createElement('span', { className: 'rejt-not-collapsed-delimiter', style: delimiter }, '}'), + !isReadOnly && removeItemButton, + ); + }, + }, + { + key: 'render', + value: function render() { + var _this$state5 = this.state, + name = _this$state5.name, + collapsed = _this$state5.collapsed, + data = _this$state5.data, + keyPath = _this$state5.keyPath, + deep = _this$state5.deep, + _this$props4 = this.props, + getStyle = _this$props4.getStyle, + dataType = _this$props4.dataType, + value = collapsed ? this.renderCollapsed() : this.renderNotCollapsed(), + style = getStyle(name, data, keyPath, deep, dataType); + return react.createElement( + 'div', + { className: 'rejt-object-node' }, + react.createElement( + 'span', + { onClick: this.handleCollapseMode }, + react.createElement('span', { className: 'rejt-name', style: style.name }, name, ' :', ' '), + ), + value, + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.data !== state.data ? { data: props.data } : null; + }, + }, + ], + ), + JsonObject + ); + })(react.Component); + (JsonObject.displayName = 'JsonObject'), + (JsonObject.propTypes = { + data: prop_types_default().object.isRequired, + name: prop_types_default().string.isRequired, + isCollapsed: prop_types_default().func.isRequired, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + handleRemove: prop_types_default().func, + onUpdate: prop_types_default().func.isRequired, + onDeltaUpdate: prop_types_default().func.isRequired, + readOnly: prop_types_default().func.isRequired, + dataType: prop_types_default().string, + getStyle: prop_types_default().func.isRequired, + addButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + editButtonElement: prop_types_default().element, + inputElementGenerator: prop_types_default().func.isRequired, + textareaElementGenerator: prop_types_default().func.isRequired, + minusMenuElement: prop_types_default().element, + plusMenuElement: prop_types_default().element, + beforeRemoveAction: prop_types_default().func, + beforeAddAction: prop_types_default().func, + beforeUpdateAction: prop_types_default().func, + logger: prop_types_default().object.isRequired, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonObject.defaultProps = { + keyPath: [], + deep: 0, + minusMenuElement: react.createElement('span', null, ' - '), + plusMenuElement: react.createElement('span', null, ' + '), + }); + const components_JsonObject = JsonObject; + __webpack_require__(99805); + function JsonArray_typeof(obj) { + return ( + (JsonArray_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonArray_typeof(obj) + ); + } + function JsonArray_toConsumableArray(arr) { + return ( + (function JsonArray_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return JsonArray_arrayLikeToArray(arr); + })(arr) || + (function JsonArray_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function JsonArray_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return JsonArray_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return JsonArray_arrayLikeToArray(o, minLen); + })(arr) || + (function JsonArray_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function JsonArray_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function JsonArray_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function JsonArray_setPrototypeOf(o, p) { + return ( + (JsonArray_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + JsonArray_setPrototypeOf(o, p) + ); + } + function JsonArray_createSuper(Derived) { + var hasNativeReflectConstruct = (function JsonArray_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = JsonArray_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = JsonArray_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return JsonArray_possibleConstructorReturn(this, result); + }; + } + function JsonArray_possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonArray_typeof(call) && 'function' != typeof call) + ? JsonArray_assertThisInitialized(self) + : call; + } + function JsonArray_assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function JsonArray_getPrototypeOf(o) { + return ( + (JsonArray_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + JsonArray_getPrototypeOf(o) + ); + } + var JsonArray = (function (_Component) { + !(function JsonArray_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && JsonArray_setPrototypeOf(subClass, superClass); + })(JsonArray, _Component); + var _super = JsonArray_createSuper(JsonArray); + function JsonArray(props) { + var _this; + !(function JsonArray_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonArray), + (_this = _super.call(this, props)); + var keyPath = [].concat(JsonArray_toConsumableArray(props.keyPath), [props.name]); + return ( + (_this.state = { + data: props.data, + name: props.name, + keyPath, + deep: props.deep, + nextDeep: props.deep + 1, + collapsed: props.isCollapsed(keyPath, props.deep, props.data), + addFormVisible: !1, + }), + (_this.handleCollapseMode = _this.handleCollapseMode.bind(JsonArray_assertThisInitialized(_this))), + (_this.handleRemoveItem = _this.handleRemoveItem.bind(JsonArray_assertThisInitialized(_this))), + (_this.handleAddMode = _this.handleAddMode.bind(JsonArray_assertThisInitialized(_this))), + (_this.handleAddValueAdd = _this.handleAddValueAdd.bind(JsonArray_assertThisInitialized(_this))), + (_this.handleAddValueCancel = _this.handleAddValueCancel.bind(JsonArray_assertThisInitialized(_this))), + (_this.handleEditValue = _this.handleEditValue.bind(JsonArray_assertThisInitialized(_this))), + (_this.onChildUpdate = _this.onChildUpdate.bind(JsonArray_assertThisInitialized(_this))), + (_this.renderCollapsed = _this.renderCollapsed.bind(JsonArray_assertThisInitialized(_this))), + (_this.renderNotCollapsed = _this.renderNotCollapsed.bind(JsonArray_assertThisInitialized(_this))), + _this + ); + } + return ( + (function JsonArray_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && JsonArray_defineProperties(Constructor.prototype, protoProps), + staticProps && JsonArray_defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonArray, + [ + { + key: 'onChildUpdate', + value: function onChildUpdate(childKey, childData) { + var _this$state = this.state, + data = _this$state.data, + keyPath = _this$state.keyPath; + (data[childKey] = childData), + this.setState({ data }), + (0, this.props.onUpdate)(keyPath[keyPath.length - 1], data); + }, + }, + { + key: 'handleAddMode', + value: function handleAddMode() { + this.setState({ addFormVisible: !0 }); + }, + }, + { + key: 'handleCollapseMode', + value: function handleCollapseMode() { + this.setState(function (state) { + return { collapsed: !state.collapsed }; + }); + }, + }, + { + key: 'handleRemoveItem', + value: function handleRemoveItem(index) { + var _this2 = this; + return function () { + var _this2$props = _this2.props, + beforeRemoveAction = _this2$props.beforeRemoveAction, + logger = _this2$props.logger, + _this2$state = _this2.state, + data = _this2$state.data, + keyPath = _this2$state.keyPath, + deep = _this2$state.nextDeep, + oldValue = data[index]; + beforeRemoveAction(index, keyPath, deep, oldValue) + .then(function () { + var deltaUpdateResult = { keyPath, deep, key: index, oldValue, type: 'REMOVE_DELTA_TYPE' }; + data.splice(index, 1), _this2.setState({ data }); + var _this2$props2 = _this2.props, + onUpdate = _this2$props2.onUpdate, + onDeltaUpdate = _this2$props2.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], data), onDeltaUpdate(deltaUpdateResult); + }) + .catch(logger.error); + }; + }, + }, + { + key: 'handleAddValueAdd', + value: function handleAddValueAdd(_ref) { + var _this3 = this, + newValue = _ref.newValue, + _this$state2 = this.state, + data = _this$state2.data, + keyPath = _this$state2.keyPath, + deep = _this$state2.nextDeep, + _this$props = this.props, + beforeAddAction = _this$props.beforeAddAction, + logger = _this$props.logger; + beforeAddAction(data.length, keyPath, deep, newValue) + .then(function () { + var newData = [].concat(JsonArray_toConsumableArray(data), [newValue]); + _this3.setState({ data: newData }), _this3.handleAddValueCancel(); + var _this3$props = _this3.props, + onUpdate = _this3$props.onUpdate, + onDeltaUpdate = _this3$props.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], newData), + onDeltaUpdate({ type: 'ADD_DELTA_TYPE', keyPath, deep, key: newData.length - 1, newValue }); + }) + .catch(logger.error); + }, + }, + { + key: 'handleAddValueCancel', + value: function handleAddValueCancel() { + this.setState({ addFormVisible: !1 }); + }, + }, + { + key: 'handleEditValue', + value: function handleEditValue(_ref2) { + var _this4 = this, + key = _ref2.key, + value = _ref2.value; + return new Promise(function (resolve, reject) { + var beforeUpdateAction = _this4.props.beforeUpdateAction, + _this4$state = _this4.state, + data = _this4$state.data, + keyPath = _this4$state.keyPath, + deep = _this4$state.nextDeep, + oldValue = data[key]; + beforeUpdateAction(key, keyPath, deep, oldValue, value) + .then(function () { + (data[key] = value), _this4.setState({ data }); + var _this4$props = _this4.props, + onUpdate = _this4$props.onUpdate, + onDeltaUpdate = _this4$props.onDeltaUpdate; + onUpdate(keyPath[keyPath.length - 1], data), + onDeltaUpdate({ type: 'UPDATE_DELTA_TYPE', keyPath, deep, key, newValue: value, oldValue }), + resolve(); + }) + .catch(reject); + }); + }, + }, + { + key: 'renderCollapsed', + value: function renderCollapsed() { + var _this$state3 = this.state, + name = _this$state3.name, + data = _this$state3.data, + keyPath = _this$state3.keyPath, + deep = _this$state3.deep, + _this$props2 = this.props, + handleRemove = _this$props2.handleRemove, + readOnly = _this$props2.readOnly, + getStyle = _this$props2.getStyle, + dataType = _this$props2.dataType, + minusMenuElement = _this$props2.minusMenuElement, + _getStyle = getStyle(name, data, keyPath, deep, dataType), + minus = _getStyle.minus, + collapsed = _getStyle.collapsed, + isReadOnly = readOnly(name, data, keyPath, deep, dataType), + removeItemButton = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: minus, + }); + return react.createElement( + 'span', + { className: 'rejt-collapsed' }, + react.createElement( + 'span', + { className: 'rejt-collapsed-text', style: collapsed, onClick: this.handleCollapseMode }, + '[...] ', + data.length, + ' ', + 1 === data.length ? 'item' : 'items', + ), + !isReadOnly && removeItemButton, + ); + }, + }, + { + key: 'renderNotCollapsed', + value: function renderNotCollapsed() { + var _this5 = this, + _this$state4 = this.state, + name = _this$state4.name, + data = _this$state4.data, + keyPath = _this$state4.keyPath, + deep = _this$state4.deep, + addFormVisible = _this$state4.addFormVisible, + nextDeep = _this$state4.nextDeep, + _this$props3 = this.props, + isCollapsed = _this$props3.isCollapsed, + handleRemove = _this$props3.handleRemove, + onDeltaUpdate = _this$props3.onDeltaUpdate, + readOnly = _this$props3.readOnly, + getStyle = _this$props3.getStyle, + dataType = _this$props3.dataType, + addButtonElement = _this$props3.addButtonElement, + cancelButtonElement = _this$props3.cancelButtonElement, + editButtonElement = _this$props3.editButtonElement, + inputElementGenerator = _this$props3.inputElementGenerator, + textareaElementGenerator = _this$props3.textareaElementGenerator, + minusMenuElement = _this$props3.minusMenuElement, + plusMenuElement = _this$props3.plusMenuElement, + beforeRemoveAction = _this$props3.beforeRemoveAction, + beforeAddAction = _this$props3.beforeAddAction, + beforeUpdateAction = _this$props3.beforeUpdateAction, + logger = _this$props3.logger, + onSubmitValueParser = _this$props3.onSubmitValueParser, + _getStyle2 = getStyle(name, data, keyPath, deep, dataType), + minus = _getStyle2.minus, + plus = _getStyle2.plus, + delimiter = _getStyle2.delimiter, + ul = _getStyle2.ul, + addForm = _getStyle2.addForm, + isReadOnly = readOnly(name, data, keyPath, deep, dataType), + addItemButton = react.cloneElement(plusMenuElement, { + onClick: this.handleAddMode, + className: 'rejt-plus-menu', + style: plus, + }), + removeItemButton = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: minus, + }); + return react.createElement( + 'span', + { className: 'rejt-not-collapsed' }, + react.createElement('span', { className: 'rejt-not-collapsed-delimiter', style: delimiter }, '['), + !addFormVisible && addItemButton, + react.createElement( + 'ul', + { className: 'rejt-not-collapsed-list', style: ul }, + data.map(function (item, index) { + return react.createElement(components_JsonNode, { + key: index, + name: ''.concat(index), + data: item, + keyPath, + deep: nextDeep, + isCollapsed, + handleRemove: _this5.handleRemoveItem(index), + handleUpdateValue: _this5.handleEditValue, + onUpdate: _this5.onChildUpdate, + onDeltaUpdate, + readOnly, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + textareaElementGenerator, + minusMenuElement, + plusMenuElement, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }); + }), + ), + !isReadOnly && + addFormVisible && + react.createElement( + 'div', + { className: 'rejt-add-form', style: addForm }, + react.createElement(components_JsonAddValue, { + handleAdd: this.handleAddValueAdd, + handleCancel: this.handleAddValueCancel, + onlyValue: !0, + addButtonElement, + cancelButtonElement, + inputElementGenerator, + keyPath, + deep, + onSubmitValueParser, + }), + ), + react.createElement('span', { className: 'rejt-not-collapsed-delimiter', style: delimiter }, ']'), + !isReadOnly && removeItemButton, + ); + }, + }, + { + key: 'render', + value: function render() { + var _this$state5 = this.state, + name = _this$state5.name, + collapsed = _this$state5.collapsed, + data = _this$state5.data, + keyPath = _this$state5.keyPath, + deep = _this$state5.deep, + _this$props4 = this.props, + dataType = _this$props4.dataType, + getStyle = _this$props4.getStyle, + value = collapsed ? this.renderCollapsed() : this.renderNotCollapsed(), + style = getStyle(name, data, keyPath, deep, dataType); + return react.createElement( + 'div', + { className: 'rejt-array-node' }, + react.createElement( + 'span', + { onClick: this.handleCollapseMode }, + react.createElement('span', { className: 'rejt-name', style: style.name }, name, ' :', ' '), + ), + value, + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.data !== state.data ? { data: props.data } : null; + }, + }, + ], + ), + JsonArray + ); + })(react.Component); + (JsonArray.displayName = 'JsonArray'), + (JsonArray.propTypes = { + data: prop_types_default().array.isRequired, + name: prop_types_default().string.isRequired, + isCollapsed: prop_types_default().func.isRequired, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + handleRemove: prop_types_default().func, + onUpdate: prop_types_default().func.isRequired, + onDeltaUpdate: prop_types_default().func.isRequired, + readOnly: prop_types_default().func.isRequired, + dataType: prop_types_default().string, + getStyle: prop_types_default().func.isRequired, + addButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + editButtonElement: prop_types_default().element, + inputElementGenerator: prop_types_default().func.isRequired, + textareaElementGenerator: prop_types_default().func.isRequired, + minusMenuElement: prop_types_default().element, + plusMenuElement: prop_types_default().element, + beforeRemoveAction: prop_types_default().func, + beforeAddAction: prop_types_default().func, + beforeUpdateAction: prop_types_default().func, + logger: prop_types_default().object.isRequired, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonArray.defaultProps = { + keyPath: [], + deep: 0, + minusMenuElement: react.createElement('span', null, ' - '), + plusMenuElement: react.createElement('span', null, ' + '), + }); + const components_JsonArray = JsonArray; + function JsonFunctionValue_typeof(obj) { + return ( + (JsonFunctionValue_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonFunctionValue_typeof(obj) + ); + } + function JsonFunctionValue_toConsumableArray(arr) { + return ( + (function JsonFunctionValue_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return JsonFunctionValue_arrayLikeToArray(arr); + })(arr) || + (function JsonFunctionValue_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function JsonFunctionValue_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return JsonFunctionValue_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return JsonFunctionValue_arrayLikeToArray(o, minLen); + })(arr) || + (function JsonFunctionValue_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function JsonFunctionValue_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function JsonFunctionValue_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function JsonFunctionValue_setPrototypeOf(o, p) { + return ( + (JsonFunctionValue_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + JsonFunctionValue_setPrototypeOf(o, p) + ); + } + function JsonFunctionValue_createSuper(Derived) { + var hasNativeReflectConstruct = (function JsonFunctionValue_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = JsonFunctionValue_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = JsonFunctionValue_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return JsonFunctionValue_possibleConstructorReturn(this, result); + }; + } + function JsonFunctionValue_possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonFunctionValue_typeof(call) && 'function' != typeof call) + ? JsonFunctionValue_assertThisInitialized(self) + : call; + } + function JsonFunctionValue_assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function JsonFunctionValue_getPrototypeOf(o) { + return ( + (JsonFunctionValue_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + JsonFunctionValue_getPrototypeOf(o) + ); + } + var JsonFunctionValue = (function (_Component) { + !(function JsonFunctionValue_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && JsonFunctionValue_setPrototypeOf(subClass, superClass); + })(JsonFunctionValue, _Component); + var _super = JsonFunctionValue_createSuper(JsonFunctionValue); + function JsonFunctionValue(props) { + var _this; + !(function JsonFunctionValue_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonFunctionValue), + (_this = _super.call(this, props)); + var keyPath = [].concat(JsonFunctionValue_toConsumableArray(props.keyPath), [props.name]); + return ( + (_this.state = { + value: props.value, + name: props.name, + keyPath, + deep: props.deep, + editEnabled: !1, + inputRef: null, + }), + (_this.handleEditMode = _this.handleEditMode.bind(JsonFunctionValue_assertThisInitialized(_this))), + (_this.refInput = _this.refInput.bind(JsonFunctionValue_assertThisInitialized(_this))), + (_this.handleCancelEdit = _this.handleCancelEdit.bind(JsonFunctionValue_assertThisInitialized(_this))), + (_this.handleEdit = _this.handleEdit.bind(JsonFunctionValue_assertThisInitialized(_this))), + (_this.onKeydown = _this.onKeydown.bind(JsonFunctionValue_assertThisInitialized(_this))), + _this + ); + } + return ( + (function JsonFunctionValue_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && JsonFunctionValue_defineProperties(Constructor.prototype, protoProps), + staticProps && JsonFunctionValue_defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonFunctionValue, + [ + { + key: 'componentDidUpdate', + value: function componentDidUpdate() { + var _this$state = this.state, + editEnabled = _this$state.editEnabled, + inputRef = _this$state.inputRef, + name = _this$state.name, + value = _this$state.value, + keyPath = _this$state.keyPath, + deep = _this$state.deep, + _this$props = this.props, + readOnlyResult = (0, _this$props.readOnly)(name, value, keyPath, deep, _this$props.dataType); + editEnabled && !readOnlyResult && 'function' == typeof inputRef.focus && inputRef.focus(); + }, + }, + { + key: 'componentDidMount', + value: function componentDidMount() { + document.addEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + document.removeEventListener('keydown', this.onKeydown); + }, + }, + { + key: 'onKeydown', + value: function onKeydown(event) { + event.altKey || + event.ctrlKey || + event.metaKey || + event.shiftKey || + event.repeat || + (('Enter' !== event.code && 'Enter' !== event.key) || (event.preventDefault(), this.handleEdit()), + ('Escape' !== event.code && 'Escape' !== event.key) || + (event.preventDefault(), this.handleCancelEdit())); + }, + }, + { + key: 'handleEdit', + value: function handleEdit() { + var _this2 = this, + _this$props2 = this.props, + handleUpdateValue = _this$props2.handleUpdateValue, + originalValue = _this$props2.originalValue, + logger = _this$props2.logger, + onSubmitValueParser = _this$props2.onSubmitValueParser, + keyPath = _this$props2.keyPath, + _this$state2 = this.state, + inputRef = _this$state2.inputRef, + name = _this$state2.name, + deep = _this$state2.deep; + if (inputRef) { + var newValue = onSubmitValueParser(!0, keyPath, deep, name, inputRef.value); + handleUpdateValue({ value: newValue, key: name }) + .then(function () { + isComponentWillChange(originalValue, newValue) || _this2.handleCancelEdit(); + }) + .catch(logger.error); + } + }, + }, + { + key: 'handleEditMode', + value: function handleEditMode() { + this.setState({ editEnabled: !0 }); + }, + }, + { + key: 'refInput', + value: function refInput(node) { + this.state.inputRef = node; + }, + }, + { + key: 'handleCancelEdit', + value: function handleCancelEdit() { + this.setState({ editEnabled: !1 }); + }, + }, + { + key: 'render', + value: function render() { + var _this$state3 = this.state, + name = _this$state3.name, + value = _this$state3.value, + editEnabled = _this$state3.editEnabled, + keyPath = _this$state3.keyPath, + deep = _this$state3.deep, + _this$props3 = this.props, + handleRemove = _this$props3.handleRemove, + originalValue = _this$props3.originalValue, + readOnly = _this$props3.readOnly, + dataType = _this$props3.dataType, + getStyle = _this$props3.getStyle, + editButtonElement = _this$props3.editButtonElement, + cancelButtonElement = _this$props3.cancelButtonElement, + textareaElementGenerator = _this$props3.textareaElementGenerator, + minusMenuElement = _this$props3.minusMenuElement, + comeFromKeyPath = _this$props3.keyPath, + style = getStyle(name, originalValue, keyPath, deep, dataType), + result = null, + minusElement = null, + resultOnlyResult = readOnly(name, originalValue, keyPath, deep, dataType); + if (editEnabled && !resultOnlyResult) { + var textareaElement = textareaElementGenerator( + inputUsageTypes_VALUE, + comeFromKeyPath, + deep, + name, + originalValue, + dataType, + ), + editButtonElementLayout = react.cloneElement(editButtonElement, { onClick: this.handleEdit }), + cancelButtonElementLayout = react.cloneElement(cancelButtonElement, { + onClick: this.handleCancelEdit, + }), + textareaElementLayout = react.cloneElement(textareaElement, { + ref: this.refInput, + defaultValue: originalValue, + }); + (result = react.createElement( + 'span', + { className: 'rejt-edit-form', style: style.editForm }, + textareaElementLayout, + ' ', + cancelButtonElementLayout, + editButtonElementLayout, + )), + (minusElement = null); + } else { + result = react.createElement( + 'span', + { + className: 'rejt-value', + style: style.value, + onClick: resultOnlyResult ? null : this.handleEditMode, + }, + value, + ); + var minusMenuLayout = react.cloneElement(minusMenuElement, { + onClick: handleRemove, + className: 'rejt-minus-menu', + style: style.minus, + }); + minusElement = resultOnlyResult ? null : minusMenuLayout; + } + return react.createElement( + 'li', + { className: 'rejt-function-value-node', style: style.li }, + react.createElement('span', { className: 'rejt-name', style: style.name }, name, ' :', ' '), + result, + minusElement, + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.value !== state.value ? { value: props.value } : null; + }, + }, + ], + ), + JsonFunctionValue + ); + })(react.Component); + (JsonFunctionValue.displayName = 'JsonFunctionValue'), + (JsonFunctionValue.propTypes = { + name: prop_types_default().string.isRequired, + value: prop_types_default().any.isRequired, + originalValue: prop_types_default().any, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + handleRemove: prop_types_default().func, + handleUpdateValue: prop_types_default().func, + readOnly: prop_types_default().func.isRequired, + dataType: prop_types_default().string, + getStyle: prop_types_default().func.isRequired, + editButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + textareaElementGenerator: prop_types_default().func.isRequired, + minusMenuElement: prop_types_default().element, + logger: prop_types_default().object.isRequired, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonFunctionValue.defaultProps = { + keyPath: [], + deep: 0, + handleUpdateValue: function handleUpdateValue() {}, + editButtonElement: react.createElement('button', null, 'e'), + cancelButtonElement: react.createElement('button', null, 'c'), + minusMenuElement: react.createElement('span', null, ' - '), + }); + const components_JsonFunctionValue = JsonFunctionValue; + const dataTypes_ERROR = 'Error', + dataTypes_OBJECT = 'Object', + dataTypes_ARRAY = 'Array', + dataTypes_STRING = 'String', + dataTypes_NUMBER = 'Number', + dataTypes_BOOLEAN = 'Boolean', + dataTypes_DATE = 'Date', + dataTypes_NULL = 'Null', + dataTypes_UNDEFINED = 'Undefined', + dataTypes_FUNCTION = 'Function', + dataTypes_SYMBOL = 'Symbol'; + function JsonNode_typeof(obj) { + return ( + (JsonNode_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + JsonNode_typeof(obj) + ); + } + function JsonNode_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function JsonNode_setPrototypeOf(o, p) { + return ( + (JsonNode_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + JsonNode_setPrototypeOf(o, p) + ); + } + function JsonNode_createSuper(Derived) { + var hasNativeReflectConstruct = (function JsonNode_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = JsonNode_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = JsonNode_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return JsonNode_possibleConstructorReturn(this, result); + }; + } + function JsonNode_possibleConstructorReturn(self, call) { + return !call || ('object' !== JsonNode_typeof(call) && 'function' != typeof call) + ? (function JsonNode_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function JsonNode_getPrototypeOf(o) { + return ( + (JsonNode_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + JsonNode_getPrototypeOf(o) + ); + } + var JsonNode = (function (_Component) { + !(function JsonNode_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && JsonNode_setPrototypeOf(subClass, superClass); + })(JsonNode, _Component); + var _super = JsonNode_createSuper(JsonNode); + function JsonNode(props) { + var _this; + return ( + (function JsonNode_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonNode), + ((_this = _super.call(this, props)).state = { + data: props.data, + name: props.name, + keyPath: props.keyPath, + deep: props.deep, + }), + _this + ); + } + return ( + (function JsonNode_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && JsonNode_defineProperties(Constructor.prototype, protoProps), + staticProps && JsonNode_defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonNode, + [ + { + key: 'render', + value: function render() { + var _this$state = this.state, + data = _this$state.data, + name = _this$state.name, + keyPath = _this$state.keyPath, + deep = _this$state.deep, + _this$props = this.props, + isCollapsed = _this$props.isCollapsed, + handleRemove = _this$props.handleRemove, + handleUpdateValue = _this$props.handleUpdateValue, + onUpdate = _this$props.onUpdate, + onDeltaUpdate = _this$props.onDeltaUpdate, + readOnly = _this$props.readOnly, + getStyle = _this$props.getStyle, + addButtonElement = _this$props.addButtonElement, + cancelButtonElement = _this$props.cancelButtonElement, + editButtonElement = _this$props.editButtonElement, + inputElementGenerator = _this$props.inputElementGenerator, + textareaElementGenerator = _this$props.textareaElementGenerator, + minusMenuElement = _this$props.minusMenuElement, + plusMenuElement = _this$props.plusMenuElement, + beforeRemoveAction = _this$props.beforeRemoveAction, + beforeAddAction = _this$props.beforeAddAction, + beforeUpdateAction = _this$props.beforeUpdateAction, + logger = _this$props.logger, + onSubmitValueParser = _this$props.onSubmitValueParser, + readOnlyTrue = function readOnlyTrue() { + return !0; + }, + dataType = getObjectType(data); + switch (dataType) { + case dataTypes_ERROR: + return react.createElement(components_JsonObject, { + data, + name, + isCollapsed, + keyPath, + deep, + handleRemove, + onUpdate, + onDeltaUpdate, + readOnly: readOnlyTrue, + dataType, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + textareaElementGenerator, + minusMenuElement, + plusMenuElement, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }); + case dataTypes_OBJECT: + return react.createElement(components_JsonObject, { + data, + name, + isCollapsed, + keyPath, + deep, + handleRemove, + onUpdate, + onDeltaUpdate, + readOnly, + dataType, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + textareaElementGenerator, + minusMenuElement, + plusMenuElement, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }); + case dataTypes_ARRAY: + return react.createElement(components_JsonArray, { + data, + name, + isCollapsed, + keyPath, + deep, + handleRemove, + onUpdate, + onDeltaUpdate, + readOnly, + dataType, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + textareaElementGenerator, + minusMenuElement, + plusMenuElement, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }); + case dataTypes_STRING: + return react.createElement(components_JsonValue, { + name, + value: '"'.concat(data, '"'), + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_NUMBER: + return react.createElement(components_JsonValue, { + name, + value: data, + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_BOOLEAN: + return react.createElement(components_JsonValue, { + name, + value: data ? 'true' : 'false', + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_DATE: + return react.createElement(components_JsonValue, { + name, + value: data.toISOString(), + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly: readOnlyTrue, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_NULL: + return react.createElement(components_JsonValue, { + name, + value: 'null', + originalValue: 'null', + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_UNDEFINED: + return react.createElement(components_JsonValue, { + name, + value: 'undefined', + originalValue: 'undefined', + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_FUNCTION: + return react.createElement(components_JsonFunctionValue, { + name, + value: data.toString(), + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + textareaElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + case dataTypes_SYMBOL: + return react.createElement(components_JsonValue, { + name, + value: data.toString(), + originalValue: data, + keyPath, + deep, + handleRemove, + handleUpdateValue, + readOnly: readOnlyTrue, + dataType, + getStyle, + cancelButtonElement, + editButtonElement, + inputElementGenerator, + minusMenuElement, + logger, + onSubmitValueParser, + }); + default: + return null; + } + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.data !== state.data ? { data: props.data } : null; + }, + }, + ], + ), + JsonNode + ); + })(react.Component); + (JsonNode.displayName = 'JsonNode'), + (JsonNode.propTypes = { + name: prop_types_default().string.isRequired, + data: prop_types_default().any, + isCollapsed: prop_types_default().func.isRequired, + keyPath: prop_types_default().array, + deep: prop_types_default().number, + handleRemove: prop_types_default().func, + handleUpdateValue: prop_types_default().func, + onUpdate: prop_types_default().func.isRequired, + onDeltaUpdate: prop_types_default().func.isRequired, + readOnly: prop_types_default().func.isRequired, + getStyle: prop_types_default().func.isRequired, + addButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + editButtonElement: prop_types_default().element, + inputElementGenerator: prop_types_default().func.isRequired, + textareaElementGenerator: prop_types_default().func.isRequired, + minusMenuElement: prop_types_default().element, + plusMenuElement: prop_types_default().element, + beforeRemoveAction: prop_types_default().func, + beforeAddAction: prop_types_default().func, + beforeUpdateAction: prop_types_default().func, + logger: prop_types_default().object.isRequired, + onSubmitValueParser: prop_types_default().func.isRequired, + }), + (JsonNode.defaultProps = { keyPath: [], deep: 0 }); + const components_JsonNode = JsonNode; + var object = { + minus: { color: 'red' }, + plus: { color: 'green' }, + collapsed: { color: 'grey' }, + delimiter: {}, + ul: { padding: '0px', margin: '0 0 0 25px', listStyle: 'none' }, + name: { color: '#2287CD' }, + addForm: {}, + }, + array = { + minus: { color: 'red' }, + plus: { color: 'green' }, + collapsed: { color: 'grey' }, + delimiter: {}, + ul: { padding: '0px', margin: '0 0 0 25px', listStyle: 'none' }, + name: { color: '#2287CD' }, + addForm: {}, + }, + value = { + minus: { color: 'red' }, + editForm: {}, + value: { color: '#7bba3d' }, + li: { minHeight: '22px', lineHeight: '22px', outline: '0px' }, + name: { color: '#2287CD' }, + }, + parse = __webpack_require__(8429); + function react_editable_json_tree_typeof(obj) { + return ( + (react_editable_json_tree_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + react_editable_json_tree_typeof(obj) + ); + } + function react_editable_json_tree_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function react_editable_json_tree_setPrototypeOf(o, p) { + return ( + (react_editable_json_tree_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + react_editable_json_tree_setPrototypeOf(o, p) + ); + } + function react_editable_json_tree_createSuper(Derived) { + var hasNativeReflectConstruct = (function react_editable_json_tree_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = react_editable_json_tree_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = react_editable_json_tree_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return react_editable_json_tree_possibleConstructorReturn(this, result); + }; + } + function react_editable_json_tree_possibleConstructorReturn(self, call) { + return !call || ('object' !== react_editable_json_tree_typeof(call) && 'function' != typeof call) + ? react_editable_json_tree_assertThisInitialized(self) + : call; + } + function react_editable_json_tree_assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function react_editable_json_tree_getPrototypeOf(o) { + return ( + (react_editable_json_tree_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + react_editable_json_tree_getPrototypeOf(o) + ); + } + var JsonTree = (function (_Component) { + !(function react_editable_json_tree_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && react_editable_json_tree_setPrototypeOf(subClass, superClass); + })(JsonTree, _Component); + var _super = react_editable_json_tree_createSuper(JsonTree); + function JsonTree(props) { + var _this; + return ( + (function react_editable_json_tree_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, JsonTree), + ((_this = _super.call(this, props)).state = { data: props.data, rootName: props.rootName }), + (_this.onUpdate = _this.onUpdate.bind(react_editable_json_tree_assertThisInitialized(_this))), + (_this.removeRoot = _this.removeRoot.bind(react_editable_json_tree_assertThisInitialized(_this))), + _this + ); + } + return ( + (function react_editable_json_tree_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && react_editable_json_tree_defineProperties(Constructor.prototype, protoProps), + staticProps && react_editable_json_tree_defineProperties(Constructor, staticProps), + Constructor + ); + })( + JsonTree, + [ + { + key: 'onUpdate', + value: function onUpdate(key, data) { + this.setState({ data }), this.props.onFullyUpdate(data); + }, + }, + { + key: 'removeRoot', + value: function removeRoot() { + this.onUpdate(null, null); + }, + }, + { + key: 'render', + value: function render() { + var _this$state = this.state, + data = _this$state.data, + rootName = _this$state.rootName, + _this$props = this.props, + isCollapsed = _this$props.isCollapsed, + onDeltaUpdate = _this$props.onDeltaUpdate, + readOnly = _this$props.readOnly, + getStyle = _this$props.getStyle, + addButtonElement = _this$props.addButtonElement, + cancelButtonElement = _this$props.cancelButtonElement, + editButtonElement = _this$props.editButtonElement, + inputElement = _this$props.inputElement, + textareaElement = _this$props.textareaElement, + minusMenuElement = _this$props.minusMenuElement, + plusMenuElement = _this$props.plusMenuElement, + beforeRemoveAction = _this$props.beforeRemoveAction, + beforeAddAction = _this$props.beforeAddAction, + beforeUpdateAction = _this$props.beforeUpdateAction, + logger = _this$props.logger, + onSubmitValueParser = _this$props.onSubmitValueParser, + fallback = _this$props.fallback, + dataType = getObjectType(data), + readOnlyFunction = readOnly; + 'Boolean' === getObjectType(readOnly) && + (readOnlyFunction = function readOnlyFunction() { + return readOnly; + }); + var inputElementFunction = inputElement; + inputElement && + 'Function' !== getObjectType(inputElement) && + (inputElementFunction = function inputElementFunction() { + return inputElement; + }); + var textareaElementFunction = textareaElement; + return ( + textareaElement && + 'Function' !== getObjectType(textareaElement) && + (textareaElementFunction = function textareaElementFunction() { + return textareaElement; + }), + 'Object' === dataType || 'Array' === dataType + ? react.createElement( + 'div', + { className: 'rejt-tree' }, + react.createElement(components_JsonNode, { + data, + name: rootName, + collapsed: !1, + deep: -1, + isCollapsed, + onUpdate: this.onUpdate, + onDeltaUpdate, + readOnly: readOnlyFunction, + getStyle, + addButtonElement, + cancelButtonElement, + editButtonElement, + inputElementGenerator: inputElementFunction, + textareaElementGenerator: textareaElementFunction, + minusMenuElement, + plusMenuElement, + handleRemove: this.removeRoot, + beforeRemoveAction, + beforeAddAction, + beforeUpdateAction, + logger, + onSubmitValueParser, + }), + ) + : fallback + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + return props.data !== state.data || props.rootName !== state.rootName + ? { data: props.data, rootName: props.rootName } + : null; + }, + }, + ], + ), + JsonTree + ); + })(react.Component); + (JsonTree.displayName = 'JsonTree'), + (JsonTree.propTypes = { + data: prop_types_default().any.isRequired, + rootName: prop_types_default().string, + isCollapsed: prop_types_default().func, + onFullyUpdate: prop_types_default().func, + onDeltaUpdate: prop_types_default().func, + readOnly: prop_types_default().oneOfType([prop_types_default().bool, prop_types_default().func]), + getStyle: prop_types_default().func, + addButtonElement: prop_types_default().element, + cancelButtonElement: prop_types_default().element, + editButtonElement: prop_types_default().element, + inputElement: prop_types_default().oneOfType([prop_types_default().element, prop_types_default().func]), + textareaElement: prop_types_default().oneOfType([prop_types_default().element, prop_types_default().func]), + minusMenuElement: prop_types_default().element, + plusMenuElement: prop_types_default().element, + beforeRemoveAction: prop_types_default().func, + beforeAddAction: prop_types_default().func, + beforeUpdateAction: prop_types_default().func, + logger: prop_types_default().object, + onSubmitValueParser: prop_types_default().func, + }), + (JsonTree.defaultProps = { + rootName: 'root', + isCollapsed: function isCollapsed(keyPath, deep) { + return -1 !== deep; + }, + getStyle: function getStyle(keyName, data, keyPath, deep, dataType) { + switch (dataType) { + case 'Object': + case 'Error': + return object; + case 'Array': + return array; + default: + return value; + } + }, + readOnly: function readOnly(keyName, data, keyPath, deep, dataType) { + return !1; + }, + onFullyUpdate: function onFullyUpdate(data) {}, + onDeltaUpdate: function onDeltaUpdate(_ref) { + _ref.type, _ref.keyPath, _ref.deep, _ref.key, _ref.newValue, _ref.oldValue; + }, + beforeRemoveAction: function beforeRemoveAction(key, keyPath, deep, oldValue) { + return new Promise(function (resolve) { + return resolve(); + }); + }, + beforeAddAction: function beforeAddAction(key, keyPath, deep, newValue) { + return new Promise(function (resolve) { + return resolve(); + }); + }, + beforeUpdateAction: function beforeUpdateAction(key, keyPath, deep, oldValue, newValue) { + return new Promise(function (resolve) { + return resolve(); + }); + }, + logger: { error: function error() {} }, + onSubmitValueParser: function onSubmitValueParser(isEditMode, keyPath, deep, name, rawValue) { + return (0, parse.Z)(rawValue); + }, + inputElement: function inputElement(usage, keyPath, deep, keyName, data, dataType) { + return react.createElement('input', null); + }, + textareaElement: function textareaElement(usage, keyPath, deep, keyName, data, dataType) { + return react.createElement('textarea', null); + }, + fallback: null, + }); + var helpers = __webpack_require__(98199), + esm_form = __webpack_require__(44476), + icon = __webpack_require__(35016), + bar_button = __webpack_require__(82269); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function Object_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Object_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Object_arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Object_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var globalWindow = window_default().window, + Wrapper = esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + position: 'relative', + display: 'flex', + '.rejt-tree': { marginLeft: '1rem', fontSize: '13px' }, + '.rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed': { + '& > svg': { opacity: 0, transition: 'opacity 0.2s' }, + }, + '.rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed': { + '& > svg': { opacity: 1 }, + }, + '.rejt-edit-form button': { display: 'none' }, + '.rejt-add-form': { marginLeft: 10 }, + '.rejt-add-value-node': { display: 'inline-flex', alignItems: 'center' }, + '.rejt-name': { lineHeight: '22px' }, + '.rejt-not-collapsed-delimiter': { lineHeight: '22px' }, + '.rejt-plus-menu': { marginLeft: 5 }, + '.rejt-object-node > span > *': { position: 'relative', zIndex: 2 }, + '.rejt-object-node, .rejt-array-node': { position: 'relative' }, + '.rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before': { + content: '""', + position: 'absolute', + top: 0, + display: 'block', + width: '100%', + marginLeft: '-1rem', + padding: '0 4px 0 1rem', + height: 22, + }, + '.rejt-collapsed::before, .rejt-not-collapsed::before': { + zIndex: 1, + background: 'transparent', + borderRadius: 4, + transition: 'background 0.2s', + pointerEvents: 'none', + opacity: 0.1, + }, + '.rejt-object-node:hover, .rejt-array-node:hover': { + '& > .rejt-collapsed::before, & > .rejt-not-collapsed::before': { background: theme.color.secondary }, + }, + '.rejt-collapsed::after, .rejt-not-collapsed::after': { + content: '""', + position: 'absolute', + display: 'inline-block', + pointerEvents: 'none', + width: 0, + height: 0, + }, + '.rejt-collapsed::after': { + left: -8, + top: 8, + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + borderLeft: '3px solid rgba(153,153,153,0.6)', + }, + '.rejt-not-collapsed::after': { + left: -10, + top: 10, + borderTop: '3px solid rgba(153,153,153,0.6)', + borderLeft: '3px solid transparent', + borderRight: '3px solid transparent', + }, + '.rejt-value': { + display: 'inline-block', + border: '1px solid transparent', + borderRadius: 4, + margin: '1px 0', + padding: '0 4px', + cursor: 'text', + color: theme.color.defaultText, + }, + '.rejt-value-node:hover > .rejt-value': { + background: theme.background.app, + borderColor: theme.color.border, + }, + }; + }), + Button = esm.styled.button(function (_ref2) { + var theme = _ref2.theme, + primary = _ref2.primary; + return { + border: 0, + height: 20, + margin: 1, + borderRadius: 4, + background: primary ? theme.color.secondary : 'transparent', + color: primary ? theme.color.lightest : theme.color.dark, + fontWeight: primary ? 'bold' : 'normal', + cursor: 'pointer', + order: primary ? 'initial' : 9, + }; + }), + ActionIcon = (0, esm.styled)(icon.P)(function (_ref3) { + var theme = _ref3.theme, + icon = _ref3.icon, + disabled = _ref3.disabled; + return { + display: 'inline-block', + verticalAlign: 'middle', + width: 15, + height: 15, + padding: 3, + marginLeft: 5, + cursor: disabled ? 'not-allowed' : 'pointer', + color: theme.color.mediumdark, + '&:hover': disabled ? {} : { color: 'subtract' === icon ? theme.color.negative : theme.color.ancillary }, + 'svg + &': { marginLeft: 0 }, + }; + }), + Input = esm.styled.input(function (_ref4) { + var theme = _ref4.theme, + placeholder = _ref4.placeholder; + return { + outline: 0, + margin: placeholder ? 1 : '1px 0', + padding: '3px 4px', + color: theme.color.defaultText, + background: theme.background.app, + border: '1px solid '.concat(theme.color.border), + borderRadius: 4, + lineHeight: '14px', + width: 'Key' === placeholder ? 80 : 120, + '&:focus': { border: '1px solid '.concat(theme.color.secondary) }, + }; + }), + RawButton = (0, esm.styled)(bar_button.hU)(function (_ref5) { + var theme = _ref5.theme; + return { + position: 'absolute', + zIndex: 2, + top: 2, + right: 2, + height: 21, + padding: '0 3px', + background: theme.background.bar, + border: '1px solid '.concat(theme.color.border), + borderRadius: 3, + color: theme.color.mediumdark, + fontSize: '9px', + fontWeight: 'bold', + span: { marginLeft: 3, marginTop: 1 }, + }; + }), + RawInput = (0, esm.styled)(esm_form.l.Textarea)(function (_ref6) { + var theme = _ref6.theme; + return { + flex: 1, + padding: '7px 6px', + fontFamily: theme.typography.fonts.mono, + fontSize: '12px', + lineHeight: '18px', + '&::placeholder': { fontFamily: theme.typography.fonts.base, fontSize: '13px' }, + '&:placeholder-shown': { padding: '7px 10px' }, + }; + }), + ENTER_EVENT = { bubbles: !0, cancelable: !0, key: 'Enter', code: 'Enter', keyCode: 13 }, + dispatchEnterKey = function dispatchEnterKey(event) { + event.currentTarget.dispatchEvent(new globalWindow.KeyboardEvent('keydown', ENTER_EVENT)); + }, + selectValue = function selectValue(event) { + event.currentTarget.select(); + }, + getCustomStyleFunction = function getCustomStyleFunction(theme) { + return function () { + return { + name: { color: theme.color.secondary }, + collapsed: { color: theme.color.dark }, + ul: { listStyle: 'none', margin: '0 0 0 1rem', padding: 0 }, + li: { outline: 0 }, + }; + }; + }, + ObjectControl = function ObjectControl(_ref7) { + var name = _ref7.name, + value = _ref7.value, + onChange = _ref7.onChange, + theme = (0, emotion_theming_browser_esm.Fg)(), + data = (0, react.useMemo)( + function () { + return value && cloneDeep_default()(value); + }, + [value], + ), + hasData = null != data, + _useState2 = _slicedToArray((0, react.useState)(!hasData), 2), + showRaw = _useState2[0], + setShowRaw = _useState2[1], + _useState4 = _slicedToArray((0, react.useState)(null), 2), + parseError = _useState4[0], + setParseError = _useState4[1], + updateRaw = (0, react.useCallback)( + function (raw) { + try { + raw && onChange(JSON.parse(raw)), setParseError(void 0); + } catch (e) { + setParseError(e); + } + }, + [onChange], + ), + _useState6 = _slicedToArray((0, react.useState)(!1), 2), + forceVisible = _useState6[0], + setForceVisible = _useState6[1], + onForceVisible = (0, react.useCallback)( + function () { + onChange({}), setForceVisible(!0); + }, + [setForceVisible], + ), + htmlElRef = (0, react.useRef)(null); + if ( + ((0, react.useEffect)( + function () { + forceVisible && htmlElRef.current && htmlElRef.current.select(); + }, + [forceVisible], + ), + !hasData) + ) + return react.createElement( + esm_form.l.Button, + { id: (0, helpers.O)(name), onClick: onForceVisible }, + 'Set object', + ); + var rawJSONForm = react.createElement(RawInput, { + ref: htmlElRef, + id: (0, helpers.d)(name), + name, + defaultValue: null === value ? '' : JSON.stringify(value, null, 2), + onBlur: function onBlur(event) { + return updateRaw(event.target.value); + }, + placeholder: 'Edit JSON string...', + autoFocus: forceVisible, + valid: parseError ? 'error' : null, + }); + return react.createElement( + Wrapper, + null, + ['Object', 'Array'].includes(getObjectType(data)) && + react.createElement( + RawButton, + { + onClick: function onClick() { + return setShowRaw(function (v) { + return !v; + }); + }, + }, + react.createElement(icon.P, { icon: showRaw ? 'eyeclose' : 'eye' }), + react.createElement('span', null, 'RAW'), + ), + showRaw + ? rawJSONForm + : react.createElement(JsonTree, { + data, + rootName: name, + onFullyUpdate: onChange, + getStyle: getCustomStyleFunction(theme), + cancelButtonElement: react.createElement(Button, { type: 'button' }, 'Cancel'), + editButtonElement: react.createElement(Button, { type: 'submit' }, 'Save'), + addButtonElement: react.createElement(Button, { type: 'submit', primary: !0 }, 'Save'), + plusMenuElement: react.createElement(ActionIcon, { icon: 'add' }), + minusMenuElement: react.createElement(ActionIcon, { icon: 'subtract' }), + inputElement: function inputElement(_, __, ___, key) { + return key + ? react.createElement(Input, { onFocus: selectValue, onBlur: dispatchEnterKey }) + : react.createElement(Input, null); + }, + fallback: rawJSONForm, + }), + ); + }; + ObjectControl.displayName = 'ObjectControl'; + }, + 45389: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { m: () => RangeControl }); + __webpack_require__(18178), + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(58188), + __webpack_require__(88233), + __webpack_require__(26936), + __webpack_require__(91321); + var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1039), + _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(98199), + _Number__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(63020), + RangeInput = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.input(function (_ref) { + var theme = _ref.theme, + min = _ref.min, + max = _ref.max, + value = _ref.value; + return { + '&': { width: '100%', backgroundColor: 'transparent', appearance: 'none' }, + '&::-webkit-slider-runnable-track': { + background: + 'light' === theme.base + ? 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' 100%)') + : 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' 100%)'), + boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset'), + borderRadius: 6, + width: '100%', + height: 6, + cursor: 'pointer', + }, + '&::-webkit-slider-thumb': { + marginTop: '-6px', + width: 16, + height: 16, + border: '1px solid '.concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.appBorderColor, 0.2)), + borderRadius: '50px', + boxShadow: '0 1px 3px 0px '.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.appBorderColor, 0.2), + ), + cursor: 'grab', + appearance: 'none', + background: ''.concat(theme.input.background), + transition: 'all 150ms ease-out', + '&:hover': { + background: ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.05, theme.input.background)), + transform: 'scale3d(1.1, 1.1, 1.1) translateY(-1px)', + transition: 'all 50ms ease-out', + }, + '&:active': { + background: ''.concat(theme.input.background), + transform: 'scale3d(1, 1, 1) translateY(0px)', + cursor: 'grabbing', + }, + }, + '&:focus': { + outline: 'none', + '&::-webkit-slider-runnable-track': { + borderColor: (0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.color.secondary, 0.4), + }, + '&::-webkit-slider-thumb': { + borderColor: theme.color.secondary, + boxShadow: '0 0px 5px 0px '.concat(theme.color.secondary), + }, + }, + '&::-moz-range-track': { + background: + 'light' === theme.base + ? 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' 100%)') + : 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' 100%)'), + boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset'), + borderRadius: 6, + width: '100%', + height: 6, + cursor: 'pointer', + outline: 'none', + }, + '&::-moz-range-thumb': { + width: 16, + height: 16, + border: '1px solid '.concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.color.border, 0.2)), + borderRadius: '50px', + boxShadow: '0 1px 3px 0px '.concat( + (0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.color.border, 0.2), + ), + cursor: 'grab', + background: ''.concat(theme.input.background), + transition: 'all 150ms ease-out', + '&:hover': { + background: ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.05, theme.input.background)), + transform: 'scale3d(1.1, 1.1, 1.1) translateY(-1px)', + transition: 'all 50ms ease-out', + }, + '&:active': { + background: ''.concat(theme.input.background), + transform: 'scale3d(1, 1, 1) translateY(0px)', + cursor: 'grabbing', + }, + }, + '&::-ms-track': { + background: + 'light' === theme.base + ? 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__._j)(0.02, theme.input.background), ' 100%)') + : 'linear-gradient(to right, \n ' + .concat(theme.color.green, ' 0%, ') + .concat(theme.color.green, ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' ') + .concat(((value - min) / (max - min)) * 100, '%, \n ') + .concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.$n)(0.02, theme.input.background), ' 100%)'), + boxShadow: ''.concat(theme.appBorderColor, ' 0 0 0 1px inset'), + color: 'transparent', + width: '100%', + height: '6px', + cursor: 'pointer', + }, + '&::-ms-fill-lower': { borderRadius: 6 }, + '&::-ms-fill-upper': { borderRadius: 6 }, + '&::-ms-thumb': { + width: 16, + height: 16, + background: ''.concat(theme.input.background), + border: '1px solid '.concat((0, polished__WEBPACK_IMPORTED_MODULE_9__.m4)(theme.appBorderColor, 0.2)), + borderRadius: 50, + cursor: 'grab', + marginTop: 0, + }, + '@supports (-ms-ime-align:auto)': { 'input[type=range]': { margin: '0' } }, + }; + }), + RangeLabel = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.span({ + paddingLeft: 5, + paddingRight: 5, + fontSize: 12, + whiteSpace: 'nowrap', + fontFeatureSettings: 'tnum', + fontVariantNumeric: 'tabular-nums', + }), + RangeWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_8__.styled.div({ + display: 'flex', + alignItems: 'center', + width: '100%', + }); + var RangeControl = function RangeControl(_ref2) { + var name = _ref2.name, + value = _ref2.value, + onChange = _ref2.onChange, + _ref2$min = _ref2.min, + min = void 0 === _ref2$min ? 0 : _ref2$min, + _ref2$max = _ref2.max, + max = void 0 === _ref2$max ? 100 : _ref2$max, + _ref2$step = _ref2.step, + step = void 0 === _ref2$step ? 1 : _ref2$step, + onBlur = _ref2.onBlur, + onFocus = _ref2.onFocus, + hasValue = void 0 !== value, + numberOFDecimalsPlaces = (0, react__WEBPACK_IMPORTED_MODULE_7__.useMemo)( + function () { + return (function getNumberOfDecimalPlaces(number) { + var match = number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + return match ? Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)) : 0; + })(step); + }, + [step], + ); + return react__WEBPACK_IMPORTED_MODULE_7__.createElement( + RangeWrapper, + null, + react__WEBPACK_IMPORTED_MODULE_7__.createElement(RangeLabel, null, min), + react__WEBPACK_IMPORTED_MODULE_7__.createElement(RangeInput, { + id: (0, _helpers__WEBPACK_IMPORTED_MODULE_11__.d)(name), + type: 'range', + onChange: function handleChange(event) { + onChange((0, _Number__WEBPACK_IMPORTED_MODULE_10__.Qc)(event.target.value)); + }, + name, + value, + min, + max, + step, + onFocus, + onBlur, + }), + react__WEBPACK_IMPORTED_MODULE_7__.createElement( + RangeLabel, + null, + ''.concat(hasValue ? value.toFixed(numberOFDecimalsPlaces) : '--'), + ' / ', + max, + ), + ); + }; + RangeControl.displayName = 'RangeControl'; + }, + 64081: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { w: () => TextControl }); + __webpack_require__(26936), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(77439), + _form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(44476), + _helpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(98199); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Wrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_11__.styled.label({ display: 'flex' }), + TextControl = function TextControl(_ref) { + var name = _ref.name, + value = _ref.value, + onChange = _ref.onChange, + onFocus = _ref.onFocus, + onBlur = _ref.onBlur, + _useState2 = _slicedToArray((0, react__WEBPACK_IMPORTED_MODULE_10__.useState)(!1), 2), + forceVisible = _useState2[0], + setForceVisible = _useState2[1], + onForceVisible = (0, react__WEBPACK_IMPORTED_MODULE_10__.useCallback)( + function () { + onChange(''), setForceVisible(!0); + }, + [setForceVisible], + ); + if (void 0 === value) + return react__WEBPACK_IMPORTED_MODULE_10__.createElement( + _form__WEBPACK_IMPORTED_MODULE_12__.l.Button, + { id: (0, _helpers__WEBPACK_IMPORTED_MODULE_13__.O)(name), onClick: onForceVisible }, + 'Set string', + ); + var isValid = 'string' == typeof value; + return react__WEBPACK_IMPORTED_MODULE_10__.createElement( + Wrapper, + null, + react__WEBPACK_IMPORTED_MODULE_10__.createElement(_form__WEBPACK_IMPORTED_MODULE_12__.l.Textarea, { + id: (0, _helpers__WEBPACK_IMPORTED_MODULE_13__.d)(name), + onChange: function handleChange(event) { + onChange(event.target.value); + }, + size: 'flex', + placeholder: 'Edit string...', + autoFocus: forceVisible, + valid: isValid ? null : 'error', + name, + value: isValid ? value : '', + onFocus, + onBlur, + }), + ); + }; + TextControl.displayName = 'TextControl'; + }, + 98199: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { d: () => getControlId, O: () => getControlSetterButtonId }); + __webpack_require__(85940), __webpack_require__(77950); + var getControlId = function getControlId(value) { + return 'control-'.concat(value.replace(/\s+/g, '-')); + }, + getControlSetterButtonId = function getControlSetterButtonId(value) { + return 'set-'.concat(value.replace(/\s+/g, '-')); + }; + }, + 53933: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + BooleanControl: () => _Boolean__WEBPACK_IMPORTED_MODULE_4__.m, + ColorControl: () => ColorControl, + DateControl: () => _Date__WEBPACK_IMPORTED_MODULE_5__.E, + NumberControl: () => _Number__WEBPACK_IMPORTED_MODULE_6__.VW, + format: () => _Number__WEBPACK_IMPORTED_MODULE_6__.WU, + parse: () => _Number__WEBPACK_IMPORTED_MODULE_6__.Qc, + OptionsControl: () => _options__WEBPACK_IMPORTED_MODULE_7__.o, + ObjectControl: () => _Object__WEBPACK_IMPORTED_MODULE_8__.V, + RangeControl: () => _Range__WEBPACK_IMPORTED_MODULE_9__.m, + TextControl: () => _Text__WEBPACK_IMPORTED_MODULE_10__.w, + FilesControl: () => _Files__WEBPACK_IMPORTED_MODULE_11__.A, + }); + __webpack_require__(73439), __webpack_require__(58188); + var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2784), + _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11183), + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _types__WEBPACK_IMPORTED_MODULE_3__) + ['default', 'ColorControl'].indexOf(__WEBPACK_IMPORT_KEY__) < 0 && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _types__WEBPACK_IMPORTED_MODULE_3__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _Boolean__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3888), + _Date__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(30700), + _Number__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63020), + _options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29143), + _Object__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91241), + _Range__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45389), + _Text__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64081), + _Files__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(63654), + LazyColorControl = react__WEBPACK_IMPORTED_MODULE_2__.lazy(function () { + return __webpack_require__.e(715).then(__webpack_require__.bind(__webpack_require__, 11715)); + }), + ColorControl = function ColorControl(props) { + return react__WEBPACK_IMPORTED_MODULE_2__.createElement( + react__WEBPACK_IMPORTED_MODULE_2__.Suspense, + { fallback: react__WEBPACK_IMPORTED_MODULE_2__.createElement('div', null) }, + react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyColorControl, props), + ); + }; + ColorControl.displayName = 'ColorControl'; + }, + 71555: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { o: () => OptionsControl }); + __webpack_require__(43105), + __webpack_require__(39529), + __webpack_require__(31235), + __webpack_require__(32501), + __webpack_require__(22144); + var react = __webpack_require__(2784), + esm = __webpack_require__(51893), + dist_esm = __webpack_require__(87537), + theming_dist_esm = + (__webpack_require__(26936), + __webpack_require__(99805), + __webpack_require__(43450), + __webpack_require__(34769), + __webpack_require__(18178), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(27233), + __webpack_require__(77439)); + __webpack_require__(49228), __webpack_require__(35883), __webpack_require__(95342); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var selectedKey = function selectedKey(value, options) { + var entry = + options && + Object.entries(options).find(function (_ref) { + var _ref2 = _slicedToArray(_ref, 2); + _ref2[0]; + return _ref2[1] === value; + }); + return entry ? entry[0] : void 0; + }, + selectedKeys = function selectedKeys(value, options) { + return value && options + ? Object.entries(options) + .filter(function (entry) { + return value.includes(entry[1]); + }) + .map(function (entry) { + return entry[0]; + }) + : []; + }, + selectedValues = function selectedValues(keys, options) { + return ( + keys && + options && + keys.map(function (key) { + return options[key]; + }) + ); + }, + helpers = __webpack_require__(98199); + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Checkbox_arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + Checkbox_unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Checkbox_slicedToArray(arr, i) { + return ( + (function Checkbox_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Checkbox_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + Checkbox_unsupportedIterableToArray(arr, i) || + (function Checkbox_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Checkbox_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return Checkbox_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? Checkbox_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function Checkbox_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Wrapper = theming_dist_esm.styled.div(function (_ref) { + return _ref.isInline + ? { + display: 'flex', + flexWrap: 'wrap', + alignItems: 'flex-start', + label: { display: 'inline-flex', marginRight: 15 }, + } + : { label: { display: 'flex' } }; + }), + Text = theming_dist_esm.styled.span({}), + Label = theming_dist_esm.styled.label({ + lineHeight: '20px', + alignItems: 'center', + marginBottom: 8, + '&:last-child': { marginBottom: 0 }, + input: { margin: 0, marginRight: 6 }, + }), + CheckboxControl = function CheckboxControl(_ref2) { + var name = _ref2.name, + options = _ref2.options, + value = _ref2.value, + onChange = _ref2.onChange, + isInline = _ref2.isInline; + if (!options) + return ( + dist_esm.kg.warn('Checkbox with no options: '.concat(name)), + react.createElement(react.Fragment, null, '-') + ); + var initial = selectedKeys(value, options), + _useState2 = Checkbox_slicedToArray((0, react.useState)(initial), 2), + selected = _useState2[0], + setSelected = _useState2[1], + handleChange = function handleChange(e) { + var option = e.target.value, + updated = _toConsumableArray(selected); + null != updated && updated.includes(option) + ? updated.splice(updated.indexOf(option), 1) + : updated.push(option), + onChange(selectedValues(updated, options)), + setSelected(updated); + }, + controlId = (0, helpers.d)(name); + return react.createElement( + Wrapper, + { isInline }, + Object.keys(options).map(function (key, index) { + var id = ''.concat(controlId, '-').concat(index); + return react.createElement( + Label, + { key: id, htmlFor: id }, + react.createElement('input', { + type: 'checkbox', + id, + name: id, + value: key, + onChange: handleChange, + checked: null == selected ? void 0 : selected.includes(key), + }), + react.createElement(Text, null, key), + ); + }), + ); + }; + CheckboxControl.displayName = 'CheckboxControl'; + var Radio_Wrapper = theming_dist_esm.styled.div(function (_ref) { + return _ref.isInline + ? { + display: 'flex', + flexWrap: 'wrap', + alignItems: 'flex-start', + label: { display: 'inline-flex', marginRight: 15 }, + } + : { label: { display: 'flex' } }; + }), + Radio_Text = + (theming_dist_esm.styled.fieldset({ border: 0, padding: 0, margin: 0 }), theming_dist_esm.styled.span({})), + Radio_Label = theming_dist_esm.styled.label({ + lineHeight: '20px', + alignItems: 'center', + marginBottom: 8, + '&:last-child': { marginBottom: 0 }, + input: { margin: 0, marginRight: 6 }, + }), + RadioControl = function RadioControl(_ref2) { + var name = _ref2.name, + options = _ref2.options, + value = _ref2.value, + _onChange = _ref2.onChange, + isInline = _ref2.isInline; + if (!options) + return ( + dist_esm.kg.warn('Radio with no options: '.concat(name)), react.createElement(react.Fragment, null, '-') + ); + var selection = selectedKey(value, options), + controlId = (0, helpers.d)(name); + return react.createElement( + Radio_Wrapper, + { isInline }, + Object.keys(options).map(function (key, index) { + var id = ''.concat(controlId, '-').concat(index); + return react.createElement( + Radio_Label, + { key: id, htmlFor: id }, + react.createElement('input', { + type: 'radio', + id, + name: id, + value: key, + onChange: function onChange(e) { + return _onChange(options[e.currentTarget.value]); + }, + checked: key === selection, + }), + react.createElement(Radio_Text, null, key), + ); + }), + ); + }; + RadioControl.displayName = 'RadioControl'; + var _templateObject, + icon = __webpack_require__(35016); + var styleResets = { + appearance: 'none', + border: '0 none', + boxSizing: 'inherit', + display: ' block', + margin: ' 0', + background: 'transparent', + padding: 0, + fontSize: 'inherit', + position: 'relative', + }, + OptionsSelect = theming_dist_esm.styled.select(function (_ref) { + var theme = _ref.theme; + return Object.assign({}, styleResets, { + boxSizing: 'border-box', + position: 'relative', + padding: '6px 10px', + width: '100%', + color: theme.input.color || 'inherit', + background: theme.input.background, + borderRadius: theme.input.borderRadius, + boxShadow: ''.concat(theme.input.border, ' 0 0 0 1px inset'), + fontSize: theme.typography.size.s2 - 1, + lineHeight: '20px', + '&:focus': { boxShadow: ''.concat(theme.color.secondary, ' 0 0 0 1px inset'), outline: 'none' }, + '&[disabled]': { cursor: 'not-allowed', opacity: 0.5 }, + '::placeholder': { color: theme.color.mediumdark }, + '&[multiple]': { + overflow: 'auto', + padding: 0, + option: { display: 'block', padding: '6px 10px', marginLeft: 1, marginRight: 1 }, + }, + }); + }), + SelectWrapper = theming_dist_esm.styled.span( + _templateObject || + (_templateObject = (function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + '\n display: inline-block;\n line-height: normal;\n overflow: hidden;\n position: relative;\n vertical-align: top;\n width: 100%;\n\n svg {\n position: absolute;\n z-index: 1;\n pointer-events: none;\n height: 12px;\n margin-top: -6px;\n right: 12px;\n top: 50%;\n\n path {\n fill: currentColor;\n }\n }\n', + ])), + ), + SingleSelect = function SingleSelect(_ref2) { + var name = _ref2.name, + value = _ref2.value, + options = _ref2.options, + onChange = _ref2.onChange, + selection = selectedKey(value, options) || 'Choose option...', + controlId = (0, helpers.d)(name); + return react.createElement( + SelectWrapper, + null, + react.createElement(icon.P, { icon: 'arrowdown' }), + react.createElement( + OptionsSelect, + { + id: controlId, + value: selection, + onChange: function handleChange(e) { + onChange(options[e.currentTarget.value]); + }, + }, + react.createElement('option', { key: 'no-selection', disabled: !0 }, 'Choose option...'), + Object.keys(options).map(function (key) { + return react.createElement('option', { key }, key); + }), + ), + ); + }; + SingleSelect.displayName = 'SingleSelect'; + var MultiSelect = function MultiSelect(_ref3) { + var name = _ref3.name, + value = _ref3.value, + options = _ref3.options, + onChange = _ref3.onChange, + selection = selectedKeys(value, options), + controlId = (0, helpers.d)(name); + return react.createElement( + SelectWrapper, + null, + react.createElement( + OptionsSelect, + { + id: controlId, + multiple: !0, + value: selection, + onChange: function handleChange(e) { + var selection = Array.from(e.currentTarget.options) + .filter(function (option) { + return option.selected; + }) + .map(function (option) { + return option.value; + }); + onChange(selectedValues(selection, options)); + }, + }, + Object.keys(options).map(function (key) { + return react.createElement('option', { key }, key); + }), + ), + ); + }; + MultiSelect.displayName = 'MultiSelect'; + var Options_templateObject, + SelectControl = function SelectControl(props) { + var name = props.name; + return props.options + ? props.isMulti + ? react.createElement(MultiSelect, props) + : react.createElement(SingleSelect, props) + : (dist_esm.kg.warn('Select with no options: '.concat(name)), + react.createElement(react.Fragment, null, '-')); + }; + var normalizeOptions = function normalizeOptions(options, labels) { + return Array.isArray(options) + ? options.reduce(function (acc, item) { + return (acc[(null == labels ? void 0 : labels[item]) || String(item)] = item), acc; + }, {}) + : options; + }, + Controls = { + check: CheckboxControl, + 'inline-check': CheckboxControl, + radio: RadioControl, + 'inline-radio': RadioControl, + select: SelectControl, + 'multi-select': SelectControl, + }, + OptionsControl = function OptionsControl(props) { + var _props$type = props.type, + type = void 0 === _props$type ? 'select' : _props$type, + options = props.options, + labels = props.labels, + argType = props.argType, + normalized = Object.assign({}, props, { + options: normalizeOptions(options || argType.options, labels), + isInline: type.includes('inline'), + isMulti: type.includes('multi'), + }); + options && + dist_esm.IH.warn( + (0, esm.C)( + Options_templateObject || + (Options_templateObject = (function Options_taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + "\n 'control.options' is deprecated and will be removed in Storybook 7.0. Define 'options' directly on the argType instead, and use 'control.labels' for custom labels.\n\n More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-controloptions\n ", + ])), + ), + ); + var Control = Controls[type]; + if (Control) return react.createElement(Control, normalized); + throw new Error('Unknown options type: '.concat(type)); + }; + }, + 29143: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { o: () => _Options__WEBPACK_IMPORTED_MODULE_0__.o }); + var _Options__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71555); + }, + 8429: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + function parse(string) { + var result = string; + if (0 === result.indexOf('function')) return eval('('.concat(result, ')')); + try { + result = JSON.parse(string); + } catch (e) {} + return result; + } + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + const __WEBPACK_DEFAULT_EXPORT__ = parse; + }, + 11183: () => {}, + 44476: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { l: () => Form }); + __webpack_require__(43105); + var esm = __webpack_require__(77439), + react = + (__webpack_require__(35744), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(2784)); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Wrapper = esm.styled.label(function (_ref) { + var theme = _ref.theme; + return { + display: 'flex', + borderBottom: '1px solid '.concat(theme.appBorderColor), + margin: '0 15px', + padding: '8px 0', + '&:last-child': { marginBottom: '3rem' }, + }; + }), + Label = esm.styled.span(function (_ref2) { + return { + minWidth: 100, + fontWeight: _ref2.theme.typography.weight.bold, + marginRight: 15, + display: 'flex', + justifyContent: 'flex-start', + alignItems: 'center', + lineHeight: '16px', + }; + }), + Field = function Field(_ref3) { + var label = _ref3.label, + children = _ref3.children, + props = _objectWithoutProperties(_ref3, ['label', 'children']); + return react.createElement( + Wrapper, + props, + label ? react.createElement(Label, null, react.createElement('span', null, label)) : null, + children, + ); + }; + (Field.displayName = 'Field'), (Field.defaultProps = { label: void 0 }); + var esm_extends = __webpack_require__(7560), + objectWithoutPropertiesLoose = __webpack_require__(98283); + const use_isomorphic_layout_effect_browser_esm = react.useLayoutEffect; + const use_latest_esm = function useLatest(value) { + var ref = (0, react.useRef)(value); + return ( + use_isomorphic_layout_effect_browser_esm(function () { + ref.current = value; + }), + ref + ); + }; + var updateRef = function updateRef(ref, value) { + 'function' != typeof ref ? (ref.current = value) : ref(value); + }; + const use_composed_ref_esm = function useComposedRef(libRef, userRef) { + var prevUserRef = (0, react.useRef)(); + return (0, react.useCallback)( + function (instance) { + (libRef.current = instance), + prevUserRef.current && updateRef(prevUserRef.current, null), + (prevUserRef.current = userRef), + userRef && updateRef(userRef, instance); + }, + [userRef], + ); + }; + var HIDDEN_TEXTAREA_STYLE = { + 'min-height': '0', + 'max-height': 'none', + height: '0', + visibility: 'hidden', + overflow: 'hidden', + position: 'absolute', + 'z-index': '-1000', + top: '0', + right: '0', + }, + forceHiddenStyles = function forceHiddenStyles(node) { + Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function (key) { + node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important'); + }); + }, + hiddenTextarea = null; + var noop = function noop() {}, + SIZING_STYLE = [ + 'borderBottomWidth', + 'borderLeftWidth', + 'borderRightWidth', + 'borderTopWidth', + 'boxSizing', + 'fontFamily', + 'fontSize', + 'fontStyle', + 'fontWeight', + 'letterSpacing', + 'lineHeight', + 'paddingBottom', + 'paddingLeft', + 'paddingRight', + 'paddingTop', + 'tabSize', + 'textIndent', + 'textRendering', + 'textTransform', + 'width', + 'wordBreak', + ], + isIE = !!document.documentElement.currentStyle, + TextareaAutosize = function TextareaAutosize(_ref, userRef) { + var cacheMeasurements = _ref.cacheMeasurements, + maxRows = _ref.maxRows, + minRows = _ref.minRows, + _ref$onChange = _ref.onChange, + onChange = void 0 === _ref$onChange ? noop : _ref$onChange, + _ref$onHeightChange = _ref.onHeightChange, + onHeightChange = void 0 === _ref$onHeightChange ? noop : _ref$onHeightChange, + props = (0, objectWithoutPropertiesLoose.Z)(_ref, [ + 'cacheMeasurements', + 'maxRows', + 'minRows', + 'onChange', + 'onHeightChange', + ]); + if (props.style) { + if ('maxHeight' in props.style) + throw new Error( + 'Using `style.maxHeight` for is not supported. Please use `maxRows`.', + ); + if ('minHeight' in props.style) + throw new Error( + 'Using `style.minHeight` for is not supported. Please use `minRows`.', + ); + } + var isControlled = void 0 !== props.value, + libRef = (0, react.useRef)(null), + ref = use_composed_ref_esm(libRef, userRef), + heightRef = (0, react.useRef)(0), + measurementsCacheRef = (0, react.useRef)(), + resizeTextarea = function resizeTextarea() { + var node = libRef.current, + nodeSizingData = + cacheMeasurements && measurementsCacheRef.current + ? measurementsCacheRef.current + : (function getSizingData(node) { + var style = window.getComputedStyle(node); + if (null === style) return null; + var sizingStyle = (function pick(props, obj) { + return props.reduce(function (acc, prop) { + return (acc[prop] = obj[prop]), acc; + }, {}); + })(SIZING_STYLE, style), + boxSizing = sizingStyle.boxSizing; + return '' === boxSizing + ? null + : (isIE && + 'border-box' === boxSizing && + (sizingStyle.width = + parseFloat(sizingStyle.width) + + parseFloat(sizingStyle.borderRightWidth) + + parseFloat(sizingStyle.borderLeftWidth) + + parseFloat(sizingStyle.paddingRight) + + parseFloat(sizingStyle.paddingLeft) + + 'px'), + { + sizingStyle, + paddingSize: parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop), + borderSize: + parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth), + }); + })(node); + if (nodeSizingData) { + measurementsCacheRef.current = nodeSizingData; + var _calculateNodeHeight = (function calculateNodeHeight(sizingData, value, minRows, maxRows) { + void 0 === minRows && (minRows = 1), + void 0 === maxRows && (maxRows = 1 / 0), + hiddenTextarea || + ((hiddenTextarea = document.createElement('textarea')).setAttribute('tabindex', '-1'), + hiddenTextarea.setAttribute('aria-hidden', 'true'), + forceHiddenStyles(hiddenTextarea)), + null === hiddenTextarea.parentNode && document.body.appendChild(hiddenTextarea); + var paddingSize = sizingData.paddingSize, + borderSize = sizingData.borderSize, + sizingStyle = sizingData.sizingStyle, + boxSizing = sizingStyle.boxSizing; + Object.keys(sizingStyle).forEach(function (_key) { + var key = _key; + hiddenTextarea.style[key] = sizingStyle[key]; + }), + forceHiddenStyles(hiddenTextarea), + (hiddenTextarea.value = value); + var height = (function getHeight(node, sizingData) { + var height = node.scrollHeight; + return 'border-box' === sizingData.sizingStyle.boxSizing + ? height + sizingData.borderSize + : height - sizingData.paddingSize; + })(hiddenTextarea, sizingData); + hiddenTextarea.value = 'x'; + var rowHeight = hiddenTextarea.scrollHeight - paddingSize, + minHeight = rowHeight * minRows; + 'border-box' === boxSizing && (minHeight = minHeight + paddingSize + borderSize), + (height = Math.max(minHeight, height)); + var maxHeight = rowHeight * maxRows; + return ( + 'border-box' === boxSizing && (maxHeight = maxHeight + paddingSize + borderSize), + [(height = Math.min(maxHeight, height)), rowHeight] + ); + })(nodeSizingData, node.value || node.placeholder || 'x', minRows, maxRows), + height = _calculateNodeHeight[0], + rowHeight = _calculateNodeHeight[1]; + heightRef.current !== height && + ((heightRef.current = height), + node.style.setProperty('height', height + 'px', 'important'), + onHeightChange(height, { rowHeight })); + } + }; + return ( + (0, react.useLayoutEffect)(resizeTextarea), + (function useWindowResizeListener(listener) { + var latestListener = use_latest_esm(listener); + (0, react.useLayoutEffect)(function () { + var handler = function handler(event) { + latestListener.current(event); + }; + return ( + window.addEventListener('resize', handler), + function () { + window.removeEventListener('resize', handler); + } + ); + }, []); + })(resizeTextarea), + (0, react.createElement)( + 'textarea', + (0, esm_extends.Z)({}, props, { + onChange: function handleChange(event) { + isControlled || resizeTextarea(), onChange(event); + }, + ref, + }), + ) + ); + }; + const react_textarea_autosize_browser_esm = (0, react.forwardRef)(TextareaAutosize); + var Button = __webpack_require__(81899); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function input_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function input_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var styleResets = { + appearance: 'none', + border: '0 none', + boxSizing: 'inherit', + display: ' block', + margin: ' 0', + background: 'transparent', + padding: 0, + fontSize: 'inherit', + position: 'relative', + }, + styles = function styles(_ref) { + var theme = _ref.theme; + return Object.assign({}, styleResets, { + transition: 'box-shadow 200ms ease-out, opacity 200ms ease-out', + color: theme.input.color || 'inherit', + background: theme.input.background, + boxShadow: ''.concat(theme.input.border, ' 0 0 0 1px inset'), + borderRadius: theme.input.borderRadius, + fontSize: theme.typography.size.s2 - 1, + lineHeight: '20px', + padding: '6px 10px', + '&:focus': { boxShadow: ''.concat(theme.color.secondary, ' 0 0 0 1px inset'), outline: 'none' }, + '&[disabled]': { cursor: 'not-allowed', opacity: 0.5 }, + '&:-webkit-autofill': { WebkitBoxShadow: '0 0 0 3em '.concat(theme.color.lightest, ' inset') }, + '::placeholder': { color: theme.color.mediumdark }, + }); + }, + sizes = function sizes(_ref2) { + switch (_ref2.size) { + case '100%': + return { width: '100%' }; + case 'flex': + return { flex: 1 }; + default: + return { display: 'inline' }; + } + }, + alignment = function alignment(_ref3) { + switch (_ref3.align) { + case 'end': + return { textAlign: 'right' }; + case 'center': + return { textAlign: 'center' }; + default: + return { textAlign: 'left' }; + } + }, + validation = function validation(_ref4) { + var valid = _ref4.valid, + theme = _ref4.theme; + switch (valid) { + case 'valid': + return { boxShadow: ''.concat(theme.color.positive, ' 0 0 0 1px inset !important') }; + case 'error': + return { boxShadow: ''.concat(theme.color.negative, ' 0 0 0 1px inset !important') }; + case 'warn': + return { boxShadow: ''.concat(theme.color.warning, ' 0 0 0 1px inset') }; + default: + return {}; + } + }, + Input = Object.assign( + (0, esm.styled)( + (0, react.forwardRef)(function (_ref5, ref) { + _ref5.size, _ref5.valid, _ref5.align; + var props = input_objectWithoutProperties(_ref5, ['size', 'valid', 'align']); + return react.createElement('input', _extends({}, props, { ref })); + }), + )(styles, sizes, alignment, validation, { minHeight: 32 }), + { displayName: 'Input' }, + ), + Select = Object.assign( + (0, esm.styled)( + (0, react.forwardRef)(function (_ref6, ref) { + _ref6.size, _ref6.valid, _ref6.align; + var props = input_objectWithoutProperties(_ref6, ['size', 'valid', 'align']); + return react.createElement('select', _extends({}, props, { ref })); + }), + )(styles, sizes, validation, { height: 32, userSelect: 'none', paddingRight: 20, appearance: 'menulist' }), + { displayName: 'Select' }, + ), + Textarea = Object.assign( + (0, esm.styled)( + (0, react.forwardRef)(function (_ref7, ref) { + _ref7.size, _ref7.valid, _ref7.align; + var props = input_objectWithoutProperties(_ref7, ['size', 'valid', 'align']); + return react.createElement(react_textarea_autosize_browser_esm, _extends({}, props, { ref })); + }), + )(styles, sizes, alignment, validation, function (_ref8) { + var _ref8$height = _ref8.height; + return { overflow: 'visible', maxHeight: void 0 === _ref8$height ? 400 : _ref8$height }; + }), + { displayName: 'Textarea' }, + ), + ButtonStyled = (0, esm.styled)( + (0, react.forwardRef)(function (_ref9, ref) { + _ref9.size, _ref9.valid, _ref9.align; + var props = input_objectWithoutProperties(_ref9, ['size', 'valid', 'align']); + return react.createElement(Button.z, _extends({}, props, { ref })); + }), + )(sizes, validation, { userSelect: 'none', overflow: 'visible', zIndex: 2, '&:hover': { transform: 'none' } }), + input_Button = Object.assign( + (0, react.forwardRef)(function (props, ref) { + return react.createElement(ButtonStyled, _extends({}, props, { tertiary: !0, small: !0, inForm: !0, ref })); + }), + { displayName: 'Button' }, + ), + Form = Object.assign(esm.styled.form({ boxSizing: 'border-box', width: '100%' }), { + Field, + Input, + Select, + Textarea, + Button: input_Button, + }); + }, + 35016: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { P: () => Icons, v: () => Symbols }); + __webpack_require__(34769), __webpack_require__(43450), __webpack_require__(34115), __webpack_require__(43105); + var react = __webpack_require__(2784), + esm = __webpack_require__(77439); + const icon_icons = { + mobile: + 'M648 64h-272c-66.274 0-120 53.726-120 120v656c0 66.274 53.726 120 120 120h272c66.274 0 120-53.726 120-120v-656c0-66.274-53.726-120-120-120zM376 144h272c22.056 0 40 17.944 40 40v495.968h-352v-495.968c0-22.056 17.946-40 40-40zM648 880h-272c-22.054 0-40-17.944-40-40v-80.032h352v80.032c0 22.056-17.944 40-40 40zM544.034 819.962c0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.672 14.33-31.998 32-31.998 17.674-0 32.004 14.326 32.004 31.998z', + watch: + 'M736.172 108.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM736.172 50.37c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 973.692c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20s8.956 20 20 20h408.282c11.044 0 20-8.956 20-20zM736.172 916.030c0-11.044-8.956-20-20-20h-408.282c-11.044 0-20 8.956-20 20 0 11.046 8.956 20 20 20h408.282c11.044 0 20-8.954 20-20zM717.53 228c18.904 0 34.286 15.14 34.286 33.75v500.502c0 18.61-15.38 33.75-34.286 33.75h-411.43c-18.904 0-34.286-15.14-34.286-33.75v-500.502c0-18.61 15.38-33.75 34.286-33.75h411.43zM717.53 148h-411.43c-63.118 0-114.286 50.928-114.286 113.75v500.502c0 62.822 51.166 113.75 114.286 113.75h411.43c63.118 0 114.286-50.926 114.286-113.75v-500.502c-0.002-62.822-51.168-113.75-114.286-113.75v0zM680.036 511.53c0 22.090-17.91 40-40 40h-128.004c-5.384 0-10.508-1.078-15.196-3.006-0.124-0.048-0.254-0.086-0.376-0.132-0.61-0.262-1.188-0.57-1.782-0.86-0.572-0.276-1.16-0.528-1.718-0.828-0.204-0.112-0.39-0.246-0.594-0.364-0.918-0.514-1.832-1.050-2.704-1.64-0.086-0.058-0.164-0.128-0.254-0.188-10.492-7.21-17.382-19.284-17.382-32.98v-151.5c0-22.094 17.91-40 40.004-40 22.088 0 40 17.906 40 40v111.498h88c22.094-0.002 40.002 17.91 40.006 40z', + tablet: + 'M200.022 927.988h624.018c1.38 0 2.746-0.072 4.090-0.208 20.168-2.050 35.91-19.080 35.91-39.792v-751.916c0-22.092-17.91-40-40-40h-624.018c-22.098 0-40 17.908-40 40v751.916c0 22.094 17.906 40 40 40zM512.002 878.206c-17.674 0-32.004-14.328-32.004-31.998 0-17.678 14.33-32.002 32.004-32.002 17.67 0 32 14.324 32 32.002 0 17.67-14.33 31.998-32 31.998zM240.022 176.078h544.018v591.902h-544.018v-591.902z', + browser: + 'M920.004 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.048-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM368 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM272 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM176 177.78c17.674 0 32.004 14.328 32.004 31.998 0 17.676-14.33 32.002-32.004 32.002-17.67 0-32-14.326-32-32.002 0-17.67 14.33-31.998 32-31.998zM880.004 815.996h-736.008v-527.988h736.008v527.988z', + sidebar: + 'M920.032 127.858h-816c-22.092 0-40 17.908-40 40v688c0 22.092 17.908 40 40 40h316.578c1.13 0.096 2.266 0.172 3.422 0.172s2.292-0.078 3.424-0.172h492.576c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40zM144.032 207.858h240v608h-240v-608zM880.032 815.858h-416v-608h416v608zM198.734 288.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 416.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32zM198.734 544.030c0-17.674 14.328-32 32.002-32h66.396c17.672 0 32 14.326 32 32 0 17.676-14.324 32-32 32h-66.398c-17.674 0-32-14.326-32-32z', + sidebaralt: + 'M64 167.944v688c0 22.092 17.908 40 40 40h816c22.092 0 40-17.908 40-40v-688c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40zM880 815.944h-240v-608h240v608zM144 207.944h416v608h-416v-608zM793.296 320.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 448.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32zM793.296 576.118h-66.398c-17.676 0-32-14.324-32-32 0-17.674 14.328-32 32-32h66.396c17.674 0 32.002 14.326 32.002 32 0 17.672-14.324 32-32 32z', + bottombar: + 'M85 121h854c24 0 42 18 42 41v700c0 23-18 41-42 41H608a44 44 0 0 1-7 0H85c-24 0-42-18-42-41V162c0-23 18-41 42-41zm41 535v165h772V656H126zm0-82h772V202H126v372zm185 197h-69c-19 0-34-14-34-32s15-33 34-33h69c19 0 34 15 34 33s-15 32-34 32zm236 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32zm235 0h-70c-18 0-33-14-33-32s15-33 33-33h70c18 0 33 15 33 33s-15 32-33 32z', + useralt: + 'M533 960a850 850 0 0 0 386-92v-19c0-117-242-223-306-234-20-3-21-58-21-58s59-58 72-137c35 0 56-84 21-113 2-31 45-243-173-243S337 276 338 307c-34 29-13 113 22 113 13 79 72 137 72 137s-1 55-21 58c-64 11-301 115-306 231a855 855 0 0 0 428 114z', + user: + 'M814 805a525 525 0 00-217-116c-17-3-17-50-17-50s50-49 61-116c29 0 48-71 18-96 1-26 38-206-147-206S364 401 365 427c-30 25-11 96 18 96 11 67 61 116 61 116s0 47-17 50c-39 6-154 53-217 116a418 418 0 015-590 418 418 0 01594 0 418 418 0 015 590M512 0a512 512 0 100 1024A512 512 0 00512 0', + useradd: + 'M87 859c-30-12-59-27-87-43 5-105 221-200 279-210 19-3 19-53 19-53s-54-53-65-125c-32 0-51-76-20-103-1-28-40-221 158-221 199 0 160 193 158 221 32 27 12 103-19 103-12 72-66 125-66 125s1 50 19 53c59 10 279 107 279 213v18a781 781 0 0 1-655 22zm892-565h-91v-90a45 45 0 1 0-91 0v90h-91a45 45 0 1 0 0 91h91v91a45 45 0 1 0 91 0v-91h91a45 45 0 1 0 0-91z', + users: + 'M360 128c193 0 155 182 154 208 31 25 12 97-19 97-11 67-64 118-64 118s1 47 19 50c57 9 271 100 271 200v16a771 771 0 0 1-637 21c-29-11-57-25-84-40 4-99 215-189 271-197 18-3 18-50 18-50s-52-51-63-118c-31 0-50-72-19-97-1-26-40-208 153-208zm416 66c133 0 107 125 106 144 21 17 8 66-13 66-8 47-44 81-44 81s0 33 12 34c40 6 187 69 187 138v46c-80 27-163 41-249 41l-9-1c-16-31-44-61-83-90a546 546 0 0 0-111-64c47-38 117-66 143-70 12-1 12-34 12-34s-36-34-43-81c-21 0-34-49-13-66-1-19-27-144 105-144z', + profile: + 'M761 631c0-13-10-23-22-23H285c-12 0-22 10-22 23 0 12 10 23 22 23h454c12 0 22-11 22-23zm0 100c0-12-10-22-22-22H285c-12 0-22 10-22 22 0 13 10 23 22 23h454c12 0 22-10 22-23zm0 101c0-13-10-23-22-23H285c-12 0-22 10-22 23s10 23 22 23h454c12 0 22-10 22-23zM832 0c59 0 107 49 107 109v807c-1 60-49 108-107 108H130c-25 0-45-20-45-46V46a45 45 0 0 1 45-46h702zm0 91H174v842h658c10 0 18-9 18-18V110c0-10-8-19-18-19zM384 532l-39-20c2-49 100-93 126-97 8-1 8-25 8-25s-24-24-29-57c-14 0-23-35-9-48-1-13-18-102 71-102s72 89 71 102c14 13 5 48-9 48-5 33-29 57-29 57s0 24 8 25c27 4 126 49 126 98v8a346 346 0 0 1-295 11z', + bookmark: + 'M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10z', + bookmarkhollow: + 'M772 1012L511 761l-260 251a49 49 0 0 1-52 10c-18-7-29-24-29-43V132c0-25 21-46 47-46h588c26 0 47 21 47 46v847c0 19-11 36-29 43a49 49 0 0 1-51-10zM545 664l213 205V181H265v688l213-205c9-9 21-14 33-14s24 5 34 14z', + book: + 'M896.054 159.774c-0.122-52.914-43.048-95.774-95.992-95.774h-632.004c-1.754 0-3.468 0.154-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v816c0 22.094 17.91 40 40 40h632.004c52.642 0 95.368-42.378 95.968-94.88h0.036v-705.332l-0.012-0.014zM368.062 144h80v271.922l-11.728-11.718c-15.62-15.606-40.924-15.606-56.542 0l-11.728 11.718v-271.922zM816.036 864.204c-0.1 8.712-7.268 15.796-15.972 15.796h-592.004v-736h80.004v368.426c0 16.176 9.742 30.758 24.684 36.954 14.944 6.192 32.146 2.778 43.586-8.656l51.728-51.68 51.728 51.68c7.652 7.644 17.876 11.708 28.28 11.708 5.156 0 10.356-1 15.306-3.050 14.944-6.196 24.684-20.778 24.684-36.954v-368.428h272c8.796 0 15.972 7.16 15.992 15.958l-0.016 704.246z', + repository: + 'M856.020 159.804c-0.122-52.916-43.048-95.774-95.992-95.774h-591.968c-1.754 0-3.468 0.154-5.164 0.37-19.644 2.54-34.836 19.292-34.836 39.63v784.584c0 22.094 17.91 40 40 40h151.972v63.594c0 10.876 6.548 20.682 16.598 24.844 10.046 4.164 21.612 1.87 29.304-5.818l34.78-34.748 34.78 34.748c5.144 5.14 12.020 7.87 19.014 7.87 3.466 0 6.962-0.672 10.292-2.052 10.048-4.164 16.598-13.968 16.598-24.844v-63.594h278.63c52.642 0 95.368-42.38 95.968-94.882h0.036v-673.916l-0.012-0.012zM776.020 159.988l-0.014 504.628h-519.974v-520.584h503.996c8.796-0 15.972 7.158 15.992 15.956zM760.028 848.616h-278.63v-56h-161.366v56h-111.972v-104h567.944l-0.002 88.204c-0.102 8.71-7.27 15.796-15.974 15.796zM320.032 240.396c0-17.67 14.328-31.998 31.998-31.998s32.002 14.326 32.002 31.998c0 17.674-14.332 32-32.002 32-17.672-0.002-31.998-14.326-31.998-32zM320.032 349.79c0-17.67 14.328-31.998 31.998-31.998s32.002 14.328 32.002 31.998c0 17.676-14.332 32-32.002 32-17.672 0-31.998-14.324-31.998-32zM320.032 459.188c0-17.67 14.328-32 31.998-32s32.002 14.328 32.002 32c0 17.674-14.332 31.998-32.002 31.998-17.672 0-31.998-14.324-31.998-31.998zM384.032 568.582c0 17.674-14.332 31.998-32.002 31.998s-31.998-14.324-31.998-31.998c0-17.67 14.328-32 31.998-32 17.67 0.002 32.002 14.33 32.002 32z', + star: + 'M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0z', + starhollow: + 'M763.972 919.5c-6.368 0-12.758-1.518-18.61-4.596l-233.358-122.688-233.37 122.688c-13.476 7.090-29.808 5.904-42.124-3.042-12.318-8.95-18.486-24.118-15.912-39.124l44.57-259.856-188.792-184.028c-10.904-10.626-14.828-26.524-10.124-41.004s17.222-25.034 32.292-27.222l260.906-37.912 116.686-236.42c6.738-13.652 20.644-22.296 35.87-22.296v0c15.226 0 29.13 8.644 35.87 22.298l116.674 236.418 260.906 37.912c15.068 2.19 27.586 12.742 32.292 27.222s0.782 30.376-10.124 41.004l-188.792 184.028 44.24 257.93c0.62 2.796 0.946 5.704 0.946 8.688 0 22.054-17.848 39.942-39.888 40-0.054 0-0.106 0-0.158 0zM190.256 428.144l145.812 142.13c9.428 9.192 13.73 22.432 11.504 35.406l-34.424 200.7 180.244-94.758c11.654-6.13 25.576-6.126 37.226 0l180.232 94.756-34.422-200.698c-2.226-12.974 2.076-26.214 11.504-35.406l145.812-142.13-201.51-29.282c-13.030-1.892-24.292-10.076-30.118-21.882l-90.114-182.596-90.122 182.598c-5.826 11.804-17.090 19.988-30.118 21.88l-201.506 29.282z', + circle: 'M1024 512A512 512 0 110 512a512 512 0 011024 0z', + circlehollow: + 'M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0z', + heart: + 'M895.032 194.328c-20.906-21.070-46.492-37.316-76.682-48.938-30.104-11.71-63.986-17.39-101.474-17.39-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.264-30.366-27.22-56.236-48.398-77.33z', + hearthollow: + 'M716.876 208c27.708 0 52.092 4.020 72.47 11.948l0.132 0.052 0.13 0.050c19.866 7.644 35.774 17.664 48.632 30.624l0.166 0.168 0.17 0.168c12.586 12.536 22.304 28.27 29.706 48.094 7.782 21.786 11.726 46.798 11.726 74.364 0 14.658-1.95 28.426-5.958 42.086l-0.028 0.092-0.026 0.092c-4.866 16.72-11.006 31.752-18.776 45.952l-0.162 0.298-0.16 0.296c-8.81 16.434-18.58 31.532-29.864 46.148l-0.204 0.264c-11.316 14.786-23.48 28.708-36.154 41.378l-277.122 275.574-276.94-276.35c-13.32-13.43-25.248-27.074-36.488-41.75-11.386-14.848-21.284-30.136-29.444-45.49-7.206-13.54-13.494-29.17-18.7-46.472-4.030-14.264-5.988-28.044-5.988-42.116 0-27.36 4.042-52.314 12.016-74.176 7.214-19.378 17.344-35.708 30.066-48.492 12.998-13.042 28.958-23.148 48.826-30.914 20.436-8 43.764-11.886 71.32-11.886 11.536 0 22.738 1.742 33.298 5.174l0.374 0.122 0.376 0.12c13.116 4.122 26.066 9.874 38.494 17.094l0.34 0.2 0.344 0.196c12.736 7.234 25.308 15.876 38.43 26.412 14.486 11.906 27.060 23.048 38.428 34.056l56.994 55.192 55.662-56.532c10.324-10.484 22.18-21.040 36.242-32.264 13.382-10.646 26.216-19.38 39.228-26.698l0.256-0.144 0.254-0.144c13.008-7.442 26.228-13.386 39.294-17.676l0.050-0.016 0.050-0.018c10.354-3.414 20.998-5.076 32.54-5.076zM716.876 128c-19.55 0-38.744 2.882-57.584 9.094-18.472 6.062-36.584 14.242-54.072 24.246-17.476 9.828-34.056 21.276-49.916 33.898-16.038 12.8-30.456 25.572-43.346 38.664-13.52-13.092-28.026-25.864-43.616-38.664-15.684-12.624-32.080-24.070-49.382-33.898-17.214-10.004-35.414-18.184-54.704-24.246-19.104-6.21-38.568-9.094-58.034-9.094-37.126 0-70.56 5.68-100.48 17.39-29.732 11.622-55.328 27.868-76.328 48.938-20.994 21.094-37.214 46.962-48.478 77.328-11.174 30.544-16.942 64.5-16.942 101.812 0 21.628 3.068 43.078 9.19 64.53 6.308 21.096 14.416 41.986 24.876 61.642 10.446 19.656 22.702 38.488 36.584 56.59 13.88 18.124 28.388 34.516 43.344 49.58l305.766 305.112c8.466 7.558 18.11 11.444 28.204 11.444 10.726 0 19.914-3.884 27.308-11.444l305.934-304.226c14.78-14.772 29.382-31.368 43.166-49.378 14.058-18.212 26.314-37.222 37.042-57.23 10.9-19.924 19.192-40.638 25.406-62 6.218-21.188 9.198-42.61 9.198-64.618 0-37.312-5.592-71.268-16.582-101.812-11.262-30.366-27.216-56.234-48.396-77.328-20.906-21.070-46.492-37.316-76.682-48.938-30.106-11.712-63.988-17.392-101.476-17.392v0z', + facehappy: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 493.7c15.2 0 28.7 7.5 37 19l2.6 3.9a46 46 0 015.8 18l.3 4.9c0 6.6-1.4 13-4 18.7l-2.1 4.1A329 329 0 01232 663l-5.5-9.3a46 46 0 01-2-41.2l2-4.2v-.2a45.6 45.6 0 0176.7-4l2.5 4a237.9 237.9 0 00410 7.7l4.5-7.7a46 46 0 0139.7-22.9zM329.7 292.6a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z', + facesad: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm1.1 449.2a329 329 0 01281.1 157.7l5.5 9.2a46 46 0 012 41.3l-2 4.1v.3a45.6 45.6 0 01-76.7 4l-2.6-4a238 238 0 00-410-7.7l-4.5 7.7a46 46 0 01-76.6 4l-2.6-4a46 46 0 01-5.9-18l-.2-5c0-6.6 1.4-12.9 4-18.6l2.1-4.2a329 329 0 01286.4-166.8zm-183.4-248a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z', + faceneutral: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm248 521.2a45.7 45.7 0 014.7 91.2l-4.7.2H266.3a45.7 45.7 0 01-4.7-91.2l4.7-.2H760zm-430.3-320a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2zm365.2 0a73.1 73.1 0 110 146.2 73.1 73.1 0 010-146.2z', + lock: + 'M896.032 915.53v-467.498c0-19.102-13.402-35.052-31.31-39.026-0.21-0.046-0.414-0.12-0.628-0.162-0.444-0.090-0.904-0.13-1.354-0.208-2.186-0.37-4.416-0.606-6.708-0.606h-55.902l0.002-55.85h0.020c0-159.14-129.010-288.15-288.15-288.15-159.128 0-288.13 128.992-288.15 288.118v55.884h-54.852c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.792-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.524-0.104-3.024-0.27-4.502zM209 488.032h607.032v392h-607.032v-392zM303.85 352.182c0-114.776 93.376-208.15 208.15-208.15 114.59 0 207.842 93.074 208.142 207.596 0 0.084-0.012 0.164-0.012 0.248v56.156h-416.284l0.004-55.85zM552.164 691.858l-0.002 58.188c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40v-57.974c-14.704-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.104-23.868 49.836z', + unlock: + 'M896.032 915.53v-467.498c0-1.988-0.194-3.926-0.472-5.834-0.11-0.744-0.192-1.498-0.34-2.226-1.524-7.44-5.136-14.1-10.164-19.408-0.252-0.266-0.48-0.554-0.738-0.814-0.496-0.494-1.036-0.944-1.554-1.412-0.43-0.386-0.84-0.8-1.288-1.17-0.292-0.24-0.608-0.446-0.904-0.676-2.506-1.954-5.244-3.616-8.176-4.934-0.744-0.334-1.504-0.632-2.27-0.922-4.39-1.656-9.124-2.604-14.094-2.604h-552.184l0.002-55.85c0-114.776 93.376-208.15 208.15-208.15 86.038 0 160.034 52.474 191.7 127.096 0.012 0.028 0.030 0.044 0.042 0.072 5.978 14.566 20.284 24.832 37.006 24.832 22.090 0 40-17.906 40-40 0-4.71-0.86-9.21-2.354-13.41-0.182-0.694-0.42-1.438-0.782-2.292-43.666-103.582-146.14-176.296-265.612-176.296-159.128 0-288.13 128.994-288.15 288.12v55.882h-54.85c-20.71 0-37.746 15.742-39.792 35.91-0.136 1.344-0.208 2.708-0.208 4.090v463.332c-0.618 2.794-0.968 5.688-0.968 8.668 0 22.094 17.91 40 40 40h688.27c22.092 0 40-17.91 40-40-0.002-1.528-0.104-3.028-0.27-4.506zM209 488.032h607.032v392h-607.032v-392zM552.164 691.86l-0.002 58.186c0.004 22.088-17.906 39.996-39.996 40-22.094 0-40.004-17.908-40-40v-57.976c-14.702-11.726-24.134-29.782-24.134-50.048 0-35.346 28.654-64 64-64s64 28.654 64 64c0 20.142-9.318 38.102-23.868 49.838z', + key: + 'M768.032 320.032c0 35.346-28.654 64-64 64s-64-28.654-64-64 28.654-64 64-64 64 28.654 64 64zM960.032 353.092c0 159.062-128.946 288.010-288.008 288.010-35.306 0-69.124-6.368-100.38-17.996l-27.736 27.738-0.002 54.464c0 0.016 0.002 0.028 0.002 0.040 0 11.046-4.478 21.046-11.716 28.29-6.334 6.332-14.784 10.55-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.748l-0.002 71.96c0 0.012 0.002 0.040 0.002 0.040 0 11.046-4.478 21.046-11.716 28.286-6.334 6.336-14.784 10.554-24.196 11.508-1.346 0.136-2.708 0.208-4.090 0.208h-71.996l-0.002 62.684c0 22.094-17.908 40-40 40-0.022 0-0.042 0-0.062 0-0.022 0-0.042 0-0.064 0h-175.996c-13.76 0-25.888-6.95-33.086-17.524-4.362-6.406-6.916-14.14-6.916-22.476v-112c0-0.664 0.066-1.308 0.1-1.964 0.032-0.618 0.034-1.234 0.092-1.852 0.11-1.148 0.288-2.278 0.492-3.398 0.024-0.128 0.034-0.258 0.058-0.386 1.614-8.378 5.848-15.808 11.808-21.446l325.456-325.458c-11.642-31.274-18.020-65.11-18.020-100.44 0-159.060 128.946-288.006 288.006-288.006 159.060-0.004 288.006 128.942 288.006 288.002zM880.032 353.092c0-114.696-93.312-208.006-208.008-208.006s-208.006 93.31-208.006 208.006c0 43.208 13.246 83.376 35.884 116.668l-57.36 57.362c-0.136-0.184-0.27-0.368-0.408-0.546l-298.102 298.106-0.002 55.356h96.124v-62.684c0-0.708 0.070-1.394 0.106-2.094 0.036-0.664 0.036-1.336 0.102-1.992 0.132-1.316 0.334-2.61 0.592-3.882 0.006-0.028 0.008-0.058 0.014-0.090 0.258-1.262 0.58-2.5 0.956-3.714 0.012-0.040 0.018-0.078 0.030-0.118 4.676-15.032 17.976-26.262 34.114-27.902 1.344-0.136 2.708-0.208 4.090-0.208h71.998v-67.64c-0.156-1.434-0.248-2.882-0.248-4.36 0-22.094 17.908-40 40-40h71.998v-30.692c0-0.148 0.020-0.29 0.022-0.438 0.008-10.226 3.912-20.45 11.714-28.254l55.99-55.988c1.982-1.984 4.124-3.71 6.38-5.188l18.68-18.684c33.030 22.090 72.702 34.992 115.332 34.992 114.694-0 208.008-93.314 208.008-208.010z', + arrowleftalt: + 'M107.854 539.924l282.834 283.272c15.594 15.65 40.92 15.692 56.568 0.1 15.648-15.594 15.694-40.92 0.1-56.568l-214.838-215.040h655.412c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655l214.75-214.61c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.834-18.066-11.752-28.32-11.75-10.22 0-20.442 3.892-28.25 11.68l-283.242 282.93c-15.634 15.594-15.672 40.91-0.084 56.554z', + arrowrightalt: + 'M916.266 483.792l-282.834-283.272c-15.594-15.65-40.92-15.692-56.568-0.1-15.648 15.594-15.694 40.92-0.1 56.568l214.838 215.040h-655.412c-22.092 0-40 17.908-40 40s17.908 40 40 40h655l-214.748 214.61c-15.64 15.602-15.672 40.928-0.070 56.568 7.814 7.834 18.066 11.752 28.32 11.75 10.22 0 20.442-3.892 28.25-11.68l283.242-282.93c15.632-15.596 15.67-40.91 0.082-56.554z', + sync: + 'M135.6 442.5a41 41 0 0130 12l94.9 94.6c16 16 16 42 0 58s-42.1 16-58.2 0l-30.1-30a341.9 341.9 0 0095 178.6c65.3 65 152 101 244.3 101 92.3 0 179-36 244.3-101a345 345 0 0066.8-93.6 41.1 41.1 0 0174.3 35v.2l-.1.2-5.2 10.3a427.8 427.8 0 01-380 230.9A427.5 427.5 0 0190.1 585.8l-20 20c-16 16-42 16-58.2 0a41 41 0 010-58l93.6-93.3a41 41 0 0130-12zm376-357.2c208.9 0 382.8 149.5 420.1 347.1l22-22c16.1-16 42.2-16 58.2 0s16 42 0 58l-93.5 93.4a41 41 0 01-30 12 41 41 0 01-30-12L763.5 467a41 41 0 010-58c16-16 42.1-16 58.2 0l26.8 26.8a342 342 0 00-92.7-167.6c-65.3-65-152-101-244.3-101-92.3 0-179 36-244.2 101a345.2 345.2 0 00-66.9 93.6 41.1 41.1 0 01-74.3-35v-.2l.2-.2c.7-1.7.2-.8 5.1-10.3A427.8 427.8 0 01511.5 85.3z', + reply: + 'M679.496 431.738c-0.414-0.062-0.834-0.102-1.266-0.102h-477.482l171.506-171.504c15.622-15.622 15.622-40.95-0.002-56.57-15.62-15.624-40.948-15.624-56.568 0l-239.734 239.732c-0.958 0.956-1.868 1.958-2.724 3.006-0.328 0.402-1.884 2.482-2.324 3.138-0.36 0.54-1.696 2.77-2.008 3.352-0.308 0.58-1.424 2.936-1.676 3.544-0.036 0.086-0.468 1.268-0.648 1.774-0.23 0.636-0.474 1.266-0.672 1.918-0.186 0.612-0.818 3.13-0.95 3.788-0.148 0.748-0.522 3.318-0.574 3.862-0.262 2.642-0.262 5.3 0 7.942 0.044 0.448 0.412 3.032 0.58 3.874 0.112 0.556 0.74 3.088 0.958 3.808 0.158 0.524 1.036 2.992 1.328 3.7 0.192 0.458 1.298 2.828 1.688 3.552 0.208 0.386 0.446 0.75 0.666 1.126 0.436 0.752 1.844 2.888 2.084 3.224 0.52 0.724 4.262 5.074 4.29 5.098l239.718 239.72c15.62 15.618 40.948 15.618 56.57 0 15.62-15.624 15.622-40.948 0-56.57l-171.516-171.514h471.296c114.52 0.084 207.688 93.124 207.988 207.594 0 0.084-0.012 0.164-0.012 0.248v95.876c-0.004 22.094 17.906 40.002 40 40 22.090-0.002 40-17.91 39.996-39.998l0.004-95.57h0.020c0-156.594-124.914-284.012-280.536-288.048z', + undo: + 'M230 301h480a240 240 0 1 1 0 481H235c-23 0-42-20-42-43 0-24 19-43 42-43h475a155 155 0 0 0 0-310H228l3 3 65 65a45 45 0 0 1-65 64L90 376a45 45 0 0 1 0-64l142-142a45 45 0 1 1 64 65l-63 62-3 4z', + transfer: + 'M916.25 348.726l-125 124.688c-7.808 7.79-18.032 11.68-28.25 11.68-10.254 0.002-20.506-3.918-28.32-11.75-15.602-15.64-15.57-40.966 0.070-56.568l56.508-56.368h-655.258c-22.092 0-40-17.908-40-40s17.908-40 40-40h655.672l-57.006-57.206c-15.594-15.646-15.548-40.972 0.1-56.566s40.972-15.55 56.568 0.098l125 125.438c15.588 15.644 15.548 40.958-0.084 56.554zM107.666 731.892l125 125.438c15.596 15.648 40.92 15.692 56.568 0.098s15.694-40.92 0.1-56.566l-57.006-57.206h655.672c22.092 0 40-17.908 40-40s-17.908-40-40-40h-655.258l56.508-56.368c15.64-15.602 15.672-40.928 0.070-56.568-7.814-7.832-18.066-11.752-28.32-11.75-10.218 0-20.442 3.89-28.25 11.68l-125 124.688c-15.632 15.596-15.672 40.91-0.084 56.554z', + redirect: + 'M913.852 702.796c-15.594-15.648-40.922-15.694-56.57-0.1l-57.204 57.006v-451.424c0-0.372-0.028-0.736-0.074-1.098-0.458-99.016-80.86-179.15-179.988-179.15-99.412 0-180 80.592-180 180 0 0.084 0.004 0.166 0.004 0.248h-0.004v343.504h-0.006c0 0.082 0.006 0.164 0.006 0.248 0 55.14-44.86 100-100 100s-100-44.86-100-100c0-0.084 0.006-0.166 0.006-0.248h-0.002v-483.752c0-22.092-17.91-40-40-40s-40.004 17.908-40.004 40v483.752c0 0.018 0.002 0.036 0.002 0.054 0 0.064-0.002 0.128-0.002 0.194 0 99.408 80.59 180 180 180 99.412 0 180-80.592 180-180 0-0.084-0.004-0.166-0.004-0.248h0.004v-343.504h0.008c0-0.082-0.008-0.164-0.008-0.248 0-55.138 44.86-100 100-100s100 44.862 100 100c0 0.084-0.008 0.166-0.008 0.248h0.070v451.008l-56.368-56.506c-15.602-15.642-40.93-15.67-56.566-0.070-7.836 7.814-11.754 18.066-11.754 28.32 0 10.218 3.894 20.442 11.68 28.252l124.692 125c15.594 15.632 40.91 15.67 56.554 0.084l125.434-125c15.652-15.598 15.692-40.92 0.102-56.57z', + expand: + 'M433.4 578.8l6.2 5.2a44.8 44.8 0 010 63.3L238.4 849.1h100.3a44.8 44.8 0 018 88.8l-8 .8H130l-6.2-.5 2.7.3h-.3a44.7 44.7 0 01-24.8-10.2l-.3-.3-.3-.2-.3-.4-.3-.2-.3-.2v-.2h-.1l-.2-.1a45.7 45.7 0 01-13.5-24.8l-.3-1.7a45 45 0 01-.5-5.3V685.7a44.8 44.8 0 0189-8.1l.6 8 .1 100L376.3 584a44.8 44.8 0 0157.1-5.2zm157.2 0a44.8 44.8 0 0157.1 5.2L849 785.7v-100l.8-8.1a44.8 44.8 0 0188.9 8V895a45 45 0 01-.5 5.3l-.3 1.7a38.6 38.6 0 01-2.8 9.4 43.4 43.4 0 01-9.6 14.2l-4.7 4.2 2-1.7.7-.6-.3.4a44.1 44.1 0 01-4.4 3.3l-.6.4a45.8 45.8 0 01-20.4 7h-.3.9l1.8-.3-6.2.5H685.3l-8-.8a44.8 44.8 0 018-88.8h100.3L584.4 647.3a44.8 44.8 0 010-63.3zM98.5 925.5l1.3 1.3.1.2.6.4a45 45 0 002 1.7l.7.6-4.7-4.2zM893.9 85.3h.9-.8l6.2.5a45 45 0 00-1.8-.2l-.9-.1h-1l-.5-.1h-1.2 2.7l.3.1a44.7 44.7 0 0125.4 10.7l.3.3v.1l.3.2.3.2v.2h.1l.2.1.6.6.5.6A45.6 45.6 0 01938 122l.3 1.7c.3 1.8.4 3.6.5 5.3v209.2a44.8 44.8 0 01-89 8.1l-.6-8-.1-100L647.7 440a44.8 44.8 0 01-57.1 5.2l-6.2-5.2a44.8 44.8 0 010-63.3l201.2-201.8H685.3a44.8 44.8 0 01-8-88.8l8-.8H894h-.1zm-555.2 0l8 .8a44.8 44.8 0 01-8 88.8H238.4l201.2 201.8a44.8 44.8 0 010 63.3l-6.2 5.2a44.8 44.8 0 01-57.1-5.2L175 238.3v100l-.8 8.1a44.8 44.8 0 01-88.9-8V129c0-1.7.2-3.5.5-5.3l.3-1.7a38.6 38.6 0 012.8-9.4 43.4 43.4 0 019.6-14.2l4.7-4.2-2 1.7.2-.3a43.7 43.7 0 0124.8-10.2h1.3l.3-.1h2.3-.1 208.7zm582 9l4.8 4.2-1.3-1.3-.1-.2-.5-.4h-.1l-.6-.6-1.4-1.1-.7-.6zm-790.7-9h-2l-.5.1h-1l-.9.2c-.6 0-1.2 0-1.8.2l6.2-.5z', + expandalt: + 'M479.7 13.4L205.4 287.6a45.7 45.7 0 1064.7 64.7l242-242 241.8 241.9a45.7 45.7 0 1064.7-64.7L544.4 13.4a45.6 45.6 0 00-64.7 0M512 1024a45.6 45.6 0 01-32.3-13.4L205.4 736.5a45.7 45.7 0 1164.7-64.7l241.8 241.8 242-241.9a45.7 45.7 0 1164.7 64.7l-274.3 274.2c-9 9-20.7 13.4-32.4 13.4', + collapse: + 'M479.7 411L205.4 136.6a45.7 45.7 0 1164.7-64.6L512 314 753.9 72.2a45.7 45.7 0 1164.7 64.6L544.4 411a45.6 45.6 0 01-64.7 0M512 598.3a45.6 45.6 0 00-32.3 13.4L205.4 885.8a45.7 45.7 0 1064.7 64.7l241.8-241.8 242 242a45.7 45.7 0 1064.7-64.7L544.3 611.7c-9-8.9-20.7-13.4-32.4-13.4', + grow: + 'M541.146 448.384c-1.694-0.216-3.408-0.37-5.162-0.37h-367.968c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v368.032c0 22.094 17.91 40 40 40h367.968c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-368.036c0-20.34-15.192-37.094-34.838-39.632zM208.016 816.046v-288.032h287.968v288.032h-287.968zM736.032 856.046c0 22.090-17.908 40-40 40-22.090 0-40-17.908-40-40v-487.902l-488.016 0.002c-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h528.016c1.754 0 3.468 0.152 5.162 0.37 19.646 2.538 34.838 19.292 34.838 39.63v527.902zM896.032 168.030v688.004c-0.002 22.088-17.91 39.996-40 39.996s-40.002-17.908-40.002-40c0 0 0.002-304.026 0.002-304.040v-343.96h-343.96c-0.014 0-304.040 0.002-304.040 0.002-22.090 0-40-17.91-40-40s17.908-40.002 40-40.002h688c1.754 0 3.468 0.152 5.162 0.37 19.646 2.536 34.838 19.29 34.838 39.63z', + arrowleft: + 'M257.93 511.976c0-10.236 3.902-20.47 11.71-28.282l344.098-344.158c15.622-15.624 40.946-15.624 56.57-0.006 15.622 15.622 15.624 40.948 0.004 56.568l-315.82 315.876 315.868 315.922c15.618 15.624 15.618 40.952-0.004 56.568-15.622 15.62-40.95 15.618-56.57-0.006l-344.146-344.202c-7.808-7.81-11.71-18.044-11.71-28.28z', + arrowup: + 'M512.024 256c10.236 0 20.47 3.904 28.282 11.712l344.154 344.098c15.624 15.62 15.624 40.946 0.006 56.57-15.622 15.622-40.948 15.624-56.568 0.004l-315.876-315.82-315.922 315.868c-15.624 15.618-40.952 15.618-56.568-0.004-15.62-15.624-15.618-40.95 0.006-56.57l344.204-344.144c7.81-7.81 18.046-11.714 28.282-11.714z', + arrowdown: + 'M511.976 768.002c-10.236 0-20.47-3.904-28.282-11.712l-344.154-344.098c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l315.876 315.82 315.922-315.868c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-344.204 344.144c-7.81 7.81-18.046 11.714-28.282 11.714z', + arrowright: + 'M768.072 514.022c0 10.236-3.904 20.47-11.712 28.282l-344.098 344.156c-15.62 15.624-40.946 15.624-56.568 0.006-15.622-15.622-15.624-40.948-0.006-56.568l315.82-315.876-315.868-315.922c-15.618-15.624-15.618-40.952 0.004-56.568 15.624-15.62 40.95-15.618 56.57 0.006l344.144 344.204c7.81 7.81 11.714 18.044 11.714 28.28z', + chevrondown: + 'M511.976 833c-10.236 0-20.47-3.904-28.282-11.712l-471.934-471.874c-15.624-15.62-15.624-40.946-0.006-56.57 15.622-15.622 40.948-15.624 56.568-0.004l443.652 443.598 443.61-443.556c15.624-15.618 40.952-15.616 56.568 0.004 15.62 15.624 15.618 40.95-0.006 56.57l-471.89 471.832c-7.808 7.808-18.044 11.712-28.28 11.712z', + back: + 'M512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6zm0 91.4A512 512 0 10512 0a512 512 0 000 1024zM232.7 542.5l142.8 143.3a45.7 45.7 0 0064.8-64.5L375 555.9h383.7a45.7 45.7 0 000-91.4H375.6l64.6-64.4a45.7 45.7 0 10-64.6-64.8L232.8 477.8a45.7 45.7 0 00-.1 64.6z', + download: + 'M543.8 791.3a45.7 45.7 0 01-64.6 0l-142.5-143a45.6 45.6 0 010-64.6 45.7 45.7 0 0164.7 0l64.5 64.7V265.2a45.7 45.7 0 1191.4 0v383.6l65.4-65.1a45.7 45.7 0 1164.5 64.8L543.8 791.3zM1024 512A512 512 0 110 512a512 512 0 011024 0zm-91.4 0c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512z', + upload: + 'M480.2 232.7a45.7 45.7 0 0164.6 0l142.5 143a45.6 45.6 0 010 64.6 45.7 45.7 0 01-64.7 0L558 375.5v383.2a45.7 45.7 0 11-91.4 0V375.2l-65.4 65.1a45.7 45.7 0 11-64.5-64.8l143.4-142.8zM0 512a512 512 0 111024 0A512 512 0 010 512zm91.4 0c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512z', + proceed: + 'M791.3 480.2L648.5 336.8a45.7 45.7 0 10-64.8 64.5l65.1 65.4H265.2a45.7 45.7 0 100 91.4h383.2l-64.6 64.5a45.7 45.7 0 0064.6 64.7l142.8-142.5a45.7 45.7 0 00.1-64.6M512 0a512 512 0 100 1024A512 512 0 00512 0m0 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4A417.8 417.8 0 01512 932.6c-112.3 0-218-43.8-297.4-123.2A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4', + info: + 'M874.04 149.96c199.95 199.95 199.95 524.14 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.94 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.95 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 318.96a45.73 45.73 0 00-45.11 38.3l-.6 7.42v274.28a45.71 45.71 0 0090.83 7.42l.6-7.42V456.11a45.72 45.72 0 00-45.72-45.72zm0-162.25a45.72 45.72 0 100 91.44 45.72 45.72 0 000-91.44z', + question: + 'M874.04 149.96c199.95 199.95 199.95 524.13 0 724.08-199.95 199.95-524.13 199.95-724.08 0-199.95-199.95-199.95-524.13 0-724.08 199.95-199.95 524.13-199.95 724.08 0zM512 91.43c-112.34 0-217.95 43.75-297.39 123.18-79.43 79.44-123.18 185.05-123.18 297.4 0 112.33 43.75 217.95 123.18 297.38 79.44 79.43 185.05 123.18 297.4 123.18 112.33 0 217.94-43.75 297.38-123.18C888.82 729.96 932.57 624.34 932.57 512c0-112.34-43.75-217.95-123.18-297.39C729.95 135.18 624.34 91.43 512 91.43zm1.14 640.9a45.72 45.72 0 100 91.43 45.72 45.72 0 000-91.44zm-1.14-549c-111.3 0-201.52 90.22-201.52 201.52a45.71 45.71 0 0090.84 7.41l.6-7.47c.03-60.68 49.4-110.03 110.08-110.03 60.7 0 110.1 49.38 110.1 110.09 0 60.7-49.4 110.09-110.1 110.09v.17a45.68 45.68 0 00-44.57 45.65v100.58a45.7 45.7 0 1091.42 0v-60.46c88.7-21.12 154.67-100.87 154.67-196.03 0-111.3-90.22-201.52-201.52-201.52z', + support: + 'M512 932.57c-87.57 0-171.05-26.59-241.23-75.93l106-106a273.98 273.98 0 00135.26 35.62c46.7 0 93.41-11.88 135.22-35.6l105.98 105.98c-70.19 49.34-153.66 75.93-241.23 75.93m-344.64-661.8l105.97 105.98c-47.44 83.63-47.43 186.86.02 270.49L167.36 753.22C118.02 683.04 91.43 599.56 91.43 512c0-87.57 26.59-171.05 75.93-241.23m585.87-103.41L647.29 273.3a273.95 273.95 0 00-135.26-35.61c-46.74 0-93.47 11.9-135.3 35.63L270.77 167.36C340.96 118.02 424.43 91.43 512 91.43s171.05 26.59 241.23 75.93m-370.5 473.91c-71.3-71.3-71.3-187.3 0-258.6a181.7 181.7 0 01129.3-53.55h.02c48.83 0 94.74 19.02 129.28 53.56 71.29 71.29 71.29 187.3 0 258.6a181.66 181.66 0 01-129.3 53.55 181.67 181.67 0 01-129.3-53.56m473.91 111.95L750.68 647.27c47.48-83.65 47.48-186.91.02-270.56l105.94-105.94c49.34 70.18 75.93 153.66 75.93 241.23s-26.59 171.04-75.93 241.22m17.4-603.26c-199.95-199.95-524.13-199.95-724.08 0-199.95 199.95-199.95 524.13 0 724.08 199.95 199.95 524.13 199.95 724.08 0 199.95-199.95 199.95-524.13 0-724.08', + alert: + 'M511.998 623.846c-22.090 0-40-17.906-40-40v-208c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v208c0 22.094-17.914 40-40.004 40v0zM511.998 743.846c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40v0zM512.142 211.808l-340.074 589.028h680.148l-340.074-589.028zM512.142 92.51c14.5 0 29 9.526 40 28.58l398.638 690.462c22 38.106 4 69.282-40 69.282h-797.278c-44 0-62-31.176-40-69.282l398.638-690.462c11.002-19.052 25.502-28.58 40.002-28.58v0z', + bell: + 'M901.344 760.018l-57.644-77.648c-7.906-7.906-11.77-38.284-11.71-48.646h0.042v-200.588h-0.364c-6.878-148.106-114.428-269.902-255.792-298.528 0.208-2.1 0.318-4.228 0.318-6.384 0-35.452-28.738-64.194-64.194-64.194-35.458 0-64.194 28.742-64.194 64.194 0 2.19 0.112 4.352 0.326 6.486-141.128 28.802-248.446 150.488-255.316 298.426h-0.364v200.588h0.042c0.058 10.362-3.804 40.74-11.71 48.646l-57.644 77.648c-8.802 8.802-16.35 18.978-16.35 32.208 0 22.092 17.908 40 40 40h255.876c-0.814 5.412-1.28 10.936-1.28 16.576 0 61.43 49.794 111.23 111.23 111.23 61.432 0 111.228-49.8 111.228-111.23 0-5.638-0.464-11.164-1.282-16.576h255.128c22.092 0 40-17.908 40-40 0.004-13.23-7.542-23.404-16.346-32.208zM272.732 436.848c2.862-61.602 29.032-119.104 73.69-161.91 44.786-42.93 103.628-66.62 165.692-66.706h0.26c62.062 0.086 120.906 23.776 165.692 66.706 44.658 42.806 70.828 100.308 73.69 161.91l0.278 5.962v149.384h-479.58v-149.384l0.278-5.962zM543.846 848.8c0 17.22-14.010 31.23-31.228 31.23-17.22 0-31.23-14.010-31.23-31.23 0-6.096 1.784-11.768 4.82-16.576h52.818c3.038 4.81 4.82 10.482 4.82 16.576zM512.484 752.226h-283.922l14.572-19.63c12.064-14.542 20.078-33.27 24.982-58.158 0.146-0.742 0.276-1.496 0.416-2.244h487.42c0.138 0.748 0.268 1.5 0.414 2.244 4.904 24.888 12.918 43.616 24.982 58.158l14.572 19.63h-283.436z', + rss: + 'M256.094 865.048c0 53.020-42.972 96-96 96-53.020 0-96-42.98-96-96 0-53.016 42.98-96 96-96s96 42.984 96 96zM510.020 918.352c-0.018-0.172-0.042-0.344-0.050-0.52-0.054-0.676-0.124-1.34-0.214-2.004-10.582-105.644-57.866-200.46-128.894-271.536v0c-71.074-71.054-165.906-118.352-271.564-128.934-0.664-0.090-1.33-0.16-2.006-0.214-0.174-0.016-0.348-0.040-0.52-0.054-0.254-0.024-0.5-0.024-0.742-0.008-0.64-0.032-1.278-0.098-1.922-0.098-22.098 0-40 17.908-40 40 0 20.582 15.542 37.516 35.536 39.738 0.042 0.004 0.066 0.036 0.106 0.040 84.82 8.098 163.514 45.024 224.542 106.042v0c61.036 61.036 97.964 139.738 106.070 224.574 0.004 0.040 0.036 0.070 0.042 0.106 2.222 19.988 19.156 35.536 39.736 35.536 22.092 0 40-17.902 40-40 0-0.644-0.066-1.282-0.098-1.922 0-0.246 0-0.492-0.022-0.746zM734.688 918.45c-0.004-0.090-0.018-0.186-0.024-0.276-0.040-0.544-0.058-1.102-0.124-1.638-10.972-167.816-83.558-318.804-195.33-430.616h0.002c-111.812-111.788-262.81-184.384-430.644-195.36-0.542-0.060-1.094-0.084-1.642-0.122-0.092-0.008-0.182-0.016-0.272-0.022-0.020-0.002-0.042 0.004-0.054 0.004-0.836-0.052-1.664-0.124-2.512-0.124-22.092 0-40 17.908-40 40 0 21.036 16.246 38.24 36.874 39.842 0.046 0.008 0.078 0.038 0.128 0.042 66.876 4.086 131.786 19.292 193.406 45.358 70.472 29.81 133.78 72.494 188.166 126.874v0c54.394 54.396 97.090 117.71 126.902 188.204 26.064 61.624 41.274 126.532 45.362 193.408 0.004 0.052 0.036 0.080 0.042 0.13 1.604 20.624 18.802 36.87 39.844 36.87 22.090 0 40-17.904 40-40 0-0.85-0.074-1.678-0.126-2.514-0.002-0.024 0.006-0.040 0.002-0.060zM959.126 920.556c-0.002-0.094 0.008-0.164 0.004-0.262-10.342-231.204-108.314-439.604-261.486-592.796v-0.002c-153.2-153.19-361.61-251.174-592.828-261.518-0.096-0.004-0.168 0.006-0.262 0.004-0.176-0.004-0.348-0.030-0.524-0.030-22.098 0-40 17.91-40 40 0 20.988 16.168 38.164 36.716 39.834 0.184 0.042 0.356 0.086 0.566 0.098 97.040 4.314 191.186 25.538 280.376 63.258 97.14 41.090 184.406 99.928 259.368 174.876v0c74.96 74.964 133.81 162.24 174.908 259.398 37.718 89.19 58.946 183.336 63.26 280.376 0.010 0.208 0.052 0.38 0.096 0.562 1.67 20.552 18.848 36.72 39.834 36.72 22.092 0 40-17.906 40-40-0-0.17-0.024-0.342-0.028-0.518z', + edit: + 'M948.56 263.376c12.704-12.708 15.072-31.836 7.11-46.936-1.84-3.524-4.232-6.832-7.192-9.792-0.286-0.286-0.594-0.528-0.886-0.8l-129.318-128.634c-0.048-0.048-0.088-0.106-0.138-0.154-7.812-7.812-18.050-11.716-28.292-11.714-10.242-0.004-20.484 3.902-28.296 11.714-0.064 0.066-0.12 0.136-0.184 0.204l-636.168 636.168c-5.868 5.134-10.21 11.958-12.298 19.748l-47.606 177.664c-3.7 13.804 0.248 28.534 10.352 38.638 7.602 7.6 17.816 11.714 28.288 11.714 3.452 0 6.93-0.446 10.352-1.364l177.664-47.606c7.296-1.956 13.732-5.904 18.74-11.216l521.486-521.484c1.126-0.904 2.222-1.87 3.268-2.914 1.042-1.044 2.006-2.138 2.91-3.264l107.75-107.748c0.836-0.71 1.668-1.432 2.458-2.224zM806.9 291.66l-73.592-73.202 56.61-56.61 73.594 73.2-56.612 56.612zM281.566 816.996l-73.4-73.4 468.572-468.568 73.594 73.202-468.766 468.766zM160.496 864.628l11.742-43.822 32.080 32.080-43.822 11.742z', + paintbrush: + 'M946.58 293.66c12.704-12.708 15.072-31.836 7.108-46.938-1.838-3.524-4.23-6.83-7.19-9.79-0.282-0.282-0.588-0.52-0.876-0.792l-129.338-128.654c-0.046-0.046-0.084-0.098-0.13-0.144-7.814-7.812-18.056-11.718-28.296-11.714-10.24 0-20.48 3.906-28.292 11.714-0.064 0.066-0.12 0.138-0.184 0.206l-557.048 557.048c-2.194 2.192-4.042 4.59-5.622 7.11-70.624 87.486-17.922 195.43-174.738 239.554 0 0 64.758 18.11 144.33 18.11 74.374 0 161.678-15.824 221.23-77.020 0.394-0.364 0.808-0.696 1.192-1.078l1.734-1.734c0.852-0.798 1.678-1.578 2.504-2.426 0.348-0.356 0.668-0.728 1.010-1.086l168.756-168.756c1.126-0.906 2.224-1.872 3.272-2.918 1.044-1.044 2.008-2.14 2.914-3.266l375.212-375.212c0.834-0.706 1.664-1.424 2.452-2.214zM537.462 589.402l-73.594-73.206 324.068-324.064 73.594 73.2-324.068 324.070zM388.178 667.684c-13.288-13.632-28.584-23.974-44.78-31.016l63.902-63.902 73.596 73.204-64.246 64.248c-6.498-15.23-15.964-29.698-28.472-42.534zM229.848 791.928c8.294-30.346 14.852-54.332 32.416-73.862 0.83-0.864 2.664-2.702 4.26-4.286 8.030-6.792 17.534-8.246 24.198-8.246 14.386 0 29.026 6.554 40.162 17.98 19.592 20.106 21.934 49.238 5.596 66.874l-1.712 1.712c-0.798 0.752-1.612 1.524-2.462 2.354l-0.86 0.84-0.834 0.864c-30.666 31.79-75.914 45.424-118.104 50.542 7.53-18.888 12.598-37.426 17.34-54.772z', + close: + 'M150 150a512 512 0 11724 724 512 512 0 01-724-724zm69.3 64.2A418.5 418.5 0 0095.9 512a418.5 418.5 0 00123.4 297.8A418.5 418.5 0 00517 933.2 418.5 418.5 0 00815 809.8 418.5 418.5 0 00938.4 512 418.5 418.5 0 00815 214.2 418.5 418.5 0 00517 90.8a418.5 418.5 0 00-297.8 123.4zM655 304a46 46 0 0165 65L577 512l143 143a46 46 0 11-65 65L512 577 369 720a46 46 0 11-65-65l143-143-143-143a46 46 0 0165-65l143 143 143-143z', + closeAlt: + 'M586.7 512L936 861.4a52.8 52.8 0 0 1-74.6 74.7L512 586.7 162.6 936A52.8 52.8 0 0 1 88 861.4L437.3 512 88 162.6A52.8 52.8 0 1 1 162.6 88L512 437.3 861.4 88a52.8 52.8 0 1 1 74.7 74.7L586.7 512z', + trash: + 'M919.5 225.208h-215.5v-120.080c0-20.344-15.192-37.096-34.836-39.632-1.696-0.216-3.41-0.372-5.164-0.372h-304.004c-1.754 0-3.468 0.152-5.164 0.372-19.644 2.54-34.836 19.292-34.836 39.628v120.084h-215.996c-22.090 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h27.216l53.916 615.914h0.214c0 22.092 17.91 40 40 40h573.372c22.094 0 40-17.91 40-40h0.148l53.916-615.914h26.716c22.090 0 40-17.91 40-40s-17.908-40.002-39.998-40.002zM399.996 145.126h224.004v80.082h-224.004v-80.082zM762.062 881.124h-500.124l-50.414-575.912h600.954l-50.416 575.912zM632.004 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM311.996 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40zM472 697.124v-240c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 240.002c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.906-40-40z', + cross: + 'M1013.286 955.716l-443.72-443.716 443.718-443.718c15.622-15.622 15.62-40.948-0.004-56.566-15.618-15.622-40.942-15.622-56.562 0l-443.716 443.718-443.72-443.718c-15.62-15.624-40.946-15.622-56.566 0-15.622 15.62-15.622 40.944 0 56.566l443.722 443.718-443.722 443.722c-15.622 15.618-15.62 40.942 0 56.56s40.948 15.622 56.566 0l443.72-443.718 443.722 443.718c15.618 15.624 40.942 15.622 56.56 0 15.62-15.618 15.622-40.944 0.002-56.566z', + delete: + 'M874 150A512 512 0 10150 874 512 512 0 00874 150zm-659.4 64.6A417.8 417.8 0 01512 91.4c97 0 188.9 32.6 263.3 92.6L184 775.3A417.4 417.4 0 0191.4 512c0-112.4 43.7-218 123.2-297.4zm594.8 594.8A417.8 417.8 0 01512 932.6c-97 0-189-32.7-263.3-92.6L840 248.7A417.4 417.4 0 01932.6 512c0 112.3-43.8 218-123.2 297.4z', + add: + 'M512-.2a512 512 0 110 1024 512 512 0 010-1024zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 511.8c0 112.4 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.4c112.3 0 218-43.8 297.4-123.2a417.8 417.8 0 00123.2-297.4c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.2zm1.1 129.2a45.7 45.7 0 0145.7 45.7v201.1H760a45.7 45.7 0 010 91.5H558.8v201.1a45.7 45.7 0 11-91.4 0V558.7H266.3a45.7 45.7 0 110-91.5h201.1V266.1a45.7 45.7 0 0145.7-45.7z', + subtract: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm4 94A418 418 0 0094 515a418 418 0 00422 422 418 418 0 00421-422A418 418 0 00516 94zm244 372a46 46 0 010 92H264a46 46 0 110-92z', + plus: + 'M921.002 473h-368.008v-368.004c0.002-22.090-17.906-39.996-39.996-39.996-22.088 0-39.998 17.91-39.998 40v368h-368.002c-22.094 0-40 17.908-39.998 40-0.002 22.090 17.904 39.996 39.996 39.996l368.004-0.002v368.010c0 22.094 17.908 40 40 39.996 22.090 0.004 39.996-17.902 39.996-39.996v-368.010h368.010c22.090 0.002 39.994-17.906 39.994-39.996-0-22.088-17.908-39.998-39.998-39.998z', + document: + 'M764 1c12 0 24 4 32 13l129 132c9 8 13 20 13 31v802c0 24-20 44-45 44H131c-25 0-45-20-45-44V45c0-24 20-44 45-44h633zm-48 89H175v844h674l-1-707h-87c-22 0-40-15-44-36v-8l-1-93zm-16 584a45 45 0 0 1 8 89H324a45 45 0 0 1-8-88l8-1h376zm0-187a45 45 0 0 1 8 89l-8 1H324a45 45 0 0 1-8-89l8-1h376zm0-186a45 45 0 0 1 8 88l-8 1H324a45 45 0 0 1-8-89h384z', + folder: + 'M571 274h327c23 0 41 18 41 41v488c0 22-18 40-41 40H126c-23 0-41-18-41-40V242c0-34 27-61 61-61h317c18 0 35 7 47 21l61 72zm-119-8H170v492h684V359H531l-79-93z', + component: + 'M171 469h298V171H246c-42 0-75 33-75 75v223zm0 86v223c0 42 33 75 75 75h223V555H171zm682-86V246c0-42-33-75-75-75H555v298h298zm0 86H555v298h223c42 0 75-33 75-75V555zM256 85h512c94 0 171 77 171 171v512c0 94-77 171-171 171H256c-94 0-171-77-171-171V256c0-94 77-171 171-171z', + calendar: + 'M920.036 160.030h-112.004v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-432v-72c0-22.092-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.004h-112.004c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.908-40-40-40zM356.032 848.026h-212.004v-142.662h212.004v142.662zM356.032 665.364h-212.004v-162.664h212.004v162.664zM356.032 462.7h-212.004v-142.662h212.004v142.662zM628.032 848.026h-232v-142.662h232v142.662zM628.032 665.364h-232v-162.664h232v162.664zM628.032 462.7h-232v-142.662h232v142.662zM880.036 848.026h-212.004v-142.662h212.004v142.662zM880.036 665.364h-212.004v-162.664h212.004v162.664zM880.036 462.7h-212.004v-142.662h212.004v142.662z', + graphline: + 'M820.536 489.23c-15.624 15.618-40.954 15.618-56.57 0l-42.006-42.002-169.898 169.9c-7.822 7.82-18.076 11.722-28.326 11.712-10.248 0.008-20.496-3.894-28.314-11.712l-96.178-96.182-140.67 140.674c-15.624 15.622-40.954 15.618-56.57-0.004-15.624-15.618-15.624-40.946 0-56.566l168.946-168.946c7.812-7.816 18.058-11.72 28.3-11.716 10.238-0.002 20.476 3.904 28.29 11.716l96.204 96.204 168.91-168.91c0.33-0.356 0.626-0.73 0.972-1.076 7.824-7.824 18.084-11.726 28.34-11.712 10.252-0.012 20.508 3.892 28.332 11.714 0.346 0.346 0.64 0.72 0.972 1.074l69.266 69.266c15.62 15.618 15.616 40.942 0 56.566zM880 144h-736v736h736v-736zM920 64c22.092 0 40 17.908 40 40v816c0 22.092-17.908 40-40 40h-816c-22.092 0-40-17.908-40-40v-816c0-22.092 17.908-40 40-40h816z', + docchart: + 'M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c0-22.094-17.906-40-40-40zM395.934 470.67h232v162.664h-232v-162.664zM355.934 633.334h-212.004v-162.664h212.004v162.664zM395.934 430.67v-142.662h232v142.662h-232zM667.934 470.67h212.004v162.664h-212.004v-162.664zM667.934 430.67v-142.662h212.004v142.662h-212.004zM355.934 288.008v142.662h-212.004v-142.662h212.004zM143.93 673.334h212.004v142.662h-212.004v-142.662zM395.934 673.334h232v142.662h-232v-142.662zM667.934 673.334h212.004v142.662h-212.004v-142.662z', + doclist: + 'M919.938 128h-816.008c-1.38 0-2.746 0.070-4.090 0.208-20.168 2.046-35.91 19.080-35.91 39.792v688c0 22.090 17.91 40 40 40h816.008c22.098 0 40-17.91 40-40v-688c-0-22.094-17.906-40-40-40zM143.93 288.008h736.008v527.988h-736.008v-527.988zM248 400.004c0-22.090 17.91-40 40-40h448c22.094 0 40 17.906 40 40 0 22.090-17.906 40-40 40h-448c-22.090 0-40-17.91-40-40zM776 552.002c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40zM776 704c0 22.094-17.906 40-40 40h-448c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40h448c22.094 0 40 17.91 40 40z', + category: + 'M925.224 256.37c-1.694-0.216-3.408-0.37-5.162-0.37h-816c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v624c0 22.094 17.91 40 40 40h816c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-624.004c0-20.342-15.19-37.096-34.838-39.632zM144.062 880v-544h736v544h-736zM896.11 180c0 11.044-8.954 20-20 20h-728.032c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h728.032c11.046 0 20 8.954 20 20v0zM832.094 84c0 11.044-8.954 20-20 20h-600c-11.046 0-20-8.956-20-20v0c0-11.046 8.954-20 20-20h600c11.046 0 20 8.954 20 20v0z', + grid: + 'M437.162 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0-20.34-15.19-37.094-34.838-39.632zM208.022 816.038v-184.040h183.978v184.040h-183.978zM437.162 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-263.978c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h263.978c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0-20.342-15.19-37.096-34.838-39.632zM208.022 392v-183.968h183.978v183.968h-183.978zM861.212 552.368c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v264.040c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-264.044c0.002-20.34-15.19-37.094-34.836-39.632zM632 816.038v-184.040h184.048v184.040h-184.048zM861.212 128.4c-1.694-0.216-3.408-0.37-5.162-0.37h-264.050c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.292-34.838 39.63v263.968c0 22.094 17.91 40 40 40h264.048c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.924 1.2-1.862 1.722-2.838 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-263.972c0.002-20.342-15.19-37.096-34.836-39.632zM632 392v-183.968h184.048v183.968h-184.048z', + copy: + 'M960.132 210.186c0-0.444-0.050-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.060-0.74-0.158-1.468-0.26-2.198-0.080-0.564-0.156-1.128-0.258-1.692-0.146-0.792-0.328-1.566-0.518-2.34-0.124-0.508-0.244-1.014-0.39-1.518-0.224-0.784-0.488-1.548-0.76-2.312-0.176-0.49-0.344-0.98-0.538-1.466-0.302-0.754-0.642-1.486-0.988-2.216-0.224-0.472-0.436-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.722-1.19-0.608-0.924-1.262-1.81-1.942-2.678-0.132-0.168-0.248-0.346-0.382-0.512-0.98-1.212-2.028-2.364-3.14-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.174-0.084-0.262-0.122-0.994-0.418-2.006-0.774-3.024-1.108-0.242-0.080-0.474-0.176-0.72-0.252-0.942-0.288-1.894-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.010-0.458-0.306-0.038-0.606-0.1-0.912-0.13-1.322-0.13-2.65-0.204-3.976-0.204h-391.784c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v145.516h-279.874c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v628.28c0 22.094 17.91 40 40 40h496.118c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-145.518h279.874c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 2.084-3.466 2.128-3.548 2.992-5.612 4.704-12.010 4.704-18.808 0 0 0 0 0-0.004v-521.828c0.008-0.23-0.016-0.458-0.014-0.688 0.002-0.202 0.028-0.39 0.028-0.584zM144.124 878.792v-548.278h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-416.118zM640.244 693.278v-296.31c0.006-0.23-0.018-0.458-0.014-0.688 0.004-0.196 0.030-0.382 0.030-0.578 0-0.444-0.052-0.874-0.066-1.312-0.024-0.684-0.044-1.366-0.104-2.046-0.062-0.74-0.16-1.468-0.262-2.198-0.078-0.564-0.152-1.128-0.258-1.692-0.144-0.792-0.324-1.566-0.516-2.34-0.124-0.508-0.246-1.014-0.39-1.518-0.226-0.784-0.488-1.548-0.76-2.312-0.174-0.49-0.342-0.98-0.538-1.466-0.302-0.754-0.64-1.486-0.988-2.216-0.222-0.472-0.438-0.946-0.68-1.41-0.398-0.762-0.838-1.496-1.284-2.228-0.242-0.396-0.466-0.798-0.724-1.19-0.606-0.924-1.262-1.81-1.942-2.678-0.13-0.168-0.246-0.346-0.382-0.512-0.978-1.212-2.028-2.364-3.138-3.454l-104.020-104.9c-3.714-3.714-7.988-6.518-12.542-8.464-0.088-0.040-0.172-0.084-0.262-0.122-0.994-0.418-2.004-0.774-3.024-1.108-0.242-0.080-0.476-0.176-0.72-0.252-0.942-0.288-1.896-0.516-2.854-0.732-0.334-0.076-0.658-0.176-0.996-0.244-0.998-0.2-2.004-0.336-3.012-0.458-0.304-0.038-0.602-0.1-0.91-0.13-1.322-0.13-2.648-0.204-3.976-0.204h-31.916v-105.516h311.752v65.186c0 22.090 17.91 40 40 40h64.366v443.092h-239.87z', + certificate: + 'M832.032 384.032c0-176.728-143.266-320-320-320s-320 143.272-320 320c0 104.662 50.25 197.584 127.938 255.966v311.5c0 16.174 9.74 30.756 24.682 36.952 4.954 2.052 10.152 3.050 15.31 3.050 10.402 0 20.626-4.060 28.276-11.702l123.726-123.58 123.772 123.332c11.452 11.412 28.644 14.804 43.574 8.608 14.93-6.2 24.66-20.776 24.66-36.942v-311.124c77.756-58.376 128.062-151.342 128.062-256.060zM272.032 384.032c0-64.106 24.964-124.374 70.292-169.706 45.33-45.33 105.6-70.294 169.708-70.294s124.376 24.964 169.708 70.294c45.33 45.332 70.292 105.6 70.292 169.706s-24.964 124.376-70.292 169.704c-45.33 45.33-105.6 70.294-169.708 70.294s-124.376-24.964-169.708-70.294c-45.328-45.328-70.292-105.598-70.292-169.704zM623.968 854.89l-83.804-83.508c-15.622-15.564-40.898-15.552-56.502 0.034l-83.694 83.594v-171.17c34.878 13.042 72.632 20.192 112.062 20.192 39.382 0 77.094-7.13 111.938-20.142v171z', + print: + 'M925.922 304.496c-1.698-0.218-3.41-0.37-5.166-0.37h-88.64v-93.548c0.006-0.21-0.016-0.422-0.014-0.634 0.004-0.212 0.036-0.416 0.036-0.63 0-0.478-0.054-0.942-0.074-1.416-0.024-0.636-0.042-1.27-0.094-1.906-0.066-0.776-0.168-1.54-0.276-2.302-0.074-0.534-0.146-1.066-0.242-1.596-0.15-0.82-0.338-1.624-0.538-2.424-0.12-0.48-0.23-0.958-0.37-1.436-0.234-0.812-0.506-1.608-0.792-2.398-0.164-0.462-0.322-0.924-0.504-1.38-0.318-0.788-0.668-1.552-1.036-2.316-0.208-0.436-0.406-0.88-0.628-1.312-0.424-0.802-0.88-1.574-1.352-2.344-0.218-0.358-0.422-0.724-0.656-1.078-0.636-0.972-1.324-1.91-2.042-2.82-0.098-0.124-0.182-0.252-0.282-0.376-0.988-1.224-2.048-2.388-3.172-3.488l-104.004-104.882c-3.696-3.696-7.948-6.486-12.466-8.432-0.122-0.050-0.224-0.11-0.344-0.16-0.974-0.41-1.966-0.756-2.962-1.084-0.262-0.086-0.512-0.19-0.78-0.272-0.926-0.284-1.87-0.506-2.812-0.722-0.346-0.080-0.684-0.182-1.034-0.252-0.988-0.198-1.988-0.334-2.988-0.456-0.31-0.040-0.618-0.102-0.93-0.134-1.324-0.132-2.652-0.204-3.978-0.204h-455.67c-1.754 0-3.468 0.152-5.162 0.37-19.646 2.538-34.838 19.29-34.838 39.63v200h-87.356c-1.754 0-3.468 0.152-5.164 0.37-19.644 2.538-34.836 19.29-34.836 39.63v320c0 22.094 17.91 40 40 40h87.368v216c0 22.094 17.91 40 40 40h560.006c13.81 0 25.982-6.996 33.17-17.636 0.102-0.146 0.184-0.306 0.282-0.458 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.17 0.124-0.254 2.994-5.612 4.704-12.008 4.704-18.808 0 0 0 0 0-0.004v-216h88.624c13.808 0 25.982-6.996 33.168-17.636 0.104-0.148 0.186-0.308 0.286-0.458 0.612-0.922 1.198-1.862 1.72-2.836 0.046-0.082 0.082-0.172 0.124-0.256 2.994-5.61 4.702-12.008 4.702-18.806 0 0 0 0 0-0.004v-320c0-20.344-15.186-37.096-34.834-39.636zM272.116 144.128h375.634v65.186c0 1.38 0.070 2.746 0.208 4.090 2.048 20.168 19.080 35.91 39.792 35.91h64.366v54.812h-480v-159.998zM272.124 880.126v-327.998h480.006v327.998zM880.756 384.128v239.998h-48.624v-111.998c0-20.34-15.19-37.092-34.836-39.63-1.694-0.218-565.17-0.372-565.17-0.372-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v112h-47.368v-239.998zM664.124 608.126c22.092 0 40 17.908 40 40s-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304zM704.124 784.126c0 22.092-17.908 40-40 40h-304c-22.092 0-40-17.908-40-40s17.908-40 40-40h304c22.092 0 40 17.908 40 40z', + listunordered: + 'M961 233c0 22.090-17.908 40-40 40h-607.996c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h607.996c22.092 0 40 17.912 40 40.002v0zM961 793c0-22.090-17.908-40.002-40-40.002h-607.996c-22.092 0-40 17.912-40 40.002v0c0 22.092 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 606.332c0-22.090-17.908-40-40-40h-607.996c-22.092 0-40 17.91-40 40v0c0 22.094 17.91 40 40 40h607.996c22.092 0 40-17.91 40-40v0zM961 419.668c0-22.090-17.908-40.004-40-40.004h-607.996c-22.092 0-40 17.914-40 40.004v0c0 22.090 17.91 40 40 40h607.996c22.092-0 40-17.91 40-40v0zM129 168.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 728.998c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zM129 542.332c-35.346 0-64 28.652-64 64 0 35.344 28.654 64 64 64s64-28.656 64-64c0-35.348-28.654-64-64-64zM129 355.664c-35.346 0-64 28.656-64 64 0 35.348 28.654 64 64 64s64-28.652 64-64c0-35.344-28.654-64-64-64z', + graphbar: + 'M324.832 513c22.090 0 40 17.91 40 40v304c0 22.090-17.906 40-40 40v0c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40v0zM884.832 128.998c-22.090 0-40 17.906-40 40v688.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-688.002c0-22.094-17.91-40-40-40v0zM698.164 256.998c-22.090 0-40 17.91-40 40v560.002c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-560.002c0-22.090-17.91-40-40-40v0zM511.5 384.998c-22.090 0-40.004 17.91-40.004 40v432.002c0 22.094 17.914 40 40.004 40v0c22.090 0 40-17.91 40-40v-432.002c0-22.090-17.91-40-40-40v0zM139.168 641c-22.090 0-40 17.91-40 40v176c0 22.094 17.91 40 40 40v0c22.094 0 40-17.91 40-40v-176c0-22.090-17.91-40-40-40v0z', + menu: + 'M960 232c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.91 40 40v0zM768 416c0 22.090-17.908 40-40 40h-624c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h624c22.092 0.002 40 17.914 40 40.002v0zM832 608c0 22.092-17.906 40.002-40 40.002h-688c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h688c22.094 0 40 17.912 40 40v0zM576 792c0 22.094-17.91 40-40.002 40h-431.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h432c22.094 0.002 40 17.912 40 40.002v0z', + filter: + 'M962.030 168.032c0 22.092-17.908 40-40.002 40h-815.996c-22.092 0-40-17.908-40-40v0c0-22.090 17.908-40 40-40h815.998c22.092 0 40 17.908 40 40v0zM770 544.034c0 22.090-17.908 40-40 40h-432c-22.090 0-40-17.908-40-40v0c0-22.090 17.908-40.002 40-40.002h432c22.090 0 40 17.912 40 40.002v0zM642.030 728.032c0 22.094-17.91 40-40.002 40h-175.998c-22.090 0-40-17.906-40-40v0c0-22.094 17.908-40.002 40-40.002h176c22.094 0.002 40 17.91 40 40.002v0zM866 352.030c0 22.092-17.906 40.002-40 40.002h-624c-22.090 0-40-17.91-40-40.002v0c0-22.090 17.908-40 40-40h624c22.092 0 40 17.91 40 40v0zM512.030 928.034c22.090 0 40.004-17.906 40.004-40v0c0-22.090-17.914-40-40.004-40v0c-22.090 0-40 17.91-40 40v0c0 22.092 17.91 40 40 40v0z', + ellipsis: + 'M184 393c66.274 0 120 53.73 120 120s-53.726 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM512 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120zM840 393c66.272 0 120 53.73 120 120s-53.728 120-120 120c-66.286 0-120-53.73-120-120s53.714-120 120-120z', + cog: + 'M512 288a224 224 0 0 0 0 448h2a225 225 0 0 0 52-7 47 47 0 0 0-23-90 130 130 0 0 1-31 3 131 131 0 1 1 127-101v1a47 47 0 1 0 91 19 224 224 0 0 0-218-273zM409 0c-67 14-131 40-186 77v98c0 13-6 25-15 33-8 9-20 15-33 15H77C40 278 14 341 0 409l69 68c9 10 14 22 13 34 1 13-4 25-13 34L0 614c14 68 41 132 78 188h97c13 0 25 6 33 15 9 8 15 20 15 33v97c55 37 119 63 187 77l68-69a46 46 0 0 1 36-13c11 0 23 4 32 13l69 69c68-14 131-40 186-77v-98c0-13 6-25 15-34 8-8 20-14 33-14h98c37-56 63-119 77-186l-69-70c-10-9-14-21-14-34 0-12 4-24 14-34l69-69c-14-67-40-129-77-184h-98c-13 0-25-6-33-15-9-8-15-20-15-33V77C746 40 683 14 615 0l-69 69a46 46 0 0 1-35 14c-11 0-23-5-33-14L409 0zm-28 103l32 32c26 26 61 41 98 41h3c37 0 72-15 98-41l32-31c22 7 43 16 64 26v46c0 37 15 73 42 99 26 27 62 42 99 42h45c11 20 19 41 26 63l-31 31c-26 27-41 63-41 100 0 38 15 74 41 100l32 32c-8 22-17 44-27 65h-45c-37 0-73 15-99 42-27 26-42 62-42 99v44c-21 11-42 20-65 27l-31-31c-26-26-61-41-98-41h-3c-37 0-72 15-98 41l-32 32c-22-8-44-17-65-28v-43c0-37-15-73-42-99-26-27-62-42-99-42h-44c-11-21-20-44-28-67l32-31c26-26 41-62 40-100 1-37-14-73-40-100l-31-30c7-23 16-44 26-65h45c37 0 73-15 99-42 27-26 42-62 42-99v-45c21-10 43-19 65-27z', + wrench: + 'M959.438 274.25c0-22.090-17.914-40-40.004-40-11.16 0-21.242 4.582-28.496 11.954l-60.152 60.148c-15.622 15.622-40.946 15.618-56.566-0.004l-56.57-56.566c-15.622-15.622-15.622-40.95 0-56.57l59.55-59.546c7.75-7.292 12.614-17.618 12.614-29.102 0-22.090-17.914-40-40.004-40-1.598 0-3.164 0.122-4.71 0.304-0.012 0-0.020-0.008-0.032-0.004-94.958 11.586-168.504 92.492-168.504 190.574 0 23.528 4.238 46.058 11.98 66.886l-503.078 503.074c-1.496 1.496-2.8 3.102-4.012 4.758-10.914 13.676-17.454 30.992-17.454 49.848 0 44.188 35.818 79.996 79.996 79.996 18.906 0 36.27-6.574 49.964-17.54 1.614-1.188 3.18-2.464 4.64-3.926l503.078-503.078c20.828 7.742 43.36 11.98 66.882 11.98 97.988 0 178.828-73.402 190.54-168.222v-0.012c0.2-1.628 0.338-3.272 0.338-4.952zM151.996 912c-22.090 0-40-17.906-40-40 0-22.090 17.91-40 40-40s40.004 17.91 40.004 40c0 22.094-17.914 40-40.004 40z', + nut: + 'M512 286a229 229 0 0 0-233 226c0 124 104 225 233 225h2a240 240 0 0 0 54-7c21-5 35-24 35-45a48 48 0 0 0-59-45 139 139 0 0 1-32 3c-75 0-136-59-136-131 0-73 61-132 136-132a134 134 0 0 1 132 161v1l-2 9c0 26 22 47 49 47a48 48 0 0 0 47-37c4-16 6-33 6-49 0-125-104-226-232-226m0-286c-16 0-33 4-47 12L90 223a91 91 0 0 0-47 79v420c0 33 18 63 47 79l375 211a96 96 0 0 0 94 0l375-211c29-16 47-46 47-79V302c0-33-18-63-47-79L559 12c-14-8-31-12-47-12m0 91l375 211v420L512 933 137 722V302L512 91', + camera: + 'M925.164 208.372c-1.694-0.218-3.408-0.372-5.162-0.372h-471.968v-39.962c0-20.344-15.192-37.096-34.836-39.63-1.696-0.218-3.41-0.374-5.164-0.374h-176.004c-1.754 0-3.468 0.152-5.164 0.374-19.644 2.538-34.836 19.29-34.836 39.626v39.966h-88.032c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.536-34.838 19.29-34.838 39.628v528c0 22.094 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.168-17.636 0.102-0.148 0.184-0.308 0.282-0.46 0.612-0.922 1.2-1.86 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.61 4.704-12.008 4.704-18.808v-528.004c-0-20.342-15.192-37.096-34.838-39.63zM880.002 736h-736.004v-448h736.004v448zM512 402.522c60.368 0 109.478 49.112 109.478 109.478s-49.112 109.478-109.478 109.478-109.478-49.112-109.478-109.478 49.11-109.478 109.478-109.478zM512 322.522c-104.644 0-189.478 84.832-189.478 189.478 0 104.644 84.834 189.478 189.478 189.478 104.646 0 189.478-84.834 189.478-189.478 0-104.646-84.832-189.478-189.478-189.478v0z', + eye: + 'M1008.714 490.522c-9.002-12.594-223.276-308.808-496.684-308.808-273.444 0-487.682 296.214-496.684 308.808l-15.316 21.49 15.316 21.466c9.002 12.618 223.24 308.808 496.684 308.808 273.408 0 487.682-296.19 496.684-308.808l15.316-21.466-15.316-21.49zM807.68 631.688c-46 39.142-92.558 70.064-138.382 91.904-53.874 25.676-106.786 38.694-157.266 38.694-50.49 0-103.406-13.018-157.282-38.696-45.826-21.838-92.382-52.758-138.378-91.902-53.708-45.706-94.302-92.122-116.61-119.672 22.36-27.602 63.028-74.094 116.612-119.696 45.996-39.146 92.554-70.068 138.378-91.908 53.876-25.678 106.792-38.698 157.28-38.698 50.48 0 103.39 13.020 157.264 38.696 45.824 21.842 92.382 52.764 138.382 91.91 53.602 45.614 94.264 92.098 116.624 119.696-22.306 27.544-62.898 73.954-116.622 119.672zM692.032 512.036c0 99.41-80.588 180-180 180s-180-80.59-180-180c0-99.406 80.588-179.998 180-179.998s180 80.59 180 179.998z', + eyeclose: + 'M75.744 948.314c-15.62-15.62-15.62-40.948 0-56.564l816-816c15.626-15.624 40.95-15.624 56.57 0 15.624 15.62 15.626 40.946 0.004 56.57l-816 815.994c-15.62 15.62-40.95 15.62-56.572 0zM332.032 512.034c0 20.104 3.296 39.434 9.376 57.484l228.104-228.106c-18.050-6.080-37.38-9.376-57.48-9.376-99.412-0.004-180 80.588-180 179.996zM692.032 512.034c0-20.1-3.3-39.432-9.38-57.484l-228.106 228.11c18.052 6.080 37.384 9.376 57.488 9.376 99.412 0 180-80.59 180-180zM1008.716 490.522c-4.98-6.968-72.86-100.8-178.81-183.22l-57.040 57.040c11.624 8.8 23.24 18.128 34.814 27.98 53.6 45.614 94.264 92.1 116.624 119.696-22.304 27.544-62.896 73.954-116.62 119.672-46 39.14-92.56 70.064-138.384 91.904-53.872 25.676-106.786 38.694-157.266 38.694-37.448 0-76.234-7.18-115.76-21.36l-61.486 61.49c54.786 24.22 114.45 39.87 177.248 39.87 273.41 0 487.684-296.19 496.686-308.808l15.316-21.468-15.316-21.49zM216.372 631.69c-53.708-45.706-94.3-92.12-116.61-119.672 22.36-27.6 63.028-74.094 116.612-119.696 46-39.146 92.554-70.068 138.38-91.908 53.874-25.68 106.79-38.7 157.28-38.7 37.46 0 76.264 7.188 115.8 21.38l61.484-61.484c-54.796-24.236-114.474-39.896-177.286-39.896-273.446 0-487.684 296.214-496.686 308.808l-15.316 21.49 15.314 21.466c4.98 6.984 72.866 100.84 178.84 183.26l57.040-57.040c-11.64-8.806-23.264-18.144-34.854-28.008z', + photo: + 'M920 64h-816c-22.092 0-40 17.91-40 40v816c0 22.094 17.908 40 40 40h816c22.092 0 40-17.906 40-40v-816c0-22.090-17.908-40-40-40zM880 144v449.782l-235.39-235.392c-7.502-7.5-17.676-11.714-28.286-11.714s-20.784 4.214-28.286 11.716l-169.804 169.804-40.958-40.958c-15.622-15.622-40.95-15.622-56.57 0l-176.708 176.708v-519.946h736.002zM144 880v-102.914l204.992-204.994 215.972 215.974c7.81 7.81 18.048 11.714 28.286 11.714s20.474-3.904 28.286-11.714c15.62-15.622 15.62-40.95 0-56.57l-146.732-146.73 141.522-141.524 263.676 263.68v173.078h-736.002zM356.174 400.542c52.466 0 95-42.536 95-95s-42.534-95-95-95-95 42.536-95 95 42.534 95 95 95zM356.174 250.542c30.326 0 55 24.672 55 55s-24.674 55-55 55-55-24.672-55-55 24.674-55 55-55z', + video: + 'M926.050 273.364c-9.556 0-20.574 3.8-32.278 11.812l-189.738 129.894v-151.068c0-20.342-15.192-37.094-34.838-39.63-1.694-0.218-3.408-0.372-5.162-0.372h-560.002c-1.754 0-3.468 0.152-5.162 0.372-19.646 2.538-34.838 19.29-34.838 39.628v496.002c0 22.092 17.91 40 40 40h560.004c13.808 0 25.98-6.998 33.168-17.638 0.102-0.148 0.184-0.308 0.282-0.458 0.612-0.922 1.2-1.862 1.722-2.836 0.046-0.082 0.080-0.172 0.124-0.254 2.994-5.612 4.704-12.010 4.704-18.81v-151.066l189.738 129.886c11.706 8.012 22.718 11.812 32.278 11.812 20.092 0 33.736-16.806 33.736-46.622v-384.032c0-29.816-13.644-46.62-33.738-46.62zM624.036 720h-480.004v-415.998h480.004v415.998zM879.788 632.3l-175.728-120.296 175.728-120.302v240.598zM240.688 663.534c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.092-17.914 40-40.004 40v0z', + speaker: + 'M692.070 580.856c18.156-18.156 28.152-42.266 28.152-67.89-0.008-25.622-10.002-49.726-28.148-67.872-8.476-8.478-18.308-15.188-29-19.922-0.222-0.098-0.408-0.22-0.566-0.364-13.294-6.5-22.476-20.116-22.476-35.914 0-22.090 17.91-40 40-40 5.774 0 11.246 1.248 16.204 3.45 0.016 0.006 0.026 0.008 0.040 0.016 19.292 8.656 37.036 20.832 52.368 36.164 33.254 33.254 51.574 77.446 51.58 124.43 0.006 46.996-18.31 91.204-51.58 124.472-15.064 15.062-32.45 27.074-51.344 35.7-0.154 0.070-0.286 0.112-0.434 0.176-5.124 2.382-10.812 3.75-16.832 3.75-22.090 0-40-17.906-40-40 0-16.196 9.644-30.112 23.488-36.402 0.156-0.11 0.32-0.216 0.516-0.304 10.314-4.712 19.81-11.268 28.032-19.49zM861.778 275.386c-47.824-47.824-107.946-79.588-173.204-92.242-0.356-0.078-0.712-0.146-1.072-0.214-0.060-0.012-0.124-0.026-0.186-0.038-0.506-0.096-0.976-0.162-1.422-0.208-1.918-0.282-3.868-0.476-5.864-0.476-22.090 0-40 17.91-40 40 0 19.024 13.292 34.91 31.084 38.968 0.352 0.128 0.728 0.244 1.162 0.326 48.7 9.268 95.226 32.748 132.934 70.452 99.972 99.972 100.054 261.984-0.002 362.040-37.684 37.684-84.152 61.14-132.788 70.426-0.084 0.016-0.144 0.046-0.224 0.066-18.338 3.644-32.166 19.816-32.166 39.222 0 22.094 17.91 40 40 40 2.776 0 5.484-0.286 8.102-0.822 0.094-0.018 0.172-0.018 0.27-0.038 65.32-12.626 125.496-44.406 173.376-92.286 131.008-131.008 131.008-344.172 0-475.176zM525.988 159.516v704.968c0 22.090-17.906 40-40 40-12.73 0-24.046-5.966-31.374-15.234l-51.056-61.722v0.216l-122.14-147.666h-177.386c-22.090 0-40-17.906-40-40v0 0-256c0-5.22 1.030-10.194 2.85-14.766 0.104-0.266 0.184-0.542 0.294-0.804 0.39-0.924 0.844-1.812 1.3-2.702 0.134-0.26 0.242-0.538 0.382-0.794 0.246-0.456 0.54-0.878 0.804-1.324 6.972-11.726 19.734-19.61 34.368-19.61h177.386l173.13-209.238c7.324-9.316 18.67-15.324 31.44-15.324 22.092-0 40.002 17.91 40.002 40zM445.988 270.826l-126.708 153.252h-175.248v176h175.248l19.832 23.998h0.17l106.708 129.112v-482.362z', + phone: + 'M742.52 960c-76.266 0-163.184-32.364-258.338-96.194-73.798-49.504-136.41-106.904-175.938-146.34-43.282-43.222-105.612-111.376-156.842-190.682-66.576-103.062-95.348-196.038-85.518-276.344 8.952-73.326 50.674-134.292 120.664-176.304 10.95-6.63 23.76-10.134 37.054-10.134 32.752 0 71.124 23.354 120.764 73.494 36.434 36.802 70.108 79.22 89.472 106.644 46.698 66.176 60.686 107.352 48.286 142.136-12.638 35.538-35.534 55.704-52.25 70.428-5.662 5.006-9.95 8.854-13.070 12.262 4.040 7.542 11.744 19.868 26.054 37.476 42.388 52.076 90.548 89.024 111.972 100.874 3.308-2.96 7.11-7.168 12.352-13.152 14.87-16.81 35.062-39.636 70.482-52.28 7.978-2.842 16.498-4.276 25.35-4.276 44.172 0 108.804 44.078 155.246 81.056 45.834 36.494 103.292 90.498 127.104 132.612 22.602 39.596 14.982 68.64 4.596 86.006-48.138 80.296-119.862 122.718-207.44 122.718zM224.758 144.53c-47.558 29.426-73.566 67.28-79.468 115.618-7.494 61.224 17.17 136.326 73.308 223.226 49.902 77.252 112.994 144.35 146.16 177.472 30.296 30.222 91.906 88.17 163.988 136.524 81.738 54.83 153.662 82.63 213.772 82.63 58.618 0 103.506-26.526 137.138-81.076-0.47-1.536-1.532-4.062-3.854-8.132-14.584-25.794-57.006-69.202-105.642-108.156-58.776-47.074-96.708-63.894-106.756-64.982-15.348 5.826-25.020 16.758-36.178 29.372-12.542 14.318-28.31 32.316-55.476 41.528l-6.25 2.12h-6.598c-8.704 0-31.826 0-86.73-43.378-32.196-25.438-64.65-57.534-91.38-90.374-35.712-43.942-51.41-77.764-46.674-100.548l0.55-2.642 0.9-2.546c9.19-26 26.284-41.118 41.364-54.458 12.726-11.208 23.698-20.874 29.494-36.378-0.606-4.398-5.076-23.488-37.948-70.072-15.882-22.494-45.746-60.376-77.614-93.084-39.93-40.986-60.106-50.546-66.106-52.664z', + flag: + 'M168 960.060c-22.092 0-40-17.908-40-40v-816.36c0-22.092 17.908-40 40-40h687.698c16.178 0 30.764 9.746 36.956 24.694 6.192 14.946 2.77 32.15-8.67 43.59l-188.918 188.922 189.218 189.216c11.44 11.442 14.862 28.646 8.67 43.592-6.192 14.948-20.776 24.694-36.956 24.694h-647.998v341.654c0 22.090-17.908 39.998-40 39.998zM208 498.406h551.428l-149.218-149.216c-15.622-15.622-15.622-40.95 0-56.568l148.918-148.922h-551.128v354.706z', + pin: + 'M512 959.916c-13.36 0-25.84-6.672-33.262-17.782l-242.080-362.324c-0.12-0.176-0.236-0.356-0.354-0.536-36.394-54.5-55.63-118.042-55.63-183.804 0-182.696 148.632-331.324 331.326-331.324 182.696 0 331.328 148.628 331.328 331.324 0 60.71-16.554 119.98-47.906 171.652-0.758 1.528-1.618 3.016-2.578 4.45l-5.786 8.664c-0.054 0.082-0.112 0.164-0.168 0.246-0.042 0.070-0.104 0.16-0.148 0.23l-241.484 361.426c-7.422 11.106-19.898 17.778-33.258 17.778zM303.458 535.784l0.026 0.040c0.038 0.054 0.158 0.238 0.194 0.292l208.324 311.796 212.374-317.86c0.376-0.696 0.778-1.382 1.198-2.062 24.7-39.708 37.758-85.532 37.758-132.52 0-138.582-112.746-251.324-251.328-251.324s-251.326 112.742-251.326 251.324c0 50.054 14.674 98.39 42.432 139.782 0.114 0.176 0.232 0.356 0.348 0.532zM512 304.4c49.98 0 90.64 40.66 90.64 90.64 0 49.976-40.66 90.636-90.64 90.636s-90.64-40.66-90.64-90.636c0-49.98 40.66-90.64 90.64-90.64zM512 224.4c-94.242 0-170.64 76.398-170.64 170.64s76.398 170.636 170.64 170.636 170.64-76.394 170.64-170.636-76.398-170.64-170.64-170.64v0z', + compass: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm242.4 178.1a22.9 22.9 0 012.9 28.9L574.9 571.7l-3.2 3.2-273.3 182.4a22.9 22.9 0 01-31.7-31.7l181-271.6c1.7-2.5 3.8-4.6 6.3-6.3l271.6-181c9-6 21.1-4.9 28.8 2.8zM483.2 483.3l-115 172.4 172.5-115-57.5-57.4z', + globe: + 'M533.6 1.6a144.2 144.2 0 00-43.2 0A511.7 511.7 0 000 512.6 511.7 511.7 0 00512 1024c282.8 0 512-229 512-511.4a511.7 511.7 0 00-490.4-511zM930 467H749c-3.6-105.7-20-204.7-47.2-282.5a494.4 494.4 0 00-24.2-58.2 419.3 419.3 0 01131.8 89.3A416.7 416.7 0 01930.2 467zM512 931.5c-75.3 0-137.3-163.3-145.4-373.3h290.8c-8.1 210-70.1 373.3-145.4 373.3zM366.5 467c7.4-200.2 63.7-358.5 134-374.3a406.8 406.8 0 0123 0c70.3 15.9 126.6 174.1 134 374.3h-291zM214.6 215.5A420.7 420.7 0 01346.4 126c-8.7 17.7-16.9 37.1-24.2 58.2-27.1 78-43.6 177-47.2 282.5H94a416.7 416.7 0 01120.7-251.3zM93.9 558.2H275c3.8 104.8 20.2 203 47 280.3a488.6 488.6 0 0025.8 61 420.4 420.4 0 01-133.3-89.9A416.7 416.7 0 0193.9 558.2zm715.5 251.4a420.4 420.4 0 01-133.3 90c9.3-18.4 18-38.8 25.7-61.1 27-77.4 43.3-175.5 47-280.3h181.3a416.7 416.7 0 01-120.7 251.4z', + location: + 'M1024 512a512 512 0 10-512.1 512C643 1024 774 974 874 874s150-231 150-362zM809.4 809.4a417.4 417.4 0 01-251.7 120.7v-153a45.7 45.7 0 00-91.5 0v153a417 417 0 01-251.6-120.7A417.7 417.7 0 0194 557.7h153a45.7 45.7 0 000-91.5h-153a417.3 417.3 0 01120.7-251.6A417.5 417.5 0 01466.2 93.8v153a45.7 45.7 0 0091.4 0v-153a417.4 417.4 0 01251.8 120.7A417.5 417.5 0 01930 466.2H777a45.7 45.7 0 000 91.4h153a417.3 417.3 0 01-120.7 251.7v.1z', + search: + 'M218 670a318 318 0 0 1 0-451 316 316 0 0 1 451 0 318 318 0 0 1 0 451 316 316 0 0 1-451 0m750 240L756 698a402 402 0 1 0-59 60l212 212c16 16 42 16 59 0 16-17 16-43 0-60', + zoom: + 'M220 670a316 316 0 0 1 0-450 316 316 0 0 1 450 0 316 316 0 0 1 0 450 316 316 0 0 1-450 0zm749 240L757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59zM487 604a42 42 0 0 1-84 0V487H286a42 42 0 1 1 0-84h117V286a42 42 0 1 1 84 0v117h117a42 42 0 0 1 0 84H487v117z', + zoomout: + 'M757 698a402 402 0 1 0-59 59l212 212a42 42 0 0 0 59-59L757 698zM126 445a316 316 0 0 1 319-319 316 316 0 0 1 318 319 316 316 0 0 1-318 318 316 316 0 0 1-319-318zm160 42a42 42 0 1 1 0-84h318a42 42 0 0 1 0 84H286z', + zoomreset: + 'M148 560a318 318 0 0 0 522 110 316 316 0 0 0 0-450 316 316 0 0 0-450 0c-11 11-21 22-30 34v4h47c25 0 46 21 46 46s-21 45-46 45H90c-13 0-25-6-33-14-9-9-14-20-14-33V156c0-25 20-45 45-45s45 20 45 45v32l1 1a401 401 0 0 1 623 509l212 212a42 42 0 0 1-59 59L698 757A401 401 0 0 1 65 570a42 42 0 0 1 83-10z', + timer: + 'M571.5 0a42.7 42.7 0 010 85.3h-16.7l-.2 53.1a441.6 441.6 0 01221.2 84.9l44.7-44.6a42.7 42.7 0 0160.3 60.3l-41.5 41.5a443.8 443.8 0 11-370-142l.1-53.2H452A42.7 42.7 0 01452 0h119.5zM512 221.7a356 356 0 00-253.5 105 356 356 0 00-105 253.5 356 356 0 00105 253.5 356 356 0 00253.5 105 356 356 0 00253.5-105 356.2 356.2 0 00105-253.5 356 356 0 00-105-253.5 356 356 0 00-253.5-105zm-.1 52.7a42.7 42.7 0 0142.6 42.6v206.6a68.2 68.2 0 0125.3 47.3l.2 5.8a68.2 68.2 0 11-110.8-53.4V317a42.7 42.7 0 0142.7-42.6z', + time: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 91.4c-112.3 0-218 43.8-297.4 123.2A417.8 417.8 0 0091.4 512c0 112.3 43.8 218 123.2 297.4A417.8 417.8 0 00512 932.6c112.3 0 218-43.8 297.4-123.2A417.8 417.8 0 00932.6 512c0-112.3-43.8-218-123.2-297.4A417.8 417.8 0 00512 91.4zm0 54.9a45.7 45.7 0 0145.7 45.7v280H759a45.7 45.7 0 010 91.4H512c-6.1 0-12-1.2-17.4-3.4l-.4-.2-2-1c-.7-.3-1.4-.5-2-.9l-.7-.4-3-1.9-.4-.2c-12-8.2-19.8-22-19.8-37.7V192a45.7 45.7 0 0145.7-45.7z', + lightning: + 'M320.022 1022.644c-7.408 0-14.852-2.052-21.44-6.238-15.292-9.714-22.144-28.494-16.706-45.774l115.186-365.908-214.552-52.57c-14.714-3.606-26.128-15.214-29.486-29.988-3.356-14.772 1.92-30.174 13.632-39.786l576-472.662c14.458-11.864 35.208-12.126 49.962-0.626 14.752 11.496 19.568 31.682 11.594 48.602l-171.202 363.256 208.648 51.756c14.29 3.544 25.476 14.652 29.124 28.914s-0.834 29.376-11.668 39.344l-512 471.112c-7.586 6.984-17.308 10.568-27.092 10.568zM279.236 493.49l178.314 43.69c10.74 2.632 19.912 9.59 25.336 19.226s6.62 21.086 3.298 31.636l-83.030 263.76 347.066-319.352-183.82-45.596c-11.63-2.884-21.356-10.832-26.498-21.656-5.144-10.822-5.164-23.382-0.054-34.22l116.31-246.788-376.922 309.3z', + lightningoff: + 'M310 374L76 150a37 37 0 0 1 0-54c15-14 41-14 56 0l816 778c16 15 16 39 0 54a41 41 0 0 1-56 0L666 712l-57-54-242-230-57-54zm-32 28l57 54-44 38 115 29 78 76-75 254 169-165 57 54-279 271c-8 7-17 11-26 11-7 0-14-2-20-6a41 41 0 0 1-16-46l109-367-203-52c-14-4-25-16-28-30-4-15 1-31 13-40l93-81zm124-108L731 9c13-12 33-12 47-1 14 12 19 32 11 49L627 421l198 52c13 4 24 15 27 29 4 14-1 29-11 39l-89 87-56-54 42-41-118-31-80-76 109-242-190 165-57-55z', + dashboard: + 'M512 85.3a512 512 0 01361 875c-99.5-44-225-70.4-361.6-70.4-136.1 0-261.4 26.2-360.8 70A512 512 0 01512 85.4zm0 91.5c-112.4 0-218 43.7-297.4 123.1A417.8 417.8 0 0091.4 597.3c0 93 30 181.5 85.5 254.2 101-34.8 215.3-53 334.5-53 119.6 0 234.2 18.3 335.5 53.4a417.3 417.3 0 0085.7-254.6c0-112.3-43.8-218-123.2-297.4a417.5 417.5 0 00-275-122.6l-22.4-.5zm219.7 115.7a45.7 45.7 0 0116.7 62.4L580.4 646c6.5 17.1 6.7 36.6-.6 54.3l-4.3 8.7A73.1 73.1 0 11501.3 600l168-291a45.7 45.7 0 0162.4-16.6z', + hourglass: + 'M511.926 801.946c-22.090 0-40-17.906-40-40v0c0-22.090 17.91-40 40-40v0c22.090 0 40.004 17.91 40.004 40v0c0 22.094-17.914 40-40.004 40v0zM831.682 915.242c0.192 1.582 0.318 3.186 0.318 4.82 0 22.090-17.908 40-40 40h-560c-22.092 0-40-17.914-40-40 0-2.438 0.252-4.812 0.67-7.128 2.36-53.636 18.034-105.7 45.852-151.554 0.734-1.476 1.562-2.912 2.492-4.296l5.582-8.364c0.054-0.080 0.11-0.158 0.164-0.238 0.042-0.068 0.098-0.156 0.144-0.222l157.704-236.036-158.5-237.228c-0.116-0.17-0.23-0.342-0.34-0.516-32.842-49.178-51.11-105.994-53.368-165.044-0.238-1.762-0.402-3.546-0.402-5.374 0-22.090 17.908-40 40-40h560c22.092 0 40 17.914 40 40 0 2.056-0.204 4.064-0.504 6.038-2.194 54.020-17.886 106.48-45.894 152.648-0.734 1.472-1.562 2.91-2.492 4.294l-5.582 8.366c-0.054 0.078-0.11 0.156-0.164 0.236-0.042 0.068-0.098 0.154-0.144 0.222l-157.734 236.082 158.468 237.182c0.116 0.168 0.23 0.344 0.34 0.516 32.946 49.33 51.226 106.346 53.39 165.596zM749.958 144.060h-475.99c6.138 31.304 18.384 61.124 36.354 87.916 0.118 0.17 0.23 0.344 0.342 0.514l0.024 0.038c0.036 0.054 0.15 0.23 0.186 0.284l54.286 81.25h293.596l58.196-87.1c0.366-0.67 0.75-1.334 1.154-1.99 15.492-24.916 26.228-52.324 31.852-80.912zM497.528 512.178l-0.032 0.046 14.426 21.592 93.378-139.756h-186.692l78.92 118.118zM305.96 799.156c-15.498 24.91-26.234 52.318-31.856 80.906h476.052c-6.138-31.304-18.384-61.122-36.354-87.918-0.118-0.168-0.23-0.344-0.342-0.512l-0.024-0.040c-0.036-0.050-0.15-0.23-0.186-0.282l-140.242-209.902-28.98 43.374c-7.166 10.72-19.21 17.162-32.11 17.162-12.896 0-24.942-6.442-32.11-17.166l-28.76-43.044-143.938 215.428c-0.36 0.674-0.744 1.338-1.15 1.994z', + play: + 'M878.78 477.856l-591.884-341.722c-9.464-5.464-18.426-8.050-26.386-8.048-19.516 0.002-33.002 15.546-33.002 42.338v683.446c0 26.792 13.482 42.338 33.002 42.338 7.96 0 16.924-2.586 26.386-8.048l591.884-341.722c32.664-18.864 32.664-49.724 0-68.582z', + playnext: + 'M222 136l513 342 12 10V192a64 64 0 01128 0v640a64 64 0 01-128 0V536l-12 10-513 342c-8 5-16 8-23 8-17 0-28-16-28-42V170c0-26 11-42 28-42 7 0 15 3 23 8z', + playback: + 'M823 136L311 478l-12 10V192a64 64 0 00-128 0v640a64 64 0 10128 0V536l12 10 512 342c8 5 16 8 23 8 17 0 29-16 29-42V170c0-26-12-42-29-42-7 0-15 3-23 8z', + stop: + 'M1024 512A512 512 0 100 512a512 512 0 001024 0zM215 809a418 418 0 010-594 418 418 0 01594 0 418 418 0 010 594 418 418 0 01-594 0zm471-78H338c-25 0-45-20-45-45V338c0-25 20-45 45-45h348c25 0 45 20 45 45v348c0 25-20 45-45 45z', + stopalt: 'M894 85H130c-25 0-45 20-45 45v764c0 25 20 45 45 45h764c25 0 45-20 45-45V130c0-25-20-45-45-45z', + rewind: + 'm631.8 642.6 345 245.4c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3V170.3c0-26.8-11-42.3-26.8-42.3-6.4 0-13.7 2.6-21.4 8l-345 245.4v-211c0-26.9-10.9-42.4-26.8-42.4-6.4 0-13.7 2.6-21.4 8L129 459.4V192a64 64 0 0 0-128 0v640a64 64 0 0 0 128 0V564.6L583.6 888c7.7 5.4 15 8 21.4 8 15.9 0 26.8-15.5 26.8-42.3v-211Z', + fastforward: + 'M398.2 386.4 53.2 141c-7.7-5.4-15-8-21.4-8C15.9 133 5 148.5 5 175.3v683.4C5 885.5 16 901 31.8 901c6.4 0 13.7-2.6 21.4-8l345-245.4v211c0 26.9 11 42.4 26.8 42.4 6.4 0 13.7-2.6 21.4-8L901 569.6V837a64 64 0 0 0 128 0V197a64 64 0 0 0-128 0v267.4L446.4 141c-7.7-5.4-15-8-21.4-8-15.9 0-26.8 15.5-26.8 42.3v211Z', + email: + 'M960.032 268.004c0.748-10.040-2.246-20.364-9.226-28.684-5.984-7.132-13.938-11.62-22.394-13.394-0.13-0.026-0.268-0.066-0.396-0.092-1.082-0.22-2.172-0.376-3.272-0.5-0.25-0.032-0.492-0.080-0.742-0.102-1.028-0.096-2.052-0.136-3.090-0.156-0.292-0.002-0.582-0.042-0.876-0.042h-816.008c-21.416 0-38.848 16.844-39.898 38-0.034 0.628-0.092 1.256-0.096 1.89 0 0.034-0.006 0.074-0.006 0.114 0 0.050 0.008 0.102 0.008 0.152v495.692c0 0.054-0.008 0.106-0.008 0.156 0 22.090 17.91 40 40 40h816.004c13.808 0 25.98-6.996 33.17-17.636 0.1-0.148 0.182-0.312 0.28-0.458 0.606-0.93 1.196-1.868 1.722-2.84 0.046-0.082 0.080-0.172 0.124-0.258 2.992-5.604 4.704-12.008 4.704-18.804v0 0-493.038zM144.032 350.156l339.946 281.188c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.042 1.492-0.058c0.842-0.028 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.946-281.206v370.894h-736v-370.876zM215.066 305.030h593.91l-296.946 245.422-296.964-245.422z', + link: + 'M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z', + paperclip: + 'M824.25 369.354c68.146-70.452 67.478-182.784-2.094-252.354-70.296-70.296-184.266-70.296-254.558 0-0.014 0.012-0.028 0.026-0.042 0.042-0.004 0.002-0.006 0.004-0.010 0.008l-433.144 433.142c-0.036 0.036-0.074 0.068-0.11 0.106-0.054 0.052-0.106 0.11-0.16 0.162l-2.668 2.67c-0.286 0.286-0.528 0.596-0.8 0.888-43.028 44.88-66.664 103.616-66.664 165.986 0 64.106 24.962 124.376 70.292 169.704 45.328 45.33 105.598 70.292 169.706 70.292 50.612 0 98.822-15.57 139.186-44.428 4.932-1.952 9.556-4.906 13.544-8.894l16.802-16.802c0.056-0.056 0.116-0.112 0.172-0.168 0.038-0.038 0.074-0.076 0.112-0.116l289.010-289.014c15.622-15.618 15.62-40.942 0-56.56s-40.948-15.62-56.566 0l-289.124 289.122c-62.482 62.484-163.792 62.484-226.274 0-62.484-62.482-62.484-163.79 0-226.272h-0.002l433.134-433.12c0.058-0.060 0.112-0.122 0.172-0.18 38.99-38.99 102.43-38.99 141.42 0 38.992 38.99 38.99 102.432 0 141.422-0.058 0.060-0.122 0.114-0.18 0.17l0.006 0.006-280.536 280.534c-0.002-0.002-0.002-0.004-0.004-0.006l-79.978 79.98c-0.010 0.010-0.016 0.020-0.028 0.028-0.008 0.012-0.018 0.018-0.028 0.028l-0.064 0.062c-15.622 15.624-40.944 15.624-56.562 0-15.624-15.62-15.624-40.944-0.002-56.566l0.062-0.062c0.010-0.010 0.018-0.020 0.028-0.028 0.008-0.012 0.020-0.018 0.028-0.028l79.98-79.978c-0.002-0.002-0.004-0.002-0.006-0.004l136.508-136.512c15.622-15.62 15.62-40.944-0.002-56.562-15.618-15.62-40.946-15.62-56.564 0l-219.342 219.344c-1.284 1.284-2.42 2.652-3.494 4.052-40.4 47.148-38.316 118.184 6.322 162.824 44.64 44.638 115.674 46.722 162.82 6.324 1.402-1.072 2.772-2.21 4.054-3.494l2.83-2.832c0.002 0 0.002 0 0.002 0s0 0 0 0l360.54-360.54c0.058-0.056 0.12-0.114 0.18-0.172 0.050-0.050 0.098-0.106 0.15-0.158l0.994-0.994c0.34-0.338 0.63-0.702 0.952-1.052z', + box: + 'M960.016 408.080c0-0.672-0.046-1.342-0.078-2.014-0.032-0.594-0.044-1.19-0.102-1.782-0.068-0.726-0.186-1.448-0.294-2.17-0.080-0.54-0.144-1.080-0.248-1.616-0.138-0.724-0.326-1.442-0.506-2.16-0.134-0.534-0.252-1.070-0.408-1.6-0.196-0.662-0.436-1.314-0.668-1.968-0.204-0.582-0.396-1.166-0.628-1.74-0.226-0.56-0.494-1.11-0.75-1.662-0.3-0.656-0.598-1.312-0.934-1.954-0.242-0.454-0.514-0.894-0.774-1.342-0.414-0.716-0.83-1.43-1.292-2.124-0.256-0.382-0.538-0.752-0.806-1.128-0.514-0.716-1.036-1.428-1.602-2.116-0.090-0.11-0.162-0.226-0.254-0.336-0.244-0.292-0.516-0.542-0.768-0.826-0.534-0.6-1.068-1.198-1.644-1.772-0.48-0.478-0.982-0.924-1.48-1.376-0.354-0.316-0.674-0.658-1.040-0.964l-405.788-335.666c-6.568-6.436-14.918-10.166-23.564-11.124-0.16-0.022-0.32-0.050-0.48-0.066-0.838-0.082-1.676-0.11-2.518-0.14-0.496-0.020-0.994-0.058-1.492-0.058s-0.996 0.040-1.492 0.058c-0.842 0.028-1.68 0.058-2.518 0.14-0.16 0.016-0.32 0.044-0.48 0.066-8.646 0.956-16.996 4.688-23.564 11.124l-405.662 335.542c-7.13 5.982-11.616 13.93-13.392 22.382-0.032 0.14-0.070 0.278-0.1 0.42-0.212 1.072-0.37 2.152-0.494 3.238-0.032 0.258-0.078 0.51-0.106 0.77-0.086 0.89-0.114 1.786-0.138 2.68-0.014 0.39-0.052 0.78-0.054 1.17 0 0.040-0.006 0.074-0.006 0.114v204.856c-0.958 12.434 3.854 25.128 14.134 33.754l405.662 335.54c6.568 6.438 14.918 10.168 23.564 11.124 0.16 0.020 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058 0.054 0 0.11-0.008 0.162-0.008 0.042 0 0.084 0.008 0.126 0.008 0.342 0 0.672-0.042 1.012-0.050 0.062-0.004 0.126-0.008 0.192-0.008 0.134-0.004 0.27-0.020 0.402-0.024 10.602-0.422 20.136-4.938 27.054-12.046l404.526-334.624c0.084-0.066 0.166-0.136 0.248-0.204l0.12-0.098c0.17-0.144 0.314-0.304 0.48-0.45 0.814-0.704 1.614-1.43 2.37-2.2 0.296-0.3 0.562-0.624 0.85-0.934 0.602-0.652 1.2-1.308 1.756-2 0.3-0.372 0.566-0.758 0.852-1.136 0.504-0.672 1.002-1.344 1.462-2.046 0.242-0.368 0.458-0.75 0.686-1.124 0.458-0.754 0.908-1.508 1.316-2.292 0.164-0.312 0.304-0.636 0.46-0.954 0.426-0.872 0.832-1.746 1.196-2.652 0.092-0.23 0.168-0.464 0.256-0.696 0.376-0.996 0.728-2 1.026-3.032 0.042-0.148 0.074-0.296 0.114-0.442 0.306-1.102 0.578-2.218 0.79-3.356 0.016-0.082 0.024-0.164 0.038-0.246 0.212-1.184 0.382-2.378 0.49-3.598v0c0.1-1.156 0.176-2.32 0.176-3.5v-204.86c0.024-0.318 0.022-0.638 0.040-0.958 0.026-0.668 0.074-1.338 0.074-2.008zM143.89 493.202l328.14 271.42v103.902l-328.14-271.18v-104.142zM552.032 764.402l327.868-271.212v103.88l-327.868 270.972v-103.64zM511.898 122.66l345.348 285.42-345.348 285.42-345.374-285.42 345.374-285.42z', + structure: + 'M954.324 833.3c0.208-0.558 0.388-1.128 0.586-1.692 0.3-0.868 0.608-1.734 0.882-2.61 0.234-0.746 0.444-1.5 0.66-2.25 0.212-0.734 0.432-1.464 0.624-2.204 0.204-0.766 0.378-1.54 0.562-2.308 0.18-0.766 0.366-1.528 0.528-2.292 0.146-0.692 0.272-1.386 0.402-2.082 0.168-0.89 0.332-1.778 0.476-2.668 0.090-0.566 0.164-1.136 0.244-1.704 0.148-1.058 0.29-2.118 0.404-3.18 0.042-0.422 0.080-0.852 0.12-1.274 0.118-1.23 0.212-2.46 0.282-3.696 0.018-0.304 0.030-0.606 0.042-0.906 0.062-1.36 0.098-2.718 0.104-4.082 0-0.114 0.008-0.226 0.008-0.34 0-0.128-0.010-0.258-0.010-0.39-0.006-1.368-0.042-2.734-0.104-4.102-0.014-0.296-0.030-0.594-0.044-0.89-0.070-1.246-0.166-2.492-0.284-3.738-0.042-0.434-0.084-0.864-0.128-1.292-0.116-1.050-0.25-2.098-0.4-3.144-0.088-0.628-0.18-1.258-0.282-1.882-0.13-0.8-0.276-1.598-0.428-2.394-0.162-0.868-0.332-1.73-0.518-2.594-0.116-0.524-0.24-1.046-0.364-1.57-0.264-1.128-0.542-2.25-0.846-3.36-0.070-0.254-0.144-0.504-0.214-0.754-11.38-40.382-48.464-69.996-92.488-69.996-3.066 0-6.096 0.16-9.088 0.442l-264.576-458.262c21.080-29.698 24.3-70.13 4.9-103.732-12.596-21.816-32.458-36.812-54.764-43.724-0.062-0.020-0.124-0.036-0.186-0.054-1.394-0.43-2.798-0.83-4.21-1.196-0.296-0.076-0.596-0.142-0.894-0.216-1.208-0.3-2.422-0.586-3.642-0.84-0.384-0.082-0.774-0.148-1.16-0.224-1.168-0.228-2.338-0.444-3.514-0.626-0.384-0.060-0.776-0.112-1.162-0.168-1.208-0.174-2.416-0.332-3.63-0.46-0.35-0.038-0.7-0.066-1.048-0.1-1.27-0.12-2.54-0.218-3.814-0.29-0.32-0.018-0.642-0.032-0.964-0.044-1.294-0.058-2.594-0.094-3.892-0.1-0.166 0-0.328-0.012-0.492-0.012-0.19 0-0.376 0.014-0.564 0.014-1.21 0.008-2.42 0.040-3.63 0.092-0.494 0.022-0.986 0.046-1.478 0.074-0.992 0.060-1.986 0.136-2.978 0.226-0.722 0.064-1.442 0.134-2.16 0.214-0.696 0.080-1.392 0.17-2.090 0.266-1.014 0.136-2.026 0.286-3.032 0.452-0.352 0.060-0.704 0.124-1.054 0.19-44.97 8.028-79.122 47.302-79.122 94.582 0 20.756 6.602 39.958 17.79 55.67l-264.58 458.26c-2.954-0.274-5.94-0.434-8.962-0.434-53.078 0-96.11 43.032-96.11 96.11 0 53.082 43.032 96.11 96.11 96.11 38.8 0 72.208-23.004 87.386-56.11l529.202-0.004c0.138 0.304 0.292 0.606 0.436 0.91 0.226 0.48 0.456 0.958 0.69 1.434 0.474 0.968 0.966 1.93 1.476 2.882 0.214 0.402 0.432 0.8 0.65 1.2 0.314 0.566 0.604 1.14 0.93 1.708 0.284 0.488 0.59 0.958 0.88 1.442 0.122 0.2 0.244 0.398 0.37 0.602 27.086 44.372 84.766 59.278 130.040 33.136 18.864-10.89 32.624-27.214 40.478-45.852 0.054-0.132 0.104-0.266 0.158-0.398 0.518-1.248 1.020-2.506 1.486-3.776zM238.414 744.282l264.542-458.204c0.424 0.042 0.85 0.064 1.276 0.098 0.668 0.056 1.334 0.112 2.004 0.152 0.652 0.040 1.306 0.066 1.96 0.092 1.122 0.046 2.244 0.076 3.368 0.084 0.146 0.002 0.292 0.012 0.438 0.012 0.168 0 0.334-0.012 0.502-0.014 1.436-0.004 2.874-0.040 4.31-0.108 0.088-0.006 0.176-0.010 0.262-0.014 1.376-0.070 2.75-0.168 4.124-0.296l264.596 458.298c-3.48 4.894-6.514 10.122-9.042 15.636h-529.226c-2.546-5.55-5.602-10.814-9.114-15.736z', + cpu: + 'M392.016 672.016h240.032c22.092 0 40-17.908 40-40v-240.032c0-22.092-17.908-40-40-40h-240.032c-22.092 0-40 17.908-40 40v240.032c0 22.092 17.908 40 40 40zM432.016 431.984h160.032v160.032h-160.032v-160.032zM864.032 424h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-143.968c0-22.092-17.908-40-40-40h-144v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-176v-72.012c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v72.016h-144c-22.092 0-40 17.908-40 40v143.968h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v176h-71.984c-22.094 0-40 17.908-40 40s17.91 40 40 40h71.984v144.030c0 22.092 17.908 40 40 40h144v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h176v71.954c0 22.094 17.906 40 40 40s40-17.91 40-40v-71.954h144c22.092 0 40-17.908 40-40v-144.030h71.98c22.094 0 40.004-17.906 40.004-40 0-22.092-17.906-40-40-40h-71.984v-176zM784.032 784.032h-143.692c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-127.382c-0.104 0-0.204-0.016-0.308-0.016s-0.206 0.016-0.308 0.016h-143.696v-544h544v544z', + memory: + 'M320.032 416.032v-152.968c0-22.094 17.91-40 40-40 22.094 0 40 17.91 40 40.004v152.964c0 22.090-17.906 40-40 40s-40-17.908-40-40zM512 456.032c22.094 0 40-17.91 40-40v-152.964c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v152.968c0 22.092 17.908 40 40 40zM664.032 456.032c22.094 0 40-17.91 40-40v-82.996c0-22.094-17.906-40.004-40-40.004-22.090 0-40 17.906-40 40v83c0 22.092 17.906 40 40 40zM864.018 316.616v603.418c0 0.004 0 0.004 0 0.004 0 6.798-1.71 13.198-4.704 18.808-0.044 0.084-0.078 0.172-0.124 0.254-0.524 0.976-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.312-0.282 0.46-7.188 10.638-19.36 17.634-33.168 17.634h-623.99c-22.090 0-40-17.908-40-40v-343.574c-0.002-0.142-0.022-0.282-0.022-0.426 0-0.142 0.020-0.282 0.022-0.426v-471.574c0-20.34 15.192-37.092 34.838-39.63 1.694-0.216 3.408-0.37 5.162-0.37l411.254 0.052c10.594-0.286 21.282 3.58 29.368 11.668l211.672 212.206c7.906 7.908 11.792 18.298 11.696 28.66zM240.026 144.034v391.998h543.99v-203.27l-188.252-188.728h-355.738zM784.016 880.032v-264h-543.99v264h543.99z', + database: + 'M895.95 221.364c-3.414-87.32-173.972-157.672-383.918-157.672s-380.504 70.352-383.918 157.672h-0.082v578.328c0 88.552 171.918 160.338 384 160.338s384-71.786 384-160.338v-578.328h-0.082zM798.412 430.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-92.9c70.29 37.478 179.654 61.566 302.5 61.566s232.21-24.088 302.5-61.566v92.9c-2.476 3.266-7.416 8.522-16.12 14.874zM814.532 514.464v93.24c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-93.24c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566zM225.652 209.146c15.6-11.386 37.69-22.346 63.88-31.696 60.984-21.77 140.002-33.758 222.498-33.758s161.514 11.988 222.498 33.758c26.192 9.348 48.282 20.308 63.882 31.696 8.704 6.352 13.646 11.608 16.12 14.874v0.026c-2.474 3.266-7.416 8.522-16.12 14.874-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.706-6.352-13.646-11.608-16.122-14.874v-0.026c2.476-3.268 7.418-8.524 16.122-14.874zM798.412 814.578c-15.6 11.386-37.69 22.346-63.882 31.696-60.984 21.77-140.002 33.758-222.498 33.758s-161.514-11.988-222.498-33.758c-26.192-9.348-48.282-20.308-63.88-31.696-8.714-6.36-13.66-11.62-16.13-14.886h0.010v-93.228c70.29 37.48 179.654 61.566 302.5 61.566s232.21-24.086 302.5-61.566v93.228h0.010c-2.474 3.266-7.42 8.526-16.132 14.886z', + power: + 'M320 118.3a45.7 45.7 0 0122.5 85.6 384.6 384.6 0 00-120.8 93.4A380.9 380.9 0 00128 548.6c0 102.5 39.9 199 112.4 271.5A381.5 381.5 0 00512 932.5c102.5 0 199-39.9 271.5-112.4a381.5 381.5 0 00112.4-271.5c0-98.1-36.5-190.6-103.1-262l-2-2-9.4-9.5a384.2 384.2 0 00-100-71.2 45.6 45.6 0 0139.6-82.2l.6.3h.2l.1.1h.1l2 1 4 2 1.9 1 3.5 1.9a480.6 480.6 0 0144.9 27l2 1.3v-.3.1a475.4 475.4 0 11-545.3 6.2l3.6-2.6v.1a471.4 471.4 0 0151.7-31.7l3.7-2 1.4-.7.3-.2 6.4-3.1.1-.1h.1l.7-.3c5.2-2.1 11-3.4 17-3.4zM511.8 0c25 0 45.3 20 45.7 45v421.3a45.7 45.7 0 01-91.4.7V45.7A45.7 45.7 0 01511.9 0z', + outbox: + 'M960.062 616v304c0 1.382-0.070 2.746-0.208 4.090-2.046 20.172-19.080 35.91-39.792 35.91h-816c-22.090 0-40-17.906-40-40v-304c0-22.090 17.91-40 40-40s40 17.91 40 40v264h736v-264c0-22.090 17.91-40 40-40s40 17.912 40 40zM664.732 200.168l-124.41-124.41c-0.014-0.014-0.024-0.028-0.038-0.042-3.57-3.57-7.664-6.284-12.018-8.222-5.316-2.368-11.028-3.54-16.742-3.47-0.14-0.002-0.276-0.020-0.414-0.020-13.552 0-25.512 6.756-32.748 17.072l-119.1 119.092c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l55.276-55.276v462.54c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-464.314l57.052 57.052c15.622 15.624 40.948 15.62 56.568 0 15.628-15.624 15.628-40.952 0.002-56.572z', + share: + 'M896.006 920c0 22.090-17.91 40-40 40h-688.006c-22.090 0-40-17.906-40-40v-549.922c-0.838-3.224-1.33-6.588-1.33-10.072 0-22.090 17.908-40.004 40-40.004h178.66c22.092 0.004 40 17.914 40 40.004 0 22.088-17.908 40-40 40h-137.33v479.996h607.998v-479.996h-138.658c-22.090 0-40-17.912-40-40 0-22.090 17.906-40.004 40-40.004h178.658c22.090 0 40 17.91 40 40v559.844c0 0.050 0.008 0.102 0.008 0.154zM665.622 200.168l-124.452-124.45c-8.042-8.042-18.65-11.912-29.186-11.674-1.612-0.034-3.222 0-4.828 0.16-0.558 0.054-1.098 0.16-1.648 0.238-0.742 0.104-1.484 0.192-2.218 0.338-0.656 0.13-1.29 0.31-1.934 0.472-0.622 0.154-1.244 0.292-1.86 0.476-0.64 0.196-1.258 0.436-1.886 0.66-0.602 0.216-1.208 0.414-1.802 0.66-0.598 0.248-1.17 0.54-1.754 0.814-0.598 0.282-1.202 0.546-1.788 0.86-0.578 0.312-1.13 0.664-1.694 1-0.552 0.332-1.116 0.644-1.654 1.006-0.67 0.448-1.3 0.942-1.942 1.426-0.394 0.302-0.806 0.576-1.196 0.894-1.046 0.858-2.052 1.768-3.008 2.726l-124.398 124.39c-15.622 15.62-15.618 40.948 0.002 56.57 15.622 15.62 40.95 15.62 56.568 0l56.164-56.166v439.426c0 22.094 17.912 40 40.002 40 22.092 0 40-17.91 40-40v-441.202l57.942 57.942c15.622 15.624 40.948 15.62 56.568 0 15.626-15.618 15.626-40.946 0.002-56.566z', + button: + 'M644.634 802.32c-4.558 5.434-10.254 9.328-16.446 11.672l0.008 0.024-45.628 16.606 27.54 75.66c7.554 20.756-3.148 43.71-23.906 51.266s-43.714-3.146-51.27-23.906l-27.54-75.656-47.63 17.29c-6.020 1.956-12.586 2.518-19.254 1.342-21.75-3.836-36.282-24.582-32.45-46.34l30.57-173.328c2.55-14.476 12.61-25.714 25.458-30.508 0.292-0.118 0.586-0.23 0.878-0.34 0.238-0.084 0.476-0.168 0.718-0.246 12.942-4.624 27.91-2.492 39.196 6.98l134.824 113.13c16.932 14.2 19.144 39.432 4.932 56.354zM960.002 664v-368.082c0-22.092-17.908-40-40-40h-816c-22.092 0-40 17.908-40 40l-0.292 368.238c0 22.092 17.908 40 40 40h240.292c22.092 0 40-17.908 40-40s-17.908-40-40-40h-200.292l0.292-288.238h736v288.082h-200c-22.092 0-40 17.908-40 40s17.908 40 40 40h240c22.092 0 40-17.908 40-40z', + form: + 'M948.362 178.828l-471.082 470.086c-0.24 0.25-0.45 0.52-0.698 0.77-7.82 7.82-18.070 11.722-28.32 11.712-10.25 0.010-20.504-3.892-28.324-11.712-0.262-0.262-0.48-0.546-0.734-0.812l-221.736-221.738c-15.624-15.622-15.624-40.95 0-56.566 15.618-15.622 40.946-15.624 56.57 0l194.224 194.222 443.53-442.528c15.622-15.618 40.95-15.618 56.57 0 15.62 15.62 15.62 40.946 0 56.566zM98.372 128.448c-18.926 0-34.266 15.342-34.266 34.268v699.032c0 18.926 15.34 34.266 34.266 34.266h699.032c18.926 0 34.266-15.34 34.266-34.266v-430.588c0 0 0.002-1.184 0.002-1.788 0-22.090-17.914-40-40.004-40s-40 17.91-40 40c0 0.288 0.002 386.64 0.002 386.64h-607.562v-607.564h600.002c22.090-0.002 40.002-17.906 40.002-40 0-22.090-17.914-40-40.004-40z', + check: + 'M948.598 199.75c-15.622-15.618-40.95-15.618-56.57 0l-535.644 535.644-224.060-224.062c-15.624-15.624-40.954-15.62-56.57 0-15.624 15.62-15.624 40.948 0 56.568l251.574 251.574c0.252 0.266 0.472 0.55 0.734 0.812 7.82 7.82 18.072 11.724 28.322 11.714 10.25 0.010 20.502-3.894 28.322-11.714 0.248-0.248 0.456-0.518 0.698-0.77l563.196-563.202c15.618-15.618 15.618-40.94-0.002-56.564z', + batchaccept: + 'M684 277L271 772l-1 1a40 40 0 0 1-56 5l-1-1L14 610a40 40 0 1 1 52-61l169 142 387-465a40 40 0 0 1 62 51zm340 234c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40z', + batchdeny: + 'M1024 512c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0-216c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zm0 432c0-22-18-40-40-40H808a40 40 0 0 0 0 80h176c22 0 40-18 40-40zM625 236c16 15 16 41 0 56L406 512l220 220a40 40 0 1 1-57 57L349 568 129 788a40 40 0 1 1-57-56l220-220L73 292a40 40 0 0 1 56-57l220 220 219-219c16-16 41-16 57 0z', + home: + 'M948.12 483.624l-407.814-407.754c-7.812-7.808-18.046-11.712-28.282-11.712-10.238 0-20.472 3.904-28.282 11.712l-407.92 407.86c-15.624 15.622-15.624 40.948-0.006 56.57s40.944 15.622 56.568 0.004l19.616-19.612v366.708c0 22.090 17.91 40 40 40h190.696c0.416 0.014 0.82 0.062 1.238 0.062 11.054 0 21.060-4.484 28.3-11.734 7.266-7.244 11.766-17.262 11.766-28.332 0-0.418-0.050-0.822-0.062-1.238v-263.204h176.060v263.934c0 22.090 17.91 40 40 40l191.876 0.124c2.292 0 4.524-0.236 6.708-0.608 0.45-0.074 0.91-0.116 1.356-0.206 0.21-0.044 0.414-0.116 0.628-0.162 17.906-3.972 31.308-19.924 31.308-39.026v-366.492l19.682 19.68c15.622 15.62 40.948 15.616 56.568-0.006s15.618-40.948-0.004-56.568zM791.876 448.272v398.71l-111.874-0.074v-263.876c0-0.020-0.002-0.042-0.002-0.062 0-0.006 0-0.014 0-0.022 0-22.090-17.91-40-40-40h-254.002c-0.556 0-1.1 0.060-1.65 0.084-0.14-0.002-0.274-0.022-0.414-0.022-22.090 0-40 17.91-40 40v264.382h-111.934v-399.392c0-2.286-0.234-4.512-0.604-6.694l280.626-280.584 280.514 280.472c-0.412 2.302-0.66 4.658-0.66 7.078z', + admin: + 'M919.596 847.534h-88.414v-467.716l88.75-0.044c13.688-0.132 26.958-7.25 34.294-19.96 11.044-19.13 4.49-43.596-14.642-54.64l-407.904-235.676c-0.44-0.254-0.894-0.45-1.34-0.684-0.542-0.29-1.084-0.578-1.638-0.84-0.696-0.328-1.4-0.62-2.108-0.904-0.478-0.194-0.954-0.388-1.44-0.56-0.78-0.282-1.564-0.524-2.352-0.754-0.442-0.126-0.878-0.256-1.324-0.37-0.808-0.206-1.618-0.376-2.43-0.528-0.468-0.088-0.934-0.174-1.404-0.246-0.768-0.116-1.534-0.204-2.302-0.274-0.554-0.052-1.108-0.096-1.664-0.124-0.672-0.034-1.34-0.044-2.012-0.044-0.67 0-1.338 0.012-2.010 0.044-0.556 0.030-1.11 0.072-1.664 0.124-0.77 0.070-1.536 0.158-2.302 0.274-0.468 0.072-0.938 0.158-1.402 0.246-0.814 0.152-1.624 0.322-2.432 0.528-0.444 0.114-0.882 0.242-1.322 0.37-0.79 0.23-1.574 0.472-2.356 0.754-0.484 0.172-0.958 0.368-1.438 0.56-0.708 0.286-1.41 0.576-2.11 0.904-0.554 0.262-1.094 0.55-1.636 0.84-0.446 0.234-0.9 0.43-1.34 0.684l-407.906 235.672c-19.128 11.044-25.686 35.51-14.64 54.64 7.34 12.71 20.606 19.828 34.292 19.96v0.044h89.842v467.716h-89.474c-22.090 0-40 17.91-40 40s17.91 40 40 40h128.276c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h183.602c0.402 0.012 0.794 0.060 1.2 0.060s0.796-0.048 1.2-0.060h313.154c22.098 0 40-17.91 40-40-0.006-22.090-17.914-39.996-40.006-39.996zM751.182 847.534h-105.94v-467.716h105.94v467.716zM252.93 299.816l258.736-149.486 258.738 149.486h-517.474zM565.242 379.816v467.716h-106v-467.716h106zM273.242 379.816h106v467.716h-106v-467.716z', + paragraph: + 'M728.032 96.032h-116.98c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-199.848c-0.026 0-0.050-0.004-0.076-0.004s-0.050 0.004-0.076 0.004h-31.924c-123.712 0-224 100.292-224 224 0 121.032 95.994 219.628 216 223.842v344.158c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h120v712c0 22.092 17.91 40 40 40 22.086 0 40-17.908 40-40v-712h77.056c22.094 0 40-17.91 40-40 0-22.092-17.91-40-40-40z', + basket: + 'M632.254 695.604v-112.016c-0.004-22.092 17.906-40.002 40-40.002 22.090 0.002 40 17.908 40 40.002l-0.004 112.018c0.004 22.088-17.906 39.996-39.996 39.998-22.094 0.002-40.004-17.904-40-40zM352.246 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM512.25 735.604c22.090-0.002 40-17.91 39.996-39.998l0.004-112.018c0-22.094-17.91-40-40-40.002-22.094 0-40.004 17.91-40 40.002v112.016c-0.004 22.096 17.906 40.002 40 40zM950.3 397.424c-7.596-8.686-18.574-13.67-30.114-13.67h-313.284c0.87 5.196 1.346 10.524 1.346 15.966 0 24.608-9.27 47.044-24.494 64.034h290.684l-47.318 351.376-629.908-0.030-47.502-351.346h291.034c-15.224-16.988-24.494-39.426-24.494-64.034 0-5.444 0.476-10.772 1.346-15.966h-313.66c-11.542 0-22.524 4.986-30.12 13.678-7.596 8.694-11.066 20.242-9.52 31.682l51.614 381.742 0.050 0.042c5.832 47.424 46.222 84.158 95.222 84.172l0.054 0.034 601.816-0.034c0.042 0 0.082 0.002 0.124 0.002 49.414 0 90.090-37.34 95.396-85.336l51.258-380.64c1.54-11.44-1.934-22.984-9.53-31.672zM805.492 105.34c-15.622-15.622-40.95-15.624-56.572 0.004l-230.684 230.684c-2.052-0.2-4.132-0.306-6.236-0.306-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64c0-2.652-0.18-5.262-0.494-7.83l229.986-229.98c15.622-15.624 15.616-40.95-0-56.572z', + credit: + 'M376.188 672.062h-112.124c-22.092 0-40-17.908-40-40s17.908-40 40-40h112.124c22.092 0 40 17.908 40 40s-17.908 40-40 40zM960 232.002v560c0 6.8-1.708 13.2-4.704 18.81-0.044 0.082-0.078 0.172-0.124 0.254-0.524 0.974-1.112 1.914-1.722 2.836-0.098 0.15-0.18 0.31-0.282 0.458-7.188 10.64-19.36 17.638-33.168 17.638h-816c-22.090 0-40-17.908-40-40v-559.998c0-20.34 15.192-37.092 34.838-39.628 1.694-0.218 3.408-0.372 5.162-0.372h816c1.754 0 3.468 0.152 5.162 0.372 19.646 2.536 34.838 19.288 34.838 39.63zM144 272.002v80.030h736v-80.030h-736zM880 751.998v-239.966h-736v239.966h736z', + shield: + 'M875.146 148.994c-0.064-0.040-0.116-0.094-0.184-0.132-92.714-52.39-221.036-84.83-362.846-84.83-138.512 0-270.346 34.356-362.51 84.618-0.606 0.33-1.138 0.658-1.608 0.986-11.954 6.918-20.016 19.81-20.016 34.614v451.4c0 12.7 5.938 23.996 15.166 31.32l340.538 281.676c6.568 6.434 14.918 10.168 23.564 11.122 0.16 0.024 0.32 0.050 0.48 0.066 0.838 0.082 1.676 0.114 2.518 0.14 0.496 0.020 0.994 0.058 1.492 0.058s0.996-0.040 1.492-0.058c0.842-0.032 1.68-0.058 2.518-0.14 0.16-0.016 0.32-0.042 0.48-0.066 8.646-0.958 16.996-4.688 23.564-11.122l339.36-280.718c10.326-7.23 17.094-19.2 17.094-32.762v-450.918c0.002-15.254-8.54-28.506-21.102-35.254zM207.984 208.212c36.292-18.168 77.668-32.854 123.356-43.722 57.062-13.576 117.884-20.458 180.778-20.458s123.714 6.882 180.778 20.458c30.186 7.182 58.474 16.040 84.674 26.456l-490.846 490.848-78.738-65.070v-408.512zM511.742 867.75l-163.078-134.77 467.586-467.584v350.69l-304.508 251.664z', + beaker: + 'M848.64 790.56l-208.638-361.374v-252.062h24c22.092 0 40-17.908 40-40s-17.908-40-40-40h-304.002c-22.092 0-40 17.908-40 40s17.908 40 40 40h24v252.066l-208.636 361.37c-44 76.208-8 138.564 80 138.564h513.278c87.998 0 123.998-62.354 79.998-138.564zM464 177.124h96.002l-0.070 273.376 63.872 110.628h-223.678c35.932-62.268 63.872-110.684 63.876-110.692v-273.312zM768.64 849.124h-513.278c-8.28 0-14.186-0.976-17.968-2 1.004-3.792 3.112-9.394 7.25-16.564 0 0 54.598-94.614 109.316-189.436l316.026-0.002 109.374 189.44c4.138 7.168 6.246 12.77 7.25 16.562-3.784 1.024-9.69 2-17.97 2z', + thumbsup: + 'M256.972 768.004c0-8.67-3.156-16.158-9.484-22.534-6.332-6.34-13.836-9.484-22.504-9.458-8.682 0-16.188 3.172-22.516 9.458-6.33 6.344-9.488 13.84-9.488 22.534 0 8.692 3.158 16.186 9.488 22.532 6.328 6.286 13.834 9.458 22.516 9.458 8.668 0.028 16.172-3.118 22.504-9.458 6.328-6.376 9.484-13.868 9.484-22.532zM832.948 480.010c0-17.004-6.478-31.908-19.468-44.734-13.014-12.82-27.834-19.25-44.512-19.276h-175.97c0-19.328 7.98-45.904 24.004-79.724 15.968-33.826 23.978-60.568 23.978-80.256 0-32.646-5.332-56.808-15.994-72.48-10.664-15.664-31.988-23.484-63.98-23.484-8.696 8.64-15.012 22.828-19.032 42.486-4.020 19.69-9.102 40.606-15.254 62.752-6.168 22.172-16.080 40.382-29.762 54.738-7.344 7.68-20.168 22.832-38.5 45.496-1.326 1.67-5.164 6.65-11.512 15.010-6.342 8.342-11.594 15.178-15.762 20.508-4.156 5.308-9.91 12.386-17.252 21.218-7.328 8.862-14 16.186-19.988 22.038-5.986 5.794-12.412 11.73-19.26 17.744-6.852 5.984-13.508 10.5-19.99 13.48-6.478 3.010-12.4 4.484-17.756 4.512h-15.982v320.010h15.982c4.332 0 9.596 0.492 15.774 1.504 6.168 1.012 11.676 2.080 16.488 3.258 4.812 1.144 11.154 2.98 19.002 5.466 7.862 2.512 13.702 4.424 17.502 5.74 3.812 1.31 9.732 3.422 17.756 6.238 8.026 2.842 12.866 4.586 14.506 5.272 70.324 24.334 127.304 36.504 170.996 36.504h60.482c64.006 0 96.024-27.836 96.024-83.478 0-8.664-0.848-18.016-2.514-27.996 10.004-5.334 17.936-14.084 23.758-26.276 5.824-12.172 8.724-24.416 8.778-36.746 0-12.366-3.008-23.844-9.024-34.51 17.664-16.682 26.524-36.496 26.524-59.496 0-8.308-1.696-17.554-5.032-27.72-3.336-10.202-7.492-18.104-12.468-23.762 10.636-0.328 19.55-8.15 26.714-23.486 7.192-15.34 10.744-28.82 10.744-40.496v-0.054zM896.984 479.516c0 29.638-8.204 56.816-24.5 81.506 2.98 10.994 4.484 22.476 4.484 34.482 0 25.674-6.344 49.68-19.004 71.99 1.012 7 1.506 14.164 1.506 21.488 0 33.688-10.008 63.354-29.968 89.026 0.326 46.32-13.834 82.904-42.518 109.756-28.682 26.848-66.522 40.246-113.496 40.246h-64.528c-31.99 0-63.542-3.746-94.742-11.268-31.168-7.492-67.246-18.402-108.23-32.758-38.662-13.312-61.656-19.956-68.984-19.956h-143.996c-17.664 0-32.742-6.292-45.252-18.784-12.508-12.5-18.756-27.588-18.756-45.254v-319.982c0-17.666 6.248-32.728 18.756-45.226 12.51-12.52 27.588-18.784 45.252-18.784h136.998c12.002-8.010 34.818-33.822 68.478-77.484 19.33-24.99 37.168-46.344 53.508-64.008 7.996-8.314 13.918-22.586 17.744-42.766 3.828-20.178 8.912-41.232 15.256-63.24 6.36-21.984 16.68-40.002 30.994-53.998 13.002-12.362 28.012-18.514 45.018-18.514 27.998 0 53.152 5.414 75.464 16.242 22.31 10.828 39.316 27.748 50.964 50.77 11.704 23.002 17.5 53.978 17.5 92.962 0 31.008-7.984 63-23.98 96.028h88.014c34.67 0 64.634 12.628 89.956 37.98 25.346 25.346 38.008 55.144 38.008 89.49l0.054 0.056z', + mirror: + 'M857 127.778h-688c-22.092 0-40 17.91-40 40v688c0 22.090 17.908 40 40 40h688c22.094 0 40-17.91 40-40v-688c0-22.092-17.906-40-40-40zM817 815.778h-608v-1.086l606.914-606.914h1.086v608z', + switchalt: + 'M923.946 63.418h-631.232c-20.268 0-36.7 16.432-36.7 36.7v155.286h-155.284c-20.268 0-36.7 16.432-36.7 36.7v631.23c0 20.268 16.43 36.7 36.7 36.7h631.23c20.272 0 36.7-16.432 36.7-36.7v-155.286h155.286c20.272 0 36.7-16.432 36.7-36.7v-631.23c-0.002-20.268-16.43-36.7-36.7-36.7zM688.66 880.032h-544.628v-544.628h111.984v395.946c0 20.268 16.43 36.7 36.7 36.7h395.944v111.982zM688.66 688.046h-352.644v-352.644h352.644v352.644zM880.644 688.046h-111.984v-395.946c0-20.268-16.428-36.7-36.7-36.7h-395.944v-111.984h544.628v544.63z', + commit: + 'M984.032 472h-186.808c-19.474-140.12-139.74-248-285.222-248s-265.748 107.88-285.222 248h-186.746c-22.092 0-40 17.912-40 40.002 0 22.092 17.91 40 40 40h186.746c19.476 140.122 139.74 247.998 285.222 247.998s265.746-107.876 285.222-247.998h186.808c22.092 0 40-17.91 40-40s-17.908-40.002-40-40.002zM512 720c-114.692 0-208-93.308-208-208s93.308-208 208-208 208 93.308 208 208-93.308 208-208 208z', + branch: + 'M861.968 312.032c0-66.168-53.832-120-120-120s-120 53.832-120 120c0 50.55 31.436 93.87 75.77 111.516-5.384 20.352-15.71 39.68-29.844 54.92-28.828 31.092-72.202 46.858-128.91 46.858-77.162 0-129.12 26.162-162.984 55.12V297.15c46.556-16.512 80-60.974 80-113.12 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-50.926-31.902-94.514-76.758-111.908 5.222-26.17 16.578-51.154 32.558-70.432 28.8-34.746 71.592-52.364 127.184-52.364 99.498 0 156.922-39.408 187.574-72.466 27.402-29.554 45.708-67.194 52.48-106.716 48.078-15.66 82.93-60.882 82.93-114.114zM336 144.032c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.944-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm405.968-528c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.942 40-40 40z', + merge: + 'M776.306 456.032c-51.602 0-95.696 32.744-112.612 78.542-69.674-6.072-141.482-31.012-197.386-69.306-46.266-31.69-100.392-85.728-111.792-168.92 45.4-17.12 77.79-60.998 77.79-112.314 0-66.168-53.832-120-120-120s-120 53.832-120 120c0 52.146 33.444 96.608 80 113.12v429.762c-46.556 16.512-80 60.974-80 113.12 0 66.168 53.832 120 120 120s120-53.832 120-120c0-52.146-33.444-96.608-80-113.12V471.444c19.622 21.888 42.618 41.898 68.792 59.828 68.422 46.868 156.64 77.042 241.646 83.462 16.14 47.23 60.932 81.3 113.56 81.3 66.168 0 120-53.832 120-120s-53.83-120.002-119.998-120.002zm-464-312c22.056 0 40 17.944 40 40s-17.944 40-40 40-40-17.944-40-40 17.942-40 40-40zm0 736c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40zm464-264c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z', + pullrequest: + 'M631 157c104 1 171 52 171 166v397a123 123 0 1 1-82 0V323c0-63-27-83-90-84h-24l22 23a41 41 0 1 1-58 58l-93-93a41 41 0 0 1 1-58l93-93a41 41 0 1 1 58 58l-23 23h25zM222 314a123 123 0 1 1 82 0v406a123 123 0 1 1-82 0V314zm41 564a41 41 0 1 0 0-82 41 41 0 0 0 0 82zm0-639a41 41 0 1 0 0-83 41 41 0 0 0 0 83zm498 639a41 41 0 1 0 0-82 41 41 0 0 0 0 82z', + chromatic: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zM368 452v284a144 144 0 00274 59c-10-4-20-8-29-14l-111-64c-6-3-10-10-10-16V523l-124-71zm454 89c-8 7-17 13-26 18L551 701l81 46 1 1a144 144 0 00189-207zm-493-89l-81 47h-1a143 143 0 00-52 196 144 144 0 00137 71c-2-10-3-21-3-32V452zm375-195l-12 1c2 10 3 21 3 32v128c0 7-4 13-10 17l-154 88v144l245-142 2-1a144 144 0 00-74-267zm-384 0c-51 0-99 28-125 72-28 49-25 109 7 154 8-7 17-13 26-18l111-64a20 20 0 0120 0l153 88 124-71-244-141-1-1c-22-12-46-19-71-19zm192-111c-57 0-107 33-130 83 10 4 19 8 29 14l245 141v-96c-2-79-66-142-144-142z', + twitter: + 'M960 233.114c-32.946 14.616-68.41 24.5-105.598 28.942 37.954-22.762 67.098-58.774 80.856-101.688-35.52 21.054-74.894 36.368-116.726 44.598-33.542-35.724-81.316-58.038-134.204-58.038-101.496 0-183.796 82.292-183.796 183.814 0 14.424 1.628 28.45 4.758 41.89-152.75-7.668-288.22-80.872-378.876-192.072-15.822 27.15-24.898 58.706-24.898 92.42 0 63.776 32.458 120.034 81.782 153.010-30.116-0.944-58.458-9.212-83.262-22.982-0.028 0.75-0.028 1.546-0.028 2.324 0 89.070 63.356 163.334 147.438 180.256-15.426 4.186-31.664 6.426-48.442 6.426-11.836 0-23.35-1.146-34.574-3.28 23.406 73.006 91.286 126.16 171.726 127.632-62.914 49.324-142.18 78.696-228.314 78.696-14.828 0-29.448-0.876-43.842-2.568 81.33 52.138 177.96 82.574 281.786 82.574 338.11 0 523-280.104 523-523.014 0-7.986-0.164-15.914-0.542-23.778 35.952-25.96 67.124-58.318 91.756-95.162z', + google: + 'M799.094 79.996c0 0-200.938 0-267.936 0-120.126 0-233.188 91.004-233.188 196.434 0 107.692 81.904 194.624 204.124 194.624 8.496 0 16.75-0.148 24.812-0.74-7.942 15.186-13.594 32.286-13.594 50.022 0 29.974 16.094 54.226 36.466 74.042-15.376 0-30.248 0.438-46.438 0.438-148.782 0.036-263.312 94.784-263.312 193.056 0 96.758 125.534 157.312 274.312 157.312 169.656 0 263.312-96.25 263.312-193.024 0-77.6-22.908-124.062-93.686-174.156-24.216-17.128-70.534-58.812-70.534-83.32 0-28.69 8.19-42.868 51.406-76.624 44.346-34.63 75.688-83.302 75.688-139.944 0-67.372-30-133.058-86.374-154.746h85l59.942-43.374zM701.504 735.438c2.092 8.992 3.276 18.226 3.276 27.624 0 78.226-50.374 139.304-194.934 139.304-102.874 0-177.124-65.078-177.124-143.304 0-76.622 92.122-140.434 194.934-139.32 24.004 0.254 46.376 4.136 66.69 10.702 55.812 38.834 95.874 60.808 107.158 104.994zM536.844 443.782c-69-2.094-134.624-77.212-146.564-167.876-11.874-90.664 34.378-160.030 103.442-157.97 68.996 2.060 134.594 74.818 146.53 165.432 11.906 90.696-34.408 162.508-103.408 160.414z', + gdrive: + 'M465.926 641.356l-149.328 258.708h494.074l149.328-258.708h-494.074zM917.704 567.988l-256.33-444.048h-298.686l256.356 444.048h298.66zM320.236 197.442l-256.236 443.914 149.36 258.708 256.23-443.914-149.354-258.708z', + youtube: + 'M704.010 511.988c0-12.332-5.038-21.358-15.042-26.992l-255.982-159.99c-10.344-6.666-21.178-6.998-32.51-1.008-10.988 5.984-16.492 15.312-16.492 28.002v320c0 12.69 5.504 22.018 16.492 28.002 5.332 2.678 10.516 3.996 15.506 3.996 6.668 0 12.334-1.644 17.004-4.98l255.982-160.014c10.004-5.69 15.042-14.684 15.042-26.992v-0.024zM960 511.988c0 31.99-0.164 56.98-0.488 75.032-0.334 17.99-1.754 40.738-4.27 68.25-2.516 27.504-6.262 52.058-11.27 73.742-5.332 24.338-16.84 44.85-34.504 61.496-17.64 16.63-38.306 26.308-61.96 28.988-73.992 8.342-185.824 12.526-335.508 12.526-149.668 0-261.5-4.184-335.5-12.526-23.662-2.656-44.414-12.302-62.242-28.988-17.834-16.678-29.412-37.182-34.744-61.496-4.672-21.684-8.258-46.238-10.756-73.742-2.508-27.512-3.928-50.26-4.254-68.25-0.342-18.050-0.504-43.042-0.504-75.032 0-31.998 0.162-57.010 0.504-75.008 0.326-18.022 1.746-40.768 4.254-68.28 2.498-27.474 6.262-52.082 11.252-73.744 5.34-24.336 16.842-44.842 34.504-61.496 17.648-16.654 38.324-26.332 61.986-29.010 74-8.312 185.832-12.472 335.5-12.472 149.684 0 261.516 4.16 335.508 12.472 23.654 2.678 44.406 12.356 62.232 29.010 17.826 16.678 29.422 37.16 34.73 61.496 4.702 21.662 8.256 46.27 10.772 73.744 2.516 27.512 3.936 50.258 4.27 68.28 0.324 17.998 0.488 43.010 0.488 75.008z', + facebook: + 'M582.52 960h-167.88v-448h-112v-154.396l112-0.052-0.166-90.948c-0.036-125.974 34.12-202.604 182.484-202.604h123.542v154.424h-77.19c-57.782 0-60.566 21.56-60.566 61.85l-0.218 77.278h138.854l-16.376 154.394-122.36 0.052-0.124 448.002z', + medium: + 'M0 0v1024h1024v-1024h-1024zM850.708 242.614l-54.918 52.655c-3.858 2.965-6.321 7.581-6.321 12.772 0 0.933 0.080 1.847 0.232 2.736l-0.014-0.095v386.883c-0.139 0.794-0.219 1.708-0.219 2.641 0 5.191 2.462 9.807 6.283 12.744l0.038 0.028 53.637 52.655v11.558h-269.774v-11.558l55.559-53.936c5.461-5.456 5.461-7.068 5.461-15.413v-312.719l-154.477 392.344h-20.874l-179.851-392.344v262.947c-0.209 1.465-0.329 3.156-0.329 4.875 0 9.848 3.924 18.78 10.293 25.317l-0.008-0.008 72.258 87.649v11.558h-204.895v-11.558l72.263-87.649c6.070-6.284 9.81-14.852 9.81-24.293 0-2.081-0.182-4.12-0.53-6.101l0.031 0.21v-304.044c0.086-0.804 0.135-1.737 0.135-2.682 0-7.844-3.389-14.896-8.782-19.773l-0.023-0.021-64.234-77.378v-11.558h199.438l154.157 338.083 135.53-338.083h190.123v11.558z', + graphql: + 'M576 849a85 85 0 0 0-125-2L253 733l1-3h517l2 5-197 114zM451 177l2 2-258 448-3-1V398a85 85 0 0 0 61-107l198-114zm321 114a85 85 0 0 0 61 107v228l-3 1-258-448 2-2 198 114zM254 689a85 85 0 0 0-24-42l259-447a86 86 0 0 0 47 0l259 448a85 85 0 0 0-24 41H254zm643-54c-7-4-15-7-23-9V398a86 86 0 1 0-82-142L595 142a85 85 0 1 0-165 0L233 256a85 85 0 1 0-82 142v228a85 85 0 1 0 82 142l197 114a85 85 0 1 0 164-2l196-114a86 86 0 1 0 107-131z', + redux: + 'M359.016 943.608c-23.82 5.948-47.642 8.322-71.512 8.322-88.208 0-168.084-36.982-207.444-96.534-52.432-79.882-70.296-249.182 102.538-374.356 3.586 19.078 10.746 45.292 15.492 60.834-22.656 16.652-58.39 50.064-81.046 95.324-32.19 63.184-28.61 126.404 9.54 184.798 26.194 39.304 67.926 63.176 121.564 70.34 65.598 8.332 131.154-3.582 194.332-36.94 92.998-48.898 155.014-107.282 195.49-187.162-10.702-10.75-17.818-26.248-19.074-44.15-1.168-36.942 27.45-67.922 64.388-69.132h2.418c35.73 0 65.55 28.61 66.714 64.384 1.206 35.73-24.986 65.546-59.548 69.132-65.6 134.686-181.254 225.312-333.852 255.14zM902.646 540.622c-90.59-106.072-224.11-164.488-376.708-164.488h-19.072c-10.744-21.444-33.402-35.752-58.388-35.752h-2.418c-36.944 1.186-65.548 32.192-64.392 69.13 1.216 35.774 30.99 64.394 66.81 64.394h2.328c26.242-1.208 48.894-17.892 58.434-40.542h21.45c90.624 0 176.46 26.234 253.968 77.482 59.55 39.36 102.49 90.576 126.356 152.596 20.24 50.052 19.074 98.952-2.42 140.64-33.356 63.228-89.37 97.794-163.292 97.794-47.69 0-92.998-14.33-116.822-25.082-13.118 11.958-36.984 31.028-53.64 42.944 51.226 23.87 103.7 36.94 153.762 36.94 114.446 0 199.070-63.132 231.268-126.362 34.562-69.13 32.188-188.326-57.224-289.694zM297.046 708.706c1.21 35.828 30.984 64.394 66.764 64.394h2.368c36.992-1.168 65.556-32.15 64.39-69.132-1.162-35.732-30.984-64.394-66.758-64.394h-2.376c-2.418 0-5.958 0-8.332 1.208-48.89-81.090-69.132-169.27-62.014-264.648 4.792-71.528 28.616-133.516 70.346-184.766 34.568-44.106 101.326-65.57 146.598-66.758 126.402-2.396 180.044 154.968 183.576 218.144 15.542 3.584 41.734 11.936 59.644 17.892-14.328-193.118-133.526-293.266-247.97-293.266-107.28 0-206.236 77.484-245.552 191.932-54.848 152.596-19.070 299.212 47.644 414.826-5.912 8.374-9.494 21.498-8.328 34.568z', + github: + 'M214.6 809.4A417.8 417.8 0 0191.4 512c0-112.3 43.8-218 123.2-297.4A417.8 417.8 0 01512 91.4c112.3 0 218 43.8 297.4 123.2A417.8 417.8 0 01932.6 512c0 112.3-43.8 218-123.2 297.4-49 49-108 84.3-172.2 104.3v-74.4c0-39.5-13.6-68.6-40.7-87.2a354 354 0 0091.9-19.6c15.8-5.6 30-12.2 42.6-19.9a177.8 177.8 0 0036.3-29.8 175 175 0 0029.1-41.7 228 228 0 0018.6-55.9c4.6-21.7 6.9-45.6 6.9-71.7 0-50.7-16.5-93.8-49.5-129.4 15-39.2 13.4-81.8-4.9-127.9l-12.2-1.4c-8.5-1-23.8 2.6-45.8 10.8-22 8.1-46.8 21.5-74.3 40.1a450.9 450.9 0 00-121-16.1 442 442 0 00-120.5 16.1 419.6 419.6 0 00-49.3-29.1c-15.5-7.7-27.9-13-37.2-15.7a127.6 127.6 0 00-41.4-5.6c-2.3.3-4 .6-4.9 1-18.3 46.3-20 89-4.9 127.8a183.5 183.5 0 00-49.5 129.4c0 26.1 2.3 50 6.9 71.7a228.3 228.3 0 0018.6 56 175 175 0 0029.1 41.6 177.9 177.9 0 0036.3 29.8 223.4 223.4 0 0042.6 19.9A353.2 353.2 0 00432 752c-26.8 18.3-40.2 47.3-40.2 87.2v75.9a418.4 418.4 0 01-177-105.8M512 0a512 512 0 100 1024A512 512 0 00512 0', + bitbucket: + 'M362.3 395l53 276.5h195.4l34-198.4h283l-74.4 457a30 30 0 01-29.7 25.3H210.7a41 41 0 01-40-34.2l-127.6-775a30 30 0 0130-34.9l877.8.2a30 30 0 0130 34.8L940.5 395H362.3z', + gitlab: + 'M186.9 75a18.7 18.7 0 0135.6 0l108.8 333.4h361.4L512 961.8 331.3 408.4H78.1zM78.1 408.5L512 961.8 36.8 618.2a37.1 37.1 0 01-13.6-41.6L78 408.4zm867.8 0l55 168.2c5 15.3-.5 32.1-13.7 41.6L512 961.8l434-553.4zM837.1 75l108.8 333.3H692.7L801.5 75a18.7 18.7 0 0135.6 0z', + azuredevops: + 'M0,378.6 L95.8,252 L454.4,106.2 L454.4,1 L768.8,231 L126.6,355.8 L126.6,706.8 L0,670.2 L0,378.6 Z M1024,188.8 L1024,814 L778.6,1023 L381.8,892.6 L381.8,1023 L126.6,706.6 L769,783.2 L769,231 L1024,188.8 Z', + discord: + 'M371 147c-14 0-126 3-245 91 0 0-126 227-126 507 0 0 74 126 268 132l58-71c-111-34-153-103-153-103l24 15 4 2 8 4a668 668 0 0 0 420 68 629 629 0 0 0 228-89s-44 71-159 103l58 71c194-7 268-133 268-132 0-280-126-507-126-507-126-94-246-91-246-91l-12 14a576 576 0 0 1 218 110 729 729 0 0 0-441-81l-15 1c-31 4-105 14-199 56-33 14-52 24-52 24s72-69 230-114l-9-10h-1zm-23 323c50 0 91 43 90 97 0 53-40 96-90 96-49 0-89-43-89-96 0-54 39-97 89-97zm321 0c49 0 89 43 89 97 0 53-39 96-89 96s-90-43-90-96c0-54 40-97 90-97z', + contrast: + 'M368 713h79l266-266v-79L368 713zm192 0h153V560L560 713zm98-402h-79L311 579v79l347-347zm-192 0H311v155l155-155zm467 402V91H311v128h452c23 0 42 19 42 42v452h128zM713 933V805H261c-23 0-42-19-42-42V311H91v622h622zM982 0c23 0 42 19 42 42v721c0 23-19 42-42 42H805v177c0 23-19 42-42 42H42c-23 0-42-19-42-42V261c0-23 19-42 42-42h177V42c0-23 19-42 42-42h721z', + unfold: + 'M512 645l8 1c21 4 37 22 37 44v181l52-52 6-6a45 45 0 0 1 58 69l-129 129-7 5a45 45 0 0 1-57-5L351 882l-5-6a45 45 0 0 1 5-57l7-6c17-12 41-10 57 6l52 52V690l1-8c4-21 22-37 44-37zM337 275a45 45 0 1 1 0 90H229l91 102h382l91-102H685a45 45 0 1 1 0-90h208c39 0 59 46 34 75L782 512l145 162c25 29 5 75-34 75H685a45 45 0 1 1 0-90h108l-91-102H320l-91 102h108a45 45 0 1 1 0 90H129c-38 0-59-46-33-75l144-162L96 350c-24-27-8-69 26-74l7-1h208zM537 8l7 6 129 129a45 45 0 0 1-58 68l-6-5-52-52v181c0 22-16 40-37 44h-8c-22 0-40-15-44-36l-1-8V153l-52 53a45 45 0 0 1-57 5l-7-5a45 45 0 0 1-5-57l5-6L480 14c16-16 40-18 57-6z', + sharealt: + 'M130 85h332a45 45 0 0 1 8 89l-8 1H175v674h674V557a45 45 0 0 1 89-8l1 8v337c0 22-16 40-37 44l-8 1H130c-22 0-40-16-44-37l-1-8V130c0-22 16-40 37-44l8-1h332-332zm555 0h210l5 1-6-1a45 45 0 0 1 32 13l-5-4 3 3 2 1a46 46 0 0 1 12 24v2l1 5v209a45 45 0 0 1-89 8l-1-8V238L544 544a45 45 0 0 1-57 5l-7-5a45 45 0 0 1 0-64l306-305H685a45 45 0 0 1-8-89l8-1h209-209z', + accessibility: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm0 89.6a422.4 422.4 0 100 844.8 422.4 422.4 0 000-844.8zm262.2 250a40.9 40.9 0 01-27.5 49.3l-169.1 50.7c-8.2 2.7-15.1 11-13.7 20.5 1.3 27.4 1.5 76.5 7 98.4 12.9 59 82.4 214.4 91 233.6a56 56 0 014.9 19 40 40 0 01-40 40c-18 0-30.3-12.7-38.2-28.4A34096 34096 0 01510.9 664l-77.7 165.7-1.3 2.1a40 40 0 01-69.3-39.7c8.6-19 78-174.5 90.8-233.6 5.5-21.9 6-71 7.3-98.4a21 21 0 00-13.7-20.5l-169.1-50.7a40.7 40.7 0 01-27.5-50.7c6.9-20.5 30.2-30.1 50.9-24.6 0 0 154.6 49.3 209.6 49.3s213.8-50.7 213.8-50.7c20.6-5.5 44 6.8 49.5 27.4zm-264-171.2a76.7 76.7 0 110 153.4c-42.6 0-77-34.2-77-76.7 0-41 34.4-76.7 77-76.7z', + accessibilityalt: + 'M512 0a512 512 0 110 1024A512 512 0 01512 0zm262.2 339.6c-5.5-20.6-28.9-32.9-49.5-27.4 0 0-158.8 50.7-213.8 50.7s-209.6-49.3-209.6-49.3c-20.7-5.5-44 4-51 24.6A40.7 40.7 0 00278 389l169 50.7a21 21 0 0113.8 20.5c-1.3 27.4-1.8 76.5-7.3 98.4-12.9 59.1-82.2 214.5-90.8 233.6a40 40 0 1070.6 37.5L511 664a34096 34096 0 0077.7 158.7c7.9 15.7 20.2 28.4 38.2 28.4a40 40 0 0040-40 56 56 0 00-4.8-19c-8.7-19.2-78.2-174.5-91.1-233.6-5.5-21.9-5.7-71-7-98.4-1.4-9.6 5.5-17.8 13.7-20.5l169.1-50.7a40.9 40.9 0 0027.5-49.3zm-264-171.2c-42.6 0-77 35.6-77 76.7a76.7 76.7 0 0077 76.7 76.7 76.7 0 100-153.4z', + markup: + 'M1010.6 479.7L736.4 205.4a45.7 45.7 0 10-64.7 64.6l242 242L671.7 754a45.7 45.7 0 1064.7 64.6l274.1-274.2a45.6 45.6 0 000-64.6M0 511.9c0-11.7 4.5-23.4 13.4-32.3l274.1-274.2a45.7 45.7 0 1164.7 64.6L110.4 512l241.9 241.9a45.7 45.7 0 01-64.7 64.6L13.4 544.2C4.4 535.3 0 523.6 0 512', + outline: + 'M180.1 714.3V844h129.6v94.8h-180c-24.2 0-44-19.5-44.4-43.7V714.3h94.8zM619.3 844v94.8H404.7v-94.8h214.6zm319.4-129.6v180c0 24.2-19.5 44-43.7 44.4H714.3v-94.8H844V714.3h94.8zm0-309.6v214.6h-94.8V404.7h94.8zm-758.6 0v214.6H85.3V404.7h94.8zm331.9 34a73.2 73.2 0 110 146.4 73.2 73.2 0 010-146.3zM894.2 85.4c24.3 0 44 19.5 44.5 43.7V309.7h-94.8V180H714.3V85.3h180zm-584.5 0v94.8H180v129.6H85.3v-180c0-24.2 19.5-44 43.7-44.4H309.7zm309.6 0v94.8H404.7V85.3h214.6z', + verified: + 'M719 66l30 56c12 23 35 40 61 44l62 11c45 8 76 51 70 96l-9 63c-4 26 5 52 23 71l44 46c32 33 32 85 0 118l-44 46a85 85 0 00-23 71l9 63c6 45-25 88-70 96l-62 11c-26 4-49 21-61 44l-30 56a85 85 0 01-113 36l-57-27a85 85 0 00-74 0l-57 27c-42 21-92 4-113-36l-30-56a85 85 0 00-61-44l-62-11c-45-8-76-51-70-96l9-63c4-26-5-52-23-71l-44-46a85 85 0 010-118l44-46c18-19 27-45 23-71l-9-63c-6-45 25-88 70-96l62-11c26-4 49-21 61-44l30-56c21-40 71-57 113-36l57 27c23 12 51 12 74 0l57-27c42-21 92-4 113 36zm70 258a46 46 0 00-59 5L437 622 294 480l-6-5a46 46 0 00-59 69l175 175 6 5c18 13 43 11 59-5l326-325 4-6c13-18 12-43-4-59z', + comment: + 'M936 85l6 1c22 3 39 21 39 44v709c0 8-2 15-5 21l-2 4c-9 12-23 20-38 20H427l-131 127c-9 9-21 13-34 13-25 0-46-20-46-45v-95H88c-25 0-45-20-45-45V130a45 45 0 0145-45zm-46 89H134v620h756V174zM768 544c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44zm0-208c25 0 46 20 46 44 0 25-21 45-46 45H256c-25 0-46-20-46-45 0-24 21-44 46-44z', + commentadd: + 'M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zm-379 97c22 0 40 18 40 40v134h132a40 40 0 010 81H553v132a40 40 0 11-80 0V527H341a40 40 0 110-81h132V312c0-22 18-40 40-40z', + requestchange: + 'M937 85l6 1c23 3 40 21 40 44v711c0 7-2 14-5 21l-3 4c-8 12-22 19-38 19H428l-131 128c-9 9-22 13-35 13-25 0-45-20-45-45v-96H89c-26 0-46-20-46-44V130a45 45 0 0146-45zm-45 90H134v621h758V175zM585 310c18-18 47-18 65 0l143 144c18 17 18 46 0 64L650 661a46 46 0 01-65 0 46 46 0 010-65l65-64H266a46 46 0 110-92h384l-65-65a46 46 0 010-65z', + comments: + 'M978.3 92.2a45 45 0 0145.7 44.6v535.6a45.2 45.2 0 01-45.7 44.6h-125v122c0 7.7-2 14.8-5.5 21.3l-2.3 3.7a46.1 46.1 0 01-38 19.6H298.8L168 1011a47 47 0 01-34.3 13.1c-25.2 0-45.7-20-45.7-44.6v-95.8H45.7c-25.2 0-45.7-20-45.7-44.5V303.4A45 45 0 0145.7 259h125v-122a45 45 0 0139.8-44.3c1.3-.1 257.2-.3 767.8-.4zM761.9 348H91.4v446.5H762V348zm-125 264c25.3 0 45.8 20 45.8 44.6A45.2 45.2 0 01637 701H216.4c-25.3 0-45.7-20-45.7-44.5a45.2 45.2 0 0145.7-44.6H637zm295.7-430.7H262V259h505.1l46.3.4a45 45 0 0139.8 44.2v324.3h79.3V181.3zM637 441.3c25.2 0 45.7 20 45.7 44.6a45.2 45.2 0 01-45.7 44.6H216.4c-25.3 0-45.7-20-45.7-44.6a45.2 45.2 0 0145.7-44.5H637z', + ruler: + 'M83 110c-22 0-40 18-40 40v176a40 40 0 0080 0v-49h778v49a40 40 0 0080 0V150a40 40 0 10-80 0v49H123v-49c0-22-18-40-40-40zm40 458v266h778V568h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63v46a40 40 0 11-80 0v-46h-63v115a40 40 0 11-80 0V568h-63zm103-80h691c36 0 64 28 64 64v298c0 36-28 64-64 64H107c-36 0-64-28-64-64V552c0-36 28-64 64-64h119z', + }; + var Svg = esm.styled.svg({ shapeRendering: 'inherit', transform: 'translate3d(0,0,0)' }, function (_ref) { + return _ref.inline ? { display: 'inline-block' } : { display: 'block' }; + }); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + Svg.displayName = 'Svg'; + var Path = esm.styled.path({ fill: 'currentColor' }), + Icons = react.memo(function (_ref) { + var icon = _ref.icon, + symbol = _ref.symbol, + props = _objectWithoutProperties(_ref, ['icon', 'symbol']); + return react.createElement( + Svg, + _extends({ viewBox: '0 0 1024 1024' }, props), + symbol + ? react.createElement('use', { xlinkHref: '#icon--'.concat(symbol) }) + : react.createElement(Path, { d: icon_icons[icon] }), + ); + }), + Symbols = react.memo(function (_ref2) { + var _ref2$icons = _ref2.icons, + keys = void 0 === _ref2$icons ? Object.keys(icon_icons) : _ref2$icons; + return react.createElement( + 'svg', + { + xmlns: 'http://www.w3.org/2000/svg', + style: { position: 'absolute', width: 0, height: 0 }, + 'data-chromatic': 'ignore', + }, + keys.map(function (key) { + return react.createElement( + 'symbol', + { id: 'icon--'.concat(key), key }, + react.createElement(Path, { d: icon_icons[key] }), + ); + }), + ); + }); + }, + 24926: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + Badge: () => _Badge_Badge__WEBPACK_IMPORTED_MODULE_4__.C, + Link: () => _typography_link_link__WEBPACK_IMPORTED_MODULE_5__.r, + DocumentWrapper: () => _typography_DocumentWrapper__WEBPACK_IMPORTED_MODULE_6__.Z, + SyntaxHighlighter: () => _syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_7__.d, + ActionBar: () => _ActionBar_ActionBar__WEBPACK_IMPORTED_MODULE_8__.o, + Spaced: () => _spaced_Spaced__WEBPACK_IMPORTED_MODULE_9__.q, + Placeholder: () => _placeholder_placeholder__WEBPACK_IMPORTED_MODULE_10__.V, + ScrollArea: () => _ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_11__.x, + Zoom: () => _Zoom_Zoom__WEBPACK_IMPORTED_MODULE_12__.L, + Button: () => _Button_Button__WEBPACK_IMPORTED_MODULE_13__.z, + Form: () => _form_index__WEBPACK_IMPORTED_MODULE_14__.l, + WithTooltip: () => _tooltip_lazy_WithTooltip__WEBPACK_IMPORTED_MODULE_15__.R, + WithTooltipPure: () => _tooltip_lazy_WithTooltip__WEBPACK_IMPORTED_MODULE_15__.D, + TooltipMessage: () => _tooltip_TooltipMessage__WEBPACK_IMPORTED_MODULE_16__.X, + TooltipNote: () => _tooltip_TooltipNote__WEBPACK_IMPORTED_MODULE_17__.g, + TooltipLinkList: () => _tooltip_TooltipLinkList__WEBPACK_IMPORTED_MODULE_18__.$, + Tabs: () => _tabs_tabs__WEBPACK_IMPORTED_MODULE_19__.mQ, + TabsState: () => _tabs_tabs__WEBPACK_IMPORTED_MODULE_19__.JG, + TabBar: () => _tabs_tabs__WEBPACK_IMPORTED_MODULE_19__.nj, + TabWrapper: () => _tabs_tabs__WEBPACK_IMPORTED_MODULE_19__.UE, + IconButton: () => _bar_button__WEBPACK_IMPORTED_MODULE_20__.hU, + TabButton: () => _bar_button__WEBPACK_IMPORTED_MODULE_20__.Y6, + Separator: () => _bar_separator__WEBPACK_IMPORTED_MODULE_21__.Z, + interleaveSeparators: () => _bar_separator__WEBPACK_IMPORTED_MODULE_21__.f, + Bar: () => _bar_bar__WEBPACK_IMPORTED_MODULE_22__.$, + FlexBar: () => _bar_bar__WEBPACK_IMPORTED_MODULE_22__.j, + AddonPanel: () => _addon_panel_addon_panel__WEBPACK_IMPORTED_MODULE_23__.g, + Icons: () => _icon_icon__WEBPACK_IMPORTED_MODULE_24__.P, + Symbols: () => _icon_icon__WEBPACK_IMPORTED_MODULE_24__.v, + StorybookLogo: () => _brand_StorybookLogo__WEBPACK_IMPORTED_MODULE_25__.G, + StorybookIcon: () => _brand_StorybookIcon__WEBPACK_IMPORTED_MODULE_26__.v, + Loader: () => _Loader_Loader__WEBPACK_IMPORTED_MODULE_29__.a, + A: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.A, + Blockquote: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.V6, + Code: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.EK, + DL: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.DL, + Div: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.ZC, + H1: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H1, + H2: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H2, + H3: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H3, + H4: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H4, + H5: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H5, + H6: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.H6, + HR: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.HR, + Img: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.Ei, + LI: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.LI, + OL: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.OL, + P: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.P, + Pre: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.SU, + ResetWrapper: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.i9, + Span: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.Dr, + TT: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.TT, + Table: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.iA, + UL: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.UL, + components: () => _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.wx, + resetComponents: () => resetComponents, + }); + __webpack_require__(1939), __webpack_require__(34769), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784), + _typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(4494), + _Badge_Badge__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36400), + _typography_link_link__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13609), + _typography_DocumentWrapper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(96786), + _syntaxhighlighter_lazy_syntaxhighlighter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(35007), + _ActionBar_ActionBar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97408), + _spaced_Spaced__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(39847), + _placeholder_placeholder__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(92678), + _ScrollArea_ScrollArea__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(54214), + _Zoom_Zoom__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(7057), + _Button_Button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(81899), + _form_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44476), + _tooltip_lazy_WithTooltip__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(35881), + _tooltip_TooltipMessage__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(41256), + _tooltip_TooltipNote__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(61174), + _tooltip_TooltipLinkList__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(65662), + _tabs_tabs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(58929), + _bar_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(82269), + _bar_separator__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(91315), + _bar_bar__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(37241), + _addon_panel_addon_panel__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(31945), + _icon_icon__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(35016), + _brand_StorybookLogo__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(65810), + _brand_StorybookIcon__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(92796), + _blocks__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(79092), + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _blocks__WEBPACK_IMPORTED_MODULE_27__) + [ + 'default', + 'Badge', + 'Link', + 'DocumentWrapper', + 'SyntaxHighlighter', + 'ActionBar', + 'Spaced', + 'Placeholder', + 'ScrollArea', + 'Zoom', + 'Button', + 'Form', + 'WithTooltip', + 'WithTooltipPure', + 'TooltipMessage', + 'TooltipNote', + 'TooltipLinkList', + 'Tabs', + 'TabsState', + 'TabBar', + 'TabWrapper', + 'IconButton', + 'TabButton', + 'Separator', + 'interleaveSeparators', + 'Bar', + 'FlexBar', + 'AddonPanel', + 'Icons', + 'Symbols', + 'StorybookLogo', + 'StorybookIcon', + 'Loader', + 'components', + 'resetComponents', + ].indexOf(__WEBPACK_IMPORT_KEY__) < 0 && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _blocks__WEBPACK_IMPORTED_MODULE_27__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _controls__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(53933); + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _controls__WEBPACK_IMPORTED_MODULE_28__) + [ + 'default', + 'Badge', + 'Link', + 'DocumentWrapper', + 'SyntaxHighlighter', + 'ActionBar', + 'Spaced', + 'Placeholder', + 'ScrollArea', + 'Zoom', + 'Button', + 'Form', + 'WithTooltip', + 'WithTooltipPure', + 'TooltipMessage', + 'TooltipNote', + 'TooltipLinkList', + 'Tabs', + 'TabsState', + 'TabBar', + 'TabWrapper', + 'IconButton', + 'TabButton', + 'Separator', + 'interleaveSeparators', + 'Bar', + 'FlexBar', + 'AddonPanel', + 'Icons', + 'Symbols', + 'StorybookLogo', + 'StorybookIcon', + 'Loader', + 'components', + 'resetComponents', + 'Description', + 'DocsContent', + 'DocsPageWrapper', + 'DocsWrapper', + 'Subtitle', + 'Title', + 'Preview', + 'PreviewSkeleton', + 'Source', + 'SourceError', + 'StyledSyntaxHighlighter', + 'Story', + 'StoryError', + 'StorySkeleton', + 'IFrame', + 'Typeset', + 'ColorItem', + 'ColorPalette', + 'IconGallery', + 'IconItem', + ].indexOf(__WEBPACK_IMPORT_KEY__) < 0 && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _controls__WEBPACK_IMPORTED_MODULE_28__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _Loader_Loader__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(54177), + resetComponents = {}; + Object.keys(_typography_DocumentFormatting__WEBPACK_IMPORTED_MODULE_30__.wx).forEach(function (key) { + resetComponents[key] = (0, react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)(function (props, ref) { + return (0, react__WEBPACK_IMPORTED_MODULE_3__.createElement)(key, Object.assign({}, props, { ref })); + }); + }); + }, + 92678: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { V: () => Placeholder }); + __webpack_require__(35744), + __webpack_require__(34769), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(32501), + __webpack_require__(26936), + __webpack_require__(27233); + var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(77439); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Title = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div(function (_ref) { + return { fontWeight: _ref.theme.typography.weight.bold }; + }), + Desc = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div(), + Message = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + padding: 30, + textAlign: 'center', + color: theme.color.defaultText, + fontSize: theme.typography.size.s2 - 1, + }; + }), + Placeholder = function Placeholder(_ref3) { + var children = _ref3.children, + props = _objectWithoutProperties(_ref3, ['children']), + _Children$toArray2 = _slicedToArray(react__WEBPACK_IMPORTED_MODULE_12__.Children.toArray(children), 2), + title = _Children$toArray2[0], + desc = _Children$toArray2[1]; + return react__WEBPACK_IMPORTED_MODULE_12__.createElement( + Message, + props, + react__WEBPACK_IMPORTED_MODULE_12__.createElement(Title, null, title), + desc && react__WEBPACK_IMPORTED_MODULE_12__.createElement(Desc, null, desc), + ); + }; + Placeholder.displayName = 'Placeholder'; + }, + 39847: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { q: () => Spaced }); + __webpack_require__(71245), __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77439); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var Container = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div( + function (_ref) { + var theme = _ref.theme, + col = _ref.col, + _ref$row = _ref.row, + row = void 0 === _ref$row ? 1 : _ref$row; + return col + ? _defineProperty( + { + display: 'inline-block', + verticalAlign: 'inherit', + '& > *': { marginLeft: col * theme.layoutMargin, verticalAlign: 'inherit' }, + }, + '& > *:first-child'.concat(_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.ignoreSsrWarning), + { marginLeft: 0 }, + ) + : _defineProperty( + { '& > *': { marginTop: row * theme.layoutMargin } }, + '& > *:first-child'.concat(_storybook_theming__WEBPACK_IMPORTED_MODULE_5__.ignoreSsrWarning), + { marginTop: 0 }, + ); + }, + function (_ref4) { + var theme = _ref4.theme, + outer = _ref4.outer, + col = _ref4.col, + row = _ref4.row; + switch (!0) { + case !(!outer || !col): + return { marginLeft: outer * theme.layoutMargin, marginRight: outer * theme.layoutMargin }; + case !(!outer || !row): + return { marginTop: outer * theme.layoutMargin, marginBottom: outer * theme.layoutMargin }; + default: + return {}; + } + }, + ), + Spaced = function Spaced(_ref5) { + var col = _ref5.col, + row = _ref5.row, + outer = _ref5.outer, + children = _ref5.children, + rest = _objectWithoutProperties(_ref5, ['col', 'row', 'outer', 'children']), + outerAmount = (function toNumber(input) { + return 'number' == typeof input ? input : Number(input); + })('number' != typeof outer && outer ? col || row : outer); + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Container, + _extends({ col, row, outer: outerAmount }, rest), + children, + ); + }; + Spaced.displayName = 'Spaced'; + }, + 35007: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { d: () => SyntaxHighlighter }); + __webpack_require__(73439), __webpack_require__(58188); + var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2784), + LazySyntaxHighlighter = react__WEBPACK_IMPORTED_MODULE_2__.lazy(function () { + return __webpack_require__.e(418).then(__webpack_require__.bind(__webpack_require__, 4748)); + }), + SyntaxHighlighter = function SyntaxHighlighter(props) { + return react__WEBPACK_IMPORTED_MODULE_2__.createElement( + react__WEBPACK_IMPORTED_MODULE_2__.Suspense, + { fallback: react__WEBPACK_IMPORTED_MODULE_2__.createElement('div', null) }, + react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazySyntaxHighlighter, props), + ); + }; + SyntaxHighlighter.displayName = 'SyntaxHighlighter'; + }, + 58929: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + nj: () => TabBar, + UE: () => TabWrapper, + mQ: () => Tabs, + JG: () => TabsState, + }); + __webpack_require__(18178), + __webpack_require__(43450), + __webpack_require__(96928), + __webpack_require__(61229), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886); + var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(77439), + _storybook_csf__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(95876), + _placeholder_placeholder__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(92678), + _bar_bar__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37241), + _bar_button__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(82269); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var Wrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div( + function (_ref) { + var theme = _ref.theme; + return _ref.bordered + ? { + backgroundClip: 'padding-box', + border: '1px solid '.concat(theme.appBorderColor), + borderRadius: theme.appBorderRadius, + overflow: 'hidden', + boxSizing: 'border-box', + } + : {}; + }, + function (_ref2) { + return _ref2.absolute + ? { width: '100%', height: '100%', boxSizing: 'border-box', display: 'flex', flexDirection: 'column' } + : { display: 'block' }; + }, + ), + TabBar = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div({ + overflow: 'hidden', + '&:first-of-type': { marginLeft: -3 }, + }), + Content = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div( + { display: 'block', position: 'relative' }, + function (_ref3) { + var theme = _ref3.theme; + return { fontSize: theme.typography.size.s2 - 1, background: theme.background.content }; + }, + function (_ref4) { + var bordered = _ref4.bordered, + theme = _ref4.theme; + return bordered + ? { + borderRadius: '0 0 '.concat(theme.appBorderRadius - 1, 'px ').concat(theme.appBorderRadius - 1, 'px'), + } + : {}; + }, + function (_ref5) { + var absolute = _ref5.absolute, + bordered = _ref5.bordered; + return absolute + ? (function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })( + { + height: 'calc(100% - '.concat(bordered ? 42 : 40, 'px)'), + position: 'absolute', + left: 0 + (bordered ? 1 : 0), + right: 0 + (bordered ? 1 : 0), + bottom: 0 + (bordered ? 1 : 0), + top: 40 + (bordered ? 1 : 0), + overflow: 'auto', + }, + '& > *:first-child'.concat( + '/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */', + ), + { + position: 'absolute', + left: 0 + (bordered ? 1 : 0), + right: 0 + (bordered ? 1 : 0), + bottom: 0 + (bordered ? 1 : 0), + top: 0 + (bordered ? 1 : 0), + height: 'calc(100% - '.concat(bordered ? 2 : 0, 'px)'), + overflow: 'auto', + }, + ) + : {}; + }, + ), + VisuallyHidden = _storybook_theming__WEBPACK_IMPORTED_MODULE_13__.styled.div(function (_ref7) { + return _ref7.active ? { display: 'block' } : { display: 'none' }; + }), + TabWrapper = function TabWrapper(_ref8) { + var active = _ref8.active, + render = _ref8.render, + children = _ref8.children; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + VisuallyHidden, + { active }, + render ? render() : children, + ); + }; + TabWrapper.displayName = 'TabWrapper'; + var Tabs = (0, react__WEBPACK_IMPORTED_MODULE_11__.memo)(function (_ref11) { + var children = _ref11.children, + selected = _ref11.selected, + actions = _ref11.actions, + absolute = _ref11.absolute, + bordered = _ref11.bordered, + tools = _ref11.tools, + backgroundColor = _ref11.backgroundColor, + htmlId = _ref11.id, + list = (function childrenToList(children, selected) { + return react__WEBPACK_IMPORTED_MODULE_11__.Children.toArray(children).map(function (_ref9, index) { + var _ref9$props = _ref9.props, + title = _ref9$props.title, + id = _ref9$props.id, + color = _ref9$props.color, + childrenOfChild = _ref9$props.children, + content = Array.isArray(childrenOfChild) ? childrenOfChild[0] : childrenOfChild; + return { + active: selected ? id === selected : 0 === index, + title, + id, + color, + render: + 'function' == typeof content + ? content + : function (_ref10) { + var active = _ref10.active, + key = _ref10.key; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + VisuallyHidden, + { key, active, role: 'tabpanel' }, + content, + ); + }, + }; + }); + })(children, selected); + return list.length + ? react__WEBPACK_IMPORTED_MODULE_11__.createElement( + Wrapper, + { absolute, bordered, id: htmlId }, + react__WEBPACK_IMPORTED_MODULE_11__.createElement( + _bar_bar__WEBPACK_IMPORTED_MODULE_14__.j, + { border: !0, backgroundColor }, + react__WEBPACK_IMPORTED_MODULE_11__.createElement( + TabBar, + { role: 'tablist' }, + list.map(function (_ref12) { + var title = _ref12.title, + id = _ref12.id, + active = _ref12.active, + color = _ref12.color, + tabTitle = 'function' == typeof title ? title() : title; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + _bar_button__WEBPACK_IMPORTED_MODULE_15__.Y6, + { + id: 'tabbutton-'.concat((0, _storybook_csf__WEBPACK_IMPORTED_MODULE_12__.sanitize)(tabTitle)), + className: 'tabbutton '.concat(active ? 'tabbutton-active' : ''), + type: 'button', + key: id, + active, + textColor: color, + onClick: function onClick(e) { + e.preventDefault(), actions.onSelect(id); + }, + role: 'tab', + }, + tabTitle, + ); + }), + ), + tools + ? react__WEBPACK_IMPORTED_MODULE_11__.createElement( + react__WEBPACK_IMPORTED_MODULE_11__.Fragment, + null, + tools, + ) + : null, + ), + react__WEBPACK_IMPORTED_MODULE_11__.createElement( + Content, + { id: 'panel-tab-content', bordered, absolute }, + list.map(function (_ref13) { + var id = _ref13.id, + active = _ref13.active; + return (0, _ref13.render)({ key: id, active }); + }), + ), + ) + : react__WEBPACK_IMPORTED_MODULE_11__.createElement( + _placeholder_placeholder__WEBPACK_IMPORTED_MODULE_16__.V, + null, + react__WEBPACK_IMPORTED_MODULE_11__.createElement( + react__WEBPACK_IMPORTED_MODULE_11__.Fragment, + { key: 'title' }, + 'Nothing found', + ), + ); + }); + (Tabs.displayName = 'Tabs'), + (Tabs.defaultProps = { id: null, children: null, tools: null, selected: null, absolute: !1, bordered: !1 }); + var TabsState = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(TabsState, _Component); + var _super = _createSuper(TabsState); + function TabsState(props) { + var _this; + return ( + (function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, TabsState), + ((_this = _super.call(this, props)).handlers = { + onSelect: function onSelect(id) { + return _this.setState({ selected: id }); + }, + }), + (_this.state = { selected: props.initial }), + _this + ); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(TabsState, [ + { + key: 'render', + value: function render() { + var _this$props = this.props, + _this$props$bordered = _this$props.bordered, + bordered = void 0 !== _this$props$bordered && _this$props$bordered, + _this$props$absolute = _this$props.absolute, + absolute = void 0 !== _this$props$absolute && _this$props$absolute, + children = _this$props.children, + backgroundColor = _this$props.backgroundColor, + selected = this.state.selected; + return react__WEBPACK_IMPORTED_MODULE_11__.createElement( + Tabs, + { bordered, absolute, selected, backgroundColor, actions: this.handlers }, + children, + ); + }, + }, + ]), + TabsState + ); + })(react__WEBPACK_IMPORTED_MODULE_11__.Component); + (TabsState.displayName = 'TabsState'), + (TabsState.defaultProps = { children: [], initial: null, absolute: !1, bordered: !1, backgroundColor: '' }); + }, + 65662: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { $: () => TooltipLinkList }); + __webpack_require__(43450), __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react = __webpack_require__(2784), + esm = __webpack_require__(77439), + memoizerific = (__webpack_require__(35744), __webpack_require__(49224)), + memoizerific_default = __webpack_require__.n(memoizerific), + polished_esm = __webpack_require__(1039); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Title = (0, esm.styled)(function (_ref) { + _ref.active, _ref.loading, _ref.disabled; + var rest = _objectWithoutProperties(_ref, ['active', 'loading', 'disabled']); + return react.createElement('span', rest); + })( + function (_ref2) { + var theme = _ref2.theme; + return { color: theme.color.defaultText, fontWeight: theme.typography.weight.regular }; + }, + function (_ref3) { + var active = _ref3.active, + theme = _ref3.theme; + return active ? { color: theme.color.primary, fontWeight: theme.typography.weight.bold } : {}; + }, + function (_ref4) { + var loading = _ref4.loading, + theme = _ref4.theme; + return loading ? Object.assign({ display: 'inline-block', flex: 'none' }, theme.animation.inlineGlow) : {}; + }, + function (_ref5) { + var disabled = _ref5.disabled, + theme = _ref5.theme; + return disabled ? { color: (0, polished_esm.DZ)(0.7, theme.color.defaultText) } : {}; + }, + ), + Right = esm.styled.span( + { + '& svg': { + transition: 'all 200ms ease-out', + opacity: 0, + height: 12, + width: 12, + margin: '3px 0', + verticalAlign: 'top', + }, + '& path': { fill: 'inherit' }, + }, + function (_ref6) { + var active = _ref6.active, + theme = _ref6.theme; + return active ? { '& svg': { opacity: 1 }, '& path': { fill: theme.color.primary } } : {}; + }, + ), + Center = esm.styled.span({ + flex: 1, + textAlign: 'left', + display: 'inline-flex', + '& > * + *': { paddingLeft: 10 }, + }), + CenterText = esm.styled.span( + { flex: 1, textAlign: 'center' }, + function (_ref7) { + var active = _ref7.active, + theme = _ref7.theme; + return active ? { color: theme.color.primary } : {}; + }, + function (_ref8) { + var theme = _ref8.theme; + return _ref8.disabled ? { color: theme.color.mediumdark } : {}; + }, + ), + Left = esm.styled.span(function (_ref9) { + var active = _ref9.active, + theme = _ref9.theme; + return active ? { '& svg': { opacity: 1 }, '& path': { fill: theme.color.primary } } : {}; + }), + Item = esm.styled.a( + function (_ref10) { + var theme = _ref10.theme; + return { + fontSize: theme.typography.size.s1, + transition: 'all 150ms ease-out', + color: (0, polished_esm.DZ)(0.5, theme.color.defaultText), + textDecoration: 'none', + cursor: 'pointer', + justifyContent: 'space-between', + lineHeight: '18px', + padding: '7px 15px', + display: 'flex', + alignItems: 'center', + '& > * + *': { paddingLeft: 10 }, + '&:hover': { background: theme.background.hoverable }, + '&:hover svg': { opacity: 1 }, + }; + }, + function (_ref11) { + return _ref11.disabled ? { cursor: 'not-allowed' } : {}; + }, + ), + getItemProps = memoizerific_default()(100)(function (onClick, href, LinkWrapper) { + var result = {}; + return ( + onClick && Object.assign(result, { onClick }), + href && Object.assign(result, { href }), + LinkWrapper && href && Object.assign(result, { to: href, as: LinkWrapper }), + result + ); + }), + ListItem = function ListItem(_ref12) { + var loading = _ref12.loading, + left = _ref12.left, + title = _ref12.title, + center = _ref12.center, + right = _ref12.right, + active = _ref12.active, + disabled = _ref12.disabled, + href = _ref12.href, + onClick = _ref12.onClick, + LinkWrapper = _ref12.LinkWrapper, + rest = _objectWithoutProperties(_ref12, [ + 'loading', + 'left', + 'title', + 'center', + 'right', + 'active', + 'disabled', + 'href', + 'onClick', + 'LinkWrapper', + ]), + itemProps = getItemProps(onClick, href, LinkWrapper), + commonProps = { active, disabled }; + return react.createElement( + Item, + _extends({}, commonProps, rest, itemProps), + left && react.createElement(Left, commonProps, left), + title || center + ? react.createElement( + Center, + null, + title && react.createElement(Title, _extends({}, commonProps, { loading }), title), + center && react.createElement(CenterText, commonProps, center), + ) + : null, + right && react.createElement(Right, commonProps, right), + ); + }; + (ListItem.displayName = 'ListItem'), + (ListItem.defaultProps = { + loading: !1, + left: null, + title: react.createElement('span', null, 'Loading state'), + center: null, + right: null, + active: !1, + disabled: !1, + href: null, + LinkWrapper: null, + onClick: null, + }); + const tooltip_ListItem = ListItem; + function TooltipLinkList_extends() { + return ( + (TooltipLinkList_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + TooltipLinkList_extends.apply(this, arguments) + ); + } + function TooltipLinkList_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function TooltipLinkList_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var List = esm.styled.div( + { minWidth: 180, overflow: 'hidden', overflowY: 'auto', maxHeight: 432 }, + function (_ref) { + return { borderRadius: 2 * _ref.theme.appBorderRadius }; + }, + ), + TooltipLinkList_Item = function Item(props) { + var LinkWrapper = props.LinkWrapper, + onClickFromProps = props.onClick, + rest = TooltipLinkList_objectWithoutProperties(props, ['LinkWrapper', 'onClick']), + title = rest.title, + href = rest.href, + active = rest.active, + onClick = (0, react.useCallback)( + function (event) { + onClickFromProps(event, rest); + }, + [onClickFromProps], + ), + hasOnClick = !!onClickFromProps; + return react.createElement( + tooltip_ListItem, + TooltipLinkList_extends({ title, active, href, LinkWrapper }, rest, hasOnClick ? { onClick } : {}), + ); + }; + TooltipLinkList_Item.displayName = 'Item'; + var TooltipLinkList = function TooltipLinkList(_ref2) { + var links = _ref2.links, + LinkWrapper = _ref2.LinkWrapper; + return react.createElement( + List, + null, + links.map(function (_ref3) { + var isGatsby = _ref3.isGatsby, + p = TooltipLinkList_objectWithoutProperties(_ref3, ['isGatsby']); + return react.createElement( + TooltipLinkList_Item, + TooltipLinkList_extends({ key: p.id, LinkWrapper: isGatsby ? LinkWrapper : null }, p), + ); + }), + ); + }; + (TooltipLinkList.displayName = 'TooltipLinkList'), + (TooltipLinkList.defaultProps = { LinkWrapper: tooltip_ListItem.defaultProps.LinkWrapper }); + }, + 41256: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { X: () => TooltipMessage }); + __webpack_require__(43450), __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77439), + _typography_link_link__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(13609); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Title = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref) { + return { fontWeight: _ref.theme.typography.weight.black }; + }), + Desc = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.span(), + Links = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref2) { + return { + marginTop: 8, + textAlign: 'center', + '> *': { margin: '0 8px', fontWeight: _ref2.theme.typography.weight.black }, + }; + }), + Message = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div(function (_ref3) { + return { color: _ref3.theme.textColor, lineHeight: '18px' }; + }), + MessageWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_5__.styled.div({ + padding: 15, + width: 280, + boxSizing: 'border-box', + }), + TooltipMessage = function TooltipMessage(_ref4) { + var title = _ref4.title, + desc = _ref4.desc, + links = _ref4.links; + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + MessageWrapper, + null, + react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Message, + null, + title && react__WEBPACK_IMPORTED_MODULE_4__.createElement(Title, null, title), + desc && react__WEBPACK_IMPORTED_MODULE_4__.createElement(Desc, null, desc), + ), + links && + react__WEBPACK_IMPORTED_MODULE_4__.createElement( + Links, + null, + links.map(function (_ref5) { + var linkTitle = _ref5.title, + other = _objectWithoutProperties(_ref5, ['title']); + return react__WEBPACK_IMPORTED_MODULE_4__.createElement( + _typography_link_link__WEBPACK_IMPORTED_MODULE_6__.r, + _extends({}, other, { key: linkTitle }), + linkTitle, + ); + }), + ), + ); + }; + (TooltipMessage.displayName = 'TooltipMessage'), + (TooltipMessage.defaultProps = { title: null, desc: null, links: null }); + }, + 61174: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { g: () => TooltipNote }); + __webpack_require__(35744), __webpack_require__(34769), __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Note = __webpack_require__(77439).styled.div(function (_ref) { + var theme = _ref.theme; + return { + padding: '2px 6px', + lineHeight: '16px', + fontSize: 10, + fontWeight: theme.typography.weight.bold, + color: theme.color.lightest, + boxShadow: '0 0 5px 0 rgba(0, 0, 0, 0.3)', + borderRadius: 4, + whiteSpace: 'nowrap', + pointerEvents: 'none', + zIndex: -1, + background: 'light' === theme.base ? 'rgba(60, 60, 60, 0.9)' : 'rgba(20, 20, 20, 0.85)', + margin: 6, + }; + }), + TooltipNote = function TooltipNote(_ref2) { + var note = _ref2.note, + props = _objectWithoutProperties(_ref2, ['note']); + return react__WEBPACK_IMPORTED_MODULE_3__.createElement(Note, props, note); + }; + TooltipNote.displayName = 'TooltipNote'; + }, + 35881: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { R: () => WithTooltip, D: () => WithTooltipPure }); + __webpack_require__(73439), __webpack_require__(58188); + var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2784), + LazyWithTooltip = react__WEBPACK_IMPORTED_MODULE_2__.lazy(function () { + return __webpack_require__ + .e(129) + .then(__webpack_require__.bind(__webpack_require__, 9129)) + .then(function (mod) { + return { default: mod.WithTooltip }; + }); + }), + WithTooltip = function WithTooltip(props) { + return react__WEBPACK_IMPORTED_MODULE_2__.createElement( + react__WEBPACK_IMPORTED_MODULE_2__.Suspense, + { fallback: react__WEBPACK_IMPORTED_MODULE_2__.createElement('div', null) }, + react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyWithTooltip, props), + ); + }; + WithTooltip.displayName = 'WithTooltip'; + var LazyWithTooltipPure = react__WEBPACK_IMPORTED_MODULE_2__.lazy(function () { + return __webpack_require__ + .e(129) + .then(__webpack_require__.bind(__webpack_require__, 9129)) + .then(function (mod) { + return { default: mod.WithTooltipPure }; + }); + }), + WithTooltipPure = function WithTooltipPure(props) { + return react__WEBPACK_IMPORTED_MODULE_2__.createElement( + react__WEBPACK_IMPORTED_MODULE_2__.Suspense, + { fallback: react__WEBPACK_IMPORTED_MODULE_2__.createElement('div', null) }, + react__WEBPACK_IMPORTED_MODULE_2__.createElement(LazyWithTooltipPure, props), + ); + }; + WithTooltipPure.displayName = 'WithTooltipPure'; + }, + 4494: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + H1: () => H1, + H2: () => H2, + H3: () => H3, + H4: () => H4, + H5: () => H5, + H6: () => H6, + SU: () => Pre, + A: () => A, + HR: () => HR, + DL: () => DL, + V6: () => Blockquote, + iA: () => Table, + Ei: () => Img, + ZC: () => Div, + Dr: () => Span, + LI: () => LI, + UL: () => UL, + OL: () => OL, + P: () => P, + EK: () => Code, + TT: () => TT, + i9: () => ResetWrapper, + wx: () => components, + }); + __webpack_require__(43105), + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(95342), + __webpack_require__(16781), + __webpack_require__(18178), + __webpack_require__(34769), + __webpack_require__(34115); + var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(77439), + _shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29660), + _blocks_Source__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(31509); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var H1 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h1( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref) { + var theme = _ref.theme; + return { fontSize: ''.concat(theme.typography.size.l1, 'px'), fontWeight: theme.typography.weight.black }; + }, + ), + H2 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h2( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref2) { + var theme = _ref2.theme; + return { + fontSize: ''.concat(theme.typography.size.m2, 'px'), + paddingBottom: 4, + borderBottom: '1px solid '.concat(theme.appBorderColor), + }; + }, + ), + H3 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h3( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref3) { + var theme = _ref3.theme; + return { fontSize: ''.concat(theme.typography.size.m1, 'px') }; + }, + ), + H4 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h4( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref4) { + var theme = _ref4.theme; + return { fontSize: ''.concat(theme.typography.size.s3, 'px') }; + }, + ), + H5 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h5( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref5) { + var theme = _ref5.theme; + return { fontSize: ''.concat(theme.typography.size.s2, 'px') }; + }, + ), + H6 = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.h6( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.g$, + function (_ref6) { + var theme = _ref6.theme; + return { fontSize: ''.concat(theme.typography.size.s2, 'px'), color: theme.color.dark }; + }, + ), + Pre = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.pre( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + function (_ref7) { + return { + fontFamily: _ref7.theme.typography.fonts.mono, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + lineHeight: '18px', + padding: '11px 1rem', + whiteSpace: 'pre-wrap', + color: 'inherit', + borderRadius: 3, + margin: '1rem 0', + '&:not(.prismjs)': { background: 'transparent', border: 'none', borderRadius: 0, padding: 0, margin: 0 }, + '& pre, &.prismjs': { + padding: 15, + margin: 0, + whiteSpace: 'pre-wrap', + color: 'inherit', + fontSize: '13px', + lineHeight: '19px', + code: { color: 'inherit', fontSize: 'inherit' }, + }, + '& code': { whiteSpace: 'pre' }, + '& code, & tt': { border: 'none' }, + }; + }, + ), + Link = function Link(_ref8) { + var input = _ref8.href, + children = _ref8.children, + props = _objectWithoutProperties(_ref8, ['href', 'children']), + isStorybookPath = /^\//.test(input), + isAnchorUrl = /^#.*/.test(input), + href = isStorybookPath ? '?path='.concat(input) : input, + target = isAnchorUrl ? '_self' : '_top'; + return react__WEBPACK_IMPORTED_MODULE_8__.createElement('a', _extends({ href, target }, props), children); + }; + Link.displayName = 'Link'; + var A = (0, _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled)(Link)( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + function (_ref9) { + return { + fontSize: 'inherit', + lineHeight: '24px', + color: _ref9.theme.color.secondary, + textDecoration: 'none', + '&.absent': { color: '#cc0000' }, + '&.anchor': { + display: 'block', + paddingLeft: 30, + marginLeft: -30, + cursor: 'pointer', + position: 'absolute', + top: 0, + left: 0, + bottom: 0, + }, + }; + }, + ), + HR = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.hr(function (_ref10) { + var theme = _ref10.theme; + return { border: '0 none', borderTop: '1px solid '.concat(theme.appBorderColor), height: 4, padding: 0 }; + }), + DL = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.dl( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + Object.assign({}, _shared__WEBPACK_IMPORTED_MODULE_10__.vl, { + padding: 0, + '& dt': { fontSize: '14px', fontWeight: 'bold', fontStyle: 'italic', padding: 0, margin: '16px 0 4px' }, + '& dt:first-of-type': { padding: 0 }, + '& dt > :first-of-type': { marginTop: 0 }, + '& dt > :last-child': { marginBottom: 0 }, + '& dd': { margin: '0 0 16px', padding: '0 15px' }, + '& dd > :first-of-type': { marginTop: 0 }, + '& dd > :last-child': { marginBottom: 0 }, + }), + ), + Blockquote = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.blockquote( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + function (_ref11) { + var theme = _ref11.theme; + return { + borderLeft: '4px solid '.concat(theme.color.medium), + padding: '0 15px', + color: theme.color.dark, + '& > :first-of-type': { marginTop: 0 }, + '& > :last-child': { marginBottom: 0 }, + }; + }, + ), + Table = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.table( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + function (_ref12) { + var theme = _ref12.theme; + return { + fontSize: theme.typography.size.s2, + lineHeight: '24px', + padding: 0, + borderCollapse: 'collapse', + '& tr': { + borderTop: '1px solid '.concat(theme.appBorderColor), + backgroundColor: theme.appContentBg, + margin: 0, + padding: 0, + }, + '& tr:nth-of-type(2n)': { + backgroundColor: 'dark' === theme.base ? theme.color.darker : theme.color.lighter, + }, + '& tr th': { + fontWeight: 'bold', + color: theme.color.defaultText, + border: '1px solid '.concat(theme.appBorderColor), + margin: 0, + padding: '6px 13px', + }, + '& tr td': { + border: '1px solid '.concat(theme.appBorderColor), + color: theme.color.defaultText, + margin: 0, + padding: '6px 13px', + }, + '& tr th :first-of-type, & tr td :first-of-type': { marginTop: 0 }, + '& tr th :last-child, & tr td :last-child': { marginBottom: 0 }, + }; + }, + ), + Img = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.img({ maxWidth: '100%' }), + Div = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.div(_shared__WEBPACK_IMPORTED_MODULE_10__.YX), + Span = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.span( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + function (_ref13) { + var theme = _ref13.theme; + return { + '&.frame': { + display: 'block', + overflow: 'hidden', + '& > span': { + border: '1px solid '.concat(theme.color.medium), + display: 'block', + float: 'left', + overflow: 'hidden', + margin: '13px 0 0', + padding: 7, + width: 'auto', + }, + '& span img': { display: 'block', float: 'left' }, + '& span span': { clear: 'both', color: theme.color.darkest, display: 'block', padding: '5px 0 0' }, + }, + '&.align-center': { + display: 'block', + overflow: 'hidden', + clear: 'both', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px auto 0', textAlign: 'center' }, + '& span img': { margin: '0 auto', textAlign: 'center' }, + }, + '&.align-right': { + display: 'block', + overflow: 'hidden', + clear: 'both', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px 0 0', textAlign: 'right' }, + '& span img': { margin: 0, textAlign: 'right' }, + }, + '&.float-left': { + display: 'block', + marginRight: 13, + overflow: 'hidden', + float: 'left', + '& span': { margin: '13px 0 0' }, + }, + '&.float-right': { + display: 'block', + marginLeft: 13, + overflow: 'hidden', + float: 'right', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px auto 0', textAlign: 'right' }, + }, + }; + }, + ), + listCommon = { paddingLeft: 30, '& :first-of-type': { marginTop: 0 }, '& :last-child': { marginBottom: 0 } }, + LI = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.li( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + function (_ref14) { + var theme = _ref14.theme; + return { + fontSize: theme.typography.size.s2, + color: theme.color.defaultText, + lineHeight: '24px', + '& + li': { marginTop: '.25em' }, + '& ul, & ol': { marginTop: '.25em', marginBottom: 0 }, + '& code': (0, _shared__WEBPACK_IMPORTED_MODULE_10__.CI)({ theme }), + }; + }, + ), + UL = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.ul( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + Object.assign({}, listCommon, { listStyle: 'disc' }), + ), + OL = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.ol( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + Object.assign({}, listCommon, { listStyle: 'decimal' }), + ), + P = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.p( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + _shared__WEBPACK_IMPORTED_MODULE_10__.vl, + function (_ref15) { + var theme = _ref15.theme; + return { + fontSize: theme.typography.size.s2, + lineHeight: '24px', + color: theme.color.defaultText, + '& code': (0, _shared__WEBPACK_IMPORTED_MODULE_10__.CI)({ theme }), + }; + }, + ), + DefaultCodeBlock = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.code(function (_ref16) { + return { + fontFamily: _ref16.theme.typography.fonts.mono, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + display: 'inline-block', + paddingLeft: 2, + paddingRight: 2, + verticalAlign: 'baseline', + color: 'inherit', + }; + }, _shared__WEBPACK_IMPORTED_MODULE_10__.CI), + isInlineCodeRegex = /[\n\r]/g, + isReactChildString = function isReactChildString(child) { + return 'string' == typeof child; + }, + Code = function Code(_ref17) { + var _language$, + className = _ref17.className, + children = _ref17.children, + props = _objectWithoutProperties(_ref17, ['className', 'children']), + language = (className || '').match(/lang-(\S+)/), + childrenArray = react__WEBPACK_IMPORTED_MODULE_8__.Children.toArray(children); + return !childrenArray.filter(isReactChildString).some(function (child) { + return child.match(isInlineCodeRegex); + }) + ? react__WEBPACK_IMPORTED_MODULE_8__.createElement( + DefaultCodeBlock, + _extends({}, props, { className }), + childrenArray, + ) + : react__WEBPACK_IMPORTED_MODULE_8__.createElement( + _blocks_Source__WEBPACK_IMPORTED_MODULE_11__.iS, + _extends( + { + bordered: !0, + copyable: !0, + language: + null !== (_language$ = null == language ? void 0 : language[1]) && void 0 !== _language$ + ? _language$ + : 'plaintext', + format: !1, + }, + props, + ), + children, + ); + }; + Code.displayName = 'Code'; + var TT = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.title(_shared__WEBPACK_IMPORTED_MODULE_10__.CI), + ResetWrapper = _storybook_theming__WEBPACK_IMPORTED_MODULE_9__.styled.div( + _shared__WEBPACK_IMPORTED_MODULE_10__.YX, + ), + nameSpaceClassNames = function nameSpaceClassNames(_ref18, key) { + var props = Object.assign({}, _ref18), + classes = [props.class, props.className]; + return ( + delete props.class, + (props.className = ['sbdocs', 'sbdocs-'.concat(key)].concat(classes).filter(Boolean).join(' ')), + props + ); + }, + components = { + h1: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H1, nameSpaceClassNames(props, 'h1')); + }, + h2: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H2, nameSpaceClassNames(props, 'h2')); + }, + h3: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H3, nameSpaceClassNames(props, 'h3')); + }, + h4: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H4, nameSpaceClassNames(props, 'h4')); + }, + h5: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H5, nameSpaceClassNames(props, 'h5')); + }, + h6: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(H6, nameSpaceClassNames(props, 'h6')); + }, + pre: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Pre, nameSpaceClassNames(props, 'pre')); + }, + a: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(A, nameSpaceClassNames(props, 'a')); + }, + hr: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(HR, nameSpaceClassNames(props, 'hr')); + }, + dl: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(DL, nameSpaceClassNames(props, 'dl')); + }, + blockquote: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement( + Blockquote, + nameSpaceClassNames(props, 'blockquote'), + ); + }, + table: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Table, nameSpaceClassNames(props, 'table')); + }, + img: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Img, nameSpaceClassNames(props, 'img')); + }, + div: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Div, nameSpaceClassNames(props, 'div')); + }, + span: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Span, nameSpaceClassNames(props, 'span')); + }, + li: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(LI, nameSpaceClassNames(props, 'li')); + }, + ul: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(UL, nameSpaceClassNames(props, 'ul')); + }, + ol: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(OL, nameSpaceClassNames(props, 'ol')); + }, + p: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(P, nameSpaceClassNames(props, 'p')); + }, + code: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(Code, nameSpaceClassNames(props, 'code')); + }, + tt: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement(TT, nameSpaceClassNames(props, 'tt')); + }, + resetwrapper: function (props) { + return react__WEBPACK_IMPORTED_MODULE_8__.createElement( + ResetWrapper, + nameSpaceClassNames(props, 'resetwrapper'), + ); + }, + }; + }, + 96786: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => DocumentWrapper }); + var DocumentWrapper = __webpack_require__(77439).styled.div(function (_ref) { + var theme = _ref.theme; + return { + fontSize: ''.concat(theme.typography.size.s2, 'px'), + lineHeight: '1.6', + h1: { fontSize: ''.concat(theme.typography.size.l1, 'px'), fontWeight: theme.typography.weight.black }, + h2: { + fontSize: ''.concat(theme.typography.size.m2, 'px'), + borderBottom: '1px solid '.concat(theme.appBorderColor), + }, + h3: { fontSize: ''.concat(theme.typography.size.m1, 'px') }, + h4: { fontSize: ''.concat(theme.typography.size.s3, 'px') }, + h5: { fontSize: ''.concat(theme.typography.size.s2, 'px') }, + h6: { fontSize: ''.concat(theme.typography.size.s2, 'px'), color: theme.color.dark }, + 'pre:not(.prismjs)': { background: 'transparent', border: 'none', borderRadius: 0, padding: 0, margin: 0 }, + 'pre pre, pre.prismjs': { + padding: 15, + margin: 0, + whiteSpace: 'pre-wrap', + color: 'inherit', + fontSize: '13px', + lineHeight: '19px', + }, + 'pre pre code, pre.prismjs code': { color: 'inherit', fontSize: 'inherit' }, + 'pre code': { margin: 0, padding: 0, whiteSpace: 'pre', border: 'none', background: 'transparent' }, + 'pre code, pre tt': { backgroundColor: 'transparent', border: 'none' }, + 'body > *:first-of-type': { marginTop: '0 !important' }, + 'body > *:last-child': { marginBottom: '0 !important' }, + a: { color: theme.color.secondary, textDecoration: 'none' }, + 'a.absent': { color: '#cc0000' }, + 'a.anchor': { + display: 'block', + paddingLeft: 30, + marginLeft: -30, + cursor: 'pointer', + position: 'absolute', + top: 0, + left: 0, + bottom: 0, + }, + 'h1, h2, h3, h4, h5, h6': { + margin: '20px 0 10px', + padding: 0, + cursor: 'text', + position: 'relative', + '&:first-of-type': { marginTop: 0, paddingTop: 0 }, + '&:hover a.anchor': { textDecoration: 'none' }, + '& tt, & code': { fontSize: 'inherit' }, + }, + 'h1:first-of-type + h2': { marginTop: 0, paddingTop: 0 }, + 'p, blockquote, ul, ol, dl, li, table, pre': { margin: '15px 0' }, + hr: { border: '0 none', borderTop: '1px solid '.concat(theme.appBorderColor), height: 4, padding: 0 }, + 'body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type': { + marginTop: 0, + paddingTop: 0, + }, + 'body > h1:first-of-type + h2': { marginTop: 0, paddingTop: 0 }, + 'a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6': { + marginTop: 0, + paddingTop: 0, + }, + 'h1 p, h2 p, h3 p, h4 p, h5 p, h6 p': { marginTop: 0 }, + 'li p.first': { display: 'inline-block' }, + 'ul, ol': { paddingLeft: 30, '& :first-of-type': { marginTop: 0 }, '& :last-child': { marginBottom: 0 } }, + dl: { padding: 0 }, + 'dl dt': { + fontSize: '14px', + fontWeight: 'bold', + fontStyle: 'italic', + margin: '0 0 15px', + padding: '0 15px', + '&:first-of-type': { padding: 0 }, + '& > :first-of-type': { marginTop: 0 }, + '& > :last-child': { marginBottom: 0 }, + }, + blockquote: { + borderLeft: '4px solid '.concat(theme.color.medium), + padding: '0 15px', + color: theme.color.dark, + '& > :first-of-type': { marginTop: 0 }, + '& > :last-child': { marginBottom: 0 }, + }, + table: { + padding: 0, + borderCollapse: 'collapse', + '& tr': { + borderTop: '1px solid '.concat(theme.appBorderColor), + backgroundColor: 'white', + margin: 0, + padding: 0, + '& th': { + fontWeight: 'bold', + border: '1px solid '.concat(theme.appBorderColor), + textAlign: 'left', + margin: 0, + padding: '6px 13px', + }, + '& td': { + border: '1px solid '.concat(theme.appBorderColor), + textAlign: 'left', + margin: 0, + padding: '6px 13px', + }, + '&:nth-of-type(2n)': { backgroundColor: theme.color.lighter }, + '& th :first-of-type, & td :first-of-type': { marginTop: 0 }, + '& th :last-child, & td :last-child': { marginBottom: 0 }, + }, + }, + img: { maxWidth: '100%' }, + 'span.frame': { + display: 'block', + overflow: 'hidden', + '& > span': { + border: '1px solid '.concat(theme.color.medium), + display: 'block', + float: 'left', + overflow: 'hidden', + margin: '13px 0 0', + padding: 7, + width: 'auto', + }, + '& span img': { display: 'block', float: 'left' }, + '& span span': { clear: 'both', color: theme.color.darkest, display: 'block', padding: '5px 0 0' }, + }, + 'span.align-center': { + display: 'block', + overflow: 'hidden', + clear: 'both', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px auto 0', textAlign: 'center' }, + '& span img': { margin: '0 auto', textAlign: 'center' }, + }, + 'span.align-right': { + display: 'block', + overflow: 'hidden', + clear: 'both', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px 0 0', textAlign: 'right' }, + '& span img': { margin: 0, textAlign: 'right' }, + }, + 'span.float-left': { + display: 'block', + marginRight: 13, + overflow: 'hidden', + float: 'left', + '& span': { margin: '13px 0 0' }, + }, + 'span.float-right': { + display: 'block', + marginLeft: 13, + overflow: 'hidden', + float: 'right', + '& > span': { display: 'block', overflow: 'hidden', margin: '13px auto 0', textAlign: 'right' }, + }, + 'code, tt': { + margin: '0 2px', + padding: '0 5px', + whiteSpace: 'nowrap', + border: '1px solid '.concat(theme.color.mediumlight), + backgroundColor: theme.color.lighter, + borderRadius: 3, + color: 'dark' === theme.base && theme.color.darkest, + }, + }; + }); + }, + 13609: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { r: () => Link }); + __webpack_require__(34769), __webpack_require__(34115), __webpack_require__(43105); + var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2784), + _storybook_theming__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77439), + polished__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1039), + _icon_icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35016); + function _extends() { + return ( + (_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + _extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var LinkInner = _storybook_theming__WEBPACK_IMPORTED_MODULE_4__.styled.span( + function (_ref) { + return _ref.withArrow + ? { + '> svg:last-of-type': { + height: '0.7em', + width: '0.7em', + marginRight: 0, + marginLeft: '0.25em', + bottom: 'auto', + verticalAlign: 'inherit', + }, + } + : {}; + }, + function (_ref2) { + return _ref2.containsIcon + ? { + svg: { + height: '1em', + width: '1em', + verticalAlign: 'middle', + position: 'relative', + bottom: 0, + marginRight: 0, + }, + } + : {}; + }, + ), + A = _storybook_theming__WEBPACK_IMPORTED_MODULE_4__.styled.a( + function (_ref3) { + var theme = _ref3.theme; + return { + display: 'inline-block', + transition: 'all 150ms ease-out', + textDecoration: 'none', + color: theme.color.secondary, + '&:hover, &:focus': { + cursor: 'pointer', + color: (0, polished__WEBPACK_IMPORTED_MODULE_5__._j)(0.07, theme.color.secondary), + 'svg path': { fill: (0, polished__WEBPACK_IMPORTED_MODULE_5__._j)(0.07, theme.color.secondary) }, + }, + '&:active': { + color: (0, polished__WEBPACK_IMPORTED_MODULE_5__._j)(0.1, theme.color.secondary), + 'svg path': { fill: (0, polished__WEBPACK_IMPORTED_MODULE_5__._j)(0.1, theme.color.secondary) }, + }, + svg: { + display: 'inline-block', + height: '1em', + width: '1em', + verticalAlign: 'text-top', + position: 'relative', + bottom: '-0.125em', + marginRight: '0.4em', + '& path': { fill: theme.color.secondary }, + }, + }; + }, + function (_ref4) { + var colors, + theme = _ref4.theme, + secondary = _ref4.secondary, + tertiary = _ref4.tertiary; + return ( + secondary && (colors = [theme.color.mediumdark, theme.color.dark, theme.color.darker]), + tertiary && (colors = [theme.color.dark, theme.color.darkest, theme.color.mediumdark]), + colors + ? { + color: colors[0], + 'svg path': { fill: colors[0] }, + '&:hover': { color: colors[1], 'svg path': { fill: colors[1] } }, + '&:active': { color: colors[2], 'svg path': { fill: colors[2] } }, + } + : {} + ); + }, + function (_ref5) { + return _ref5.nochrome + ? { color: 'inherit', '&:hover, &:active': { color: 'inherit', textDecoration: 'underline' } } + : {}; + }, + function (_ref6) { + var theme = _ref6.theme; + return _ref6.inverse + ? { + color: theme.color.lightest, + 'svg path': { fill: theme.color.lightest }, + '&:hover': { color: theme.color.lighter, 'svg path': { fill: theme.color.lighter } }, + '&:active': { color: theme.color.light, 'svg path': { fill: theme.color.light } }, + } + : {}; + }, + function (_ref7) { + return _ref7.isButton + ? { border: 0, borderRadius: 0, background: 'none', padding: 0, fontSize: 'inherit' } + : {}; + }, + ), + Link = function Link(_ref8) { + var cancel = _ref8.cancel, + children = _ref8.children, + onClick = _ref8.onClick, + withArrow = _ref8.withArrow, + containsIcon = _ref8.containsIcon, + className = _ref8.className, + rest = _objectWithoutProperties(_ref8, [ + 'cancel', + 'children', + 'onClick', + 'withArrow', + 'containsIcon', + 'className', + ]); + return react__WEBPACK_IMPORTED_MODULE_3__.createElement( + A, + _extends({}, rest, { + onClick: + onClick && cancel + ? function (e) { + return (function cancelled(e, cb) { + (function isPlainLeftClick(e) { + return !(0 !== e.button || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey); + })(e) && (e.preventDefault(), cb(e)); + })(e, onClick); + } + : onClick, + className, + }), + react__WEBPACK_IMPORTED_MODULE_3__.createElement( + LinkInner, + { withArrow, containsIcon }, + children, + withArrow && + react__WEBPACK_IMPORTED_MODULE_3__.createElement(_icon_icon__WEBPACK_IMPORTED_MODULE_6__.P, { + icon: 'arrowright', + }), + ), + ); + }; + (Link.displayName = 'Link'), + (Link.defaultProps = { + cancel: !0, + className: void 0, + style: void 0, + onClick: void 0, + withArrow: !1, + containsIcon: !1, + }); + }, + 29660: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + g$: () => headerCommon, + CI: () => codeCommon, + YX: () => withReset, + vl: () => withMargin, + }); + var polished__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1039), + headerCommon = function headerCommon(_ref) { + return { + margin: '20px 0 8px', + padding: 0, + cursor: 'text', + position: 'relative', + color: _ref.theme.color.defaultText, + '&:first-of-type': { marginTop: 0, paddingTop: 0 }, + '&:hover a.anchor': { textDecoration: 'none' }, + '& tt, & code': { fontSize: 'inherit' }, + }; + }, + codeCommon = function codeCommon(_ref2) { + var theme = _ref2.theme; + return { + lineHeight: 1, + margin: '0 2px', + padding: '3px 5px', + whiteSpace: 'nowrap', + borderRadius: 3, + fontSize: theme.typography.size.s2 - 1, + border: + 'light' === theme.base + ? '1px solid '.concat(theme.color.mediumlight) + : '1px solid '.concat(theme.color.darker), + color: + 'light' === theme.base + ? (0, polished__WEBPACK_IMPORTED_MODULE_0__.DZ)(0.1, theme.color.defaultText) + : (0, polished__WEBPACK_IMPORTED_MODULE_0__.DZ)(0.3, theme.color.defaultText), + backgroundColor: 'light' === theme.base ? theme.color.lighter : theme.color.border, + }; + }, + withReset = function withReset(_ref3) { + var theme = _ref3.theme; + return { + fontFamily: theme.typography.fonts.base, + fontSize: theme.typography.size.s3, + margin: 0, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + WebkitOverflowScrolling: 'touch', + }; + }, + withMargin = { margin: '16px 0' }; + }, + 47513: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__(25047), __webpack_require__(83206), __webpack_require__(57406); + }, + 66375: (__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { + 'use strict'; + var r, + global_window = __webpack_require__(35048), + window_default = __webpack_require__.n(global_window), + react = (__webpack_require__(34769), __webpack_require__(43105), __webpack_require__(2784)), + react_dom = __webpack_require__(28316), + esm_extends = __webpack_require__(7560), + B = r || (r = {}); + (B.Pop = 'POP'), (B.Push = 'PUSH'), (B.Replace = 'REPLACE'); + var C = function (b) { + return Object.freeze(b); + }; + function D(b, h) { + if (!b) { + 'undefined' != typeof console && console.warn(h); + try { + throw Error(h); + } catch (e) {} + } + } + function E(b) { + b.preventDefault(), (b.returnValue = ''); + } + function F() { + var b = []; + return { + get length() { + return b.length; + }, + push: function (h) { + return ( + b.push(h), + function () { + b = b.filter(function (e) { + return e !== h; + }); + } + ); + }, + call: function (h) { + b.forEach(function (e) { + return e && e(h); + }); + }, + }; + } + function H() { + return Math.random().toString(36).substr(2, 8); + } + function I(b) { + var h = b.pathname; + h = void 0 === h ? '/' : h; + var e = b.search; + return ( + (e = void 0 === e ? '' : e), + (b = void 0 === (b = b.hash) ? '' : b), + e && '?' !== e && (h += '?' === e.charAt(0) ? e : '?' + e), + b && '#' !== b && (h += '#' === b.charAt(0) ? b : '#' + b), + h + ); + } + function J(b) { + var h = {}; + if (b) { + var e = b.indexOf('#'); + 0 <= e && ((h.hash = b.substr(e)), (b = b.substr(0, e))), + 0 <= (e = b.indexOf('?')) && ((h.search = b.substr(e)), (b = b.substr(0, e))), + b && (h.pathname = b); + } + return h; + } + var history_r, + history_B = history_r || (history_r = {}); + (history_B.Pop = 'POP'), (history_B.Push = 'PUSH'), (history_B.Replace = 'REPLACE'); + function history_J(b) { + var h = {}; + if (b) { + var e = b.indexOf('#'); + 0 <= e && ((h.hash = b.substr(e)), (b = b.substr(0, e))), + 0 <= (e = b.indexOf('?')) && ((h.search = b.substr(e)), (b = b.substr(0, e))), + b && (h.pathname = b); + } + return h; + } + function invariant(cond, message) { + if (!cond) throw new Error(message); + } + function warning(cond, message) { + if (!cond) { + 'undefined' != typeof console && console.warn(message); + try { + throw new Error(message); + } catch (e) {} + } + } + const NavigationContext = (0, react.createContext)(null); + NavigationContext.displayName = 'Navigation'; + const LocationContext = (0, react.createContext)(null); + LocationContext.displayName = 'Location'; + const RouteContext = (0, react.createContext)({ outlet: null, matches: [] }); + function react_router_Router(_ref3) { + let { + basename: basenameProp = '/', + children = null, + location: locationProp, + navigationType = history_r.Pop, + navigator, + static: staticProp = !1, + } = _ref3; + useInRouterContext() && + invariant( + !1, + 'You cannot render a inside another . You should never have more than one in your app.', + ); + let basename = normalizePathname(basenameProp), + navigationContext = (0, react.useMemo)(() => ({ basename, navigator, static: staticProp }), [ + basename, + navigator, + staticProp, + ]); + 'string' == typeof locationProp && (locationProp = history_J(locationProp)); + let { pathname = '/', search = '', hash = '', state = null, key = 'default' } = locationProp, + location = (0, react.useMemo)(() => { + let trailingPathname = stripBasename(pathname, basename); + return null == trailingPathname ? null : { pathname: trailingPathname, search, hash, state, key }; + }, [basename, pathname, search, hash, state, key]); + return ( + warning( + null != location, + ' is not able to match the URL "' + + pathname + + search + + hash + + '" because it does not start with the basename, so the won\'t render anything.', + ), + null == location + ? null + : (0, react.createElement)( + NavigationContext.Provider, + { value: navigationContext }, + (0, react.createElement)(LocationContext.Provider, { children, value: { location, navigationType } }), + ) + ); + } + function useHref(to) { + useInRouterContext() || invariant(!1, 'useHref() may be used only in the context of a component.'); + let { basename, navigator } = (0, react.useContext)(NavigationContext), + { hash, pathname, search } = useResolvedPath(to), + joinedPathname = pathname; + if ('/' !== basename) { + let toPathname = (function getToPathname(to) { + return '' === to || '' === to.pathname + ? '/' + : 'string' == typeof to + ? history_J(to).pathname + : to.pathname; + })(to), + endsWithSlash = null != toPathname && toPathname.endsWith('/'); + joinedPathname = '/' === pathname ? basename + (endsWithSlash ? '/' : '') : joinPaths([basename, pathname]); + } + return navigator.createHref({ pathname: joinedPathname, search, hash }); + } + function useInRouterContext() { + return null != (0, react.useContext)(LocationContext); + } + function react_router_useLocation() { + return ( + useInRouterContext() || + invariant(!1, 'useLocation() may be used only in the context of a component.'), + (0, react.useContext)(LocationContext).location + ); + } + function react_router_useNavigate() { + useInRouterContext() || invariant(!1, 'useNavigate() may be used only in the context of a component.'); + let { basename, navigator } = (0, react.useContext)(NavigationContext), + { matches } = (0, react.useContext)(RouteContext), + { pathname: locationPathname } = react_router_useLocation(), + routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase)), + activeRef = (0, react.useRef)(!1); + (0, react.useEffect)(() => { + activeRef.current = !0; + }); + let navigate = (0, react.useCallback)( + function (to, options) { + if ( + (void 0 === options && (options = {}), + warning( + activeRef.current, + 'You should call navigate() in a React.useEffect(), not when your component is first rendered.', + ), + !activeRef.current) + ) + return; + if ('number' == typeof to) return void navigator.go(to); + let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname); + '/' !== basename && (path.pathname = joinPaths([basename, path.pathname])), + (options.replace ? navigator.replace : navigator.push)(path, options.state); + }, + [basename, navigator, routePathnamesJson, locationPathname], + ); + return navigate; + } + RouteContext.displayName = 'Route'; + function useResolvedPath(to) { + let { matches } = (0, react.useContext)(RouteContext), + { pathname: locationPathname } = react_router_useLocation(), + routePathnamesJson = JSON.stringify(matches.map(match => match.pathnameBase)); + return (0, react.useMemo)(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname), [ + to, + routePathnamesJson, + locationPathname, + ]); + } + function resolveTo(toArg, routePathnames, locationPathname) { + let from, + to = 'string' == typeof toArg ? history_J(toArg) : toArg, + toPathname = '' === toArg || '' === to.pathname ? '/' : to.pathname; + if (null == toPathname) from = locationPathname; + else { + let routePathnameIndex = routePathnames.length - 1; + if (toPathname.startsWith('..')) { + let toSegments = toPathname.split('/'); + for (; '..' === toSegments[0]; ) toSegments.shift(), (routePathnameIndex -= 1); + to.pathname = toSegments.join('/'); + } + from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : '/'; + } + let path = (function resolvePath(to, fromPathname) { + void 0 === fromPathname && (fromPathname = '/'); + let { pathname: toPathname, search = '', hash = '' } = 'string' == typeof to ? history_J(to) : to, + pathname = toPathname + ? toPathname.startsWith('/') + ? toPathname + : (function resolvePathname(relativePath, fromPathname) { + let segments = fromPathname.replace(/\/+$/, '').split('/'); + return ( + relativePath.split('/').forEach(segment => { + '..' === segment + ? segments.length > 1 && segments.pop() + : '.' !== segment && segments.push(segment); + }), + segments.length > 1 ? segments.join('/') : '/' + ); + })(toPathname, fromPathname) + : fromPathname; + return { pathname, search: normalizeSearch(search), hash: normalizeHash(hash) }; + })(to, from); + return ( + toPathname && + '/' !== toPathname && + toPathname.endsWith('/') && + !path.pathname.endsWith('/') && + (path.pathname += '/'), + path + ); + } + function stripBasename(pathname, basename) { + if ('/' === basename) return pathname; + if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) return null; + let nextChar = pathname.charAt(basename.length); + return nextChar && '/' !== nextChar ? null : pathname.slice(basename.length) || '/'; + } + const joinPaths = paths => paths.join('/').replace(/\/\/+/g, '/'), + normalizePathname = pathname => pathname.replace(/\/+$/, '').replace(/^\/*/, '/'), + normalizeSearch = search => (search && '?' !== search ? (search.startsWith('?') ? search : '?' + search) : ''), + normalizeHash = hash => (hash && '#' !== hash ? (hash.startsWith('#') ? hash : '#' + hash) : ''); + function react_router_dom_extends() { + return ( + (react_router_dom_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + react_router_dom_extends.apply(this, arguments) + ); + } + function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + } + const _excluded = ['onClick', 'reloadDocument', 'replace', 'state', 'target', 'to'], + _excluded2 = ['aria-current', 'caseSensitive', 'className', 'end', 'style', 'to', 'children']; + function BrowserRouter(_ref) { + let { basename, children, window } = _ref, + historyRef = (0, react.useRef)(); + null == historyRef.current && + (historyRef.current = (function createBrowserHistory(b) { + function h() { + var c = p.location, + a = m.state || {}; + return [ + a.idx, + C({ + pathname: c.pathname, + search: c.search, + hash: c.hash, + state: a.usr || null, + key: a.key || 'default', + }), + ]; + } + function e(c) { + return 'string' == typeof c ? c : I(c); + } + function x(c, a) { + return ( + void 0 === a && (a = null), + C( + (0, esm_extends.Z)({ pathname: q.pathname, hash: '', search: '' }, 'string' == typeof c ? J(c) : c, { + state: a, + key: H(), + }), + ) + ); + } + function z(c) { + (t = c), (c = h()), (v = c[0]), (q = c[1]), d.call({ action: t, location: q }); + } + function w(c) { + m.go(c); + } + void 0 === b && (b = {}); + var p = void 0 === (b = b.window) ? document.defaultView : b, + m = p.history, + u = null; + p.addEventListener('popstate', function () { + if (u) g.call(u), (u = null); + else { + var c = r.Pop, + a = h(), + f = a[0]; + if (((a = a[1]), g.length)) + if (null != f) { + var l = v - f; + l && + ((u = { + action: c, + location: a, + retry: function () { + w(-1 * l); + }, + }), + w(l)); + } else + D( + !1, + 'You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.', + ); + else z(c); + } + }); + var t = r.Pop, + v = (b = h())[0], + q = b[1], + d = F(), + g = F(); + return ( + null == v && ((v = 0), m.replaceState((0, esm_extends.Z)({}, m.state, { idx: v }), '')), + { + get action() { + return t; + }, + get location() { + return q; + }, + createHref: e, + push: function A(c, a) { + var l = r.Push, + k = x(c, a); + if ( + !g.length || + (g.call({ + action: l, + location: k, + retry: function f() { + A(c, a); + }, + }), + 0) + ) { + var n = [{ usr: k.state, key: k.key, idx: v + 1 }, e(k)]; + (k = n[0]), (n = n[1]); + try { + m.pushState(k, '', n); + } catch (G) { + p.location.assign(n); + } + z(l); + } + }, + replace: function y(c, a) { + var l = r.Replace, + k = x(c, a); + (g.length && + (g.call({ + action: l, + location: k, + retry: function f() { + y(c, a); + }, + }), + 1)) || + ((k = [{ usr: k.state, key: k.key, idx: v }, e(k)]), m.replaceState(k[0], '', k[1]), z(l)); + }, + go: w, + back: function () { + w(-1); + }, + forward: function () { + w(1); + }, + listen: function (c) { + return d.push(c); + }, + block: function (c) { + var a = g.push(c); + return ( + 1 === g.length && p.addEventListener('beforeunload', E), + function () { + a(), g.length || p.removeEventListener('beforeunload', E); + } + ); + }, + } + ); + })({ window })); + let history = historyRef.current, + [state, setState] = (0, react.useState)({ action: history.action, location: history.location }); + return ( + (0, react.useLayoutEffect)(() => history.listen(setState), [history]), + (0, react.createElement)(react_router_Router, { + basename, + children, + location: state.location, + navigationType: state.action, + navigator: history, + }) + ); + } + const Link = (0, react.forwardRef)(function LinkWithRef(_ref4, ref) { + let { onClick, reloadDocument, replace = !1, state, target, to } = _ref4, + rest = _objectWithoutPropertiesLoose(_ref4, _excluded), + href = useHref(to), + internalOnClick = (function useLinkClickHandler(to, _temp) { + let { target, replace: replaceProp, state } = void 0 === _temp ? {} : _temp, + navigate = react_router_useNavigate(), + location = react_router_useLocation(), + path = useResolvedPath(to); + return (0, react.useCallback)( + event => { + if ( + !( + 0 !== event.button || + (target && '_self' !== target) || + (function isModifiedEvent(event) { + return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); + })(event) + ) + ) { + event.preventDefault(); + let replace = !!replaceProp || I(location) === I(path); + navigate(to, { replace, state }); + } + }, + [location, navigate, path, replaceProp, state, target, to], + ); + })(to, { replace, state, target }); + return (0, react.createElement)( + 'a', + react_router_dom_extends({}, rest, { + href, + onClick: function handleClick(event) { + onClick && onClick(event), event.defaultPrevented || reloadDocument || internalOnClick(event); + }, + ref, + target, + }), + ); + }); + Link.displayName = 'Link'; + (0, react.forwardRef)(function NavLinkWithRef(_ref5, ref) { + let { + 'aria-current': ariaCurrentProp = 'page', + caseSensitive = !1, + className: classNameProp = '', + end = !1, + style: styleProp, + to, + children, + } = _ref5, + rest = _objectWithoutPropertiesLoose(_ref5, _excluded2), + location = react_router_useLocation(), + path = useResolvedPath(to), + locationPathname = location.pathname, + toPathname = path.pathname; + caseSensitive || ((locationPathname = locationPathname.toLowerCase()), (toPathname = toPathname.toLowerCase())); + let className, + isActive = + locationPathname === toPathname || + (!end && locationPathname.startsWith(toPathname) && '/' === locationPathname.charAt(toPathname.length)), + ariaCurrent = isActive ? ariaCurrentProp : void 0; + className = + 'function' == typeof classNameProp + ? classNameProp({ isActive }) + : [classNameProp, isActive ? 'active' : null].filter(Boolean).join(' '); + let style = 'function' == typeof styleProp ? styleProp({ isActive }) : styleProp; + return (0, + react.createElement)(Link, react_router_dom_extends({}, rest, { 'aria-current': ariaCurrent, className, ref, style, to }), 'function' == typeof children ? children({ isActive }) : children); + }).displayName = 'NavLink'; + __webpack_require__(44112), + __webpack_require__(18178), + __webpack_require__(94908), + __webpack_require__(77950), + __webpack_require__(74069), + __webpack_require__(34115); + var ToggleVisibility = function ToggleVisibility(_ref) { + var hidden = _ref.hidden, + children = _ref.children; + return react.createElement('div', { hidden }, children); + }; + ToggleVisibility.displayName = 'ToggleVisibility'; + var utils = __webpack_require__(94098); + function router_extends() { + return ( + (router_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + router_extends.apply(this, arguments) + ); + } + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function router_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var router_document = window_default().document, + getBase = function getBase() { + return ''.concat(router_document.location.pathname, '?'); + }, + QueryLink = function QueryLink(_ref) { + var to = _ref.to, + children = _ref.children, + rest = _objectWithoutProperties(_ref, ['to', 'children']); + return react.createElement( + Link, + router_extends({ to: ''.concat(getBase(), 'path=').concat(to) }, rest), + children, + ); + }; + (QueryLink.displayName = 'QueryLink'), (QueryLink.displayName = 'QueryLink'); + var QueryLocation = function QueryLocation(_ref2) { + var children = _ref2.children, + location = react_router_useLocation(), + _queryFromString = (0, utils.Ff)(location.search), + path = _queryFromString.path, + singleStory = _queryFromString.singleStory, + _parsePath = (0, utils.cP)(path), + viewMode = _parsePath.viewMode, + storyId = _parsePath.storyId, + refId = _parsePath.refId; + return react.createElement( + react.Fragment, + null, + children({ path, location, viewMode, storyId, refId, singleStory: 'true' === singleStory }), + ); + }; + QueryLocation.displayName = 'QueryLocation'; + var QueryMatch = function QueryMatch(_ref3) { + var children = _ref3.children, + targetPath = _ref3.path, + _ref3$startsWith = _ref3.startsWith, + startsWith = void 0 !== _ref3$startsWith && _ref3$startsWith; + return react.createElement(QueryLocation, null, function (_ref4) { + var urlPath = _ref4.path, + rest = _objectWithoutProperties(_ref4, ['path']); + return children(Object.assign({ match: (0, utils.$P)(urlPath, targetPath, startsWith) }, rest)); + }); + }; + (QueryMatch.displayName = 'QueryMatch'), (QueryMatch.displayName = 'QueryMatch'); + var router_Route = function Route(_ref5) { + var path = _ref5.path, + children = _ref5.children, + _ref5$startsWith = _ref5.startsWith, + startsWith = void 0 !== _ref5$startsWith && _ref5$startsWith, + _ref5$hideOnly = _ref5.hideOnly, + hideOnly = void 0 !== _ref5$hideOnly && _ref5$hideOnly; + return react.createElement(QueryMatch, { path, startsWith }, function (_ref6) { + var match = _ref6.match; + return hideOnly + ? react.createElement(ToggleVisibility, { hidden: !match }, children) + : match + ? children + : null; + }); + }; + (router_Route.displayName = 'Route'), (router_Route.displayName = 'Route'); + var esm = __webpack_require__(98918), + emotion_theming_browser_esm = __webpack_require__(43352), + ensure = __webpack_require__(20247), + prop_types = __webpack_require__(13980), + prop_types_default = __webpack_require__.n(prop_types), + react_fast_compare = __webpack_require__(305), + react_fast_compare_default = __webpack_require__.n(react_fast_compare), + browser = __webpack_require__(47677), + browser_default = __webpack_require__.n(browser), + shallowequal = __webpack_require__(88665), + shallowequal_default = __webpack_require__.n(shallowequal); + function a() { + return (a = + Object.assign || + function (e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t]; + for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); + } + return e; + }).apply(this, arguments); + } + function s(e, t) { + (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), (e.__proto__ = t); + } + function c(e, t) { + if (null == e) return {}; + var r, + n, + i = {}, + o = Object.keys(e); + for (n = 0; n < o.length; n++) t.indexOf((r = o[n])) >= 0 || (i[r] = e[r]); + return i; + } + var u = { + BASE: 'base', + BODY: 'body', + HEAD: 'head', + HTML: 'html', + LINK: 'link', + META: 'meta', + NOSCRIPT: 'noscript', + SCRIPT: 'script', + STYLE: 'style', + TITLE: 'title', + FRAGMENT: 'Symbol(react.fragment)', + }, + l = Object.keys(u).map(function (e) { + return u[e]; + }), + p = { + accesskey: 'accessKey', + charset: 'charSet', + class: 'className', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + 'http-equiv': 'httpEquiv', + itemprop: 'itemProp', + tabindex: 'tabIndex', + }, + f = Object.keys(p).reduce(function (e, t) { + return (e[p[t]] = t), e; + }, {}), + d = function (e, t) { + for (var r = e.length - 1; r >= 0; r -= 1) { + var n = e[r]; + if (Object.prototype.hasOwnProperty.call(n, t)) return n[t]; + } + return null; + }, + h = function (e) { + var t = d(e, u.TITLE), + r = d(e, 'titleTemplate'); + if ((Array.isArray(t) && (t = t.join('')), r && t)) + return r.replace(/%s/g, function () { + return t; + }); + var n = d(e, 'defaultTitle'); + return t || n || void 0; + }, + m = function (e) { + return d(e, 'onChangeClientState') || function () {}; + }, + y = function (e, t) { + return t + .filter(function (t) { + return void 0 !== t[e]; + }) + .map(function (t) { + return t[e]; + }) + .reduce(function (e, t) { + return a({}, e, t); + }, {}); + }, + T = function (e, t) { + return t + .filter(function (e) { + return void 0 !== e[u.BASE]; + }) + .map(function (e) { + return e[u.BASE]; + }) + .reverse() + .reduce(function (t, r) { + if (!t.length) + for (var n = Object.keys(r), i = 0; i < n.length; i += 1) { + var o = n[i].toLowerCase(); + if (-1 !== e.indexOf(o) && r[o]) return t.concat(r); + } + return t; + }, []); + }, + b = function (e, t, r) { + var n = {}; + return r + .filter(function (t) { + return ( + !!Array.isArray(t[e]) || + (void 0 !== t[e] && + console && + 'function' == typeof console.warn && + console.warn('Helmet: ' + e + ' should be of type "Array". Instead found type "' + typeof t[e] + '"'), + !1) + ); + }) + .map(function (t) { + return t[e]; + }) + .reverse() + .reduce(function (e, r) { + var i = {}; + r.filter(function (e) { + for (var r, o = Object.keys(e), a = 0; a < o.length; a += 1) { + var s = o[a], + c = s.toLowerCase(); + -1 === t.indexOf(c) || + ('rel' === r && 'canonical' === e[r].toLowerCase()) || + ('rel' === c && 'stylesheet' === e[c].toLowerCase()) || + (r = c), + -1 === t.indexOf(s) || ('innerHTML' !== s && 'cssText' !== s && 'itemprop' !== s) || (r = s); + } + if (!r || !e[r]) return !1; + var u = e[r].toLowerCase(); + return n[r] || (n[r] = {}), i[r] || (i[r] = {}), !n[r][u] && ((i[r][u] = !0), !0); + }) + .reverse() + .forEach(function (t) { + return e.push(t); + }); + for (var o = Object.keys(i), s = 0; s < o.length; s += 1) { + var c = o[s], + u = a({}, n[c], i[c]); + n[c] = u; + } + return e; + }, []) + .reverse(); + }, + g = function (e) { + return Array.isArray(e) ? e.join('') : e; + }, + v = [u.NOSCRIPT, u.SCRIPT, u.STYLE], + A = function (e, t) { + return ( + void 0 === t && (t = !0), + !1 === t + ? String(e) + : String(e) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, ''') + ); + }, + index_module_C = function (e) { + return Object.keys(e).reduce(function (t, r) { + var n = void 0 !== e[r] ? r + '="' + e[r] + '"' : '' + r; + return t ? t + ' ' + n : n; + }, ''); + }, + O = function (e, t) { + return ( + void 0 === t && (t = {}), + Object.keys(e).reduce(function (t, r) { + return (t[p[r] || r] = e[r]), t; + }, t) + ); + }, + index_module_E = function (t, r, n) { + switch (t) { + case u.TITLE: + return { + toComponent: function () { + return ( + (n = r.titleAttributes), + ((i = { key: (t = r.title) })['data-rh'] = !0), + (o = O(n, i)), + [react.createElement(u.TITLE, o, t)] + ); + var t, n, i, o; + }, + toString: function () { + return (function (e, t, r, n) { + var i = index_module_C(r), + o = g(t); + return i + ? '<' + e + ' data-rh="true" ' + i + '>' + A(o, n) + '' + : '<' + e + ' data-rh="true">' + A(o, n) + ''; + })(t, r.title, r.titleAttributes, n); + }, + }; + case 'bodyAttributes': + case 'htmlAttributes': + return { + toComponent: function () { + return O(r); + }, + toString: function () { + return index_module_C(r); + }, + }; + default: + return { + toComponent: function () { + return (function (t, r) { + return r.map(function (r, n) { + var i, + o = (((i = { key: n })['data-rh'] = !0), i); + return ( + Object.keys(r).forEach(function (e) { + var t = p[e] || e; + 'innerHTML' === t || 'cssText' === t + ? (o.dangerouslySetInnerHTML = { __html: r.innerHTML || r.cssText }) + : (o[t] = r[e]); + }), + react.createElement(t, o) + ); + }); + })(t, r); + }, + toString: function () { + return (function (e, t, r) { + return t.reduce(function (t, n) { + var i = Object.keys(n) + .filter(function (e) { + return !('innerHTML' === e || 'cssText' === e); + }) + .reduce(function (e, t) { + var i = void 0 === n[t] ? t : t + '="' + A(n[t], r) + '"'; + return e ? e + ' ' + i : i; + }, ''), + o = n.innerHTML || n.cssText || '', + a = -1 === v.indexOf(e); + return t + '<' + e + ' data-rh="true" ' + i + (a ? '/>' : '>' + o + ''); + }, ''); + })(t, r, n); + }, + }; + } + }, + S = function (e) { + var t = e.bodyAttributes, + r = e.encode, + n = e.htmlAttributes, + i = e.linkTags, + o = e.metaTags, + a = e.noscriptTags, + s = e.scriptTags, + c = e.styleTags, + l = e.title, + p = void 0 === l ? '' : l, + f = e.titleAttributes; + return { + base: index_module_E(u.BASE, e.baseTag, r), + bodyAttributes: index_module_E('bodyAttributes', t, r), + htmlAttributes: index_module_E('htmlAttributes', n, r), + link: index_module_E(u.LINK, i, r), + meta: index_module_E(u.META, o, r), + noscript: index_module_E(u.NOSCRIPT, a, r), + script: index_module_E(u.SCRIPT, s, r), + style: index_module_E(u.STYLE, c, r), + title: index_module_E(u.TITLE, { title: p, titleAttributes: f }, r), + }; + }, + index_module_I = react.createContext({}), + P = prop_types_default().shape({ + setHelmet: prop_types_default().func, + helmetInstances: prop_types_default().shape({ + get: prop_types_default().func, + add: prop_types_default().func, + remove: prop_types_default().func, + }), + }), + L = 'undefined' != typeof document, + x = (function (t) { + function r(e) { + var n; + return ( + ((n = t.call(this, e) || this).instances = []), + (n.value = { + setHelmet: function (e) { + n.props.context.helmet = e; + }, + helmetInstances: { + get: function () { + return n.instances; + }, + add: function (e) { + n.instances.push(e); + }, + remove: function (e) { + var t = n.instances.indexOf(e); + n.instances.splice(t, 1); + }, + }, + }), + r.canUseDOM || + (e.context.helmet = S({ + baseTag: [], + bodyAttributes: {}, + encodeSpecialCharacters: !0, + htmlAttributes: {}, + linkTags: [], + metaTags: [], + noscriptTags: [], + scriptTags: [], + styleTags: [], + title: '', + titleAttributes: {}, + })), + n + ); + } + return ( + s(r, t), + (r.prototype.render = function () { + return react.createElement(index_module_I.Provider, { value: this.value }, this.props.children); + }), + r + ); + })(react.Component); + (x.canUseDOM = L), + (x.propTypes = { + context: prop_types_default().shape({ helmet: prop_types_default().shape() }), + children: prop_types_default().node.isRequired, + }), + (x.defaultProps = { context: {} }), + (x.displayName = 'HelmetProvider'); + var j = function (e, t) { + var r, + n = document.head || document.querySelector(u.HEAD), + i = n.querySelectorAll(e + '[data-rh]'), + o = [].slice.call(i), + a = []; + return ( + t && + t.length && + t.forEach(function (t) { + var n = document.createElement(e); + for (var i in t) + Object.prototype.hasOwnProperty.call(t, i) && + ('innerHTML' === i + ? (n.innerHTML = t.innerHTML) + : 'cssText' === i + ? n.styleSheet + ? (n.styleSheet.cssText = t.cssText) + : n.appendChild(document.createTextNode(t.cssText)) + : n.setAttribute(i, void 0 === t[i] ? '' : t[i])); + n.setAttribute('data-rh', 'true'), + o.some(function (e, t) { + return (r = t), n.isEqualNode(e); + }) + ? o.splice(r, 1) + : a.push(n); + }), + o.forEach(function (e) { + return e.parentNode.removeChild(e); + }), + a.forEach(function (e) { + return n.appendChild(e); + }), + { oldTags: o, newTags: a } + ); + }, + w = function (e, t) { + var r = document.getElementsByTagName(e)[0]; + if (r) { + for ( + var n = r.getAttribute('data-rh'), i = n ? n.split(',') : [], o = [].concat(i), a = Object.keys(t), s = 0; + s < a.length; + s += 1 + ) { + var c = a[s], + u = t[c] || ''; + r.getAttribute(c) !== u && r.setAttribute(c, u), -1 === i.indexOf(c) && i.push(c); + var l = o.indexOf(c); + -1 !== l && o.splice(l, 1); + } + for (var p = o.length - 1; p >= 0; p -= 1) r.removeAttribute(o[p]); + i.length === o.length + ? r.removeAttribute('data-rh') + : r.getAttribute('data-rh') !== a.join(',') && r.setAttribute('data-rh', a.join(',')); + } + }, + index_module_H = function (e, t) { + var r = e.baseTag, + n = e.htmlAttributes, + i = e.linkTags, + o = e.metaTags, + a = e.noscriptTags, + s = e.onChangeClientState, + c = e.scriptTags, + l = e.styleTags, + p = e.title, + f = e.titleAttributes; + w(u.BODY, e.bodyAttributes), + w(u.HTML, n), + (function (e, t) { + void 0 !== e && document.title !== e && (document.title = g(e)), w(u.TITLE, t); + })(p, f); + var d = { + baseTag: j(u.BASE, r), + linkTags: j(u.LINK, i), + metaTags: j(u.META, o), + noscriptTags: j(u.NOSCRIPT, a), + scriptTags: j(u.SCRIPT, c), + styleTags: j(u.STYLE, l), + }, + h = {}, + m = {}; + Object.keys(d).forEach(function (e) { + var t = d[e], + r = t.newTags, + n = t.oldTags; + r.length && (h[e] = r), n.length && (m[e] = d[e].oldTags); + }), + t && t(), + s(e, h, m); + }, + k = null, + M = (function (e) { + function t() { + for (var t, r = arguments.length, n = new Array(r), i = 0; i < r; i++) n[i] = arguments[i]; + return ((t = e.call.apply(e, [this].concat(n)) || this).rendered = !1), t; + } + s(t, e); + var r = t.prototype; + return ( + (r.shouldComponentUpdate = function (e) { + return !shallowequal_default()(e, this.props); + }), + (r.componentDidUpdate = function () { + this.emitChange(); + }), + (r.componentWillUnmount = function () { + this.props.context.helmetInstances.remove(this), this.emitChange(); + }), + (r.emitChange = function () { + var e, + t, + r = this.props.context, + n = r.setHelmet, + i = null, + o = + ((e = r.helmetInstances.get().map(function (e) { + var t = a({}, e.props); + return delete t.context, t; + })), + { + baseTag: T(['href'], e), + bodyAttributes: y('bodyAttributes', e), + defer: d(e, 'defer'), + encode: d(e, 'encodeSpecialCharacters'), + htmlAttributes: y('htmlAttributes', e), + linkTags: b(u.LINK, ['rel', 'href'], e), + metaTags: b(u.META, ['name', 'charset', 'http-equiv', 'property', 'itemprop'], e), + noscriptTags: b(u.NOSCRIPT, ['innerHTML'], e), + onChangeClientState: m(e), + scriptTags: b(u.SCRIPT, ['src', 'innerHTML'], e), + styleTags: b(u.STYLE, ['cssText'], e), + title: h(e), + titleAttributes: y('titleAttributes', e), + }); + x.canUseDOM + ? ((t = o), + k && cancelAnimationFrame(k), + t.defer + ? (k = requestAnimationFrame(function () { + index_module_H(t, function () { + k = null; + }); + })) + : (index_module_H(t), (k = null))) + : S && (i = S(o)), + n(i); + }), + (r.init = function () { + this.rendered || ((this.rendered = !0), this.props.context.helmetInstances.add(this), this.emitChange()); + }), + (r.render = function () { + return this.init(), null; + }), + t + ); + })(react.Component); + (M.propTypes = { context: P.isRequired }), (M.displayName = 'HelmetDispatcher'); + var N = (function (t) { + function r() { + return t.apply(this, arguments) || this; + } + s(r, t); + var o = r.prototype; + return ( + (o.shouldComponentUpdate = function (e) { + return !react_fast_compare_default()(this.props, e); + }), + (o.mapNestedChildrenToProps = function (e, t) { + if (!t) return null; + switch (e.type) { + case u.SCRIPT: + case u.NOSCRIPT: + return { innerHTML: t }; + case u.STYLE: + return { cssText: t }; + default: + throw new Error( + '<' + + e.type + + ' /> elements are self-closing and can not contain children. Refer to our API for more information.', + ); + } + }), + (o.flattenArrayTypeChildren = function (e) { + var t, + r = e.child, + n = e.arrayTypeChildren; + return a( + {}, + n, + (((t = {})[r.type] = [].concat(n[r.type] || [], [ + a({}, e.newChildProps, this.mapNestedChildrenToProps(r, e.nestedChildren)), + ])), + t), + ); + }), + (o.mapObjectTypeChildren = function (e) { + var t, + r, + n = e.child, + i = e.newProps, + o = e.newChildProps, + s = e.nestedChildren; + switch (n.type) { + case u.TITLE: + return a({}, i, (((t = {})[n.type] = s), (t.titleAttributes = a({}, o)), t)); + case u.BODY: + return a({}, i, { bodyAttributes: a({}, o) }); + case u.HTML: + return a({}, i, { htmlAttributes: a({}, o) }); + default: + return a({}, i, (((r = {})[n.type] = a({}, o)), r)); + } + }), + (o.mapArrayTypeChildrenToProps = function (e, t) { + var r = a({}, t); + return ( + Object.keys(e).forEach(function (t) { + var n; + r = a({}, r, (((n = {})[t] = e[t]), n)); + }), + r + ); + }), + (o.warnOnInvalidChildren = function (e, t) { + return ( + browser_default()( + l.some(function (t) { + return e.type === t; + }), + 'function' == typeof e.type + ? 'You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.' + : 'Only elements types ' + + l.join(', ') + + ' are allowed. Helmet does not support rendering <' + + e.type + + '> elements. Refer to our API for more information.', + ), + browser_default()( + !t || + 'string' == typeof t || + (Array.isArray(t) && + !t.some(function (e) { + return 'string' != typeof e; + })), + 'Helmet expects a string as a child of <' + + e.type + + '>. Did you forget to wrap your children in braces? ( <' + + e.type + + '>{``} ) Refer to our API for more information.', + ), + !0 + ); + }), + (o.mapChildrenToProps = function (t, r) { + var n = this, + i = {}; + return ( + react.Children.forEach(t, function (e) { + if (e && e.props) { + var t = e.props, + o = t.children, + a = c(t, ['children']), + s = Object.keys(a).reduce(function (e, t) { + return (e[f[t] || t] = a[t]), e; + }, {}), + l = e.type; + switch (('symbol' == typeof l ? (l = l.toString()) : n.warnOnInvalidChildren(e, o), l)) { + case u.FRAGMENT: + r = n.mapChildrenToProps(o, r); + break; + case u.LINK: + case u.META: + case u.NOSCRIPT: + case u.SCRIPT: + case u.STYLE: + i = n.flattenArrayTypeChildren({ + child: e, + arrayTypeChildren: i, + newChildProps: s, + nestedChildren: o, + }); + break; + default: + r = n.mapObjectTypeChildren({ child: e, newProps: r, newChildProps: s, nestedChildren: o }); + } + } + }), + this.mapArrayTypeChildrenToProps(i, r) + ); + }), + (o.render = function () { + var t = this.props, + r = t.children, + n = a({}, c(t, ['children'])); + return ( + r && (n = this.mapChildrenToProps(r, n)), + react.createElement(index_module_I.Consumer, null, function (t) { + return react.createElement(M, a({}, n, { context: t })); + }) + ); + }), + r + ); + })(react.Component); + (N.propTypes = { + base: prop_types_default().object, + bodyAttributes: prop_types_default().object, + children: prop_types_default().oneOfType([ + prop_types_default().arrayOf(prop_types_default().node), + prop_types_default().node, + ]), + defaultTitle: prop_types_default().string, + defer: prop_types_default().bool, + encodeSpecialCharacters: prop_types_default().bool, + htmlAttributes: prop_types_default().object, + link: prop_types_default().arrayOf(prop_types_default().object), + meta: prop_types_default().arrayOf(prop_types_default().object), + noscript: prop_types_default().arrayOf(prop_types_default().object), + onChangeClientState: prop_types_default().func, + script: prop_types_default().arrayOf(prop_types_default().object), + style: prop_types_default().arrayOf(prop_types_default().object), + title: prop_types_default().string, + titleAttributes: prop_types_default().object, + titleTemplate: prop_types_default().string, + }), + (N.defaultProps = { defer: !0, encodeSpecialCharacters: !0 }), + (N.displayName = 'Helmet'); + __webpack_require__(49170), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886); + var react_sizeme = __webpack_require__(70726), + react_sizeme_default = __webpack_require__.n(react_sizeme), + icon_icon = __webpack_require__(35016), + dist_esm = __webpack_require__(77439), + core_browser_esm = __webpack_require__(47134), + global = __webpack_require__(42579), + bar_button = + (__webpack_require__(43450), + __webpack_require__(96928), + __webpack_require__(61229), + __webpack_require__(82269)), + Root = dist_esm.styled.div({ + position: 'fixed', + left: 0, + top: 0, + width: '100vw', + height: '100vh', + overflow: 'hidden', + }); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _setPrototypeOf(o, p) { + return ( + (_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + _setPrototypeOf(o, p) + ); + } + function _createSuper(Derived) { + var hasNativeReflectConstruct = (function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = _getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = _getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return _possibleConstructorReturn(this, result); + }; + } + function _possibleConstructorReturn(self, call) { + return !call || ('object' !== _typeof(call) && 'function' != typeof call) + ? (function _assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function _getPrototypeOf(o) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + _getPrototypeOf(o) + ); + } + var SIDEBAR = esm.w0.SIDEBAR, + CANVAS = esm.w0.CANVAS, + ADDONS = esm.w0.ADDONS, + Pane = dist_esm.styled.div( + { transition: 'transform .2s ease', position: 'absolute', top: 0, height: '100%', overflow: 'auto' }, + function (_ref) { + var theme = _ref.theme; + return { + background: theme.background.content, + '&:nth-of-type(1)': { borderRight: '1px solid '.concat(theme.appBorderColor) }, + '&:nth-of-type(3)': { borderLeft: '1px solid '.concat(theme.appBorderColor) }, + }; + }, + function (_ref2) { + switch (_ref2.index) { + case 0: + return { width: '80vw', transform: 'translateX(-80vw)', left: 0 }; + case 1: + return { width: '100%', transform: 'translateX(0) scale(1)', left: 0 }; + case 2: + return { width: '80vw', transform: 'translateX(80vw)', right: 0 }; + default: + return {}; + } + }, + function (_ref3) { + var active = _ref3.active, + index = _ref3.index; + switch (!0) { + case 0 === index && active === SIDEBAR: + return { transform: 'translateX(-0px)' }; + case 1 === index && active === SIDEBAR: + return { transform: 'translateX(40vw) translateY(-42.5vh) translateY(40px) scale(0.2)' }; + case 1 === index && active === ADDONS: + return { transform: 'translateX(-40vw) translateY(-42.5vh) translateY(40px) scale(0.2)' }; + case 2 === index && active === ADDONS: + return { transform: 'translateX(0px)' }; + default: + return {}; + } + }, + ), + Panels = react.memo(function (_ref4) { + var children = _ref4.children, + active = _ref4.active; + return react.createElement( + PanelsContainer, + null, + react.Children.toArray(children).map(function (item, index) { + return react.createElement(Pane, { key: index, index, active }, item); + }), + ); + }); + Panels.displayName = 'Panels'; + var PanelsContainer = dist_esm.styled.div({ + position: 'fixed', + top: 0, + left: 0, + width: '100vw', + height: 'calc(100% - 40px)', + }), + Bar = dist_esm.styled.nav( + { + position: 'fixed', + bottom: 0, + left: 0, + width: '100vw', + height: 40, + display: 'flex', + boxShadow: '0 1px 5px 0 rgba(0, 0, 0, 0.1)', + '& > *': { flex: 1 }, + }, + function (_ref5) { + return { background: _ref5.theme.barBg }; + }, + ), + Mobile = (function (_Component) { + !(function _inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && _setPrototypeOf(subClass, superClass); + })(Mobile, _Component); + var _super = _createSuper(Mobile); + function Mobile(props) { + var _this; + !(function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Mobile), + (_this = _super.call(this, props)); + var options = props.options; + return (_this.state = { active: options.initialActive || SIDEBAR }), _this; + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(Mobile, [ + { + key: 'render', + value: function render() { + var _this2 = this, + _this$props = this.props, + Sidebar = _this$props.Sidebar, + Preview = _this$props.Preview, + Panel = _this$props.Panel, + Notifications = _this$props.Notifications, + pages = _this$props.pages, + viewMode = _this$props.viewMode, + options = _this$props.options, + docsOnly = _this$props.docsOnly, + active = this.state.active; + return react.createElement( + Root, + null, + react.createElement(Notifications, { + placement: { position: 'fixed', bottom: 60, left: 20, right: 20 }, + }), + react.createElement( + Panels, + { active }, + react.createElement(Sidebar, null), + react.createElement( + 'div', + null, + react.createElement( + 'div', + { hidden: !viewMode }, + react.createElement(Preview, { isToolshown: options.isToolshown, id: 'main', viewMode }), + ), + pages.map(function (_ref6) { + var key = _ref6.key, + Route = _ref6.route, + Content = _ref6.render; + return react.createElement(Route, { key }, react.createElement(Content, null)); + }), + ), + react.createElement(Panel, { hidden: !viewMode }), + ), + react.createElement( + Bar, + null, + react.createElement( + bar_button.Y6, + { + onClick: function onClick() { + return _this2.setState({ active: SIDEBAR }); + }, + active: active === SIDEBAR, + }, + 'Sidebar', + ), + react.createElement( + bar_button.Y6, + { + onClick: function onClick() { + return _this2.setState({ active: CANVAS }); + }, + active: active === CANVAS, + }, + viewMode ? 'Canvas' : null, + pages.map(function (_ref7) { + var key = _ref7.key, + Route = _ref7.route; + return react.createElement(Route, { key }, key); + }), + ), + viewMode && !docsOnly + ? react.createElement( + bar_button.Y6, + { + onClick: function onClick() { + return _this2.setState({ active: ADDONS }); + }, + active: active === ADDONS, + }, + 'Addons', + ) + : null, + ), + ); + }, + }, + ]), + Mobile + ); + })(react.Component); + Mobile.displayName = 'Mobile'; + __webpack_require__(16781); + var store2 = __webpack_require__(59042), + store2_default = __webpack_require__.n(store2), + debounce = __webpack_require__(54073), + debounce_default = __webpack_require__.n(debounce), + memoizerific = __webpack_require__(49224), + memoizerific_default = __webpack_require__.n(memoizerific), + write = memoizerific_default()(1)(function (changes) { + try { + store2_default().local.set('storybook-layout', changes); + } catch (e) { + console.error(e); + } + }), + set = debounce_default()(write, 500), + cjs = __webpack_require__(41327), + cjs_default = __webpack_require__.n(cjs), + Handle = dist_esm.styled.div( + function (_ref) { + var theme = _ref.theme; + return { + zIndex: 10, + position: 'absolute', + top: 0, + left: 0, + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + color: _ref.isDragging ? theme.color.secondary : theme.appBorderColor, + overflow: 'hidden', + transition: + 'color 0.2s linear, background-position 0.2s linear, background-size 0.2s linear, background 0.2s linear', + '&:hover': { color: theme.color.secondary }, + }; + }, + function (_ref2) { + return { cursor: 'x' === _ref2.axis ? 'col-resize' : 'row-resize' }; + }, + function (_ref3) { + var theme = _ref3.theme; + return 'x' === _ref3.axis + ? { height: '100%', width: theme.layoutMargin, marginLeft: 0 } + : { height: theme.layoutMargin, width: '100%', marginTop: 0 }; + }, + function (_ref4) { + var axis = _ref4.axis, + isDragging = _ref4.isDragging; + if ('y' === axis) { + var style = { + backgroundImage: + 'radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)', + backgroundSize: '100% 50px', + backgroundPosition: '50% 0', + backgroundRepeat: 'no-repeat', + }; + return isDragging + ? style + : Object.assign({}, style, { backgroundPosition: '50% 10px', '&:hover': style }); + } + if ('x' === axis) { + var _style = { + backgroundImage: + 'radial-gradient(at center center,rgba(0,0,0,0.2) 0%,transparent 70%,transparent 100%)', + backgroundSize: '50px 100%', + backgroundPosition: '0 50%', + backgroundRepeat: 'no-repeat', + }; + return isDragging + ? _style + : Object.assign({}, _style, { backgroundPosition: '10px 50%', '&:hover': _style }); + } + return {}; + }, + ); + function container_typeof(obj) { + return ( + (container_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + container_typeof(obj) + ); + } + function container_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function container_setPrototypeOf(o, p) { + return ( + (container_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + container_setPrototypeOf(o, p) + ); + } + function container_createSuper(Derived) { + var hasNativeReflectConstruct = (function container_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = container_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = container_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return container_possibleConstructorReturn(this, result); + }; + } + function container_possibleConstructorReturn(self, call) { + return !call || ('object' !== container_typeof(call) && 'function' != typeof call) + ? (function container_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function container_getPrototypeOf(o) { + return ( + (container_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + container_getPrototypeOf(o) + ); + } + function container_extends() { + return ( + (container_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + container_extends.apply(this, arguments) + ); + } + function container_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function container_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var container_Pane = dist_esm.styled.div( + { position: 'absolute', boxSizing: 'border-box', top: 0, left: 0, width: '100%', height: '100%' }, + function (_ref) { + return _ref.hidden ? { opacity: 0 } : { opacity: 1 }; + }, + function (_ref2) { + return _ref2.top ? { zIndex: 9 } : {}; + }, + function (_ref3) { + var border = _ref3.border, + theme = _ref3.theme; + switch (border) { + case 'left': + return { borderLeft: '1px solid '.concat(theme.appBorderColor) }; + case 'right': + return { borderRight: '1px solid '.concat(theme.appBorderColor) }; + case 'top': + return { borderTop: '1px solid '.concat(theme.appBorderColor) }; + case 'bottom': + return { borderBottom: '1px solid '.concat(theme.appBorderColor) }; + default: + return {}; + } + }, + function (_ref4) { + return _ref4.animate + ? { + transition: ['width', 'height', 'top', 'left', 'background', 'opacity', 'transform'] + .map(function (p) { + return ''.concat(p, ' 0.1s ease-out'); + }) + .join(','), + } + : {}; + }, + ), + Paper = dist_esm.styled.div( + { position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }, + function (_ref5) { + var isFullscreen = _ref5.isFullscreen, + theme = _ref5.theme; + return isFullscreen + ? { boxShadow: 'none', borderRadius: 0 } + : { + borderRadius: theme.appBorderRadius, + overflow: 'hidden', + boxShadow: '0 1px 5px 0 rgba(0, 0, 0, 0.1)', + }; + }, + ), + container_Sidebar = function Sidebar(_ref6) { + var _ref6$hidden = _ref6.hidden, + hidden = void 0 !== _ref6$hidden && _ref6$hidden, + children = _ref6.children, + _ref6$position = _ref6.position, + position = void 0 === _ref6$position ? void 0 : _ref6$position, + props = container_objectWithoutProperties(_ref6, ['hidden', 'children', 'position']); + return hidden + ? null + : react.createElement(container_Pane, container_extends({ style: position }, props), children); + }, + Main = function Main(_ref7) { + var _ref7$isFullscreen = _ref7.isFullscreen, + isFullscreen = void 0 !== _ref7$isFullscreen && _ref7$isFullscreen, + children = _ref7.children, + _ref7$position = _ref7.position, + position = void 0 === _ref7$position ? void 0 : _ref7$position, + props = container_objectWithoutProperties(_ref7, ['isFullscreen', 'children', 'position']); + return react.createElement( + container_Pane, + container_extends({ style: position, top: !0 }, props, { role: 'main' }), + react.createElement(Paper, { isFullscreen }, children), + ); + }; + Main.displayName = 'Main'; + var container_Preview = function Preview(_ref8) { + var _ref8$hidden = _ref8.hidden, + hidden = void 0 !== _ref8$hidden && _ref8$hidden, + children = _ref8.children, + _ref8$position = _ref8.position, + position = void 0 === _ref8$position ? void 0 : _ref8$position, + props = container_objectWithoutProperties(_ref8, ['hidden', 'children', 'position']); + return react.createElement( + container_Pane, + container_extends({ style: position, top: !0, hidden }, props), + children, + ); + }; + container_Preview.displayName = 'Preview'; + var container_Panel = function Panel(_ref9) { + var _ref9$hidden = _ref9.hidden, + hidden = void 0 !== _ref9$hidden && _ref9$hidden, + children = _ref9.children, + _ref9$position = _ref9.position, + position = void 0 === _ref9$position ? void 0 : _ref9$position, + _ref9$align = _ref9.align, + align = void 0 === _ref9$align ? 'right' : _ref9$align, + props = container_objectWithoutProperties(_ref9, ['hidden', 'children', 'position', 'align']); + return react.createElement( + container_Pane, + container_extends({ style: position, hidden }, props, { border: 'bottom' === align ? 'top' : 'left' }), + children, + ); + }; + container_Panel.displayName = 'Panel'; + var HoverBlocker = dist_esm.styled.div({ + position: 'absolute', + left: 0, + top: 0, + zIndex: 15, + height: '100vh', + width: '100vw', + }), + getPreviewPosition = function getPreviewPosition(_ref10) { + var panelPosition = _ref10.panelPosition, + isPanelHidden = _ref10.isPanelHidden, + isNavHidden = _ref10.isNavHidden, + isFullscreen = _ref10.isFullscreen, + bounds = _ref10.bounds, + resizerPanel = _ref10.resizerPanel, + resizerNav = _ref10.resizerNav, + margin = _ref10.margin; + if (isFullscreen || isPanelHidden) return {}; + var navX = isNavHidden ? 0 : resizerNav.x, + panelX = resizerPanel.x, + panelY = resizerPanel.y; + return 'bottom' === panelPosition + ? { height: panelY - margin, left: 0, top: 0, width: bounds.width - navX - 2 * margin } + : { height: bounds.height - 2 * margin, left: 0, top: 0, width: panelX - navX - margin }; + }, + getMainPosition = function getMainPosition(_ref11) { + var bounds = _ref11.bounds, + resizerNav = _ref11.resizerNav, + isNavHidden = _ref11.isNavHidden, + isFullscreen = _ref11.isFullscreen, + margin = _ref11.margin; + if (isFullscreen) return {}; + var navX = isNavHidden ? 0 : resizerNav.x; + return { + height: bounds.height - 2 * margin, + left: navX + margin, + top: margin, + width: bounds.width - navX - 2 * margin, + }; + }, + getPanelPosition = function getPanelPosition(_ref12) { + var isPanelBottom = _ref12.isPanelBottom, + isPanelHidden = _ref12.isPanelHidden, + isNavHidden = _ref12.isNavHidden, + bounds = _ref12.bounds, + resizerPanel = _ref12.resizerPanel, + resizerNav = _ref12.resizerNav, + margin = _ref12.margin, + navX = isNavHidden ? 0 : resizerNav.x, + panelX = resizerPanel.x, + panelY = resizerPanel.y; + return isPanelBottom && isPanelHidden + ? { + height: bounds.height - panelY - margin, + left: 0, + top: panelY - margin, + width: bounds.width - navX - 2 * margin, + } + : !isPanelBottom && isPanelHidden + ? { + height: bounds.height - 2 * margin, + left: panelX - navX - margin, + top: 0, + width: bounds.width - panelX - margin, + } + : isPanelBottom + ? { + height: bounds.height - panelY - margin, + left: 0, + top: panelY - margin, + width: bounds.width - navX - 2 * margin, + } + : { + height: bounds.height - 2 * margin, + left: panelX - navX - margin, + top: 0, + width: bounds.width - panelX - margin, + }; + }, + Layout = (function (_Component) { + !(function container_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && container_setPrototypeOf(subClass, superClass); + })(Layout, _Component); + var _super = container_createSuper(Layout); + function Layout(props) { + var _this; + !(function container_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Layout), + ((_this = _super.call(this, props)).resizeNav = function (e, data) { + data.deltaX && _this.setState({ resizerNav: { x: data.x, y: data.y } }); + }), + (_this.resizePanel = function (e, data) { + var options = _this.props.options; + ((data.deltaY && 'bottom' === options.panelPosition) || + (data.deltaX && 'right' === options.panelPosition)) && + _this.setState({ resizerPanel: { x: data.x, y: data.y } }); + }), + (_this.setDragNav = function () { + _this.setState({ isDragging: 'nav' }); + }), + (_this.setDragPanel = function () { + _this.setState({ isDragging: 'panel' }); + }), + (_this.unsetDrag = function () { + _this.setState({ isDragging: !1 }); + }); + var bounds = props.bounds, + _options = props.options, + _persistence$get = (function get() { + try { + return store2_default().local.get('storybook-layout') || !1; + } catch (e) { + return console.error(e), !1; + } + })(), + resizerNav = _persistence$get.resizerNav, + resizerPanel = _persistence$get.resizerPanel; + return ( + (_this.state = { + isDragging: !1, + resizerNav: resizerNav || { x: 220, y: 0 }, + resizerPanel: + resizerPanel || + ('bottom' === _options.panelPosition + ? { x: 0, y: Math.round(0.6 * bounds.height) } + : { x: bounds.width - 400, y: 0 }), + }), + _this + ); + } + return ( + (function container_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && container_defineProperties(Constructor.prototype, protoProps), + staticProps && container_defineProperties(Constructor, staticProps), + Constructor + ); + })( + Layout, + [ + { + key: 'componentDidUpdate', + value: function componentDidUpdate(prevProps, prevState) { + var _this$state = this.state, + resizerPanel = _this$state.resizerPanel, + resizerNav = _this$state.resizerNav; + set({ resizerPanel, resizerNav }); + var _prevProps$bounds = prevProps.bounds, + prevWidth = _prevProps$bounds.width, + prevHeight = _prevProps$bounds.height, + _this$props = this.props, + bounds = _this$props.bounds, + options = _this$props.options, + width = bounds.width, + height = bounds.height; + (width === prevWidth && height === prevHeight) || + ('bottom' === options.panelPosition + ? this.setState({ + resizerPanel: { + x: prevState.resizerPanel.x, + y: prevState.resizerPanel.y - (prevHeight - height), + }, + }) + : this.setState({ + resizerPanel: { + x: prevState.resizerPanel.x - (prevWidth - width), + y: prevState.resizerPanel.y, + }, + })); + }, + }, + { + key: 'render', + value: function render() { + var _this$props2 = this.props, + children = _this$props2.children, + bounds = _this$props2.bounds, + options = _this$props2.options, + theme = _this$props2.theme, + viewMode = _this$props2.viewMode, + docsOnly = _this$props2.docsOnly, + panelCount = _this$props2.panelCount, + _this$state2 = this.state, + isDragging = _this$state2.isDragging, + resizerNav = _this$state2.resizerNav, + resizerPanel = _this$state2.resizerPanel, + margin = theme.layoutMargin, + isNavHidden = options.isFullscreen || !options.showNav, + isPanelHidden = + options.isFullscreen || + !options.showPanel || + docsOnly || + 'story' !== viewMode || + 0 === panelCount, + isFullscreen = options.isFullscreen || (isNavHidden && isPanelHidden), + isToolshown = options.isToolshown, + panelPosition = options.panelPosition, + isPanelBottom = 'bottom' === panelPosition, + isPanelRight = 'right' === panelPosition, + panelX = resizerPanel.x, + navX = resizerNav.x; + return bounds + ? react.createElement( + react.Fragment, + null, + isNavHidden + ? null + : react.createElement( + cjs_default(), + { + axis: 'x', + position: resizerNav, + bounds: { + left: 200, + top: 0, + right: isPanelRight && !isPanelHidden ? panelX - 200 : bounds.width - 200, + bottom: 0, + }, + onStart: this.setDragNav, + onDrag: this.resizeNav, + onStop: this.unsetDrag, + }, + react.createElement(Handle, { axis: 'x', isDragging: 'nav' === isDragging }), + ), + isPanelHidden + ? null + : react.createElement( + cjs_default(), + { + axis: isPanelBottom ? 'y' : 'x', + position: resizerPanel, + bounds: isPanelBottom + ? { left: 0, top: 200, right: 0, bottom: bounds.height - 200 } + : { + left: isNavHidden ? 200 : navX + 200, + top: 0, + right: bounds.width - 200, + bottom: 0, + }, + onStart: this.setDragPanel, + onDrag: this.resizePanel, + onStop: this.unsetDrag, + }, + react.createElement(Handle, { + isDragging: 'panel' === isDragging, + style: isPanelBottom + ? { + left: navX + margin, + width: bounds.width - navX - 2 * margin, + marginTop: -margin, + } + : { marginLeft: -margin }, + axis: isPanelBottom ? 'y' : 'x', + }), + ), + isDragging ? react.createElement(HoverBlocker, null) : null, + children({ + mainProps: { + viewMode, + animate: !isDragging, + isFullscreen, + position: getMainPosition({ bounds, resizerNav, isNavHidden, isFullscreen, margin }), + }, + previewProps: { + viewMode, + docsOnly, + animate: !isDragging, + isFullscreen, + isToolshown, + position: getPreviewPosition({ + isFullscreen, + isNavHidden, + isPanelHidden, + resizerNav, + resizerPanel, + bounds, + panelPosition, + margin, + }), + }, + navProps: { + viewMode, + animate: !isDragging, + hidden: isNavHidden, + position: { height: bounds.height, left: 0, top: 0, width: navX + margin }, + }, + panelProps: { + viewMode, + animate: !isDragging, + align: options.panelPosition, + hidden: isPanelHidden, + position: getPanelPosition({ + isPanelBottom, + isPanelHidden, + isNavHidden, + bounds, + resizerPanel, + resizerNav, + margin, + }), + }, + }), + ) + : null; + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + var bounds = props.bounds, + options = props.options, + resizerPanel = state.resizerPanel, + resizerNav = state.resizerNav, + isNavHidden = options.isFullscreen || !options.showNav, + isPanelHidden = options.isFullscreen || !options.showPanel, + panelPosition = options.panelPosition, + isPanelRight = 'right' === panelPosition, + isPanelBottom = 'bottom' === panelPosition, + navX = resizerNav.x, + panelX = resizerPanel.x, + panelY = resizerPanel.y, + mutation = {}; + if (!isNavHidden) { + var minMainWidth = 200 + (!isPanelHidden && isPanelRight ? 200 : 0), + maxNavX = bounds.width - minMainWidth; + navX > maxNavX + ? (mutation.resizerNav = { x: maxNavX, y: 0 }) + : (navX < 200 || maxNavX < 200) && (mutation.resizerNav = { x: 200, y: 0 }); + } + if (isPanelRight && !isPanelHidden) { + var maxPanelX = bounds.width - 200, + minPanelX = navX + 200; + panelX > maxPanelX || 0 === panelX + ? (mutation.resizerPanel = { x: maxPanelX, y: 0 }) + : panelX < minPanelX && (mutation.resizerPanel = { x: minPanelX, y: 0 }); + } + isPanelBottom && + !isPanelHidden && + (panelY > bounds.height - 200 || 0 === panelY) && + (mutation.resizerPanel = { x: 0, y: bounds.height - 200 }); + return mutation.resizerPanel || mutation.resizerNav ? Object.assign({}, state, mutation) : state; + }, + }, + ], + ), + Layout + ); + })(react.Component); + (Layout.displayName = 'Layout'), (Layout.defaultProps = { viewMode: void 0, docsOnly: !1 }); + var ThemedLayout = (0, emotion_theming_browser_esm.Zz)(Layout); + function desktop_extends() { + return ( + (desktop_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + desktop_extends.apply(this, arguments) + ); + } + var Desktop = Object.assign( + react.memo(function (_ref) { + var Panel = _ref.Panel, + Sidebar = _ref.Sidebar, + Preview = _ref.Preview, + Notifications = _ref.Notifications, + pages = _ref.pages, + options = _ref.options, + _ref$viewMode = _ref.viewMode, + viewMode = void 0 === _ref$viewMode ? void 0 : _ref$viewMode, + _ref$width = _ref.width, + width = void 0 === _ref$width ? 0 : _ref$width, + _ref$height = _ref.height, + height = void 0 === _ref$height ? 0 : _ref$height, + panelCount = _ref.panelCount, + _ref$docsOnly = _ref.docsOnly, + docsOnly = void 0 !== _ref$docsOnly && _ref$docsOnly; + return react.createElement( + react.Fragment, + null, + react.createElement(Notifications, { placement: { position: 'fixed', bottom: 20, left: 20 } }), + width && height + ? react.createElement( + ThemedLayout, + { options, bounds: { width, height, top: 0, left: 0 }, viewMode, docsOnly: !!docsOnly, panelCount }, + function (_ref2) { + var navProps = _ref2.navProps, + mainProps = _ref2.mainProps, + panelProps = _ref2.panelProps, + previewProps = _ref2.previewProps; + return react.createElement( + react.Fragment, + null, + react.createElement(container_Sidebar, navProps, react.createElement(Sidebar, null)), + react.createElement( + Main, + desktop_extends({}, mainProps, { isFullscreen: !!mainProps.isFullscreen }), + react.createElement( + container_Preview, + desktop_extends({}, previewProps, { hidden: 'settings' === viewMode }), + react.createElement(Preview, { id: 'main' }), + ), + react.createElement( + container_Panel, + desktop_extends({}, panelProps, { hidden: 'story' !== viewMode || docsOnly }), + react.createElement(Panel, null), + ), + pages.map(function (_ref3) { + var key = _ref3.key, + Route = _ref3.route, + Content = _ref3.render; + return react.createElement(Route, { key }, react.createElement(Content, null)); + }), + ), + ); + }, + ) + : react.createElement('div', { title: JSON.stringify({ width, height }) }), + ); + }), + { displayName: 'DesktopLayout' }, + ), + Spaced = + (__webpack_require__(26936), + __webpack_require__(35883), + __webpack_require__(32501), + __webpack_require__(27233), + __webpack_require__(39847)), + ScrollArea = __webpack_require__(54214), + Button = (__webpack_require__(35744), __webpack_require__(81899)), + StorybookLogo = __webpack_require__(65810), + StorybookLogoStyled = (0, dist_esm.styled)(StorybookLogo.G)({ + width: 'auto', + height: '22px !important', + display: 'block', + }), + Img = dist_esm.styled.img({ width: 'auto', height: 'auto', display: 'block', maxWidth: '100%' }), + LogoLink = dist_esm.styled.a(function (_ref) { + return { + display: 'inline-block', + height: '100%', + margin: '-3px -4px', + padding: '2px 3px', + border: '1px solid transparent', + borderRadius: 3, + color: 'inherit', + textDecoration: 'none', + '&:focus': { outline: 0, borderColor: _ref.theme.color.secondary }, + }; + }), + Brand = (0, emotion_theming_browser_esm.Zz)(function (_ref2) { + var _theme$brand = _ref2.theme.brand, + _theme$brand$title = _theme$brand.title, + title = void 0 === _theme$brand$title ? 'Storybook' : _theme$brand$title, + _theme$brand$url = _theme$brand.url, + url = void 0 === _theme$brand$url ? './' : _theme$brand$url, + image = _theme$brand.image, + targetValue = './' === url ? '' : '_blank'; + if (null === image) + return null === title + ? null + : url + ? react.createElement(LogoLink, { + href: url, + target: targetValue, + dangerouslySetInnerHTML: { __html: title }, + }) + : react.createElement('div', { dangerouslySetInnerHTML: { __html: title } }); + var logo = image + ? react.createElement(Img, { src: image, alt: title }) + : react.createElement(StorybookLogoStyled, { alt: title }); + return url + ? react.createElement(LogoLink, { title, href: url, target: targetValue }, logo) + : react.createElement('div', null, logo); + }), + TooltipLinkList = __webpack_require__(65662), + lazy_WithTooltip = __webpack_require__(35881); + function Menu_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function Menu_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var sharedStyles = { height: 10, width: 10, marginLeft: -5, marginRight: -5, display: 'block' }, + Icon = (0, dist_esm.styled)(icon_icon.P)(sharedStyles, function (_ref) { + return { color: _ref.theme.color.secondary }; + }), + Menu_Img = dist_esm.styled.img(sharedStyles), + Placeholder = dist_esm.styled.div(sharedStyles), + MenuItemIcon = function MenuItemIcon(_ref2) { + var icon = _ref2.icon, + imgSrc = _ref2.imgSrc; + return icon + ? react.createElement(Icon, { icon }) + : imgSrc + ? react.createElement(Menu_Img, { src: imgSrc, alt: 'image' }) + : react.createElement(Placeholder, null); + }; + MenuItemIcon.displayName = 'MenuItemIcon'; + var MenuButton = (0, dist_esm.styled)(Button.z)(function (_ref3) { + var highlighted = _ref3.highlighted, + theme = _ref3.theme; + return Object.assign( + { + position: 'relative', + overflow: 'visible', + padding: 7, + transition: 'none', + '&:focus': { background: theme.barBg, boxShadow: 'none' }, + '&:focus:before': { + content: '""', + position: 'absolute', + top: 0, + bottom: 0, + left: 0, + right: 0, + borderRadius: '100%', + border: '1px solid '.concat(theme.color.secondary), + }, + }, + highlighted && { + '&:after': { + content: '""', + position: 'absolute', + top: 0, + right: 0, + width: 8, + height: 8, + borderRadius: 8, + background: theme.color.positive, + }, + }, + ); + }), + SidebarMenuList = function SidebarMenuList(_ref4) { + var menu = _ref4.menu, + onHide = _ref4.onHide, + links = (0, react.useMemo)( + function () { + return menu.map(function (_ref5) { + var onClick = _ref5.onClick, + rest = Menu_objectWithoutProperties(_ref5, ['onClick']); + return Object.assign({}, rest, { + onClick: function (event, item) { + onClick && onClick(event, item), onHide(); + }, + }); + }); + }, + [menu], + ); + return react.createElement(TooltipLinkList.$, { links }); + }; + SidebarMenuList.displayName = 'SidebarMenuList'; + var SidebarMenu = function SidebarMenu(_ref6) { + var isHighlighted = _ref6.isHighlighted, + menu = _ref6.menu; + return react.createElement( + lazy_WithTooltip.R, + { + placement: 'top', + trigger: 'click', + closeOnClick: !0, + tooltip: function tooltip(_ref7) { + var onHide = _ref7.onHide; + return react.createElement(SidebarMenuList, { onHide, menu }); + }, + }, + react.createElement( + MenuButton, + { outline: !0, small: !0, containsIcon: !0, highlighted: isHighlighted, title: 'Shortcuts' }, + react.createElement(icon_icon.P, { icon: 'ellipsis' }), + ), + ); + }; + SidebarMenu.displayName = 'SidebarMenu'; + function Heading_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function Heading_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var BrandArea = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + fontSize: theme.typography.size.s2, + fontWeight: theme.typography.weight.bold, + color: theme.color.defaultText, + marginRight: 20, + display: 'flex', + width: '100%', + alignItems: 'center', + minHeight: 22, + '& > *': { maxWidth: '100%', height: 'auto', display: 'block', flex: '1 1 auto' }, + }; + }), + HeadingWrapper = dist_esm.styled.div({ + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + position: 'relative', + }), + SkipToCanvasLink = (0, dist_esm.styled)(Button.z)(function (_ref2) { + return { + display: 'none', + '@media (min-width: 600px)': { + display: 'block', + position: 'absolute', + width: '100%', + padding: '10px 15px', + fontSize: _ref2.theme.typography.size.s1, + zIndex: 1, + transform: 'translate(0,-100px)', + '&:focus': { transform: 'translate(0)' }, + }, + }; + }), + Heading = function Heading(_ref3) { + var _ref3$menuHighlighted = _ref3.menuHighlighted, + menuHighlighted = void 0 !== _ref3$menuHighlighted && _ref3$menuHighlighted, + menu = _ref3.menu, + skipLinkHref = _ref3.skipLinkHref, + props = Heading_objectWithoutProperties(_ref3, ['menuHighlighted', 'menu', 'skipLinkHref']); + return react.createElement( + HeadingWrapper, + props, + skipLinkHref && + react.createElement( + SkipToCanvasLink, + { secondary: !0, isLink: !0, tabIndex: 0, href: skipLinkHref }, + 'Skip to canvas', + ), + react.createElement(BrandArea, null, react.createElement(Brand, null)), + react.createElement(SidebarMenu, { menu, isHighlighted: menuHighlighted }), + ); + }; + Heading.displayName = 'Heading'; + __webpack_require__(95342), __webpack_require__(67890), __webpack_require__(1939); + function data_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function data_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var DEFAULT_REF_ID = 'storybook_internal', + collapseAllStories = function collapseAllStories(stories) { + var componentIdToLeafId = {}, + childrenRewritten = Object.values(stories) + .filter(function (item) { + return !(item.isLeaf && stories[item.parent].isComponent); + }) + .map(function (item) { + var id = item.id, + isComponent = item.isComponent, + children = item.children, + rest = data_objectWithoutProperties(item, ['id', 'isComponent', 'children']); + if (!isComponent) return item; + var nonLeafChildren = [], + leafChildren = []; + if ( + (children.forEach(function (child) { + return (stories[child].isLeaf ? leafChildren : nonLeafChildren).push(child); + }), + 0 === leafChildren.length) + ) + return item; + var leafId = leafChildren[0], + component = Object.assign({ args: {} }, rest, { + id: leafId, + kind: stories[leafId].kind, + isRoot: !1, + isLeaf: !0, + isComponent: !0, + children: [], + }); + if (((componentIdToLeafId[id] = leafId), 0 !== nonLeafChildren.length)) + throw new Error( + "Unexpected '".concat(item.id, "': ").concat(JSON.stringify({ isComponent, nonLeafChildren })), + ); + return component; + }) + .map(function (item) { + if (item.isLeaf) return item; + var children = item.children, + rest = data_objectWithoutProperties(item, ['children']), + rewritten = children.map(function (child) { + return componentIdToLeafId[child] || child; + }); + return Object.assign({ children: rewritten }, rest); + }), + result = {}; + return ( + childrenRewritten.forEach(function (item) { + result[item.id] = item; + }), + result + ); + }, + collapseDocsOnlyStories = function collapseDocsOnlyStories(storiesHash) { + var componentIdToLeafId = {}, + docsOnlyComponentsCollapsed = Object.values(storiesHash) + .filter(function (item) { + return ( + !(item.isLeaf && item.parameters && item.parameters.docsOnly) || + ((componentIdToLeafId[item.parent] = item.id), !1) + ); + }) + .map(function (item) { + var isComponent = item.isComponent, + children = item.children, + id = item.id; + if (isComponent && 1 === children.length) { + var leafId = componentIdToLeafId[id]; + if (leafId) return Object.assign({ args: {} }, item, { id: leafId, isLeaf: !0, children: [] }); + } + if (children) { + var rewritten = children.map(function (child) { + return componentIdToLeafId[child] || child; + }); + return Object.assign({}, item, { children: rewritten }); + } + return item; + }), + result = {}; + return ( + docsOnlyComponentsCollapsed.forEach(function (item) { + result[item.id] = item; + }), + result + ); + }, + polished_esm = __webpack_require__(1039), + link_link = + (__webpack_require__(88233), + __webpack_require__(48319), + __webpack_require__(85940), + __webpack_require__(13609)), + client_logger_dist_esm = __webpack_require__(87537), + LOADER_SEQUENCE = (__webpack_require__(92656), [0, 0, 1, 1, 2, 3, 3, 3, 1, 1, 1, 2, 2, 2, 3]), + Loadingitem = dist_esm.styled.div( + { + cursor: 'progress', + fontSize: 13, + height: '16px', + marginTop: 4, + marginBottom: 4, + alignItems: 'center', + overflow: 'hidden', + }, + function (_ref) { + var _ref$depth = _ref.depth, + depth = void 0 === _ref$depth ? 0 : _ref$depth; + return { marginLeft: 15 * depth, maxWidth: 85 - 5 * depth }; + }, + function (_ref2) { + return _ref2.theme.animation.inlineGlow; + }, + function (_ref3) { + return { background: _ref3.theme.appBorderColor }; + }, + ), + Contained = dist_esm.styled.div({ + display: 'flex', + flexDirection: 'column', + paddingLeft: 20, + paddingRight: 20, + }), + Loader = function Loader(_ref4) { + var size = _ref4.size, + repeats = Math.ceil(size / LOADER_SEQUENCE.length), + sequence = Array.from(Array(repeats)).fill(LOADER_SEQUENCE).flat().slice(0, size); + return react.createElement( + react.Fragment, + null, + sequence.map(function (depth, index) { + return react.createElement(Loadingitem, { depth, key: index }); + }), + ); + }; + function _toArray(arr) { + return ( + _arrayWithHoles(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + _nonIterableRest() + ); + } + function _slicedToArray(arr, i) { + return ( + _arrayWithHoles(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + _nonIterableRest() + ); + } + function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + Loader.displayName = 'Loader'; + var globalWindow = window_default().window, + RefBlocks_document = window_default().document, + TextStyle = dist_esm.styled.div(function (_ref) { + return { fontSize: _ref.theme.typography.size.s2 - 1, lineHeight: '20px', margin: 0 }; + }), + Text = dist_esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + fontSize: theme.typography.size.s2 - 1, + lineHeight: '20px', + margin: 0, + code: { fontSize: theme.typography.size.s1 }, + ul: { paddingLeft: 20, marginTop: 8, marginBottom: 8 }, + }; + }), + ErrorDisplay = dist_esm.styled.pre( + { width: 420, boxSizing: 'border-box', borderRadius: 8, overflow: 'auto', whiteSpace: 'pre' }, + function (_ref3) { + return { color: _ref3.theme.color.dark }; + }, + ), + ErrorName = dist_esm.styled.strong(function (_ref4) { + return { color: _ref4.theme.color.orange }; + }), + ErrorImportant = dist_esm.styled.strong(function (_ref5) { + return { color: _ref5.theme.color.ancillary, textDecoration: 'underline' }; + }), + ErrorDetail = dist_esm.styled.em(function (_ref6) { + return { color: _ref6.theme.color.mediumdark }; + }), + firstLineRegex = /(Error): (.*)\n/, + linesRegex = /at (?:(.*) )?\(?(.+)\)?/, + ErrorFormatter = function ErrorFormatter(_ref7) { + var error = _ref7.error; + if (!error) return react.createElement(react.Fragment, null, 'This error has no stack or message'); + if (!error.stack) + return react.createElement(react.Fragment, null, error.message || 'This error has no stack or message'); + var input = error.stack.toString(), + match = input.match(firstLineRegex); + if (!match) return react.createElement(react.Fragment, null, input); + var _match = _slicedToArray(match, 3), + type = _match[1], + name = _match[2], + _rawLines$map$filter = input + .split(/\n/) + .slice(1) + .map(function (line) { + var r = line.match(linesRegex); + return r ? { name: r[1], location: r[2].replace(RefBlocks_document.location.origin, '') } : null; + }) + .filter(Boolean), + lines = _toArray(_rawLines$map$filter).slice(1); + return react.createElement( + react.Fragment, + null, + react.createElement('span', null, type), + ': ', + react.createElement(ErrorName, null, name), + react.createElement('br', null), + lines.map(function (l, i) { + return l.name + ? react.createElement( + react.Fragment, + { key: i }, + ' ', + 'at ', + react.createElement(ErrorImportant, null, l.name), + ' (', + react.createElement(ErrorDetail, null, l.location), + ')', + react.createElement('br', null), + ) + : react.createElement( + react.Fragment, + { key: i }, + ' ', + 'at ', + react.createElement(ErrorDetail, null, l.location), + react.createElement('br', null), + ); + }), + ); + }; + ErrorFormatter.displayName = 'ErrorFormatter'; + var AuthBlock = function AuthBlock(_ref8) { + var loginUrl = _ref8.loginUrl, + id = _ref8.id, + _useState2 = _slicedToArray((0, react.useState)(!1), 2), + isAuthAttempted = _useState2[0], + setAuthAttempted = _useState2[1], + refresh = (0, react.useCallback)(function () { + globalWindow.document.location.reload(); + }, []), + open = (0, react.useCallback)(function (e) { + e.preventDefault(); + var childWindow = globalWindow.open(loginUrl, 'storybook_auth_'.concat(id), 'resizable,scrollbars'), + timer = setInterval(function () { + childWindow + ? childWindow.closed && (clearInterval(timer), setAuthAttempted(!0)) + : (client_logger_dist_esm.kg.error('unable to access loginUrl window'), clearInterval(timer)); + }, 1e3); + }, []); + return react.createElement( + Contained, + null, + react.createElement( + Spaced.q, + null, + isAuthAttempted + ? react.createElement( + react.Fragment, + null, + react.createElement( + Text, + null, + 'Authentication on ', + react.createElement('strong', null, loginUrl), + ' concluded. Refresh the page to fetch this Storybook.', + ), + react.createElement( + 'div', + null, + react.createElement( + Button.z, + { small: !0, gray: !0, onClick: refresh }, + react.createElement(icon_icon.P, { icon: 'sync' }), + 'Refresh now', + ), + ), + ) + : react.createElement( + react.Fragment, + null, + react.createElement(Text, null, 'Sign in to browse this Storybook.'), + react.createElement( + 'div', + null, + react.createElement( + Button.z, + { small: !0, gray: !0, onClick: open }, + react.createElement(icon_icon.P, { icon: 'lock' }), + 'Sign in', + ), + ), + ), + ), + ); + }; + AuthBlock.displayName = 'AuthBlock'; + var ErrorBlock = function ErrorBlock(_ref9) { + var error = _ref9.error; + return react.createElement( + Contained, + null, + react.createElement( + Spaced.q, + null, + react.createElement( + TextStyle, + null, + 'Oh no! Something went wrong loading this Storybook.', + react.createElement('br', null), + react.createElement( + lazy_WithTooltip.R, + { + trigger: 'click', + closeOnClick: !1, + tooltip: react.createElement(ErrorDisplay, null, react.createElement(ErrorFormatter, { error })), + }, + react.createElement( + link_link.r, + { isButton: !0 }, + 'View error ', + react.createElement(icon_icon.P, { icon: 'arrowdown' }), + ), + ), + ' ', + react.createElement( + link_link.r, + { withArrow: !0, href: 'https://storybook.js.org/docs', cancel: !1, target: '_blank' }, + 'View docs', + ), + ), + ), + ); + }; + ErrorBlock.displayName = 'ErrorBlock'; + var FlexSpaced = (0, dist_esm.styled)(Spaced.q)({ display: 'flex' }), + WideSpaced = (0, dist_esm.styled)(Spaced.q)({ flex: 1 }), + EmptyBlock = function EmptyBlock(_ref10) { + var isMain = _ref10.isMain; + return react.createElement( + Contained, + null, + react.createElement( + FlexSpaced, + { col: 1 }, + react.createElement( + WideSpaced, + null, + react.createElement( + Text, + null, + isMain + ? react.createElement( + react.Fragment, + null, + 'Oh no! Your Storybook is empty. Possible reasons why:', + react.createElement( + 'ul', + null, + react.createElement( + 'li', + null, + 'The glob specified in ', + react.createElement('code', null, 'main.js'), + " isn't correct.", + ), + react.createElement('li', null, 'No stories are defined in your story files.'), + ), + ' ', + ) + : react.createElement(react.Fragment, null, 'Yikes! Something went wrong loading these stories.'), + ), + ), + ), + ); + }; + EmptyBlock.displayName = 'EmptyBlock'; + var LoaderBlock = function LoaderBlock(_ref11) { + var isMain = _ref11.isMain; + return react.createElement(Contained, null, react.createElement(Loader, { size: isMain ? 17 : 5 })); + }; + LoaderBlock.displayName = 'LoaderBlock'; + __webpack_require__(49228); + function RefIndicator_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function RefIndicator_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function RefIndicator_slicedToArray(arr, i) { + return ( + (function RefIndicator_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function RefIndicator_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function RefIndicator_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return RefIndicator_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return RefIndicator_arrayLikeToArray(o, minLen); + })(arr, i) || + (function RefIndicator_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function RefIndicator_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var RefIndicator_document = window_default().document, + RefIndicator_globalWindow = window_default().window, + IndicatorPlacement = dist_esm.styled.aside(function (_ref) { + return { + height: 16, + display: 'flex', + alignItems: 'center', + '& > * + *': { marginLeft: _ref.theme.layoutMargin }, + }; + }), + IndicatorClickTarget = dist_esm.styled.button(function (_ref2) { + var theme = _ref2.theme; + return { + height: 20, + width: 20, + padding: 0, + margin: 0, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + background: 'transparent', + outline: 'none', + border: '1px solid transparent', + borderRadius: '100%', + cursor: 'pointer', + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.3, theme.color.defaultText) + : (0, polished_esm.DZ)(0.6, theme.color.defaultText), + '&:hover': { color: theme.barSelectedColor }, + '&:focus': { color: theme.barSelectedColor, borderColor: theme.color.secondary }, + svg: { height: 10, width: 10, transition: 'all 150ms ease-out', color: 'inherit' }, + }; + }), + MessageTitle = dist_esm.styled.span(function (_ref3) { + return { fontWeight: _ref3.theme.typography.weight.bold }; + }), + Message = dist_esm.styled.a(function (_ref4) { + var theme = _ref4.theme; + return { + textDecoration: 'none', + lineHeight: '16px', + padding: 15, + display: 'flex', + flexDirection: 'row', + alignItems: 'flex-start', + color: theme.color.defaultText, + '&:not(:last-child)': { borderBottom: '1px solid '.concat(theme.appBorderColor) }, + '&:hover': { background: theme.background.hoverable, color: theme.color.darker }, + '&:link': { color: theme.color.darker }, + '&:active': { color: theme.color.darker }, + '&:focus': { color: theme.color.darker }, + '& > *': { flex: 1 }, + '& > svg': { marginTop: 3, width: 16, height: 16, marginRight: 10, flex: 'unset' }, + }; + }), + MessageWrapper = dist_esm.styled.div({ + width: 280, + boxSizing: 'border-box', + borderRadius: 8, + overflow: 'hidden', + }), + BlueIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref5) { + return { color: _ref5.theme.color.secondary }; + }), + YellowIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref6) { + return { color: _ref6.theme.color.gold }; + }), + RedIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref7) { + return { color: _ref7.theme.color.negative }; + }), + GreenIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref8) { + return { color: _ref8.theme.color.green }; + }), + Version = dist_esm.styled.div(function (_ref9) { + var theme = _ref9.theme; + return { + display: 'flex', + alignItems: 'center', + fontSize: theme.typography.size.s1, + fontWeight: theme.typography.weight.regular, + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.3, theme.color.defaultText) + : (0, polished_esm.DZ)(0.6, theme.color.defaultText), + '& > * + *': { marginLeft: 4 }, + svg: { height: 10, width: 10 }, + }; + }), + CurrentVersion = function CurrentVersion(_ref10) { + var url = _ref10.url, + versions = _ref10.versions, + currentVersionId = (0, react.useMemo)( + function () { + var c = Object.entries(versions).find(function (_ref11) { + var _ref12 = RefIndicator_slicedToArray(_ref11, 2); + _ref12[0]; + return _ref12[1] === url; + }); + return c && c[0] ? c[0] : 'current'; + }, + [url, versions], + ); + return react.createElement( + Version, + null, + react.createElement('span', null, currentVersionId), + react.createElement(icon_icon.P, { icon: 'chevrondown' }), + ); + }; + CurrentVersion.displayName = 'CurrentVersion'; + var RefIndicator = react.memo( + (0, react.forwardRef)(function (_ref13, forwardedRef) { + var state = _ref13.state, + ref = RefIndicator_objectWithoutProperties(_ref13, ['state']), + api = (0, esm.Uo)(), + list = (0, react.useMemo)( + function () { + return Object.values(ref.stories || {}); + }, + [ref.stories], + ), + componentCount = (0, react.useMemo)( + function () { + return list.filter(function (v) { + return v.isComponent; + }).length; + }, + [list], + ), + leafCount = (0, react.useMemo)( + function () { + return list.filter(function (v) { + return v.isLeaf; + }).length; + }, + [list], + ), + changeVersion = (0, react.useCallback)(function (event, item) { + event.preventDefault(), api.changeRefVersion(ref.id, item.href); + }, []); + return react.createElement( + IndicatorPlacement, + { ref: forwardedRef }, + react.createElement( + lazy_WithTooltip.R, + { + placement: 'bottom-start', + trigger: 'click', + tooltip: react.createElement( + MessageWrapper, + null, + react.createElement( + Spaced.q, + { row: 0 }, + 'loading' === state && react.createElement(LoadingMessage, { url: ref.url }), + ('error' === state || 'empty' === state) && + react.createElement(ErrorOccurredMessage, { url: ref.url }), + 'ready' === state && + react.createElement(ReadyMessage, { url: ref.url, componentCount, leafCount }), + 'auth' === state && react.createElement(LoginRequiredMessage, ref), + 'auto-inject' === ref.type && + 'error' !== state && + react.createElement(PerformanceDegradedMessage, null), + 'loading' !== state && react.createElement(ReadDocsMessage, null), + ), + ), + }, + react.createElement( + IndicatorClickTarget, + { 'data-action': 'toggle-indicator', 'aria-label': 'toggle indicator' }, + react.createElement(icon_icon.P, { icon: 'globe' }), + ), + ), + ref.versions && Object.keys(ref.versions).length + ? react.createElement( + lazy_WithTooltip.R, + { + placement: 'bottom-start', + trigger: 'click', + tooltip: react.createElement(TooltipLinkList.$, { + links: Object.entries(ref.versions).map(function (_ref14) { + var _ref15 = RefIndicator_slicedToArray(_ref14, 2), + id = _ref15[0], + href = _ref15[1]; + return { + left: + href === ref.url + ? react.createElement(MenuItemIcon, { icon: 'check' }) + : react.createElement('span', null), + id, + title: id, + href, + onClick: changeVersion, + }; + }), + }), + }, + react.createElement(CurrentVersion, { url: ref.url, versions: ref.versions }), + ) + : null, + ); + }), + ), + ReadyMessage = function ReadyMessage(_ref16) { + var url = _ref16.url, + componentCount = _ref16.componentCount, + leafCount = _ref16.leafCount; + return react.createElement( + Message, + { href: url.replace(/\/?$/, '/index.html'), target: '_blank' }, + react.createElement(BlueIcon, { icon: 'globe' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'View external Storybook'), + react.createElement( + 'div', + null, + 'Explore ', + componentCount, + ' components and ', + leafCount, + ' stories in a new browser tab.', + ), + ), + ); + }; + ReadyMessage.displayName = 'ReadyMessage'; + var LoginRequiredMessage = function LoginRequiredMessage(_ref17) { + var loginUrl = _ref17.loginUrl, + id = _ref17.id, + open = (0, react.useCallback)(function (e) { + e.preventDefault(); + var childWindow = RefIndicator_globalWindow.open( + loginUrl, + 'storybook_auth_'.concat(id), + 'resizable,scrollbars', + ), + timer = setInterval(function () { + childWindow + ? childWindow.closed && (clearInterval(timer), RefIndicator_document.location.reload()) + : clearInterval(timer); + }, 1e3); + }, []); + return react.createElement( + Message, + { onClick: open }, + react.createElement(YellowIcon, { icon: 'lock' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'Log in required'), + react.createElement('div', null, "You need to authenticate to view this Storybook's components."), + ), + ); + }; + LoginRequiredMessage.displayName = 'LoginRequiredMessage'; + var ReadDocsMessage = function ReadDocsMessage() { + return react.createElement( + Message, + { href: 'https://storybook.js.org', target: '_blank' }, + react.createElement(GreenIcon, { icon: 'document' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'Read Composition docs'), + react.createElement('div', null, 'Learn how to combine multiple Storybooks into one.'), + ), + ); + }; + ReadDocsMessage.displayName = 'ReadDocsMessage'; + var ErrorOccurredMessage = function ErrorOccurredMessage(_ref18) { + var url = _ref18.url; + return react.createElement( + Message, + { href: url.replace(/\/?$/, '/index.html'), target: '_blank' }, + react.createElement(RedIcon, { icon: 'alert' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'Something went wrong'), + react.createElement('div', null, "This external Storybook didn't load. Debug it in a new tab now."), + ), + ); + }; + ErrorOccurredMessage.displayName = 'ErrorOccurredMessage'; + var LoadingMessage = function LoadingMessage(_ref19) { + var url = _ref19.url; + return react.createElement( + Message, + { href: url.replace(/\/?$/, '/index.html'), target: '_blank' }, + react.createElement(BlueIcon, { icon: 'time' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'Please wait'), + react.createElement('div', null, 'This Storybook is loading.'), + ), + ); + }; + LoadingMessage.displayName = 'LoadingMessage'; + var PerformanceDegradedMessage = function PerformanceDegradedMessage() { + return react.createElement( + Message, + { href: 'https://storybook.js.org/docs', target: '_blank' }, + react.createElement(YellowIcon, { icon: 'lightning' }), + react.createElement( + 'div', + null, + react.createElement(MessageTitle, null, 'Reduce lag'), + react.createElement('div', null, 'Learn how to speed up Composition performance.'), + ), + ); + }; + PerformanceDegradedMessage.displayName = 'PerformanceDegradedMessage'; + __webpack_require__(39529), __webpack_require__(31235); + function TreeNode_extends() { + return ( + (TreeNode_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + TreeNode_extends.apply(this, arguments) + ); + } + function TreeNode_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function TreeNode_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var DOCS_MODE = window_default().DOCS_MODE, + CollapseIcon = dist_esm.styled.span(function (_ref) { + var theme = _ref.theme, + isExpanded = _ref.isExpanded; + return { + display: 'inline-block', + width: 0, + height: 0, + marginTop: 6, + marginLeft: 8, + marginRight: 5, + color: (0, polished_esm.DZ)(0.4, theme.color.mediumdark), + borderTop: '3px solid transparent', + borderBottom: '3px solid transparent', + borderLeft: '3px solid', + transform: isExpanded ? 'rotateZ(90deg)' : 'none', + transition: 'transform .1s ease-out', + }; + }), + iconColors = { + light: { + document: DOCS_MODE ? 'secondary' : '#ff8300', + bookmarkhollow: 'seafoam', + component: 'secondary', + folder: 'ultraviolet', + }, + dark: { + document: DOCS_MODE ? 'secondary' : 'gold', + bookmarkhollow: 'seafoam', + component: 'secondary', + folder: 'primary', + }, + }, + isColor = function isColor(theme, color) { + return color in theme.color; + }, + TypeIcon = (0, dist_esm.styled)(icon_icon.P)( + { width: 12, height: 12, padding: 1, marginTop: 3, marginRight: 5, flex: '0 0 auto' }, + function (_ref2) { + var theme = _ref2.theme, + icon = _ref2.icon, + _ref2$symbol = _ref2.symbol, + symbol = void 0 === _ref2$symbol ? icon : _ref2$symbol, + color = ('dark' === theme.base ? iconColors.dark : iconColors.light)[symbol]; + return { color: isColor(theme, color) ? theme.color[color] : color }; + }, + ), + BranchNode = dist_esm.styled.button(function (_ref3) { + var theme = _ref3.theme, + _ref3$depth = _ref3.depth, + depth = void 0 === _ref3$depth ? 0 : _ref3$depth, + _ref3$isExpandable = _ref3.isExpandable; + return { + width: '100%', + border: 'none', + cursor: 'pointer', + display: 'flex', + alignItems: 'start', + textAlign: 'left', + padding: 3, + paddingLeft: ''.concat((void 0 !== _ref3$isExpandable && _ref3$isExpandable ? 2 : 18) + 16 * depth, 'px'), + color: 'inherit', + fontSize: ''.concat(theme.typography.size.s2 - 1, 'px'), + background: 'transparent', + '&:hover, &:focus': { background: theme.background.hoverable, outline: 'none' }, + }; + }), + LeafNode = dist_esm.styled.a(function (_ref4) { + var theme = _ref4.theme, + _ref4$depth = _ref4.depth; + return { + cursor: 'pointer', + display: 'flex', + alignItems: 'start', + padding: 3, + paddingLeft: ''.concat(18 + 16 * (void 0 === _ref4$depth ? 0 : _ref4$depth), 'px'), + fontSize: ''.concat(theme.typography.size.s2 - 1, 'px'), + textDecoration: 'none', + color: theme.color.defaultText, + background: 'transparent', + '&:hover, &:focus': { outline: 'none', background: theme.background.hoverable }, + '&[data-selected="true"]': { + color: theme.color.lightest, + background: theme.color.secondary, + fontWeight: theme.typography.weight.bold, + '&:hover, &:focus': { background: theme.color.secondary }, + svg: { color: theme.color.lightest }, + }, + }; + }), + Path = dist_esm.styled.span(function (_ref5) { + var theme = _ref5.theme; + return { + display: 'grid', + justifyContent: 'start', + gridAutoColumns: 'auto', + gridAutoFlow: 'column', + color: theme.textMutedColor, + fontSize: ''.concat(theme.typography.size.s1 - 1, 'px'), + '& > span': { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }, + '& > span + span': { + position: 'relative', + marginLeft: 4, + paddingLeft: 7, + '&:before': { content: "'/'", position: 'absolute', left: 0 }, + }, + }; + }), + RootNode = dist_esm.styled.div(function (_ref6) { + var theme = _ref6.theme; + return { + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + padding: '0 20px', + marginTop: 16, + marginBottom: 4, + fontSize: ''.concat(theme.typography.size.s1 - 1, 'px'), + fontWeight: theme.typography.weight.black, + lineHeight: '16px', + minHeight: 20, + letterSpacing: '0.35em', + textTransform: 'uppercase', + color: theme.color.mediumdark, + }; + }), + GroupNode = react.memo(function (_ref7) { + var children = _ref7.children, + _ref7$isExpanded = _ref7.isExpanded, + isExpanded = void 0 !== _ref7$isExpanded && _ref7$isExpanded, + _ref7$isExpandable = _ref7.isExpandable, + isExpandable = void 0 !== _ref7$isExpandable && _ref7$isExpandable, + props = TreeNode_objectWithoutProperties(_ref7, ['children', 'isExpanded', 'isExpandable']); + return react.createElement( + BranchNode, + TreeNode_extends({ isExpandable, tabIndex: -1 }, props), + isExpandable ? react.createElement(CollapseIcon, { isExpanded }) : null, + react.createElement(TypeIcon, { symbol: 'folder', color: 'primary' }), + children, + ); + }), + ComponentNode = react.memo(function (_ref8) { + _ref8.theme; + var children = _ref8.children, + isExpanded = _ref8.isExpanded, + isExpandable = _ref8.isExpandable, + props = + (_ref8.isSelected, + TreeNode_objectWithoutProperties(_ref8, [ + 'theme', + 'children', + 'isExpanded', + 'isExpandable', + 'isSelected', + ])); + return react.createElement( + BranchNode, + TreeNode_extends({ isExpandable, tabIndex: -1 }, props), + isExpandable && react.createElement(CollapseIcon, { isExpanded }), + react.createElement(TypeIcon, { symbol: 'component', color: 'secondary' }), + children, + ); + }), + DocumentNode = react.memo(function (_ref9) { + _ref9.theme; + var children = _ref9.children, + props = TreeNode_objectWithoutProperties(_ref9, ['theme', 'children']); + return react.createElement( + LeafNode, + TreeNode_extends({ tabIndex: -1 }, props), + react.createElement(TypeIcon, { symbol: 'document' }), + children, + ); + }), + StoryNode = react.memo(function (_ref10) { + _ref10.theme; + var children = _ref10.children, + props = TreeNode_objectWithoutProperties(_ref10, ['theme', 'children']); + return react.createElement( + LeafNode, + TreeNode_extends({ tabIndex: -1 }, props), + react.createElement(TypeIcon, { symbol: 'bookmarkhollow' }), + children, + ); + }), + core_events_dist_esm = (__webpack_require__(67789), __webpack_require__(69844)), + throttle = __webpack_require__(12436), + throttle_default = __webpack_require__.n(throttle), + codeToKeyMap = { + Space: ' ', + Slash: '/', + ArrowLeft: 'ArrowLeft', + ArrowUp: 'ArrowUp', + ArrowRight: 'ArrowRight', + ArrowDown: 'ArrowDown', + Escape: 'Escape', + Enter: 'Enter', + }, + allFalse = { alt: !1, ctrl: !1, meta: !1, shift: !1 }, + matchesModifiers = function matchesModifiers(modifiers, event) { + var _ref = !1 === modifiers ? allFalse : modifiers, + alt = _ref.alt, + ctrl = _ref.ctrl, + meta = _ref.meta, + shift = _ref.shift; + return ( + ('boolean' != typeof alt || alt === event.altKey) && + ('boolean' != typeof ctrl || ctrl === event.ctrlKey) && + ('boolean' != typeof meta || meta === event.metaKey) && + ('boolean' != typeof shift || shift === event.shiftKey) + ); + }, + matchesKeyCode = function matchesKeyCode(code, event) { + return event.code ? event.code === code : event.key === codeToKeyMap[code]; + }; + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return utils_arrayLikeToArray(arr); + })(arr) || + (function utils_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function utils_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return utils_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return utils_arrayLikeToArray(o, minLen); + })(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function utils_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var utils_document = window_default().document, + utils_globalWindow = window_default().window, + utils_DOCS_MODE = window_default().DOCS_MODE, + createId = function createId(itemId, refId) { + return refId && refId !== DEFAULT_REF_ID ? ''.concat(refId, '_').concat(itemId) : itemId; + }, + getLink = function getLink(itemId, refId) { + var type = utils_DOCS_MODE ? 'docs' : 'story'; + return '' + .concat(utils_document.location.pathname, '?path=/') + .concat(type, '/') + .concat(createId(itemId, refId)); + }, + utils_get = memoizerific_default()(1e3)(function (id, dataset) { + return dataset[id]; + }), + getParent = memoizerific_default()(1e3)(function (id, dataset) { + var item = utils_get(id, dataset); + return item && !(0, esm.C_)(item) ? utils_get(item.parent, dataset) : void 0; + }), + getParents = memoizerific_default()(1e3)(function (id, dataset) { + var parent = getParent(id, dataset); + return parent ? [parent].concat(_toConsumableArray(getParents(parent.id, dataset))) : []; + }), + getAncestorIds = memoizerific_default()(1e3)(function (data, id) { + return getParents(id, data).map(function (item) { + return item.id; + }); + }), + getDescendantIds = memoizerific_default()(1e3)(function (data, id, skipLeafs) { + var _ref$children = (data[id] || {}).children; + return (void 0 === _ref$children ? [] : _ref$children).reduce(function (acc, childId) { + return ( + !data[childId] || + (skipLeafs && data[childId].isLeaf) || + acc.push.apply(acc, [childId].concat(_toConsumableArray(getDescendantIds(data, childId, skipLeafs)))), + acc + ); + }, []); + }); + function getPath(item, ref) { + var parent = !(0, esm.C_)(item) && item.parent ? ref.stories[item.parent] : null; + return parent + ? [].concat(_toConsumableArray(getPath(parent, ref)), [parent.name]) + : ref.id === DEFAULT_REF_ID + ? [] + : [ref.title || ref.id]; + } + var searchItem = function searchItem(item, ref) { + return Object.assign({}, item, { refId: ref.id, path: getPath(item, ref) }); + }; + var scrollIntoView = function scrollIntoView(element) { + var center = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; + if (element) { + var _element$getBoundingC = element.getBoundingClientRect(), + top = _element$getBoundingC.top, + bottom = _element$getBoundingC.bottom, + isInView = + top >= 0 && bottom <= (utils_globalWindow.innerHeight || utils_document.documentElement.clientHeight); + isInView || element.scrollIntoView({ block: center ? 'center' : 'nearest' }); + } + }, + isAncestor = function isAncestor(element, maybeAncestor) { + return ( + !(!element || !maybeAncestor) && + (element === maybeAncestor || isAncestor(element.parentElement, maybeAncestor)) + ); + }; + function useExpanded_slicedToArray(arr, i) { + return ( + (function useExpanded_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function useExpanded_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + useExpanded_unsupportedIterableToArray(arr, i) || + (function useExpanded_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function useExpanded_toConsumableArray(arr) { + return ( + (function useExpanded_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return useExpanded_arrayLikeToArray(arr); + })(arr) || + (function useExpanded_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + useExpanded_unsupportedIterableToArray(arr) || + (function useExpanded_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function useExpanded_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return useExpanded_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? useExpanded_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function useExpanded_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var useExpanded_document = window_default().document, + initializeExpanded = function initializeExpanded(_ref) { + var _highlightedRef$curre, + _highlightedRef$curre2, + refId = _ref.refId, + data = _ref.data, + initialExpanded = _ref.initialExpanded, + highlightedRef = _ref.highlightedRef, + rootIds = _ref.rootIds, + highlightedAncestors = + (null === (_highlightedRef$curre = highlightedRef.current) || void 0 === _highlightedRef$curre + ? void 0 + : _highlightedRef$curre.refId) === refId + ? getAncestorIds( + data, + null === (_highlightedRef$curre2 = highlightedRef.current) || void 0 === _highlightedRef$curre2 + ? void 0 + : _highlightedRef$curre2.itemId, + ) + : []; + return [] + .concat(useExpanded_toConsumableArray(rootIds), useExpanded_toConsumableArray(highlightedAncestors)) + .reduce(function (acc, id) { + return Object.assign(acc, _defineProperty({}, id, !(id in initialExpanded) || initialExpanded[id])); + }, {}); + }, + noop = function noop() {}; + function Tree_toConsumableArray(arr) { + return ( + (function Tree_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Tree_arrayLikeToArray(arr); + })(arr) || + (function Tree_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + Tree_unsupportedIterableToArray(arr) || + (function Tree_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Tree_slicedToArray(arr, i) { + return ( + (function Tree_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Tree_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + Tree_unsupportedIterableToArray(arr, i) || + (function Tree_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Tree_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return Tree_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? Tree_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function Tree_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function Tree_extends() { + return ( + (Tree_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + Tree_extends.apply(this, arguments) + ); + } + function Tree_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function Tree_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var Action = dist_esm.styled.button(function (_ref) { + var theme = _ref.theme; + return { + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center', + width: 20, + height: 20, + margin: 0, + marginLeft: 'auto', + padding: 0, + outline: 0, + lineHeight: 'normal', + background: 'none', + border: '1px solid transparent', + borderRadius: '100%', + cursor: 'pointer', + transition: 'all 150ms ease-out', + color: + 'light' === theme.base + ? (0, polished_esm.DZ)(0.3, theme.color.defaultText) + : (0, polished_esm.DZ)(0.6, theme.color.defaultText), + '&:hover': { color: theme.color.secondary }, + '&:focus': { + color: theme.color.secondary, + borderColor: theme.color.secondary, + '&:not(:focus-visible)': { borderColor: 'transparent' }, + }, + svg: { width: 10, height: 10 }, + }; + }), + CollapseButton = dist_esm.styled.button(function (_ref2) { + var theme = _ref2.theme; + return { + background: 'transparent', + border: 'none', + outline: 'none', + boxSizing: 'content-box', + cursor: 'pointer', + position: 'relative', + textAlign: 'left', + lineHeight: 'normal', + font: 'inherit', + color: 'inherit', + letterSpacing: 'inherit', + textTransform: 'inherit', + display: 'flex', + flex: '0 1 auto', + padding: '3px 10px 1px 1px', + margin: 0, + marginLeft: -19, + overflow: 'hidden', + borderRadius: 26, + transition: 'color 150ms, box-shadow 150ms', + 'span:first-of-type': { marginTop: 4, marginRight: 7 }, + '&:focus': { + boxShadow: '0 0 0 1px '.concat(theme.color.secondary), + color: theme.color.secondary, + 'span:first-of-type': { color: theme.color.secondary }, + '&:not(:focus-visible)': { boxShadow: 'none' }, + }, + }; + }), + LeafNodeStyleWrapper = dist_esm.styled.div(function (_ref3) { + _ref3.theme; + return { position: 'relative' }; + }), + SkipToContentLink = (0, dist_esm.styled)(Button.z)(function (_ref4) { + _ref4.theme; + return { + display: 'none', + '@media (min-width: 600px)': { + display: 'block', + zIndex: -1, + position: 'absolute', + top: 1, + right: 20, + height: '20px', + fontSize: '10px', + padding: '5px 10px', + '&:focus': { background: 'white', zIndex: 1 }, + }, + }; + }), + Node = react.memo(function (_ref5) { + var _item$renderLabel3, + item = _ref5.item, + refId = _ref5.refId, + isOrphan = _ref5.isOrphan, + isDisplayed = _ref5.isDisplayed, + isSelected = _ref5.isSelected, + isFullyExpanded = _ref5.isFullyExpanded, + setFullyExpanded = _ref5.setFullyExpanded, + isExpanded = _ref5.isExpanded, + setExpanded = _ref5.setExpanded, + onSelectStoryId = _ref5.onSelectStoryId; + if (!isDisplayed) return null; + var _item$renderLabel2, + id = createId(item.id, refId); + if ((0, esm.zK)(item)) { + var _item$renderLabel, + LeafNode = item.isComponent ? DocumentNode : StoryNode; + return react.createElement( + LeafNodeStyleWrapper, + null, + react.createElement( + LeafNode, + { + key: id, + id, + className: 'sidebar-item', + 'data-ref-id': refId, + 'data-item-id': item.id, + 'data-parent-id': item.parent, + 'data-nodetype': item.isComponent ? 'document' : 'story', + 'data-selected': isSelected, + 'data-highlightable': isDisplayed, + depth: isOrphan ? item.depth : item.depth - 1, + href: getLink(item.id, refId), + onClick: function onClick(event) { + event.preventDefault(), onSelectStoryId(item.id); + }, + }, + (null === (_item$renderLabel = item.renderLabel) || void 0 === _item$renderLabel + ? void 0 + : _item$renderLabel.call(item, item)) || item.name, + ), + isSelected && + react.createElement( + SkipToContentLink, + { secondary: !0, outline: !0, isLink: !0, href: '#storybook-preview-wrapper' }, + 'Skip to canvas', + ), + ); + } + if ((0, esm.C_)(item)) + return react.createElement( + RootNode, + { + key: id, + id, + className: 'sidebar-subheading', + 'data-ref-id': refId, + 'data-item-id': item.id, + 'data-nodetype': 'root', + 'aria-expanded': isExpanded, + }, + react.createElement( + CollapseButton, + { + type: 'button', + 'data-action': 'collapse-root', + onClick: function onClick(event) { + event.preventDefault(), setExpanded({ ids: [item.id], value: !isExpanded }); + }, + }, + react.createElement(CollapseIcon, { isExpanded }), + (null === (_item$renderLabel2 = item.renderLabel) || void 0 === _item$renderLabel2 + ? void 0 + : _item$renderLabel2.call(item, item)) || item.name, + ), + isExpanded && + react.createElement( + Action, + { + type: 'button', + className: 'sidebar-subheading-action', + 'aria-label': 'expand', + 'data-action': 'expand-all', + 'data-expanded': isFullyExpanded, + onClick: function onClick(event) { + event.preventDefault(), setFullyExpanded(); + }, + }, + react.createElement(icon_icon.P, { icon: isFullyExpanded ? 'collapse' : 'expandalt' }), + ), + ); + var BranchNode = item.isComponent ? ComponentNode : GroupNode; + return react.createElement( + BranchNode, + { + key: id, + id, + className: 'sidebar-item', + 'data-ref-id': refId, + 'data-item-id': item.id, + 'data-parent-id': item.parent, + 'data-nodetype': item.isComponent ? 'component' : 'group', + 'data-highlightable': isDisplayed, + 'aria-controls': item.children && item.children[0], + 'aria-expanded': isExpanded, + depth: isOrphan ? item.depth : item.depth - 1, + isComponent: item.isComponent, + isExpandable: item.children && item.children.length > 0, + isExpanded, + onClick: function onClick(event) { + event.preventDefault(), + setExpanded({ ids: [item.id], value: !isExpanded }), + item.isComponent && !isExpanded && onSelectStoryId(item.id); + }, + }, + (null === (_item$renderLabel3 = item.renderLabel) || void 0 === _item$renderLabel3 + ? void 0 + : _item$renderLabel3.call(item, item)) || item.name, + ); + }), + Tree_Root = react.memo(function (_ref6) { + var setExpanded = _ref6.setExpanded, + isFullyExpanded = _ref6.isFullyExpanded, + expandableDescendants = _ref6.expandableDescendants, + props = Tree_objectWithoutProperties(_ref6, ['setExpanded', 'isFullyExpanded', 'expandableDescendants']), + setFullyExpanded = (0, react.useCallback)( + function () { + return setExpanded({ ids: expandableDescendants, value: !isFullyExpanded }); + }, + [setExpanded, isFullyExpanded, expandableDescendants], + ); + return react.createElement(Node, Tree_extends({}, props, { setExpanded, isFullyExpanded, setFullyExpanded })); + }), + Container = dist_esm.styled.div(function (props) { + return { marginTop: props.hasOrphans ? 20 : 0, marginBottom: 20 }; + }), + Tree = react.memo(function (_ref7) { + var isBrowsing = _ref7.isBrowsing, + isMain = _ref7.isMain, + refId = _ref7.refId, + data = _ref7.data, + highlightedRef = _ref7.highlightedRef, + setHighlightedItemId = _ref7.setHighlightedItemId, + selectedStoryId = _ref7.selectedStoryId, + onSelectStoryId = _ref7.onSelectStoryId, + containerRef = (0, react.useRef)(null), + _useMemo2 = Tree_slicedToArray( + (0, react.useMemo)( + function () { + return Object.keys(data).reduce( + function (acc, id) { + var item = data[id]; + return ( + (0, esm.C_)(item) ? acc[0].push(id) : item.parent || acc[1].push(id), + (0, esm.C_)(item) && item.startCollapsed && (acc[2][id] = !1), + acc + ); + }, + [[], [], {}], + ); + }, + [data], + ), + 3, + ), + rootIds = _useMemo2[0], + orphanIds = _useMemo2[1], + initialExpanded = _useMemo2[2], + _useMemo3 = (0, react.useMemo)( + function () { + return orphanIds.concat(rootIds).reduce( + function (acc, nodeId) { + var _acc$orphansFirst, + descendantIds = getDescendantIds(data, nodeId, !1); + return ( + (_acc$orphansFirst = acc.orphansFirst).push.apply( + _acc$orphansFirst, + [nodeId].concat(Tree_toConsumableArray(descendantIds)), + ), + (acc.expandableDescendants[nodeId] = descendantIds.filter(function (d) { + return !data[d].isLeaf; + })), + acc + ); + }, + { orphansFirst: [], expandableDescendants: {} }, + ); + }, + [data, rootIds, orphanIds], + ), + orphansFirst = _useMemo3.orphansFirst, + expandableDescendants = _useMemo3.expandableDescendants, + singleStoryComponentIds = (0, react.useMemo)( + function () { + return orphansFirst.filter(function (nodeId) { + var _data$nodeId = data[nodeId], + _data$nodeId$children = _data$nodeId.children, + children = void 0 === _data$nodeId$children ? [] : _data$nodeId$children, + isComponent = _data$nodeId.isComponent, + isLeaf = _data$nodeId.isLeaf, + name = _data$nodeId.name; + return ( + !isLeaf && + isComponent && + 1 === children.length && + (0, esm.zK)(data[children[0]]) && + data[children[0]].name === name + ); + }); + }, + [data, orphansFirst], + ), + collapsedItems = (0, react.useMemo)( + function () { + return orphansFirst.filter(function (id) { + return !singleStoryComponentIds.includes(id); + }); + }, + [orphanIds, orphansFirst, singleStoryComponentIds], + ), + collapsedData = (0, react.useMemo)( + function () { + return singleStoryComponentIds.reduce(function (acc, id) { + var _ref8 = data[id], + children = _ref8.children, + parent = _ref8.parent, + childId = Tree_slicedToArray(children, 1)[0]; + if (parent) { + var siblings = Tree_toConsumableArray(data[parent].children); + (siblings[siblings.indexOf(id)] = childId), + (acc[parent] = Object.assign({}, data[parent], { children: siblings })); + } + return ( + (acc[childId] = Object.assign({}, data[childId], { parent, depth: data[childId].depth - 1 })), acc + ); + }, Object.assign({}, data)); + }, + [data], + ), + ancestry = (0, react.useMemo)( + function () { + return collapsedItems.reduce(function (acc, id) { + return Object.assign( + acc, + (function Tree_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, id, getAncestorIds(collapsedData, id)), + ); + }, {}); + }, + [collapsedItems, collapsedData], + ), + _useExpanded = (function useExpanded(_ref2) { + var containerRef = _ref2.containerRef, + isBrowsing = _ref2.isBrowsing, + refId = _ref2.refId, + data = _ref2.data, + initialExpanded = _ref2.initialExpanded, + rootIds = _ref2.rootIds, + highlightedRef = _ref2.highlightedRef, + setHighlightedItemId = _ref2.setHighlightedItemId, + selectedStoryId = _ref2.selectedStoryId, + onSelectStoryId = _ref2.onSelectStoryId, + api = (0, esm.Uo)(), + _useReducer2 = useExpanded_slicedToArray( + (0, react.useReducer)( + function (state, _ref3) { + var ids = _ref3.ids, + value = _ref3.value; + return ids.reduce(function (acc, id) { + return Object.assign(acc, _defineProperty({}, id, value)); + }, Object.assign({}, state)); + }, + { refId, data, highlightedRef, rootIds, initialExpanded }, + initializeExpanded, + ), + 2, + ), + expanded = _useReducer2[0], + setExpanded = _useReducer2[1], + getElementByDataItemId = (0, react.useCallback)( + function (id) { + var _containerRef$current; + return null === (_containerRef$current = containerRef.current) || void 0 === _containerRef$current + ? void 0 + : _containerRef$current.querySelector('[data-item-id="'.concat(id, '"]')); + }, + [containerRef], + ), + highlightElement = (0, react.useCallback)( + function (element) { + setHighlightedItemId(element.getAttribute('data-item-id')), scrollIntoView(element); + }, + [setHighlightedItemId], + ), + updateExpanded = (0, react.useCallback)( + function (_ref4) { + var ids = _ref4.ids, + value = _ref4.value; + if ((setExpanded({ ids, value }), 1 === ids.length)) { + var _containerRef$current2, + element = + null === (_containerRef$current2 = containerRef.current) || void 0 === _containerRef$current2 + ? void 0 + : _containerRef$current2.querySelector( + '[data-item-id="'.concat(ids[0], '"][data-ref-id="').concat(refId, '"]'), + ); + element && highlightElement(element); + } + }, + [containerRef, highlightElement, refId], + ); + (0, react.useEffect)( + function () { + setExpanded({ ids: getAncestorIds(data, selectedStoryId), value: !0 }); + }, + [data, selectedStoryId], + ); + var collapseAll = (0, react.useCallback)( + function () { + var ids = Object.keys(data).filter(function (id) { + return !rootIds.includes(id); + }); + setExpanded({ ids, value: !1 }); + }, + [data, rootIds], + ), + expandAll = (0, react.useCallback)( + function () { + setExpanded({ ids: Object.keys(data), value: !0 }); + }, + [data], + ); + return ( + (0, react.useEffect)( + function () { + return api + ? (api.on(core_events_dist_esm.STORIES_COLLAPSE_ALL, collapseAll), + api.on(core_events_dist_esm.STORIES_EXPAND_ALL, expandAll), + function () { + api.off(core_events_dist_esm.STORIES_COLLAPSE_ALL, collapseAll), + api.off(core_events_dist_esm.STORIES_EXPAND_ALL, expandAll); + }) + : noop; + }, + [api, collapseAll, expandAll], + ), + (0, react.useEffect)( + function () { + var menuElement = useExpanded_document.getElementById('storybook-explorer-menu'), + navigateTree = throttle_default()(function (event) { + var _highlightedRef$curre3, + _highlightedRef$curre4, + highlightedItemId = + (null === (_highlightedRef$curre3 = highlightedRef.current) || + void 0 === _highlightedRef$curre3 + ? void 0 + : _highlightedRef$curre3.refId) === refId && + (null === (_highlightedRef$curre4 = highlightedRef.current) || + void 0 === _highlightedRef$curre4 + ? void 0 + : _highlightedRef$curre4.itemId); + if ( + isBrowsing && + containerRef.current && + highlightedItemId && + !event.repeat && + matchesModifiers(!1, event) + ) { + var isEnter = matchesKeyCode('Enter', event), + isSpace = matchesKeyCode('Space', event), + isArrowLeft = matchesKeyCode('ArrowLeft', event), + isArrowRight = matchesKeyCode('ArrowRight', event); + if (isEnter || isSpace || isArrowLeft || isArrowRight) { + var highlightedElement = getElementByDataItemId(highlightedItemId); + if (highlightedElement && highlightedElement.getAttribute('data-ref-id') === refId) { + var target = event.target; + if (isAncestor(menuElement, target) || isAncestor(target, menuElement)) { + if (target.hasAttribute('data-action')) { + if (isEnter || isSpace) return; + target.blur(); + } + var type = highlightedElement.getAttribute('data-nodetype'); + (isEnter || isSpace) && + ['component', 'story', 'document'].includes(type) && + onSelectStoryId(highlightedItemId); + var isExpanded = highlightedElement.getAttribute('aria-expanded'); + if (isArrowLeft) { + if ('true' === isExpanded) + return void setExpanded({ ids: [highlightedItemId], value: !1 }); + var parentId = highlightedElement.getAttribute('data-parent-id'), + parentElement = parentId && getElementByDataItemId(parentId); + return parentElement && 'true' === parentElement.getAttribute('data-highlightable') + ? void highlightElement(parentElement) + : void setExpanded({ + ids: getDescendantIds(data, highlightedItemId, !0), + value: !1, + }); + } + isArrowRight && + ('false' === isExpanded + ? updateExpanded({ ids: [highlightedItemId], value: !0 }) + : 'true' === isExpanded && + updateExpanded({ + ids: getDescendantIds(data, highlightedItemId, !0), + value: !0, + })); + } + } + } + } + }, 60); + return ( + useExpanded_document.addEventListener('keydown', navigateTree), + function () { + return useExpanded_document.removeEventListener('keydown', navigateTree); + } + ); + }, + [containerRef, isBrowsing, refId, data, highlightedRef, setHighlightedItemId, onSelectStoryId], + ), + [expanded, updateExpanded] + ); + })({ + containerRef, + isBrowsing, + refId, + data: collapsedData, + initialExpanded, + rootIds, + highlightedRef, + setHighlightedItemId, + selectedStoryId, + onSelectStoryId, + }), + _useExpanded2 = Tree_slicedToArray(_useExpanded, 2), + expanded = _useExpanded2[0], + setExpanded = _useExpanded2[1]; + return react.createElement( + Container, + { ref: containerRef, hasOrphans: isMain && orphanIds.length > 0 }, + collapsedItems.map(function (itemId) { + var item = collapsedData[itemId], + id = createId(itemId, refId); + if ((0, esm.C_)(item)) { + var descendants = expandableDescendants[item.id], + isFullyExpanded = descendants.every(function (d) { + return expanded[d]; + }); + return react.createElement(Tree_Root, { + key: id, + item, + refId, + isOrphan: !1, + isDisplayed: !0, + isSelected: selectedStoryId === itemId, + isExpanded: !!expanded[itemId], + setExpanded, + isFullyExpanded, + expandableDescendants: descendants, + onSelectStoryId, + }); + } + var isDisplayed = + !item.parent || + ancestry[itemId].every(function (a) { + return expanded[a]; + }); + return react.createElement(Node, { + key: id, + item, + refId, + isOrphan: orphanIds.some(function (oid) { + return itemId === oid || itemId.startsWith(''.concat(oid, '-')); + }), + isDisplayed, + isSelected: selectedStoryId === itemId, + isExpanded: !!expanded[itemId], + setExpanded, + onSelectStoryId, + }); + }), + ); + }); + function Refs_extends() { + return ( + (Refs_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + Refs_extends.apply(this, arguments) + ); + } + function Refs_slicedToArray(arr, i) { + return ( + (function Refs_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Refs_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function Refs_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Refs_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Refs_arrayLikeToArray(o, minLen); + })(arr, i) || + (function Refs_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Refs_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Wrapper = dist_esm.styled.div(function (_ref) { + return { position: 'relative', marginLeft: -20, marginRight: -20, marginTop: _ref.isMain ? void 0 : 0 }; + }), + RefHead = dist_esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + fontWeight: theme.typography.weight.black, + fontSize: theme.typography.size.s2 - 1, + textDecoration: 'none', + lineHeight: '16px', + display: 'flex', + alignItems: 'center', + justifyContent: 'space-between', + background: 'transparent', + width: '100%', + marginTop: 20, + paddingTop: 16, + borderTop: '1px solid '.concat(theme.appBorderColor), + color: + 'light' === theme.base ? theme.color.defaultText : (0, polished_esm.DZ)(0.2, theme.color.defaultText), + }; + }), + RefTitle = dist_esm.styled.span(function (_ref3) { + _ref3.theme; + return { + display: 'block', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + flex: 1, + overflow: 'hidden', + marginLeft: 2, + }; + }), + Refs_CollapseButton = dist_esm.styled.button(function (_ref4) { + var theme = _ref4.theme; + return { + background: 'transparent', + border: '1px solid transparent', + borderRadius: 26, + outline: 'none', + boxSizing: 'content-box', + cursor: 'pointer', + position: 'relative', + textAlign: 'left', + lineHeight: 'normal', + font: 'inherit', + color: 'inherit', + display: 'flex', + padding: 3, + paddingLeft: 1, + paddingRight: 12, + margin: 0, + marginLeft: -20, + overflow: 'hidden', + 'span:first-of-type': { marginTop: 5 }, + '&:focus': { + borderColor: theme.color.secondary, + 'span:first-of-type': { borderLeftColor: theme.color.secondary }, + }, + }; + }), + Ref = react.memo(function (props) { + var api = (0, esm.Uo)(), + stories = props.stories, + refId = props.id, + _props$title = props.title, + title = void 0 === _props$title ? refId : _props$title, + isLoadingMain = props.isLoading, + isBrowsing = props.isBrowsing, + selectedStoryId = props.selectedStoryId, + highlightedRef = props.highlightedRef, + setHighlighted = props.setHighlighted, + loginUrl = props.loginUrl, + type = props.type, + _props$expanded = props.expanded, + expanded = void 0 === _props$expanded || _props$expanded, + ready = props.ready, + error = props.error, + length = (0, react.useMemo)( + function () { + return stories ? Object.keys(stories).length : 0; + }, + [stories], + ), + indicatorRef = (0, react.useRef)(null), + isMain = refId === DEFAULT_REF_ID, + isLoading = isLoadingMain || ('auto-inject' === type && !ready) || 'unknown' === type, + state = (function getStateType(isLoading, isAuthRequired, isError, isEmpty) { + switch (!0) { + case isAuthRequired: + return 'auth'; + case isError: + return 'error'; + case isLoading: + return 'loading'; + case isEmpty: + return 'empty'; + default: + return 'ready'; + } + })(isLoading, !!loginUrl && 0 === length, !!error, !isLoading && 0 === length), + _useState2 = Refs_slicedToArray((0, react.useState)(expanded), 2), + isExpanded = _useState2[0], + setExpanded = _useState2[1], + handleClick = (0, react.useCallback)( + function () { + return setExpanded(function (value) { + return !value; + }); + }, + [setExpanded], + ), + setHighlightedItemId = (0, react.useCallback)( + function (itemId) { + return setHighlighted({ itemId, refId }); + }, + [setHighlighted], + ), + onSelectStoryId = (0, react.useCallback)( + function (storyId) { + return api && api.selectStory(storyId, void 0, { ref: !isMain && refId }); + }, + [api, isMain, refId], + ); + return react.createElement( + react.Fragment, + null, + isMain || + react.createElement( + RefHead, + { + 'aria-label': ''.concat(isExpanded ? 'Hide' : 'Show', ' ').concat(title, ' stories'), + 'aria-expanded': isExpanded, + }, + react.createElement( + Refs_CollapseButton, + { 'data-action': 'collapse-ref', onClick: handleClick }, + react.createElement(CollapseIcon, { isExpanded }), + react.createElement(RefTitle, { title }, title), + ), + react.createElement(RefIndicator, Refs_extends({}, props, { state, ref: indicatorRef })), + ), + isExpanded && + react.createElement( + Wrapper, + { 'data-title': title, isMain }, + 'auth' === state && react.createElement(AuthBlock, { id: refId, loginUrl }), + 'error' === state && react.createElement(ErrorBlock, { error }), + 'loading' === state && react.createElement(LoaderBlock, { isMain }), + 'empty' === state && react.createElement(EmptyBlock, { isMain }), + 'ready' === state && + react.createElement(Tree, { + isBrowsing, + isMain, + refId, + data: stories, + selectedStoryId, + onSelectStoryId, + highlightedRef, + setHighlightedItemId, + }), + ), + ); + }); + __webpack_require__(9949); + function useHighlighted_slicedToArray(arr, i) { + return ( + (function useHighlighted_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function useHighlighted_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function useHighlighted_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return useHighlighted_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return useHighlighted_arrayLikeToArray(o, minLen); + })(arr, i) || + (function useHighlighted_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function useHighlighted_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var useHighlighted_document = window_default().document, + useHighlighted_globalWindow = window_default().window, + fromSelection = function fromSelection(selection) { + return selection ? { itemId: selection.storyId, refId: selection.refId } : null; + }; + function HighlightStyles_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + var HighlightStyles = function HighlightStyles(_ref) { + var refId = _ref.refId, + itemId = _ref.itemId; + return react.createElement(core_browser_esm.xB, { + styles: function styles(_ref2) { + var _dataRefId$conca, + color = _ref2.color, + background = (0, polished_esm.DZ)(0.85, color.secondary); + return HighlightStyles_defineProperty( + {}, + '[data-ref-id="'.concat(refId, '"][data-item-id="').concat(itemId, '"]:not([data-selected="true"])'), + (HighlightStyles_defineProperty( + (_dataRefId$conca = {}), + '&[data-nodetype="component"], &[data-nodetype="group"]', + { background, '&:hover, &:focus': { background } }, + ), + HighlightStyles_defineProperty( + _dataRefId$conca, + '&[data-nodetype="story"], &[data-nodetype="document"]', + { color: color.defaultText, background, '&:hover, &:focus': { background } }, + ), + _dataRefId$conca), + ); + }, + }); + }; + function Explorer_extends() { + return ( + (Explorer_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + Explorer_extends.apply(this, arguments) + ); + } + function Explorer_slicedToArray(arr, i) { + return ( + (function Explorer_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Explorer_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function Explorer_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Explorer_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Explorer_arrayLikeToArray(o, minLen); + })(arr, i) || + (function Explorer_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Explorer_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + HighlightStyles.displayName = 'HighlightStyles'; + var Explorer = react.memo(function (_ref) { + var isLoading = _ref.isLoading, + isBrowsing = _ref.isBrowsing, + dataset = _ref.dataset, + selected = _ref.selected, + containerRef = (0, react.useRef)(null), + _useHighlighted = (function useHighlighted(_ref) { + var containerRef = _ref.containerRef, + isLoading = _ref.isLoading, + isBrowsing = _ref.isBrowsing, + dataset = _ref.dataset, + selected = _ref.selected, + initialHighlight = fromSelection(selected), + highlightedRef = (0, react.useRef)(initialHighlight), + _useState2 = useHighlighted_slicedToArray((0, react.useState)(initialHighlight), 2), + highlighted = _useState2[0], + setHighlighted = _useState2[1], + updateHighlighted = (0, react.useCallback)( + function (highlight) { + (highlightedRef.current = highlight), setHighlighted(highlight); + }, + [highlightedRef], + ), + highlightElement = (0, react.useCallback)( + function (element) { + var center = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], + itemId = element.getAttribute('data-item-id'), + refId = element.getAttribute('data-ref-id'); + itemId && refId && (updateHighlighted({ itemId, refId }), scrollIntoView(element, center)); + }, + [updateHighlighted], + ); + return ( + (0, react.useEffect)( + function () { + var highlight = fromSelection(selected); + if ((updateHighlighted(highlight), highlight)) { + var itemId = highlight.itemId, + refId = highlight.refId; + setTimeout(function () { + var _containerRef$current; + scrollIntoView( + null === (_containerRef$current = containerRef.current) || void 0 === _containerRef$current + ? void 0 + : _containerRef$current.querySelector( + '[data-item-id="'.concat(itemId, '"][data-ref-id="').concat(refId, '"]'), + ), + !0, + ); + }, 0); + } + }, + [dataset, highlightedRef, containerRef, selected], + ), + (0, react.useEffect)( + function () { + var lastRequestId, + menuElement = useHighlighted_document.getElementById('storybook-explorer-menu'), + navigateTree = function navigateTree(event) { + if (!isLoading && isBrowsing && containerRef.current && matchesModifiers(!1, event)) { + var isArrowUp = matchesKeyCode('ArrowUp', event), + isArrowDown = matchesKeyCode('ArrowDown', event); + if (isArrowUp || isArrowDown) { + event.preventDefault(); + var requestId = useHighlighted_globalWindow.requestAnimationFrame(function () { + useHighlighted_globalWindow.cancelAnimationFrame(lastRequestId), + (lastRequestId = requestId); + var target = event.target; + if (isAncestor(menuElement, target) || isAncestor(target, menuElement)) { + target.hasAttribute('data-action') && target.blur(); + var highlightable = Array.from( + containerRef.current.querySelectorAll('[data-highlightable=true]'), + ), + currentIndex = highlightable.findIndex(function (el) { + var _highlightedRef$curre, _highlightedRef$curre2; + return ( + el.getAttribute('data-item-id') === + (null === (_highlightedRef$curre = highlightedRef.current) || + void 0 === _highlightedRef$curre + ? void 0 + : _highlightedRef$curre.itemId) && + el.getAttribute('data-ref-id') === + (null === (_highlightedRef$curre2 = highlightedRef.current) || + void 0 === _highlightedRef$curre2 + ? void 0 + : _highlightedRef$curre2.refId) + ); + }), + nextIndex = (function cycle(array, index, delta) { + var next = index + (delta % array.length); + return ( + next < 0 && (next = array.length + next), + next >= array.length && (next -= array.length), + next + ); + })(highlightable, currentIndex, isArrowUp ? -1 : 1), + didRunAround = isArrowUp ? nextIndex === highlightable.length - 1 : 0 === nextIndex; + highlightElement(highlightable[nextIndex], didRunAround); + } + }); + } + } + }; + return ( + useHighlighted_document.addEventListener('keydown', navigateTree), + function () { + return useHighlighted_document.removeEventListener('keydown', navigateTree); + } + ); + }, + [isLoading, isBrowsing, highlightedRef, highlightElement], + ), + [highlighted, updateHighlighted, highlightedRef] + ); + })({ containerRef, isLoading, isBrowsing, dataset, selected }), + _useHighlighted2 = Explorer_slicedToArray(_useHighlighted, 3), + highlighted = _useHighlighted2[0], + setHighlighted = _useHighlighted2[1], + highlightedRef = _useHighlighted2[2]; + return react.createElement( + 'div', + { + ref: containerRef, + id: 'storybook-explorer-tree', + 'data-highlighted-ref-id': null == highlighted ? void 0 : highlighted.refId, + 'data-highlighted-item-id': null == highlighted ? void 0 : highlighted.itemId, + }, + highlighted && react.createElement(HighlightStyles, highlighted), + dataset.entries.map(function (_ref2) { + var _ref3 = Explorer_slicedToArray(_ref2, 2), + refId = _ref3[0], + ref = _ref3[1]; + return react.createElement( + Ref, + Explorer_extends({}, ref, { + key: refId, + isLoading, + isBrowsing, + selectedStoryId: (null == selected ? void 0 : selected.refId) === ref.id ? selected.storyId : null, + highlightedRef, + setHighlighted, + }), + ); + }), + ); + }), + objectWithoutPropertiesLoose = + (__webpack_require__(93244), __webpack_require__(45794), __webpack_require__(98283)), + assertThisInitialized = __webpack_require__(73989), + inheritsLoose = __webpack_require__(35307), + react_is = __webpack_require__(29547); + function t(t) { + return 'object' == typeof t && null != t && 1 === t.nodeType; + } + function e(t, e) { + return (!e || 'hidden' !== t) && 'visible' !== t && 'clip' !== t; + } + function n(t, n) { + if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) { + var r = getComputedStyle(t, null); + return ( + e(r.overflowY, n) || + e(r.overflowX, n) || + (function (t) { + var e = (function (t) { + if (!t.ownerDocument || !t.ownerDocument.defaultView) return null; + try { + return t.ownerDocument.defaultView.frameElement; + } catch (t) { + return null; + } + })(t); + return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth); + })(t) + ); + } + return !1; + } + function index_module_r(t, e, n, r, i, o, l, d) { + return (o < t && l > e) || (o > t && l < e) + ? 0 + : (o <= t && d <= n) || (l >= e && d >= n) + ? o - t - r + : (l > e && d < n) || (o < t && d > n) + ? l - e + i + : 0; + } + var idCounter = 0; + function cbToCb(cb) { + return 'function' == typeof cb ? cb : downshift_esm_noop; + } + function downshift_esm_noop() {} + function downshift_esm_scrollIntoView(node, menuNode) { + if (node) { + var actions = (function index_module(e, i) { + var o = window, + l = i.scrollMode, + d = i.block, + u = i.inline, + h = i.boundary, + a = i.skipOverflowHiddenElements, + c = + 'function' == typeof h + ? h + : function (t) { + return t !== h; + }; + if (!t(e)) throw new TypeError('Invalid target'); + for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p); ) { + if ((p = p.parentElement) === f) { + s.push(p); + break; + } + (null != p && p === document.body && n(p) && !n(document.documentElement)) || + (null != p && n(p, a) && s.push(p)); + } + for ( + var m = o.visualViewport ? o.visualViewport.width : innerWidth, + g = o.visualViewport ? o.visualViewport.height : innerHeight, + w = window.scrollX || pageXOffset, + v = window.scrollY || pageYOffset, + W = e.getBoundingClientRect(), + b = W.height, + H = W.width, + y = W.top, + E = W.right, + M = W.bottom, + V = W.left, + x = 'start' === d || 'nearest' === d ? y : 'end' === d ? M : y + b / 2, + I = 'center' === u ? V + H / 2 : 'end' === u ? E : V, + C = [], + T = 0; + T < s.length; + T++ + ) { + var k = s[T], + B = k.getBoundingClientRect(), + D = B.height, + O = B.width, + R = B.top, + X = B.right, + Y = B.bottom, + L = B.left; + if ('if-needed' === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) + return C; + var S = getComputedStyle(k), + j = parseInt(S.borderLeftWidth, 10), + q = parseInt(S.borderTopWidth, 10), + z = parseInt(S.borderRightWidth, 10), + A = parseInt(S.borderBottomWidth, 10), + F = 0, + G = 0, + J = 'offsetWidth' in k ? k.offsetWidth - k.clientWidth - j - z : 0, + K = 'offsetHeight' in k ? k.offsetHeight - k.clientHeight - q - A : 0; + if (f === k) + (F = + 'start' === d + ? x + : 'end' === d + ? x - g + : 'nearest' === d + ? index_module_r(v, v + g, g, q, A, v + x, v + x + b, b) + : x - g / 2), + (G = + 'start' === u + ? I + : 'center' === u + ? I - m / 2 + : 'end' === u + ? I - m + : index_module_r(w, w + m, m, j, z, w + I, w + I + H, H)), + (F = Math.max(0, F + v)), + (G = Math.max(0, G + w)); + else { + (F = + 'start' === d + ? x - R - q + : 'end' === d + ? x - Y + A + K + : 'nearest' === d + ? index_module_r(R, Y, D, q, A + K, x, x + b, b) + : x - (R + D / 2) + K / 2), + (G = + 'start' === u + ? I - L - j + : 'center' === u + ? I - (L + O / 2) + J / 2 + : 'end' === u + ? I - X + z + J + : index_module_r(L, X, O, j, z + J, I, I + H, H)); + var N = k.scrollLeft, + P = k.scrollTop; + (x += P - (F = Math.max(0, Math.min(P + F, k.scrollHeight - D + K)))), + (I += N - (G = Math.max(0, Math.min(N + G, k.scrollWidth - O + J)))); + } + C.push({ el: k, top: F, left: G }); + } + return C; + })(node, { boundary: menuNode, block: 'nearest', scrollMode: 'if-needed' }); + actions.forEach(function (_ref) { + var el = _ref.el, + top = _ref.top, + left = _ref.left; + (el.scrollTop = top), (el.scrollLeft = left); + }); + } + } + function isOrContainsNode(parent, child, environment) { + return parent === child || (child instanceof environment.Node && parent.contains && parent.contains(child)); + } + function downshift_esm_debounce(fn, time) { + var timeoutId; + function cancel() { + timeoutId && clearTimeout(timeoutId); + } + function wrapper() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + cancel(), + (timeoutId = setTimeout(function () { + (timeoutId = null), fn.apply(void 0, args); + }, time)); + } + return (wrapper.cancel = cancel), wrapper; + } + function callAllEventHandlers() { + for (var _len2 = arguments.length, fns = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) + fns[_key2] = arguments[_key2]; + return function (event) { + for ( + var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; + _key3 < _len3; + _key3++ + ) + args[_key3 - 1] = arguments[_key3]; + return fns.some(function (fn) { + return ( + fn && fn.apply(void 0, [event].concat(args)), + event.preventDownshiftDefault || + (event.hasOwnProperty('nativeEvent') && event.nativeEvent.preventDownshiftDefault) + ); + }); + }; + } + function handleRefs() { + for (var _len4 = arguments.length, refs = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) + refs[_key4] = arguments[_key4]; + return function (node) { + refs.forEach(function (ref) { + 'function' == typeof ref ? ref(node) : ref && (ref.current = node); + }); + }; + } + function generateId() { + return String(idCounter++); + } + function getA11yStatusMessage$1(_ref2) { + var isOpen = _ref2.isOpen, + resultCount = _ref2.resultCount, + previousResultCount = _ref2.previousResultCount; + return isOpen + ? resultCount + ? resultCount !== previousResultCount + ? resultCount + + ' result' + + (1 === resultCount ? ' is' : 's are') + + ' available, use up and down arrow keys to navigate. Press Enter key to select.' + : '' + : 'No results are available.' + : ''; + } + function unwrapArray(arg, defaultValue) { + return !(arg = Array.isArray(arg) ? arg[0] : arg) && defaultValue ? defaultValue : arg; + } + function isDOMElement(element) { + return 'string' == typeof element.type; + } + function getElementProps(element) { + return element.props; + } + var stateKeys = ['highlightedIndex', 'inputValue', 'isOpen', 'selectedItem', 'type']; + function pickState(state) { + void 0 === state && (state = {}); + var result = {}; + return ( + stateKeys.forEach(function (k) { + state.hasOwnProperty(k) && (result[k] = state[k]); + }), + result + ); + } + function getState(state, props) { + return Object.keys(state).reduce(function (prevState, key) { + return (prevState[key] = isControlledProp(props, key) ? props[key] : state[key]), prevState; + }, {}); + } + function isControlledProp(props, key) { + return void 0 !== props[key]; + } + function normalizeArrowKey(event) { + var key = event.key, + keyCode = event.keyCode; + return keyCode >= 37 && keyCode <= 40 && 0 !== key.indexOf('Arrow') ? 'Arrow' + key : key; + } + function getNextWrappingIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) { + if ((void 0 === circular && (circular = !0), 0 === itemCount)) return -1; + var itemsLastIndex = itemCount - 1; + ('number' != typeof baseIndex || baseIndex < 0 || baseIndex >= itemCount) && + (baseIndex = moveAmount > 0 ? -1 : itemsLastIndex + 1); + var newIndex = baseIndex + moveAmount; + newIndex < 0 + ? (newIndex = circular ? itemsLastIndex : 0) + : newIndex > itemsLastIndex && (newIndex = circular ? 0 : itemsLastIndex); + var nonDisabledNewIndex = getNextNonDisabledIndex( + moveAmount, + newIndex, + itemCount, + getItemNodeFromIndex, + circular, + ); + return -1 === nonDisabledNewIndex ? (baseIndex >= itemCount ? -1 : baseIndex) : nonDisabledNewIndex; + } + function getNextNonDisabledIndex(moveAmount, baseIndex, itemCount, getItemNodeFromIndex, circular) { + var currentElementNode = getItemNodeFromIndex(baseIndex); + if (!currentElementNode || !currentElementNode.hasAttribute('disabled')) return baseIndex; + if (moveAmount > 0) { + for (var index = baseIndex + 1; index < itemCount; index++) + if (!getItemNodeFromIndex(index).hasAttribute('disabled')) return index; + } else + for (var _index = baseIndex - 1; _index >= 0; _index--) + if (!getItemNodeFromIndex(_index).hasAttribute('disabled')) return _index; + return circular + ? moveAmount > 0 + ? getNextNonDisabledIndex(1, 0, itemCount, getItemNodeFromIndex, !1) + : getNextNonDisabledIndex(-1, itemCount - 1, itemCount, getItemNodeFromIndex, !1) + : -1; + } + function targetWithinDownshift(target, downshiftElements, environment, checkActiveElement) { + return ( + void 0 === checkActiveElement && (checkActiveElement = !0), + downshiftElements.some(function (contextNode) { + return ( + contextNode && + (isOrContainsNode(contextNode, target, environment) || + (checkActiveElement && isOrContainsNode(contextNode, environment.document.activeElement, environment))) + ); + }) + ); + } + var validateControlledUnchanged = downshift_esm_noop; + validateControlledUnchanged = function validateControlledUnchanged(state, prevProps, nextProps) { + var warningDescription = + 'This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props'; + Object.keys(state).forEach(function (propKey) { + void 0 !== prevProps[propKey] && void 0 === nextProps[propKey] + ? console.error( + 'downshift: A component has changed the controlled prop "' + + propKey + + '" to be uncontrolled. ' + + warningDescription, + ) + : void 0 === prevProps[propKey] && + void 0 !== nextProps[propKey] && + console.error( + 'downshift: A component has changed the uncontrolled prop "' + + propKey + + '" to be controlled. ' + + warningDescription, + ); + }); + }; + var cleanupStatus = downshift_esm_debounce(function (documentProp) { + getStatusDiv(documentProp).textContent = ''; + }, 500); + function setStatus(status, documentProp) { + var div = getStatusDiv(documentProp); + status && ((div.textContent = status), cleanupStatus(documentProp)); + } + function getStatusDiv(documentProp) { + void 0 === documentProp && (documentProp = document); + var statusDiv = documentProp.getElementById('a11y-status-message'); + return ( + statusDiv || + ((statusDiv = documentProp.createElement('div')).setAttribute('id', 'a11y-status-message'), + statusDiv.setAttribute('role', 'status'), + statusDiv.setAttribute('aria-live', 'polite'), + statusDiv.setAttribute('aria-relevant', 'additions text'), + Object.assign(statusDiv.style, { + border: '0', + clip: 'rect(0 0 0 0)', + height: '1px', + margin: '-1px', + overflow: 'hidden', + padding: '0', + position: 'absolute', + width: '1px', + }), + documentProp.body.appendChild(statusDiv), + statusDiv) + ); + } + var unknown = '__autocomplete_unknown__', + mouseUp = '__autocomplete_mouseup__', + keyDownArrowUp = '__autocomplete_keydown_arrow_up__', + keyDownArrowDown = '__autocomplete_keydown_arrow_down__', + touchEnd = '__autocomplete_touchend__', + stateChangeTypes$3 = Object.freeze({ + __proto__: null, + unknown, + mouseUp, + itemMouseEnter: '__autocomplete_item_mouseenter__', + keyDownArrowUp, + keyDownArrowDown, + keyDownEscape: '__autocomplete_keydown_escape__', + keyDownEnter: '__autocomplete_keydown_enter__', + keyDownHome: '__autocomplete_keydown_home__', + keyDownEnd: '__autocomplete_keydown_end__', + clickItem: '__autocomplete_click_item__', + blurInput: '__autocomplete_blur_input__', + changeInput: '__autocomplete_change_input__', + keyDownSpaceButton: '__autocomplete_keydown_space_button__', + clickButton: '__autocomplete_click_button__', + blurButton: '__autocomplete_blur_button__', + controlledPropUpdatedSelectedItem: '__autocomplete_controlled_prop_updated_selected_item__', + touchEnd, + }), + Downshift = (function () { + var Downshift = (function (_Component) { + function Downshift(_props) { + var _this; + ((_this = _Component.call(this, _props) || this).id = _this.props.id || 'downshift-' + generateId()), + (_this.menuId = _this.props.menuId || _this.id + '-menu'), + (_this.labelId = _this.props.labelId || _this.id + '-label'), + (_this.inputId = _this.props.inputId || _this.id + '-input'), + (_this.getItemId = + _this.props.getItemId || + function (index) { + return _this.id + '-item-' + index; + }), + (_this.input = null), + (_this.items = []), + (_this.itemCount = null), + (_this.previousResultCount = 0), + (_this.timeoutIds = []), + (_this.internalSetTimeout = function (fn, time) { + var id = setTimeout(function () { + (_this.timeoutIds = _this.timeoutIds.filter(function (i) { + return i !== id; + })), + fn(); + }, time); + _this.timeoutIds.push(id); + }), + (_this.setItemCount = function (count) { + _this.itemCount = count; + }), + (_this.unsetItemCount = function () { + _this.itemCount = null; + }), + (_this.setHighlightedIndex = function (highlightedIndex, otherStateToSet) { + void 0 === highlightedIndex && (highlightedIndex = _this.props.defaultHighlightedIndex), + void 0 === otherStateToSet && (otherStateToSet = {}), + (otherStateToSet = pickState(otherStateToSet)), + _this.internalSetState((0, esm_extends.Z)({ highlightedIndex }, otherStateToSet)); + }), + (_this.clearSelection = function (cb) { + _this.internalSetState( + { + selectedItem: null, + inputValue: '', + highlightedIndex: _this.props.defaultHighlightedIndex, + isOpen: _this.props.defaultIsOpen, + }, + cb, + ); + }), + (_this.selectItem = function (item, otherStateToSet, cb) { + (otherStateToSet = pickState(otherStateToSet)), + _this.internalSetState( + (0, esm_extends.Z)( + { + isOpen: _this.props.defaultIsOpen, + highlightedIndex: _this.props.defaultHighlightedIndex, + selectedItem: item, + inputValue: _this.props.itemToString(item), + }, + otherStateToSet, + ), + cb, + ); + }), + (_this.selectItemAtIndex = function (itemIndex, otherStateToSet, cb) { + var item = _this.items[itemIndex]; + null != item && _this.selectItem(item, otherStateToSet, cb); + }), + (_this.selectHighlightedItem = function (otherStateToSet, cb) { + return _this.selectItemAtIndex(_this.getState().highlightedIndex, otherStateToSet, cb); + }), + (_this.internalSetState = function (stateToSet, cb) { + var isItemSelected, + onChangeArg, + onStateChangeArg = {}, + isStateToSetFunction = 'function' == typeof stateToSet; + return ( + !isStateToSetFunction && + stateToSet.hasOwnProperty('inputValue') && + _this.props.onInputValueChange( + stateToSet.inputValue, + (0, esm_extends.Z)({}, _this.getStateAndHelpers(), stateToSet), + ), + _this.setState( + function (state) { + state = _this.getState(state); + var newStateToSet = isStateToSetFunction ? stateToSet(state) : stateToSet; + (newStateToSet = _this.props.stateReducer(state, newStateToSet)), + (isItemSelected = newStateToSet.hasOwnProperty('selectedItem')); + var nextState = {}; + return ( + isItemSelected && + newStateToSet.selectedItem !== state.selectedItem && + (onChangeArg = newStateToSet.selectedItem), + (newStateToSet.type = newStateToSet.type || unknown), + Object.keys(newStateToSet).forEach(function (key) { + state[key] !== newStateToSet[key] && (onStateChangeArg[key] = newStateToSet[key]), + 'type' !== key && + (newStateToSet[key], + isControlledProp(_this.props, key) || (nextState[key] = newStateToSet[key])); + }), + isStateToSetFunction && + newStateToSet.hasOwnProperty('inputValue') && + _this.props.onInputValueChange( + newStateToSet.inputValue, + (0, esm_extends.Z)({}, _this.getStateAndHelpers(), newStateToSet), + ), + nextState + ); + }, + function () { + cbToCb(cb)(), + Object.keys(onStateChangeArg).length > 1 && + _this.props.onStateChange(onStateChangeArg, _this.getStateAndHelpers()), + isItemSelected && _this.props.onSelect(stateToSet.selectedItem, _this.getStateAndHelpers()), + void 0 !== onChangeArg && _this.props.onChange(onChangeArg, _this.getStateAndHelpers()), + _this.props.onUserAction(onStateChangeArg, _this.getStateAndHelpers()); + }, + ) + ); + }), + (_this.rootRef = function (node) { + return (_this._rootNode = node); + }), + (_this.getRootProps = function (_temp, _temp2) { + var _extends2, + _ref = void 0 === _temp ? {} : _temp, + _ref$refKey = _ref.refKey, + refKey = void 0 === _ref$refKey ? 'ref' : _ref$refKey, + ref = _ref.ref, + rest = (0, objectWithoutPropertiesLoose.Z)(_ref, ['refKey', 'ref']), + _ref2$suppressRefErro = (void 0 === _temp2 ? {} : _temp2).suppressRefError, + suppressRefError = void 0 !== _ref2$suppressRefErro && _ref2$suppressRefErro; + (_this.getRootProps.called = !0), + (_this.getRootProps.refKey = refKey), + (_this.getRootProps.suppressRefError = suppressRefError); + var isOpen = _this.getState().isOpen; + return (0, esm_extends.Z)( + (((_extends2 = {})[refKey] = handleRefs(ref, _this.rootRef)), + (_extends2.role = 'combobox'), + (_extends2['aria-expanded'] = isOpen), + (_extends2['aria-haspopup'] = 'listbox'), + (_extends2['aria-owns'] = isOpen ? _this.menuId : null), + (_extends2['aria-labelledby'] = _this.labelId), + _extends2), + rest, + ); + }), + (_this.keyDownHandlers = { + ArrowDown: function ArrowDown(event) { + var _this2 = this; + if ((event.preventDefault(), this.getState().isOpen)) { + var amount = event.shiftKey ? 5 : 1; + this.moveHighlightedIndex(amount, { type: keyDownArrowDown }); + } else + this.internalSetState({ isOpen: !0, type: keyDownArrowDown }, function () { + var itemCount = _this2.getItemCount(); + if (itemCount > 0) { + var nextHighlightedIndex = getNextWrappingIndex( + 1, + _this2.getState().highlightedIndex, + itemCount, + function (index) { + return _this2.getItemNodeFromIndex(index); + }, + ); + _this2.setHighlightedIndex(nextHighlightedIndex, { type: keyDownArrowDown }); + } + }); + }, + ArrowUp: function ArrowUp(event) { + var _this3 = this; + if ((event.preventDefault(), this.getState().isOpen)) { + var amount = event.shiftKey ? -5 : -1; + this.moveHighlightedIndex(amount, { type: keyDownArrowUp }); + } else + this.internalSetState({ isOpen: !0, type: keyDownArrowUp }, function () { + var itemCount = _this3.getItemCount(); + if (itemCount > 0) { + var nextHighlightedIndex = getNextWrappingIndex( + -1, + _this3.getState().highlightedIndex, + itemCount, + function (index) { + return _this3.getItemNodeFromIndex(index); + }, + ); + _this3.setHighlightedIndex(nextHighlightedIndex, { type: keyDownArrowUp }); + } + }); + }, + Enter: function Enter(event) { + if (229 !== event.which) { + var _this$getState2 = this.getState(), + isOpen = _this$getState2.isOpen, + highlightedIndex = _this$getState2.highlightedIndex; + if (isOpen && null != highlightedIndex) { + event.preventDefault(); + var item = this.items[highlightedIndex], + itemNode = this.getItemNodeFromIndex(highlightedIndex); + if (null == item || (itemNode && itemNode.hasAttribute('disabled'))) return; + this.selectHighlightedItem({ type: '__autocomplete_keydown_enter__' }); + } + } + }, + Escape: function Escape(event) { + event.preventDefault(), + this.reset( + (0, esm_extends.Z)( + { type: '__autocomplete_keydown_escape__' }, + !this.state.isOpen && { selectedItem: null, inputValue: '' }, + ), + ); + }, + }), + (_this.buttonKeyDownHandlers = (0, esm_extends.Z)({}, _this.keyDownHandlers, { + ' ': function _(event) { + event.preventDefault(), this.toggleMenu({ type: '__autocomplete_keydown_space_button__' }); + }, + })), + (_this.inputKeyDownHandlers = (0, esm_extends.Z)({}, _this.keyDownHandlers, { + Home: function Home(event) { + var _this4 = this, + isOpen = this.getState().isOpen; + if (isOpen) { + event.preventDefault(); + var itemCount = this.getItemCount(); + if (!(itemCount <= 0) && isOpen) { + var newHighlightedIndex = getNextNonDisabledIndex( + 1, + 0, + itemCount, + function (index) { + return _this4.getItemNodeFromIndex(index); + }, + !1, + ); + this.setHighlightedIndex(newHighlightedIndex, { type: '__autocomplete_keydown_home__' }); + } + } + }, + End: function End(event) { + var _this5 = this, + isOpen = this.getState().isOpen; + if (isOpen) { + event.preventDefault(); + var itemCount = this.getItemCount(); + if (!(itemCount <= 0) && isOpen) { + var newHighlightedIndex = getNextNonDisabledIndex( + -1, + itemCount - 1, + itemCount, + function (index) { + return _this5.getItemNodeFromIndex(index); + }, + !1, + ); + this.setHighlightedIndex(newHighlightedIndex, { type: '__autocomplete_keydown_end__' }); + } + } + }, + })), + (_this.getToggleButtonProps = function (_temp3) { + var _ref3 = void 0 === _temp3 ? {} : _temp3, + onClick = _ref3.onClick; + _ref3.onPress; + var onKeyDown = _ref3.onKeyDown, + onKeyUp = _ref3.onKeyUp, + onBlur = _ref3.onBlur, + rest = (0, objectWithoutPropertiesLoose.Z)(_ref3, [ + 'onClick', + 'onPress', + 'onKeyDown', + 'onKeyUp', + 'onBlur', + ]), + isOpen = _this.getState().isOpen, + enabledEventHandlers = { + onClick: callAllEventHandlers(onClick, _this.buttonHandleClick), + onKeyDown: callAllEventHandlers(onKeyDown, _this.buttonHandleKeyDown), + onKeyUp: callAllEventHandlers(onKeyUp, _this.buttonHandleKeyUp), + onBlur: callAllEventHandlers(onBlur, _this.buttonHandleBlur), + }, + eventHandlers = rest.disabled ? {} : enabledEventHandlers; + return (0, esm_extends.Z)( + { + type: 'button', + role: 'button', + 'aria-label': isOpen ? 'close menu' : 'open menu', + 'aria-haspopup': !0, + 'data-toggle': !0, + }, + eventHandlers, + rest, + ); + }), + (_this.buttonHandleKeyUp = function (event) { + event.preventDefault(); + }), + (_this.buttonHandleKeyDown = function (event) { + var key = normalizeArrowKey(event); + _this.buttonKeyDownHandlers[key] && + _this.buttonKeyDownHandlers[key].call((0, assertThisInitialized.Z)(_this), event); + }), + (_this.buttonHandleClick = function (event) { + event.preventDefault(), + _this.props.environment.document.activeElement === _this.props.environment.document.body && + event.target.focus(), + _this.internalSetTimeout(function () { + return _this.toggleMenu({ type: '__autocomplete_click_button__' }); + }); + }), + (_this.buttonHandleBlur = function (event) { + var blurTarget = event.target; + _this.internalSetTimeout(function () { + _this.isMouseDown || + (null != _this.props.environment.document.activeElement && + _this.props.environment.document.activeElement.id === _this.inputId) || + _this.props.environment.document.activeElement === blurTarget || + _this.reset({ type: '__autocomplete_blur_button__' }); + }); + }), + (_this.getLabelProps = function (props) { + return (0, esm_extends.Z)({ htmlFor: _this.inputId, id: _this.labelId }, props); + }), + (_this.getInputProps = function (_temp4) { + var _ref4 = void 0 === _temp4 ? {} : _temp4, + onKeyDown = _ref4.onKeyDown, + onBlur = _ref4.onBlur, + onChange = _ref4.onChange, + onInput = _ref4.onInput; + _ref4.onChangeText; + var rest = (0, objectWithoutPropertiesLoose.Z)(_ref4, [ + 'onKeyDown', + 'onBlur', + 'onChange', + 'onInput', + 'onChangeText', + ]), + eventHandlers = {}; + var _eventHandlers, + _this$getState6 = _this.getState(), + inputValue = _this$getState6.inputValue, + isOpen = _this$getState6.isOpen, + highlightedIndex = _this$getState6.highlightedIndex; + rest.disabled || + (((_eventHandlers = {}).onChange = callAllEventHandlers( + onChange, + onInput, + _this.inputHandleChange, + )), + (_eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, _this.inputHandleKeyDown)), + (_eventHandlers.onBlur = callAllEventHandlers(onBlur, _this.inputHandleBlur)), + (eventHandlers = _eventHandlers)); + return (0, esm_extends.Z)( + { + 'aria-autocomplete': 'list', + 'aria-activedescendant': + isOpen && 'number' == typeof highlightedIndex && highlightedIndex >= 0 + ? _this.getItemId(highlightedIndex) + : null, + 'aria-controls': isOpen ? _this.menuId : null, + 'aria-labelledby': _this.labelId, + autoComplete: 'off', + value: inputValue, + id: _this.inputId, + }, + eventHandlers, + rest, + ); + }), + (_this.inputHandleKeyDown = function (event) { + var key = normalizeArrowKey(event); + key && + _this.inputKeyDownHandlers[key] && + _this.inputKeyDownHandlers[key].call((0, assertThisInitialized.Z)(_this), event); + }), + (_this.inputHandleChange = function (event) { + _this.internalSetState({ + type: '__autocomplete_change_input__', + isOpen: !0, + inputValue: event.target.value, + highlightedIndex: _this.props.defaultHighlightedIndex, + }); + }), + (_this.inputHandleBlur = function () { + _this.internalSetTimeout(function () { + var downshiftButtonIsActive = + _this.props.environment.document && + !!_this.props.environment.document.activeElement && + !!_this.props.environment.document.activeElement.dataset && + _this.props.environment.document.activeElement.dataset.toggle && + _this._rootNode && + _this._rootNode.contains(_this.props.environment.document.activeElement); + _this.isMouseDown || + downshiftButtonIsActive || + _this.reset({ type: '__autocomplete_blur_input__' }); + }); + }), + (_this.menuRef = function (node) { + _this._menuNode = node; + }), + (_this.getMenuProps = function (_temp5, _temp6) { + var _extends3, + _ref5 = void 0 === _temp5 ? {} : _temp5, + _ref5$refKey = _ref5.refKey, + refKey = void 0 === _ref5$refKey ? 'ref' : _ref5$refKey, + ref = _ref5.ref, + props = (0, objectWithoutPropertiesLoose.Z)(_ref5, ['refKey', 'ref']), + _ref6$suppressRefErro = (void 0 === _temp6 ? {} : _temp6).suppressRefError, + suppressRefError = void 0 !== _ref6$suppressRefErro && _ref6$suppressRefErro; + return ( + (_this.getMenuProps.called = !0), + (_this.getMenuProps.refKey = refKey), + (_this.getMenuProps.suppressRefError = suppressRefError), + (0, esm_extends.Z)( + (((_extends3 = {})[refKey] = handleRefs(ref, _this.menuRef)), + (_extends3.role = 'listbox'), + (_extends3['aria-labelledby'] = props && props['aria-label'] ? null : _this.labelId), + (_extends3.id = _this.menuId), + _extends3), + props, + ) + ); + }), + (_this.getItemProps = function (_temp7) { + var _enabledEventHandlers, + _ref7 = void 0 === _temp7 ? {} : _temp7, + onMouseMove = _ref7.onMouseMove, + onMouseDown = _ref7.onMouseDown, + onClick = _ref7.onClick; + _ref7.onPress; + var index = _ref7.index, + _ref7$item = _ref7.item, + item = + void 0 === _ref7$item + ? (function requiredProp(fnName, propName) { + console.error('The property "' + propName + '" is required in "' + fnName + '"'); + })('getItemProps', 'item') + : _ref7$item, + rest = (0, objectWithoutPropertiesLoose.Z)(_ref7, [ + 'onMouseMove', + 'onMouseDown', + 'onClick', + 'onPress', + 'index', + 'item', + ]); + void 0 === index + ? (_this.items.push(item), (index = _this.items.indexOf(item))) + : (_this.items[index] = item); + var customClickHandler = onClick, + enabledEventHandlers = + (((_enabledEventHandlers = { + onMouseMove: callAllEventHandlers(onMouseMove, function () { + index !== _this.getState().highlightedIndex && + (_this.setHighlightedIndex(index, { type: '__autocomplete_item_mouseenter__' }), + (_this.avoidScrolling = !0), + _this.internalSetTimeout(function () { + return (_this.avoidScrolling = !1); + }, 250)); + }), + onMouseDown: callAllEventHandlers(onMouseDown, function (event) { + event.preventDefault(); + }), + }).onClick = callAllEventHandlers(customClickHandler, function () { + _this.selectItemAtIndex(index, { type: '__autocomplete_click_item__' }); + })), + _enabledEventHandlers), + eventHandlers = rest.disabled + ? { onMouseDown: enabledEventHandlers.onMouseDown } + : enabledEventHandlers; + return (0, esm_extends.Z)( + { + id: _this.getItemId(index), + role: 'option', + 'aria-selected': _this.getState().highlightedIndex === index, + }, + eventHandlers, + rest, + ); + }), + (_this.clearItems = function () { + _this.items = []; + }), + (_this.reset = function (otherStateToSet, cb) { + void 0 === otherStateToSet && (otherStateToSet = {}), + (otherStateToSet = pickState(otherStateToSet)), + _this.internalSetState(function (_ref8) { + var selectedItem = _ref8.selectedItem; + return (0, + esm_extends.Z)({ isOpen: _this.props.defaultIsOpen, highlightedIndex: _this.props.defaultHighlightedIndex, inputValue: _this.props.itemToString(selectedItem) }, otherStateToSet); + }, cb); + }), + (_this.toggleMenu = function (otherStateToSet, cb) { + void 0 === otherStateToSet && (otherStateToSet = {}), + (otherStateToSet = pickState(otherStateToSet)), + _this.internalSetState( + function (_ref9) { + var isOpen = _ref9.isOpen; + return (0, esm_extends.Z)( + { isOpen: !isOpen }, + isOpen && { highlightedIndex: _this.props.defaultHighlightedIndex }, + otherStateToSet, + ); + }, + function () { + var _this$getState7 = _this.getState(), + isOpen = _this$getState7.isOpen, + highlightedIndex = _this$getState7.highlightedIndex; + isOpen && + _this.getItemCount() > 0 && + 'number' == typeof highlightedIndex && + _this.setHighlightedIndex(highlightedIndex, otherStateToSet), + cbToCb(cb)(); + }, + ); + }), + (_this.openMenu = function (cb) { + _this.internalSetState({ isOpen: !0 }, cb); + }), + (_this.closeMenu = function (cb) { + _this.internalSetState({ isOpen: !1 }, cb); + }), + (_this.updateStatus = downshift_esm_debounce(function () { + var state = _this.getState(), + item = _this.items[state.highlightedIndex], + resultCount = _this.getItemCount(), + status = _this.props.getA11yStatusMessage( + (0, esm_extends.Z)( + { + itemToString: _this.props.itemToString, + previousResultCount: _this.previousResultCount, + resultCount, + highlightedItem: item, + }, + state, + ), + ); + (_this.previousResultCount = resultCount), setStatus(status, _this.props.environment.document); + }, 200)); + var _this$props = _this.props, + defaultHighlightedIndex = _this$props.defaultHighlightedIndex, + _this$props$initialHi = _this$props.initialHighlightedIndex, + _highlightedIndex = void 0 === _this$props$initialHi ? defaultHighlightedIndex : _this$props$initialHi, + defaultIsOpen = _this$props.defaultIsOpen, + _this$props$initialIs = _this$props.initialIsOpen, + _isOpen = void 0 === _this$props$initialIs ? defaultIsOpen : _this$props$initialIs, + _this$props$initialIn = _this$props.initialInputValue, + _inputValue = void 0 === _this$props$initialIn ? '' : _this$props$initialIn, + _this$props$initialSe = _this$props.initialSelectedItem, + _selectedItem = void 0 === _this$props$initialSe ? null : _this$props$initialSe, + _state = _this.getState({ + highlightedIndex: _highlightedIndex, + isOpen: _isOpen, + inputValue: _inputValue, + selectedItem: _selectedItem, + }); + return ( + null != _state.selectedItem && + void 0 === _this.props.initialInputValue && + (_state.inputValue = _this.props.itemToString(_state.selectedItem)), + (_this.state = _state), + _this + ); + } + (0, inheritsLoose.Z)(Downshift, _Component); + var _proto = Downshift.prototype; + return ( + (_proto.internalClearTimeouts = function internalClearTimeouts() { + this.timeoutIds.forEach(function (id) { + clearTimeout(id); + }), + (this.timeoutIds = []); + }), + (_proto.getState = function getState$1(stateToMerge) { + return void 0 === stateToMerge && (stateToMerge = this.state), getState(stateToMerge, this.props); + }), + (_proto.getItemCount = function getItemCount() { + var itemCount = this.items.length; + return ( + null != this.itemCount + ? (itemCount = this.itemCount) + : void 0 !== this.props.itemCount && (itemCount = this.props.itemCount), + itemCount + ); + }), + (_proto.getItemNodeFromIndex = function getItemNodeFromIndex(index) { + return this.props.environment.document.getElementById(this.getItemId(index)); + }), + (_proto.scrollHighlightedItemIntoView = function scrollHighlightedItemIntoView() { + var node = this.getItemNodeFromIndex(this.getState().highlightedIndex); + this.props.scrollIntoView(node, this._menuNode); + }), + (_proto.moveHighlightedIndex = function moveHighlightedIndex(amount, otherStateToSet) { + var _this6 = this, + itemCount = this.getItemCount(), + highlightedIndex = this.getState().highlightedIndex; + if (itemCount > 0) { + var nextHighlightedIndex = getNextWrappingIndex( + amount, + highlightedIndex, + itemCount, + function (index) { + return _this6.getItemNodeFromIndex(index); + }, + ); + this.setHighlightedIndex(nextHighlightedIndex, otherStateToSet); + } + }), + (_proto.getStateAndHelpers = function getStateAndHelpers() { + var _this$getState9 = this.getState(), + highlightedIndex = _this$getState9.highlightedIndex, + inputValue = _this$getState9.inputValue, + selectedItem = _this$getState9.selectedItem, + isOpen = _this$getState9.isOpen, + itemToString = this.props.itemToString, + id = this.id, + getRootProps = this.getRootProps, + getToggleButtonProps = this.getToggleButtonProps, + getLabelProps = this.getLabelProps, + getMenuProps = this.getMenuProps, + getInputProps = this.getInputProps, + getItemProps = this.getItemProps, + openMenu = this.openMenu, + closeMenu = this.closeMenu, + toggleMenu = this.toggleMenu, + selectItem = this.selectItem, + selectItemAtIndex = this.selectItemAtIndex, + selectHighlightedItem = this.selectHighlightedItem, + setHighlightedIndex = this.setHighlightedIndex, + clearSelection = this.clearSelection, + clearItems = this.clearItems; + return { + getRootProps, + getToggleButtonProps, + getLabelProps, + getMenuProps, + getInputProps, + getItemProps, + reset: this.reset, + openMenu, + closeMenu, + toggleMenu, + selectItem, + selectItemAtIndex, + selectHighlightedItem, + setHighlightedIndex, + clearSelection, + clearItems, + setItemCount: this.setItemCount, + unsetItemCount: this.unsetItemCount, + setState: this.internalSetState, + itemToString, + id, + highlightedIndex, + inputValue, + isOpen, + selectedItem, + }; + }), + (_proto.componentDidMount = function componentDidMount() { + var _this7 = this; + this.getMenuProps.called && + !this.getMenuProps.suppressRefError && + validateGetMenuPropsCalledCorrectly(this._menuNode, this.getMenuProps); + var onMouseDown = function onMouseDown() { + _this7.isMouseDown = !0; + }, + onMouseUp = function onMouseUp(event) { + (_this7.isMouseDown = !1), + !targetWithinDownshift( + event.target, + [_this7._rootNode, _this7._menuNode], + _this7.props.environment, + ) && + _this7.getState().isOpen && + _this7.reset({ type: mouseUp }, function () { + return _this7.props.onOuterClick(_this7.getStateAndHelpers()); + }); + }, + onTouchStart = function onTouchStart() { + _this7.isTouchMove = !1; + }, + onTouchMove = function onTouchMove() { + _this7.isTouchMove = !0; + }, + onTouchEnd = function onTouchEnd(event) { + var contextWithinDownshift = targetWithinDownshift( + event.target, + [_this7._rootNode, _this7._menuNode], + _this7.props.environment, + !1, + ); + _this7.isTouchMove || + contextWithinDownshift || + !_this7.getState().isOpen || + _this7.reset({ type: touchEnd }, function () { + return _this7.props.onOuterClick(_this7.getStateAndHelpers()); + }); + }, + environment = this.props.environment; + environment.addEventListener('mousedown', onMouseDown), + environment.addEventListener('mouseup', onMouseUp), + environment.addEventListener('touchstart', onTouchStart), + environment.addEventListener('touchmove', onTouchMove), + environment.addEventListener('touchend', onTouchEnd), + (this.cleanup = function () { + _this7.internalClearTimeouts(), + _this7.updateStatus.cancel(), + environment.removeEventListener('mousedown', onMouseDown), + environment.removeEventListener('mouseup', onMouseUp), + environment.removeEventListener('touchstart', onTouchStart), + environment.removeEventListener('touchmove', onTouchMove), + environment.removeEventListener('touchend', onTouchEnd); + }); + }), + (_proto.shouldScroll = function shouldScroll(prevState, prevProps) { + var currentHighlightedIndex = (void 0 === this.props.highlightedIndex ? this.getState() : this.props) + .highlightedIndex, + prevHighlightedIndex = (void 0 === prevProps.highlightedIndex ? prevState : prevProps) + .highlightedIndex; + return ( + (currentHighlightedIndex && this.getState().isOpen && !prevState.isOpen) || + currentHighlightedIndex !== prevHighlightedIndex + ); + }), + (_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { + validateControlledUnchanged(this.state, prevProps, this.props), + this.getMenuProps.called && + !this.getMenuProps.suppressRefError && + validateGetMenuPropsCalledCorrectly(this._menuNode, this.getMenuProps), + isControlledProp(this.props, 'selectedItem') && + this.props.selectedItemChanged(prevProps.selectedItem, this.props.selectedItem) && + this.internalSetState({ + type: '__autocomplete_controlled_prop_updated_selected_item__', + inputValue: this.props.itemToString(this.props.selectedItem), + }), + !this.avoidScrolling && + this.shouldScroll(prevState, prevProps) && + this.scrollHighlightedItemIntoView(), + this.updateStatus(); + }), + (_proto.componentWillUnmount = function componentWillUnmount() { + this.cleanup(); + }), + (_proto.render = function render() { + var children = unwrapArray(this.props.children, downshift_esm_noop); + this.clearItems(), + (this.getRootProps.called = !1), + (this.getRootProps.refKey = void 0), + (this.getRootProps.suppressRefError = void 0), + (this.getMenuProps.called = !1), + (this.getMenuProps.refKey = void 0), + (this.getMenuProps.suppressRefError = void 0), + (this.getLabelProps.called = !1), + (this.getInputProps.called = !1); + var element = unwrapArray(children(this.getStateAndHelpers())); + if (!element) return null; + if (this.getRootProps.called || this.props.suppressRefError) + return ( + this.getRootProps.suppressRefError || + this.props.suppressRefError || + (function validateGetRootPropsCalledCorrectly(element, _ref13) { + var refKey = _ref13.refKey, + refKeySpecified = 'ref' !== refKey, + isComposite = !isDOMElement(element); + !isComposite || refKeySpecified || (0, react_is.isForwardRef)(element) + ? !isComposite && + refKeySpecified && + console.error( + 'downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + + refKey + + '"', + ) + : console.error( + 'downshift: You returned a non-DOM element. You must specify a refKey in getRootProps', + ); + (0, react_is.isForwardRef)(element) || + getElementProps(element)[refKey] || + console.error( + 'downshift: You must apply the ref prop "' + + refKey + + '" from getRootProps onto your root element.', + ); + })(element, this.getRootProps), + element + ); + if (isDOMElement(element)) + return (0, react.cloneElement)(element, this.getRootProps(getElementProps(element))); + throw new Error('downshift: If you return a non-DOM element, you must apply the getRootProps function'); + }), + Downshift + ); + })(react.Component); + return ( + (Downshift.defaultProps = { + defaultHighlightedIndex: null, + defaultIsOpen: !1, + getA11yStatusMessage: getA11yStatusMessage$1, + itemToString: function itemToString(i) { + return null == i + ? '' + : ((function isPlainObject(obj) { + return '[object Object]' === Object.prototype.toString.call(obj); + })(i) && + !i.hasOwnProperty('toString') && + console.warn( + 'downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.', + 'The object that was passed:', + i, + ), + String(i)); + }, + onStateChange: downshift_esm_noop, + onInputValueChange: downshift_esm_noop, + onUserAction: downshift_esm_noop, + onChange: downshift_esm_noop, + onSelect: downshift_esm_noop, + onOuterClick: downshift_esm_noop, + selectedItemChanged: function selectedItemChanged(prevItem, item) { + return prevItem !== item; + }, + environment: 'undefined' == typeof window ? {} : window, + stateReducer: function stateReducer(state, stateToSet) { + return stateToSet; + }, + suppressRefError: !1, + scrollIntoView: downshift_esm_scrollIntoView, + }), + (Downshift.stateChangeTypes = stateChangeTypes$3), + Downshift + ); + })(); + function validateGetMenuPropsCalledCorrectly(node, _ref12) { + var refKey = _ref12.refKey; + node || + console.error( + 'downshift: The ref prop "' + + refKey + + '" from getMenuProps was not applied correctly on your menu element.', + ); + } + Downshift.propTypes = { + children: prop_types_default().func, + defaultHighlightedIndex: prop_types_default().number, + defaultIsOpen: prop_types_default().bool, + initialHighlightedIndex: prop_types_default().number, + initialSelectedItem: prop_types_default().any, + initialInputValue: prop_types_default().string, + initialIsOpen: prop_types_default().bool, + getA11yStatusMessage: prop_types_default().func, + itemToString: prop_types_default().func, + onChange: prop_types_default().func, + onSelect: prop_types_default().func, + onStateChange: prop_types_default().func, + onInputValueChange: prop_types_default().func, + onUserAction: prop_types_default().func, + onOuterClick: prop_types_default().func, + selectedItemChanged: prop_types_default().func, + stateReducer: prop_types_default().func, + itemCount: prop_types_default().number, + id: prop_types_default().string, + environment: prop_types_default().shape({ + addEventListener: prop_types_default().func, + removeEventListener: prop_types_default().func, + document: prop_types_default().shape({ + getElementById: prop_types_default().func, + activeElement: prop_types_default().any, + body: prop_types_default().any, + }), + }), + suppressRefError: prop_types_default().bool, + scrollIntoView: prop_types_default().func, + selectedItem: prop_types_default().any, + isOpen: prop_types_default().bool, + inputValue: prop_types_default().string, + highlightedIndex: prop_types_default().number, + labelId: prop_types_default().string, + inputId: prop_types_default().string, + menuId: prop_types_default().string, + getItemId: prop_types_default().func, + }; + downshift_esm_debounce(function (getA11yMessage, document) { + setStatus(getA11yMessage(), document); + }, 200), + 'undefined' != typeof window && void 0 !== window.document && void 0 !== window.document.createElement + ? react.useLayoutEffect + : react.useEffect; + var defaultProps$3 = { + itemToString: function itemToString(item) { + return item ? String(item) : ''; + }, + stateReducer: function stateReducer(s, a) { + return a.changes; + }, + getA11ySelectionMessage: function getA11ySelectionMessage(selectionParameters) { + var selectedItem = selectionParameters.selectedItem, + itemToStringLocal = selectionParameters.itemToString; + return selectedItem ? itemToStringLocal(selectedItem) + ' has been selected.' : ''; + }, + scrollIntoView: downshift_esm_scrollIntoView, + circularNavigation: !1, + environment: 'undefined' == typeof window ? {} : window, + }; + var propTypes$2 = { + items: prop_types_default().array.isRequired, + itemToString: prop_types_default().func, + getA11yStatusMessage: prop_types_default().func, + getA11ySelectionMessage: prop_types_default().func, + circularNavigation: prop_types_default().bool, + highlightedIndex: prop_types_default().number, + defaultHighlightedIndex: prop_types_default().number, + initialHighlightedIndex: prop_types_default().number, + isOpen: prop_types_default().bool, + defaultIsOpen: prop_types_default().bool, + initialIsOpen: prop_types_default().bool, + selectedItem: prop_types_default().any, + initialSelectedItem: prop_types_default().any, + defaultSelectedItem: prop_types_default().any, + id: prop_types_default().string, + labelId: prop_types_default().string, + menuId: prop_types_default().string, + getItemId: prop_types_default().func, + toggleButtonId: prop_types_default().string, + stateReducer: prop_types_default().func, + onSelectedItemChange: prop_types_default().func, + onHighlightedIndexChange: prop_types_default().func, + onStateChange: prop_types_default().func, + onIsOpenChange: prop_types_default().func, + environment: prop_types_default().shape({ + addEventListener: prop_types_default().func, + removeEventListener: prop_types_default().func, + document: prop_types_default().shape({ + getElementById: prop_types_default().func, + activeElement: prop_types_default().any, + body: prop_types_default().any, + }), + }), + }; + (0, esm_extends.Z)({}, defaultProps$3, { + getA11yStatusMessage: function getA11yStatusMessage(_ref) { + var isOpen = _ref.isOpen, + resultCount = _ref.resultCount, + previousResultCount = _ref.previousResultCount; + return isOpen + ? resultCount + ? resultCount !== previousResultCount + ? resultCount + + ' result' + + (1 === resultCount ? ' is' : 's are') + + ' available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.' + : '' + : 'No results are available.' + : ''; + }, + }); + var propTypes$1 = { + items: prop_types_default().array.isRequired, + itemToString: prop_types_default().func, + getA11yStatusMessage: prop_types_default().func, + getA11ySelectionMessage: prop_types_default().func, + circularNavigation: prop_types_default().bool, + highlightedIndex: prop_types_default().number, + defaultHighlightedIndex: prop_types_default().number, + initialHighlightedIndex: prop_types_default().number, + isOpen: prop_types_default().bool, + defaultIsOpen: prop_types_default().bool, + initialIsOpen: prop_types_default().bool, + selectedItem: prop_types_default().any, + initialSelectedItem: prop_types_default().any, + defaultSelectedItem: prop_types_default().any, + inputValue: prop_types_default().string, + defaultInputValue: prop_types_default().string, + initialInputValue: prop_types_default().string, + id: prop_types_default().string, + labelId: prop_types_default().string, + menuId: prop_types_default().string, + getItemId: prop_types_default().func, + inputId: prop_types_default().string, + toggleButtonId: prop_types_default().string, + stateReducer: prop_types_default().func, + onSelectedItemChange: prop_types_default().func, + onHighlightedIndexChange: prop_types_default().func, + onStateChange: prop_types_default().func, + onIsOpenChange: prop_types_default().func, + onInputValueChange: prop_types_default().func, + environment: prop_types_default().shape({ + addEventListener: prop_types_default().func, + removeEventListener: prop_types_default().func, + document: prop_types_default().shape({ + getElementById: prop_types_default().func, + activeElement: prop_types_default().any, + body: prop_types_default().any, + }), + }), + }; + (0, esm_extends.Z)({}, defaultProps$3, { getA11yStatusMessage: getA11yStatusMessage$1, circularNavigation: !0 }); + var propTypes = { + selectedItems: prop_types_default().array, + initialSelectedItems: prop_types_default().array, + defaultSelectedItems: prop_types_default().array, + itemToString: prop_types_default().func, + getA11yRemovalMessage: prop_types_default().func, + stateReducer: prop_types_default().func, + activeIndex: prop_types_default().number, + initialActiveIndex: prop_types_default().number, + defaultActiveIndex: prop_types_default().number, + onActiveIndexChange: prop_types_default().func, + onSelectedItemsChange: prop_types_default().func, + keyNavigationNext: prop_types_default().string, + keyNavigationPrevious: prop_types_default().string, + environment: prop_types_default().shape({ + addEventListener: prop_types_default().func, + removeEventListener: prop_types_default().func, + document: prop_types_default().shape({ + getElementById: prop_types_default().func, + activeElement: prop_types_default().any, + body: prop_types_default().any, + }), + }), + }; + const downshift_esm = Downshift; + var dist_fuse = __webpack_require__(46522), + fuse_default = __webpack_require__.n(dist_fuse); + function isCloseType(x) { + return !(!x || !x.closeMenu); + } + function isClearType(x) { + return !(!x || !x.clearLastViewed); + } + function isExpandType(x) { + return !(!x || !x.showAll); + } + function Search_extends() { + return ( + (Search_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + Search_extends.apply(this, arguments) + ); + } + function Search_toConsumableArray(arr) { + return ( + (function Search_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Search_arrayLikeToArray(arr); + })(arr) || + (function Search_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + Search_unsupportedIterableToArray(arr) || + (function Search_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Search_slicedToArray(arr, i) { + return ( + (function Search_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Search_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + Search_unsupportedIterableToArray(arr, i) || + (function Search_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Search_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return Search_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? Search_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function Search_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Search_document = window_default().document, + options = { + shouldSort: !0, + tokenize: !0, + findAllMatches: !0, + includeScore: !0, + includeMatches: !0, + threshold: 0.2, + location: 0, + distance: 100, + maxPatternLength: 32, + minMatchCharLength: 1, + keys: [ + { name: 'name', weight: 0.7 }, + { name: 'path', weight: 0.3 }, + ], + }, + ScreenReaderLabel = dist_esm.styled.label({ + position: 'absolute', + left: -1e4, + top: 'auto', + width: 1, + height: 1, + overflow: 'hidden', + }), + SearchIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref) { + return { + width: 12, + height: 12, + position: 'absolute', + top: 8, + left: 10, + zIndex: 1, + pointerEvents: 'none', + color: _ref.theme.textMutedColor, + }; + }), + SearchField = dist_esm.styled.div(function (_ref2) { + return { + display: 'flex', + flexDirection: 'column', + position: 'relative', + '&:focus-within svg': { color: _ref2.theme.color.defaultText }, + }; + }), + Input = dist_esm.styled.input(function (_ref3) { + var theme = _ref3.theme; + return { + appearance: 'none', + height: 28, + paddingLeft: 28, + paddingRight: 28, + border: '1px solid '.concat((0, polished_esm.DZ)(0.6, theme.color.mediumdark)), + background: 'transparent', + borderRadius: 28, + fontSize: ''.concat(theme.typography.size.s1, 'px'), + fontFamily: 'inherit', + transition: 'all 150ms', + color: theme.color.defaultText, + '&:focus, &:active': { outline: 0, borderColor: theme.color.secondary, background: theme.background.app }, + '&::placeholder': { color: theme.textMutedColor }, + '&:valid ~ code, &:focus ~ code': { display: 'none' }, + '&:invalid ~ svg': { display: 'none' }, + '&:valid ~ svg': { display: 'block' }, + '&::-ms-clear': { display: 'none' }, + '&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration': { + display: 'none', + }, + }; + }), + FocusKey = dist_esm.styled.code(function (_ref4) { + return { + position: 'absolute', + top: 6, + right: 12, + width: 16, + height: 16, + zIndex: 1, + lineHeight: '17px', + textAlign: 'center', + fontSize: '11px', + background: 'rgba(0,0,0,0.1)', + color: _ref4.theme.textMutedColor, + borderRadius: 2, + userSelect: 'none', + pointerEvents: 'none', + }; + }), + ClearIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref5) { + return { + width: 16, + height: 16, + padding: 4, + position: 'absolute', + top: 6, + right: 8, + zIndex: 1, + background: 'rgba(0,0,0,0.1)', + borderRadius: 16, + color: _ref5.theme.color.defaultText, + cursor: 'pointer', + }; + }), + FocusContainer = dist_esm.styled.div({ outline: 0 }), + Search = react.memo(function (_ref6) { + var children = _ref6.children, + dataset = _ref6.dataset, + _ref6$enableShortcuts = (_ref6.isLoading, _ref6.enableShortcuts), + enableShortcuts = void 0 === _ref6$enableShortcuts || _ref6$enableShortcuts, + getLastViewed = _ref6.getLastViewed, + clearLastViewed = _ref6.clearLastViewed, + _ref6$initialQuery = _ref6.initialQuery, + initialQuery = void 0 === _ref6$initialQuery ? '' : _ref6$initialQuery, + api = (0, esm.Uo)(), + inputRef = (0, react.useRef)(null), + _useState2 = Search_slicedToArray((0, react.useState)('Find components'), 2), + inputPlaceholder = _useState2[0], + setPlaceholder = _useState2[1], + _useState4 = Search_slicedToArray((0, react.useState)(!1), 2), + allComponents = _useState4[0], + showAllComponents = _useState4[1], + selectStory = (0, react.useCallback)( + function (id, refId) { + api && api.selectStory(id, void 0, { ref: refId !== DEFAULT_REF_ID && refId }), + inputRef.current.blur(), + showAllComponents(!1); + }, + [api, inputRef, showAllComponents, DEFAULT_REF_ID], + ), + list = (0, react.useMemo)( + function () { + return dataset.entries.reduce(function (acc, _ref7) { + var _ref8 = Search_slicedToArray(_ref7, 2), + refId = _ref8[0], + stories = _ref8[1].stories; + return ( + stories && + acc.push.apply( + acc, + Search_toConsumableArray( + Object.values(stories).map(function (item) { + return searchItem(item, dataset.hash[refId]); + }), + ), + ), + acc + ); + }, []); + }, + [dataset], + ), + fuse = (0, react.useMemo)( + function () { + return new (fuse_default())(list, options); + }, + [list], + ), + getResults = (0, react.useCallback)( + function (input) { + if (!input) return []; + var results = [], + resultIds = new Set(), + distinctResults = fuse.search(input).filter(function (_ref9) { + var item = _ref9.item; + return ( + !((!item.isComponent && !item.isLeaf) || resultIds.has(item.parent)) && + (resultIds.add(item.id), !0) + ); + }); + return ( + distinctResults.length && + ((results = distinctResults.slice(0, allComponents ? 1e3 : 50)), + distinctResults.length > 50 && + !allComponents && + results.push({ + showAll: function showAll() { + return showAllComponents(!0); + }, + totalCount: distinctResults.length, + moreCount: distinctResults.length - 50, + })), + results + ); + }, + [allComponents, fuse], + ), + stateReducer = (0, react.useCallback)( + function (state, changes) { + switch (changes.type) { + case downshift_esm.stateChangeTypes.blurInput: + return Object.assign({}, changes, { + inputValue: state.inputValue, + isOpen: state.inputValue && !state.selectedItem, + selectedItem: null, + }); + case downshift_esm.stateChangeTypes.mouseUp: + return {}; + case downshift_esm.stateChangeTypes.keyDownEscape: + return state.inputValue + ? Object.assign({}, changes, { inputValue: '', isOpen: !0, selectedItem: null }) + : (inputRef.current.blur(), Object.assign({}, changes, { isOpen: !1, selectedItem: null })); + case downshift_esm.stateChangeTypes.clickItem: + case downshift_esm.stateChangeTypes.keyDownEnter: + if ( + (function isSearchResult(x) { + return !(!x || !x.item); + })(changes.selectedItem) + ) { + var _changes$selectedItem = changes.selectedItem.item, + id = _changes$selectedItem.id, + refId = _changes$selectedItem.refId; + return ( + selectStory(id, refId), Object.assign({}, changes, { inputValue: state.inputValue, isOpen: !1 }) + ); + } + return isExpandType(changes.selectedItem) + ? (changes.selectedItem.showAll(), {}) + : isClearType(changes.selectedItem) + ? (changes.selectedItem.clearLastViewed(), inputRef.current.blur(), { isOpen: !1 }) + : isCloseType(changes.selectedItem) + ? (inputRef.current.blur(), { isOpen: !1 }) + : changes; + case downshift_esm.stateChangeTypes.changeInput: + return showAllComponents(!1), changes; + default: + return changes; + } + }, + [inputRef, selectStory, showAllComponents], + ); + return react.createElement( + downshift_esm, + { + initialInputValue: initialQuery, + stateReducer, + itemToString: function itemToString(result) { + var _result$item; + return ( + (null == result || null === (_result$item = result.item) || void 0 === _result$item + ? void 0 + : _result$item.name) || '' + ); + }, + }, + function (_ref10) { + var isOpen = _ref10.isOpen, + openMenu = _ref10.openMenu, + closeMenu = _ref10.closeMenu, + inputValue = _ref10.inputValue, + clearSelection = _ref10.clearSelection, + getInputProps = _ref10.getInputProps, + getItemProps = _ref10.getItemProps, + getLabelProps = _ref10.getLabelProps, + getMenuProps = _ref10.getMenuProps, + getRootProps = _ref10.getRootProps, + highlightedIndex = _ref10.highlightedIndex, + input = inputValue ? inputValue.trim() : '', + results = input ? getResults(input) : [], + lastViewed = !input && getLastViewed(); + lastViewed && + lastViewed.length && + ((results = lastViewed.reduce(function (acc, _ref11) { + var storyId = _ref11.storyId, + refId = _ref11.refId, + data = dataset.hash[refId]; + if (data && data.stories && data.stories[storyId]) { + var story = data.stories[storyId], + item = !story.isLeaf || story.isComponent || story.isRoot ? story : data.stories[story.parent]; + acc.some(function (res) { + return res.item.refId === refId && res.item.id === item.id; + }) || acc.push({ item: searchItem(item, dataset.hash[refId]), matches: [], score: 0 }); + } + return acc; + }, [])).push({ closeMenu }), + results.length > 0 && results.push({ clearLastViewed })); + var inputProps = getInputProps({ + id: 'storybook-explorer-searchfield', + ref: inputRef, + required: !0, + type: 'search', + placeholder: inputPlaceholder, + onFocus: function onFocus() { + openMenu(), setPlaceholder('Type to find...'); + }, + onBlur: function onBlur() { + return setPlaceholder('Find components'); + }, + }); + return react.createElement( + react.Fragment, + null, + react.createElement(ScreenReaderLabel, getLabelProps(), 'Search for components'), + react.createElement( + SearchField, + Search_extends({}, getRootProps({ refKey: '' }, { suppressRefError: !0 }), { + className: 'search-field', + }), + react.createElement(SearchIcon, { icon: 'search' }), + react.createElement(Input, inputProps), + enableShortcuts && react.createElement(FocusKey, null, '/'), + react.createElement(ClearIcon, { + icon: 'cross', + onClick: function onClick() { + return clearSelection(); + }, + }), + ), + react.createElement( + FocusContainer, + { tabIndex: 0, id: 'storybook-explorer-menu' }, + children({ + query: input, + results, + isBrowsing: !isOpen && Search_document.activeElement !== inputRef.current, + closeMenu, + getMenuProps, + getItemProps, + highlightedIndex, + }), + ), + ); + }, + ); + }); + function SearchResults_extends() { + return ( + (SearchResults_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + SearchResults_extends.apply(this, arguments) + ); + } + function SearchResults_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function SearchResults_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function SearchResults_slicedToArray(arr, i) { + return ( + (function SearchResults_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function SearchResults_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function SearchResults_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return SearchResults_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return SearchResults_arrayLikeToArray(o, minLen); + })(arr, i) || + (function SearchResults_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function SearchResults_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var SearchResults_document = window_default().document, + SearchResults_DOCS_MODE = window_default().DOCS_MODE, + ResultsList = dist_esm.styled.ol({ + listStyle: 'none', + margin: 0, + marginLeft: -20, + marginRight: -20, + padding: 0, + }), + ResultRow = dist_esm.styled.li(function (_ref) { + var theme = _ref.theme; + return { + display: 'block', + margin: 0, + padding: 0, + background: _ref.isHighlighted ? theme.background.hoverable : 'transparent', + cursor: 'pointer', + 'a:hover, button:hover': { background: 'transparent' }, + }; + }), + NoResults = dist_esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + marginTop: 20, + textAlign: 'center', + fontSize: ''.concat(theme.typography.size.s2 - 1, 'px'), + lineHeight: '18px', + color: theme.color.defaultText, + small: { color: theme.barTextColor, fontSize: ''.concat(theme.typography.size.s1, 'px') }, + }; + }), + Mark = dist_esm.styled.mark(function (_ref3) { + return { background: 'transparent', color: _ref3.theme.color.secondary }; + }), + ActionRow = (0, dist_esm.styled)(ResultRow)({ display: 'flex', padding: '6px 19px', alignItems: 'center' }), + BackActionRow = (0, dist_esm.styled)(ActionRow)({ marginTop: 8 }), + ActionLabel = dist_esm.styled.span(function (_ref4) { + var theme = _ref4.theme; + return { flexGrow: 1, color: theme.color.mediumdark, fontSize: ''.concat(theme.typography.size.s1, 'px') }; + }), + ActionIcon = (0, dist_esm.styled)(icon_icon.P)(function (_ref5) { + return { + display: 'inline-block', + width: 10, + height: 10, + marginRight: 6, + color: _ref5.theme.color.mediumdark, + }; + }), + ActionKey = dist_esm.styled.code(function (_ref6) { + return { + minWidth: 16, + height: 16, + lineHeight: '17px', + textAlign: 'center', + fontSize: '11px', + background: 'rgba(0,0,0,0.1)', + color: _ref6.theme.textMutedColor, + borderRadius: 2, + userSelect: 'none', + pointerEvents: 'none', + }; + }), + Highlight = react.memo(function (_ref7) { + var children = _ref7.children, + match = _ref7.match; + if (!match) return react.createElement(react.Fragment, null, children); + var value = match.value, + result = match.indices.reduce( + function (_ref8, _ref9, index, _ref10) { + var cursor = _ref8.cursor, + nodes = _ref8.nodes, + _ref11 = SearchResults_slicedToArray(_ref9, 2), + start = _ref11[0], + end = _ref11[1], + length = _ref10.length; + return ( + nodes.push(react.createElement('span', { key: ''.concat(index, '-0') }, value.slice(cursor, start))), + nodes.push(react.createElement(Mark, { key: ''.concat(index, '-1') }, value.slice(start, end + 1))), + index === length - 1 && + nodes.push(react.createElement('span', { key: ''.concat(index, '-2') }, value.slice(end + 1))), + { cursor: end + 1, nodes } + ); + }, + { cursor: 0, nodes: [] }, + ).nodes; + return react.createElement(react.Fragment, null, result); + }), + Result = react.memo(function (_ref12) { + var item = _ref12.item, + matches = _ref12.matches, + onClick = (_ref12.icon, _ref12.onClick), + props = SearchResults_objectWithoutProperties(_ref12, ['item', 'matches', 'icon', 'onClick']), + click = (0, react.useCallback)( + function (event) { + event.preventDefault(), onClick(event); + }, + [onClick], + ), + nameMatch = matches.find(function (match) { + return 'name' === match.key; + }), + pathMatches = matches.filter(function (match) { + return 'path' === match.key; + }), + label = react.createElement( + 'div', + { className: 'search-result-item--label' }, + react.createElement('strong', null, react.createElement(Highlight, { match: nameMatch }, item.name)), + react.createElement( + Path, + null, + item.path.map(function (group, index) { + return react.createElement( + 'span', + { key: index }, + react.createElement( + Highlight, + { + match: pathMatches.find(function (match) { + return match.arrayIndex === index; + }), + }, + group, + ), + ); + }), + ), + ), + title = ''.concat(item.path.join(' / '), ' / ').concat(item.name); + if (SearchResults_DOCS_MODE) + return react.createElement( + ResultRow, + props, + react.createElement( + DocumentNode, + { depth: 0, onClick: click, href: getLink(item.id, item.refId), title }, + label, + ), + ); + var TreeNode = item.isComponent ? ComponentNode : StoryNode; + return react.createElement( + ResultRow, + props, + react.createElement(TreeNode, { isExpanded: !1, depth: 0, onClick, title }, label), + ); + }), + SearchResults = react.memo(function (_ref13) { + var query = _ref13.query, + results = _ref13.results, + closeMenu = _ref13.closeMenu, + getMenuProps = _ref13.getMenuProps, + getItemProps = _ref13.getItemProps, + highlightedIndex = _ref13.highlightedIndex, + _ref13$isLoading = _ref13.isLoading, + isLoading = void 0 !== _ref13$isLoading && _ref13$isLoading, + _ref13$enableShortcut = _ref13.enableShortcuts, + enableShortcuts = void 0 === _ref13$enableShortcut || _ref13$enableShortcut; + return ( + (0, react.useEffect)( + function () { + var handleEscape = function handleEscape(event) { + if ( + enableShortcuts && + !isLoading && + !event.repeat && + matchesModifiers(!1, event) && + matchesKeyCode('Escape', event) + ) { + var target = event.target; + if ('storybook-explorer-searchfield' === (null == target ? void 0 : target.id)) return; + event.preventDefault(), closeMenu(); + } + }; + return ( + SearchResults_document.addEventListener('keydown', handleEscape), + function () { + return SearchResults_document.removeEventListener('keydown', handleEscape); + } + ); + }, + [enableShortcuts, isLoading], + ), + react.createElement( + ResultsList, + getMenuProps(), + results.length > 0 && + !query && + react.createElement( + 'li', + null, + react.createElement(RootNode, { className: 'search-result-recentlyOpened' }, 'Recently opened'), + ), + 0 === results.length && + query && + react.createElement( + 'li', + null, + react.createElement( + NoResults, + null, + react.createElement('strong', null, 'No components found'), + react.createElement('br', null), + react.createElement('small', null, 'Find components by name or path.'), + ), + ), + results.map(function (result, index) { + if (isCloseType(result)) + return react.createElement( + BackActionRow, + SearchResults_extends({}, result, getItemProps({ key: index, index, item: result }), { + isHighlighted: highlightedIndex === index, + className: 'search-result-back', + }), + react.createElement(ActionIcon, { icon: 'arrowleft' }), + react.createElement(ActionLabel, null, 'Back to components'), + react.createElement(ActionKey, null, 'ESC'), + ); + if (isClearType(result)) + return react.createElement( + ActionRow, + SearchResults_extends({}, result, getItemProps({ key: index, index, item: result }), { + isHighlighted: highlightedIndex === index, + className: 'search-result-clearHistory', + }), + react.createElement(ActionIcon, { icon: 'trash' }), + react.createElement(ActionLabel, null, 'Clear history'), + ); + if (isExpandType(result)) + return react.createElement( + ActionRow, + SearchResults_extends({}, result, getItemProps({ key: index, index, item: result }), { + isHighlighted: highlightedIndex === index, + className: 'search-result-more', + }), + react.createElement(ActionIcon, { icon: 'plus' }), + react.createElement(ActionLabel, null, 'Show ', result.moreCount, ' more results'), + ); + var item = result.item, + key = ''.concat(item.refId, '::').concat(item.id); + return react.createElement( + Result, + SearchResults_extends({}, result, getItemProps({ key, index, item: result }), { + isHighlighted: highlightedIndex === index, + className: 'search-result-item', + }), + ); + }), + ) + ); + }); + function useLastViewed_toConsumableArray(arr) { + return ( + (function useLastViewed_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return useLastViewed_arrayLikeToArray(arr); + })(arr) || + (function useLastViewed_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function useLastViewed_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return useLastViewed_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return useLastViewed_arrayLikeToArray(o, minLen); + })(arr) || + (function useLastViewed_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function useLastViewed_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function useLastViewed_typeof(obj) { + return ( + (useLastViewed_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + useLastViewed_typeof(obj) + ); + } + var save = debounce_default()(function (value) { + return store2_default().set('lastViewedStoryIds', value); + }, 1e3); + function Sidebar_extends() { + return ( + (Sidebar_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + Sidebar_extends.apply(this, arguments) + ); + } + function Sidebar_slicedToArray(arr, i) { + return ( + (function Sidebar_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function Sidebar_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function Sidebar_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return Sidebar_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return Sidebar_arrayLikeToArray(o, minLen); + })(arr, i) || + (function Sidebar_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function Sidebar_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Sidebar_DOCS_MODE = window_default().DOCS_MODE, + Sidebar_Container = dist_esm.styled.nav({ + position: 'absolute', + zIndex: 1, + left: 0, + top: 0, + bottom: 0, + right: 0, + width: '100%', + height: '100%', + }), + StyledSpaced = (0, dist_esm.styled)(Spaced.q)({ paddingBottom: '2.5rem' }), + CustomScrollArea = (0, dist_esm.styled)(ScrollArea.x)({ + '&&&&& .os-scrollbar-handle:before': { left: -12 }, + '&&&&& .os-scrollbar-vertical': { right: 5 }, + padding: 20, + }), + Swap = react.memo(function (_ref) { + var children = _ref.children, + condition = _ref.condition, + _React$Children$toArr2 = Sidebar_slicedToArray(react.Children.toArray(children), 2), + a = _React$Children$toArr2[0], + b = _React$Children$toArr2[1]; + return react.createElement( + react.Fragment, + null, + react.createElement('div', { style: { display: condition ? 'block' : 'none' } }, a), + react.createElement('div', { style: { display: condition ? 'none' : 'block' } }, b), + ); + }), + useCombination = function useCombination(stories, ready, error, refs) { + var hash = (0, react.useMemo)( + function () { + return Object.assign( + (function Sidebar_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, DEFAULT_REF_ID, { stories, title: null, id: DEFAULT_REF_ID, url: 'iframe.html', ready, error }), + refs, + ); + }, + [refs, stories], + ); + return (0, react.useMemo)( + function () { + return { hash, entries: Object.entries(hash) }; + }, + [hash], + ); + }, + Sidebar = react.memo(function (_ref2) { + var _ref2$storyId = _ref2.storyId, + storyId = void 0 === _ref2$storyId ? null : _ref2$storyId, + _ref2$refId = _ref2.refId, + refId = void 0 === _ref2$refId ? DEFAULT_REF_ID : _ref2$refId, + storiesHash = _ref2.stories, + storiesConfigured = _ref2.storiesConfigured, + storiesFailed = _ref2.storiesFailed, + menu = _ref2.menu, + _ref2$menuHighlighted = _ref2.menuHighlighted, + menuHighlighted = void 0 !== _ref2$menuHighlighted && _ref2$menuHighlighted, + _ref2$enableShortcuts = _ref2.enableShortcuts, + enableShortcuts = void 0 === _ref2$enableShortcuts || _ref2$enableShortcuts, + _ref2$refs = _ref2.refs, + refs = void 0 === _ref2$refs ? {} : _ref2$refs, + selected = (0, react.useMemo)( + function () { + return storyId && { storyId, refId }; + }, + [storyId, refId], + ), + stories = (0, react.useMemo)( + function () { + return (Sidebar_DOCS_MODE ? collapseAllStories : collapseDocsOnlyStories)(storiesHash); + }, + [Sidebar_DOCS_MODE, storiesHash], + ), + dataset = useCombination(stories, storiesConfigured, storiesFailed, refs), + isLoading = !dataset.hash[DEFAULT_REF_ID].ready, + lastViewedProps = (function useLastViewed(selection) { + var initialLastViewedStoryIds = (0, react.useMemo)( + function () { + var items = store2_default().get('lastViewedStoryIds'); + return items && + Array.isArray(items) && + items.some(function (item) { + return 'object' === useLastViewed_typeof(item) && item.storyId && item.refId; + }) + ? items + : []; + }, + [store2_default()], + ), + lastViewedRef = (0, react.useRef)(initialLastViewedStoryIds), + updateLastViewed = (0, react.useCallback)( + function (story) { + var items = lastViewedRef.current, + index = items.findIndex(function (_ref) { + var storyId = _ref.storyId, + refId = _ref.refId; + return storyId === story.storyId && refId === story.refId; + }); + 0 !== index && + ((lastViewedRef.current = + -1 === index + ? [story].concat(useLastViewed_toConsumableArray(items)) + : [story].concat( + useLastViewed_toConsumableArray(items.slice(0, index)), + useLastViewed_toConsumableArray(items.slice(index + 1)), + )), + save(lastViewedRef.current)); + }, + [lastViewedRef], + ); + return ( + (0, react.useEffect)( + function () { + selection && updateLastViewed(selection); + }, + [selection], + ), + { + getLastViewed: (0, react.useCallback)( + function () { + return lastViewedRef.current; + }, + [lastViewedRef], + ), + clearLastViewed: (0, react.useCallback)( + function () { + (lastViewedRef.current = lastViewedRef.current.slice(0, 1)), save(lastViewedRef.current); + }, + [lastViewedRef], + ), + } + ); + })(selected); + return react.createElement( + Sidebar_Container, + { className: 'container sidebar-container' }, + react.createElement( + CustomScrollArea, + { vertical: !0 }, + react.createElement( + StyledSpaced, + { row: 1.6 }, + react.createElement(Heading, { + className: 'sidebar-header', + menuHighlighted, + menu, + skipLinkHref: '#storybook-preview-wrapper', + }), + react.createElement( + Search, + Sidebar_extends({ dataset, isLoading, enableShortcuts }, lastViewedProps), + function (_ref3) { + var query = _ref3.query, + results = _ref3.results, + isBrowsing = _ref3.isBrowsing, + closeMenu = _ref3.closeMenu, + getMenuProps = _ref3.getMenuProps, + getItemProps = _ref3.getItemProps, + highlightedIndex = _ref3.highlightedIndex; + return react.createElement( + Swap, + { condition: isBrowsing }, + react.createElement(Explorer, { dataset, selected, isLoading, isBrowsing }), + react.createElement(SearchResults, { + query, + results, + closeMenu, + getMenuProps, + getItemProps, + highlightedIndex, + enableShortcuts, + isLoading, + }), + ); + }, + ), + ), + ), + ); + }), + Badge = __webpack_require__(36400), + lib_shortcut = __webpack_require__(49971); + function menu_toConsumableArray(arr) { + return ( + (function menu_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return menu_arrayLikeToArray(arr); + })(arr) || + (function menu_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + menu_unsupportedIterableToArray(arr) || + (function menu_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function menu_slicedToArray(arr, i) { + return ( + (function menu_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function menu_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + menu_unsupportedIterableToArray(arr, i) || + (function menu_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function menu_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return menu_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? menu_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function menu_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var focusableUIElements_storySearchField = 'storybook-explorer-searchfield', + Key = dist_esm.styled.code(function (_ref) { + return { + width: 16, + height: 16, + lineHeight: '17px', + textAlign: 'center', + fontSize: '11px', + background: 'rgba(0,0,0,0.07)', + color: _ref.theme.color.defaultText, + borderRadius: 2, + userSelect: 'none', + pointerEvents: 'none', + '& + &': { marginLeft: 2 }, + }; + }), + Shortcut = function Shortcut(_ref2) { + var keys = _ref2.keys; + return react.createElement( + react.Fragment, + null, + keys.map(function (key, index) { + return react.createElement(Key, { key: index }, (0, lib_shortcut.vX)([key])); + }), + ); + }, + useMenu = function useMenu(api, isToolshown, isFullscreen, showPanel, showNav, enableShortcuts) { + var theme = (0, emotion_theming_browser_esm.Fg)(), + shortcutKeys = api.getShortcutKeys(), + about = (0, react.useMemo)( + function () { + return { + id: 'about', + title: 'About your Storybook', + onClick: function onClick() { + return api.navigateToSettingsPage('/settings/about'); + }, + right: api.versionUpdateAvailable() && react.createElement(Badge.C, { status: 'positive' }, 'Update'), + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + releaseNotes = (0, react.useMemo)( + function () { + return { + id: 'release-notes', + title: 'Release notes', + onClick: function onClick() { + return api.navigateToSettingsPage('/settings/release-notes'); + }, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + shortcuts = (0, react.useMemo)( + function () { + return { + id: 'shortcuts', + title: 'Keyboard shortcuts', + onClick: function onClick() { + return api.navigateToSettingsPage('/settings/shortcuts'); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.shortcutsPage }) : null, + left: react.createElement(MenuItemIcon, null), + style: { borderBottom: '4px solid '.concat(theme.appBorderColor) }, + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + sidebarToggle = (0, react.useMemo)( + function () { + return { + id: 'S', + title: 'Show sidebar', + onClick: function onClick() { + return api.toggleNav(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.toggleNav }) : null, + left: showNav + ? react.createElement(MenuItemIcon, { icon: 'check' }) + : react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys, showNav], + ), + toolbarToogle = (0, react.useMemo)( + function () { + return { + id: 'T', + title: 'Show toolbar', + onClick: function onClick() { + return api.toggleToolbar(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.toolbar }) : null, + left: isToolshown + ? react.createElement(MenuItemIcon, { icon: 'check' }) + : react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys, isToolshown], + ), + addonsToggle = (0, react.useMemo)( + function () { + return { + id: 'A', + title: 'Show addons', + onClick: function onClick() { + return api.togglePanel(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.togglePanel }) : null, + left: showPanel + ? react.createElement(MenuItemIcon, { icon: 'check' }) + : react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys, showPanel], + ), + addonsOrientationToggle = (0, react.useMemo)( + function () { + return { + id: 'D', + title: 'Change addons orientation', + onClick: function onClick() { + return api.togglePanelPosition(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.panelPosition }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + fullscreenToggle = (0, react.useMemo)( + function () { + return { + id: 'F', + title: 'Go full screen', + onClick: function onClick() { + return api.toggleFullscreen(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.fullScreen }) : null, + left: isFullscreen ? 'check' : react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys, isFullscreen], + ), + searchToggle = (0, react.useMemo)( + function () { + return { + id: '/', + title: 'Search', + onClick: function onClick() { + return api.focusOnUIElement(focusableUIElements_storySearchField); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.search }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + up = (0, react.useMemo)( + function () { + return { + id: 'up', + title: 'Previous component', + onClick: function onClick() { + return api.jumpToComponent(-1); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.prevComponent }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + down = (0, react.useMemo)( + function () { + return { + id: 'down', + title: 'Next component', + onClick: function onClick() { + return api.jumpToComponent(1); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.nextComponent }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + prev = (0, react.useMemo)( + function () { + return { + id: 'prev', + title: 'Previous story', + onClick: function onClick() { + return api.jumpToStory(-1); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.prevStory }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + next = (0, react.useMemo)( + function () { + return { + id: 'next', + title: 'Next story', + onClick: function onClick() { + return api.jumpToStory(1); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.nextStory }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ), + collapse = (0, react.useMemo)( + function () { + return { + id: 'collapse', + title: 'Collapse all', + onClick: function onClick() { + return api.collapseAll(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: shortcutKeys.collapseAll }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }, + [api, enableShortcuts, shortcutKeys], + ); + return (0, react.useMemo)(function () { + return [about].concat( + menu_toConsumableArray(api.releaseNotesVersion() ? [releaseNotes] : []), + [ + shortcuts, + sidebarToggle, + toolbarToogle, + addonsToggle, + addonsOrientationToggle, + fullscreenToggle, + searchToggle, + up, + down, + prev, + next, + collapse, + ], + menu_toConsumableArray( + (function getAddonsShortcuts() { + var addonsShortcuts = api.getAddonsShortcuts(), + keys = shortcutKeys; + return Object.entries(addonsShortcuts) + .filter(function (_ref3) { + var _ref4 = menu_slicedToArray(_ref3, 2); + return _ref4[0], _ref4[1].showInMenu; + }) + .map(function (_ref5) { + var _ref6 = menu_slicedToArray(_ref5, 2), + actionName = _ref6[0], + _ref6$ = _ref6[1], + label = _ref6$.label, + action = _ref6$.action; + return { + id: actionName, + title: label, + onClick: function onClick() { + return action(); + }, + right: enableShortcuts ? react.createElement(Shortcut, { keys: keys[actionName] }) : null, + left: react.createElement(MenuItemIcon, null), + }; + }); + })(), + ), + ); + }, [about].concat(menu_toConsumableArray(api.releaseNotesVersion() ? [releaseNotes] : []), [ + shortcuts, + sidebarToggle, + toolbarToogle, + addonsToggle, + addonsOrientationToggle, + fullscreenToggle, + searchToggle, + up, + down, + prev, + next, + collapse, + ])); + }; + const sidebar = react.memo(function () { + return react.createElement( + esm.$6, + { + filter: function mapper(_ref) { + var state = _ref.state, + api = _ref.api, + _state$ui = state.ui, + name = _state$ui.name, + url = _state$ui.url, + enableShortcuts = _state$ui.enableShortcuts, + viewMode = state.viewMode, + storyId = state.storyId, + refId = state.refId, + _state$layout = state.layout, + isToolshown = _state$layout.isToolshown, + isFullscreen = _state$layout.isFullscreen, + showPanel = _state$layout.showPanel, + showNav = _state$layout.showNav, + storiesHash = state.storiesHash, + storiesConfigured = state.storiesConfigured; + return { + title: name, + url, + stories: storiesHash, + storiesFailed: state.storiesFailed, + storiesConfigured, + refs: state.refs, + storyId, + refId, + viewMode, + menu: useMenu(api, isToolshown, isFullscreen, showPanel, showNav, enableShortcuts), + menuHighlighted: api.versionUpdateAvailable(), + enableShortcuts, + }; + }, + }, + function (fromState) { + return react.createElement(Sidebar, fromState); + }, + ); + }); + var types = __webpack_require__(31665), + addons_dist_esm = __webpack_require__(21872), + Loader_Loader = __webpack_require__(54177), + FrameWrap = dist_esm.styled.div(function (_ref) { + var offset = _ref.offset; + return { + position: 'absolute', + overflow: 'auto', + left: 0, + right: 0, + bottom: 0, + top: offset, + zIndex: 3, + transition: 'all 0.1s linear', + height: 'calc(100% - '.concat(offset, 'px)'), + background: 'transparent', + }; + }), + UnstyledLink = (0, dist_esm.styled)(QueryLink)({ + color: 'inherit', + textDecoration: 'inherit', + display: 'inline-block', + }), + DesktopOnly = dist_esm.styled.span({ '@media (max-width: 599px)': { display: 'none' } }), + IframeWrapper = dist_esm.styled.div(function (_ref2) { + return { + position: 'absolute', + top: 0, + left: 0, + bottom: 0, + right: 0, + width: '100%', + height: '100%', + background: _ref2.theme.background.content, + }; + }), + LoaderWrapper = dist_esm.styled.div(function (_ref3) { + return { + position: 'absolute', + top: 0, + left: 0, + bottom: 0, + right: 0, + background: _ref3.theme.background.content, + zIndex: 1, + }; + }), + separator = __webpack_require__(91315); + function zoom_typeof(obj) { + return ( + (zoom_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + zoom_typeof(obj) + ); + } + function zoom_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function zoom_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function zoom_setPrototypeOf(o, p) { + return ( + (zoom_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + zoom_setPrototypeOf(o, p) + ); + } + function zoom_createSuper(Derived) { + var hasNativeReflectConstruct = (function zoom_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = zoom_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = zoom_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return zoom_possibleConstructorReturn(this, result); + }; + } + function zoom_possibleConstructorReturn(self, call) { + return !call || ('object' !== zoom_typeof(call) && 'function' != typeof call) + ? (function zoom_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function zoom_getPrototypeOf(o) { + return ( + (zoom_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + zoom_getPrototypeOf(o) + ); + } + var Context = react.createContext({ value: 1, set: function set(v) {} }), + ZoomProvider = (function (_Component) { + !(function zoom_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && zoom_setPrototypeOf(subClass, superClass); + })(ZoomProvider, _Component); + var _super = zoom_createSuper(ZoomProvider); + function ZoomProvider() { + var _this; + zoom_classCallCheck(this, ZoomProvider); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return ( + ((_this = _super.call.apply(_super, [this].concat(args))).state = { value: 1 }), + (_this.set = function (value) { + return _this.setState({ value }); + }), + _this + ); + } + return ( + (function zoom_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && zoom_defineProperties(Constructor.prototype, protoProps), + staticProps && zoom_defineProperties(Constructor, staticProps), + Constructor + ); + })(ZoomProvider, [ + { + key: 'render', + value: function render() { + var _this$props = this.props, + children = _this$props.children, + shouldScale = _this$props.shouldScale, + set = this.set, + value = this.state.value; + return react.createElement( + Context.Provider, + { value: { value: shouldScale ? value : 1, set } }, + children, + ); + }, + }, + ]), + ZoomProvider + ); + })(react.Component); + ZoomProvider.displayName = 'ZoomProvider'; + var ZoomConsumer = Context.Consumer, + Zoom = react.memo(function (_ref) { + var zoomIn = _ref.zoomIn, + zoomOut = _ref.zoomOut, + reset = _ref.reset; + return react.createElement( + react.Fragment, + null, + react.createElement( + bar_button.hU, + { key: 'zoomin', onClick: zoomIn, title: 'Zoom in' }, + react.createElement(icon_icon.P, { icon: 'zoom' }), + ), + react.createElement( + bar_button.hU, + { key: 'zoomout', onClick: zoomOut, title: 'Zoom out' }, + react.createElement(icon_icon.P, { icon: 'zoomout' }), + ), + react.createElement( + bar_button.hU, + { key: 'zoomreset', onClick: reset, title: 'Reset zoom' }, + react.createElement(icon_icon.P, { icon: 'zoomreset' }), + ), + ); + }), + ZoomWrapper = react.memo(function (_ref2) { + var set = _ref2.set, + value = _ref2.value, + zoomIn = (0, react.useCallback)( + function (e) { + e.preventDefault(), set(0.8 * value); + }, + [set, value], + ), + zoomOut = (0, react.useCallback)( + function (e) { + e.preventDefault(), set(1.25 * value); + }, + [set, value], + ), + reset = (0, react.useCallback)( + function (e) { + e.preventDefault(), set(1); + }, + [set, 1], + ); + return react.createElement(Zoom, { key: 'zoom', zoomIn, zoomOut, reset }); + }), + zoomTool = { + title: 'zoom', + id: 'zoom', + match: function match(_ref3) { + return 'story' === _ref3.viewMode; + }, + render: react.memo(function () { + return react.createElement( + react.Fragment, + null, + react.createElement(ZoomConsumer, null, function (_ref4) { + var set = _ref4.set, + value = _ref4.value; + return react.createElement(ZoomWrapper, { set, value }); + }), + react.createElement(separator.Z, null), + ); + }), + }, + ApplyWrappers = function ApplyWrappers(_ref) { + var wrappers = _ref.wrappers, + id = _ref.id, + storyId = _ref.storyId, + active = _ref.active, + children = _ref.children; + return react.createElement( + react.Fragment, + null, + wrappers.reduceRight(function (acc, wrapper, index) { + return wrapper.render({ index, children: acc, id, storyId, active }); + }, children), + ); + }; + ApplyWrappers.displayName = 'ApplyWrappers'; + var defaultWrappers = [ + { + render: function render(p) { + return react.createElement( + IframeWrapper, + { id: 'storybook-preview-wrapper', hidden: !p.active }, + p.children, + ); + }, + }, + ], + bar = __webpack_require__(37241), + tabs_tabs = __webpack_require__(58929), + copy_to_clipboard = __webpack_require__(50381), + copy_to_clipboard_default = __webpack_require__.n(copy_to_clipboard), + lib = __webpack_require__(19126), + lib_default = __webpack_require__.n(lib), + stringifyQueryParams = function stringifyQueryParams(queryParams) { + return lib_default().stringify(queryParams, { addQueryPrefix: !0, encode: !1 }).replace(/^\?/, '&'); + }, + PREVIEW_URL = window_default().PREVIEW_URL, + copyMapper = function copyMapper(_ref) { + var state = _ref.state, + storyId = state.storyId, + refId = state.refId, + ref = state.refs[refId]; + return { + refId, + baseUrl: ref ? ''.concat(ref.url, '/iframe.html') : PREVIEW_URL || 'iframe.html', + storyId, + queryParams: state.customQueryParams, + }; + }, + copyTool = { + title: 'copy', + id: 'copy', + match: function match(_ref2) { + return 'story' === _ref2.viewMode; + }, + render: function render() { + return react.createElement(esm.$6, { filter: copyMapper }, function (_ref3) { + var baseUrl = _ref3.baseUrl, + storyId = _ref3.storyId, + queryParams = _ref3.queryParams; + return storyId + ? react.createElement( + bar_button.hU, + { + key: 'copy', + onClick: function onClick() { + return copy_to_clipboard_default()( + ''.concat(baseUrl, '?id=').concat(storyId).concat(stringifyQueryParams(queryParams)), + ); + }, + title: 'Copy canvas link', + }, + react.createElement(icon_icon.P, { icon: 'link' }), + ) + : null; + }); + }, + }, + eject_PREVIEW_URL = window_default().PREVIEW_URL, + ejectMapper = function ejectMapper(_ref) { + var state = _ref.state, + storyId = state.storyId, + refId = state.refId, + ref = state.refs[refId]; + return { + refId, + baseUrl: ref ? ''.concat(ref.url, '/iframe.html') : eject_PREVIEW_URL || 'iframe.html', + storyId, + queryParams: state.customQueryParams, + }; + }, + ejectTool = { + title: 'eject', + id: 'eject', + match: function match(_ref2) { + return 'story' === _ref2.viewMode; + }, + render: function render() { + return react.createElement(esm.$6, { filter: ejectMapper }, function (_ref3) { + var baseUrl = _ref3.baseUrl, + storyId = _ref3.storyId, + queryParams = _ref3.queryParams; + return storyId + ? react.createElement( + bar_button.hU, + { + key: 'opener', + href: ''.concat(baseUrl, '?id=').concat(storyId).concat(stringifyQueryParams(queryParams)), + target: '_blank', + title: 'Open canvas in new tab', + }, + react.createElement(icon_icon.P, { icon: 'sharealt' }), + ) + : null; + }); + }, + }, + menuMapper = function menuMapper(_ref) { + var api = _ref.api, + state = _ref.state; + return { + isVisible: state.layout.showNav, + singleStory: state.singleStory, + toggle: function toggle() { + return api.toggleNav(); + }, + }; + }, + menuTool = { + title: 'menu', + id: 'menu', + match: function match(_ref2) { + return 'story' === _ref2.viewMode; + }, + render: function render() { + return react.createElement(esm.$6, { filter: menuMapper }, function (_ref3) { + var isVisible = _ref3.isVisible, + toggle = _ref3.toggle; + return ( + !_ref3.singleStory && + !isVisible && + react.createElement( + react.Fragment, + null, + react.createElement( + bar_button.hU, + { 'aria-label': 'Show sidebar', key: 'menu', onClick: toggle, title: 'Show sidebar' }, + react.createElement(icon_icon.P, { icon: 'menu' }), + ), + react.createElement(separator.Z, null), + ) + ); + }); + }, + }; + function toolbar_extends() { + return ( + (toolbar_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + toolbar_extends.apply(this, arguments) + ); + } + function toolbar_toConsumableArray(arr) { + return ( + (function toolbar_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return toolbar_arrayLikeToArray(arr); + })(arr) || + (function toolbar_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function toolbar_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return toolbar_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return toolbar_arrayLikeToArray(o, minLen); + })(arr) || + (function toolbar_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function toolbar_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function toolbar_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function toolbar_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var toolbar_Bar = function Bar(_ref) { + _ref.shown; + var props = toolbar_objectWithoutProperties(_ref, ['shown']); + return react.createElement(bar.j, props); + }; + toolbar_Bar.displayName = 'Bar'; + var Toolbar = (0, dist_esm.styled)(toolbar_Bar)( + { position: 'absolute', left: 0, right: 0, top: 0, transition: 'transform .2s linear' }, + function (_ref2) { + return { transform: _ref2.shown ? 'translateY(0px)' : 'translateY(-40px)' }; + }, + ), + fullScreenMapper = function fullScreenMapper(_ref3) { + var api = _ref3.api, + state = _ref3.state; + return { + toggle: api.toggleFullscreen, + value: state.layout.isFullscreen, + shortcut: (0, lib_shortcut.vX)(api.getShortcutKeys().fullScreen), + hasPanel: Object.keys(api.getPanels()).length > 0, + singleStory: state.singleStory, + }; + }, + fullScreenTool = { + title: 'fullscreen', + id: 'fullscreen', + match: function match(p) { + return ['story', 'docs'].includes(p.viewMode); + }, + render: function render() { + return react.createElement(esm.$6, { filter: fullScreenMapper }, function (_ref4) { + var toggle = _ref4.toggle, + value = _ref4.value, + shortcut = _ref4.shortcut, + hasPanel = _ref4.hasPanel, + singleStory = _ref4.singleStory; + return ( + (!singleStory || (singleStory && hasPanel)) && + react.createElement( + DesktopOnly, + null, + react.createElement( + bar_button.hU, + { + key: 'full', + onClick: toggle, + title: ''.concat(value ? 'Exit full screen' : 'Go full screen', ' [').concat(shortcut, ']'), + }, + react.createElement(icon_icon.P, { icon: value ? 'close' : 'expand' }), + ), + ) + ); + }); + }, + }, + tabsMapper = function tabsMapper(_ref5) { + var state = _ref5.state; + return { + viewMode: state.docsOnly, + storyId: state.storyId, + path: state.path, + location: state.location, + refId: state.refId, + }; + }, + createTabsTool = function createTabsTool(tabs) { + return { + title: 'title', + id: 'title', + render: function render() { + return react.createElement(esm.$6, { filter: tabsMapper }, function (rp) { + return react.createElement( + react.Fragment, + null, + react.createElement( + tabs_tabs.nj, + { key: 'tabs' }, + tabs + .filter(function (p) { + return !p.hidden; + }) + .map(function (t, index) { + var to = t.route(rp), + isActive = rp.path === to; + return react.createElement( + UnstyledLink, + { key: t.id || 'l'.concat(index), to }, + react.createElement(bar_button.Y6, { disabled: t.disabled, active: isActive }, t.title), + ); + }), + ), + react.createElement(separator.Z, null), + ); + }); + }, + }; + }, + defaultTools = [zoomTool], + defaultToolsExtra = [fullScreenTool, ejectTool, copyTool], + useTools = function useTools(getElements, tabs, viewMode, story, location, path) { + var toolsFromConfig = (0, react.useMemo)( + function () { + return (function getTools(getFn) { + return Object.values(getFn(types.V.TOOL)); + })(getElements); + }, + [getElements], + ), + toolsExtraFromConfig = (0, react.useMemo)( + function () { + return (function getToolsExtra(getFn) { + return Object.values(getFn(types.V.TOOLEXTRA)); + })(getElements); + }, + [getElements], + ), + tools = (0, react.useMemo)( + function () { + return [].concat(defaultTools, toolbar_toConsumableArray(toolsFromConfig)); + }, + [defaultTools, toolsFromConfig], + ), + toolsExtra = (0, react.useMemo)( + function () { + return [].concat(defaultToolsExtra, toolbar_toConsumableArray(toolsExtraFromConfig)); + }, + [defaultToolsExtra, toolsExtraFromConfig], + ); + return (0, react.useMemo)( + function () { + return story && story.parameters + ? (function filterTools(tools, toolsExtra, tabs, _ref10) { + var viewMode = _ref10.viewMode, + story = _ref10.story, + location = _ref10.location, + path = _ref10.path, + toolsLeft = [ + menuTool, + tabs.filter(function (p) { + return !p.hidden; + }).length >= 1 && createTabsTool(tabs), + ].concat(toolbar_toConsumableArray(tools)), + toolsRight = toolbar_toConsumableArray(toolsExtra), + filter = function filter(item) { + return ( + item && + (!item.match || + item.match({ storyId: story.id, refId: story.refId, viewMode, location, path })) && + !(function toolbarItemHasBeenExcluded(item, story) { + var _toolbarItems$item$id, + toolbarItemsFromStoryParameters = + 'toolbar' in story.parameters ? story.parameters.toolbar : void 0, + toolbarItemsFromAddonsConfig = addons_dist_esm.KP.getConfig().toolbar, + toolbarItems = (0, esm.TS)(toolbarItemsFromAddonsConfig, toolbarItemsFromStoryParameters); + return ( + !!toolbarItems && + !( + null === (_toolbarItems$item$id = toolbarItems[item.id]) || + void 0 === _toolbarItems$item$id || + !_toolbarItems$item$id.hidden + ) + ); + })(item, story) + ); + }, + left = toolsLeft.filter(filter), + right = toolsRight.filter(filter); + return { left, right }; + })(tools, toolsExtra, tabs, { viewMode, story, location, path }) + : { left: tools, right: toolsExtra }; + }, + [viewMode, story, location, path, tools, toolsExtra, tabs], + ); + }, + ToolRes = react.memo(function (_ref6) { + var api = _ref6.api, + story = _ref6.story, + tabs = _ref6.tabs, + isShown = _ref6.isShown, + location = _ref6.location, + path = _ref6.path, + viewMode = _ref6.viewMode, + _useTools = useTools(api.getElements, tabs, viewMode, story, location, path), + left = _useTools.left, + right = _useTools.right; + return left || right + ? react.createElement( + Toolbar, + { key: 'toolbar', shown: isShown, border: !0 }, + react.createElement(Tools, { key: 'left', list: left }), + react.createElement(Tools, { key: 'right', list: right }), + ) + : null; + }), + ToolbarComp = react.memo(function (props) { + return react.createElement(QueryLocation, null, function (_ref7) { + var location = _ref7.location, + path = _ref7.path, + viewMode = _ref7.viewMode; + return react.createElement(ToolRes, toolbar_extends({}, props, { location, path, viewMode })); + }); + }), + Tools = react.memo(function (_ref8) { + var list = _ref8.list; + return react.createElement( + react.Fragment, + null, + list.filter(Boolean).map(function (_ref9, index) { + var Render = _ref9.render, + id = _ref9.id, + t = toolbar_objectWithoutProperties(_ref9, ['render', 'id']); + return react.createElement(Render, { key: id || t.key || 'f-'.concat(index) }); + }), + ); + }); + var Zoom_Zoom = __webpack_require__(7057); + function iframe_extends() { + return ( + (iframe_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + iframe_extends.apply(this, arguments) + ); + } + function iframe_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function iframe_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var StyledIframe = dist_esm.styled.iframe({ + position: 'absolute', + display: 'block', + boxSizing: 'content-box', + height: '100%', + width: '100%', + border: '0 none', + transition: 'all .3s, background-position 0s, visibility 0s', + backgroundPosition: '-1px -1px, -1px -1px, -1px -1px, -1px -1px', + }); + function IFrame(props) { + var active = props.active, + id = props.id, + title = props.title, + src = props.src, + allowFullScreen = props.allowFullScreen, + scale = props.scale, + rest = iframe_objectWithoutProperties(props, ['active', 'id', 'title', 'src', 'allowFullScreen', 'scale']), + iFrameRef = react.useRef(null); + return react.createElement( + Zoom_Zoom.L.IFrame, + { scale, active, iFrameRef }, + react.createElement( + StyledIframe, + iframe_extends( + { + 'data-is-storybook': active ? 'true' : 'false', + onLoad: function onLoad(e) { + return e.currentTarget.setAttribute('data-is-loaded', 'true'); + }, + id, + title, + src, + allowFullScreen, + ref: iFrameRef, + }, + rest, + ), + ), + ); + } + function FramesRenderer_slicedToArray(arr, i) { + return ( + (function FramesRenderer_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function FramesRenderer_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function FramesRenderer_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return FramesRenderer_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return FramesRenderer_arrayLikeToArray(o, minLen); + })(arr, i) || + (function FramesRenderer_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function FramesRenderer_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + IFrame.displayName = 'IFrame'; + var SkipToSidebarLink = (0, dist_esm.styled)(Button.z)(function (_ref) { + return { + display: 'none', + '@media (min-width: 600px)': { + display: 'block', + position: 'absolute', + top: 10, + right: 15, + padding: '10px 15px', + fontSize: _ref.theme.typography.size.s1, + transform: 'translateY(-100px)', + '&:focus': { transform: 'translateY(0)', zIndex: 1 }, + }, + }; + }), + whenSidebarIsVisible = function whenSidebarIsVisible(_ref2) { + var state = _ref2.state; + return { + isFullscreen: state.layout.isFullscreen, + showNav: state.layout.showNav, + selectedStoryId: state.storyId, + }; + }, + FramesRenderer = function FramesRenderer(_ref3) { + var _refs$refId, + refs = _ref3.refs, + story = _ref3.story, + scale = _ref3.scale, + _ref3$viewMode = _ref3.viewMode, + viewMode = void 0 === _ref3$viewMode ? 'story' : _ref3$viewMode, + refId = _ref3.refId, + _ref3$queryParams = _ref3.queryParams, + queryParams = void 0 === _ref3$queryParams ? {} : _ref3$queryParams, + baseUrl = _ref3.baseUrl, + _ref3$storyId = _ref3.storyId, + storyId = void 0 === _ref3$storyId ? '*' : _ref3$storyId, + version = null === (_refs$refId = refs[refId]) || void 0 === _refs$refId ? void 0 : _refs$refId.version, + stringifiedQueryParams = stringifyQueryParams(Object.assign({}, queryParams, version && { version })), + active = (function getActive(refId) { + return refId ? 'storybook-ref-'.concat(refId) : 'storybook-preview-iframe'; + })(refId), + styles = (0, react.useMemo)(function () { + return { + '[data-is-storybook="false"]': { visibility: 'hidden' }, + '[data-is-storybook="true"]': { visibility: 'visible' }, + }; + }, []), + _useState2 = FramesRenderer_slicedToArray( + (0, react.useState)({ + 'storybook-preview-iframe': '' + .concat(baseUrl, '?id=') + .concat(storyId, '&viewMode=') + .concat(viewMode) + .concat(stringifiedQueryParams), + }), + 2, + ), + frames = _useState2[0], + setFrames = _useState2[1]; + return ( + (0, react.useEffect)( + function () { + var newFrames = Object.values(refs) + .filter(function (r) { + return !r.error && ('auto-inject' === r.type || !(!story || r.id !== story.refId)); + }) + .reduce(function (acc, r) { + return Object.assign( + {}, + acc, + (function FramesRenderer_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })( + {}, + 'storybook-ref-'.concat(r.id), + '' + .concat(r.url, '/iframe.html?id=') + .concat(storyId, '&viewMode=') + .concat(viewMode, '&refId=') + .concat(r.id) + .concat(stringifiedQueryParams), + ), + ); + }, frames); + setFrames(newFrames); + }, + [storyId, story, refs], + ), + react.createElement( + react.Fragment, + null, + react.createElement(core_browser_esm.xB, { styles }), + react.createElement(esm.$6, { filter: whenSidebarIsVisible }, function (_ref4) { + var isFullscreen = _ref4.isFullscreen, + showNav = _ref4.showNav, + selectedStoryId = _ref4.selectedStoryId; + return !isFullscreen && showNav && selectedStoryId + ? react.createElement( + SkipToSidebarLink, + { secondary: !0, isLink: !0, tabIndex: 0, href: '#'.concat(selectedStoryId) }, + 'Skip to sidebar', + ) + : null; + }), + Object.entries(frames).map(function (_ref5) { + var _ref6 = FramesRenderer_slicedToArray(_ref5, 2), + id = _ref6[0], + src = _ref6[1]; + return react.createElement( + react.Fragment, + { key: id }, + react.createElement(IFrame, { + active: id === active, + key: refs[id] ? refs[id].url : id, + id, + title: id, + src, + allowFullScreen: !0, + scale, + }), + ); + }), + ) + ); + }; + function preview_objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function preview_objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + function preview_toConsumableArray(arr) { + return ( + (function preview_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return preview_arrayLikeToArray(arr); + })(arr) || + (function preview_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + (function preview_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return preview_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return preview_arrayLikeToArray(o, minLen); + })(arr) || + (function preview_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function preview_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + FramesRenderer.displayName = 'FramesRenderer'; + var getWrappers = function getWrappers(getFn) { + return Object.values(getFn(types.V.PREVIEW)); + }, + canvasMapper = function canvasMapper(_ref) { + var state = _ref.state, + api = _ref.api; + return { + storyId: state.storyId, + refId: state.refId, + viewMode: state.viewMode, + customCanvas: api.renderPreview, + queryParams: state.customQueryParams, + getElements: api.getElements, + story: api.getData(state.storyId, state.refId), + storiesConfigured: state.storiesConfigured, + storiesFailed: state.storiesFailed, + refs: state.refs, + active: !(!state.viewMode || !state.viewMode.match(/^(story|docs)$/)), + }; + }, + useTabs = function useTabs(id, baseUrl, withLoader, getElements, story) { + var canvas = (0, react.useMemo)( + function () { + return (function createCanvas(id) { + var baseUrl = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'iframe.html', + withLoader = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; + return { + id: 'canvas', + title: 'Canvas', + route: function route(_ref2) { + var storyId = _ref2.storyId, + refId = _ref2.refId; + return refId ? '/story/'.concat(refId, '_').concat(storyId) : '/story/'.concat(storyId); + }, + match: function match(_ref3) { + var viewMode = _ref3.viewMode; + return !(!viewMode || !viewMode.match(/^(story|docs)$/)); + }, + render: function render() { + return react.createElement(esm.$6, { filter: canvasMapper }, function (_ref4) { + var story = _ref4.story, + refs = _ref4.refs, + customCanvas = _ref4.customCanvas, + storyId = _ref4.storyId, + refId = _ref4.refId, + viewMode = _ref4.viewMode, + queryParams = _ref4.queryParams, + getElements = _ref4.getElements, + storiesConfigured = _ref4.storiesConfigured, + storiesFailed = _ref4.storiesFailed, + active = _ref4.active, + wrappers = (0, react.useMemo)(function () { + return [].concat( + preview_toConsumableArray(defaultWrappers), + preview_toConsumableArray(getWrappers(getElements)), + ); + }, [getElements].concat(preview_toConsumableArray(defaultWrappers))), + isLoading = story + ? !!refs[refId] && !refs[refId].ready + : !storiesFailed && !storiesConfigured; + return react.createElement(ZoomConsumer, null, function (_ref5) { + var scale = _ref5.value; + return react.createElement( + react.Fragment, + null, + withLoader && + isLoading && + react.createElement( + LoaderWrapper, + null, + react.createElement(Loader_Loader.a, { id: 'preview-loader', role: 'progressbar' }), + ), + react.createElement( + ApplyWrappers, + { id, storyId, viewMode, active, wrappers }, + customCanvas + ? customCanvas(storyId, viewMode, id, baseUrl, scale, queryParams) + : react.createElement(FramesRenderer, { + baseUrl, + refs, + scale, + story, + viewMode, + refId, + queryParams, + storyId, + }), + ), + ); + }); + }); + }, + }; + })(id, baseUrl, withLoader); + }, + [id, baseUrl, withLoader], + ), + tabsFromConfig = (0, react.useMemo)( + function () { + return (function getTabs(getFn) { + return Object.values(getFn(types.V.TAB)); + })(getElements); + }, + [getElements], + ); + return (0, react.useMemo)(function () { + return null != story && story.parameters + ? (function filterTabs(panels, parameters) { + var previewTabs = addons_dist_esm.KP.getConfig().previewTabs, + parametersTabs = parameters ? parameters.previewTabs : void 0; + if (previewTabs || parametersTabs) { + var tabs = (0, esm.TS)(previewTabs, parametersTabs), + arrTabs = Object.keys(tabs).map(function (key, index) { + return Object.assign( + { index }, + 'string' == typeof tabs[key] ? { title: tabs[key] } : tabs[key], + { id: key }, + ); + }); + return panels + .filter(function (panel) { + var t = arrTabs.find(function (tab) { + return tab.id === panel.id; + }); + return void 0 === t || 'canvas' === t.id || !t.hidden; + }) + .map(function (panel, index) { + return Object.assign({}, panel, { index }); + }) + .sort(function (p1, p2) { + var tab_1 = arrTabs.find(function (tab) { + return tab.id === p1.id; + }), + index_1 = tab_1 ? tab_1.index : arrTabs.length + p1.index, + tab_2 = arrTabs.find(function (tab) { + return tab.id === p2.id; + }); + return index_1 - (tab_2 ? tab_2.index : arrTabs.length + p2.index); + }) + .map(function (panel) { + var t = arrTabs.find(function (tab) { + return tab.id === panel.id; + }); + return t + ? Object.assign({}, panel, { + title: t.title || panel.title, + disabled: t.disabled, + hidden: t.hidden, + }) + : panel; + }); + } + return panels; + })([canvas].concat(preview_toConsumableArray(tabsFromConfig)), story.parameters) + : [canvas].concat(preview_toConsumableArray(tabsFromConfig)); + }, [story, canvas].concat(preview_toConsumableArray(tabsFromConfig))); + }, + Preview = react.memo(function (props) { + var api = props.api, + previewId = props.id, + options = props.options, + viewMode = props.viewMode, + storyId = props.storyId, + _props$story = props.story, + story = void 0 === _props$story ? void 0 : _props$story, + description = props.description, + baseUrl = props.baseUrl, + _props$withLoader = props.withLoader, + withLoader = void 0 === _props$withLoader || _props$withLoader, + getElements = api.getElements, + tabs = useTabs(previewId, baseUrl, withLoader, getElements, story), + shouldScale = 'story' === viewMode, + isToolshown = options.isToolshown, + previousStoryId = (0, react.useRef)(storyId), + previousViewMode = (0, react.useRef)(viewMode); + return ( + (0, react.useEffect)( + function () { + if ( + story && + viewMode && + (storyId !== previousStoryId.current || viewMode !== previousViewMode.current) && + ((previousStoryId.current = storyId), + (previousViewMode.current = viewMode), + viewMode.match(/docs|story/)) + ) { + var refId = story.refId, + id = story.id; + api.emit(core_events_dist_esm.SET_CURRENT_STORY, { + storyId: id, + viewMode, + options: { target: refId ? 'storybook-ref-'.concat(refId) : 'storybook-preview-iframe' }, + }); + } + }, + [story, viewMode], + ), + react.createElement( + react.Fragment, + null, + 'main' === previewId && + react.createElement(N, { key: 'description' }, react.createElement('title', null, description)), + react.createElement( + ZoomProvider, + { shouldScale }, + react.createElement(ToolbarComp, { key: 'tools', story, api, isShown: isToolshown, tabs }), + react.createElement( + FrameWrap, + { key: 'frame', offset: isToolshown ? 40 : 0 }, + tabs.map(function (_ref6, i) { + var Render = _ref6.render, + match = _ref6.match, + t = preview_objectWithoutProperties(_ref6, ['render', 'match']), + key = t.id || t.key || i; + return react.createElement( + react.Fragment, + { key }, + react.createElement(QueryLocation, null, function (lp) { + return react.createElement(Render, { active: match(lp) }); + }), + ); + }), + ), + ), + ) + ); + }); + function preview_extends() { + return ( + (preview_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + preview_extends.apply(this, arguments) + ); + } + var preview_PREVIEW_URL = window_default().PREVIEW_URL, + getDescription = function getDescription(item) { + if ((0, esm.C_)(item)) return item.name ? ''.concat(item.name, ' ⋅ Storybook') : 'Storybook'; + if ((0, esm.ty)(item)) return item.name ? ''.concat(item.name, ' ⋅ Storybook') : 'Storybook'; + if ((0, esm.zK)(item)) { + var kind = item.kind, + name = item.name; + return kind && name + ? (function splitTitleAddExtraSpace(input) { + return input.split('/').join(' / ').replace(/\s\s/, ' '); + })(''.concat(kind, ' - ').concat(name, ' ⋅ Storybook')) + : 'Storybook'; + } + return 'Storybook'; + }, + mapper = function mapper(_ref) { + var api = _ref.api, + state = _ref.state, + layout = state.layout, + location = state.location, + customQueryParams = state.customQueryParams, + storyId = state.storyId, + refs = state.refs, + viewMode = state.viewMode, + path = state.path, + refId = state.refId, + story = api.getData(storyId, refId), + docsOnly = !(!story || !story.parameters) && !!story.parameters.docsOnly; + return { + api, + story, + options: layout, + description: getDescription(story), + viewMode, + path, + refs, + storyId, + baseUrl: preview_PREVIEW_URL || 'iframe.html', + queryParams: customQueryParams, + docsOnly, + location, + }; + }; + const preview = react.memo(function (props) { + return react.createElement(esm.$6, { filter: mapper }, function (fromState) { + return react.createElement(Preview, preview_extends({}, props, fromState)); + }); + }); + function panel_typeof(obj) { + return ( + (panel_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + panel_typeof(obj) + ); + } + function panel_slicedToArray(arr, i) { + return ( + (function panel_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function panel_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function panel_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return panel_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return panel_arrayLikeToArray(o, minLen); + })(arr, i) || + (function panel_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function panel_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function panel_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function panel_setPrototypeOf(o, p) { + return ( + (panel_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + panel_setPrototypeOf(o, p) + ); + } + function panel_createSuper(Derived) { + var hasNativeReflectConstruct = (function panel_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = panel_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = panel_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return panel_possibleConstructorReturn(this, result); + }; + } + function panel_possibleConstructorReturn(self, call) { + return !call || ('object' !== panel_typeof(call) && 'function' != typeof call) + ? (function panel_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function panel_getPrototypeOf(o) { + return ( + (panel_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + panel_getPrototypeOf(o) + ); + } + var DesktopOnlyIconButton = (0, dist_esm.styled)(bar_button.hU)({ + '@media (max-width: 599px)': { display: 'none' }, + }), + SafeTabContent = react.memo(function (_ref) { + return _ref.children; + }), + SafeTab = (function (_Component) { + !(function panel_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && panel_setPrototypeOf(subClass, superClass); + })(SafeTab, _Component); + var _super = panel_createSuper(SafeTab); + function SafeTab(props) { + var _this; + return ( + (function panel_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, SafeTab), + ((_this = _super.call(this, props)).state = { hasError: !1 }), + _this + ); + } + return ( + (function panel_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && panel_defineProperties(Constructor.prototype, protoProps), + staticProps && panel_defineProperties(Constructor, staticProps), + Constructor + ); + })(SafeTab, [ + { + key: 'componentDidCatch', + value: function componentDidCatch(error, info) { + this.setState({ hasError: !0 }), console.error(error, info); + }, + }, + { + key: 'render', + value: function render() { + var hasError = this.state.hasError, + _this$props = this.props, + children = _this$props.children, + title = _this$props.title, + id = _this$props.id; + return hasError + ? react.createElement('h1', null, 'Something went wrong.') + : react.createElement(SafeTabContent, { id, title }, children); + }, + }, + ]), + SafeTab + ); + })(react.Component); + SafeTab.displayName = 'SafeTab'; + var AddonPanel = react.memo(function (_ref2) { + var panels = _ref2.panels, + shortcuts = _ref2.shortcuts, + actions = _ref2.actions, + _ref2$selectedPanel = _ref2.selectedPanel, + selectedPanel = void 0 === _ref2$selectedPanel ? null : _ref2$selectedPanel, + _ref2$panelPosition = _ref2.panelPosition, + panelPosition = void 0 === _ref2$panelPosition ? 'right' : _ref2$panelPosition, + _ref2$absolute = _ref2.absolute, + absolute = void 0 === _ref2$absolute || _ref2$absolute; + return react.createElement( + tabs_tabs.mQ, + { + absolute, + selected: selectedPanel, + actions, + tools: react.createElement( + react.Fragment, + null, + react.createElement( + DesktopOnlyIconButton, + { + key: 'position', + onClick: actions.togglePosition, + title: 'Change addon orientation ['.concat((0, lib_shortcut.vX)(shortcuts.panelPosition), ']'), + }, + react.createElement(icon_icon.P, { icon: 'bottom' === panelPosition ? 'sidebaralt' : 'bottombar' }), + ), + react.createElement( + DesktopOnlyIconButton, + { + key: 'visibility', + onClick: actions.toggleVisibility, + title: 'Hide addons ['.concat((0, lib_shortcut.vX)(shortcuts.togglePanel), ']'), + }, + react.createElement(icon_icon.P, { icon: 'close' }), + ), + ), + id: 'storybook-panel-root', + }, + Object.entries(panels).map(function (_ref3) { + var _ref4 = panel_slicedToArray(_ref3, 2), + k = _ref4[0], + v = _ref4[1]; + return react.createElement(SafeTab, { key: k, id: k, title: v.title }, v.render); + }), + ); + }); + AddonPanel.displayName = 'AddonPanel'; + const panel = AddonPanel; + function panel_extends() { + return ( + (panel_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + panel_extends.apply(this, arguments) + ); + } + var createPanelActions = memoizerific_default()(1)(function (api) { + return { + onSelect: function onSelect(panel) { + return api.setSelectedPanel(panel); + }, + toggleVisibility: function toggleVisibility() { + return api.togglePanel(); + }, + togglePosition: function togglePosition() { + return api.togglePanelPosition(); + }, + }; + }), + panel_mapper = function mapper(_ref) { + var state = _ref.state, + api = _ref.api; + return { + panels: api.getStoryPanels(), + selectedPanel: api.getSelectedPanel(), + panelPosition: state.layout.panelPosition, + actions: createPanelActions(api), + shortcuts: api.getShortcutKeys(), + }; + }, + Panel = function Panel(props) { + return react.createElement(esm.$6, { filter: panel_mapper }, function (customProps) { + return react.createElement(panel, panel_extends({}, props, customProps)); + }); + }; + Panel.displayName = 'Panel'; + const containers_panel = Panel; + __webpack_require__(72508); + var Notification = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + position: 'relative', + display: 'flex', + padding: 15, + width: 280, + borderRadius: 4, + alignItems: 'center', + background: + 'light' === theme.base + ? 'rgba(50,53,71,0.97)' + : 'linear-gradient(0deg, rgba(248,248,248,0.97) 0%, rgba(247,252,255,0.97) 100%)', + boxShadow: '0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)', + color: theme.color.inverseText, + textDecoration: 'none', + }; + }), + NotificationLink = (0, dist_esm.styled)(Notification)(function () { + return { + transition: 'all 150ms ease-out', + transform: 'translate3d(0, 0, 0)', + '&:hover': { + transform: 'translate3d(0, -3px, 0)', + boxShadow: '0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)', + }, + '&:active': { + transform: 'translate3d(0, 0, 0)', + boxShadow: '0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)', + }, + '&:focus': { + boxShadow: '0 1px 3px 0 rgba(30,167,253,0.5), 0 2px 5px 0 rgba(0,0,0,0.05), 0 5px 15px 0 rgba(0,0,0,0.1)', + }, + }; + }).withComponent(QueryLink, { target: 'e1poa7z40', label: 'NotificationLink' }), + NotificationIconWrapper = dist_esm.styled.div(function () { + return { display: 'flex', marginRight: 10, alignItems: 'center' }; + }), + NotificationTextWrapper = dist_esm.styled.div(function () { + return { width: '100%', display: 'flex', flexDirection: 'column' }; + }), + Headline = dist_esm.styled.div(function (_ref2) { + var theme = _ref2.theme; + return { + height: '100%', + width: _ref2.hasIcon ? 205 : 230, + alignItems: 'center', + whiteSpace: 'nowrap', + overflow: 'hidden', + textOverflow: 'ellipsis', + fontSize: theme.typography.size.s1, + lineHeight: '16px', + fontWeight: theme.typography.weight.bold, + }; + }), + SubHeadline = dist_esm.styled.div(function (_ref3) { + var theme = _ref3.theme; + return { + color: (0, polished_esm.DZ)(0.25, theme.color.inverseText), + fontSize: theme.typography.size.s1 - 1, + lineHeight: '14px', + marginTop: 2, + }; + }), + ItemContent = function ItemContent(_ref4) { + var icon = _ref4.icon, + _ref4$content = _ref4.content, + headline = _ref4$content.headline, + subHeadline = _ref4$content.subHeadline; + return react.createElement( + react.Fragment, + null, + !icon || + react.createElement( + NotificationIconWrapper, + null, + react.createElement(icon_icon.P, { icon: icon.name, width: 16, color: icon.color || '#66BF3C' }), + ), + react.createElement( + NotificationTextWrapper, + null, + react.createElement(Headline, { title: headline, hasIcon: !!icon }, headline), + subHeadline && react.createElement(SubHeadline, null, subHeadline), + ), + ); + }, + DismissButtonWrapper = (0, dist_esm.styled)(bar_button.hU)(function (_ref5) { + return { + alignSelf: 'center', + marginTop: 0, + color: 'light' === _ref5.theme.base ? 'rgba(255,255,255,0.7)' : ' #999999', + }; + }), + DismissNotificationItem = function DismissNotificationItem(_ref6) { + var onDismiss = _ref6.onDismiss; + return react.createElement( + DismissButtonWrapper, + { + title: 'Dismiss notification', + onClick: function onClick(e) { + e.preventDefault(), onDismiss(); + }, + }, + react.createElement(icon_icon.P, { icon: 'closeAlt', height: 12, width: 12 }), + ); + }; + DismissNotificationItem.displayName = 'DismissNotificationItem'; + dist_esm.styled.div({ height: 48 }); + const notifications_NotificationItem = function NotificationItem(_ref7) { + var _ref7$notification = _ref7.notification, + content = _ref7$notification.content, + link = _ref7$notification.link, + onClear = _ref7$notification.onClear, + id = _ref7$notification.id, + icon = _ref7$notification.icon, + onDismissNotification = _ref7.onDismissNotification, + dismissNotificationItem = function dismissNotificationItem() { + onDismissNotification(id), onClear(); + }; + return link + ? react.createElement( + NotificationLink, + { to: link }, + react.createElement(ItemContent, { icon, content }), + react.createElement(DismissNotificationItem, { onDismiss: dismissNotificationItem }), + ) + : react.createElement( + Notification, + null, + react.createElement(ItemContent, { icon, content }), + react.createElement(DismissNotificationItem, { onDismiss: dismissNotificationItem }), + ); + }; + var List = dist_esm.styled.div( + { zIndex: 10, '> * + *': { marginTop: 10 }, '&:empty': { display: 'none' } }, + function (_ref) { + return _ref.placement || { bottom: 0, left: 0, right: 0, position: 'fixed' }; + }, + ), + NotificationList = function NotificationList(_ref2) { + var notifications = _ref2.notifications, + clearNotification = _ref2.clearNotification, + _ref2$placement = _ref2.placement, + placement = void 0 === _ref2$placement ? void 0 : _ref2$placement; + return react.createElement( + List, + { placement }, + notifications.map(function (notification) { + return react.createElement(notifications_NotificationItem, { + key: notification.id, + onDismissNotification: function onDismissNotification(id) { + return clearNotification(id); + }, + notification, + }); + }), + ); + }; + NotificationList.displayName = 'NotificationList'; + const notifications_NotificationList = NotificationList; + function notifications_extends() { + return ( + (notifications_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + notifications_extends.apply(this, arguments) + ); + } + var notifications_mapper = function mapper(_ref) { + var state = _ref.state, + clearNotification = (0, esm.Uo)().clearNotification; + return { notifications: state.notifications, clearNotification }; + }, + NotificationConnect = function NotificationConnect(props) { + return react.createElement(esm.$6, { filter: notifications_mapper }, function (fromState) { + return react.createElement(notifications_NotificationList, notifications_extends({}, props, fromState)); + }); + }; + NotificationConnect.displayName = 'NotificationConnect'; + const notifications = NotificationConnect; + var semver = __webpack_require__(33079), + semver_default = __webpack_require__.n(semver), + index_modern = __webpack_require__(38228), + StorybookIcon = __webpack_require__(92796), + DocumentWrapper = __webpack_require__(96786), + lazy_syntaxhighlighter = __webpack_require__(35007), + Footer = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + display: 'flex', + paddingTop: 20, + marginTop: 20, + borderTop: '1px solid '.concat(theme.appBorderColor), + fontWeight: theme.typography.weight.bold, + '& > * + *': { marginLeft: 20 }, + }; + }), + SettingsFooter = function SettingsFooter(props) { + return react.createElement( + Footer, + props, + react.createElement( + link_link.r, + { secondary: !0, href: 'https://storybook.js.org', cancel: !1, target: '_blank' }, + 'Docs', + ), + react.createElement( + link_link.r, + { secondary: !0, href: 'https://github.com/storybookjs/storybook', cancel: !1, target: '_blank' }, + 'GitHub', + ), + react.createElement( + link_link.r, + { secondary: !0, href: 'https://storybook.js.org/support', cancel: !1, target: '_blank' }, + 'Support', + ), + ); + }; + SettingsFooter.displayName = 'SettingsFooter'; + const settings_SettingsFooter = SettingsFooter; + var Header = dist_esm.styled.header(function (_ref) { + var theme = _ref.theme; + return { + marginBottom: 20, + fontSize: theme.typography.size.m3, + fontWeight: theme.typography.weight.black, + alignItems: 'center', + display: 'flex', + '> svg': { height: 32, width: 'auto', marginRight: 8 }, + }; + }), + Subheading = dist_esm.styled.span(function (_ref2) { + var theme = _ref2.theme; + return { + letterSpacing: '0.35em', + textTransform: 'uppercase', + fontWeight: theme.typography.weight.black, + fontSize: theme.typography.size.s2 - 1, + lineHeight: '24px', + color: theme.color.mediumdark, + }; + }), + SubheadingLink = (0, dist_esm.styled)(link_link.r)(function (_ref3) { + return { fontSize: _ref3.theme.typography.size.s1 }; + }), + Subheader = dist_esm.styled.div({ + display: 'flex', + justifyContent: 'space-between', + alignItems: 'center', + marginBottom: '.75rem', + }), + UpdateMessage = dist_esm.styled.div( + function (_ref4) { + var status = _ref4.status, + theme = _ref4.theme; + return 'positive' === status + ? { background: theme.background.positive, color: theme.color.positive } + : 'negative' === status + ? { background: theme.background.negative, color: theme.color.negative } + : { background: '#EAF3FC', color: theme.color.darkest }; + }, + function (_ref5) { + var theme = _ref5.theme; + return { + fontWeight: theme.typography.weight.bold, + fontSize: theme.typography.size.s2, + padding: '10px 20px', + marginBottom: 24, + borderRadius: theme.appBorderRadius, + border: '1px solid '.concat(theme.appBorderColor), + textAlign: 'center', + }; + }, + ), + ErrorMessage = dist_esm.styled.div(function (_ref6) { + return { fontWeight: _ref6.theme.typography.weight.bold, textAlign: 'center' }; + }), + Upgrade = dist_esm.styled.div(function (_ref7) { + var theme = _ref7.theme; + return { marginTop: 20, borderTop: '1px solid '.concat(theme.appBorderColor) }; + }), + about_Container = dist_esm.styled.div({ padding: '3rem 20px', maxWidth: 600, margin: '0 auto' }), + AboutScreen = function AboutScreen(_ref8) { + var updateMessage, + _ref8$latest = _ref8.latest, + latest = void 0 === _ref8$latest ? null : _ref8$latest, + current = _ref8.current, + canUpdate = latest && semver_default().gt(latest.version, current.version); + return ( + (updateMessage = latest + ? canUpdate + ? react.createElement( + UpdateMessage, + { status: 'positive' }, + 'Storybook ', + latest.version, + ' is available. Upgrade from ', + current.version, + ' now.', + ) + : react.createElement(UpdateMessage, { status: 'neutral' }, "Looking good! You're up to date.") + : react.createElement( + UpdateMessage, + { status: 'negative' }, + "Oops! The latest version of Storybook couldn't be fetched.", + )), + react.createElement( + about_Container, + null, + react.createElement( + Header, + null, + react.createElement(StorybookIcon.v, null), + 'Storybook ', + current.version, + ), + updateMessage, + latest + ? react.createElement( + react.Fragment, + null, + react.createElement( + Subheader, + null, + react.createElement(Subheading, null, latest.version, ' Changelog'), + react.createElement( + SubheadingLink, + { + secondary: !0, + href: 'https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md', + withArrow: !0, + cancel: !1, + target: '_blank', + }, + 'Read full changelog', + ), + ), + react.createElement( + DocumentWrapper.Z, + null, + react.createElement(index_modern.Z, null, latest.info.plain), + ), + ) + : react.createElement( + ErrorMessage, + null, + react.createElement( + link_link.r, + { + href: 'https://github.com/storybookjs/storybook/releases', + target: '_blank', + withArrow: !0, + secondary: !0, + cancel: !1, + }, + "Check Storybook's release history", + ), + ), + canUpdate && + react.createElement( + Upgrade, + null, + react.createElement( + DocumentWrapper.Z, + null, + react.createElement( + 'p', + null, + react.createElement('b', null, 'Upgrade all Storybook packages to latest:'), + ), + react.createElement( + lazy_syntaxhighlighter.d, + { language: 'bash', copyable: !0, padded: !0, bordered: !0 }, + 'npx sb upgrade', + ), + ), + ), + react.createElement(settings_SettingsFooter, null), + ) + ); + }; + function about_page_typeof(obj) { + return ( + (about_page_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + about_page_typeof(obj) + ); + } + function about_page_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + } + function about_page_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function about_page_setPrototypeOf(o, p) { + return ( + (about_page_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + about_page_setPrototypeOf(o, p) + ); + } + function about_page_createSuper(Derived) { + var hasNativeReflectConstruct = (function about_page_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = about_page_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = about_page_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return about_page_possibleConstructorReturn(this, result); + }; + } + function about_page_possibleConstructorReturn(self, call) { + return !call || ('object' !== about_page_typeof(call) && 'function' != typeof call) + ? (function about_page_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function about_page_getPrototypeOf(o) { + return ( + (about_page_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + about_page_getPrototypeOf(o) + ); + } + AboutScreen.displayName = 'AboutScreen'; + var NotificationClearer = (function (_Component) { + !(function about_page_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && about_page_setPrototypeOf(subClass, superClass); + })(NotificationClearer, _Component); + var _super = about_page_createSuper(NotificationClearer); + function NotificationClearer() { + return about_page_classCallCheck(this, NotificationClearer), _super.apply(this, arguments); + } + return ( + (function about_page_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && about_page_defineProperties(Constructor.prototype, protoProps), + staticProps && about_page_defineProperties(Constructor, staticProps), + Constructor + ); + })(NotificationClearer, [ + { + key: 'componentDidMount', + value: function componentDidMount() { + var _this$props = this.props, + api = _this$props.api, + notificationId = _this$props.notificationId; + api.clearNotification(notificationId); + }, + }, + { + key: 'render', + value: function render() { + return this.props.children; + }, + }, + ]), + NotificationClearer + ); + })(react.Component); + NotificationClearer.displayName = 'NotificationClearer'; + var AboutPage = function AboutPage() { + var api = (0, esm.Uo)(); + return react.createElement( + NotificationClearer, + { api, notificationId: 'update' }, + react.createElement(AboutScreen, { current: api.getCurrentVersion(), latest: api.getLatestVersion() }), + ); + }; + function release_notes_slicedToArray(arr, i) { + return ( + (function release_notes_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function release_notes_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function release_notes_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return release_notes_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return release_notes_arrayLikeToArray(o, minLen); + })(arr, i) || + (function release_notes_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function release_notes_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function release_notes_extends() { + return ( + (release_notes_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + release_notes_extends.apply(this, arguments) + ); + } + AboutPage.displayName = 'AboutPage'; + var Centered = dist_esm.styled.div({ + top: '50%', + position: 'absolute', + transform: 'translateY(-50%)', + width: '100%', + textAlign: 'center', + }), + release_notes_LoaderWrapper = dist_esm.styled.div({ position: 'relative', height: '32px' }), + release_notes_Message = dist_esm.styled.div(function (_ref) { + var theme = _ref.theme; + return { + paddingTop: '12px', + color: theme.color.mediumdark, + maxWidth: '295px', + margin: '0 auto', + fontSize: ''.concat(theme.typography.size.s1, 'px'), + lineHeight: '16px', + }; + }), + Iframe = dist_esm.styled.iframe( + { + position: 'absolute', + top: 0, + left: 0, + right: 0, + bottom: 0, + border: 0, + margin: 0, + padding: 0, + width: '100%', + height: '100%', + }, + function (_ref2) { + return { visibility: _ref2.isLoaded ? 'visible' : 'hidden' }; + }, + ), + AlertIcon = (0, dist_esm.styled)(function (props) { + return react.createElement(icon_icon.P, release_notes_extends({ icon: 'alert' }, props)); + })(function (_ref3) { + return { color: _ref3.theme.color.mediumdark, width: 40, margin: '0 auto' }; + }), + getIframeUrl = function getIframeUrl(version) { + var _version$split2 = release_notes_slicedToArray(version.split('.'), 2), + major = _version$split2[0], + minor = _version$split2[1]; + return 'https://storybook.js.org/releases/iframe/'.concat(major, '.').concat(minor); + }, + ReleaseNotesLoader = function ReleaseNotesLoader() { + return react.createElement( + Centered, + null, + react.createElement(release_notes_LoaderWrapper, null, react.createElement(Loader_Loader.a, null)), + react.createElement(release_notes_Message, null, 'Loading release notes'), + ); + }; + ReleaseNotesLoader.displayName = 'ReleaseNotesLoader'; + var MaxWaitTimeMessaging = function MaxWaitTimeMessaging() { + return react.createElement( + Centered, + null, + react.createElement(AlertIcon, null), + react.createElement( + release_notes_Message, + null, + "The release notes couldn't be loaded. Check your internet connection and try again.", + ), + ); + }; + MaxWaitTimeMessaging.displayName = 'MaxWaitTimeMessaging'; + var PureReleaseNotesScreen = function PureReleaseNotesScreen(_ref4) { + var didHitMaxWaitTime = _ref4.didHitMaxWaitTime, + isLoaded = _ref4.isLoaded, + setLoaded = _ref4.setLoaded, + version = _ref4.version; + return react.createElement( + react.Fragment, + null, + !isLoaded && !didHitMaxWaitTime && react.createElement(ReleaseNotesLoader, null), + didHitMaxWaitTime + ? react.createElement(MaxWaitTimeMessaging, null) + : react.createElement(Iframe, { + isLoaded, + onLoad: function onLoad() { + return setLoaded(!0); + }, + src: getIframeUrl(version), + title: 'Release notes for Storybook version '.concat(version), + }), + ); + }; + PureReleaseNotesScreen.displayName = 'PureReleaseNotesScreen'; + var ReleaseNotesScreen = function ReleaseNotesScreen(_ref5) { + var version = _ref5.version, + _useState2 = release_notes_slicedToArray((0, react.useState)(!1), 2), + isLoaded = _useState2[0], + setLoaded = _useState2[1], + _useState4 = release_notes_slicedToArray((0, react.useState)(!1), 2), + didHitMaxWaitTime = _useState4[0], + setDidHitMaxWaitTime = _useState4[1]; + return ( + (0, react.useEffect)( + function () { + var timer = setTimeout(function () { + return !isLoaded && setDidHitMaxWaitTime(!0); + }, 1e4); + return function () { + return clearTimeout(timer); + }; + }, + [isLoaded], + ), + react.createElement(PureReleaseNotesScreen, { didHitMaxWaitTime, isLoaded, setLoaded, version }) + ); + }; + ReleaseNotesScreen.displayName = 'ReleaseNotesScreen'; + var ReleaseNotesPage = function ReleaseNotesPage() { + var api = (0, esm.Uo)(); + (0, react.useEffect)(function () { + api.setDidViewReleaseNotes(); + }, []); + var version = api.releaseNotesVersion(); + return react.createElement(ReleaseNotesScreen, { version }); + }; + ReleaseNotesPage.displayName = 'ReleaseNotesPage'; + __webpack_require__(22144), __webpack_require__(73439), __webpack_require__(25047); + var _templateObject, + esm_form = __webpack_require__(44476); + function shortcuts_typeof(obj) { + return ( + (shortcuts_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + shortcuts_typeof(obj) + ); + } + function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg), + value = info.value; + } catch (error) { + return void reject(error); + } + info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); + } + function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value); + } + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err); + } + _next(void 0); + }); + }; + } + function shortcuts_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function shortcuts_setPrototypeOf(o, p) { + return ( + (shortcuts_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + shortcuts_setPrototypeOf(o, p) + ); + } + function shortcuts_createSuper(Derived) { + var hasNativeReflectConstruct = (function shortcuts_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = shortcuts_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = shortcuts_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return shortcuts_possibleConstructorReturn(this, result); + }; + } + function shortcuts_possibleConstructorReturn(self, call) { + return !call || ('object' !== shortcuts_typeof(call) && 'function' != typeof call) + ? (function shortcuts_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function shortcuts_getPrototypeOf(o) { + return ( + (shortcuts_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + shortcuts_getPrototypeOf(o) + ); + } + function shortcuts_defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function shortcuts_slicedToArray(arr, i) { + return ( + (function shortcuts_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function shortcuts_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function shortcuts_unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return shortcuts_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return shortcuts_arrayLikeToArray(o, minLen); + })(arr, i) || + (function shortcuts_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function shortcuts_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var shortcuts_Button = esm_form.l.Button, + shortcuts_Input = esm_form.l.Input, + shortcuts_Header = dist_esm.styled.header(function (_ref) { + var theme = _ref.theme; + return { + marginBottom: 20, + fontSize: theme.typography.size.m3, + fontWeight: theme.typography.weight.black, + alignItems: 'center', + display: 'flex', + }; + }), + HeaderItem = dist_esm.styled.div(function (_ref2) { + return { fontWeight: _ref2.theme.typography.weight.bold }; + }), + GridHeaderRow = dist_esm.styled.div({ + alignSelf: 'flex-end', + display: 'grid', + margin: '10px 0', + gridTemplateColumns: '1fr 1fr 12px', + '& > *:last-of-type': { gridColumn: '2 / 2', justifySelf: 'flex-end', gridRow: '1' }, + }), + Row = dist_esm.styled.div(function (_ref3) { + var theme = _ref3.theme; + return { + padding: '6px 0', + borderTop: '1px solid '.concat(theme.appBorderColor), + display: 'grid', + gridTemplateColumns: '1fr 1fr 0px', + }; + }), + GridWrapper = dist_esm.styled.div({ + display: 'grid', + gridTemplateColumns: '1fr', + gridAutoRows: 'minmax(auto, auto)', + marginBottom: 20, + }), + Description = dist_esm.styled.div({ alignSelf: 'center' }), + TextInput = (0, dist_esm.styled)(shortcuts_Input)( + function (_ref4) { + var valid = _ref4.valid, + theme = _ref4.theme; + return 'error' === valid ? { animation: ''.concat(theme.animation.jiggle, ' 700ms ease-out') } : {}; + }, + { + display: 'flex', + width: 80, + flexDirection: 'column', + justifySelf: 'flex-end', + paddingLeft: 4, + paddingRight: 4, + textAlign: 'center', + }, + ), + Fade = (0, core_browser_esm.F4)( + _templateObject || + (_templateObject = (function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })(['\n0%,100% { opacity: 0; }\n 50% { opacity: 1; }\n'])), + ), + SuccessIcon = (0, dist_esm.styled)(icon_icon.P)( + function (_ref5) { + var valid = _ref5.valid, + theme = _ref5.theme; + return 'valid' === valid + ? { color: theme.color.positive, animation: ''.concat(Fade, ' 2s ease forwards') } + : { opacity: 0 }; + }, + { alignSelf: 'center', display: 'flex', marginLeft: 10, height: 14, width: 14 }, + ), + shortcuts_Container = dist_esm.styled.div(function (_ref6) { + return { fontSize: _ref6.theme.typography.size.s2, padding: '3rem 20px', maxWidth: 600, margin: '0 auto' }; + }), + shortcutLabels = { + fullScreen: 'Go full screen', + togglePanel: 'Toggle addons', + panelPosition: 'Toggle addons orientation', + toggleNav: 'Toggle sidebar', + toolbar: 'Toggle canvas toolbar', + search: 'Focus search', + focusNav: 'Focus sidebar', + focusIframe: 'Focus canvas', + focusPanel: 'Focus addons', + prevComponent: 'Previous component', + nextComponent: 'Next component', + prevStory: 'Previous story', + nextStory: 'Next story', + shortcutsPage: 'Go to shortcuts page', + aboutPage: 'Go to about page', + collapseAll: 'Collapse all items on sidebar', + expandAll: 'Expand all items on sidebar', + }, + fixedShortcuts = ['escape']; + function toShortcutState(shortcutKeys) { + return Object.entries(shortcutKeys).reduce(function (acc, _ref7) { + var _ref8 = shortcuts_slicedToArray(_ref7, 2), + feature = _ref8[0], + shortcut = _ref8[1]; + return fixedShortcuts.includes(feature) + ? acc + : Object.assign({}, acc, shortcuts_defineProperty({}, feature, { shortcut, error: !1 })); + }, {}); + } + var ShortcutsScreen = (function (_Component) { + !(function shortcuts_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && shortcuts_setPrototypeOf(subClass, superClass); + })(ShortcutsScreen, _Component); + var _super = shortcuts_createSuper(ShortcutsScreen); + function ShortcutsScreen(props) { + var _this; + return ( + (function shortcuts_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, ShortcutsScreen), + ((_this = _super.call(this, props)).onKeyDown = function (e) { + var _this$state = _this.state, + activeFeature = _this$state.activeFeature, + shortcutKeys = _this$state.shortcutKeys; + if ('Backspace' === e.key) return _this.restoreDefault(); + var shortcut = (0, lib_shortcut.t3)(e); + if (!shortcut) return !1; + var error = !!Object.entries(shortcutKeys).find(function (_ref9) { + var _ref10 = shortcuts_slicedToArray(_ref9, 2), + feature = _ref10[0], + existingShortcut = _ref10[1].shortcut; + return ( + feature !== activeFeature && existingShortcut && (0, lib_shortcut.om)(shortcut, existingShortcut) + ); + }); + return _this.setState({ + shortcutKeys: Object.assign( + {}, + shortcutKeys, + shortcuts_defineProperty({}, activeFeature, { shortcut, error }), + ), + }); + }), + (_this.onFocus = function (focusedInput) { + return function () { + var shortcutKeys = _this.state.shortcutKeys; + _this.setState({ + activeFeature: focusedInput, + shortcutKeys: Object.assign( + {}, + shortcutKeys, + shortcuts_defineProperty({}, focusedInput, { shortcut: null, error: !1 }), + ), + }); + }; + }), + (_this.onBlur = _asyncToGenerator( + regeneratorRuntime.mark(function _callee() { + var _this$state2, shortcutKeys, activeFeature, _shortcutKeys$activeF, shortcut, error; + return regeneratorRuntime.wrap(function _callee$(_context) { + for (;;) + switch ((_context.prev = _context.next)) { + case 0: + if ( + ((_this$state2 = _this.state), + (shortcutKeys = _this$state2.shortcutKeys), + (activeFeature = _this$state2.activeFeature), + !shortcutKeys[activeFeature]) + ) { + _context.next = 6; + break; + } + if ( + ((_shortcutKeys$activeF = shortcutKeys[activeFeature]), + (shortcut = _shortcutKeys$activeF.shortcut), + (error = _shortcutKeys$activeF.error), + shortcut && !error) + ) { + _context.next = 5; + break; + } + return _context.abrupt('return', _this.restoreDefault()); + case 5: + return _context.abrupt('return', _this.saveShortcut()); + case 6: + return _context.abrupt('return', !1); + case 7: + case 'end': + return _context.stop(); + } + }, _callee); + }), + )), + (_this.saveShortcut = _asyncToGenerator( + regeneratorRuntime.mark(function _callee2() { + var _this$state3, activeFeature, shortcutKeys, setShortcut; + return regeneratorRuntime.wrap(function _callee2$(_context2) { + for (;;) + switch ((_context2.prev = _context2.next)) { + case 0: + return ( + (_this$state3 = _this.state), + (activeFeature = _this$state3.activeFeature), + (shortcutKeys = _this$state3.shortcutKeys), + (setShortcut = _this.props.setShortcut), + (_context2.next = 4), + setShortcut(activeFeature, shortcutKeys[activeFeature].shortcut) + ); + case 4: + _this.setState({ successField: activeFeature }); + case 5: + case 'end': + return _context2.stop(); + } + }, _callee2); + }), + )), + (_this.restoreDefaults = _asyncToGenerator( + regeneratorRuntime.mark(function _callee3() { + var restoreAllDefaultShortcuts, defaultShortcuts; + return regeneratorRuntime.wrap(function _callee3$(_context3) { + for (;;) + switch ((_context3.prev = _context3.next)) { + case 0: + return ( + (restoreAllDefaultShortcuts = _this.props.restoreAllDefaultShortcuts), + (_context3.next = 3), + restoreAllDefaultShortcuts() + ); + case 3: + return ( + (defaultShortcuts = _context3.sent), + _context3.abrupt( + 'return', + _this.setState({ shortcutKeys: toShortcutState(defaultShortcuts) }), + ) + ); + case 5: + case 'end': + return _context3.stop(); + } + }, _callee3); + }), + )), + (_this.restoreDefault = _asyncToGenerator( + regeneratorRuntime.mark(function _callee4() { + var _this$state4, activeFeature, shortcutKeys, restoreDefaultShortcut, defaultShortcut; + return regeneratorRuntime.wrap(function _callee4$(_context4) { + for (;;) + switch ((_context4.prev = _context4.next)) { + case 0: + return ( + (_this$state4 = _this.state), + (activeFeature = _this$state4.activeFeature), + (shortcutKeys = _this$state4.shortcutKeys), + (restoreDefaultShortcut = _this.props.restoreDefaultShortcut), + (_context4.next = 4), + restoreDefaultShortcut(activeFeature) + ); + case 4: + return ( + (defaultShortcut = _context4.sent), + _context4.abrupt( + 'return', + _this.setState({ + shortcutKeys: Object.assign( + {}, + shortcutKeys, + toShortcutState(shortcuts_defineProperty({}, activeFeature, defaultShortcut)), + ), + }), + ) + ); + case 6: + case 'end': + return _context4.stop(); + } + }, _callee4); + }), + )), + (_this.displaySuccessMessage = function (activeElement) { + var _this$state5 = _this.state, + successField = _this$state5.successField, + shortcutKeys = _this$state5.shortcutKeys; + return activeElement === successField && !1 === shortcutKeys[activeElement].error ? 'valid' : void 0; + }), + (_this.displayError = function (activeElement) { + var _this$state6 = _this.state, + activeFeature = _this$state6.activeFeature, + shortcutKeys = _this$state6.shortcutKeys; + return activeElement === activeFeature && !0 === shortcutKeys[activeElement].error ? 'error' : void 0; + }), + (_this.renderKeyInput = function () { + var _this$state7 = _this.state, + shortcutKeys = _this$state7.shortcutKeys, + addonsShortcutLabels = _this$state7.addonsShortcutLabels; + return Object.entries(shortcutKeys).map(function (_ref15) { + var _ref16 = shortcuts_slicedToArray(_ref15, 2), + feature = _ref16[0], + shortcut = _ref16[1].shortcut; + return react.createElement( + Row, + { key: feature }, + react.createElement(Description, null, shortcutLabels[feature] || addonsShortcutLabels[feature]), + react.createElement(TextInput, { + spellCheck: 'false', + valid: _this.displayError(feature), + className: 'modalInput', + onBlur: _this.onBlur, + onFocus: _this.onFocus(feature), + onKeyDown: _this.onKeyDown, + value: shortcut ? (0, lib_shortcut.vX)(shortcut) : '', + placeholder: 'Type keys', + readOnly: !0, + }), + react.createElement(SuccessIcon, { valid: _this.displaySuccessMessage(feature), icon: 'check' }), + ); + }); + }), + (_this.renderKeyForm = function () { + return react.createElement( + GridWrapper, + null, + react.createElement( + GridHeaderRow, + null, + react.createElement(HeaderItem, null, 'Commands'), + react.createElement(HeaderItem, null, 'Shortcut'), + ), + _this.renderKeyInput(), + ); + }), + (_this.state = { + activeFeature: void 0, + successField: void 0, + shortcutKeys: toShortcutState(props.shortcutKeys), + addonsShortcutLabels: props.addonsShortcutLabels, + }), + _this + ); + } + return ( + (function shortcuts_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && shortcuts_defineProperties(Constructor.prototype, protoProps), + staticProps && shortcuts_defineProperties(Constructor, staticProps), + Constructor + ); + })(ShortcutsScreen, [ + { + key: 'render', + value: function render() { + var layout = this.renderKeyForm(); + return react.createElement( + shortcuts_Container, + null, + react.createElement(shortcuts_Header, null, 'Keyboard shortcuts'), + layout, + react.createElement( + shortcuts_Button, + { tertiary: !0, small: !0, id: 'restoreDefaultsHotkeys', onClick: this.restoreDefaults }, + 'Restore defaults', + ), + react.createElement(settings_SettingsFooter, null), + ); + }, + }, + ]), + ShortcutsScreen + ); + })(react.Component); + ShortcutsScreen.displayName = 'ShortcutsScreen'; + var ShortcutsPage = function ShortcutsPage() { + return react.createElement(esm.$6, null, function (_ref) { + var _ref$api = _ref.api, + getShortcutKeys = _ref$api.getShortcutKeys, + getAddonsShortcutLabels = _ref$api.getAddonsShortcutLabels, + setShortcut = _ref$api.setShortcut, + restoreDefaultShortcut = _ref$api.restoreDefaultShortcut, + restoreAllDefaultShortcuts = _ref$api.restoreAllDefaultShortcuts; + return react.createElement(ShortcutsScreen, { + shortcutKeys: getShortcutKeys(), + addonsShortcutLabels: getAddonsShortcutLabels(), + setShortcut, + restoreDefaultShortcut, + restoreAllDefaultShortcuts, + }); + }); + }; + ShortcutsPage.displayName = 'ShortcutsPage'; + var settings_document = window_default().document, + TabBarButton = react.memo(function (_ref) { + var changeTab = _ref.changeTab, + id = _ref.id, + title = _ref.title; + return react.createElement(QueryLocation, null, function (_ref2) { + var active = _ref2.path.includes('settings/'.concat(id)); + return react.createElement( + bar_button.Y6, + { + id: 'tabbutton-'.concat(id), + className: ['tabbutton'].concat(active ? ['tabbutton-active'] : []).join(' '), + type: 'button', + key: 'id', + active, + onClick: function onClick() { + return changeTab(id); + }, + role: 'tab', + }, + title, + ); + }); + }), + Content = (0, dist_esm.styled)(ScrollArea.x)( + { position: 'absolute', top: 40, left: 0, right: 0, bottom: 0, overflow: 'auto' }, + function (_ref3) { + return { background: _ref3.theme.background.content }; + }, + ), + Pages = function Pages(_ref4) { + var changeTab = _ref4.changeTab, + onClose = _ref4.onClose, + _ref4$enableShortcuts = _ref4.enableShortcuts, + enableShortcuts = void 0 === _ref4$enableShortcuts || _ref4$enableShortcuts, + _ref4$hasReleaseNotes = _ref4.hasReleaseNotes, + hasReleaseNotes = void 0 !== _ref4$hasReleaseNotes && _ref4$hasReleaseNotes; + return ( + react.useEffect(function () { + var handleEscape = function handleEscape(event) { + enableShortcuts && + !event.repeat && + matchesModifiers(!1, event) && + matchesKeyCode('Escape', event) && + (event.preventDefault(), onClose()); + }; + return ( + settings_document.addEventListener('keydown', handleEscape), + function () { + return settings_document.removeEventListener('keydown', handleEscape); + } + ); + }, []), + react.createElement( + react.Fragment, + null, + react.createElement( + bar.j, + { border: !0 }, + react.createElement( + tabs_tabs.nj, + { role: 'tablist' }, + react.createElement(TabBarButton, { id: 'about', title: 'About', changeTab }), + hasReleaseNotes && + react.createElement(TabBarButton, { id: 'release-notes', title: 'Release notes', changeTab }), + react.createElement(TabBarButton, { id: 'shortcuts', title: 'Keyboard shortcuts', changeTab }), + ), + react.createElement( + bar_button.hU, + { + onClick: function onClick(e) { + return e.preventDefault(), onClose(); + }, + title: 'Close settings page', + }, + react.createElement(icon_icon.P, { icon: 'close' }), + ), + ), + react.createElement( + Content, + { vertical: !0, horizontal: !1 }, + react.createElement(router_Route, { path: 'about' }, react.createElement(AboutPage, { key: 'about' })), + react.createElement( + router_Route, + { path: 'release-notes' }, + react.createElement(ReleaseNotesPage, { key: 'release-notes' }), + ), + react.createElement( + router_Route, + { path: 'shortcuts' }, + react.createElement(ShortcutsPage, { key: 'shortcuts' }), + ), + ), + ) + ); + }; + Pages.displayName = 'Pages'; + var SettingsPages = function SettingsPages() { + var api = (0, esm.Uo)(), + state = (0, esm.aL)(); + return react.createElement(Pages, { + hasReleaseNotes: !!api.releaseNotesVersion(), + enableShortcuts: state.ui.enableShortcuts, + changeTab: function changeTab(tab) { + return api.changeSettingsTab(tab); + }, + onClose: api.closeSettings, + }); + }; + function app_typeof(obj) { + return ( + (app_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + app_typeof(obj) + ); + } + function app_extends() { + return ( + (app_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + app_extends.apply(this, arguments) + ); + } + SettingsPages.displayName = 'SettingsPages'; + var View = dist_esm.styled.div({ position: 'fixed', overflow: 'hidden', height: '100vh', width: '100vw' }), + App = react.memo( + function (_ref) { + var content, + viewMode = _ref.viewMode, + docsOnly = _ref.docsOnly, + layout = _ref.layout, + panelCount = _ref.panelCount, + _ref$size = _ref.size, + width = _ref$size.width, + height = _ref$size.height, + props = (0, react.useMemo)(function () { + return { + Sidebar: sidebar, + Preview: preview, + Panel: containers_panel, + Notifications: notifications, + pages: [ + { + key: 'settings', + render: function render() { + return react.createElement(SettingsPages, null); + }, + route: function (_ref2) { + var children = _ref2.children; + return react.createElement(router_Route, { path: '/settings', startsWith: !0 }, children); + }, + }, + ], + }; + }, []); + return ( + (content = + width && height + ? width < 600 + ? react.createElement(Mobile, app_extends({}, props, { viewMode, options: layout, docsOnly })) + : react.createElement( + Desktop, + app_extends({}, props, { viewMode, options: layout, docsOnly, width, height, panelCount }), + ) + : react.createElement('div', null)), + react.createElement( + View, + null, + react.createElement(core_browser_esm.xB, { styles: global.p }), + react.createElement(icon_icon.v, { icons: ['folder', 'component', 'document', 'bookmarkhollow'] }), + content, + ) + ); + }, + function (prevProps, nextProps) { + if (Object.is(prevProps, nextProps)) return !0; + if ('object' !== app_typeof(prevProps) || null === prevProps) return !1; + if ('object' !== app_typeof(nextProps) || null === nextProps) return !1; + var keysA = Object.keys(prevProps), + keysB = Object.keys(nextProps); + if (keysA.length !== keysB.length) return !1; + for (var _i = 0, _keysA = keysA; _i < _keysA.length; _i++) { + var key = _keysA[_i]; + if ('size' === key) { + if (prevProps[key].width !== nextProps[key].width) return !1; + if (prevProps[key].height !== nextProps[key].height) return !1; + } else { + if (!Object.prototype.hasOwnProperty.call(nextProps, key)) return !1; + if (!Object.is(prevProps[key], nextProps[key])) return !1; + } + } + return !0; + }, + ), + SizedApp = react_sizeme_default()({ monitorHeight: !0 })(App); + App.displayName = 'App'; + const app = SizedApp; + function provider_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var Provider = (function () { + function Provider() { + !(function provider_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Provider); + } + return ( + (function provider_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && provider_defineProperties(Constructor.prototype, protoProps), + staticProps && provider_defineProperties(Constructor, staticProps), + Constructor + ); + })(Provider, [ + { + key: 'getElements', + value: function getElements(_type) { + throw new Error('Provider.getElements() is not implemented!'); + }, + }, + { + key: 'handleAPI', + value: function handleAPI(_api) { + throw new Error('Provider.handleAPI() is not implemented!'); + }, + }, + { + key: 'getConfig', + value: function getConfig() { + return console.error('Provider.getConfig() is not implemented!'), {}; + }, + }, + ]), + Provider + ); + })(); + function dist_esm_extends() { + return ( + (dist_esm_extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }), + dist_esm_extends.apply(this, arguments) + ); + } + var esm_DOCS_MODE = window_default().DOCS_MODE; + (emotion_theming_browser_esm.f6.displayName = 'ThemeProvider'), (x.displayName = 'HelmetProvider'); + var getDocsMode = function getDocsMode() { + try { + return !!esm_DOCS_MODE; + } catch (e) { + return !1; + } + }, + esm_Container = react.Fragment, + esm_Root = function Root(_ref) { + var provider = _ref.provider; + return react.createElement( + esm_Container, + { key: 'container' }, + react.createElement( + x, + { key: 'helmet.Provider' }, + react.createElement( + BrowserRouter, + { key: 'location.provider' }, + react.createElement(esm_Main, { provider }), + ), + ), + ); + }; + esm_Root.displayName = 'Root'; + var esm_Main = function Main(_ref2) { + var provider = _ref2.provider, + navigate = (function useQueryNavigate() { + var navigate = react_router_useNavigate(); + return (0, react.useCallback)(function (to, options) { + if ('string' != typeof to || !to.startsWith('#')) { + if ('string' == typeof to) { + var target = null != options && options.plain ? to : '?path='.concat(to); + return navigate(target, options); + } + return 'number' == typeof to ? navigate(to) : void 0; + } + router_document.location.hash = to; + }, []); + })(); + return react.createElement(QueryLocation, { key: 'location.consumer' }, function (locationData) { + return react.createElement( + esm.zt, + dist_esm_extends({ key: 'manager', provider }, locationData, { navigate, docsMode: getDocsMode() }), + function (_ref3) { + var state = _ref3.state, + api = _ref3.api, + panelCount = Object.keys(api.getPanels()).length, + story = api.getData(state.storyId, state.refId), + isLoading = story + ? !!state.refs[state.refId] && !state.refs[state.refId].ready + : !state.storiesFailed && !state.storiesConfigured; + return react.createElement( + emotion_theming_browser_esm.f6, + { key: 'theme.provider', theme: (0, ensure.z)(state.theme) }, + react.createElement(app, { + key: 'app', + viewMode: state.viewMode, + layout: isLoading ? Object.assign({}, state.layout, { showPanel: !1 }) : state.layout, + panelCount, + docsOnly: story && story.parameters && story.parameters.docsOnly, + }), + ); + }, + ); + }); + }; + esm_Main.displayName = 'Main'; + __webpack_require__(81804), __webpack_require__(33132), __webpack_require__(71245), __webpack_require__(14121); + var channels_dist_esm = __webpack_require__(74844), + telejson_dist_esm = __webpack_require__(36e3); + function esm_toConsumableArray(arr) { + return ( + (function esm_arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return esm_arrayLikeToArray(arr); + })(arr) || + esm_iterableToArray(arr) || + esm_unsupportedIterableToArray(arr) || + (function esm_nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function esm_iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + } + function esm_slicedToArray(arr, i) { + return ( + esm_arrayWithHoles(arr) || + (function esm_iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + esm_unsupportedIterableToArray(arr, i) || + esm_nonIterableRest() + ); + } + function esm_nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + function esm_unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return esm_arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? esm_arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function esm_arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function esm_arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + function esm_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var esm_globalWindow = window_default().window, + esm_document = window_default().document, + esm_location = window_default().location, + KEY = 'storybook-channel', + defaultEventOptions = { allowFunction: !0, maxDepth: 25 }, + PostmsgTransport = (function () { + function PostmsgTransport(config) { + if ( + ((function esm_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, PostmsgTransport), + (this.config = config), + (this.buffer = void 0), + (this.handler = void 0), + (this.connected = void 0), + (this.buffer = []), + (this.handler = null), + esm_globalWindow.addEventListener('message', this.handleEvent.bind(this), !1), + 'manager' !== config.page && 'preview' !== config.page) + ) + throw new Error('postmsg-channel: "config.page" cannot be "'.concat(config.page, '"')); + } + return ( + (function esm_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && esm_defineProperties(Constructor.prototype, protoProps), + staticProps && esm_defineProperties(Constructor, staticProps), + Constructor + ); + })(PostmsgTransport, [ + { + key: 'setHandler', + value: function setHandler(handler) { + var _this = this; + this.handler = function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + handler.apply(_this, args), + !_this.connected && _this.getLocalFrame().length && (_this.flush(), (_this.connected = !0)); + }; + }, + }, + { + key: 'send', + value: function send(event, options) { + var _this2 = this, + _ref = options || {}, + target = _ref.target, + allowRegExp = _ref.allowRegExp, + allowFunction = _ref.allowFunction, + allowSymbol = _ref.allowSymbol, + allowDate = _ref.allowDate, + allowUndefined = _ref.allowUndefined, + allowClass = _ref.allowClass, + maxDepth = _ref.maxDepth, + space = _ref.space, + lazyEval = _ref.lazyEval, + eventOptions = Object.fromEntries( + Object.entries({ + allowRegExp, + allowFunction, + allowSymbol, + allowDate, + allowUndefined, + allowClass, + maxDepth, + space, + lazyEval, + }).filter(function (_ref2) { + var _ref3 = esm_slicedToArray(_ref2, 2); + _ref3[0]; + return void 0 !== _ref3[1]; + }), + ), + stringifyOptions = Object.assign( + {}, + defaultEventOptions, + window_default().CHANNEL_OPTIONS || {}, + eventOptions, + ); + options && Number.isInteger(options.depth) && (stringifyOptions.maxDepth = options.depth); + var frames = this.getFrames(target), + query = lib_default().parse(esm_location.search, { ignoreQueryPrefix: !0 }), + data = (0, telejson_dist_esm.Pz)({ key: KEY, event, refId: query.refId }, stringifyOptions); + return frames.length + ? (this.buffer.length && this.flush(), + frames.forEach(function (f) { + try { + f.postMessage(data, '*'); + } catch (e) { + console.error('sending over postmessage fail'); + } + }), + Promise.resolve(null)) + : new Promise(function (resolve, reject) { + _this2.buffer.push({ event, resolve, reject }); + }); + }, + }, + { + key: 'flush', + value: function flush() { + var _this3 = this, + buffer = this.buffer; + (this.buffer = []), + buffer.forEach(function (item) { + _this3.send(item.event).then(item.resolve).catch(item.reject); + }); + }, + }, + { + key: 'getFrames', + value: function getFrames(target) { + if ('manager' === this.config.page) { + var list = esm_toConsumableArray( + esm_document.querySelectorAll('iframe[data-is-storybook][data-is-loaded]'), + ) + .filter(function (e) { + try { + return !!e.contentWindow && void 0 !== e.dataset.isStorybook && e.id === target; + } catch (er) { + return !1; + } + }) + .map(function (e) { + return e.contentWindow; + }); + return list.length ? list : this.getCurrentFrames(); + } + return esm_globalWindow && esm_globalWindow.parent && esm_globalWindow.parent !== esm_globalWindow + ? [esm_globalWindow.parent] + : []; + }, + }, + { + key: 'getCurrentFrames', + value: function getCurrentFrames() { + return 'manager' === this.config.page + ? esm_toConsumableArray(esm_document.querySelectorAll('[data-is-storybook="true"]')).map(function ( + e, + ) { + return e.contentWindow; + }) + : esm_globalWindow && esm_globalWindow.parent + ? [esm_globalWindow.parent] + : []; + }, + }, + { + key: 'getLocalFrame', + value: function getLocalFrame() { + return 'manager' === this.config.page + ? esm_toConsumableArray(esm_document.querySelectorAll('#storybook-preview-iframe')).map(function ( + e, + ) { + return e.contentWindow; + }) + : esm_globalWindow && esm_globalWindow.parent + ? [esm_globalWindow.parent] + : []; + }, + }, + { + key: 'handleEvent', + value: function handleEvent(rawEvent) { + try { + var data = rawEvent.data, + _ref4 = + 'string' == typeof data && (0, telejson_dist_esm.pM)(data) + ? (0, telejson_dist_esm.Qc)(data) + : data, + key = _ref4.key, + event = _ref4.event, + refId = _ref4.refId; + if (key === KEY) { + var pageString = + 'manager' === this.config.page + ? ' manager ' + : ' preview ', + eventString = Object.values(core_events_dist_esm).includes(event.type) + ? ''.concat(event.type, '') + : ''.concat(event.type, ''); + if ( + (refId && (event.refId = refId), + (event.source = 'preview' === this.config.page ? rawEvent.origin : getEventSourceUrl(rawEvent)), + !event.source) + ) + return void client_logger_dist_esm.IC.error( + '' + .concat(pageString, ' received ') + .concat(eventString, ' but was unable to determine the source of the event'), + ); + var message = '' + .concat(pageString, ' received ') + .concat(eventString, ' (') + .concat(data.length, ')'); + client_logger_dist_esm.IC.debug.apply( + client_logger_dist_esm.IC, + [ + esm_location.origin !== event.source + ? message + : '' + .concat(message, ' (on ') + .concat(esm_location.origin, ' from ') + .concat(event.source, ')'), + ].concat(esm_toConsumableArray(event.args)), + ), + this.handler(event); + } + } catch (error) { + client_logger_dist_esm.kg.error(error); + } + }, + }, + ]), + PostmsgTransport + ); + })(), + getEventSourceUrl = function getEventSourceUrl(event) { + var _frames$filter = esm_toConsumableArray(esm_document.querySelectorAll('iframe[data-is-storybook]')).filter( + function (element) { + try { + return element.contentWindow === event.source; + } catch (err) {} + var origin, + src = element.getAttribute('src'); + try { + origin = new URL(src, esm_document.location).origin; + } catch (err) { + return !1; + } + return origin === event.origin; + }, + ), + _frames$filter2 = (function esm_toArray(arr) { + return ( + esm_arrayWithHoles(arr) || + esm_iterableToArray(arr) || + esm_unsupportedIterableToArray(arr) || + esm_nonIterableRest() + ); + })(_frames$filter), + frame = _frames$filter2[0], + remainder = _frames$filter2.slice(1); + if (frame && 0 === remainder.length) { + var src = frame.getAttribute('src'), + _URL2 = new URL(src, esm_document.location), + protocol = _URL2.protocol, + host = _URL2.host, + pathname = _URL2.pathname; + return ''.concat(protocol, '//').concat(host).concat(pathname); + } + return ( + remainder.length > 0 && client_logger_dist_esm.kg.error('found multiple candidates for event source'), null + ); + }; + function dist_esm_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + var WebSocket = window_default().WebSocket, + WebsocketTransport = (function () { + function WebsocketTransport(_ref) { + var url = _ref.url, + onError = _ref.onError; + !(function dist_esm_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, WebsocketTransport), + (this.socket = void 0), + (this.handler = void 0), + (this.buffer = []), + (this.isReady = !1), + this.connect(url, onError); + } + return ( + (function dist_esm_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && dist_esm_defineProperties(Constructor.prototype, protoProps), + staticProps && dist_esm_defineProperties(Constructor, staticProps), + Constructor + ); + })(WebsocketTransport, [ + { + key: 'setHandler', + value: function setHandler(handler) { + this.handler = handler; + }, + }, + { + key: 'send', + value: function send(event) { + this.isReady ? this.sendNow(event) : this.sendLater(event); + }, + }, + { + key: 'sendLater', + value: function sendLater(event) { + this.buffer.push(event); + }, + }, + { + key: 'sendNow', + value: function sendNow(event) { + var data = (0, telejson_dist_esm.Pz)(event, { maxDepth: 15, allowFunction: !0 }); + this.socket.send(data); + }, + }, + { + key: 'flush', + value: function flush() { + var _this = this, + buffer = this.buffer; + (this.buffer = []), + buffer.forEach(function (event) { + return _this.send(event); + }); + }, + }, + { + key: 'connect', + value: function connect(url, onError) { + var _this2 = this; + (this.socket = new WebSocket(url)), + (this.socket.onopen = function () { + (_this2.isReady = !0), _this2.flush(); + }), + (this.socket.onmessage = function (_ref2) { + var data = _ref2.data, + event = + 'string' == typeof data && (0, telejson_dist_esm.pM)(data) + ? (0, telejson_dist_esm.Qc)(data) + : data; + _this2.handler(event); + }), + (this.socket.onerror = function (e) { + onError && onError(e); + }); + }, + }, + ]), + WebsocketTransport + ); + })(); + function provider_typeof(obj) { + return ( + (provider_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + provider_typeof(obj) + ); + } + function manager_provider_defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function provider_setPrototypeOf(o, p) { + return ( + (provider_setPrototypeOf = + Object.setPrototypeOf || + function _setPrototypeOf(o, p) { + return (o.__proto__ = p), o; + }), + provider_setPrototypeOf(o, p) + ); + } + function provider_createSuper(Derived) { + var hasNativeReflectConstruct = (function provider_isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + })(); + return function _createSuperInternal() { + var result, + Super = provider_getPrototypeOf(Derived); + if (hasNativeReflectConstruct) { + var NewTarget = provider_getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else result = Super.apply(this, arguments); + return provider_possibleConstructorReturn(this, result); + }; + } + function provider_possibleConstructorReturn(self, call) { + return !call || ('object' !== provider_typeof(call) && 'function' != typeof call) + ? (function provider_assertThisInitialized(self) { + if (void 0 === self) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + })(self) + : call; + } + function provider_getPrototypeOf(o) { + return ( + (provider_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf + : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }), + provider_getPrototypeOf(o) + ); + } + var FEATURES = window_default().FEATURES, + SERVER_CHANNEL_URL = window_default().SERVER_CHANNEL_URL, + ReactProvider = (function (_Provider) { + !(function provider_inherits(subClass, superClass) { + if ('function' != typeof superClass && null !== superClass) + throw new TypeError('Super expression must either be null or a function'); + (subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { value: subClass, writable: !0, configurable: !0 }, + })), + superClass && provider_setPrototypeOf(subClass, superClass); + })(ReactProvider, _Provider); + var _super = provider_createSuper(ReactProvider); + function ReactProvider() { + var _this; + !(function manager_provider_classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, ReactProvider), + ((_this = _super.call(this)).addons = void 0), + (_this.channel = void 0), + (_this.serverChannel = void 0); + var channel = (function createChannel(_ref5) { + var page = _ref5.page, + transport = new PostmsgTransport({ page }); + return new channels_dist_esm.Z({ transport }); + })({ page: 'manager' }); + if ( + (addons_dist_esm.KP.setChannel(channel), + channel.emit(core_events_dist_esm.default.CHANNEL_CREATED), + (_this.addons = addons_dist_esm.KP), + (_this.channel = channel), + null != FEATURES && FEATURES.storyStoreV7 && SERVER_CHANNEL_URL) + ) { + var serverChannel = (function esm_createChannel(_ref3) { + var url = _ref3.url, + _ref3$async = _ref3.async, + async = void 0 !== _ref3$async && _ref3$async, + _ref3$onError = _ref3.onError, + transport = new WebsocketTransport({ + url, + onError: + void 0 === _ref3$onError + ? function (err) { + return client_logger_dist_esm.kg.warn(err); + } + : _ref3$onError, + }); + return new channels_dist_esm.$({ transport, async }); + })({ url: SERVER_CHANNEL_URL }); + (_this.serverChannel = serverChannel), addons_dist_esm.KP.setServerChannel(_this.serverChannel); + } + return _this; + } + return ( + (function manager_provider_createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && manager_provider_defineProperties(Constructor.prototype, protoProps), + staticProps && manager_provider_defineProperties(Constructor, staticProps), + Constructor + ); + })(ReactProvider, [ + { + key: 'getElements', + value: function getElements(type) { + return this.addons.getElements(type); + }, + }, + { + key: 'getConfig', + value: function getConfig() { + return this.addons.getConfig(); + }, + }, + { + key: 'handleAPI', + value: function handleAPI(api) { + this.addons.loadAddons(api); + }, + }, + ]), + ReactProvider + ); + })(Provider), + conditional_polyfills_globalWindow = window_default().window, + manager_document = window_default().document; + (function importPolyfills() { + var polyfills = []; + if (!conditional_polyfills_globalWindow.fetch) { + polyfills.push( + __webpack_require__ + .e(950) + .then(__webpack_require__.t.bind(__webpack_require__, 52950, 23)) + .then(function patch(_ref) { + var fetch = _ref.default; + conditional_polyfills_globalWindow.fetch = fetch; + }), + ); + } + return Promise.all(polyfills); + })().then(function () { + !(function renderStorybookUI(domNode, provider) { + if (!(provider instanceof Provider)) throw new Error('provider is not extended from the base Provider'); + react_dom.render(react.createElement(esm_Root, { key: 'root', provider }), domNode); + })(manager_document.getElementById('root'), new ReactProvider()); + }); + }, + 69844: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + var events; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + default: () => __WEBPACK_DEFAULT_EXPORT__, + CHANNEL_CREATED: () => CHANNEL_CREATED, + CONFIG_ERROR: () => CONFIG_ERROR, + STORY_INDEX_INVALIDATED: () => STORY_INDEX_INVALIDATED, + STORY_SPECIFIED: () => STORY_SPECIFIED, + SET_STORIES: () => SET_STORIES, + SET_CURRENT_STORY: () => SET_CURRENT_STORY, + CURRENT_STORY_WAS_SET: () => CURRENT_STORY_WAS_SET, + FORCE_RE_RENDER: () => FORCE_RE_RENDER, + FORCE_REMOUNT: () => FORCE_REMOUNT, + STORY_PREPARED: () => STORY_PREPARED, + STORY_CHANGED: () => STORY_CHANGED, + STORY_UNCHANGED: () => STORY_UNCHANGED, + STORY_RENDERED: () => STORY_RENDERED, + STORY_MISSING: () => STORY_MISSING, + STORY_ERRORED: () => STORY_ERRORED, + STORY_THREW_EXCEPTION: () => STORY_THREW_EXCEPTION, + STORY_RENDER_PHASE_CHANGED: () => STORY_RENDER_PHASE_CHANGED, + UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS, + STORY_ARGS_UPDATED: () => STORY_ARGS_UPDATED, + RESET_STORY_ARGS: () => RESET_STORY_ARGS, + SET_GLOBALS: () => SET_GLOBALS, + UPDATE_GLOBALS: () => UPDATE_GLOBALS, + GLOBALS_UPDATED: () => GLOBALS_UPDATED, + REGISTER_SUBSCRIPTION: () => REGISTER_SUBSCRIPTION, + PREVIEW_KEYDOWN: () => PREVIEW_KEYDOWN, + SELECT_STORY: () => SELECT_STORY, + STORIES_COLLAPSE_ALL: () => STORIES_COLLAPSE_ALL, + STORIES_EXPAND_ALL: () => STORIES_EXPAND_ALL, + DOCS_RENDERED: () => DOCS_RENDERED, + SHARED_STATE_CHANGED: () => SHARED_STATE_CHANGED, + SHARED_STATE_SET: () => SHARED_STATE_SET, + NAVIGATE_URL: () => NAVIGATE_URL, + UPDATE_QUERY_PARAMS: () => UPDATE_QUERY_PARAMS, + IGNORED_EXCEPTION: () => IGNORED_EXCEPTION, + }), + (function (events) { + (events.CHANNEL_CREATED = 'channelCreated'), + (events.CONFIG_ERROR = 'configError'), + (events.STORY_INDEX_INVALIDATED = 'storyIndexInvalidated'), + (events.STORY_SPECIFIED = 'storySpecified'), + (events.SET_STORIES = 'setStories'), + (events.SET_CURRENT_STORY = 'setCurrentStory'), + (events.CURRENT_STORY_WAS_SET = 'currentStoryWasSet'), + (events.FORCE_RE_RENDER = 'forceReRender'), + (events.FORCE_REMOUNT = 'forceRemount'), + (events.STORY_PREPARED = 'storyPrepared'), + (events.STORY_CHANGED = 'storyChanged'), + (events.STORY_UNCHANGED = 'storyUnchanged'), + (events.STORY_RENDERED = 'storyRendered'), + (events.STORY_MISSING = 'storyMissing'), + (events.STORY_ERRORED = 'storyErrored'), + (events.STORY_THREW_EXCEPTION = 'storyThrewException'), + (events.STORY_RENDER_PHASE_CHANGED = 'storyRenderPhaseChanged'), + (events.UPDATE_STORY_ARGS = 'updateStoryArgs'), + (events.STORY_ARGS_UPDATED = 'storyArgsUpdated'), + (events.RESET_STORY_ARGS = 'resetStoryArgs'), + (events.SET_GLOBALS = 'setGlobals'), + (events.UPDATE_GLOBALS = 'updateGlobals'), + (events.GLOBALS_UPDATED = 'globalsUpdated'), + (events.REGISTER_SUBSCRIPTION = 'registerSubscription'), + (events.PREVIEW_KEYDOWN = 'previewKeydown'), + (events.SELECT_STORY = 'selectStory'), + (events.STORIES_COLLAPSE_ALL = 'storiesCollapseAll'), + (events.STORIES_EXPAND_ALL = 'storiesExpandAll'), + (events.DOCS_RENDERED = 'docsRendered'), + (events.SHARED_STATE_CHANGED = 'sharedStateChanged'), + (events.SHARED_STATE_SET = 'sharedStateSet'), + (events.NAVIGATE_URL = 'navigateUrl'), + (events.UPDATE_QUERY_PARAMS = 'updateQueryParams'); + })(events || (events = {})); + const __WEBPACK_DEFAULT_EXPORT__ = events; + var CHANNEL_CREATED = events.CHANNEL_CREATED, + CONFIG_ERROR = events.CONFIG_ERROR, + STORY_INDEX_INVALIDATED = events.STORY_INDEX_INVALIDATED, + STORY_SPECIFIED = events.STORY_SPECIFIED, + SET_STORIES = events.SET_STORIES, + SET_CURRENT_STORY = events.SET_CURRENT_STORY, + CURRENT_STORY_WAS_SET = events.CURRENT_STORY_WAS_SET, + FORCE_RE_RENDER = events.FORCE_RE_RENDER, + FORCE_REMOUNT = events.FORCE_REMOUNT, + STORY_PREPARED = events.STORY_PREPARED, + STORY_CHANGED = events.STORY_CHANGED, + STORY_UNCHANGED = events.STORY_UNCHANGED, + STORY_RENDERED = events.STORY_RENDERED, + STORY_MISSING = events.STORY_MISSING, + STORY_ERRORED = events.STORY_ERRORED, + STORY_THREW_EXCEPTION = events.STORY_THREW_EXCEPTION, + STORY_RENDER_PHASE_CHANGED = events.STORY_RENDER_PHASE_CHANGED, + UPDATE_STORY_ARGS = events.UPDATE_STORY_ARGS, + STORY_ARGS_UPDATED = events.STORY_ARGS_UPDATED, + RESET_STORY_ARGS = events.RESET_STORY_ARGS, + SET_GLOBALS = events.SET_GLOBALS, + UPDATE_GLOBALS = events.UPDATE_GLOBALS, + GLOBALS_UPDATED = events.GLOBALS_UPDATED, + REGISTER_SUBSCRIPTION = events.REGISTER_SUBSCRIPTION, + PREVIEW_KEYDOWN = events.PREVIEW_KEYDOWN, + SELECT_STORY = events.SELECT_STORY, + STORIES_COLLAPSE_ALL = events.STORIES_COLLAPSE_ALL, + STORIES_EXPAND_ALL = events.STORIES_EXPAND_ALL, + DOCS_RENDERED = events.DOCS_RENDERED, + SHARED_STATE_CHANGED = events.SHARED_STATE_CHANGED, + SHARED_STATE_SET = events.SHARED_STATE_SET, + NAVIGATE_URL = events.NAVIGATE_URL, + UPDATE_QUERY_PARAMS = events.UPDATE_QUERY_PARAMS, + IGNORED_EXCEPTION = new Error('ignoredException'); + }, + 49303: () => {}, + 95876: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _exportNames = { sanitize: !0, toId: !0, storyNameFromExport: !0, isExportStory: !0, parseKind: !0 }; + (exports.isExportStory = function isExportStory(key, _ref) { + var includeStories = _ref.includeStories, + excludeStories = _ref.excludeStories; + return ( + '__esModule' !== key && + (!includeStories || matches(key, includeStories)) && + (!excludeStories || !matches(key, excludeStories)) + ); + }), + (exports.parseKind = exports.storyNameFromExport = exports.toId = exports.sanitize = void 0); + var _startCase = (function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + })(__webpack_require__(74600)), + _story = __webpack_require__(87977); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(n); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + Object.keys(_story).forEach(function (key) { + 'default' !== key && + '__esModule' !== key && + (Object.prototype.hasOwnProperty.call(_exportNames, key) || + Object.defineProperty(exports, key, { + enumerable: !0, + get: function get() { + return _story[key]; + }, + })); + }); + var sanitize = function sanitize(string) { + return string + .toLowerCase() + .replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, '-') + .replace(/-+/g, '-') + .replace(/^-+/, '') + .replace(/-+$/, ''); + }; + exports.sanitize = sanitize; + var sanitizeSafe = function sanitizeSafe(string, part) { + var sanitized = sanitize(string); + if ('' === sanitized) + throw new Error('Invalid '.concat(part, " '").concat(string, "', must include alphanumeric characters")); + return sanitized; + }; + exports.toId = function toId(kind, name) { + return ''.concat(sanitizeSafe(kind, 'kind')).concat(name ? '--'.concat(sanitizeSafe(name, 'name')) : ''); + }; + function matches(storyKey, arrayOrRegex) { + return Array.isArray(arrayOrRegex) ? arrayOrRegex.includes(storyKey) : storyKey.match(arrayOrRegex); + } + exports.storyNameFromExport = function storyNameFromExport(key) { + return (0, _startCase.default)(key); + }; + exports.parseKind = function parseKind(kind, _ref2) { + var rootSeparator = _ref2.rootSeparator, + groupSeparator = _ref2.groupSeparator, + _kind$split2 = _slicedToArray(kind.split(rootSeparator, 2), 2), + root = _kind$split2[0], + remainder = _kind$split2[1]; + return { + root: remainder ? root : null, + groups: (remainder || kind).split(groupSeparator).filter(function (i) { + return !!i; + }), + }; + }; + }, + 87977: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _SBType = __webpack_require__(49303); + Object.keys(_SBType).forEach(function (key) { + 'default' !== key && + '__esModule' !== key && + Object.defineProperty(exports, key, { + enumerable: !0, + get: function get() { + return _SBType[key]; + }, + }); + }); + }, + 94098: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + cP: () => parsePath, + sy: () => buildArgsParam, + Ff: () => queryFromString, + B5: () => queryFromLocation, + $P: () => getMatch, + }); + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(22144), + __webpack_require__(74069), + __webpack_require__(77950), + __webpack_require__(43105), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(18178), + __webpack_require__(92656), + __webpack_require__(34769), + __webpack_require__(35883), + __webpack_require__(32501), + __webpack_require__(85940), + __webpack_require__(43450), + __webpack_require__(16781), + __webpack_require__(48319), + __webpack_require__(94908), + __webpack_require__(44112); + var _templateObject, + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(87537), + fast_deep_equal__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(69378), + fast_deep_equal__WEBPACK_IMPORTED_MODULE_24___default = __webpack_require__.n( + fast_deep_equal__WEBPACK_IMPORTED_MODULE_24__, + ), + lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(97030), + lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25___default = __webpack_require__.n( + lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25__, + ), + memoizerific__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(49224), + memoizerific__WEBPACK_IMPORTED_MODULE_26___default = __webpack_require__.n( + memoizerific__WEBPACK_IMPORTED_MODULE_26__, + ), + qs__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(19126), + qs__WEBPACK_IMPORTED_MODULE_27___default = __webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_27__), + ts_dedent__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51893); + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, + parsePath = memoizerific__WEBPACK_IMPORTED_MODULE_26___default()(1e3)(function (path) { + var result = { viewMode: void 0, storyId: void 0, refId: void 0 }; + if (path) { + var _ref2 = _slicedToArray(path.toLowerCase().match(splitPathRegex) || [], 4), + viewMode = _ref2[1], + refId = _ref2[2], + storyId = _ref2[3]; + viewMode && Object.assign(result, { viewMode, storyId, refId }); + } + return result; + }), + DEEPLY_EQUAL = Symbol('Deeply equal'), + deepDiff = function deepDiff(value, update) { + if (_typeof(value) !== _typeof(update)) return update; + if (fast_deep_equal__WEBPACK_IMPORTED_MODULE_24___default()(value, update)) return DEEPLY_EQUAL; + if (Array.isArray(value) && Array.isArray(update)) { + var res = update.reduce(function (acc, upd, index) { + var diff = deepDiff(value[index], upd); + return diff !== DEEPLY_EQUAL && (acc[index] = diff), acc; + }, new Array(update.length)); + return update.length >= value.length + ? res + : res.concat(new Array(value.length - update.length).fill(void 0)); + } + return lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25___default()(value) && + lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25___default()(update) + ? Object.keys(Object.assign({}, value, update)).reduce(function (acc, key) { + var diff = deepDiff(null == value ? void 0 : value[key], null == update ? void 0 : update[key]); + return diff === DEEPLY_EQUAL ? acc : Object.assign(acc, _defineProperty({}, key, diff)); + }, {}) + : update; + }, + VALIDATION_REGEXP = /^[a-zA-Z0-9 _-]*$/, + NUMBER_REGEXP = /^-?[0-9]+(\.[0-9]+)?$/, + HEX_REGEXP = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, + COLOR_REGEXP = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i, + validateArgs = function validateArgs() { + var key = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', + value = arguments.length > 1 ? arguments[1] : void 0; + return ( + null !== key && + !('' === key || !VALIDATION_REGEXP.test(key)) && + (null == value || + value instanceof Date || + 'number' == typeof value || + 'boolean' == typeof value || + ('string' == typeof value + ? VALIDATION_REGEXP.test(value) || + NUMBER_REGEXP.test(value) || + HEX_REGEXP.test(value) || + COLOR_REGEXP.test(value) + : Array.isArray(value) + ? value.every(function (v) { + return validateArgs(key, v); + }) + : !!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25___default()(value) && + Object.entries(value).every(function (_ref3) { + var _ref4 = _slicedToArray(_ref3, 2), + k = _ref4[0], + v = _ref4[1]; + return validateArgs(k, v); + }))) + ); + }, + encodeSpecialValues = function encodeSpecialValues(value) { + return void 0 === value + ? '!undefined' + : null === value + ? '!null' + : 'string' == typeof value + ? HEX_REGEXP.test(value) + ? '!hex('.concat(value.slice(1), ')') + : COLOR_REGEXP.test(value) + ? '!'.concat(value.replace(/[\s%]/g, '')) + : value + : Array.isArray(value) + ? value.map(encodeSpecialValues) + : lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_25___default()(value) + ? Object.entries(value).reduce(function (acc, _ref5) { + var _ref6 = _slicedToArray(_ref5, 2), + key = _ref6[0], + val = _ref6[1]; + return Object.assign(acc, _defineProperty({}, key, encodeSpecialValues(val))); + }, {}) + : value; + }, + QS_OPTIONS = { + encode: !1, + delimiter: ';', + allowDots: !0, + format: 'RFC1738', + serializeDate: function serializeDate(date) { + return '!date('.concat(date.toISOString(), ')'); + }, + }, + buildArgsParam = function buildArgsParam(initialArgs, args) { + var update = deepDiff(initialArgs, args); + if (!update || update === DEEPLY_EQUAL) return ''; + var object = Object.entries(update).reduce(function (acc, _ref7) { + var _ref8 = _slicedToArray(_ref7, 2), + key = _ref8[0], + value = _ref8[1]; + return validateArgs(key, value) + ? Object.assign(acc, _defineProperty({}, key, value)) + : (_storybook_client_logger__WEBPACK_IMPORTED_MODULE_28__.IH.warn( + (0, ts_dedent__WEBPACK_IMPORTED_MODULE_29__.C)( + _templateObject || + (_templateObject = (function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + '\n Omitted potentially unsafe URL args.\n\n More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url\n ', + ])), + ), + ), + acc); + }, {}); + return qs__WEBPACK_IMPORTED_MODULE_27___default() + .stringify(encodeSpecialValues(object), QS_OPTIONS) + .replace(/ /g, '+') + .split(';') + .map(function (part) { + return part.replace('=', ':'); + }) + .join(';'); + }, + queryFromString = memoizerific__WEBPACK_IMPORTED_MODULE_26___default()(1e3)(function (s) { + return qs__WEBPACK_IMPORTED_MODULE_27___default().parse(s, { ignoreQueryPrefix: !0 }); + }), + queryFromLocation = function queryFromLocation(location) { + return queryFromString(location.search); + }, + getMatch = memoizerific__WEBPACK_IMPORTED_MODULE_26___default()(1e3)(function (current, target) { + var startsWith = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], + startsWithTarget = current && startsWith && current.startsWith(target), + currentIsTarget = 'string' == typeof target && current === target, + matchTarget = current && target && current.match(target); + return startsWithTarget || currentIsTarget || matchTarget ? { path: current } : null; + }); + }, + 10204: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(15735), + __webpack_require__(95094), + __webpack_require__(58188), + __webpack_require__(77950), + __webpack_require__(28673), + __webpack_require__(74069), + __webpack_require__(6886); + var ANY = Symbol('SemVer ANY'), + Comparator = (function () { + function Comparator(comp, options) { + if ( + ((function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Comparator), + (options && 'object' === _typeof(options)) || (options = { loose: !!options, includePrerelease: !1 }), + comp instanceof Comparator) + ) { + if (comp.loose === !!options.loose) return comp; + comp = comp.value; + } + debug('comparator', comp, options), + (this.options = options), + (this.loose = !!options.loose), + this.parse(comp), + this.semver === ANY ? (this.value = '') : (this.value = this.operator + this.semver.version), + debug('comp', this); + } + return ( + _createClass(Comparator, null, [ + { + key: 'ANY', + get: function get() { + return ANY; + }, + }, + ]), + _createClass(Comparator, [ + { + key: 'parse', + value: function parse(comp) { + var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], + m = comp.match(r); + if (!m) throw new TypeError('Invalid comparator: '.concat(comp)); + (this.operator = void 0 !== m[1] ? m[1] : ''), + '=' === this.operator && (this.operator = ''), + m[2] ? (this.semver = new SemVer(m[2], this.options.loose)) : (this.semver = ANY); + }, + }, + { + key: 'toString', + value: function toString() { + return this.value; + }, + }, + { + key: 'test', + value: function test(version) { + if ((debug('Comparator.test', version, this.options.loose), this.semver === ANY || version === ANY)) + return !0; + if ('string' == typeof version) + try { + version = new SemVer(version, this.options); + } catch (er) { + return !1; + } + return cmp(version, this.operator, this.semver, this.options); + }, + }, + { + key: 'intersects', + value: function intersects(comp, options) { + if (!(comp instanceof Comparator)) throw new TypeError('a Comparator is required'); + if ( + ((options && 'object' === _typeof(options)) || + (options = { loose: !!options, includePrerelease: !1 }), + '' === this.operator) + ) + return '' === this.value || new Range(comp.value, options).test(this.value); + if ('' === comp.operator) + return '' === comp.value || new Range(this.value, options).test(comp.semver); + var sameDirectionIncreasing = !( + ('>=' !== this.operator && '>' !== this.operator) || + ('>=' !== comp.operator && '>' !== comp.operator) + ), + sameDirectionDecreasing = !( + ('<=' !== this.operator && '<' !== this.operator) || + ('<=' !== comp.operator && '<' !== comp.operator) + ), + sameSemVer = this.semver.version === comp.semver.version, + differentDirectionsInclusive = !( + ('>=' !== this.operator && '<=' !== this.operator) || + ('>=' !== comp.operator && '<=' !== comp.operator) + ), + oppositeDirectionsLessThan = + cmp(this.semver, '<', comp.semver, options) && + ('>=' === this.operator || '>' === this.operator) && + ('<=' === comp.operator || '<' === comp.operator), + oppositeDirectionsGreaterThan = + cmp(this.semver, '>', comp.semver, options) && + ('<=' === this.operator || '<' === this.operator) && + ('>=' === comp.operator || '>' === comp.operator); + return ( + sameDirectionIncreasing || + sameDirectionDecreasing || + (sameSemVer && differentDirectionsInclusive) || + oppositeDirectionsLessThan || + oppositeDirectionsGreaterThan + ); + }, + }, + ]), + Comparator + ); + })(); + module.exports = Comparator; + var _require = __webpack_require__(11799), + re = _require.re, + t = _require.t, + cmp = __webpack_require__(20006), + debug = __webpack_require__(27713), + SemVer = __webpack_require__(42321), + Range = __webpack_require__(99226); + }, + 99226: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _toConsumableArray(arr) { + return ( + (function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return _arrayLikeToArray(arr); + })(arr) || + (function _iterableToArray(iter) { + if ('undefined' != typeof Symbol && Symbol.iterator in Object(iter)) return Array.from(iter); + })(arr) || + _unsupportedIterableToArray(arr) || + (function _nonIterableSpread() { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _createForOfIteratorHelper(o) { + if ('undefined' == typeof Symbol || null == o[Symbol.iterator]) { + if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { + var i = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; + }, + e: function e(_e) { + throw _e; + }, + f: F, + }; + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + var it, + err, + normalCompletion = !0, + didErr = !1; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + return (normalCompletion = step.done), step; + }, + e: function e(_e2) { + (didErr = !0), (err = _e2); + }, + f: function f() { + try { + normalCompletion || null == it.return || it.return(); + } finally { + if (didErr) throw err; + } + }, + }; + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(18178), + __webpack_require__(28986), + __webpack_require__(95342), + __webpack_require__(27233), + __webpack_require__(18145), + __webpack_require__(15735), + __webpack_require__(16781), + __webpack_require__(43450), + __webpack_require__(32501), + __webpack_require__(67321), + __webpack_require__(99120), + __webpack_require__(26936), + __webpack_require__(79321), + __webpack_require__(95094), + __webpack_require__(58188), + __webpack_require__(77950), + __webpack_require__(88233), + __webpack_require__(28673), + __webpack_require__(74069), + __webpack_require__(85940), + __webpack_require__(48319), + __webpack_require__(45794), + __webpack_require__(6886); + var Range = (function () { + function Range(range, options) { + var _this = this; + if ( + ((function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, Range), + (options && 'object' === _typeof(options)) || (options = { loose: !!options, includePrerelease: !1 }), + range instanceof Range) + ) + return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease + ? range + : new Range(range.raw, options); + if (range instanceof Comparator) return (this.raw = range.value), (this.set = [[range]]), this.format(), this; + if ( + ((this.options = options), + (this.loose = !!options.loose), + (this.includePrerelease = !!options.includePrerelease), + (this.raw = range), + (this.set = range + .split(/\s*\|\|\s*/) + .map(function (range) { + return _this.parseRange(range.trim()); + }) + .filter(function (c) { + return c.length; + })), + !this.set.length) + ) + throw new TypeError('Invalid SemVer Range: '.concat(range)); + if (this.set.length > 1) { + var first = this.set[0]; + if ( + ((this.set = this.set.filter(function (c) { + return !isNullSet(c[0]); + })), + 0 === this.set.length) + ) + this.set = [first]; + else if (this.set.length > 1) { + var _step, + _iterator = _createForOfIteratorHelper(this.set); + try { + for (_iterator.s(); !(_step = _iterator.n()).done; ) { + var c = _step.value; + if (1 === c.length && isAny(c[0])) { + this.set = [c]; + break; + } + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + } + } + this.format(); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(Range, [ + { + key: 'format', + value: function format() { + return ( + (this.range = this.set + .map(function (comps) { + return comps.join(' ').trim(); + }) + .join('||') + .trim()), + this.range + ); + }, + }, + { + key: 'toString', + value: function toString() { + return this.range; + }, + }, + { + key: 'parseRange', + value: function parseRange(range) { + var _this2 = this, + loose = this.options.loose; + range = range.trim(); + var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; + (range = range.replace(hr, hyphenReplace(this.options.includePrerelease))), + debug('hyphen replace', range), + (range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)), + debug('comparator trim', range, re[t.COMPARATORTRIM]), + (range = (range = (range = range.replace(re[t.TILDETRIM], tildeTrimReplace)).replace( + re[t.CARETTRIM], + caretTrimReplace, + )) + .split(/\s+/) + .join(' ')); + var _step2, + compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], + rangeList = range + .split(' ') + .map(function (comp) { + return parseComparator(comp, _this2.options); + }) + .join(' ') + .split(/\s+/) + .map(function (comp) { + return replaceGTE0(comp, _this2.options); + }) + .filter( + this.options.loose + ? function (comp) { + return !!comp.match(compRe); + } + : function () { + return !0; + }, + ) + .map(function (comp) { + return new Comparator(comp, _this2.options); + }), + rangeMap = (rangeList.length, new Map()), + _iterator2 = _createForOfIteratorHelper(rangeList); + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { + var comp = _step2.value; + if (isNullSet(comp)) return [comp]; + rangeMap.set(comp.value, comp); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + return ( + rangeMap.size > 1 && rangeMap.has('') && rangeMap.delete(''), _toConsumableArray(rangeMap.values()) + ); + }, + }, + { + key: 'intersects', + value: function intersects(range, options) { + if (!(range instanceof Range)) throw new TypeError('a Range is required'); + return this.set.some(function (thisComparators) { + return ( + isSatisfiable(thisComparators, options) && + range.set.some(function (rangeComparators) { + return ( + isSatisfiable(rangeComparators, options) && + thisComparators.every(function (thisComparator) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options); + }); + }) + ); + }) + ); + }); + }, + }, + { + key: 'test', + value: function test(version) { + if (!version) return !1; + if ('string' == typeof version) + try { + version = new SemVer(version, this.options); + } catch (er) { + return !1; + } + for (var i = 0; i < this.set.length; i++) if (testSet(this.set[i], version, this.options)) return !0; + return !1; + }, + }, + ]), + Range + ); + })(); + module.exports = Range; + var Comparator = __webpack_require__(10204), + debug = __webpack_require__(27713), + SemVer = __webpack_require__(42321), + _require = __webpack_require__(11799), + re = _require.re, + t = _require.t, + comparatorTrimReplace = _require.comparatorTrimReplace, + tildeTrimReplace = _require.tildeTrimReplace, + caretTrimReplace = _require.caretTrimReplace, + isNullSet = function isNullSet(c) { + return '<0.0.0-0' === c.value; + }, + isAny = function isAny(c) { + return '' === c.value; + }, + isSatisfiable = function isSatisfiable(comparators, options) { + for ( + var result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop(); + result && remainingComparators.length; + + ) + (result = remainingComparators.every(function (otherComparator) { + return testComparator.intersects(otherComparator, options); + })), + (testComparator = remainingComparators.pop()); + return result; + }, + parseComparator = function parseComparator(comp, options) { + return ( + debug('comp', comp, options), + (comp = replaceCarets(comp, options)), + debug('caret', comp), + (comp = replaceTildes(comp, options)), + debug('tildes', comp), + (comp = replaceXRanges(comp, options)), + debug('xrange', comp), + (comp = replaceStars(comp, options)), + debug('stars', comp), + comp + ); + }, + isX = function isX(id) { + return !id || 'x' === id.toLowerCase() || '*' === id; + }, + replaceTildes = function replaceTildes(comp, options) { + return comp + .trim() + .split(/\s+/) + .map(function (comp) { + return replaceTilde(comp, options); + }) + .join(' '); + }, + replaceTilde = function replaceTilde(comp, options) { + var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; + return comp.replace(r, function (_, M, m, p, pr) { + var ret; + return ( + debug('tilde', comp, _, M, m, p, pr), + isX(M) + ? (ret = '') + : isX(m) + ? (ret = '>='.concat(M, '.0.0 <').concat(+M + 1, '.0.0-0')) + : isX(p) + ? (ret = '>=' + .concat(M, '.') + .concat(m, '.0 <') + .concat(M, '.') + .concat(+m + 1, '.0-0')) + : pr + ? (debug('replaceTilde pr', pr), + (ret = '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, '-') + .concat(pr, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0'))) + : (ret = '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0')), + debug('tilde return', ret), + ret + ); + }); + }, + replaceCarets = function replaceCarets(comp, options) { + return comp + .trim() + .split(/\s+/) + .map(function (comp) { + return replaceCaret(comp, options); + }) + .join(' '); + }, + replaceCaret = function replaceCaret(comp, options) { + debug('caret', comp, options); + var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], + z = options.includePrerelease ? '-0' : ''; + return comp.replace(r, function (_, M, m, p, pr) { + var ret; + return ( + debug('caret', comp, _, M, m, p, pr), + isX(M) + ? (ret = '') + : isX(m) + ? (ret = '>=' + .concat(M, '.0.0') + .concat(z, ' <') + .concat(+M + 1, '.0.0-0')) + : isX(p) + ? (ret = + '0' === M + ? '>=' + .concat(M, '.') + .concat(m, '.0') + .concat(z, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0') + : '>=' + .concat(M, '.') + .concat(m, '.0') + .concat(z, ' <') + .concat(+M + 1, '.0.0-0')) + : pr + ? (debug('replaceCaret pr', pr), + (ret = + '0' === M + ? '0' === m + ? '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, '-') + .concat(pr, ' <') + .concat(M, '.') + .concat(m, '.') + .concat(+p + 1, '-0') + : '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, '-') + .concat(pr, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0') + : '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, '-') + .concat(pr, ' <') + .concat(+M + 1, '.0.0-0'))) + : (debug('no pr'), + (ret = + '0' === M + ? '0' === m + ? '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p) + .concat(z, ' <') + .concat(M, '.') + .concat(m, '.') + .concat(+p + 1, '-0') + : '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p) + .concat(z, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0') + : '>=' + .concat(M, '.') + .concat(m, '.') + .concat(p, ' <') + .concat(+M + 1, '.0.0-0'))), + debug('caret return', ret), + ret + ); + }); + }, + replaceXRanges = function replaceXRanges(comp, options) { + return ( + debug('replaceXRanges', comp, options), + comp + .split(/\s+/) + .map(function (comp) { + return replaceXRange(comp, options); + }) + .join(' ') + ); + }, + replaceXRange = function replaceXRange(comp, options) { + comp = comp.trim(); + var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; + return comp.replace(r, function (ret, gtlt, M, m, p, pr) { + debug('xRange', comp, ret, gtlt, M, m, p, pr); + var xM = isX(M), + xm = xM || isX(m), + xp = xm || isX(p), + anyX = xp; + return ( + '=' === gtlt && anyX && (gtlt = ''), + (pr = options.includePrerelease ? '-0' : ''), + xM + ? (ret = '>' === gtlt || '<' === gtlt ? '<0.0.0-0' : '*') + : gtlt && anyX + ? (xm && (m = 0), + (p = 0), + '>' === gtlt + ? ((gtlt = '>='), xm ? ((M = +M + 1), (m = 0), (p = 0)) : ((m = +m + 1), (p = 0))) + : '<=' === gtlt && ((gtlt = '<'), xm ? (M = +M + 1) : (m = +m + 1)), + '<' === gtlt && (pr = '-0'), + (ret = '' + .concat(gtlt + M, '.') + .concat(m, '.') + .concat(p) + .concat(pr))) + : xm + ? (ret = '>=' + .concat(M, '.0.0') + .concat(pr, ' <') + .concat(+M + 1, '.0.0-0')) + : xp && + (ret = '>=' + .concat(M, '.') + .concat(m, '.0') + .concat(pr, ' <') + .concat(M, '.') + .concat(+m + 1, '.0-0')), + debug('xRange return', ret), + ret + ); + }); + }, + replaceStars = function replaceStars(comp, options) { + return debug('replaceStars', comp, options), comp.trim().replace(re[t.STAR], ''); + }, + replaceGTE0 = function replaceGTE0(comp, options) { + return ( + debug('replaceGTE0', comp, options), + comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') + ); + }, + hyphenReplace = function hyphenReplace(incPr) { + return function ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) { + return ( + (from = isX(fM) + ? '' + : isX(fm) + ? '>='.concat(fM, '.0.0').concat(incPr ? '-0' : '') + : isX(fp) + ? '>=' + .concat(fM, '.') + .concat(fm, '.0') + .concat(incPr ? '-0' : '') + : fpr + ? '>='.concat(from) + : '>='.concat(from).concat(incPr ? '-0' : '')), + (to = isX(tM) + ? '' + : isX(tm) + ? '<'.concat(+tM + 1, '.0.0-0') + : isX(tp) + ? '<'.concat(tM, '.').concat(+tm + 1, '.0-0') + : tpr + ? '<='.concat(tM, '.').concat(tm, '.').concat(tp, '-').concat(tpr) + : incPr + ? '<' + .concat(tM, '.') + .concat(tm, '.') + .concat(+tp + 1, '-0') + : '<='.concat(to)), + ''.concat(from, ' ').concat(to).trim() + ); + }; + }, + testSet = function testSet(set, version, options) { + for (var i = 0; i < set.length; i++) if (!set[i].test(version)) return !1; + if (version.prerelease.length && !options.includePrerelease) { + for (var _i = 0; _i < set.length; _i++) + if ((debug(set[_i].semver), set[_i].semver !== Comparator.ANY && set[_i].semver.prerelease.length > 0)) { + var allowed = set[_i].semver; + if ( + allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch + ) + return !0; + } + return !1; + } + return !0; + }; + }, + 42321: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + (descriptor.enumerable = descriptor.enumerable || !1), + (descriptor.configurable = !0), + 'value' in descriptor && (descriptor.writable = !0), + Object.defineProperty(target, descriptor.key, descriptor); + } + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(18178), + __webpack_require__(15735), + __webpack_require__(16781), + __webpack_require__(43450), + __webpack_require__(95094), + __webpack_require__(58188), + __webpack_require__(77950), + __webpack_require__(28673), + __webpack_require__(74069), + __webpack_require__(48319), + __webpack_require__(45794), + __webpack_require__(6886); + var debug = __webpack_require__(27713), + _require = __webpack_require__(92840), + MAX_LENGTH = _require.MAX_LENGTH, + MAX_SAFE_INTEGER = _require.MAX_SAFE_INTEGER, + _require2 = __webpack_require__(11799), + re = _require2.re, + t = _require2.t, + compareIdentifiers = __webpack_require__(5026).compareIdentifiers, + SemVer = (function () { + function SemVer(version, options) { + if ( + ((function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) throw new TypeError('Cannot call a class as a function'); + })(this, SemVer), + (options && 'object' === _typeof(options)) || (options = { loose: !!options, includePrerelease: !1 }), + version instanceof SemVer) + ) { + if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) + return version; + version = version.version; + } else if ('string' != typeof version) throw new TypeError('Invalid Version: '.concat(version)); + if (version.length > MAX_LENGTH) + throw new TypeError('version is longer than '.concat(MAX_LENGTH, ' characters')); + debug('SemVer', version, options), + (this.options = options), + (this.loose = !!options.loose), + (this.includePrerelease = !!options.includePrerelease); + var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); + if (!m) throw new TypeError('Invalid Version: '.concat(version)); + if ( + ((this.raw = version), + (this.major = +m[1]), + (this.minor = +m[2]), + (this.patch = +m[3]), + this.major > MAX_SAFE_INTEGER || this.major < 0) + ) + throw new TypeError('Invalid major version'); + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError('Invalid minor version'); + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError('Invalid patch version'); + m[4] + ? (this.prerelease = m[4].split('.').map(function (id) { + if (/^[0-9]+$/.test(id)) { + var num = +id; + if (num >= 0 && num < MAX_SAFE_INTEGER) return num; + } + return id; + })) + : (this.prerelease = []), + (this.build = m[5] ? m[5].split('.') : []), + this.format(); + } + return ( + (function _createClass(Constructor, protoProps, staticProps) { + return ( + protoProps && _defineProperties(Constructor.prototype, protoProps), + staticProps && _defineProperties(Constructor, staticProps), + Constructor + ); + })(SemVer, [ + { + key: 'format', + value: function format() { + return ( + (this.version = ''.concat(this.major, '.').concat(this.minor, '.').concat(this.patch)), + this.prerelease.length && (this.version += '-'.concat(this.prerelease.join('.'))), + this.version + ); + }, + }, + { + key: 'toString', + value: function toString() { + return this.version; + }, + }, + { + key: 'compare', + value: function compare(other) { + if ((debug('SemVer.compare', this.version, this.options, other), !(other instanceof SemVer))) { + if ('string' == typeof other && other === this.version) return 0; + other = new SemVer(other, this.options); + } + return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other); + }, + }, + { + key: 'compareMain', + value: function compareMain(other) { + return ( + other instanceof SemVer || (other = new SemVer(other, this.options)), + compareIdentifiers(this.major, other.major) || + compareIdentifiers(this.minor, other.minor) || + compareIdentifiers(this.patch, other.patch) + ); + }, + }, + { + key: 'comparePre', + value: function comparePre(other) { + if ( + (other instanceof SemVer || (other = new SemVer(other, this.options)), + this.prerelease.length && !other.prerelease.length) + ) + return -1; + if (!this.prerelease.length && other.prerelease.length) return 1; + if (!this.prerelease.length && !other.prerelease.length) return 0; + var i = 0; + do { + var a = this.prerelease[i], + b = other.prerelease[i]; + if ((debug('prerelease compare', i, a, b), void 0 === a && void 0 === b)) return 0; + if (void 0 === b) return 1; + if (void 0 === a) return -1; + if (a !== b) return compareIdentifiers(a, b); + } while (++i); + }, + }, + { + key: 'compareBuild', + value: function compareBuild(other) { + other instanceof SemVer || (other = new SemVer(other, this.options)); + var i = 0; + do { + var a = this.build[i], + b = other.build[i]; + if ((debug('prerelease compare', i, a, b), void 0 === a && void 0 === b)) return 0; + if (void 0 === b) return 1; + if (void 0 === a) return -1; + if (a !== b) return compareIdentifiers(a, b); + } while (++i); + }, + }, + { + key: 'inc', + value: function inc(release, identifier) { + switch (release) { + case 'premajor': + (this.prerelease.length = 0), + (this.patch = 0), + (this.minor = 0), + this.major++, + this.inc('pre', identifier); + break; + case 'preminor': + (this.prerelease.length = 0), (this.patch = 0), this.minor++, this.inc('pre', identifier); + break; + case 'prepatch': + (this.prerelease.length = 0), this.inc('patch', identifier), this.inc('pre', identifier); + break; + case 'prerelease': + 0 === this.prerelease.length && this.inc('patch', identifier), this.inc('pre', identifier); + break; + case 'major': + (0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length) || this.major++, + (this.minor = 0), + (this.patch = 0), + (this.prerelease = []); + break; + case 'minor': + (0 === this.patch && 0 !== this.prerelease.length) || this.minor++, + (this.patch = 0), + (this.prerelease = []); + break; + case 'patch': + 0 === this.prerelease.length && this.patch++, (this.prerelease = []); + break; + case 'pre': + if (0 === this.prerelease.length) this.prerelease = [0]; + else { + for (var i = this.prerelease.length; --i >= 0; ) + 'number' == typeof this.prerelease[i] && (this.prerelease[i]++, (i = -2)); + -1 === i && this.prerelease.push(0); + } + identifier && + (this.prerelease[0] === identifier + ? isNaN(this.prerelease[1]) && (this.prerelease = [identifier, 0]) + : (this.prerelease = [identifier, 0])); + break; + default: + throw new Error('invalid increment argument: '.concat(release)); + } + return this.format(), (this.raw = this.version), this; + }, + }, + ]), + SemVer + ); + })(); + module.exports = SemVer; + }, + 1393: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(77950), __webpack_require__(85940), __webpack_require__(45794); + var parse = __webpack_require__(1562); + module.exports = function clean(version, options) { + var s = parse(version.trim().replace(/^[=v]+/, ''), options); + return s ? s.version : null; + }; + }, + 20006: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(15735), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(6886); + var eq = __webpack_require__(57915), + neq = __webpack_require__(49610), + gt = __webpack_require__(37246), + gte = __webpack_require__(25999), + lt = __webpack_require__(11144), + lte = __webpack_require__(9297); + module.exports = function cmp(a, op, b, loose) { + switch (op) { + case '===': + return 'object' === _typeof(a) && (a = a.version), 'object' === _typeof(b) && (b = b.version), a === b; + case '!==': + return 'object' === _typeof(a) && (a = a.version), 'object' === _typeof(b) && (b = b.version), a !== b; + case '': + case '=': + case '==': + return eq(a, b, loose); + case '!=': + return neq(a, b, loose); + case '>': + return gt(a, b, loose); + case '>=': + return gte(a, b, loose); + case '<': + return lt(a, b, loose); + case '<=': + return lte(a, b, loose); + default: + throw new TypeError('Invalid operator: '.concat(op)); + } + }; + }, + 17605: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(18178), __webpack_require__(77950), __webpack_require__(74069); + var SemVer = __webpack_require__(42321), + parse = __webpack_require__(1562), + _require = __webpack_require__(11799), + re = _require.re, + t = _require.t; + module.exports = function coerce(version, options) { + if (version instanceof SemVer) return version; + if (('number' == typeof version && (version = String(version)), 'string' != typeof version)) return null; + var match = null; + if ((options = options || {}).rtl) { + for ( + var next; + (next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length); + + ) + (match && next.index + next[0].length === match.index + match[0].length) || (match = next), + (re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length); + re[t.COERCERTL].lastIndex = -1; + } else match = version.match(re[t.COERCE]); + return null === match + ? null + : parse( + '' + .concat(match[2], '.') + .concat(match[3] || '0', '.') + .concat(match[4] || '0'), + options, + ); + }; + }, + 66927: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function compareBuild(a, b, loose) { + var versionA = new SemVer(a, loose), + versionB = new SemVer(b, loose); + return versionA.compare(versionB) || versionA.compareBuild(versionB); + }; + }, + 14959: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function compareLoose(a, b) { + return compare(a, b, !0); + }; + }, + 63951: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function compare(a, b, loose) { + return new SemVer(a, loose).compare(new SemVer(b, loose)); + }; + }, + 11771: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var parse = __webpack_require__(1562), + eq = __webpack_require__(57915); + module.exports = function diff(version1, version2) { + if (eq(version1, version2)) return null; + var v1 = parse(version1), + v2 = parse(version2), + hasPre = v1.prerelease.length || v2.prerelease.length, + prefix = hasPre ? 'pre' : '', + defaultResult = hasPre ? 'prerelease' : ''; + for (var key in v1) + if (('major' === key || 'minor' === key || 'patch' === key) && v1[key] !== v2[key]) return prefix + key; + return defaultResult; + }; + }, + 57915: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function eq(a, b, loose) { + return 0 === compare(a, b, loose); + }; + }, + 37246: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function gt(a, b, loose) { + return compare(a, b, loose) > 0; + }; + }, + 25999: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function gte(a, b, loose) { + return compare(a, b, loose) >= 0; + }; + }, + 16245: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function inc(version, release, options, identifier) { + 'string' == typeof options && ((identifier = options), (options = void 0)); + try { + return new SemVer(version, options).inc(release, identifier).version; + } catch (er) { + return null; + } + }; + }, + 11144: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function lt(a, b, loose) { + return compare(a, b, loose) < 0; + }; + }, + 9297: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function lte(a, b, loose) { + return compare(a, b, loose) <= 0; + }; + }, + 93666: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function major(a, loose) { + return new SemVer(a, loose).major; + }; + }, + 49103: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function minor(a, loose) { + return new SemVer(a, loose).minor; + }; + }, + 49610: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function neq(a, b, loose) { + return 0 !== compare(a, b, loose); + }; + }, + 1562: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + var MAX_LENGTH = __webpack_require__(92840).MAX_LENGTH, + _require2 = __webpack_require__(11799), + re = _require2.re, + t = _require2.t, + SemVer = __webpack_require__(42321); + module.exports = function parse(version, options) { + if ( + ((options && 'object' === _typeof(options)) || (options = { loose: !!options, includePrerelease: !1 }), + version instanceof SemVer) + ) + return version; + if ('string' != typeof version) return null; + if (version.length > MAX_LENGTH) return null; + if (!(options.loose ? re[t.LOOSE] : re[t.FULL]).test(version)) return null; + try { + return new SemVer(version, options); + } catch (er) { + return null; + } + }; + }, + 44701: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var SemVer = __webpack_require__(42321); + module.exports = function patch(a, loose) { + return new SemVer(a, loose).patch; + }; + }, + 4250: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var parse = __webpack_require__(1562); + module.exports = function prerelease(version, options) { + var parsed = parse(version, options); + return parsed && parsed.prerelease.length ? parsed.prerelease : null; + }; + }, + 11331: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var compare = __webpack_require__(63951); + module.exports = function rcompare(a, b, loose) { + return compare(b, a, loose); + }; + }, + 79913: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(43430); + var compareBuild = __webpack_require__(66927); + module.exports = function rsort(list, loose) { + return list.sort(function (a, b) { + return compareBuild(b, a, loose); + }); + }; + }, + 38309: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Range = __webpack_require__(99226); + module.exports = function satisfies(version, range, options) { + try { + range = new Range(range, options); + } catch (er) { + return !1; + } + return range.test(version); + }; + }, + 51777: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(43430); + var compareBuild = __webpack_require__(66927); + module.exports = function sort(list, loose) { + return list.sort(function (a, b) { + return compareBuild(a, b, loose); + }); + }; + }, + 47695: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var parse = __webpack_require__(1562); + module.exports = function valid(version, options) { + var v = parse(version, options); + return v ? v.version : null; + }; + }, + 33079: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var internalRe = __webpack_require__(11799); + module.exports = { + re: internalRe.re, + src: internalRe.src, + tokens: internalRe.t, + SEMVER_SPEC_VERSION: __webpack_require__(92840).SEMVER_SPEC_VERSION, + SemVer: __webpack_require__(42321), + compareIdentifiers: __webpack_require__(5026).compareIdentifiers, + rcompareIdentifiers: __webpack_require__(5026).rcompareIdentifiers, + parse: __webpack_require__(1562), + valid: __webpack_require__(47695), + clean: __webpack_require__(1393), + inc: __webpack_require__(16245), + diff: __webpack_require__(11771), + major: __webpack_require__(93666), + minor: __webpack_require__(49103), + patch: __webpack_require__(44701), + prerelease: __webpack_require__(4250), + compare: __webpack_require__(63951), + rcompare: __webpack_require__(11331), + compareLoose: __webpack_require__(14959), + compareBuild: __webpack_require__(66927), + sort: __webpack_require__(51777), + rsort: __webpack_require__(79913), + gt: __webpack_require__(37246), + lt: __webpack_require__(11144), + eq: __webpack_require__(57915), + neq: __webpack_require__(49610), + gte: __webpack_require__(25999), + lte: __webpack_require__(9297), + cmp: __webpack_require__(20006), + coerce: __webpack_require__(17605), + Comparator: __webpack_require__(10204), + Range: __webpack_require__(99226), + satisfies: __webpack_require__(38309), + toComparators: __webpack_require__(19243), + maxSatisfying: __webpack_require__(93527), + minSatisfying: __webpack_require__(42227), + minVersion: __webpack_require__(41772), + validRange: __webpack_require__(25436), + outside: __webpack_require__(81610), + gtr: __webpack_require__(112), + ltr: __webpack_require__(84218), + intersects: __webpack_require__(1347), + simplifyRange: __webpack_require__(51709), + subset: __webpack_require__(93924), + }; + }, + 92840: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(71245), __webpack_require__(58143); + var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; + module.exports = { + SEMVER_SPEC_VERSION: '2.0.0', + MAX_LENGTH: 256, + MAX_SAFE_INTEGER, + MAX_SAFE_COMPONENT_LENGTH: 16, + }; + }, + 27713: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var process = __webpack_require__(34406); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(18178), + __webpack_require__(15735), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(6886); + var debug = + 'object' === (void 0 === process ? 'undefined' : _typeof(process)) && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG) + ? function () { + for (var _console, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + return (_console = console).error.apply(_console, ['SEMVER'].concat(args)); + } + : function () {}; + module.exports = debug; + }, + 5026: module => { + 'use strict'; + var numeric = /^[0-9]+$/, + compareIdentifiers = function compareIdentifiers(a, b) { + var anum = numeric.test(a), + bnum = numeric.test(b); + return ( + anum && bnum && ((a = +a), (b = +b)), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1 + ); + }; + module.exports = { + compareIdentifiers, + rcompareIdentifiers: function rcompareIdentifiers(a, b) { + return compareIdentifiers(b, a); + }, + }; + }, + 11799: (module, exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(18178), __webpack_require__(17368), __webpack_require__(77950), __webpack_require__(88233); + var MAX_SAFE_COMPONENT_LENGTH = __webpack_require__(92840).MAX_SAFE_COMPONENT_LENGTH, + debug = __webpack_require__(27713), + re = ((exports = module.exports = {}).re = []), + src = (exports.src = []), + t = (exports.t = {}), + R = 0, + createToken = function createToken(name, value, isGlobal) { + var index = R++; + debug(index, value), + (t[name] = index), + (src[index] = value), + (re[index] = new RegExp(value, isGlobal ? 'g' : void 0)); + }; + createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*'), + createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+'), + createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*'), + createToken( + 'MAINVERSION', + '('.concat(src[t.NUMERICIDENTIFIER], ')\\.') + + '('.concat(src[t.NUMERICIDENTIFIER], ')\\.') + + '('.concat(src[t.NUMERICIDENTIFIER], ')'), + ), + createToken( + 'MAINVERSIONLOOSE', + '('.concat(src[t.NUMERICIDENTIFIERLOOSE], ')\\.') + + '('.concat(src[t.NUMERICIDENTIFIERLOOSE], ')\\.') + + '('.concat(src[t.NUMERICIDENTIFIERLOOSE], ')'), + ), + createToken( + 'PRERELEASEIDENTIFIER', + '(?:'.concat(src[t.NUMERICIDENTIFIER], '|').concat(src[t.NONNUMERICIDENTIFIER], ')'), + ), + createToken( + 'PRERELEASEIDENTIFIERLOOSE', + '(?:'.concat(src[t.NUMERICIDENTIFIERLOOSE], '|').concat(src[t.NONNUMERICIDENTIFIER], ')'), + ), + createToken( + 'PRERELEASE', + '(?:-('.concat(src[t.PRERELEASEIDENTIFIER], '(?:\\.').concat(src[t.PRERELEASEIDENTIFIER], ')*))'), + ), + createToken( + 'PRERELEASELOOSE', + '(?:-?('.concat(src[t.PRERELEASEIDENTIFIERLOOSE], '(?:\\.').concat(src[t.PRERELEASEIDENTIFIERLOOSE], ')*))'), + ), + createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+'), + createToken('BUILD', '(?:\\+('.concat(src[t.BUILDIDENTIFIER], '(?:\\.').concat(src[t.BUILDIDENTIFIER], ')*))')), + createToken( + 'FULLPLAIN', + 'v?'.concat(src[t.MAINVERSION]).concat(src[t.PRERELEASE], '?').concat(src[t.BUILD], '?'), + ), + createToken('FULL', '^'.concat(src[t.FULLPLAIN], '$')), + createToken( + 'LOOSEPLAIN', + '[v=\\s]*'.concat(src[t.MAINVERSIONLOOSE]).concat(src[t.PRERELEASELOOSE], '?').concat(src[t.BUILD], '?'), + ), + createToken('LOOSE', '^'.concat(src[t.LOOSEPLAIN], '$')), + createToken('GTLT', '((?:<|>)?=?)'), + createToken('XRANGEIDENTIFIERLOOSE', ''.concat(src[t.NUMERICIDENTIFIERLOOSE], '|x|X|\\*')), + createToken('XRANGEIDENTIFIER', ''.concat(src[t.NUMERICIDENTIFIER], '|x|X|\\*')), + createToken( + 'XRANGEPLAIN', + '[v=\\s]*('.concat(src[t.XRANGEIDENTIFIER], ')') + + '(?:\\.('.concat(src[t.XRANGEIDENTIFIER], ')') + + '(?:\\.('.concat(src[t.XRANGEIDENTIFIER], ')') + + '(?:'.concat(src[t.PRERELEASE], ')?').concat(src[t.BUILD], '?') + + ')?)?', + ), + createToken( + 'XRANGEPLAINLOOSE', + '[v=\\s]*('.concat(src[t.XRANGEIDENTIFIERLOOSE], ')') + + '(?:\\.('.concat(src[t.XRANGEIDENTIFIERLOOSE], ')') + + '(?:\\.('.concat(src[t.XRANGEIDENTIFIERLOOSE], ')') + + '(?:'.concat(src[t.PRERELEASELOOSE], ')?').concat(src[t.BUILD], '?') + + ')?)?', + ), + createToken('XRANGE', '^'.concat(src[t.GTLT], '\\s*').concat(src[t.XRANGEPLAIN], '$')), + createToken('XRANGELOOSE', '^'.concat(src[t.GTLT], '\\s*').concat(src[t.XRANGEPLAINLOOSE], '$')), + createToken( + 'COERCE', + ''.concat('(^|[^\\d])(\\d{1,').concat(MAX_SAFE_COMPONENT_LENGTH, '})') + + '(?:\\.(\\d{1,'.concat(MAX_SAFE_COMPONENT_LENGTH, '}))?') + + '(?:\\.(\\d{1,'.concat(MAX_SAFE_COMPONENT_LENGTH, '}))?') + + '(?:$|[^\\d])', + ), + createToken('COERCERTL', src[t.COERCE], !0), + createToken('LONETILDE', '(?:~>?)'), + createToken('TILDETRIM', '(\\s*)'.concat(src[t.LONETILDE], '\\s+'), !0), + (exports.tildeTrimReplace = '$1~'), + createToken('TILDE', '^'.concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAIN], '$')), + createToken('TILDELOOSE', '^'.concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAINLOOSE], '$')), + createToken('LONECARET', '(?:\\^)'), + createToken('CARETTRIM', '(\\s*)'.concat(src[t.LONECARET], '\\s+'), !0), + (exports.caretTrimReplace = '$1^'), + createToken('CARET', '^'.concat(src[t.LONECARET]).concat(src[t.XRANGEPLAIN], '$')), + createToken('CARETLOOSE', '^'.concat(src[t.LONECARET]).concat(src[t.XRANGEPLAINLOOSE], '$')), + createToken('COMPARATORLOOSE', '^'.concat(src[t.GTLT], '\\s*(').concat(src[t.LOOSEPLAIN], ')$|^$')), + createToken('COMPARATOR', '^'.concat(src[t.GTLT], '\\s*(').concat(src[t.FULLPLAIN], ')$|^$')), + createToken( + 'COMPARATORTRIM', + '(\\s*)'.concat(src[t.GTLT], '\\s*(').concat(src[t.LOOSEPLAIN], '|').concat(src[t.XRANGEPLAIN], ')'), + !0, + ), + (exports.comparatorTrimReplace = '$1$2$3'), + createToken( + 'HYPHENRANGE', + '^\\s*('.concat(src[t.XRANGEPLAIN], ')') + '\\s+-\\s+' + '('.concat(src[t.XRANGEPLAIN], ')') + '\\s*$', + ), + createToken( + 'HYPHENRANGELOOSE', + '^\\s*('.concat(src[t.XRANGEPLAINLOOSE], ')') + + '\\s+-\\s+' + + '('.concat(src[t.XRANGEPLAINLOOSE], ')') + + '\\s*$', + ), + createToken('STAR', '(<|>)?=?\\s*\\*'), + createToken('GTE0', '^\\s*>=\\s*0.0.0\\s*$'), + createToken('GTE0PRE', '^\\s*>=\\s*0.0.0-0\\s*$'); + }, + 112: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var outside = __webpack_require__(81610); + module.exports = function gtr(version, range, options) { + return outside(version, range, '>', options); + }; + }, + 1347: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Range = __webpack_require__(99226); + module.exports = function intersects(r1, r2, options) { + return (r1 = new Range(r1, options)), (r2 = new Range(r2, options)), r1.intersects(r2); + }; + }, + 84218: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var outside = __webpack_require__(81610); + module.exports = function ltr(version, range, options) { + return outside(version, range, '<', options); + }; + }, + 93527: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(38695), __webpack_require__(1939); + var SemVer = __webpack_require__(42321), + Range = __webpack_require__(99226); + module.exports = function maxSatisfying(versions, range, options) { + var max = null, + maxSV = null, + rangeObj = null; + try { + rangeObj = new Range(range, options); + } catch (er) { + return null; + } + return ( + versions.forEach(function (v) { + rangeObj.test(v) && ((max && -1 !== maxSV.compare(v)) || (maxSV = new SemVer((max = v), options))); + }), + max + ); + }; + }, + 42227: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(38695), __webpack_require__(1939); + var SemVer = __webpack_require__(42321), + Range = __webpack_require__(99226); + module.exports = function minSatisfying(versions, range, options) { + var min = null, + minSV = null, + rangeObj = null; + try { + rangeObj = new Range(range, options); + } catch (er) { + return null; + } + return ( + versions.forEach(function (v) { + rangeObj.test(v) && ((min && 1 !== minSV.compare(v)) || (minSV = new SemVer((min = v), options))); + }), + min + ); + }; + }, + 41772: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(38695), __webpack_require__(1939); + var SemVer = __webpack_require__(42321), + Range = __webpack_require__(99226), + gt = __webpack_require__(37246); + module.exports = function minVersion(range, loose) { + range = new Range(range, loose); + var minver = new SemVer('0.0.0'); + if (range.test(minver)) return minver; + if (((minver = new SemVer('0.0.0-0')), range.test(minver))) return minver; + minver = null; + for (var i = 0; i < range.set.length; ++i) { + range.set[i].forEach(function (comparator) { + var compver = new SemVer(comparator.semver.version); + switch (comparator.operator) { + case '>': + 0 === compver.prerelease.length ? compver.patch++ : compver.prerelease.push(0), + (compver.raw = compver.format()); + case '': + case '>=': + (minver && !gt(minver, compver)) || (minver = compver); + break; + case '<': + case '<=': + break; + default: + throw new Error('Unexpected operation: '.concat(comparator.operator)); + } + }); + } + return minver && range.test(minver) ? minver : null; + }; + }, + 81610: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(38695), + __webpack_require__(15735), + __webpack_require__(58188), + __webpack_require__(28673), + __webpack_require__(1939), + __webpack_require__(6886); + var SemVer = __webpack_require__(42321), + Comparator = __webpack_require__(10204), + ANY = Comparator.ANY, + Range = __webpack_require__(99226), + satisfies = __webpack_require__(38309), + gt = __webpack_require__(37246), + lt = __webpack_require__(11144), + lte = __webpack_require__(9297), + gte = __webpack_require__(25999); + module.exports = function outside(version, range, hilo, options) { + var gtfn, ltefn, ltfn, comp, ecomp; + switch (((version = new SemVer(version, options)), (range = new Range(range, options)), hilo)) { + case '>': + (gtfn = gt), (ltefn = lte), (ltfn = lt), (comp = '>'), (ecomp = '>='); + break; + case '<': + (gtfn = lt), (ltefn = gte), (ltfn = gt), (comp = '<'), (ecomp = '<='); + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"'); + } + if (satisfies(version, range, options)) return !1; + for ( + var _loop = function _loop(i) { + var comparators = range.set[i], + high = null, + low = null; + return ( + comparators.forEach(function (comparator) { + comparator.semver === ANY && (comparator = new Comparator('>=0.0.0')), + (high = high || comparator), + (low = low || comparator), + gtfn(comparator.semver, high.semver, options) + ? (high = comparator) + : ltfn(comparator.semver, low.semver, options) && (low = comparator); + }), + high.operator === comp || high.operator === ecomp + ? { v: !1 } + : (low.operator && low.operator !== comp) || !ltefn(version, low.semver) + ? low.operator === ecomp && ltfn(version, low.semver) + ? { v: !1 } + : void 0 + : { v: !1 } + ); + }, + i = 0; + i < range.set.length; + ++i + ) { + var _ret = _loop(i); + if ('object' === _typeof(_ret)) return _ret.v; + } + return !0; + }; + }, + 51709: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + _unsupportedIterableToArray(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _unsupportedIterableToArray(o, minLen) { + if (o) { + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + return ( + 'Object' === n && o.constructor && (n = o.constructor.name), + 'Map' === n || 'Set' === n + ? Array.from(o) + : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) + ? _arrayLikeToArray(o, minLen) + : void 0 + ); + } + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(18178), + __webpack_require__(27233), + __webpack_require__(18145), + __webpack_require__(15735), + __webpack_require__(16781), + __webpack_require__(32501), + __webpack_require__(43430), + __webpack_require__(99120), + __webpack_require__(26936), + __webpack_require__(58188), + __webpack_require__(88233), + __webpack_require__(28673), + __webpack_require__(6886); + var satisfies = __webpack_require__(38309), + compare = __webpack_require__(63951); + module.exports = function (versions, range, options) { + var _step, + set = [], + min = null, + prev = null, + v = versions.sort(function (a, b) { + return compare(a, b, options); + }), + _iterator = (function _createForOfIteratorHelper(o) { + if ('undefined' == typeof Symbol || null == o[Symbol.iterator]) { + if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { + var i = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; + }, + e: function e(_e2) { + throw _e2; + }, + f: F, + }; + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + var it, + err, + normalCompletion = !0, + didErr = !1; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + return (normalCompletion = step.done), step; + }, + e: function e(_e3) { + (didErr = !0), (err = _e3); + }, + f: function f() { + try { + normalCompletion || null == it.return || it.return(); + } finally { + if (didErr) throw err; + } + }, + }; + })(v); + try { + for (_iterator.s(); !(_step = _iterator.n()).done; ) { + var version = _step.value; + satisfies(version, range, options) + ? ((prev = version), min || (min = version)) + : (prev && set.push([min, prev]), (prev = null), (min = null)); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + min && set.push([min, null]); + for (var ranges = [], _i = 0, _set = set; _i < _set.length; _i++) { + var _set$_i = _slicedToArray(_set[_i], 2), + _min = _set$_i[0], + max = _set$_i[1]; + _min === max + ? ranges.push(_min) + : max || _min !== v[0] + ? max + ? _min === v[0] + ? ranges.push('<='.concat(max)) + : ranges.push(''.concat(_min, ' - ').concat(max)) + : ranges.push('>='.concat(_min)) + : ranges.push('*'); + } + var simplified = ranges.join(' || '), + original = 'string' == typeof range.raw ? range.raw : String(range); + return simplified.length < original.length ? simplified : range; + }; + }, + 93924: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + function _createForOfIteratorHelper(o) { + if ('undefined' == typeof Symbol || null == o[Symbol.iterator]) { + if ( + Array.isArray(o) || + (o = (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(o)) + ) { + var i = 0, + F = function F() {}; + return { + s: F, + n: function n() { + return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; + }, + e: function e(_e) { + throw _e; + }, + f: F, + }; + } + throw new TypeError( + 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + } + var it, + err, + normalCompletion = !0, + didErr = !1; + return { + s: function s() { + it = o[Symbol.iterator](); + }, + n: function n() { + var step = it.next(); + return (normalCompletion = step.done), step; + }, + e: function e(_e2) { + (didErr = !0), (err = _e2); + }, + f: function f() { + try { + normalCompletion || null == it.return || it.return(); + } finally { + if (didErr) throw err; + } + }, + }; + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(20796), + __webpack_require__(27233), + __webpack_require__(18145), + __webpack_require__(15735), + __webpack_require__(32501), + __webpack_require__(99120), + __webpack_require__(26936), + __webpack_require__(58188), + __webpack_require__(88233), + __webpack_require__(93244), + __webpack_require__(28673), + __webpack_require__(6886); + var Range = __webpack_require__(99226), + ANY = __webpack_require__(10204).ANY, + satisfies = __webpack_require__(38309), + compare = __webpack_require__(63951), + simpleSubset = function simpleSubset(sub, dom, options) { + if (1 === sub.length && sub[0].semver === ANY) return 1 === dom.length && dom[0].semver === ANY; + var gt, + lt, + _step3, + gtltComp, + eqSet = new Set(), + _iterator3 = _createForOfIteratorHelper(sub); + try { + for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) { + var c = _step3.value; + '>' === c.operator || '>=' === c.operator + ? (gt = higherGT(gt, c, options)) + : '<' === c.operator || '<=' === c.operator + ? (lt = lowerLT(lt, c, options)) + : eqSet.add(c.semver); + } + } catch (err) { + _iterator3.e(err); + } finally { + _iterator3.f(); + } + if (eqSet.size > 1) return null; + if (gt && lt) { + if ((gtltComp = compare(gt.semver, lt.semver, options)) > 0) return null; + if (0 === gtltComp && ('>=' !== gt.operator || '<=' !== lt.operator)) return null; + } + var _step4, + hasDomLT, + hasDomGT, + _iterator4 = _createForOfIteratorHelper(eqSet); + try { + for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) { + var eq = _step4.value; + if (gt && !satisfies(eq, String(gt), options)) return null; + if (lt && !satisfies(eq, String(lt), options)) return null; + var _step6, + _iterator6 = _createForOfIteratorHelper(dom); + try { + for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) { + var _c = _step6.value; + if (!satisfies(eq, String(_c), options)) return !1; + } + } catch (err) { + _iterator6.e(err); + } finally { + _iterator6.f(); + } + return !0; + } + } catch (err) { + _iterator4.e(err); + } finally { + _iterator4.f(); + } + var _step5, + _iterator5 = _createForOfIteratorHelper(dom); + try { + for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) { + var _c2 = _step5.value; + if ( + ((hasDomGT = hasDomGT || '>' === _c2.operator || '>=' === _c2.operator), + (hasDomLT = hasDomLT || '<' === _c2.operator || '<=' === _c2.operator), + gt) + ) + if ('>' === _c2.operator || '>=' === _c2.operator) { + if (higherGT(gt, _c2, options) === _c2) return !1; + } else if ('>=' === gt.operator && !satisfies(gt.semver, String(_c2), options)) return !1; + if (lt) + if ('<' === _c2.operator || '<=' === _c2.operator) { + if (lowerLT(lt, _c2, options) === _c2) return !1; + } else if ('<=' === lt.operator && !satisfies(lt.semver, String(_c2), options)) return !1; + if (!_c2.operator && (lt || gt) && 0 !== gtltComp) return !1; + } + } catch (err) { + _iterator5.e(err); + } finally { + _iterator5.f(); + } + return !(gt && hasDomLT && !lt && 0 !== gtltComp) && !(lt && hasDomGT && !gt && 0 !== gtltComp); + }, + higherGT = function higherGT(a, b, options) { + if (!a) return b; + var comp = compare(a.semver, b.semver, options); + return comp > 0 ? a : comp < 0 || ('>' === b.operator && '>=' === a.operator) ? b : a; + }, + lowerLT = function lowerLT(a, b, options) { + if (!a) return b; + var comp = compare(a.semver, b.semver, options); + return comp < 0 ? a : comp > 0 || ('<' === b.operator && '<=' === a.operator) ? b : a; + }; + module.exports = function subset(sub, dom, options) { + (sub = new Range(sub, options)), (dom = new Range(dom, options)); + var _step, + sawNonNull = !1, + _iterator = _createForOfIteratorHelper(sub.set); + try { + OUTER: for (_iterator.s(); !(_step = _iterator.n()).done; ) { + var _step2, + simpleSub = _step.value, + _iterator2 = _createForOfIteratorHelper(dom.set); + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { + var simpleDom = _step2.value, + isSub = simpleSubset(simpleSub, simpleDom, options); + if (((sawNonNull = sawNonNull || null !== isSub), isSub)) continue OUTER; + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + if (sawNonNull) return !1; + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + return !0; + }; + }, + 19243: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(16781), + __webpack_require__(43450), + __webpack_require__(77950), + __webpack_require__(48319), + __webpack_require__(45794); + var Range = __webpack_require__(99226); + module.exports = function toComparators(range, options) { + return new Range(range, options).set.map(function (comp) { + return comp + .map(function (c) { + return c.value; + }) + .join(' ') + .trim() + .split(' '); + }); + }; + }, + 25436: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Range = __webpack_require__(99226); + module.exports = function validRange(range, options) { + try { + return new Range(range, options).range || '*'; + } catch (er) { + return null; + } + }; + }, + 15867: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { $_: () => color, Oq: () => background, cp: () => typography }); + __webpack_require__(16781); + var polished__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1039), + color = { + primary: '#FF4785', + secondary: '#1EA7FD', + tertiary: '#FAFBFC', + ancillary: '#22a699', + orange: '#FC521F', + gold: '#FFAE00', + green: '#66BF3C', + seafoam: '#37D5D3', + purple: '#6F2CAC', + ultraviolet: '#2A0481', + lightest: '#FFFFFF', + lighter: '#F8F8F8', + light: '#F3F3F3', + mediumlight: '#EEEEEE', + medium: '#DDDDDD', + mediumdark: '#999999', + dark: '#666666', + darker: '#444444', + darkest: '#333333', + border: 'rgba(0,0,0,.1)', + positive: '#66BF3C', + negative: '#FF4400', + warning: '#E69D00', + critical: '#FFFFFF', + defaultText: '#333333', + inverseText: '#FFFFFF', + }, + background = { + app: '#F6F9FC', + bar: '#FFFFFF', + content: color.lightest, + gridCellSize: 10, + hoverable: (0, polished__WEBPACK_IMPORTED_MODULE_1__.DZ)(0.93, color.secondary), + positive: '#E1FFD4', + negative: '#FEDED2', + warning: '#FFF5CF', + critical: '#FF4400', + }, + typography = { + fonts: { + base: [ + '"Nunito Sans"', + '-apple-system', + '".SFNSText-Regular"', + '"San Francisco"', + 'BlinkMacSystemFont', + '"Segoe UI"', + '"Helvetica Neue"', + 'Helvetica', + 'Arial', + 'sans-serif', + ].join(', '), + mono: [ + 'ui-monospace', + 'Menlo', + 'Monaco', + '"Roboto Mono"', + '"Oxygen Mono"', + '"Ubuntu Monospace"', + '"Source Code Pro"', + '"Droid Sans Mono"', + '"Courier New"', + 'monospace', + ].join(', '), + }, + weight: { regular: 400, bold: 700, black: 900 }, + size: { s1: 12, s2: 14, s3: 16, m1: 20, m2: 24, m3: 28, l1: 32, l2: 40, l3: 48, code: 90 }, + }; + }, + 43624: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { O: () => convert }); + __webpack_require__(43105), __webpack_require__(34769), __webpack_require__(34115); + var _templateObject, + _templateObject2, + _templateObject3, + _templateObject4, + polished_esm = __webpack_require__(1039), + esm_base = __webpack_require__(15867), + core_browser_esm = (__webpack_require__(32501), __webpack_require__(22144), __webpack_require__(47134)); + function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + } + var easing = { rubber: 'cubic-bezier(0.175, 0.885, 0.335, 1.05)' }, + rotate360 = (0, core_browser_esm.F4)( + _templateObject || + (_templateObject = _taggedTemplateLiteral([ + '\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n', + ])), + ), + glow = (0, core_browser_esm.F4)( + _templateObject2 || + (_templateObject2 = _taggedTemplateLiteral(['\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n'])), + ), + animation = { + rotate360, + glow, + float: (0, core_browser_esm.F4)( + _templateObject3 || + (_templateObject3 = _taggedTemplateLiteral([ + '\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n', + ])), + ), + jiggle: (0, core_browser_esm.F4)( + _templateObject4 || + (_templateObject4 = _taggedTemplateLiteral([ + '\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n', + ])), + ), + inlineGlow: (0, core_browser_esm.iv)( + 'animation:', + glow, + ' 1.5s ease-in-out infinite;color:transparent;cursor:progress;;label:inlineGlow;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUNzQiIsImZpbGUiOiIuLi8uLi9zcmMvYW5pbWF0aW9uLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGNvbnN0IGVhc2luZyA9IHtcbiAgcnViYmVyOiAnY3ViaWMtYmV6aWVyKDAuMTc1LCAwLjg4NSwgMC4zMzUsIDEuMDUpJyxcbn07XG5cbmNvbnN0IHJvdGF0ZTM2MCA9IGtleWZyYW1lc2Bcblx0ZnJvbSB7XG5cdFx0dHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG5cdH1cblx0dG8ge1xuXHRcdHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7XG5cdH1cbmA7XG5cbmNvbnN0IGdsb3cgPSBrZXlmcmFtZXNgXG4gIDAlLCAxMDAlIHsgb3BhY2l0eTogMTsgfVxuICA1MCUgeyBvcGFjaXR5OiAuNDsgfVxuYDtcblxuY29uc3QgZmxvYXQgPSBrZXlmcmFtZXNgXG4gIDAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDFweCk7IH1cbiAgMjUlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDBweCk7IH1cbiAgNTAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0zcHgpOyB9XG4gIDEwMCUgeyB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMXB4KTsgfVxuYDtcblxuY29uc3QgamlnZ2xlID0ga2V5ZnJhbWVzYFxuICAwJSwgMTAwJSB7IHRyYW5zZm9ybTp0cmFuc2xhdGUzZCgwLDAsMCk7IH1cbiAgMTIuNSUsIDYyLjUlIHsgdHJhbnNmb3JtOnRyYW5zbGF0ZTNkKC00cHgsMCwwKTsgfVxuICAzNy41JSwgODcuNSUgeyAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCg0cHgsMCwwKTsgIH1cbmA7XG5cbmNvbnN0IGlubGluZUdsb3cgPSBjc3NgXG4gIGFuaW1hdGlvbjogJHtnbG93fSAxLjVzIGVhc2UtaW4tb3V0IGluZmluaXRlO1xuICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGN1cnNvcjogcHJvZ3Jlc3M7XG5gO1xuXG4vLyBob3ZlciAmIGFjdGl2ZSBzdGF0ZSBmb3IgbGlua3MgYW5kIGJ1dHRvbnNcbmNvbnN0IGhvdmVyYWJsZSA9IGNzc2BcbiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGVhc2Utb3V0O1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDAsIDAsIDApO1xuXG4gICY6aG92ZXIge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlM2QoMCwgLTJweCwgMCk7XG4gIH1cblxuICAmOmFjdGl2ZSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgwLCAwLCAwKTtcbiAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGFuaW1hdGlvbiA9IHtcbiAgcm90YXRlMzYwLFxuICBnbG93LFxuICBmbG9hdCxcbiAgamlnZ2xlLFxuICBpbmxpbmVHbG93LFxuICBob3ZlcmFibGUsXG59O1xuIl19 */', + ), + hoverable: { + name: '1o7rzh8-hoverable', + styles: + 'transition:all 150ms ease-out;transform:translate3d(0,0,0);&:hover{transform:translate3d(0,-2px,0);}&:active{transform:translate3d(0,0,0);};label:hoverable;', + map: + '/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbmltYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0NxQiIsImZpbGUiOiIuLi8uLi9zcmMvYW5pbWF0aW9uLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGNvbnN0IGVhc2luZyA9IHtcbiAgcnViYmVyOiAnY3ViaWMtYmV6aWVyKDAuMTc1LCAwLjg4NSwgMC4zMzUsIDEuMDUpJyxcbn07XG5cbmNvbnN0IHJvdGF0ZTM2MCA9IGtleWZyYW1lc2Bcblx0ZnJvbSB7XG5cdFx0dHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG5cdH1cblx0dG8ge1xuXHRcdHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7XG5cdH1cbmA7XG5cbmNvbnN0IGdsb3cgPSBrZXlmcmFtZXNgXG4gIDAlLCAxMDAlIHsgb3BhY2l0eTogMTsgfVxuICA1MCUgeyBvcGFjaXR5OiAuNDsgfVxuYDtcblxuY29uc3QgZmxvYXQgPSBrZXlmcmFtZXNgXG4gIDAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDFweCk7IH1cbiAgMjUlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKDBweCk7IH1cbiAgNTAlIHsgdHJhbnNmb3JtOiB0cmFuc2xhdGVZKC0zcHgpOyB9XG4gIDEwMCUgeyB0cmFuc2Zvcm06IHRyYW5zbGF0ZVkoMXB4KTsgfVxuYDtcblxuY29uc3QgamlnZ2xlID0ga2V5ZnJhbWVzYFxuICAwJSwgMTAwJSB7IHRyYW5zZm9ybTp0cmFuc2xhdGUzZCgwLDAsMCk7IH1cbiAgMTIuNSUsIDYyLjUlIHsgdHJhbnNmb3JtOnRyYW5zbGF0ZTNkKC00cHgsMCwwKTsgfVxuICAzNy41JSwgODcuNSUgeyAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCg0cHgsMCwwKTsgIH1cbmA7XG5cbmNvbnN0IGlubGluZUdsb3cgPSBjc3NgXG4gIGFuaW1hdGlvbjogJHtnbG93fSAxLjVzIGVhc2UtaW4tb3V0IGluZmluaXRlO1xuICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGN1cnNvcjogcHJvZ3Jlc3M7XG5gO1xuXG4vLyBob3ZlciAmIGFjdGl2ZSBzdGF0ZSBmb3IgbGlua3MgYW5kIGJ1dHRvbnNcbmNvbnN0IGhvdmVyYWJsZSA9IGNzc2BcbiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGVhc2Utb3V0O1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDAsIDAsIDApO1xuXG4gICY6aG92ZXIge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlM2QoMCwgLTJweCwgMCk7XG4gIH1cblxuICAmOmFjdGl2ZSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgwLCAwLCAwKTtcbiAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGFuaW1hdGlvbiA9IHtcbiAgcm90YXRlMzYwLFxuICBnbG93LFxuICBmbG9hdCxcbiAgamlnZ2xlLFxuICBpbmxpbmVHbG93LFxuICBob3ZlcmFibGUsXG59O1xuIl19 */', + toString: function _EMOTION_STRINGIFIED_CSS_ERROR__() { + return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; + }, + }, + }, + utils = + (__webpack_require__(35883), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886), + __webpack_require__(26936), + __webpack_require__(27233), + __webpack_require__(30457)); + function _slicedToArray(arr, i) { + return ( + (function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + })(arr) || + (function _iterableToArrayLimit(arr, i) { + if ('undefined' == typeof Symbol || !(Symbol.iterator in Object(arr))) return; + var _arr = [], + _n = !0, + _d = !1, + _e = void 0; + try { + for ( + var _s, _i = arr[Symbol.iterator](); + !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); + _n = !0 + ); + } catch (err) { + (_d = !0), (_e = err); + } finally { + try { + _n || null == _i.return || _i.return(); + } finally { + if (_d) throw _e; + } + } + return _arr; + })(arr, i) || + (function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ('string' == typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + 'Object' === n && o.constructor && (n = o.constructor.name); + if ('Map' === n || 'Set' === n) return Array.from(o); + if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) + return _arrayLikeToArray(o, minLen); + })(arr, i) || + (function _nonIterableRest() { + throw new TypeError( + 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', + ); + })() + ); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var chromeDark = { + BASE_FONT_FAMILY: 'Menlo, monospace', + BASE_FONT_SIZE: '11px', + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: 'rgb(36, 36, 36)', + BASE_COLOR: 'rgb(213, 213, 213)', + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: 'rgb(227, 110, 236)', + OBJECT_VALUE_NULL_COLOR: 'rgb(127, 127, 127)', + OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(127, 127, 127)', + OBJECT_VALUE_REGEXP_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_STRING_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_SYMBOL_COLOR: 'rgb(233, 63, 59)', + OBJECT_VALUE_NUMBER_COLOR: 'hsl(252, 100%, 75%)', + OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(252, 100%, 75%)', + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(85, 106, 242)', + HTML_TAG_COLOR: 'rgb(93, 176, 215)', + HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)', + HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', + HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)', + HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)', + HTML_COMMENT_COLOR: 'rgb(137, 137, 137)', + HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', + ARROW_COLOR: 'rgb(145, 145, 145)', + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: '0', + TREENODE_FONT_FAMILY: 'Menlo, monospace', + TREENODE_FONT_SIZE: '11px', + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: 'rgb(85, 85, 85)', + TABLE_TH_BACKGROUND_COLOR: 'rgb(44, 44, 44)', + TABLE_TH_HOVER_COLOR: 'rgb(48, 48, 48)', + TABLE_SORT_ICON_COLOR: 'black', + TABLE_DATA_BACKGROUND_IMAGE: + 'linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))', + TABLE_DATA_BACKGROUND_SIZE: '128px 32px', + }, + chromeLight = { + BASE_FONT_FAMILY: 'Menlo, monospace', + BASE_FONT_SIZE: '11px', + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: 'white', + BASE_COLOR: 'black', + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: 'rgb(136, 19, 145)', + OBJECT_VALUE_NULL_COLOR: 'rgb(128, 128, 128)', + OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(128, 128, 128)', + OBJECT_VALUE_REGEXP_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_STRING_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_SYMBOL_COLOR: 'rgb(196, 26, 22)', + OBJECT_VALUE_NUMBER_COLOR: 'rgb(28, 0, 207)', + OBJECT_VALUE_BOOLEAN_COLOR: 'rgb(28, 0, 207)', + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(13, 34, 170)', + HTML_TAG_COLOR: 'rgb(168, 148, 166)', + HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)', + HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase', + HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)', + HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)', + HTML_COMMENT_COLOR: 'rgb(35, 110, 37)', + HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)', + ARROW_COLOR: '#6e6e6e', + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: '0', + TREENODE_FONT_FAMILY: 'Menlo, monospace', + TREENODE_FONT_SIZE: '11px', + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: '#aaa', + TABLE_TH_BACKGROUND_COLOR: '#eee', + TABLE_TH_HOVER_COLOR: 'hsla(0, 0%, 90%, 1)', + TABLE_SORT_ICON_COLOR: '#6e6e6e', + TABLE_DATA_BACKGROUND_IMAGE: + 'linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))', + TABLE_DATA_BACKGROUND_SIZE: '128px 32px', + }, + convertColors = function convertColors(colors) { + return Object.entries(colors).reduce(function (acc, _ref) { + var _ref2 = _slicedToArray(_ref, 2), + k = _ref2[0], + v = _ref2[1]; + return Object.assign( + {}, + acc, + (function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + })({}, k, (0, utils.TE)(v)), + ); + }, {}); + }, + create = function create(_ref3) { + var colors = _ref3.colors, + mono = _ref3.mono, + colorsObjs = convertColors(colors); + return { + token: { + fontFamily: mono, + WebkitFontSmoothing: 'antialiased', + '&.tag': colorsObjs.red3, + '&.comment': Object.assign({}, colorsObjs.green1, { fontStyle: 'italic' }), + '&.prolog': Object.assign({}, colorsObjs.green1, { fontStyle: 'italic' }), + '&.doctype': Object.assign({}, colorsObjs.green1, { fontStyle: 'italic' }), + '&.cdata': Object.assign({}, colorsObjs.green1, { fontStyle: 'italic' }), + '&.string': colorsObjs.red1, + '&.url': colorsObjs.cyan1, + '&.symbol': colorsObjs.cyan1, + '&.number': colorsObjs.cyan1, + '&.boolean': colorsObjs.cyan1, + '&.variable': colorsObjs.cyan1, + '&.constant': colorsObjs.cyan1, + '&.inserted': colorsObjs.cyan1, + '&.atrule': colorsObjs.blue1, + '&.keyword': colorsObjs.blue1, + '&.attr-value': colorsObjs.blue1, + '&.punctuation': colorsObjs.gray1, + '&.operator': colorsObjs.gray1, + '&.function': colorsObjs.gray1, + '&.deleted': colorsObjs.red2, + '&.important': { fontWeight: 'bold' }, + '&.bold': { fontWeight: 'bold' }, + '&.italic': { fontStyle: 'italic' }, + '&.class-name': colorsObjs.cyan2, + '&.selector': colorsObjs.red3, + '&.attr-name': colorsObjs.red4, + '&.property': colorsObjs.red4, + '&.regex': colorsObjs.red4, + '&.entity': colorsObjs.red4, + '&.directive.tag .tag': Object.assign({ background: '#ffff00' }, colorsObjs.gray1), + }, + 'language-json .token.boolean': colorsObjs.blue1, + 'language-json .token.number': colorsObjs.blue1, + 'language-json .token.property': colorsObjs.cyan2, + namespace: { opacity: 0.7 }, + }; + }, + esm_create = __webpack_require__(92350); + function _objectWithoutProperties(source, excluded) { + if (null == source) return {}; + var key, + i, + target = (function _objectWithoutPropertiesLoose(source, excluded) { + if (null == source) return {}; + var key, + i, + target = {}, + sourceKeys = Object.keys(source); + for (i = 0; i < sourceKeys.length; i++) + (key = sourceKeys[i]), excluded.indexOf(key) >= 0 || (target[key] = source[key]); + return target; + })(source, excluded); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for (i = 0; i < sourceSymbolKeys.length; i++) + (key = sourceSymbolKeys[i]), + excluded.indexOf(key) >= 0 || + (Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key])); + } + return target; + } + var lightSyntaxColors = { + green1: '#008000', + red1: '#A31515', + red2: '#9a050f', + red3: '#800000', + red4: '#ff0000', + gray1: '#393A34', + cyan1: '#36acaa', + cyan2: '#2B91AF', + blue1: '#0000ff', + blue2: '#00009f', + }, + darkSyntaxColors = { + green1: '#7C7C7C', + red1: '#92C379', + red2: '#9a050f', + red3: '#A8FF60', + red4: '#96CBFE', + gray1: '#EDEDED', + cyan1: '#C6C5FE', + cyan2: '#FFFFB6', + blue1: '#B474DD', + blue2: '#00009f', + }, + createColors = function createColors(vars) { + return { + primary: vars.colorPrimary, + secondary: vars.colorSecondary, + tertiary: esm_base.$_.tertiary, + ancillary: esm_base.$_.ancillary, + orange: esm_base.$_.orange, + gold: esm_base.$_.gold, + green: esm_base.$_.green, + seafoam: esm_base.$_.seafoam, + purple: esm_base.$_.purple, + ultraviolet: esm_base.$_.ultraviolet, + lightest: esm_base.$_.lightest, + lighter: esm_base.$_.lighter, + light: esm_base.$_.light, + mediumlight: esm_base.$_.mediumlight, + medium: esm_base.$_.medium, + mediumdark: esm_base.$_.mediumdark, + dark: esm_base.$_.dark, + darker: esm_base.$_.darker, + darkest: esm_base.$_.darkest, + border: esm_base.$_.border, + positive: esm_base.$_.positive, + negative: esm_base.$_.negative, + warning: esm_base.$_.warning, + critical: esm_base.$_.critical, + defaultText: vars.textColor || esm_base.$_.darkest, + inverseText: vars.textInverseColor || esm_base.$_.lightest, + }; + }, + convert = function convert() { + var inherit = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : esm_create.n[(0, utils.Q$)()], + base = inherit.base, + colorSecondary = (inherit.colorPrimary, inherit.colorSecondary), + appBg = inherit.appBg, + appContentBg = inherit.appContentBg, + appBorderColor = inherit.appBorderColor, + appBorderRadius = inherit.appBorderRadius, + fontBase = inherit.fontBase, + fontCode = inherit.fontCode, + textColor = inherit.textColor, + barTextColor = (inherit.textInverseColor, inherit.barTextColor), + barSelectedColor = inherit.barSelectedColor, + barBg = inherit.barBg, + inputBg = inherit.inputBg, + inputBorder = inherit.inputBorder, + inputTextColor = inherit.inputTextColor, + inputBorderRadius = inherit.inputBorderRadius, + brandTitle = inherit.brandTitle, + brandUrl = inherit.brandUrl, + brandImage = inherit.brandImage, + gridCellSize = inherit.gridCellSize, + rest = _objectWithoutProperties(inherit, [ + 'base', + 'colorPrimary', + 'colorSecondary', + 'appBg', + 'appContentBg', + 'appBorderColor', + 'appBorderRadius', + 'fontBase', + 'fontCode', + 'textColor', + 'textInverseColor', + 'barTextColor', + 'barSelectedColor', + 'barBg', + 'inputBg', + 'inputBorder', + 'inputTextColor', + 'inputBorderRadius', + 'brandTitle', + 'brandUrl', + 'brandImage', + 'gridCellSize', + ]); + return Object.assign({}, rest || {}, { + base, + color: createColors(inherit), + background: { + app: appBg, + bar: barBg, + content: appContentBg, + gridCellSize: gridCellSize || esm_base.Oq.gridCellSize, + hoverable: esm_base.Oq.hoverable, + positive: esm_base.Oq.positive, + negative: esm_base.Oq.negative, + warning: esm_base.Oq.warning, + critical: esm_base.Oq.critical, + }, + typography: { + fonts: { base: fontBase, mono: fontCode }, + weight: esm_base.cp.weight, + size: esm_base.cp.size, + }, + animation, + easing, + input: { border: inputBorder, background: inputBg, color: inputTextColor, borderRadius: inputBorderRadius }, + layoutMargin: 10, + appBorderColor, + appBorderRadius, + barTextColor, + barSelectedColor: barSelectedColor || colorSecondary, + barBg, + brand: { title: brandTitle, url: brandUrl, image: brandImage || (brandTitle ? null : void 0) }, + code: create({ colors: 'light' === base ? lightSyntaxColors : darkSyntaxColors, mono: fontCode }), + addonActionsTheme: Object.assign({}, 'light' === base ? chromeLight : chromeDark, { + BASE_FONT_FAMILY: fontCode, + BASE_FONT_SIZE: esm_base.cp.size.s2 - 1, + BASE_LINE_HEIGHT: '18px', + BASE_BACKGROUND_COLOR: 'transparent', + BASE_COLOR: textColor, + ARROW_COLOR: (0, polished_esm.jb)(0.2, appBorderColor), + ARROW_MARGIN_RIGHT: 4, + ARROW_FONT_SIZE: 8, + TREENODE_FONT_FAMILY: fontCode, + TREENODE_FONT_SIZE: esm_base.cp.size.s2 - 1, + TREENODE_LINE_HEIGHT: '18px', + TREENODE_PADDING_LEFT: 12, + }), + }); + }; + }, + 92350: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { U: () => create, n: () => themes }); + __webpack_require__(43105); + var light = __webpack_require__(18098), + base = __webpack_require__(15867); + const dark = { + base: 'dark', + colorPrimary: '#FF4785', + colorSecondary: '#1EA7FD', + appBg: '#2f2f2f', + appContentBg: base.$_.darkest, + appBorderColor: 'rgba(255,255,255,.1)', + appBorderRadius: 4, + fontBase: base.cp.fonts.base, + fontCode: base.cp.fonts.mono, + textColor: base.$_.lightest, + textInverseColor: base.$_.darkest, + textMutedColor: base.$_.mediumdark, + barTextColor: '#999999', + barSelectedColor: base.$_.secondary, + barBg: base.$_.darkest, + inputBg: '#3f3f3f', + inputBorder: 'rgba(0,0,0,.3)', + inputTextColor: base.$_.lightest, + inputBorderRadius: 4, + }; + var utils = __webpack_require__(30457), + themes = { light: light.Z, dark, normal: light.Z }, + preferredColorScheme = (0, utils.Q$)(), + create = function create() { + var vars = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { base: preferredColorScheme }, + rest = arguments.length > 1 ? arguments[1] : void 0, + inherit = Object.assign({}, themes[preferredColorScheme], themes[vars.base] || {}, vars, { + base: themes[vars.base] ? vars.base : preferredColorScheme, + }); + return Object.assign({}, rest, inherit, { + barSelectedColor: vars.barSelectedColor || inherit.colorSecondary, + }); + }; + }, + 20247: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { z: () => ensure }); + __webpack_require__(32501), __webpack_require__(22144), __webpack_require__(34769); + var _templateObject, + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(87537), + deep_object_diff__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26173), + ts_dedent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(51893), + _themes_light__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18098), + _convert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43624); + var ensure = function ensure(input) { + if (!input) return (0, _convert__WEBPACK_IMPORTED_MODULE_4__.O)(_themes_light__WEBPACK_IMPORTED_MODULE_5__.Z); + var missing = (0, deep_object_diff__WEBPACK_IMPORTED_MODULE_3__.deletedDiff)( + _themes_light__WEBPACK_IMPORTED_MODULE_5__.Z, + input, + ); + return ( + Object.keys(missing).length && + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_6__.kg.warn( + (0, ts_dedent__WEBPACK_IMPORTED_MODULE_7__.C)( + _templateObject || + (_templateObject = (function _taggedTemplateLiteral(strings, raw) { + return ( + raw || (raw = strings.slice(0)), + Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })) + ); + })([ + '\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n ', + ])), + ), + missing, + ), + (0, _convert__WEBPACK_IMPORTED_MODULE_4__.O)(input) + ); + }; + }, + 42579: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { l: () => createReset, p: () => createGlobal }); + __webpack_require__(35744), __webpack_require__(43105); + var memoizerific__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49224), + memoizerific__WEBPACK_IMPORTED_MODULE_2___default = __webpack_require__.n( + memoizerific__WEBPACK_IMPORTED_MODULE_2__, + ), + createReset = memoizerific__WEBPACK_IMPORTED_MODULE_2___default()(1)(function (_ref) { + var typography = _ref.typography; + return { + body: { + fontFamily: typography.fonts.base, + fontSize: typography.size.s3, + margin: 0, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + WebkitOverflowScrolling: 'touch', + }, + '*': { boxSizing: 'border-box' }, + 'h1, h2, h3, h4, h5, h6': { fontWeight: typography.weight.regular, margin: 0, padding: 0 }, + 'button, input, textarea, select': { fontFamily: 'inherit', fontSize: 'inherit', boxSizing: 'border-box' }, + sub: { fontSize: '0.8em', bottom: '-0.2em' }, + sup: { fontSize: '0.8em', top: '-0.2em' }, + 'b, strong': { fontWeight: typography.weight.bold }, + hr: { border: 'none', borderTop: '1px solid silver', clear: 'both', marginBottom: '1.25rem' }, + code: { + fontFamily: typography.fonts.mono, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + display: 'inline-block', + paddingLeft: 2, + paddingRight: 2, + verticalAlign: 'baseline', + color: 'inherit', + }, + pre: { + fontFamily: typography.fonts.mono, + WebkitFontSmoothing: 'antialiased', + MozOsxFontSmoothing: 'grayscale', + lineHeight: '18px', + padding: '11px 1rem', + whiteSpace: 'pre-wrap', + color: 'inherit', + borderRadius: 3, + margin: '1rem 0', + }, + }; + }), + createGlobal = memoizerific__WEBPACK_IMPORTED_MODULE_2___default()(1)(function (_ref2) { + var color = _ref2.color, + background = _ref2.background, + typography = _ref2.typography, + resetStyles = createReset({ typography }); + return Object.assign({}, resetStyles, { + body: Object.assign({}, resetStyles.body, { + color: color.defaultText, + background: background.app, + overflow: 'hidden', + }), + hr: Object.assign({}, resetStyles.hr, { borderTop: '1px solid '.concat(color.border) }), + }); + }); + }, + 77439: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + styled: () => styled, + background: () => _base__WEBPACK_IMPORTED_MODULE_1__.Oq, + color: () => _base__WEBPACK_IMPORTED_MODULE_1__.$_, + typography: () => _base__WEBPACK_IMPORTED_MODULE_1__.cp, + CacheProvider: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.nq, + ClassNames: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.ms, + Global: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.xB, + ThemeContext: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.Ni, + createElement: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.az, + css: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.iv, + jsx: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.tZ, + keyframes: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.F4, + withEmotionCache: () => _emotion_core__WEBPACK_IMPORTED_MODULE_3__.Xn, + ThemeProvider: () => emotion_theming__WEBPACK_IMPORTED_MODULE_4__.f6, + useTheme: () => emotion_theming__WEBPACK_IMPORTED_MODULE_4__.Fg, + withTheme: () => emotion_theming__WEBPACK_IMPORTED_MODULE_4__.Zz, + isPropValid: () => _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__.Z, + createGlobal: () => _global__WEBPACK_IMPORTED_MODULE_6__.p, + createReset: () => _global__WEBPACK_IMPORTED_MODULE_6__.l, + create: () => _create__WEBPACK_IMPORTED_MODULE_7__.U, + themes: () => _create__WEBPACK_IMPORTED_MODULE_7__.n, + convert: () => _convert__WEBPACK_IMPORTED_MODULE_8__.O, + ensure: () => _ensure__WEBPACK_IMPORTED_MODULE_9__.z, + lighten: () => _utils__WEBPACK_IMPORTED_MODULE_10__.tG, + darken: () => _utils__WEBPACK_IMPORTED_MODULE_10__.r5, + ignoreSsrWarning: () => ignoreSsrWarning, + }); + var _emotion_styled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65334), + _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15867), + _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28335), + __WEBPACK_REEXPORT_OBJECT__ = {}; + for (const __WEBPACK_IMPORT_KEY__ in _types__WEBPACK_IMPORTED_MODULE_2__) + [ + 'default', + 'styled', + 'isPropValid', + 'createGlobal', + 'createReset', + 'lighten', + 'darken', + 'ignoreSsrWarning', + 'background', + 'color', + 'typography', + ].indexOf(__WEBPACK_IMPORT_KEY__) < 0 && + (__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => + _types__WEBPACK_IMPORTED_MODULE_2__[__WEBPACK_IMPORT_KEY__]); + __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); + var _emotion_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(47134), + emotion_theming__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43352), + _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(96607), + _global__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(42579), + _create__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92350), + _convert__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(43624), + _ensure__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20247), + _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(30457), + styled = _emotion_styled__WEBPACK_IMPORTED_MODULE_0__.Z, + ignoreSsrWarning = + '/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */'; + }, + 18098: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + var _base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15867); + const __WEBPACK_DEFAULT_EXPORT__ = { + base: 'light', + colorPrimary: '#FF4785', + colorSecondary: '#1EA7FD', + appBg: _base__WEBPACK_IMPORTED_MODULE_0__.Oq.app, + appContentBg: _base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest, + appBorderColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.border, + appBorderRadius: 4, + fontBase: _base__WEBPACK_IMPORTED_MODULE_0__.cp.fonts.base, + fontCode: _base__WEBPACK_IMPORTED_MODULE_0__.cp.fonts.mono, + textColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.darkest, + textInverseColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest, + textMutedColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.dark, + barTextColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.mediumdark, + barSelectedColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.secondary, + barBg: _base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest, + inputBg: _base__WEBPACK_IMPORTED_MODULE_0__.$_.lightest, + inputBorder: _base__WEBPACK_IMPORTED_MODULE_0__.$_.border, + inputTextColor: _base__WEBPACK_IMPORTED_MODULE_0__.$_.darkest, + inputBorderRadius: 4, + }; + }, + 28335: () => {}, + 30457: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + TE: () => mkColor, + tG: () => lightenColor, + r5: () => darkenColor, + Q$: () => getPreferredColorScheme, + }); + __webpack_require__(18178), + __webpack_require__(34115), + __webpack_require__(634), + __webpack_require__(58188), + __webpack_require__(20796), + __webpack_require__(28673), + __webpack_require__(15735), + __webpack_require__(6886); + var polished__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1039), + global__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(35048), + global__WEBPACK_IMPORTED_MODULE_8___default = __webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_8__), + _storybook_client_logger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(87537); + function _typeof(obj) { + return ( + (_typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function _typeof(obj) { + return typeof obj; + } + : function _typeof(obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }), + _typeof(obj) + ); + } + var globalWindow = global__WEBPACK_IMPORTED_MODULE_8___default().window, + mkColor = function mkColor(color) { + return { color }; + }, + colorFactory = function colorFactory(type) { + return function (color) { + if ( + !(function isColorString(color) { + return ( + 'string' == typeof color || + (_storybook_client_logger__WEBPACK_IMPORTED_MODULE_9__.kg.warn( + 'Color passed to theme object should be a string. Instead ' + + ''.concat(color, '(').concat(_typeof(color), ') was passed.'), + ), + !1) + ); + })(color) + ) + return color; + if ( + !(function isValidColorForPolished(color) { + return !/(gradient|var|calc)/.test(color); + })(color) + ) + return color; + try { + return (function applyPolished(type, color) { + return 'darken' === type + ? (0, polished__WEBPACK_IMPORTED_MODULE_10__.m4)( + ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_10__._j)(1, color)), + 0.95, + ) + : 'lighten' === type + ? (0, polished__WEBPACK_IMPORTED_MODULE_10__.m4)( + ''.concat((0, polished__WEBPACK_IMPORTED_MODULE_10__.$n)(1, color)), + 0.95, + ) + : color; + })(type, color); + } catch (error) { + return color; + } + }; + }, + lightenColor = colorFactory('lighten'), + darkenColor = colorFactory('darken'), + getPreferredColorScheme = function getPreferredColorScheme() { + return globalWindow && + globalWindow.matchMedia && + globalWindow.matchMedia('(prefers-color-scheme: dark)').matches + ? 'dark' + : 'light'; + }; + }, + 43968: (__unused_webpack_module, exports) => { + 'use strict'; + (function () { + var REACT_ELEMENT_TYPE = 60103, + REACT_PORTAL_TYPE = 60106, + REACT_FRAGMENT_TYPE = 60107, + REACT_STRICT_MODE_TYPE = 60108, + REACT_PROFILER_TYPE = 60114, + REACT_PROVIDER_TYPE = 60109, + REACT_CONTEXT_TYPE = 60110, + REACT_FORWARD_REF_TYPE = 60112, + REACT_SUSPENSE_TYPE = 60113, + REACT_SUSPENSE_LIST_TYPE = 60120, + REACT_MEMO_TYPE = 60115, + REACT_LAZY_TYPE = 60116, + REACT_BLOCK_TYPE = 60121, + REACT_SERVER_BLOCK_TYPE = 60122, + REACT_FUNDAMENTAL_TYPE = 60117, + REACT_DEBUG_TRACING_MODE_TYPE = 60129, + REACT_LEGACY_HIDDEN_TYPE = 60131; + if ('function' == typeof Symbol && Symbol.for) { + var symbolFor = Symbol.for; + (REACT_ELEMENT_TYPE = symbolFor('react.element')), + (REACT_PORTAL_TYPE = symbolFor('react.portal')), + (REACT_FRAGMENT_TYPE = symbolFor('react.fragment')), + (REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode')), + (REACT_PROFILER_TYPE = symbolFor('react.profiler')), + (REACT_PROVIDER_TYPE = symbolFor('react.provider')), + (REACT_CONTEXT_TYPE = symbolFor('react.context')), + (REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref')), + (REACT_SUSPENSE_TYPE = symbolFor('react.suspense')), + (REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list')), + (REACT_MEMO_TYPE = symbolFor('react.memo')), + (REACT_LAZY_TYPE = symbolFor('react.lazy')), + (REACT_BLOCK_TYPE = symbolFor('react.block')), + (REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block')), + (REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental')), + symbolFor('react.scope'), + symbolFor('react.opaque.id'), + (REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode')), + symbolFor('react.offscreen'), + (REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden')); + } + function typeOf(object) { + if ('object' == typeof object && null !== object) { + var $$typeof = object.$$typeof; + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + switch (type) { + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + return type; + default: + var $$typeofType = type && type.$$typeof; + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + default: + return $$typeof; + } + } + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + } + var hasWarnedAboutDeprecatedIsAsyncMode = !1, + hasWarnedAboutDeprecatedIsConcurrentMode = !1; + REACT_CONTEXT_TYPE, + REACT_PROVIDER_TYPE, + REACT_ELEMENT_TYPE, + REACT_FORWARD_REF_TYPE, + REACT_FRAGMENT_TYPE, + REACT_LAZY_TYPE, + REACT_MEMO_TYPE, + REACT_PORTAL_TYPE, + REACT_PROFILER_TYPE, + REACT_STRICT_MODE_TYPE, + REACT_SUSPENSE_TYPE, + function isAsyncMode(object) { + return ( + hasWarnedAboutDeprecatedIsAsyncMode || + ((hasWarnedAboutDeprecatedIsAsyncMode = !0), + console.warn('The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.')), + !1 + ); + }, + function isConcurrentMode(object) { + return ( + hasWarnedAboutDeprecatedIsConcurrentMode || + ((hasWarnedAboutDeprecatedIsConcurrentMode = !0), + console.warn( + 'The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.', + )), + !1 + ); + }, + function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; + }, + function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; + }, + function isElement(object) { + return 'object' == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; + }, + (exports.isForwardRef = function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; + }), + function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; + }, + function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; + }, + function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; + }, + function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; + }, + function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; + }, + function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; + }, + function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; + }, + function isValidElementType(type) { + return ( + 'string' == typeof type || + 'function' == typeof type || + type === REACT_FRAGMENT_TYPE || + type === REACT_PROFILER_TYPE || + type === REACT_DEBUG_TRACING_MODE_TYPE || + type === REACT_STRICT_MODE_TYPE || + type === REACT_SUSPENSE_TYPE || + type === REACT_SUSPENSE_LIST_TYPE || + type === REACT_LEGACY_HIDDEN_TYPE || + ('object' == typeof type && + null !== type && + (type.$$typeof === REACT_LAZY_TYPE || + type.$$typeof === REACT_MEMO_TYPE || + type.$$typeof === REACT_PROVIDER_TYPE || + type.$$typeof === REACT_CONTEXT_TYPE || + type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_FUNDAMENTAL_TYPE || + type.$$typeof === REACT_BLOCK_TYPE || + type[0] === REACT_SERVER_BLOCK_TYPE)) + ); + }, + typeOf; + })(); + }, + 29547: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(43968); + }, + 59399: function (__unused_webpack_module, exports, __webpack_require__) { + 'use strict'; + var __assign = + (this && this.__assign) || + function () { + return ( + (__assign = + Object.assign || + function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) + for (var p in (s = arguments[i])) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]); + return t; + }), + __assign.apply(this, arguments) + ); + }, + __rest = + (this && this.__rest) || + function (s, e) { + var t = {}; + for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]); + if (null != s && 'function' == typeof Object.getOwnPropertySymbols) { + var i = 0; + for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) + e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]); + } + return t; + }, + __read = + (this && this.__read) || + function (o, n) { + var m = 'function' == typeof Symbol && o[Symbol.iterator]; + if (!m) return o; + var r, + e, + i = m.call(o), + ar = []; + try { + for (; (void 0 === n || n-- > 0) && !(r = i.next()).done; ) ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + r && !r.done && (m = i.return) && m.call(i); + } finally { + if (e) throw e.error; + } + } + return ar; + }; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var react_1 = __webpack_require__(2784), + xstate_1 = __webpack_require__(58472), + use_subscription_1 = __webpack_require__(36718), + useConstant_1 = __webpack_require__(33551); + (exports.useMachine = function useMachine(machine, options) { + void 0 === options && (options = {}); + var initialMachine = __read(react_1.useState(machine), 1)[0]; + machine !== initialMachine && + console.warn( + 'Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.', + ); + var context = options.context, + guards = options.guards, + actions = options.actions, + activities = options.activities, + services = options.services, + delays = options.delays, + rehydratedState = options.state, + interpreterOptions = __rest(options, [ + 'context', + 'guards', + 'actions', + 'activities', + 'services', + 'delays', + 'state', + ]), + service = useConstant_1.default(function () { + var machineConfig = { context, guards, actions, activities, services, delays }, + createdMachine = machine.withConfig(machineConfig, __assign(__assign({}, machine.context), context)); + return xstate_1 + .interpret(createdMachine, interpreterOptions) + .start(rehydratedState ? xstate_1.State.create(rehydratedState) : void 0); + }), + _b = __read(react_1.useState(service.state), 2), + state = _b[0], + setState = _b[1]; + return ( + react_1.useEffect(function () { + return ( + service.onTransition(function (currentState) { + currentState.changed && setState(currentState); + }), + setState(service.state), + function () { + service.stop(); + } + ); + }, []), + react_1.useEffect( + function () { + Object.assign(service.machine.options.actions, actions); + }, + [actions], + ), + react_1.useEffect( + function () { + Object.assign(service.machine.options.services, services); + }, + [services], + ), + [state, service.send, service] + ); + }), + (exports.useService = function useService(service) { + var subscription = react_1.useMemo( + function () { + return { + getCurrentValue: function () { + return service.state || service.initialState; + }, + subscribe: function (callback) { + var unsubscribe = service.subscribe(function (state) { + !1 !== state.changed && callback(); + }).unsubscribe; + return unsubscribe; + }, + }; + }, + [service], + ); + return [use_subscription_1.useSubscription(subscription), service.send, service]; + }); + }, + 33551: (__unused_webpack_module, exports, __webpack_require__) => { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var React = __webpack_require__(2784); + exports.default = function useConstant(fn) { + var ref = React.useRef(); + return ref.current || (ref.current = { v: fn() }), ref.current.v; + }; + }, + 83206: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(66053); + }, + 47814: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(6473), __webpack_require__(24619)(), __webpack_require__(85044); + }, + 85044: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(30026)(), __webpack_require__(48924); + }, + 48924: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(88607)(), + __webpack_require__(30660)(), + __webpack_require__(88845)(), + __webpack_require__(25241)(), + __webpack_require__(11325)(), + __webpack_require__(93295); + }, + 93295: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + 'function' == typeof Promise && __webpack_require__(45481), __webpack_require__(89881); + }, + 89881: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(46695), + __webpack_require__(71111), + __webpack_require__(2931), + __webpack_require__(79282), + __webpack_require__(60228); + }, + 60228: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(49097), __webpack_require__(65893), __webpack_require__(93821); + }, + 66053: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(82704), __webpack_require__(91535), __webpack_require__(47814); + }, + 58312: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToIntegerOrInfinity = __webpack_require__(35174), + ToLength = __webpack_require__(60012), + ToObject = __webpack_require__(82151), + SameValueZero = __webpack_require__(48982), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + isString = __webpack_require__(26302), + $charAt = callBound('String.prototype.charAt'), + $indexOf = GetIntrinsic('%Array.prototype.indexOf%'), + $max = GetIntrinsic('%Math.max%'); + module.exports = function includes(searchElement) { + var fromIndex = arguments.length > 1 ? ToIntegerOrInfinity(arguments[1]) : 0; + if ($indexOf && !$isNaN(searchElement) && $isFinite(fromIndex) && void 0 !== searchElement) + return $indexOf.apply(this, arguments) > -1; + var O = ToObject(this), + length = ToLength(O.length); + if (0 === length) return !1; + for (var k = fromIndex >= 0 ? fromIndex : $max(0, length + fromIndex); k < length; ) { + if (SameValueZero(searchElement, isString(O) ? $charAt(O, k) : O[k])) return !0; + k += 1; + } + return !1; + }; + }, + 71402: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(58312); + module.exports = function getPolyfill() { + return Array.prototype.includes || implementation; + }; + }, + 30026: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var define = __webpack_require__(14926), + getPolyfill = __webpack_require__(71402); + module.exports = function shimArrayPrototypeIncludes() { + var polyfill = getPolyfill(); + return ( + define(Array.prototype, { includes: polyfill }, { + includes: function () { + return Array.prototype.includes !== polyfill; + }, + }), + polyfill + ); + }; + }, + 46695: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(36587)(); + }, + 42838: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ArraySpeciesCreate = __webpack_require__(80640), + FlattenIntoArray = __webpack_require__(1153), + Get = __webpack_require__(74487), + ToInteger = __webpack_require__(97718), + ToLength = __webpack_require__(10763), + ToObject = __webpack_require__(44208); + module.exports = function flat() { + var O = ToObject(this), + sourceLen = ToLength(Get(O, 'length')), + depthNum = 1; + arguments.length > 0 && void 0 !== arguments[0] && (depthNum = ToInteger(arguments[0])); + var A = ArraySpeciesCreate(O, 0); + return FlattenIntoArray(A, O, sourceLen, 0, depthNum), A; + }; + }, + 71675: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(42838); + module.exports = function getPolyfill() { + return Array.prototype.flat || implementation; + }; + }, + 36587: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var define = __webpack_require__(14926), + getPolyfill = __webpack_require__(71675); + module.exports = function shimFlat() { + var polyfill = getPolyfill(); + return ( + define(Array.prototype, { flat: polyfill }, { + flat: function () { + return Array.prototype.flat !== polyfill; + }, + }), + polyfill + ); + }; + }, + 71111: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(73930)(); + }, + 64749: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ArraySpeciesCreate = __webpack_require__(4143), + FlattenIntoArray = __webpack_require__(66790), + Get = __webpack_require__(8408), + IsCallable = __webpack_require__(7965), + ToLength = __webpack_require__(60012), + ToObject = __webpack_require__(82151); + module.exports = function flatMap(mapperFunction) { + var T, + O = ToObject(this), + sourceLen = ToLength(Get(O, 'length')); + if (!IsCallable(mapperFunction)) throw new TypeError('mapperFunction must be a function'); + arguments.length > 1 && (T = arguments[1]); + var A = ArraySpeciesCreate(O, 0); + return FlattenIntoArray(A, O, sourceLen, 0, 1, mapperFunction, T), A; + }; + }, + 2770: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(64749); + module.exports = function getPolyfill() { + return Array.prototype.flatMap || implementation; + }; + }, + 73930: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var define = __webpack_require__(14926), + getPolyfill = __webpack_require__(2770); + module.exports = function shimFlatMap() { + var polyfill = getPolyfill(); + return ( + define(Array.prototype, { flatMap: polyfill }, { + flatMap: function () { + return Array.prototype.flatMap !== polyfill; + }, + }), + polyfill + ); + }; + }, + 59083: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var utils = __webpack_require__(38594); + function Batch() { + var batch = {}, + size = 0, + topLevel = 0, + bottomLevel = 0; + return { + add: function add(level, fn) { + fn || ((fn = level), (level = 0)), + level > topLevel ? (topLevel = level) : level < bottomLevel && (bottomLevel = level), + batch[level] || (batch[level] = []), + batch[level].push(fn), + size++; + }, + process: function process() { + for (var level = bottomLevel; level <= topLevel; level++) + for (var fns = batch[level], i = 0; i < fns.length; i++) { + (0, fns[i])(); + } + }, + size: function getSize() { + return size; + }, + }; + } + module.exports = function batchProcessorMaker(options) { + var reporter = (options = options || {}).reporter, + asyncProcess = utils.getOption(options, 'async', !0), + autoProcess = utils.getOption(options, 'auto', !0); + autoProcess && + !asyncProcess && + (reporter && + reporter.warn('Invalid options combination. auto=true and async=false is invalid. Setting async=true.'), + (asyncProcess = !0)); + var asyncFrameHandler, + batch = Batch(), + isProcessing = !1; + function processBatch() { + for (isProcessing = !0; batch.size(); ) { + var processingBatch = batch; + (batch = Batch()), processingBatch.process(); + } + isProcessing = !1; + } + function processBatchAsync() { + asyncFrameHandler = (function requestFrame(callback) { + return (fn = callback), setTimeout(fn, 0); + var fn; + })(processBatch); + } + return { + add: function addFunction(level, fn) { + !isProcessing && autoProcess && asyncProcess && 0 === batch.size() && processBatchAsync(), + batch.add(level, fn); + }, + force: function forceProcessBatch(localAsyncProcess) { + isProcessing || + (void 0 === localAsyncProcess && (localAsyncProcess = asyncProcess), + asyncFrameHandler && + (!(function cancelFrame(listener) { + return clearTimeout(listener); + })(asyncFrameHandler), + (asyncFrameHandler = null)), + localAsyncProcess ? processBatchAsync() : processBatch()); + }, + }; + }; + }, + 38594: module => { + 'use strict'; + (module.exports = {}).getOption = function getOption(options, name, defaultValue) { + var value = options[name]; + if (null == value && void 0 !== defaultValue) return defaultValue; + return value; + }; + }, + 62680: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(76672), + callBind = __webpack_require__(89429), + $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); + module.exports = function callBoundIntrinsic(name, allowMissing) { + var intrinsic = GetIntrinsic(name, !!allowMissing); + return 'function' == typeof intrinsic && $indexOf(name, '.prototype.') > -1 ? callBind(intrinsic) : intrinsic; + }; + }, + 89429: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var bind = __webpack_require__(4090), + GetIntrinsic = __webpack_require__(76672), + $apply = GetIntrinsic('%Function.prototype.apply%'), + $call = GetIntrinsic('%Function.prototype.call%'), + $reflectApply = GetIntrinsic('%Reflect.apply%', !0) || bind.call($call, $apply), + $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', !0), + $defineProperty = GetIntrinsic('%Object.defineProperty%', !0), + $max = GetIntrinsic('%Math.max%'); + if ($defineProperty) + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + $defineProperty = null; + } + module.exports = function callBind(originalFunction) { + var func = $reflectApply(bind, $call, arguments); + if ($gOPD && $defineProperty) { + var desc = $gOPD(func, 'length'); + desc.configurable && + $defineProperty(func, 'length', { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }); + } + return func; + }; + var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); + }; + $defineProperty + ? $defineProperty(module.exports, 'apply', { value: applyBind }) + : (module.exports.apply = applyBind); + }, + 76672: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $SyntaxError = SyntaxError, + $Function = Function, + $TypeError = TypeError, + getEvalledConstructor = function (expressionSyntax) { + try { + return Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} + }, + $gOPD = Object.getOwnPropertyDescriptor; + if ($gOPD) + try { + $gOPD({}, ''); + } catch (e) { + $gOPD = null; + } + var throwTypeError = function () { + throw new $TypeError(); + }, + ThrowTypeError = $gOPD + ? (function () { + try { + return throwTypeError; + } catch (calleeThrows) { + try { + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + })() + : throwTypeError, + hasSymbols = __webpack_require__(32636)(), + getProto = + Object.getPrototypeOf || + function (x) { + return x.__proto__; + }, + asyncGenFunction = getEvalledConstructor('async function* () {}'), + asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined, + asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined, + TypedArray = 'undefined' == typeof Uint8Array ? undefined : getProto(Uint8Array), + INTRINSICS = { + '%AggregateError%': 'undefined' == typeof AggregateError ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': 'undefined' == typeof ArrayBuffer ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': getEvalledConstructor('async function () {}'), + '%AsyncGenerator%': asyncGenFunctionPrototype, + '%AsyncGeneratorFunction%': asyncGenFunction, + '%AsyncIteratorPrototype%': asyncGenPrototype ? getProto(asyncGenPrototype) : undefined, + '%Atomics%': 'undefined' == typeof Atomics ? undefined : Atomics, + '%BigInt%': 'undefined' == typeof BigInt ? undefined : BigInt, + '%Boolean%': Boolean, + '%DataView%': 'undefined' == typeof DataView ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': Error, + '%eval%': eval, + '%EvalError%': EvalError, + '%Float32Array%': 'undefined' == typeof Float32Array ? undefined : Float32Array, + '%Float64Array%': 'undefined' == typeof Float64Array ? undefined : Float64Array, + '%FinalizationRegistry%': 'undefined' == typeof FinalizationRegistry ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': getEvalledConstructor('function* () {}'), + '%Int8Array%': 'undefined' == typeof Int8Array ? undefined : Int8Array, + '%Int16Array%': 'undefined' == typeof Int16Array ? undefined : Int16Array, + '%Int32Array%': 'undefined' == typeof Int32Array ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': 'object' == typeof JSON ? JSON : undefined, + '%Map%': 'undefined' == typeof Map ? undefined : Map, + '%MapIteratorPrototype%': + 'undefined' != typeof Map && hasSymbols ? getProto(new Map()[Symbol.iterator]()) : undefined, + '%Math%': Math, + '%Number%': Number, + '%Object%': Object, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': 'undefined' == typeof Promise ? undefined : Promise, + '%Proxy%': 'undefined' == typeof Proxy ? undefined : Proxy, + '%RangeError%': RangeError, + '%ReferenceError%': ReferenceError, + '%Reflect%': 'undefined' == typeof Reflect ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': 'undefined' == typeof Set ? undefined : Set, + '%SetIteratorPrototype%': + 'undefined' != typeof Set && hasSymbols ? getProto(new Set()[Symbol.iterator]()) : undefined, + '%SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': 'undefined' == typeof Uint8Array ? undefined : Uint8Array, + '%Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray ? undefined : Uint8ClampedArray, + '%Uint16Array%': 'undefined' == typeof Uint16Array ? undefined : Uint16Array, + '%Uint32Array%': 'undefined' == typeof Uint32Array ? undefined : Uint32Array, + '%URIError%': URIError, + '%WeakMap%': 'undefined' == typeof WeakMap ? undefined : WeakMap, + '%WeakRef%': 'undefined' == typeof WeakRef ? undefined : WeakRef, + '%WeakSet%': 'undefined' == typeof WeakSet ? undefined : WeakSet, + }, + LEGACY_ALIASES = { + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'], + }, + bind = __webpack_require__(4090), + hasOwn = __webpack_require__(23198), + $concat = bind.call(Function.call, Array.prototype.concat), + $spliceApply = bind.call(Function.apply, Array.prototype.splice), + $replace = bind.call(Function.call, String.prototype.replace), + $strSlice = bind.call(Function.call, String.prototype.slice), + rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, + reEscapeChar = /\\(\\)?/g, + stringToPath = function stringToPath(string) { + var first = $strSlice(string, 0, 1), + last = $strSlice(string, -1); + if ('%' === first && '%' !== last) throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); + if ('%' === last && '%' !== first) throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); + var result = []; + return ( + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }), + result + ); + }, + getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var alias, + intrinsicName = name; + if ( + (hasOwn(LEGACY_ALIASES, intrinsicName) && + (intrinsicName = '%' + (alias = LEGACY_ALIASES[intrinsicName])[0] + '%'), + hasOwn(INTRINSICS, intrinsicName)) + ) { + var value = INTRINSICS[intrinsicName]; + if (void 0 === value && !allowMissing) + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + return { alias, name: intrinsicName, value }; + } + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); + }; + module.exports = function GetIntrinsic(name, allowMissing) { + if ('string' != typeof name || 0 === name.length) + throw new $TypeError('intrinsic name must be a non-empty string'); + if (arguments.length > 1 && 'boolean' != typeof allowMissing) + throw new $TypeError('"allowMissing" argument must be a boolean'); + var parts = stringToPath(name), + intrinsicBaseName = parts.length > 0 ? parts[0] : '', + intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing), + intrinsicRealName = intrinsic.name, + value = intrinsic.value, + skipFurtherCaching = !1, + alias = intrinsic.alias; + alias && ((intrinsicBaseName = alias[0]), $spliceApply(parts, $concat([0, 1], alias))); + for (var i = 1, isOwn = !0; i < parts.length; i += 1) { + var part = parts[i], + first = $strSlice(part, 0, 1), + last = $strSlice(part, -1); + if ( + ('"' === first || "'" === first || '`' === first || '"' === last || "'" === last || '`' === last) && + first !== last + ) + throw new $SyntaxError('property names with quotes must have matching quotes'); + if ( + (('constructor' !== part && isOwn) || (skipFurtherCaching = !0), + hasOwn(INTRINSICS, (intrinsicRealName = '%' + (intrinsicBaseName += '.' + part) + '%'))) + ) + value = INTRINSICS[intrinsicRealName]; + else if (null != value) { + if (!(part in value)) { + if (!allowMissing) + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + return; + } + if ($gOPD && i + 1 >= parts.length) { + var desc = $gOPD(value, part); + value = (isOwn = !!desc) && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[part]; + } else (isOwn = hasOwn(value, part)), (value = value[part]); + isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value); + } + } + return value; + }; + }, + 72779: (module, exports) => { + var __WEBPACK_AMD_DEFINE_RESULT__; + !(function () { + 'use strict'; + var hasOwn = {}.hasOwnProperty; + function classNames() { + for (var classes = [], i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (arg) { + var argType = typeof arg; + if ('string' === argType || 'number' === argType) classes.push(arg); + else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + inner && classes.push(inner); + } else if ('object' === argType) + for (var key in arg) hasOwn.call(arg, key) && arg[key] && classes.push(key); + } + } + return classes.join(' '); + } + module.exports + ? ((classNames.default = classNames), (module.exports = classNames)) + : void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = function () { + return classNames; + }.apply(exports, [])) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + })(); + }, + 50381: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var deselectCurrent = __webpack_require__(91706), + clipboardToIE11Formatting = { 'text/plain': 'Text', 'text/html': 'Url', default: 'Text' }; + module.exports = function copy(text, options) { + var debug, + message, + reselectPrevious, + range, + selection, + mark, + success = !1; + options || (options = {}), (debug = options.debug || !1); + try { + if ( + ((reselectPrevious = deselectCurrent()), + (range = document.createRange()), + (selection = document.getSelection()), + ((mark = document.createElement('span')).textContent = text), + (mark.style.all = 'unset'), + (mark.style.position = 'fixed'), + (mark.style.top = 0), + (mark.style.clip = 'rect(0, 0, 0, 0)'), + (mark.style.whiteSpace = 'pre'), + (mark.style.webkitUserSelect = 'text'), + (mark.style.MozUserSelect = 'text'), + (mark.style.msUserSelect = 'text'), + (mark.style.userSelect = 'text'), + mark.addEventListener('copy', function (e) { + if ((e.stopPropagation(), options.format)) + if ((e.preventDefault(), void 0 === e.clipboardData)) { + debug && console.warn('unable to use e.clipboardData'), + debug && console.warn('trying IE specific stuff'), + window.clipboardData.clearData(); + var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting.default; + window.clipboardData.setData(format, text); + } else e.clipboardData.clearData(), e.clipboardData.setData(options.format, text); + options.onCopy && (e.preventDefault(), options.onCopy(e.clipboardData)); + }), + document.body.appendChild(mark), + range.selectNodeContents(mark), + selection.addRange(range), + !document.execCommand('copy')) + ) + throw new Error('copy command was unsuccessful'); + success = !0; + } catch (err) { + debug && console.error('unable to copy using execCommand: ', err), + debug && console.warn('trying IE specific stuff'); + try { + window.clipboardData.setData(options.format || 'text', text), + options.onCopy && options.onCopy(window.clipboardData), + (success = !0); + } catch (err) { + debug && console.error('unable to copy using clipboardData: ', err), + debug && console.error('falling back to prompt'), + (message = (function format(message) { + var copyKey = (/mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl') + '+C'; + return message.replace(/#{\s*key\s*}/g, copyKey); + })('message' in options ? options.message : 'Copy to clipboard: #{key}, Enter')), + window.prompt(message, text); + } + } finally { + selection && + ('function' == typeof selection.removeRange ? selection.removeRange(range) : selection.removeAllRanges()), + mark && document.body.removeChild(mark), + reselectPrevious(); + } + return success; + }; + }, + 53407: (module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(18178), + __webpack_require__(58188), + __webpack_require__(34115), + __webpack_require__(96882), + __webpack_require__(634), + __webpack_require__(68858), + __webpack_require__(72220), + __webpack_require__(20796), + __webpack_require__(64844), + __webpack_require__(85960), + __webpack_require__(40225), + __webpack_require__(71686), + __webpack_require__(75605), + __webpack_require__(68223), + __webpack_require__(9575), + __webpack_require__(38859), + __webpack_require__(96100), + __webpack_require__(17525), + __webpack_require__(18275), + __webpack_require__(92215); + var path = __webpack_require__(49276); + module.exports = path.Symbol; + }, + 57406: (module, __unused_webpack_exports, __webpack_require__) => { + var parent = __webpack_require__(53407); + __webpack_require__(28982), + __webpack_require__(89995), + __webpack_require__(95033), + __webpack_require__(98607), + __webpack_require__(6158), + __webpack_require__(63843), + __webpack_require__(57551), + (module.exports = parent); + }, + 93819: module => { + module.exports = function (it) { + if ('function' != typeof it) throw TypeError(String(it) + ' is not a function'); + return it; + }; + }, + 88505: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052); + module.exports = function (it) { + if (!isObject(it) && null !== it) throw TypeError("Can't set " + String(it) + ' as a prototype'); + return it; + }; + }, + 9736: (module, __unused_webpack_exports, __webpack_require__) => { + var wellKnownSymbol = __webpack_require__(70095), + create = __webpack_require__(22391), + definePropertyModule = __webpack_require__(31787), + UNSCOPABLES = wellKnownSymbol('unscopables'), + ArrayPrototype = Array.prototype; + null == ArrayPrototype[UNSCOPABLES] && + definePropertyModule.f(ArrayPrototype, UNSCOPABLES, { configurable: !0, value: create(null) }), + (module.exports = function (key) { + ArrayPrototype[UNSCOPABLES][key] = !0; + }); + }, + 36637: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var charAt = __webpack_require__(30966).charAt; + module.exports = function (S, index, unicode) { + return index + (unicode ? charAt(S, index).length : 1); + }; + }, + 57728: module => { + module.exports = function (it, Constructor, name) { + if (!(it instanceof Constructor)) throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation'); + return it; + }; + }, + 21176: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052); + module.exports = function (it) { + if (!isObject(it)) throw TypeError(String(it) + ' is not an object'); + return it; + }; + }, + 97065: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toObject = __webpack_require__(92991), + toAbsoluteIndex = __webpack_require__(43231), + toLength = __webpack_require__(34237); + module.exports = function fill(value) { + for ( + var O = toObject(this), + length = toLength(O.length), + argumentsLength = arguments.length, + index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length), + end = argumentsLength > 2 ? arguments[2] : void 0, + endPos = void 0 === end ? length : toAbsoluteIndex(end, length); + endPos > index; + + ) + O[index++] = value; + return O; + }; + }, + 86570: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $forEach = __webpack_require__(89996).forEach, + STRICT_METHOD = __webpack_require__(96038)('forEach'); + module.exports = STRICT_METHOD + ? [].forEach + : function forEach(callbackfn) { + return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }; + }, + 10507: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var bind = __webpack_require__(97636), + toObject = __webpack_require__(92991), + callWithSafeIterationClosing = __webpack_require__(64960), + isArrayIteratorMethod = __webpack_require__(91943), + toLength = __webpack_require__(34237), + createProperty = __webpack_require__(62324), + getIteratorMethod = __webpack_require__(78830); + module.exports = function from(arrayLike) { + var length, + result, + step, + iterator, + next, + value, + O = toObject(arrayLike), + C = 'function' == typeof this ? this : Array, + argumentsLength = arguments.length, + mapfn = argumentsLength > 1 ? arguments[1] : void 0, + mapping = void 0 !== mapfn, + iteratorMethod = getIteratorMethod(O), + index = 0; + if ( + (mapping && (mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2)), + null == iteratorMethod || (C == Array && isArrayIteratorMethod(iteratorMethod))) + ) + for (result = new C((length = toLength(O.length))); length > index; index++) + (value = mapping ? mapfn(O[index], index) : O[index]), createProperty(result, index, value); + else + for ( + next = (iterator = iteratorMethod.call(O)).next, result = new C(); + !(step = next.call(iterator)).done; + index++ + ) + (value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], !0) : step.value), + createProperty(result, index, value); + return (result.length = index), result; + }; + }, + 19540: (module, __unused_webpack_exports, __webpack_require__) => { + var toIndexedObject = __webpack_require__(10905), + toLength = __webpack_require__(34237), + toAbsoluteIndex = __webpack_require__(43231), + createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var value, + O = toIndexedObject($this), + length = toLength(O.length), + index = toAbsoluteIndex(fromIndex, length); + if (IS_INCLUDES && el != el) { + for (; length > index; ) if ((value = O[index++]) != value) return !0; + } else + for (; length > index; index++) + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + return !IS_INCLUDES && -1; + }; + }; + module.exports = { includes: createMethod(!0), indexOf: createMethod(!1) }; + }, + 89996: (module, __unused_webpack_exports, __webpack_require__) => { + var bind = __webpack_require__(97636), + IndexedObject = __webpack_require__(9337), + toObject = __webpack_require__(92991), + toLength = __webpack_require__(34237), + arraySpeciesCreate = __webpack_require__(87501), + push = [].push, + createMethod = function (TYPE) { + var IS_MAP = 1 == TYPE, + IS_FILTER = 2 == TYPE, + IS_SOME = 3 == TYPE, + IS_EVERY = 4 == TYPE, + IS_FIND_INDEX = 6 == TYPE, + IS_FILTER_OUT = 7 == TYPE, + NO_HOLES = 5 == TYPE || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + for ( + var value, + result, + O = toObject($this), + self = IndexedObject(O), + boundFunction = bind(callbackfn, that, 3), + length = toLength(self.length), + index = 0, + create = specificCreate || arraySpeciesCreate, + target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : void 0; + length > index; + index++ + ) + if ((NO_HOLES || index in self) && ((result = boundFunction((value = self[index]), index, O)), TYPE)) + if (IS_MAP) target[index] = result; + else if (result) + switch (TYPE) { + case 3: + return !0; + case 5: + return value; + case 6: + return index; + case 2: + push.call(target, value); + } + else + switch (TYPE) { + case 4: + return !1; + case 7: + push.call(target, value); + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; + }; + module.exports = { + forEach: createMethod(0), + map: createMethod(1), + filter: createMethod(2), + some: createMethod(3), + every: createMethod(4), + find: createMethod(5), + findIndex: createMethod(6), + filterOut: createMethod(7), + }; + }, + 31460: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + wellKnownSymbol = __webpack_require__(70095), + V8_VERSION = __webpack_require__(6358), + SPECIES = wellKnownSymbol('species'); + module.exports = function (METHOD_NAME) { + return ( + V8_VERSION >= 51 || + !fails(function () { + var array = []; + return ( + ((array.constructor = {})[SPECIES] = function () { + return { foo: 1 }; + }), + 1 !== array[METHOD_NAME](Boolean).foo + ); + }) + ); + }; + }, + 96038: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var fails = __webpack_require__(24229); + module.exports = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return ( + !!method && + fails(function () { + method.call( + null, + argument || + function () { + throw 1; + }, + 1, + ); + }) + ); + }; + }, + 33867: module => { + var floor = Math.floor, + mergeSort = function (array, comparefn) { + var length = array.length, + middle = floor(length / 2); + return length < 8 + ? insertionSort(array, comparefn) + : merge(mergeSort(array.slice(0, middle), comparefn), mergeSort(array.slice(middle), comparefn), comparefn); + }, + insertionSort = function (array, comparefn) { + for (var element, j, length = array.length, i = 1; i < length; ) { + for (j = i, element = array[i]; j && comparefn(array[j - 1], element) > 0; ) array[j] = array[--j]; + j !== i++ && (array[j] = element); + } + return array; + }, + merge = function (left, right, comparefn) { + for ( + var llength = left.length, rlength = right.length, lindex = 0, rindex = 0, result = []; + lindex < llength || rindex < rlength; + + ) + lindex < llength && rindex < rlength + ? result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]) + : result.push(lindex < llength ? left[lindex++] : right[rindex++]); + return result; + }; + module.exports = mergeSort; + }, + 87501: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052), + isArray = __webpack_require__(33718), + SPECIES = __webpack_require__(70095)('species'); + module.exports = function (originalArray, length) { + var C; + return ( + isArray(originalArray) && + ('function' != typeof (C = originalArray.constructor) || (C !== Array && !isArray(C.prototype)) + ? isObject(C) && null === (C = C[SPECIES]) && (C = void 0) + : (C = void 0)), + new (void 0 === C ? Array : C)(0 === length ? 0 : length) + ); + }; + }, + 64960: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + iteratorClose = __webpack_require__(57281); + module.exports = function (iterator, fn, value, ENTRIES) { + try { + return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); + } catch (error) { + throw (iteratorClose(iterator), error); + } + }; + }, + 74575: (module, __unused_webpack_exports, __webpack_require__) => { + var ITERATOR = __webpack_require__(70095)('iterator'), + SAFE_CLOSING = !1; + try { + var called = 0, + iteratorWithReturn = { + next: function () { + return { done: !!called++ }; + }, + return: function () { + SAFE_CLOSING = !0; + }, + }; + (iteratorWithReturn[ITERATOR] = function () { + return this; + }), + Array.from(iteratorWithReturn, function () { + throw 2; + }); + } catch (error) {} + module.exports = function (exec, SKIP_CLOSING) { + if (!SKIP_CLOSING && !SAFE_CLOSING) return !1; + var ITERATION_SUPPORT = !1; + try { + var object = {}; + (object[ITERATOR] = function () { + return { + next: function () { + return { done: (ITERATION_SUPPORT = !0) }; + }, + }; + }), + exec(object); + } catch (error) {} + return ITERATION_SUPPORT; + }; + }, + 27079: module => { + var toString = {}.toString; + module.exports = function (it) { + return toString.call(it).slice(8, -1); + }; + }, + 81589: (module, __unused_webpack_exports, __webpack_require__) => { + var TO_STRING_TAG_SUPPORT = __webpack_require__(71601), + classofRaw = __webpack_require__(27079), + TO_STRING_TAG = __webpack_require__(70095)('toStringTag'), + CORRECT_ARGUMENTS = + 'Arguments' == + classofRaw( + (function () { + return arguments; + })(), + ); + module.exports = TO_STRING_TAG_SUPPORT + ? classofRaw + : function (it) { + var O, tag, result; + return void 0 === it + ? 'Undefined' + : null === it + ? 'Null' + : 'string' == + typeof (tag = (function (it, key) { + try { + return it[key]; + } catch (error) {} + })((O = Object(it)), TO_STRING_TAG)) + ? tag + : CORRECT_ARGUMENTS + ? classofRaw(O) + : 'Object' == (result = classofRaw(O)) && 'function' == typeof O.callee + ? 'Arguments' + : result; + }; + }, + 98081: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var defineProperty = __webpack_require__(31787).f, + create = __webpack_require__(22391), + redefineAll = __webpack_require__(98787), + bind = __webpack_require__(97636), + anInstance = __webpack_require__(57728), + iterate = __webpack_require__(89003), + defineIterator = __webpack_require__(67675), + setSpecies = __webpack_require__(71832), + DESCRIPTORS = __webpack_require__(7400), + fastKey = __webpack_require__(95926).fastKey, + InternalStateModule = __webpack_require__(56407), + setInternalState = InternalStateModule.set, + internalStateGetterFor = InternalStateModule.getterFor; + module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var C = wrapper(function (that, iterable) { + anInstance(that, C, CONSTRUCTOR_NAME), + setInternalState(that, { + type: CONSTRUCTOR_NAME, + index: create(null), + first: void 0, + last: void 0, + size: 0, + }), + DESCRIPTORS || (that.size = 0), + null != iterable && iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP }); + }), + getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME), + define = function (that, key, value) { + var previous, + index, + state = getInternalState(that), + entry = getEntry(that, key); + return ( + entry + ? (entry.value = value) + : ((state.last = entry = { + index: (index = fastKey(key, !0)), + key, + value, + previous: (previous = state.last), + next: void 0, + removed: !1, + }), + state.first || (state.first = entry), + previous && (previous.next = entry), + DESCRIPTORS ? state.size++ : that.size++, + 'F' !== index && (state.index[index] = entry)), + that + ); + }, + getEntry = function (that, key) { + var entry, + state = getInternalState(that), + index = fastKey(key); + if ('F' !== index) return state.index[index]; + for (entry = state.first; entry; entry = entry.next) if (entry.key == key) return entry; + }; + return ( + redefineAll(C.prototype, { + clear: function clear() { + for (var state = getInternalState(this), data = state.index, entry = state.first; entry; ) + (entry.removed = !0), + entry.previous && (entry.previous = entry.previous.next = void 0), + delete data[entry.index], + (entry = entry.next); + (state.first = state.last = void 0), DESCRIPTORS ? (state.size = 0) : (this.size = 0); + }, + delete: function (key) { + var state = getInternalState(this), + entry = getEntry(this, key); + if (entry) { + var next = entry.next, + prev = entry.previous; + delete state.index[entry.index], + (entry.removed = !0), + prev && (prev.next = next), + next && (next.previous = prev), + state.first == entry && (state.first = next), + state.last == entry && (state.last = prev), + DESCRIPTORS ? state.size-- : this.size--; + } + return !!entry; + }, + forEach: function forEach(callbackfn) { + for ( + var entry, + state = getInternalState(this), + boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : void 0, 3); + (entry = entry ? entry.next : state.first); + + ) + for (boundFunction(entry.value, entry.key, this); entry && entry.removed; ) entry = entry.previous; + }, + has: function has(key) { + return !!getEntry(this, key); + }, + }), + redefineAll( + C.prototype, + IS_MAP + ? { + get: function get(key) { + var entry = getEntry(this, key); + return entry && entry.value; + }, + set: function set(key, value) { + return define(this, 0 === key ? 0 : key, value); + }, + } + : { + add: function add(value) { + return define(this, (value = 0 === value ? 0 : value), value); + }, + }, + ), + DESCRIPTORS && + defineProperty(C.prototype, 'size', { + get: function () { + return getInternalState(this).size; + }, + }), + C + ); + }, + setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) { + var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator', + getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME), + getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); + defineIterator( + C, + CONSTRUCTOR_NAME, + function (iterated, kind) { + setInternalState(this, { + type: ITERATOR_NAME, + target: iterated, + state: getInternalCollectionState(iterated), + kind, + last: void 0, + }); + }, + function () { + for ( + var state = getInternalIteratorState(this), kind = state.kind, entry = state.last; + entry && entry.removed; + + ) + entry = entry.previous; + return state.target && (state.last = entry = entry ? entry.next : state.state.first) + ? 'keys' == kind + ? { value: entry.key, done: !1 } + : 'values' == kind + ? { value: entry.value, done: !1 } + : { value: [entry.key, entry.value], done: !1 } + : ((state.target = void 0), { value: void 0, done: !0 }); + }, + IS_MAP ? 'entries' : 'values', + !IS_MAP, + !0, + ), + setSpecies(CONSTRUCTOR_NAME); + }, + }; + }, + 63370: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var redefineAll = __webpack_require__(98787), + getWeakData = __webpack_require__(95926).getWeakData, + anObject = __webpack_require__(21176), + isObject = __webpack_require__(85052), + anInstance = __webpack_require__(57728), + iterate = __webpack_require__(89003), + ArrayIterationModule = __webpack_require__(89996), + $has = __webpack_require__(50816), + InternalStateModule = __webpack_require__(56407), + setInternalState = InternalStateModule.set, + internalStateGetterFor = InternalStateModule.getterFor, + find = ArrayIterationModule.find, + findIndex = ArrayIterationModule.findIndex, + id = 0, + uncaughtFrozenStore = function (store) { + return store.frozen || (store.frozen = new UncaughtFrozenStore()); + }, + UncaughtFrozenStore = function () { + this.entries = []; + }, + findUncaughtFrozen = function (store, key) { + return find(store.entries, function (it) { + return it[0] === key; + }); + }; + (UncaughtFrozenStore.prototype = { + get: function (key) { + var entry = findUncaughtFrozen(this, key); + if (entry) return entry[1]; + }, + has: function (key) { + return !!findUncaughtFrozen(this, key); + }, + set: function (key, value) { + var entry = findUncaughtFrozen(this, key); + entry ? (entry[1] = value) : this.entries.push([key, value]); + }, + delete: function (key) { + var index = findIndex(this.entries, function (it) { + return it[0] === key; + }); + return ~index && this.entries.splice(index, 1), !!~index; + }, + }), + (module.exports = { + getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { + var C = wrapper(function (that, iterable) { + anInstance(that, C, CONSTRUCTOR_NAME), + setInternalState(that, { type: CONSTRUCTOR_NAME, id: id++, frozen: void 0 }), + null != iterable && iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP }); + }), + getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME), + define = function (that, key, value) { + var state = getInternalState(that), + data = getWeakData(anObject(key), !0); + return !0 === data ? uncaughtFrozenStore(state).set(key, value) : (data[state.id] = value), that; + }; + return ( + redefineAll(C.prototype, { + delete: function (key) { + var state = getInternalState(this); + if (!isObject(key)) return !1; + var data = getWeakData(key); + return !0 === data + ? uncaughtFrozenStore(state).delete(key) + : data && $has(data, state.id) && delete data[state.id]; + }, + has: function has(key) { + var state = getInternalState(this); + if (!isObject(key)) return !1; + var data = getWeakData(key); + return !0 === data ? uncaughtFrozenStore(state).has(key) : data && $has(data, state.id); + }, + }), + redefineAll( + C.prototype, + IS_MAP + ? { + get: function get(key) { + var state = getInternalState(this); + if (isObject(key)) { + var data = getWeakData(key); + return !0 === data ? uncaughtFrozenStore(state).get(key) : data ? data[state.id] : void 0; + } + }, + set: function set(key, value) { + return define(this, key, value); + }, + } + : { + add: function add(value) { + return define(this, value, !0); + }, + }, + ), + C + ); + }, + }); + }, + 69789: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + global = __webpack_require__(9859), + isForced = __webpack_require__(46541), + redefine = __webpack_require__(27487), + InternalMetadataModule = __webpack_require__(95926), + iterate = __webpack_require__(89003), + anInstance = __webpack_require__(57728), + isObject = __webpack_require__(85052), + fails = __webpack_require__(24229), + checkCorrectnessOfIteration = __webpack_require__(74575), + setToStringTag = __webpack_require__(54555), + inheritIfRequired = __webpack_require__(20835); + module.exports = function (CONSTRUCTOR_NAME, wrapper, common) { + var IS_MAP = -1 !== CONSTRUCTOR_NAME.indexOf('Map'), + IS_WEAK = -1 !== CONSTRUCTOR_NAME.indexOf('Weak'), + ADDER = IS_MAP ? 'set' : 'add', + NativeConstructor = global[CONSTRUCTOR_NAME], + NativePrototype = NativeConstructor && NativeConstructor.prototype, + Constructor = NativeConstructor, + exported = {}, + fixMethod = function (KEY) { + var nativeMethod = NativePrototype[KEY]; + redefine( + NativePrototype, + KEY, + 'add' == KEY + ? function add(value) { + return nativeMethod.call(this, 0 === value ? 0 : value), this; + } + : 'delete' == KEY + ? function (key) { + return !(IS_WEAK && !isObject(key)) && nativeMethod.call(this, 0 === key ? 0 : key); + } + : 'get' == KEY + ? function get(key) { + return IS_WEAK && !isObject(key) ? void 0 : nativeMethod.call(this, 0 === key ? 0 : key); + } + : 'has' == KEY + ? function has(key) { + return !(IS_WEAK && !isObject(key)) && nativeMethod.call(this, 0 === key ? 0 : key); + } + : function set(key, value) { + return nativeMethod.call(this, 0 === key ? 0 : key, value), this; + }, + ); + }; + if ( + isForced( + CONSTRUCTOR_NAME, + 'function' != typeof NativeConstructor || + !( + IS_WEAK || + (NativePrototype.forEach && + !fails(function () { + new NativeConstructor().entries().next(); + })) + ), + ) + ) + (Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER)), + (InternalMetadataModule.REQUIRED = !0); + else if (isForced(CONSTRUCTOR_NAME, !0)) { + var instance = new Constructor(), + HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance, + THROWS_ON_PRIMITIVES = fails(function () { + instance.has(1); + }), + ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { + new NativeConstructor(iterable); + }), + BUGGY_ZERO = + !IS_WEAK && + fails(function () { + for (var $instance = new NativeConstructor(), index = 5; index--; ) $instance[ADDER](index, index); + return !$instance.has(-0); + }); + ACCEPT_ITERABLES || + (((Constructor = wrapper(function (dummy, iterable) { + anInstance(dummy, Constructor, CONSTRUCTOR_NAME); + var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor); + return null != iterable && iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP }), that; + })).prototype = NativePrototype), + (NativePrototype.constructor = Constructor)), + (THROWS_ON_PRIMITIVES || BUGGY_ZERO) && (fixMethod('delete'), fixMethod('has'), IS_MAP && fixMethod('get')), + (BUGGY_ZERO || HASNT_CHAINING) && fixMethod(ADDER), + IS_WEAK && NativePrototype.clear && delete NativePrototype.clear; + } + return ( + (exported[CONSTRUCTOR_NAME] = Constructor), + $({ global: !0, forced: Constructor != NativeConstructor }, exported), + setToStringTag(Constructor, CONSTRUCTOR_NAME), + IS_WEAK || common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP), + Constructor + ); + }; + }, + 77081: (module, __unused_webpack_exports, __webpack_require__) => { + var has = __webpack_require__(50816), + ownKeys = __webpack_require__(4826), + getOwnPropertyDescriptorModule = __webpack_require__(97933), + definePropertyModule = __webpack_require__(31787); + module.exports = function (target, source) { + for ( + var keys = ownKeys(source), + defineProperty = definePropertyModule.f, + getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f, + i = 0; + i < keys.length; + i++ + ) { + var key = keys[i]; + has(target, key) || defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + }; + }, + 48127: (module, __unused_webpack_exports, __webpack_require__) => { + var MATCH = __webpack_require__(70095)('match'); + module.exports = function (METHOD_NAME) { + var regexp = /./; + try { + '/./'[METHOD_NAME](regexp); + } catch (error1) { + try { + return (regexp[MATCH] = !1), '/./'[METHOD_NAME](regexp); + } catch (error2) {} + } + return !1; + }; + }, + 27528: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = !fails(function () { + function F() {} + return (F.prototype.constructor = null), Object.getPrototypeOf(new F()) !== F.prototype; + }); + }, + 81720: (module, __unused_webpack_exports, __webpack_require__) => { + var requireObjectCoercible = __webpack_require__(58885), + quot = /"/g; + module.exports = function (string, tag, attribute, value) { + var S = String(requireObjectCoercible(string)), + p1 = '<' + tag; + return ( + '' !== attribute && (p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'), + p1 + '>' + S + '' + ); + }; + }, + 93723: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var IteratorPrototype = __webpack_require__(60693).IteratorPrototype, + create = __webpack_require__(22391), + createPropertyDescriptor = __webpack_require__(65358), + setToStringTag = __webpack_require__(54555), + Iterators = __webpack_require__(45495), + returnThis = function () { + return this; + }; + module.exports = function (IteratorConstructor, NAME, next) { + var TO_STRING_TAG = NAME + ' Iterator'; + return ( + (IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) })), + setToStringTag(IteratorConstructor, TO_STRING_TAG, !1, !0), + (Iterators[TO_STRING_TAG] = returnThis), + IteratorConstructor + ); + }; + }, + 75762: (module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + definePropertyModule = __webpack_require__(31787), + createPropertyDescriptor = __webpack_require__(65358); + module.exports = DESCRIPTORS + ? function (object, key, value) { + return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); + } + : function (object, key, value) { + return (object[key] = value), object; + }; + }, + 65358: module => { + module.exports = function (bitmap, value) { + return { enumerable: !(1 & bitmap), configurable: !(2 & bitmap), writable: !(4 & bitmap), value }; + }; + }, + 62324: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toPrimitive = __webpack_require__(92066), + definePropertyModule = __webpack_require__(31787), + createPropertyDescriptor = __webpack_require__(65358); + module.exports = function (object, key, value) { + var propertyKey = toPrimitive(key); + propertyKey in object + ? definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)) + : (object[propertyKey] = value); + }; + }, + 19778: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var anObject = __webpack_require__(21176), + toPrimitive = __webpack_require__(92066); + module.exports = function (hint) { + if ('string' !== hint && 'number' !== hint && 'default' !== hint) throw TypeError('Incorrect hint'); + return toPrimitive(anObject(this), 'number' !== hint); + }; + }, + 67675: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + createIteratorConstructor = __webpack_require__(93723), + getPrototypeOf = __webpack_require__(67567), + setPrototypeOf = __webpack_require__(56540), + setToStringTag = __webpack_require__(54555), + createNonEnumerableProperty = __webpack_require__(75762), + redefine = __webpack_require__(27487), + wellKnownSymbol = __webpack_require__(70095), + IS_PURE = __webpack_require__(24231), + Iterators = __webpack_require__(45495), + IteratorsCore = __webpack_require__(60693), + IteratorPrototype = IteratorsCore.IteratorPrototype, + BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS, + ITERATOR = wellKnownSymbol('iterator'), + returnThis = function () { + return this; + }; + module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + var CurrentIteratorPrototype, + methods, + KEY, + getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; + switch (KIND) { + case 'keys': + return function keys() { + return new IteratorConstructor(this, KIND); + }; + case 'values': + return function values() { + return new IteratorConstructor(this, KIND); + }; + case 'entries': + return function entries() { + return new IteratorConstructor(this, KIND); + }; + } + return function () { + return new IteratorConstructor(this); + }; + }, + TO_STRING_TAG = NAME + ' Iterator', + INCORRECT_VALUES_NAME = !1, + IterablePrototype = Iterable.prototype, + nativeIterator = + IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || (DEFAULT && IterablePrototype[DEFAULT]), + defaultIterator = (!BUGGY_SAFARI_ITERATORS && nativeIterator) || getIterationMethod(DEFAULT), + anyNativeIterator = ('Array' == NAME && IterablePrototype.entries) || nativeIterator; + if ( + (anyNativeIterator && + ((CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()))), + IteratorPrototype !== Object.prototype && + CurrentIteratorPrototype.next && + (IS_PURE || + getPrototypeOf(CurrentIteratorPrototype) === IteratorPrototype || + (setPrototypeOf + ? setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype) + : 'function' != typeof CurrentIteratorPrototype[ITERATOR] && + createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis)), + setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, !0, !0), + IS_PURE && (Iterators[TO_STRING_TAG] = returnThis))), + 'values' == DEFAULT && + nativeIterator && + 'values' !== nativeIterator.name && + ((INCORRECT_VALUES_NAME = !0), + (defaultIterator = function values() { + return nativeIterator.call(this); + })), + (IS_PURE && !FORCED) || + IterablePrototype[ITERATOR] === defaultIterator || + createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator), + (Iterators[NAME] = defaultIterator), + DEFAULT) + ) + if ( + ((methods = { + values: getIterationMethod('values'), + keys: IS_SET ? defaultIterator : getIterationMethod('keys'), + entries: getIterationMethod('entries'), + }), + FORCED) + ) + for (KEY in methods) + (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) && + redefine(IterablePrototype, KEY, methods[KEY]); + else $({ target: NAME, proto: !0, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + return methods; + }; + }, + 38423: (module, __unused_webpack_exports, __webpack_require__) => { + var path = __webpack_require__(49276), + has = __webpack_require__(50816), + wrappedWellKnownSymbolModule = __webpack_require__(55391), + defineProperty = __webpack_require__(31787).f; + module.exports = function (NAME) { + var Symbol = path.Symbol || (path.Symbol = {}); + has(Symbol, NAME) || defineProperty(Symbol, NAME, { value: wrappedWellKnownSymbolModule.f(NAME) }); + }; + }, + 7400: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = !fails(function () { + return ( + 7 != + Object.defineProperty({}, 1, { + get: function () { + return 7; + }, + })[1] + ); + }); + }, + 22635: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + isObject = __webpack_require__(85052), + document = global.document, + EXISTS = isObject(document) && isObject(document.createElement); + module.exports = function (it) { + return EXISTS ? document.createElement(it) : {}; + }; + }, + 95694: module => { + module.exports = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0, + }; + }, + 22671: (module, __unused_webpack_exports, __webpack_require__) => { + var firefox = __webpack_require__(80598).match(/firefox\/(\d+)/i); + module.exports = !!firefox && +firefox[1]; + }, + 48639: module => { + module.exports = 'object' == typeof window; + }, + 48506: (module, __unused_webpack_exports, __webpack_require__) => { + var UA = __webpack_require__(80598); + module.exports = /MSIE|Trident/.test(UA); + }, + 32023: (module, __unused_webpack_exports, __webpack_require__) => { + var userAgent = __webpack_require__(80598); + module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent); + }, + 28801: (module, __unused_webpack_exports, __webpack_require__) => { + var classof = __webpack_require__(27079), + global = __webpack_require__(9859); + module.exports = 'process' == classof(global.process); + }, + 10263: (module, __unused_webpack_exports, __webpack_require__) => { + var userAgent = __webpack_require__(80598); + module.exports = /web0s(?!.*chrome)/i.test(userAgent); + }, + 80598: (module, __unused_webpack_exports, __webpack_require__) => { + var getBuiltIn = __webpack_require__(31333); + module.exports = getBuiltIn('navigator', 'userAgent') || ''; + }, + 6358: (module, __unused_webpack_exports, __webpack_require__) => { + var match, + version, + global = __webpack_require__(9859), + userAgent = __webpack_require__(80598), + process = global.process, + versions = process && process.versions, + v8 = versions && versions.v8; + v8 + ? (version = (match = v8.split('.'))[0] < 4 ? 1 : match[0] + match[1]) + : userAgent && + (!(match = userAgent.match(/Edge\/(\d+)/)) || match[1] >= 74) && + (match = userAgent.match(/Chrome\/(\d+)/)) && + (version = match[1]), + (module.exports = version && +version); + }, + 49811: (module, __unused_webpack_exports, __webpack_require__) => { + var webkit = __webpack_require__(80598).match(/AppleWebKit\/(\d+)\./); + module.exports = !!webkit && +webkit[1]; + }, + 13837: module => { + module.exports = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf', + ]; + }, + 23103: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + getOwnPropertyDescriptor = __webpack_require__(97933).f, + createNonEnumerableProperty = __webpack_require__(75762), + redefine = __webpack_require__(27487), + setGlobal = __webpack_require__(12079), + copyConstructorProperties = __webpack_require__(77081), + isForced = __webpack_require__(46541); + module.exports = function (options, source) { + var target, + key, + targetProperty, + sourceProperty, + descriptor, + TARGET = options.target, + GLOBAL = options.global, + STATIC = options.stat; + if ( + (target = GLOBAL + ? global + : STATIC + ? global[TARGET] || setGlobal(TARGET, {}) + : (global[TARGET] || {}).prototype) + ) + for (key in source) { + if ( + ((sourceProperty = source[key]), + (targetProperty = options.noTargetGet + ? (descriptor = getOwnPropertyDescriptor(target, key)) && descriptor.value + : target[key]), + !isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced) && + void 0 !== targetProperty) + ) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + (options.sham || (targetProperty && targetProperty.sham)) && + createNonEnumerableProperty(sourceProperty, 'sham', !0), + redefine(target, key, sourceProperty, options); + } + }; + }, + 24229: module => { + module.exports = function (exec) { + try { + return !!exec(); + } catch (error) { + return !0; + } + }; + }, + 94954: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(77950); + var redefine = __webpack_require__(27487), + regexpExec = __webpack_require__(63466), + fails = __webpack_require__(24229), + wellKnownSymbol = __webpack_require__(70095), + createNonEnumerableProperty = __webpack_require__(75762), + SPECIES = wellKnownSymbol('species'), + RegExpPrototype = RegExp.prototype; + module.exports = function (KEY, exec, FORCED, SHAM) { + var SYMBOL = wellKnownSymbol(KEY), + DELEGATES_TO_SYMBOL = !fails(function () { + var O = {}; + return ( + (O[SYMBOL] = function () { + return 7; + }), + 7 != ''[KEY](O) + ); + }), + DELEGATES_TO_EXEC = + DELEGATES_TO_SYMBOL && + !fails(function () { + var execCalled = !1, + re = /a/; + return ( + 'split' === KEY && + (((re = {}).constructor = {}), + (re.constructor[SPECIES] = function () { + return re; + }), + (re.flags = ''), + (re[SYMBOL] = /./[SYMBOL])), + (re.exec = function () { + return (execCalled = !0), null; + }), + re[SYMBOL](''), + !execCalled + ); + }); + if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) { + var nativeRegExpMethod = /./[SYMBOL], + methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { + var $exec = regexp.exec; + return $exec === regexpExec || $exec === RegExpPrototype.exec + ? DELEGATES_TO_SYMBOL && !forceStringMethod + ? { done: !0, value: nativeRegExpMethod.call(regexp, str, arg2) } + : { done: !0, value: nativeMethod.call(str, regexp, arg2) } + : { done: !1 }; + }); + redefine(String.prototype, KEY, methods[0]), redefine(RegExpPrototype, SYMBOL, methods[1]); + } + SHAM && createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', !0); + }; + }, + 68476: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = !fails(function () { + return Object.isExtensible(Object.preventExtensions({})); + }); + }, + 97636: (module, __unused_webpack_exports, __webpack_require__) => { + var aFunction = __webpack_require__(93819); + module.exports = function (fn, that, length) { + if ((aFunction(fn), void 0 === that)) return fn; + switch (length) { + case 0: + return function () { + return fn.call(that); + }; + case 1: + return function (a) { + return fn.call(that, a); + }; + case 2: + return function (a, b) { + return fn.call(that, a, b); + }; + case 3: + return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function () { + return fn.apply(that, arguments); + }; + }; + }, + 94128: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var aFunction = __webpack_require__(93819), + isObject = __webpack_require__(85052), + slice = [].slice, + factories = {}, + construct = function (C, argsLength, args) { + if (!(argsLength in factories)) { + for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']'; + factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')'); + } + return factories[argsLength](C, args); + }; + module.exports = + Function.bind || + function bind(that) { + var fn = aFunction(this), + partArgs = slice.call(arguments, 1), + boundFunction = function bound() { + var args = partArgs.concat(slice.call(arguments)); + return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args); + }; + return isObject(fn.prototype) && (boundFunction.prototype = fn.prototype), boundFunction; + }; + }, + 31333: (module, __unused_webpack_exports, __webpack_require__) => { + var path = __webpack_require__(49276), + global = __webpack_require__(9859), + aFunction = function (variable) { + return 'function' == typeof variable ? variable : void 0; + }; + module.exports = function (namespace, method) { + return arguments.length < 2 + ? aFunction(path[namespace]) || aFunction(global[namespace]) + : (path[namespace] && path[namespace][method]) || (global[namespace] && global[namespace][method]); + }; + }, + 78830: (module, __unused_webpack_exports, __webpack_require__) => { + var classof = __webpack_require__(81589), + Iterators = __webpack_require__(45495), + ITERATOR = __webpack_require__(70095)('iterator'); + module.exports = function (it) { + if (null != it) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)]; + }; + }, + 28403: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + getIteratorMethod = __webpack_require__(78830); + module.exports = function (it) { + var iteratorMethod = getIteratorMethod(it); + if ('function' != typeof iteratorMethod) throw TypeError(String(it) + ' is not iterable'); + return anObject(iteratorMethod.call(it)); + }; + }, + 70017: (module, __unused_webpack_exports, __webpack_require__) => { + var toObject = __webpack_require__(92991), + floor = Math.floor, + replace = ''.replace, + SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, + SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; + module.exports = function (matched, str, position, captures, namedCaptures, replacement) { + var tailPos = position + matched.length, + m = captures.length, + symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + return ( + void 0 !== namedCaptures && ((namedCaptures = toObject(namedCaptures)), (symbols = SUBSTITUTION_SYMBOLS)), + replace.call(replacement, symbols, function (match, ch) { + var capture; + switch (ch.charAt(0)) { + case '$': + return '$'; + case '&': + return matched; + case '`': + return str.slice(0, position); + case "'": + return str.slice(tailPos); + case '<': + capture = namedCaptures[ch.slice(1, -1)]; + break; + default: + var n = +ch; + if (0 === n) return match; + if (n > m) { + var f = floor(n / 10); + return 0 === f + ? match + : f <= m + ? void 0 === captures[f - 1] + ? ch.charAt(1) + : captures[f - 1] + ch.charAt(1) + : match; + } + capture = captures[n - 1]; + } + return void 0 === capture ? '' : capture; + }) + ); + }; + }, + 9859: (module, __unused_webpack_exports, __webpack_require__) => { + var check = function (it) { + return it && it.Math == Math && it; + }; + module.exports = + check('object' == typeof globalThis && globalThis) || + check('object' == typeof window && window) || + check('object' == typeof self && self) || + check('object' == typeof __webpack_require__.g && __webpack_require__.g) || + (function () { + return this; + })() || + Function('return this')(); + }, + 50816: (module, __unused_webpack_exports, __webpack_require__) => { + var toObject = __webpack_require__(92991), + hasOwnProperty = {}.hasOwnProperty; + module.exports = + Object.hasOwn || + function hasOwn(it, key) { + return hasOwnProperty.call(toObject(it), key); + }; + }, + 95977: module => { + module.exports = {}; + }, + 14665: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859); + module.exports = function (a, b) { + var console = global.console; + console && console.error && (1 === arguments.length ? console.error(a) : console.error(a, b)); + }; + }, + 53777: (module, __unused_webpack_exports, __webpack_require__) => { + var getBuiltIn = __webpack_require__(31333); + module.exports = getBuiltIn('document', 'documentElement'); + }, + 64394: (module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + fails = __webpack_require__(24229), + createElement = __webpack_require__(22635); + module.exports = + !DESCRIPTORS && + !fails(function () { + return ( + 7 != + Object.defineProperty(createElement('div'), 'a', { + get: function () { + return 7; + }, + }).a + ); + }); + }, + 9337: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + classof = __webpack_require__(27079), + split = ''.split; + module.exports = fails(function () { + return !Object('z').propertyIsEnumerable(0); + }) + ? function (it) { + return 'String' == classof(it) ? split.call(it, '') : Object(it); + } + : Object; + }, + 20835: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052), + setPrototypeOf = __webpack_require__(56540); + module.exports = function ($this, dummy, Wrapper) { + var NewTarget, NewTargetPrototype; + return ( + setPrototypeOf && + 'function' == typeof (NewTarget = dummy.constructor) && + NewTarget !== Wrapper && + isObject((NewTargetPrototype = NewTarget.prototype)) && + NewTargetPrototype !== Wrapper.prototype && + setPrototypeOf($this, NewTargetPrototype), + $this + ); + }; + }, + 8511: (module, __unused_webpack_exports, __webpack_require__) => { + var store = __webpack_require__(85353), + functionToString = Function.toString; + 'function' != typeof store.inspectSource && + (store.inspectSource = function (it) { + return functionToString.call(it); + }), + (module.exports = store.inspectSource); + }, + 95926: (module, __unused_webpack_exports, __webpack_require__) => { + var hiddenKeys = __webpack_require__(95977), + isObject = __webpack_require__(85052), + has = __webpack_require__(50816), + defineProperty = __webpack_require__(31787).f, + uid = __webpack_require__(81441), + FREEZING = __webpack_require__(68476), + METADATA = uid('meta'), + id = 0, + isExtensible = + Object.isExtensible || + function () { + return !0; + }, + setMetadata = function (it) { + defineProperty(it, METADATA, { value: { objectID: 'O' + id++, weakData: {} } }); + }, + meta = (module.exports = { + REQUIRED: !1, + fastKey: function (it, create) { + if (!isObject(it)) return 'symbol' == typeof it ? it : ('string' == typeof it ? 'S' : 'P') + it; + if (!has(it, METADATA)) { + if (!isExtensible(it)) return 'F'; + if (!create) return 'E'; + setMetadata(it); + } + return it[METADATA].objectID; + }, + getWeakData: function (it, create) { + if (!has(it, METADATA)) { + if (!isExtensible(it)) return !0; + if (!create) return !1; + setMetadata(it); + } + return it[METADATA].weakData; + }, + onFreeze: function (it) { + return FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA) && setMetadata(it), it; + }, + }); + hiddenKeys[METADATA] = !0; + }, + 56407: (module, __unused_webpack_exports, __webpack_require__) => { + var set, + get, + has, + NATIVE_WEAK_MAP = __webpack_require__(18694), + global = __webpack_require__(9859), + isObject = __webpack_require__(85052), + createNonEnumerableProperty = __webpack_require__(75762), + objectHas = __webpack_require__(50816), + shared = __webpack_require__(85353), + sharedKey = __webpack_require__(44399), + hiddenKeys = __webpack_require__(95977), + WeakMap = global.WeakMap; + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()), + wmget = store.get, + wmhas = store.has, + wmset = store.set; + (set = function (it, metadata) { + if (wmhas.call(store, it)) throw new TypeError('Object already initialized'); + return (metadata.facade = it), wmset.call(store, it, metadata), metadata; + }), + (get = function (it) { + return wmget.call(store, it) || {}; + }), + (has = function (it) { + return wmhas.call(store, it); + }); + } else { + var STATE = sharedKey('state'); + (hiddenKeys[STATE] = !0), + (set = function (it, metadata) { + if (objectHas(it, STATE)) throw new TypeError('Object already initialized'); + return (metadata.facade = it), createNonEnumerableProperty(it, STATE, metadata), metadata; + }), + (get = function (it) { + return objectHas(it, STATE) ? it[STATE] : {}; + }), + (has = function (it) { + return objectHas(it, STATE); + }); + } + module.exports = { + set, + get, + has, + enforce: function (it) { + return has(it) ? get(it) : set(it, {}); + }, + getterFor: function (TYPE) { + return function (it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) + throw TypeError('Incompatible receiver, ' + TYPE + ' required'); + return state; + }; + }, + }; + }, + 91943: (module, __unused_webpack_exports, __webpack_require__) => { + var wellKnownSymbol = __webpack_require__(70095), + Iterators = __webpack_require__(45495), + ITERATOR = wellKnownSymbol('iterator'), + ArrayPrototype = Array.prototype; + module.exports = function (it) { + return void 0 !== it && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); + }; + }, + 33718: (module, __unused_webpack_exports, __webpack_require__) => { + var classof = __webpack_require__(27079); + module.exports = + Array.isArray || + function isArray(arg) { + return 'Array' == classof(arg); + }; + }, + 46541: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + replacement = /#|\.prototype\./, + isForced = function (feature, detection) { + var value = data[normalize(feature)]; + return ( + value == POLYFILL || (value != NATIVE && ('function' == typeof detection ? fails(detection) : !!detection)) + ); + }, + normalize = (isForced.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }), + data = (isForced.data = {}), + NATIVE = (isForced.NATIVE = 'N'), + POLYFILL = (isForced.POLYFILL = 'P'); + module.exports = isForced; + }, + 93223: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052), + floor = Math.floor; + module.exports = function isInteger(it) { + return !isObject(it) && isFinite(it) && floor(it) === it; + }; + }, + 85052: module => { + module.exports = function (it) { + return 'object' == typeof it ? null !== it : 'function' == typeof it; + }; + }, + 24231: module => { + module.exports = !1; + }, + 48311: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052), + classof = __webpack_require__(27079), + MATCH = __webpack_require__(70095)('match'); + module.exports = function (it) { + var isRegExp; + return isObject(it) && (void 0 !== (isRegExp = it[MATCH]) ? !!isRegExp : 'RegExp' == classof(it)); + }; + }, + 89003: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + isArrayIteratorMethod = __webpack_require__(91943), + toLength = __webpack_require__(34237), + bind = __webpack_require__(97636), + getIteratorMethod = __webpack_require__(78830), + iteratorClose = __webpack_require__(57281), + Result = function (stopped, result) { + (this.stopped = stopped), (this.result = result); + }; + module.exports = function (iterable, unboundFunction, options) { + var iterator, + iterFn, + index, + length, + result, + next, + step, + that = options && options.that, + AS_ENTRIES = !(!options || !options.AS_ENTRIES), + IS_ITERATOR = !(!options || !options.IS_ITERATOR), + INTERRUPTED = !(!options || !options.INTERRUPTED), + fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED), + stop = function (condition) { + return iterator && iteratorClose(iterator), new Result(!0, condition); + }, + callFn = function (value) { + return AS_ENTRIES + ? (anObject(value), INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1])) + : INTERRUPTED + ? fn(value, stop) + : fn(value); + }; + if (IS_ITERATOR) iterator = iterable; + else { + if ('function' != typeof (iterFn = getIteratorMethod(iterable))) throw TypeError('Target is not iterable'); + if (isArrayIteratorMethod(iterFn)) { + for (index = 0, length = toLength(iterable.length); length > index; index++) + if ((result = callFn(iterable[index])) && result instanceof Result) return result; + return new Result(!1); + } + iterator = iterFn.call(iterable); + } + for (next = iterator.next; !(step = next.call(iterator)).done; ) { + try { + result = callFn(step.value); + } catch (error) { + throw (iteratorClose(iterator), error); + } + if ('object' == typeof result && result && result instanceof Result) return result; + } + return new Result(!1); + }; + }, + 57281: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176); + module.exports = function (iterator) { + var returnMethod = iterator.return; + if (void 0 !== returnMethod) return anObject(returnMethod.call(iterator)).value; + }; + }, + 60693: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var IteratorPrototype, + PrototypeOfArrayIteratorPrototype, + arrayIterator, + fails = __webpack_require__(24229), + getPrototypeOf = __webpack_require__(67567), + createNonEnumerableProperty = __webpack_require__(75762), + has = __webpack_require__(50816), + wellKnownSymbol = __webpack_require__(70095), + IS_PURE = __webpack_require__(24231), + ITERATOR = wellKnownSymbol('iterator'), + BUGGY_SAFARI_ITERATORS = !1; + [].keys && + ('next' in (arrayIterator = [].keys()) + ? (PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator))) !== Object.prototype && + (IteratorPrototype = PrototypeOfArrayIteratorPrototype) + : (BUGGY_SAFARI_ITERATORS = !0)); + var NEW_ITERATOR_PROTOTYPE = + null == IteratorPrototype || + fails(function () { + var test = {}; + return IteratorPrototype[ITERATOR].call(test) !== test; + }); + NEW_ITERATOR_PROTOTYPE && (IteratorPrototype = {}), + (IS_PURE && !NEW_ITERATOR_PROTOTYPE) || + has(IteratorPrototype, ITERATOR) || + createNonEnumerableProperty(IteratorPrototype, ITERATOR, function () { + return this; + }), + (module.exports = { IteratorPrototype, BUGGY_SAFARI_ITERATORS }); + }, + 45495: module => { + module.exports = {}; + }, + 24794: (module, __unused_webpack_exports, __webpack_require__) => { + var flush, + head, + last, + notify, + toggle, + node, + promise, + then, + global = __webpack_require__(9859), + getOwnPropertyDescriptor = __webpack_require__(97933).f, + macrotask = __webpack_require__(55795).set, + IS_IOS = __webpack_require__(32023), + IS_WEBOS_WEBKIT = __webpack_require__(10263), + IS_NODE = __webpack_require__(28801), + MutationObserver = global.MutationObserver || global.WebKitMutationObserver, + document = global.document, + process = global.process, + Promise = global.Promise, + queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask'), + queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; + queueMicrotask || + ((flush = function () { + var parent, fn; + for (IS_NODE && (parent = process.domain) && parent.exit(); head; ) { + (fn = head.fn), (head = head.next); + try { + fn(); + } catch (error) { + throw (head ? notify() : (last = void 0), error); + } + } + (last = void 0), parent && parent.enter(); + }), + IS_IOS || IS_NODE || IS_WEBOS_WEBKIT || !MutationObserver || !document + ? Promise && Promise.resolve + ? (((promise = Promise.resolve(void 0)).constructor = Promise), + (then = promise.then), + (notify = function () { + then.call(promise, flush); + })) + : (notify = IS_NODE + ? function () { + process.nextTick(flush); + } + : function () { + macrotask.call(global, flush); + }) + : ((toggle = !0), + (node = document.createTextNode('')), + new MutationObserver(flush).observe(node, { characterData: !0 }), + (notify = function () { + node.data = toggle = !toggle; + }))), + (module.exports = + queueMicrotask || + function (fn) { + var task = { fn, next: void 0 }; + last && (last.next = task), head || ((head = task), notify()), (last = task); + }); + }, + 34226: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859); + module.exports = global.Promise; + }, + 63839: (module, __unused_webpack_exports, __webpack_require__) => { + var V8_VERSION = __webpack_require__(6358), + fails = __webpack_require__(24229); + module.exports = + !!Object.getOwnPropertySymbols && + !fails(function () { + var symbol = Symbol(); + return ( + !String(symbol) || !(Object(symbol) instanceof Symbol) || (!Symbol.sham && V8_VERSION && V8_VERSION < 41) + ); + }); + }, + 77274: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + wellKnownSymbol = __webpack_require__(70095), + IS_PURE = __webpack_require__(24231), + ITERATOR = wellKnownSymbol('iterator'); + module.exports = !fails(function () { + var url = new URL('b?a=1&b=2&c=3', 'http://a'), + searchParams = url.searchParams, + result = ''; + return ( + (url.pathname = 'c%20d'), + searchParams.forEach(function (value, key) { + searchParams.delete('b'), (result += key + value); + }), + (IS_PURE && !url.toJSON) || + !searchParams.sort || + 'http://a/c%20d?a=1&c=3' !== url.href || + '3' !== searchParams.get('c') || + 'a=1' !== String(new URLSearchParams('?a=1')) || + !searchParams[ITERATOR] || + 'a' !== new URL('https://a@b').username || + 'b' !== new URLSearchParams(new URLSearchParams('a=b')).get('a') || + 'xn--e1aybc' !== new URL('http://тест').host || + '#%D0%B1' !== new URL('http://a#б').hash || + 'a1c3' !== result || + 'x' !== new URL('http://x', void 0).host + ); + }); + }, + 18694: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + inspectSource = __webpack_require__(8511), + WeakMap = global.WeakMap; + module.exports = 'function' == typeof WeakMap && /native code/.test(inspectSource(WeakMap)); + }, + 16485: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var aFunction = __webpack_require__(93819), + PromiseCapability = function (C) { + var resolve, reject; + (this.promise = new C(function ($$resolve, $$reject) { + if (void 0 !== resolve || void 0 !== reject) throw TypeError('Bad Promise constructor'); + (resolve = $$resolve), (reject = $$reject); + })), + (this.resolve = aFunction(resolve)), + (this.reject = aFunction(reject)); + }; + module.exports.f = function (C) { + return new PromiseCapability(C); + }; + }, + 47272: (module, __unused_webpack_exports, __webpack_require__) => { + var isRegExp = __webpack_require__(48311); + module.exports = function (it) { + if (isRegExp(it)) throw TypeError("The method doesn't accept regular expressions"); + return it; + }; + }, + 47: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var DESCRIPTORS = __webpack_require__(7400), + fails = __webpack_require__(24229), + objectKeys = __webpack_require__(65632), + getOwnPropertySymbolsModule = __webpack_require__(10894), + propertyIsEnumerableModule = __webpack_require__(19195), + toObject = __webpack_require__(92991), + IndexedObject = __webpack_require__(9337), + $assign = Object.assign, + defineProperty = Object.defineProperty; + module.exports = + !$assign || + fails(function () { + if ( + DESCRIPTORS && + 1 !== + $assign( + { b: 1 }, + $assign( + defineProperty({}, 'a', { + enumerable: !0, + get: function () { + defineProperty(this, 'b', { value: 3, enumerable: !1 }); + }, + }), + { b: 2 }, + ), + ).b + ) + return !0; + var A = {}, + B = {}, + symbol = Symbol(); + return ( + (A[symbol] = 7), + 'abcdefghijklmnopqrst'.split('').forEach(function (chr) { + B[chr] = chr; + }), + 7 != $assign({}, A)[symbol] || 'abcdefghijklmnopqrst' != objectKeys($assign({}, B)).join('') + ); + }) + ? function assign(target, source) { + for ( + var T = toObject(target), + argumentsLength = arguments.length, + index = 1, + getOwnPropertySymbols = getOwnPropertySymbolsModule.f, + propertyIsEnumerable = propertyIsEnumerableModule.f; + argumentsLength > index; + + ) + for ( + var key, + S = IndexedObject(arguments[index++]), + keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S), + length = keys.length, + j = 0; + length > j; + + ) + (key = keys[j++]), (DESCRIPTORS && !propertyIsEnumerable.call(S, key)) || (T[key] = S[key]); + return T; + } + : $assign; + }, + 22391: (module, __unused_webpack_exports, __webpack_require__) => { + var activeXDocument, + anObject = __webpack_require__(21176), + defineProperties = __webpack_require__(90219), + enumBugKeys = __webpack_require__(13837), + hiddenKeys = __webpack_require__(95977), + html = __webpack_require__(53777), + documentCreateElement = __webpack_require__(22635), + sharedKey = __webpack_require__(44399), + IE_PROTO = sharedKey('IE_PROTO'), + EmptyConstructor = function () {}, + scriptTag = function (content) { + return ''; + }, + NullProtoObject = function () { + try { + activeXDocument = document.domain && new ActiveXObject('htmlfile'); + } catch (error) {} + var iframeDocument, iframe; + NullProtoObject = activeXDocument + ? (function (activeXDocument) { + activeXDocument.write(scriptTag('')), activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + return (activeXDocument = null), temp; + })(activeXDocument) + : (((iframe = documentCreateElement('iframe')).style.display = 'none'), + html.appendChild(iframe), + (iframe.src = String('javascript:')), + (iframeDocument = iframe.contentWindow.document).open(), + iframeDocument.write(scriptTag('document.F=Object')), + iframeDocument.close(), + iframeDocument.F); + for (var length = enumBugKeys.length; length--; ) delete NullProtoObject.prototype[enumBugKeys[length]]; + return NullProtoObject(); + }; + (hiddenKeys[IE_PROTO] = !0), + (module.exports = + Object.create || + function create(O, Properties) { + var result; + return ( + null !== O + ? ((EmptyConstructor.prototype = anObject(O)), + (result = new EmptyConstructor()), + (EmptyConstructor.prototype = null), + (result[IE_PROTO] = O)) + : (result = NullProtoObject()), + void 0 === Properties ? result : defineProperties(result, Properties) + ); + }); + }, + 90219: (module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + definePropertyModule = __webpack_require__(31787), + anObject = __webpack_require__(21176), + objectKeys = __webpack_require__(65632); + module.exports = DESCRIPTORS + ? Object.defineProperties + : function defineProperties(O, Properties) { + anObject(O); + for (var key, keys = objectKeys(Properties), length = keys.length, index = 0; length > index; ) + definePropertyModule.f(O, (key = keys[index++]), Properties[key]); + return O; + }; + }, + 31787: (__unused_webpack_module, exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + IE8_DOM_DEFINE = __webpack_require__(64394), + anObject = __webpack_require__(21176), + toPrimitive = __webpack_require__(92066), + $defineProperty = Object.defineProperty; + exports.f = DESCRIPTORS + ? $defineProperty + : function defineProperty(O, P, Attributes) { + if ((anObject(O), (P = toPrimitive(P, !0)), anObject(Attributes), IE8_DOM_DEFINE)) + try { + return $defineProperty(O, P, Attributes); + } catch (error) {} + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); + return 'value' in Attributes && (O[P] = Attributes.value), O; + }; + }, + 97933: (__unused_webpack_module, exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + propertyIsEnumerableModule = __webpack_require__(19195), + createPropertyDescriptor = __webpack_require__(65358), + toIndexedObject = __webpack_require__(10905), + toPrimitive = __webpack_require__(92066), + has = __webpack_require__(50816), + IE8_DOM_DEFINE = __webpack_require__(64394), + $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + exports.f = DESCRIPTORS + ? $getOwnPropertyDescriptor + : function getOwnPropertyDescriptor(O, P) { + if (((O = toIndexedObject(O)), (P = toPrimitive(P, !0)), IE8_DOM_DEFINE)) + try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) {} + if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); + }; + }, + 10166: (module, __unused_webpack_exports, __webpack_require__) => { + var toIndexedObject = __webpack_require__(10905), + $getOwnPropertyNames = __webpack_require__(78151).f, + toString = {}.toString, + windowNames = + 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; + module.exports.f = function getOwnPropertyNames(it) { + return windowNames && '[object Window]' == toString.call(it) + ? (function (it) { + try { + return $getOwnPropertyNames(it); + } catch (error) { + return windowNames.slice(); + } + })(it) + : $getOwnPropertyNames(toIndexedObject(it)); + }; + }, + 78151: (__unused_webpack_module, exports, __webpack_require__) => { + var internalObjectKeys = __webpack_require__(90140), + hiddenKeys = __webpack_require__(13837).concat('length', 'prototype'); + exports.f = + Object.getOwnPropertyNames || + function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys); + }; + }, + 10894: (__unused_webpack_module, exports) => { + exports.f = Object.getOwnPropertySymbols; + }, + 67567: (module, __unused_webpack_exports, __webpack_require__) => { + var has = __webpack_require__(50816), + toObject = __webpack_require__(92991), + sharedKey = __webpack_require__(44399), + CORRECT_PROTOTYPE_GETTER = __webpack_require__(27528), + IE_PROTO = sharedKey('IE_PROTO'), + ObjectPrototype = Object.prototype; + module.exports = CORRECT_PROTOTYPE_GETTER + ? Object.getPrototypeOf + : function (O) { + return ( + (O = toObject(O)), + has(O, IE_PROTO) + ? O[IE_PROTO] + : 'function' == typeof O.constructor && O instanceof O.constructor + ? O.constructor.prototype + : O instanceof Object + ? ObjectPrototype + : null + ); + }; + }, + 90140: (module, __unused_webpack_exports, __webpack_require__) => { + var has = __webpack_require__(50816), + toIndexedObject = __webpack_require__(10905), + indexOf = __webpack_require__(19540).indexOf, + hiddenKeys = __webpack_require__(95977); + module.exports = function (object, names) { + var key, + O = toIndexedObject(object), + i = 0, + result = []; + for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); + for (; names.length > i; ) has(O, (key = names[i++])) && (~indexOf(result, key) || result.push(key)); + return result; + }; + }, + 65632: (module, __unused_webpack_exports, __webpack_require__) => { + var internalObjectKeys = __webpack_require__(90140), + enumBugKeys = __webpack_require__(13837); + module.exports = + Object.keys || + function keys(O) { + return internalObjectKeys(O, enumBugKeys); + }; + }, + 19195: (__unused_webpack_module, exports) => { + 'use strict'; + var $propertyIsEnumerable = {}.propertyIsEnumerable, + getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, + NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); + exports.f = NASHORN_BUG + ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; + } + : $propertyIsEnumerable; + }, + 56540: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + aPossiblePrototype = __webpack_require__(88505); + module.exports = + Object.setPrototypeOf || + ('__proto__' in {} + ? (function () { + var setter, + CORRECT_SETTER = !1, + test = {}; + try { + (setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set).call(test, []), + (CORRECT_SETTER = test instanceof Array); + } catch (error) {} + return function setPrototypeOf(O, proto) { + return ( + anObject(O), + aPossiblePrototype(proto), + CORRECT_SETTER ? setter.call(O, proto) : (O.__proto__ = proto), + O + ); + }; + })() + : void 0); + }, + 87664: (module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + objectKeys = __webpack_require__(65632), + toIndexedObject = __webpack_require__(10905), + propertyIsEnumerable = __webpack_require__(19195).f, + createMethod = function (TO_ENTRIES) { + return function (it) { + for ( + var key, O = toIndexedObject(it), keys = objectKeys(O), length = keys.length, i = 0, result = []; + length > i; + + ) + (key = keys[i++]), + (DESCRIPTORS && !propertyIsEnumerable.call(O, key)) || result.push(TO_ENTRIES ? [key, O[key]] : O[key]); + return result; + }; + }; + module.exports = { entries: createMethod(!0), values: createMethod(!1) }; + }, + 44059: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var TO_STRING_TAG_SUPPORT = __webpack_require__(71601), + classof = __webpack_require__(81589); + module.exports = TO_STRING_TAG_SUPPORT + ? {}.toString + : function toString() { + return '[object ' + classof(this) + ']'; + }; + }, + 4826: (module, __unused_webpack_exports, __webpack_require__) => { + var getBuiltIn = __webpack_require__(31333), + getOwnPropertyNamesModule = __webpack_require__(78151), + getOwnPropertySymbolsModule = __webpack_require__(10894), + anObject = __webpack_require__(21176); + module.exports = + getBuiltIn('Reflect', 'ownKeys') || + function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)), + getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; + }; + }, + 49276: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859); + module.exports = global; + }, + 64624: module => { + module.exports = function (exec) { + try { + return { error: !1, value: exec() }; + } catch (error) { + return { error: !0, value: error }; + } + }; + }, + 62391: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + isObject = __webpack_require__(85052), + newPromiseCapability = __webpack_require__(16485); + module.exports = function (C, x) { + if ((anObject(C), isObject(x) && x.constructor === C)) return x; + var promiseCapability = newPromiseCapability.f(C); + return (0, promiseCapability.resolve)(x), promiseCapability.promise; + }; + }, + 98787: (module, __unused_webpack_exports, __webpack_require__) => { + var redefine = __webpack_require__(27487); + module.exports = function (target, src, options) { + for (var key in src) redefine(target, key, src[key], options); + return target; + }; + }, + 27487: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + createNonEnumerableProperty = __webpack_require__(75762), + has = __webpack_require__(50816), + setGlobal = __webpack_require__(12079), + inspectSource = __webpack_require__(8511), + InternalStateModule = __webpack_require__(56407), + getInternalState = InternalStateModule.get, + enforceInternalState = InternalStateModule.enforce, + TEMPLATE = String(String).split('String'); + (module.exports = function (O, key, value, options) { + var state, + unsafe = !!options && !!options.unsafe, + simple = !!options && !!options.enumerable, + noTargetGet = !!options && !!options.noTargetGet; + 'function' == typeof value && + ('string' != typeof key || has(value, 'name') || createNonEnumerableProperty(value, 'name', key), + (state = enforceInternalState(value)).source || + (state.source = TEMPLATE.join('string' == typeof key ? key : ''))), + O !== global + ? (unsafe ? !noTargetGet && O[key] && (simple = !0) : delete O[key], + simple ? (O[key] = value) : createNonEnumerableProperty(O, key, value)) + : simple + ? (O[key] = value) + : setGlobal(key, value); + })(Function.prototype, 'toString', function toString() { + return ('function' == typeof this && getInternalState(this).source) || inspectSource(this); + }); + }, + 98115: (module, __unused_webpack_exports, __webpack_require__) => { + var classof = __webpack_require__(27079), + regexpExec = __webpack_require__(63466); + module.exports = function (R, S) { + var exec = R.exec; + if ('function' == typeof exec) { + var result = exec.call(R, S); + if ('object' != typeof result) + throw TypeError('RegExp exec method returned something other than an Object or null'); + return result; + } + if ('RegExp' !== classof(R)) throw TypeError('RegExp#exec called on incompatible receiver'); + return regexpExec.call(R, S); + }; + }, + 63466: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var re1, + re2, + regexpFlags = __webpack_require__(30895), + stickyHelpers = __webpack_require__(25650), + shared = __webpack_require__(33036), + create = __webpack_require__(22391), + getInternalState = __webpack_require__(56407).get, + UNSUPPORTED_DOT_ALL = __webpack_require__(42926), + UNSUPPORTED_NCG = __webpack_require__(10461), + nativeExec = RegExp.prototype.exec, + nativeReplace = shared('native-string-replace', String.prototype.replace), + patchedExec = nativeExec, + UPDATES_LAST_INDEX_WRONG = + ((re1 = /a/), + (re2 = /b*/g), + nativeExec.call(re1, 'a'), + nativeExec.call(re2, 'a'), + 0 !== re1.lastIndex || 0 !== re2.lastIndex), + UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET, + NPCG_INCLUDED = void 0 !== /()??/.exec('')[1]; + (UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG) && + (patchedExec = function exec(str) { + var result, + reCopy, + lastIndex, + match, + i, + object, + group, + re = this, + state = getInternalState(re), + raw = state.raw; + if (raw) + return ( + (raw.lastIndex = re.lastIndex), + (result = patchedExec.call(raw, str)), + (re.lastIndex = raw.lastIndex), + result + ); + var groups = state.groups, + sticky = UNSUPPORTED_Y && re.sticky, + flags = regexpFlags.call(re), + source = re.source, + charsAdded = 0, + strCopy = str; + if ( + (sticky && + (-1 === (flags = flags.replace('y', '')).indexOf('g') && (flags += 'g'), + (strCopy = String(str).slice(re.lastIndex)), + re.lastIndex > 0 && + (!re.multiline || (re.multiline && '\n' !== str[re.lastIndex - 1])) && + ((source = '(?: ' + source + ')'), (strCopy = ' ' + strCopy), charsAdded++), + (reCopy = new RegExp('^(?:' + source + ')', flags))), + NPCG_INCLUDED && (reCopy = new RegExp('^' + source + '$(?!\\s)', flags)), + UPDATES_LAST_INDEX_WRONG && (lastIndex = re.lastIndex), + (match = nativeExec.call(sticky ? reCopy : re, strCopy)), + sticky + ? match + ? ((match.input = match.input.slice(charsAdded)), + (match[0] = match[0].slice(charsAdded)), + (match.index = re.lastIndex), + (re.lastIndex += match[0].length)) + : (re.lastIndex = 0) + : UPDATES_LAST_INDEX_WRONG && + match && + (re.lastIndex = re.global ? match.index + match[0].length : lastIndex), + NPCG_INCLUDED && + match && + match.length > 1 && + nativeReplace.call(match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (match[i] = void 0); + }), + match && groups) + ) + for (match.groups = object = create(null), i = 0; i < groups.length; i++) + object[(group = groups[i])[0]] = match[group[1]]; + return match; + }), + (module.exports = patchedExec); + }, + 30895: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var anObject = __webpack_require__(21176); + module.exports = function () { + var that = anObject(this), + result = ''; + return ( + that.global && (result += 'g'), + that.ignoreCase && (result += 'i'), + that.multiline && (result += 'm'), + that.dotAll && (result += 's'), + that.unicode && (result += 'u'), + that.sticky && (result += 'y'), + result + ); + }; + }, + 25650: (__unused_webpack_module, exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + RE = function (s, f) { + return RegExp(s, f); + }; + (exports.UNSUPPORTED_Y = fails(function () { + var re = RE('a', 'y'); + return (re.lastIndex = 2), null != re.exec('abcd'); + })), + (exports.BROKEN_CARET = fails(function () { + var re = RE('^r', 'gy'); + return (re.lastIndex = 2), null != re.exec('str'); + })); + }, + 42926: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = fails(function () { + var re = RegExp('.', 'string'.charAt(0)); + return !(re.dotAll && re.exec('\n') && 's' === re.flags); + }); + }, + 10461: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = fails(function () { + var re = RegExp('(?b)', 'string'.charAt(5)); + return 'b' !== re.exec('b').groups.a || 'bc' !== 'b'.replace(re, '$c'); + }); + }, + 58885: module => { + module.exports = function (it) { + if (null == it) throw TypeError("Can't call method on " + it); + return it; + }; + }, + 72101: module => { + module.exports = + Object.is || + function is(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : x != x && y != y; + }; + }, + 12079: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + createNonEnumerableProperty = __webpack_require__(75762); + module.exports = function (key, value) { + try { + createNonEnumerableProperty(global, key, value); + } catch (error) { + global[key] = value; + } + return value; + }; + }, + 71832: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getBuiltIn = __webpack_require__(31333), + definePropertyModule = __webpack_require__(31787), + wellKnownSymbol = __webpack_require__(70095), + DESCRIPTORS = __webpack_require__(7400), + SPECIES = wellKnownSymbol('species'); + module.exports = function (CONSTRUCTOR_NAME) { + var Constructor = getBuiltIn(CONSTRUCTOR_NAME), + defineProperty = definePropertyModule.f; + DESCRIPTORS && + Constructor && + !Constructor[SPECIES] && + defineProperty(Constructor, SPECIES, { + configurable: !0, + get: function () { + return this; + }, + }); + }; + }, + 54555: (module, __unused_webpack_exports, __webpack_require__) => { + var defineProperty = __webpack_require__(31787).f, + has = __webpack_require__(50816), + TO_STRING_TAG = __webpack_require__(70095)('toStringTag'); + module.exports = function (it, TAG, STATIC) { + it && + !has((it = STATIC ? it : it.prototype), TO_STRING_TAG) && + defineProperty(it, TO_STRING_TAG, { configurable: !0, value: TAG }); + }; + }, + 44399: (module, __unused_webpack_exports, __webpack_require__) => { + var shared = __webpack_require__(33036), + uid = __webpack_require__(81441), + keys = shared('keys'); + module.exports = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + }, + 85353: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + setGlobal = __webpack_require__(12079), + store = global['__core-js_shared__'] || setGlobal('__core-js_shared__', {}); + module.exports = store; + }, + 33036: (module, __unused_webpack_exports, __webpack_require__) => { + var IS_PURE = __webpack_require__(24231), + store = __webpack_require__(85353); + (module.exports = function (key, value) { + return store[key] || (store[key] = void 0 !== value ? value : {}); + })('versions', []).push({ + version: '3.15.2', + mode: IS_PURE ? 'pure' : 'global', + copyright: '© 2021 Denis Pushkarev (zloirock.ru)', + }); + }, + 37942: (module, __unused_webpack_exports, __webpack_require__) => { + var anObject = __webpack_require__(21176), + aFunction = __webpack_require__(93819), + SPECIES = __webpack_require__(70095)('species'); + module.exports = function (O, defaultConstructor) { + var S, + C = anObject(O).constructor; + return void 0 === C || null == (S = anObject(C)[SPECIES]) ? defaultConstructor : aFunction(S); + }; + }, + 59540: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229); + module.exports = function (METHOD_NAME) { + return fails(function () { + var test = ''[METHOD_NAME]('"'); + return test !== test.toLowerCase() || test.split('"').length > 3; + }); + }; + }, + 30966: (module, __unused_webpack_exports, __webpack_require__) => { + var toInteger = __webpack_require__(16051), + requireObjectCoercible = __webpack_require__(58885), + createMethod = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var first, + second, + S = String(requireObjectCoercible($this)), + position = toInteger(pos), + size = S.length; + return position < 0 || position >= size + ? CONVERT_TO_STRING + ? '' + : void 0 + : (first = S.charCodeAt(position)) < 55296 || + first > 56319 || + position + 1 === size || + (second = S.charCodeAt(position + 1)) < 56320 || + second > 57343 + ? CONVERT_TO_STRING + ? S.charAt(position) + : first + : CONVERT_TO_STRING + ? S.slice(position, position + 2) + : second - 56320 + ((first - 55296) << 10) + 65536; + }; + }; + module.exports = { codeAt: createMethod(!1), charAt: createMethod(!0) }; + }, + 77321: module => { + 'use strict'; + var regexNonASCII = /[^\0-\u007E]/, + regexSeparators = /[.\u3002\uFF0E\uFF61]/g, + OVERFLOW_ERROR = 'Overflow: input needs wider integers to process', + floor = Math.floor, + stringFromCharCode = String.fromCharCode, + digitToBasic = function (digit) { + return digit + 22 + 75 * (digit < 26); + }, + adapt = function (delta, numPoints, firstTime) { + var k = 0; + for ( + delta = firstTime ? floor(delta / 700) : delta >> 1, delta += floor(delta / numPoints); + delta > 455; + k += 36 + ) + delta = floor(delta / 35); + return floor(k + (36 * delta) / (delta + 38)); + }, + encode = function (input) { + var output = []; + input = (function (string) { + for (var output = [], counter = 0, length = string.length; counter < length; ) { + var value = string.charCodeAt(counter++); + if (value >= 55296 && value <= 56319 && counter < length) { + var extra = string.charCodeAt(counter++); + 56320 == (64512 & extra) + ? output.push(((1023 & value) << 10) + (1023 & extra) + 65536) + : (output.push(value), counter--); + } else output.push(value); + } + return output; + })(input); + var i, + currentValue, + inputLength = input.length, + n = 128, + delta = 0, + bias = 72; + for (i = 0; i < input.length; i++) + (currentValue = input[i]) < 128 && output.push(stringFromCharCode(currentValue)); + var basicLength = output.length, + handledCPCount = basicLength; + for (basicLength && output.push('-'); handledCPCount < inputLength; ) { + var m = 2147483647; + for (i = 0; i < input.length; i++) (currentValue = input[i]) >= n && currentValue < m && (m = currentValue); + var handledCPCountPlusOne = handledCPCount + 1; + if (m - n > floor((2147483647 - delta) / handledCPCountPlusOne)) throw RangeError(OVERFLOW_ERROR); + for (delta += (m - n) * handledCPCountPlusOne, n = m, i = 0; i < input.length; i++) { + if ((currentValue = input[i]) < n && ++delta > 2147483647) throw RangeError(OVERFLOW_ERROR); + if (currentValue == n) { + for (var q = delta, k = 36; ; k += 36) { + var t = k <= bias ? 1 : k >= bias + 26 ? 26 : k - bias; + if (q < t) break; + var qMinusT = q - t, + baseMinusT = 36 - t; + output.push(stringFromCharCode(digitToBasic(t + (qMinusT % baseMinusT)))), + (q = floor(qMinusT / baseMinusT)); + } + output.push(stringFromCharCode(digitToBasic(q))), + (bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength)), + (delta = 0), + ++handledCPCount; + } + } + ++delta, ++n; + } + return output.join(''); + }; + module.exports = function (input) { + var i, + label, + encoded = [], + labels = input.toLowerCase().replace(regexSeparators, '.').split('.'); + for (i = 0; i < labels.length; i++) + (label = labels[i]), encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label); + return encoded.join('.'); + }; + }, + 93124: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toInteger = __webpack_require__(16051), + requireObjectCoercible = __webpack_require__(58885); + module.exports = function repeat(count) { + var str = String(requireObjectCoercible(this)), + result = '', + n = toInteger(count); + if (n < 0 || n == 1 / 0) throw RangeError('Wrong number of repetitions'); + for (; n > 0; (n >>>= 1) && (str += str)) 1 & n && (result += str); + return result; + }; + }, + 9445: (module, __unused_webpack_exports, __webpack_require__) => { + var fails = __webpack_require__(24229), + whitespaces = __webpack_require__(41647); + module.exports = function (METHOD_NAME) { + return fails(function () { + return ( + !!whitespaces[METHOD_NAME]() || '​…᠎' != '​…᠎'[METHOD_NAME]() || whitespaces[METHOD_NAME].name !== METHOD_NAME + ); + }); + }; + }, + 1017: (module, __unused_webpack_exports, __webpack_require__) => { + var requireObjectCoercible = __webpack_require__(58885), + whitespace = '[' + __webpack_require__(41647) + ']', + ltrim = RegExp('^' + whitespace + whitespace + '*'), + rtrim = RegExp(whitespace + whitespace + '*$'), + createMethod = function (TYPE) { + return function ($this) { + var string = String(requireObjectCoercible($this)); + return ( + 1 & TYPE && (string = string.replace(ltrim, '')), 2 & TYPE && (string = string.replace(rtrim, '')), string + ); + }; + }; + module.exports = { start: createMethod(1), end: createMethod(2), trim: createMethod(3) }; + }, + 55795: (module, __unused_webpack_exports, __webpack_require__) => { + var defer, + channel, + port, + global = __webpack_require__(9859), + fails = __webpack_require__(24229), + bind = __webpack_require__(97636), + html = __webpack_require__(53777), + createElement = __webpack_require__(22635), + IS_IOS = __webpack_require__(32023), + IS_NODE = __webpack_require__(28801), + location = global.location, + set = global.setImmediate, + clear = global.clearImmediate, + process = global.process, + MessageChannel = global.MessageChannel, + Dispatch = global.Dispatch, + counter = 0, + queue = {}, + run = function (id) { + if (queue.hasOwnProperty(id)) { + var fn = queue[id]; + delete queue[id], fn(); + } + }, + runner = function (id) { + return function () { + run(id); + }; + }, + listener = function (event) { + run(event.data); + }, + post = function (id) { + global.postMessage(id + '', location.protocol + '//' + location.host); + }; + (set && clear) || + ((set = function setImmediate(fn) { + for (var args = [], i = 1; arguments.length > i; ) args.push(arguments[i++]); + return ( + (queue[++counter] = function () { + ('function' == typeof fn ? fn : Function(fn)).apply(void 0, args); + }), + defer(counter), + counter + ); + }), + (clear = function clearImmediate(id) { + delete queue[id]; + }), + IS_NODE + ? (defer = function (id) { + process.nextTick(runner(id)); + }) + : Dispatch && Dispatch.now + ? (defer = function (id) { + Dispatch.now(runner(id)); + }) + : MessageChannel && !IS_IOS + ? ((port = (channel = new MessageChannel()).port2), + (channel.port1.onmessage = listener), + (defer = bind(port.postMessage, port, 1))) + : global.addEventListener && + 'function' == typeof postMessage && + !global.importScripts && + location && + 'file:' !== location.protocol && + !fails(post) + ? ((defer = post), global.addEventListener('message', listener, !1)) + : (defer = + 'onreadystatechange' in createElement('script') + ? function (id) { + html.appendChild(createElement('script')).onreadystatechange = function () { + html.removeChild(this), run(id); + }; + } + : function (id) { + setTimeout(runner(id), 0); + })), + (module.exports = { set, clear }); + }, + 90143: (module, __unused_webpack_exports, __webpack_require__) => { + var classof = __webpack_require__(27079); + module.exports = function (value) { + if ('number' != typeof value && 'Number' != classof(value)) throw TypeError('Incorrect invocation'); + return +value; + }; + }, + 43231: (module, __unused_webpack_exports, __webpack_require__) => { + var toInteger = __webpack_require__(16051), + max = Math.max, + min = Math.min; + module.exports = function (index, length) { + var integer = toInteger(index); + return integer < 0 ? max(integer + length, 0) : min(integer, length); + }; + }, + 10905: (module, __unused_webpack_exports, __webpack_require__) => { + var IndexedObject = __webpack_require__(9337), + requireObjectCoercible = __webpack_require__(58885); + module.exports = function (it) { + return IndexedObject(requireObjectCoercible(it)); + }; + }, + 16051: module => { + var ceil = Math.ceil, + floor = Math.floor; + module.exports = function (argument) { + return isNaN((argument = +argument)) ? 0 : (argument > 0 ? floor : ceil)(argument); + }; + }, + 34237: (module, __unused_webpack_exports, __webpack_require__) => { + var toInteger = __webpack_require__(16051), + min = Math.min; + module.exports = function (argument) { + return argument > 0 ? min(toInteger(argument), 9007199254740991) : 0; + }; + }, + 92991: (module, __unused_webpack_exports, __webpack_require__) => { + var requireObjectCoercible = __webpack_require__(58885); + module.exports = function (argument) { + return Object(requireObjectCoercible(argument)); + }; + }, + 92066: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(85052); + module.exports = function (input, PREFERRED_STRING) { + if (!isObject(input)) return input; + var fn, val; + if (PREFERRED_STRING && 'function' == typeof (fn = input.toString) && !isObject((val = fn.call(input)))) + return val; + if ('function' == typeof (fn = input.valueOf) && !isObject((val = fn.call(input)))) return val; + if (!PREFERRED_STRING && 'function' == typeof (fn = input.toString) && !isObject((val = fn.call(input)))) + return val; + throw TypeError("Can't convert object to primitive value"); + }; + }, + 71601: (module, __unused_webpack_exports, __webpack_require__) => { + var test = {}; + (test[__webpack_require__(70095)('toStringTag')] = 'z'), (module.exports = '[object z]' === String(test)); + }, + 81441: module => { + var id = 0, + postfix = Math.random(); + module.exports = function (key) { + return 'Symbol(' + String(void 0 === key ? '' : key) + ')_' + (++id + postfix).toString(36); + }; + }, + 66969: (module, __unused_webpack_exports, __webpack_require__) => { + var NATIVE_SYMBOL = __webpack_require__(63839); + module.exports = NATIVE_SYMBOL && !Symbol.sham && 'symbol' == typeof Symbol.iterator; + }, + 55391: (__unused_webpack_module, exports, __webpack_require__) => { + var wellKnownSymbol = __webpack_require__(70095); + exports.f = wellKnownSymbol; + }, + 70095: (module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + shared = __webpack_require__(33036), + has = __webpack_require__(50816), + uid = __webpack_require__(81441), + NATIVE_SYMBOL = __webpack_require__(63839), + USE_SYMBOL_AS_UID = __webpack_require__(66969), + WellKnownSymbolsStore = shared('wks'), + Symbol = global.Symbol, + createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : (Symbol && Symbol.withoutSetter) || uid; + module.exports = function (name) { + return ( + (has(WellKnownSymbolsStore, name) && (NATIVE_SYMBOL || 'string' == typeof WellKnownSymbolsStore[name])) || + (NATIVE_SYMBOL && has(Symbol, name) + ? (WellKnownSymbolsStore[name] = Symbol[name]) + : (WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name))), + WellKnownSymbolsStore[name] + ); + }; + }, + 41647: module => { + module.exports = '\t\n\v\f\r                 \u2028\u2029\ufeff'; + }, + 18178: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + fails = __webpack_require__(24229), + isArray = __webpack_require__(33718), + isObject = __webpack_require__(85052), + toObject = __webpack_require__(92991), + toLength = __webpack_require__(34237), + createProperty = __webpack_require__(62324), + arraySpeciesCreate = __webpack_require__(87501), + arrayMethodHasSpeciesSupport = __webpack_require__(31460), + wellKnownSymbol = __webpack_require__(70095), + V8_VERSION = __webpack_require__(6358), + IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'), + IS_CONCAT_SPREADABLE_SUPPORT = + V8_VERSION >= 51 || + !fails(function () { + var array = []; + return (array[IS_CONCAT_SPREADABLE] = !1), array.concat()[0] !== array; + }), + SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'), + isConcatSpreadable = function (O) { + if (!isObject(O)) return !1; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return void 0 !== spreadable ? !!spreadable : isArray(O); + }; + $( + { target: 'Array', proto: !0, forced: !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT }, + { + concat: function concat(arg) { + var i, + k, + length, + len, + E, + O = toObject(this), + A = arraySpeciesCreate(O, 0), + n = 0; + for (i = -1, length = arguments.length; i < length; i++) + if (isConcatSpreadable((E = -1 === i ? O : arguments[i]))) { + if (n + (len = toLength(E.length)) > 9007199254740991) + throw TypeError('Maximum allowed index exceeded'); + for (k = 0; k < len; k++, n++) k in E && createProperty(A, n, E[k]); + } else { + if (n >= 9007199254740991) throw TypeError('Maximum allowed index exceeded'); + createProperty(A, n++, E); + } + return (A.length = n), A; + }, + }, + ); + }, + 28986: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $every = __webpack_require__(89996).every; + $( + { target: 'Array', proto: !0, forced: !__webpack_require__(96038)('every') }, + { + every: function every(callbackfn) { + return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ); + }, + 92656: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + fill = __webpack_require__(97065), + addToUnscopables = __webpack_require__(9736); + $({ target: 'Array', proto: !0 }, { fill }), addToUnscopables('fill'); + }, + 95342: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $filter = __webpack_require__(89996).filter; + $( + { target: 'Array', proto: !0, forced: !__webpack_require__(31460)('filter') }, + { + filter: function filter(callbackfn) { + return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ); + }, + 9949: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $findIndex = __webpack_require__(89996).findIndex, + addToUnscopables = __webpack_require__(9736), + SKIPS_HOLES = !0; + 'findIndex' in [] && + Array(1).findIndex(function () { + SKIPS_HOLES = !1; + }), + $( + { target: 'Array', proto: !0, forced: SKIPS_HOLES }, + { + findIndex: function findIndex(callbackfn) { + return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ), + addToUnscopables('findIndex'); + }, + 49228: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $find = __webpack_require__(89996).find, + addToUnscopables = __webpack_require__(9736), + SKIPS_HOLES = !0; + 'find' in [] && + Array(1).find(function () { + SKIPS_HOLES = !1; + }), + $( + { target: 'Array', proto: !0, forced: SKIPS_HOLES }, + { + find: function find(callbackfn) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ), + addToUnscopables('find'); + }, + 38695: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + forEach = __webpack_require__(86570); + $({ target: 'Array', proto: !0, forced: [].forEach != forEach }, { forEach }); + }, + 27233: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + from = __webpack_require__(10507); + $( + { + target: 'Array', + stat: !0, + forced: !__webpack_require__(74575)(function (iterable) { + Array.from(iterable); + }), + }, + { from }, + ); + }, + 39529: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $includes = __webpack_require__(19540).includes, + addToUnscopables = __webpack_require__(9736); + $( + { target: 'Array', proto: !0 }, + { + includes: function includes(el) { + return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ), + addToUnscopables('includes'); + }, + 18145: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(23103)({ target: 'Array', stat: !0 }, { isArray: __webpack_require__(33718) }); + }, + 15735: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toIndexedObject = __webpack_require__(10905), + addToUnscopables = __webpack_require__(9736), + Iterators = __webpack_require__(45495), + InternalStateModule = __webpack_require__(56407), + defineIterator = __webpack_require__(67675), + setInternalState = InternalStateModule.set, + getInternalState = InternalStateModule.getterFor('Array Iterator'); + (module.exports = defineIterator( + Array, + 'Array', + function (iterated, kind) { + setInternalState(this, { type: 'Array Iterator', target: toIndexedObject(iterated), index: 0, kind }); + }, + function () { + var state = getInternalState(this), + target = state.target, + kind = state.kind, + index = state.index++; + return !target || index >= target.length + ? ((state.target = void 0), { value: void 0, done: !0 }) + : 'keys' == kind + ? { value: index, done: !1 } + : 'values' == kind + ? { value: target[index], done: !1 } + : { value: [index, target[index]], done: !1 }; + }, + 'values', + )), + (Iterators.Arguments = Iterators.Array), + addToUnscopables('keys'), + addToUnscopables('values'), + addToUnscopables('entries'); + }, + 16781: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + IndexedObject = __webpack_require__(9337), + toIndexedObject = __webpack_require__(10905), + arrayMethodIsStrict = __webpack_require__(96038), + nativeJoin = [].join, + ES3_STRINGS = IndexedObject != Object, + STRICT_METHOD = arrayMethodIsStrict('join', ','); + $( + { target: 'Array', proto: !0, forced: ES3_STRINGS || !STRICT_METHOD }, + { + join: function join(separator) { + return nativeJoin.call(toIndexedObject(this), void 0 === separator ? ',' : separator); + }, + }, + ); + }, + 43450: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $map = __webpack_require__(89996).map; + $( + { target: 'Array', proto: !0, forced: !__webpack_require__(31460)('map') }, + { + map: function map(callbackfn) { + return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ); + }, + 32501: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + isObject = __webpack_require__(85052), + isArray = __webpack_require__(33718), + toAbsoluteIndex = __webpack_require__(43231), + toLength = __webpack_require__(34237), + toIndexedObject = __webpack_require__(10905), + createProperty = __webpack_require__(62324), + wellKnownSymbol = __webpack_require__(70095), + HAS_SPECIES_SUPPORT = __webpack_require__(31460)('slice'), + SPECIES = wellKnownSymbol('species'), + nativeSlice = [].slice, + max = Math.max; + $( + { target: 'Array', proto: !0, forced: !HAS_SPECIES_SUPPORT }, + { + slice: function slice(start, end) { + var Constructor, + result, + n, + O = toIndexedObject(this), + length = toLength(O.length), + k = toAbsoluteIndex(start, length), + fin = toAbsoluteIndex(void 0 === end ? length : end, length); + if ( + isArray(O) && + ('function' != typeof (Constructor = O.constructor) || + (Constructor !== Array && !isArray(Constructor.prototype)) + ? isObject(Constructor) && null === (Constructor = Constructor[SPECIES]) && (Constructor = void 0) + : (Constructor = void 0), + Constructor === Array || void 0 === Constructor) + ) + return nativeSlice.call(O, k, fin); + for (result = new (void 0 === Constructor ? Array : Constructor)(max(fin - k, 0)), n = 0; k < fin; k++, n++) + k in O && createProperty(result, n, O[k]); + return (result.length = n), result; + }, + }, + ); + }, + 67321: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $some = __webpack_require__(89996).some; + $( + { target: 'Array', proto: !0, forced: !__webpack_require__(96038)('some') }, + { + some: function some(callbackfn) { + return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0); + }, + }, + ); + }, + 43430: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + aFunction = __webpack_require__(93819), + toObject = __webpack_require__(92991), + toLength = __webpack_require__(34237), + fails = __webpack_require__(24229), + internalSort = __webpack_require__(33867), + arrayMethodIsStrict = __webpack_require__(96038), + FF = __webpack_require__(22671), + IE_OR_EDGE = __webpack_require__(48506), + V8 = __webpack_require__(6358), + WEBKIT = __webpack_require__(49811), + test = [], + nativeSort = test.sort, + FAILS_ON_UNDEFINED = fails(function () { + test.sort(void 0); + }), + FAILS_ON_NULL = fails(function () { + test.sort(null); + }), + STRICT_METHOD = arrayMethodIsStrict('sort'), + STABLE_SORT = !fails(function () { + if (V8) return V8 < 70; + if (!(FF && FF > 3)) { + if (IE_OR_EDGE) return !0; + if (WEBKIT) return WEBKIT < 603; + var code, + chr, + value, + index, + result = ''; + for (code = 65; code < 76; code++) { + switch (((chr = String.fromCharCode(code)), code)) { + case 66: + case 69: + case 70: + case 72: + value = 3; + break; + case 68: + case 71: + value = 4; + break; + default: + value = 2; + } + for (index = 0; index < 47; index++) test.push({ k: chr + index, v: value }); + } + for ( + test.sort(function (a, b) { + return b.v - a.v; + }), + index = 0; + index < test.length; + index++ + ) + (chr = test[index].k.charAt(0)), result.charAt(result.length - 1) !== chr && (result += chr); + return 'DGBEFHACIJK' !== result; + } + }); + $( + { target: 'Array', proto: !0, forced: FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT }, + { + sort: function sort(comparefn) { + void 0 !== comparefn && aFunction(comparefn); + var array = toObject(this); + if (STABLE_SORT) return void 0 === comparefn ? nativeSort.call(array) : nativeSort.call(array, comparefn); + var itemsLength, + index, + items = [], + arrayLength = toLength(array.length); + for (index = 0; index < arrayLength; index++) index in array && items.push(array[index]); + for ( + items = internalSort( + items, + (function (comparefn) { + return function (x, y) { + return void 0 === y + ? -1 + : void 0 === x + ? 1 + : void 0 !== comparefn + ? +comparefn(x, y) || 0 + : String(x) > String(y) + ? 1 + : -1; + }; + })(comparefn), + ), + itemsLength = items.length, + index = 0; + index < itemsLength; + + ) + array[index] = items[index++]; + for (; index < arrayLength; ) delete array[index++]; + return array; + }, + }, + ); + }, + 99805: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + toAbsoluteIndex = __webpack_require__(43231), + toInteger = __webpack_require__(16051), + toLength = __webpack_require__(34237), + toObject = __webpack_require__(92991), + arraySpeciesCreate = __webpack_require__(87501), + createProperty = __webpack_require__(62324), + HAS_SPECIES_SUPPORT = __webpack_require__(31460)('splice'), + max = Math.max, + min = Math.min; + $( + { target: 'Array', proto: !0, forced: !HAS_SPECIES_SUPPORT }, + { + splice: function splice(start, deleteCount) { + var insertCount, + actualDeleteCount, + A, + k, + from, + to, + O = toObject(this), + len = toLength(O.length), + actualStart = toAbsoluteIndex(start, len), + argumentsLength = arguments.length; + if ( + (0 === argumentsLength + ? (insertCount = actualDeleteCount = 0) + : 1 === argumentsLength + ? ((insertCount = 0), (actualDeleteCount = len - actualStart)) + : ((insertCount = argumentsLength - 2), + (actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart))), + len + insertCount - actualDeleteCount > 9007199254740991) + ) + throw TypeError('Maximum allowed length exceeded'); + for (A = arraySpeciesCreate(O, actualDeleteCount), k = 0; k < actualDeleteCount; k++) + (from = actualStart + k) in O && createProperty(A, k, O[from]); + if (((A.length = actualDeleteCount), insertCount < actualDeleteCount)) { + for (k = actualStart; k < len - actualDeleteCount; k++) + (to = k + insertCount), (from = k + actualDeleteCount) in O ? (O[to] = O[from]) : delete O[to]; + for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1]; + } else if (insertCount > actualDeleteCount) + for (k = len - actualDeleteCount; k > actualStart; k--) + (to = k + insertCount - 1), (from = k + actualDeleteCount - 1) in O ? (O[to] = O[from]) : delete O[to]; + for (k = 0; k < insertCount; k++) O[k + actualStart] = arguments[k + 2]; + return (O.length = len - actualDeleteCount + insertCount), A; + }, + }, + ); + }, + 96264: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var createNonEnumerableProperty = __webpack_require__(75762), + dateToPrimitive = __webpack_require__(19778), + TO_PRIMITIVE = __webpack_require__(70095)('toPrimitive'), + DatePrototype = Date.prototype; + TO_PRIMITIVE in DatePrototype || createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive); + }, + 99120: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var redefine = __webpack_require__(27487), + DatePrototype = Date.prototype, + nativeDateToString = DatePrototype.toString, + getTime = DatePrototype.getTime; + new Date(NaN) + '' != 'Invalid Date' && + redefine(DatePrototype, 'toString', function toString() { + var value = getTime.call(this); + return value == value ? nativeDateToString.call(this) : 'Invalid Date'; + }); + }, + 26936: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + defineProperty = __webpack_require__(31787).f, + FunctionPrototype = Function.prototype, + FunctionPrototypeToString = FunctionPrototype.toString, + nameRE = /^\s*function ([^ (]*)/; + DESCRIPTORS && + !('name' in FunctionPrototype) && + defineProperty(FunctionPrototype, 'name', { + configurable: !0, + get: function () { + try { + return FunctionPrototypeToString.call(this).match(nameRE)[1]; + } catch (error) { + return ''; + } + }, + }); + }, + 17525: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859); + __webpack_require__(54555)(global.JSON, 'JSON', !0); + }, + 79321: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var collection = __webpack_require__(69789), + collectionStrong = __webpack_require__(98081); + module.exports = collection( + 'Map', + function (init) { + return function Map() { + return init(this, arguments.length ? arguments[0] : void 0); + }; + }, + collectionStrong, + ); + }, + 18275: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(54555)(Math, 'Math', !0); + }, + 71245: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var DESCRIPTORS = __webpack_require__(7400), + global = __webpack_require__(9859), + isForced = __webpack_require__(46541), + redefine = __webpack_require__(27487), + has = __webpack_require__(50816), + classof = __webpack_require__(27079), + inheritIfRequired = __webpack_require__(20835), + toPrimitive = __webpack_require__(92066), + fails = __webpack_require__(24229), + create = __webpack_require__(22391), + getOwnPropertyNames = __webpack_require__(78151).f, + getOwnPropertyDescriptor = __webpack_require__(97933).f, + defineProperty = __webpack_require__(31787).f, + trim = __webpack_require__(1017).trim, + NativeNumber = global.Number, + NumberPrototype = NativeNumber.prototype, + BROKEN_CLASSOF = 'Number' == classof(create(NumberPrototype)), + toNumber = function (argument) { + var first, + third, + radix, + maxCode, + digits, + length, + index, + code, + it = toPrimitive(argument, !1); + if ('string' == typeof it && it.length > 2) + if (43 === (first = (it = trim(it)).charCodeAt(0)) || 45 === first) { + if (88 === (third = it.charCodeAt(2)) || 120 === third) return NaN; + } else if (48 === first) { + switch (it.charCodeAt(1)) { + case 66: + case 98: + (radix = 2), (maxCode = 49); + break; + case 79: + case 111: + (radix = 8), (maxCode = 55); + break; + default: + return +it; + } + for (length = (digits = it.slice(2)).length, index = 0; index < length; index++) + if ((code = digits.charCodeAt(index)) < 48 || code > maxCode) return NaN; + return parseInt(digits, radix); + } + return +it; + }; + if (isForced('Number', !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { + for ( + var key, + NumberWrapper = function Number(value) { + var it = arguments.length < 1 ? 0 : value, + dummy = this; + return dummy instanceof NumberWrapper && + (BROKEN_CLASSOF + ? fails(function () { + NumberPrototype.valueOf.call(dummy); + }) + : 'Number' != classof(dummy)) + ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) + : toNumber(it); + }, + keys = DESCRIPTORS + ? getOwnPropertyNames(NativeNumber) + : 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range'.split( + ',', + ), + j = 0; + keys.length > j; + j++ + ) + has(NativeNumber, (key = keys[j])) && + !has(NumberWrapper, key) && + defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key)); + (NumberWrapper.prototype = NumberPrototype), + (NumberPrototype.constructor = NumberWrapper), + redefine(global, 'Number', NumberWrapper); + } + }, + 33132: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(23103)({ target: 'Number', stat: !0 }, { isInteger: __webpack_require__(93223) }); + }, + 87412: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + isInteger = __webpack_require__(93223), + abs = Math.abs; + $( + { target: 'Number', stat: !0 }, + { + isSafeInteger: function isSafeInteger(number) { + return isInteger(number) && abs(number) <= 9007199254740991; + }, + }, + ); + }, + 58143: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(23103)({ target: 'Number', stat: !0 }, { MAX_SAFE_INTEGER: 9007199254740991 }); + }, + 91321: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + toInteger = __webpack_require__(16051), + thisNumberValue = __webpack_require__(90143), + repeat = __webpack_require__(93124), + fails = __webpack_require__(24229), + nativeToFixed = (1).toFixed, + floor = Math.floor, + pow = function (x, n, acc) { + return 0 === n ? acc : n % 2 == 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); + }, + multiply = function (data, n, c) { + for (var index = -1, c2 = c; ++index < 6; ) + (c2 += n * data[index]), (data[index] = c2 % 1e7), (c2 = floor(c2 / 1e7)); + }, + divide = function (data, n) { + for (var index = 6, c = 0; --index >= 0; ) + (c += data[index]), (data[index] = floor(c / n)), (c = (c % n) * 1e7); + }, + dataToString = function (data) { + for (var index = 6, s = ''; --index >= 0; ) + if ('' !== s || 0 === index || 0 !== data[index]) { + var t = String(data[index]); + s = '' === s ? t : s + repeat.call('0', 7 - t.length) + t; + } + return s; + }; + $( + { + target: 'Number', + proto: !0, + forced: + (nativeToFixed && + ('0.000' !== (8e-5).toFixed(3) || + '1' !== (0.9).toFixed(0) || + '1.25' !== (1.255).toFixed(2) || + '1000000000000000128' !== (0xde0b6b3a7640080).toFixed(0))) || + !fails(function () { + nativeToFixed.call({}); + }), + }, + { + toFixed: function toFixed(fractionDigits) { + var e, + z, + j, + k, + number = thisNumberValue(this), + fractDigits = toInteger(fractionDigits), + data = [0, 0, 0, 0, 0, 0], + sign = '', + result = '0'; + if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits'); + if (number != number) return 'NaN'; + if (number <= -1e21 || number >= 1e21) return String(number); + if ((number < 0 && ((sign = '-'), (number = -number)), number > 1e-21)) + if ( + ((z = + (e = + (function (x) { + for (var n = 0, x2 = x; x2 >= 4096; ) (n += 12), (x2 /= 4096); + for (; x2 >= 2; ) (n += 1), (x2 /= 2); + return n; + })(number * pow(2, 69, 1)) - 69) < 0 + ? number * pow(2, -e, 1) + : number / pow(2, e, 1)), + (z *= 4503599627370496), + (e = 52 - e) > 0) + ) { + for (multiply(data, 0, z), j = fractDigits; j >= 7; ) multiply(data, 1e7, 0), (j -= 7); + for (multiply(data, pow(10, j, 1), 0), j = e - 1; j >= 23; ) divide(data, 1 << 23), (j -= 23); + divide(data, 1 << j), multiply(data, 1, 1), divide(data, 2), (result = dataToString(data)); + } else + multiply(data, 0, z), + multiply(data, 1 << -e, 0), + (result = dataToString(data) + repeat.call('0', fractDigits)); + return (result = + fractDigits > 0 + ? sign + + ((k = result.length) <= fractDigits + ? '0.' + repeat.call('0', fractDigits - k) + result + : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits)) + : sign + result); + }, + }, + ); + }, + 43105: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + assign = __webpack_require__(47); + $({ target: 'Object', stat: !0, forced: Object.assign !== assign }, { assign }); + }, + 95094: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + DESCRIPTORS = __webpack_require__(7400); + $( + { target: 'Object', stat: !0, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, + { defineProperty: __webpack_require__(31787).f }, + ); + }, + 35883: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + $entries = __webpack_require__(87664).entries; + $( + { target: 'Object', stat: !0 }, + { + entries: function entries(O) { + return $entries(O); + }, + }, + ); + }, + 22144: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + FREEZING = __webpack_require__(68476), + fails = __webpack_require__(24229), + isObject = __webpack_require__(85052), + onFreeze = __webpack_require__(95926).onFreeze, + $freeze = Object.freeze; + $( + { + target: 'Object', + stat: !0, + forced: fails(function () { + $freeze(1); + }), + sham: !FREEZING, + }, + { + freeze: function freeze(it) { + return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it; + }, + }, + ); + }, + 81804: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + iterate = __webpack_require__(89003), + createProperty = __webpack_require__(62324); + $( + { target: 'Object', stat: !0 }, + { + fromEntries: function fromEntries(iterable) { + var obj = {}; + return ( + iterate( + iterable, + function (k, v) { + createProperty(obj, k, v); + }, + { AS_ENTRIES: !0 }, + ), + obj + ); + }, + }, + ); + }, + 68625: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + fails = __webpack_require__(24229), + toIndexedObject = __webpack_require__(10905), + nativeGetOwnPropertyDescriptor = __webpack_require__(97933).f, + DESCRIPTORS = __webpack_require__(7400), + FAILS_ON_PRIMITIVES = fails(function () { + nativeGetOwnPropertyDescriptor(1); + }); + $( + { target: 'Object', stat: !0, forced: !DESCRIPTORS || FAILS_ON_PRIMITIVES, sham: !DESCRIPTORS }, + { + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) { + return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key); + }, + }, + ); + }, + 62775: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + DESCRIPTORS = __webpack_require__(7400), + ownKeys = __webpack_require__(4826), + toIndexedObject = __webpack_require__(10905), + getOwnPropertyDescriptorModule = __webpack_require__(97933), + createProperty = __webpack_require__(62324); + $( + { target: 'Object', stat: !0, sham: !DESCRIPTORS }, + { + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { + for ( + var key, + descriptor, + O = toIndexedObject(object), + getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f, + keys = ownKeys(O), + result = {}, + index = 0; + keys.length > index; + + ) + void 0 !== (descriptor = getOwnPropertyDescriptor(O, (key = keys[index++]))) && + createProperty(result, key, descriptor); + return result; + }, + }, + ); + }, + 24905: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + fails = __webpack_require__(24229), + getOwnPropertyNames = __webpack_require__(10166).f; + $( + { + target: 'Object', + stat: !0, + forced: fails(function () { + return !Object.getOwnPropertyNames(1); + }), + }, + { getOwnPropertyNames }, + ); + }, + 96928: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + fails = __webpack_require__(24229), + toObject = __webpack_require__(92991), + nativeGetPrototypeOf = __webpack_require__(67567), + CORRECT_PROTOTYPE_GETTER = __webpack_require__(27528); + $( + { + target: 'Object', + stat: !0, + forced: fails(function () { + nativeGetPrototypeOf(1); + }), + sham: !CORRECT_PROTOTYPE_GETTER, + }, + { + getPrototypeOf: function getPrototypeOf(it) { + return nativeGetPrototypeOf(toObject(it)); + }, + }, + ); + }, + 49170: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(23103)({ target: 'Object', stat: !0 }, { is: __webpack_require__(72101) }); + }, + 34769: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + toObject = __webpack_require__(92991), + nativeKeys = __webpack_require__(65632); + $( + { + target: 'Object', + stat: !0, + forced: __webpack_require__(24229)(function () { + nativeKeys(1); + }), + }, + { + keys: function keys(it) { + return nativeKeys(toObject(it)); + }, + }, + ); + }, + 58188: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var TO_STRING_TAG_SUPPORT = __webpack_require__(71601), + redefine = __webpack_require__(27487), + toString = __webpack_require__(44059); + TO_STRING_TAG_SUPPORT || redefine(Object.prototype, 'toString', toString, { unsafe: !0 }); + }, + 67890: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + $values = __webpack_require__(87664).values; + $( + { target: 'Object', stat: !0 }, + { + values: function values(O) { + return $values(O); + }, + }, + ); + }, + 73439: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Internal, + OwnPromiseCapability, + PromiseWrapper, + nativeThen, + $ = __webpack_require__(23103), + IS_PURE = __webpack_require__(24231), + global = __webpack_require__(9859), + getBuiltIn = __webpack_require__(31333), + NativePromise = __webpack_require__(34226), + redefine = __webpack_require__(27487), + redefineAll = __webpack_require__(98787), + setPrototypeOf = __webpack_require__(56540), + setToStringTag = __webpack_require__(54555), + setSpecies = __webpack_require__(71832), + isObject = __webpack_require__(85052), + aFunction = __webpack_require__(93819), + anInstance = __webpack_require__(57728), + inspectSource = __webpack_require__(8511), + iterate = __webpack_require__(89003), + checkCorrectnessOfIteration = __webpack_require__(74575), + speciesConstructor = __webpack_require__(37942), + task = __webpack_require__(55795).set, + microtask = __webpack_require__(24794), + promiseResolve = __webpack_require__(62391), + hostReportErrors = __webpack_require__(14665), + newPromiseCapabilityModule = __webpack_require__(16485), + perform = __webpack_require__(64624), + InternalStateModule = __webpack_require__(56407), + isForced = __webpack_require__(46541), + wellKnownSymbol = __webpack_require__(70095), + IS_BROWSER = __webpack_require__(48639), + IS_NODE = __webpack_require__(28801), + V8_VERSION = __webpack_require__(6358), + SPECIES = wellKnownSymbol('species'), + PROMISE = 'Promise', + getInternalState = InternalStateModule.get, + setInternalState = InternalStateModule.set, + getInternalPromiseState = InternalStateModule.getterFor(PROMISE), + NativePromisePrototype = NativePromise && NativePromise.prototype, + PromiseConstructor = NativePromise, + PromiseConstructorPrototype = NativePromisePrototype, + TypeError = global.TypeError, + document = global.document, + process = global.process, + newPromiseCapability = newPromiseCapabilityModule.f, + newGenericPromiseCapability = newPromiseCapability, + DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent), + NATIVE_REJECTION_EVENT = 'function' == typeof PromiseRejectionEvent, + SUBCLASSING = !1, + FORCED = isForced(PROMISE, function () { + var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor), + GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor); + if (!GLOBAL_CORE_JS_PROMISE && 66 === V8_VERSION) return !0; + if (IS_PURE && !PromiseConstructorPrototype.finally) return !0; + if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return !1; + var promise = new PromiseConstructor(function (resolve) { + resolve(1); + }), + FakePromise = function (exec) { + exec( + function () {}, + function () {}, + ); + }; + return ( + ((promise.constructor = {})[SPECIES] = FakePromise), + !(SUBCLASSING = promise.then(function () {}) instanceof FakePromise) || + (!GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT) + ); + }), + INCORRECT_ITERATION = + FORCED || + !checkCorrectnessOfIteration(function (iterable) { + PromiseConstructor.all(iterable).catch(function () {}); + }), + isThenable = function (it) { + var then; + return !(!isObject(it) || 'function' != typeof (then = it.then)) && then; + }, + notify = function (state, isReject) { + if (!state.notified) { + state.notified = !0; + var chain = state.reactions; + microtask(function () { + for (var value = state.value, ok = 1 == state.state, index = 0; chain.length > index; ) { + var result, + then, + exited, + reaction = chain[index++], + handler = ok ? reaction.ok : reaction.fail, + resolve = reaction.resolve, + reject = reaction.reject, + domain = reaction.domain; + try { + handler + ? (ok || (2 === state.rejection && onHandleUnhandled(state), (state.rejection = 1)), + !0 === handler + ? (result = value) + : (domain && domain.enter(), + (result = handler(value)), + domain && (domain.exit(), (exited = !0))), + result === reaction.promise + ? reject(TypeError('Promise-chain cycle')) + : (then = isThenable(result)) + ? then.call(result, resolve, reject) + : resolve(result)) + : reject(value); + } catch (error) { + domain && !exited && domain.exit(), reject(error); + } + } + (state.reactions = []), (state.notified = !1), isReject && !state.rejection && onUnhandled(state); + }); + } + }, + dispatchEvent = function (name, promise, reason) { + var event, handler; + DISPATCH_EVENT + ? (((event = document.createEvent('Event')).promise = promise), + (event.reason = reason), + event.initEvent(name, !1, !0), + global.dispatchEvent(event)) + : (event = { promise, reason }), + !NATIVE_REJECTION_EVENT && (handler = global['on' + name]) + ? handler(event) + : 'unhandledrejection' === name && hostReportErrors('Unhandled promise rejection', reason); + }, + onUnhandled = function (state) { + task.call(global, function () { + var result, + promise = state.facade, + value = state.value; + if ( + isUnhandled(state) && + ((result = perform(function () { + IS_NODE + ? process.emit('unhandledRejection', value, promise) + : dispatchEvent('unhandledrejection', promise, value); + })), + (state.rejection = IS_NODE || isUnhandled(state) ? 2 : 1), + result.error) + ) + throw result.value; + }); + }, + isUnhandled = function (state) { + return 1 !== state.rejection && !state.parent; + }, + onHandleUnhandled = function (state) { + task.call(global, function () { + var promise = state.facade; + IS_NODE + ? process.emit('rejectionHandled', promise) + : dispatchEvent('rejectionhandled', promise, state.value); + }); + }, + bind = function (fn, state, unwrap) { + return function (value) { + fn(state, value, unwrap); + }; + }, + internalReject = function (state, value, unwrap) { + state.done || + ((state.done = !0), + unwrap && (state = unwrap), + (state.value = value), + (state.state = 2), + notify(state, !0)); + }, + internalResolve = function (state, value, unwrap) { + if (!state.done) { + (state.done = !0), unwrap && (state = unwrap); + try { + if (state.facade === value) throw TypeError("Promise can't be resolved itself"); + var then = isThenable(value); + then + ? microtask(function () { + var wrapper = { done: !1 }; + try { + then.call(value, bind(internalResolve, wrapper, state), bind(internalReject, wrapper, state)); + } catch (error) { + internalReject(wrapper, error, state); + } + }) + : ((state.value = value), (state.state = 1), notify(state, !1)); + } catch (error) { + internalReject({ done: !1 }, error, state); + } + } + }; + if ( + FORCED && + ((PromiseConstructorPrototype = (PromiseConstructor = function Promise(executor) { + anInstance(this, PromiseConstructor, PROMISE), aFunction(executor), Internal.call(this); + var state = getInternalState(this); + try { + executor(bind(internalResolve, state), bind(internalReject, state)); + } catch (error) { + internalReject(state, error); + } + }).prototype), + ((Internal = function Promise(executor) { + setInternalState(this, { + type: PROMISE, + done: !1, + notified: !1, + parent: !1, + reactions: [], + rejection: !1, + state: 0, + value: void 0, + }); + }).prototype = redefineAll(PromiseConstructorPrototype, { + then: function then(onFulfilled, onRejected) { + var state = getInternalPromiseState(this), + reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor)); + return ( + (reaction.ok = 'function' != typeof onFulfilled || onFulfilled), + (reaction.fail = 'function' == typeof onRejected && onRejected), + (reaction.domain = IS_NODE ? process.domain : void 0), + (state.parent = !0), + state.reactions.push(reaction), + 0 != state.state && notify(state, !1), + reaction.promise + ); + }, + catch: function (onRejected) { + return this.then(void 0, onRejected); + }, + })), + (OwnPromiseCapability = function () { + var promise = new Internal(), + state = getInternalState(promise); + (this.promise = promise), + (this.resolve = bind(internalResolve, state)), + (this.reject = bind(internalReject, state)); + }), + (newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === PromiseConstructor || C === PromiseWrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); + }), + !IS_PURE && 'function' == typeof NativePromise && NativePromisePrototype !== Object.prototype) + ) { + (nativeThen = NativePromisePrototype.then), + SUBCLASSING || + (redefine( + NativePromisePrototype, + 'then', + function then(onFulfilled, onRejected) { + var that = this; + return new PromiseConstructor(function (resolve, reject) { + nativeThen.call(that, resolve, reject); + }).then(onFulfilled, onRejected); + }, + { unsafe: !0 }, + ), + redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype.catch, { unsafe: !0 })); + try { + delete NativePromisePrototype.constructor; + } catch (error) {} + setPrototypeOf && setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype); + } + $({ global: !0, wrap: !0, forced: FORCED }, { Promise: PromiseConstructor }), + setToStringTag(PromiseConstructor, PROMISE, !1, !0), + setSpecies(PROMISE), + (PromiseWrapper = getBuiltIn(PROMISE)), + $( + { target: PROMISE, stat: !0, forced: FORCED }, + { + reject: function reject(r) { + var capability = newPromiseCapability(this); + return capability.reject.call(void 0, r), capability.promise; + }, + }, + ), + $( + { target: PROMISE, stat: !0, forced: IS_PURE || FORCED }, + { + resolve: function resolve(x) { + return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x); + }, + }, + ), + $( + { target: PROMISE, stat: !0, forced: INCORRECT_ITERATION }, + { + all: function all(iterable) { + var C = this, + capability = newPromiseCapability(C), + resolve = capability.resolve, + reject = capability.reject, + result = perform(function () { + var $promiseResolve = aFunction(C.resolve), + values = [], + counter = 0, + remaining = 1; + iterate(iterable, function (promise) { + var index = counter++, + alreadyCalled = !1; + values.push(void 0), + remaining++, + $promiseResolve.call(C, promise).then(function (value) { + alreadyCalled || + ((alreadyCalled = !0), (values[index] = value), --remaining || resolve(values)); + }, reject); + }), + --remaining || resolve(values); + }); + return result.error && reject(result.value), capability.promise; + }, + race: function race(iterable) { + var C = this, + capability = newPromiseCapability(C), + reject = capability.reject, + result = perform(function () { + var $promiseResolve = aFunction(C.resolve); + iterate(iterable, function (promise) { + $promiseResolve.call(C, promise).then(capability.resolve, reject); + }); + }); + return result.error && reject(result.value), capability.promise; + }, + }, + ); + }, + 61229: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + getBuiltIn = __webpack_require__(31333), + aFunction = __webpack_require__(93819), + anObject = __webpack_require__(21176), + isObject = __webpack_require__(85052), + create = __webpack_require__(22391), + bind = __webpack_require__(94128), + fails = __webpack_require__(24229), + nativeConstruct = getBuiltIn('Reflect', 'construct'), + NEW_TARGET_BUG = fails(function () { + function F() {} + return !(nativeConstruct(function () {}, [], F) instanceof F); + }), + ARGS_BUG = !fails(function () { + nativeConstruct(function () {}); + }), + FORCED = NEW_TARGET_BUG || ARGS_BUG; + $( + { target: 'Reflect', stat: !0, forced: FORCED, sham: FORCED }, + { + construct: function construct(Target, args) { + aFunction(Target), anObject(args); + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); + if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget); + if (Target == newTarget) { + switch (args.length) { + case 0: + return new Target(); + case 1: + return new Target(args[0]); + case 2: + return new Target(args[0], args[1]); + case 3: + return new Target(args[0], args[1], args[2]); + case 4: + return new Target(args[0], args[1], args[2], args[3]); + } + var $args = [null]; + return $args.push.apply($args, args), new (bind.apply(Target, $args))(); + } + var proto = newTarget.prototype, + instance = create(isObject(proto) ? proto : Object.prototype), + result = Function.apply.call(Target, instance, args); + return isObject(result) ? result : instance; + }, + }, + ); + }, + 92215: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + global = __webpack_require__(9859), + setToStringTag = __webpack_require__(54555); + $({ global: !0 }, { Reflect: {} }), setToStringTag(global.Reflect, 'Reflect', !0); + }, + 17368: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var DESCRIPTORS = __webpack_require__(7400), + global = __webpack_require__(9859), + isForced = __webpack_require__(46541), + inheritIfRequired = __webpack_require__(20835), + createNonEnumerableProperty = __webpack_require__(75762), + defineProperty = __webpack_require__(31787).f, + getOwnPropertyNames = __webpack_require__(78151).f, + isRegExp = __webpack_require__(48311), + getFlags = __webpack_require__(30895), + stickyHelpers = __webpack_require__(25650), + redefine = __webpack_require__(27487), + fails = __webpack_require__(24229), + has = __webpack_require__(50816), + enforceInternalState = __webpack_require__(56407).enforce, + setSpecies = __webpack_require__(71832), + wellKnownSymbol = __webpack_require__(70095), + UNSUPPORTED_DOT_ALL = __webpack_require__(42926), + UNSUPPORTED_NCG = __webpack_require__(10461), + MATCH = wellKnownSymbol('match'), + NativeRegExp = global.RegExp, + RegExpPrototype = NativeRegExp.prototype, + IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, + re1 = /a/g, + re2 = /a/g, + CORRECT_NEW = new NativeRegExp(re1) !== re1, + UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y, + BASE_FORCED = + DESCRIPTORS && + (!CORRECT_NEW || + UNSUPPORTED_Y || + UNSUPPORTED_DOT_ALL || + UNSUPPORTED_NCG || + fails(function () { + return ( + (re2[MATCH] = !1), + NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || '/a/i' != NativeRegExp(re1, 'i') + ); + })); + if (isForced('RegExp', BASE_FORCED)) { + for ( + var RegExpWrapper = function RegExp(pattern, flags) { + var rawFlags, + dotAll, + sticky, + handled, + result, + state, + thisIsRegExp = this instanceof RegExpWrapper, + patternIsRegExp = isRegExp(pattern), + flagsAreUndefined = void 0 === flags, + groups = [], + rawPattern = pattern; + if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) + return pattern; + if ( + ((patternIsRegExp || pattern instanceof RegExpWrapper) && + ((pattern = pattern.source), + flagsAreUndefined && + (flags = ('flags' in rawPattern) ? rawPattern.flags : getFlags.call(rawPattern))), + (pattern = void 0 === pattern ? '' : String(pattern)), + (flags = void 0 === flags ? '' : String(flags)), + (rawPattern = pattern), + UNSUPPORTED_DOT_ALL && + ('dotAll' in re1) && + (dotAll = !!flags && flags.indexOf('s') > -1) && + (flags = flags.replace(/s/g, '')), + (rawFlags = flags), + UNSUPPORTED_Y && + ('sticky' in re1) && + (sticky = !!flags && flags.indexOf('y') > -1) && + (flags = flags.replace(/y/g, '')), + UNSUPPORTED_NCG && + ((handled = (function (string) { + for ( + var chr, + length = string.length, + index = 0, + result = '', + named = [], + names = {}, + brackets = !1, + ncg = !1, + groupid = 0, + groupname = ''; + index <= length; + index++ + ) { + if ('\\' === (chr = string.charAt(index))) chr += string.charAt(++index); + else if (']' === chr) brackets = !1; + else if (!brackets) + switch (!0) { + case '[' === chr: + brackets = !0; + break; + case '(' === chr: + IS_NCG.test(string.slice(index + 1)) && ((index += 2), (ncg = !0)), + (result += chr), + groupid++; + continue; + case '>' === chr && ncg: + if ('' === groupname || has(names, groupname)) + throw new SyntaxError('Invalid capture group name'); + (names[groupname] = !0), named.push([groupname, groupid]), (ncg = !1), (groupname = ''); + continue; + } + ncg ? (groupname += chr) : (result += chr); + } + return [result, named]; + })(pattern)), + (pattern = handled[0]), + (groups = handled[1])), + (result = inheritIfRequired( + NativeRegExp(pattern, flags), + thisIsRegExp ? this : RegExpPrototype, + RegExpWrapper, + )), + (dotAll || sticky || groups.length) && + ((state = enforceInternalState(result)), + dotAll && + ((state.dotAll = !0), + (state.raw = RegExpWrapper( + (function (string) { + for ( + var chr, length = string.length, index = 0, result = '', brackets = !1; + index <= length; + index++ + ) + '\\' !== (chr = string.charAt(index)) + ? brackets || '.' !== chr + ? ('[' === chr ? (brackets = !0) : ']' === chr && (brackets = !1), (result += chr)) + : (result += '[\\s\\S]') + : (result += chr + string.charAt(++index)); + return result; + })(pattern), + rawFlags, + ))), + sticky && (state.sticky = !0), + groups.length && (state.groups = groups)), + pattern !== rawPattern) + ) + try { + createNonEnumerableProperty(result, 'source', '' === rawPattern ? '(?:)' : rawPattern); + } catch (error) {} + return result; + }, + proxy = function (key) { + (key in RegExpWrapper) || + defineProperty(RegExpWrapper, key, { + configurable: !0, + get: function () { + return NativeRegExp[key]; + }, + set: function (it) { + NativeRegExp[key] = it; + }, + }); + }, + keys = getOwnPropertyNames(NativeRegExp), + index = 0; + keys.length > index; + + ) + proxy(keys[index++]); + (RegExpPrototype.constructor = RegExpWrapper), + (RegExpWrapper.prototype = RegExpPrototype), + redefine(global, 'RegExp', RegExpWrapper); + } + setSpecies('RegExp'); + }, + 77950: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + exec = __webpack_require__(63466); + $({ target: 'RegExp', proto: !0, forced: /./.exec !== exec }, { exec }); + }, + 88233: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var redefine = __webpack_require__(27487), + anObject = __webpack_require__(21176), + fails = __webpack_require__(24229), + flags = __webpack_require__(30895), + RegExpPrototype = RegExp.prototype, + nativeToString = RegExpPrototype.toString, + NOT_GENERIC = fails(function () { + return '/a/b' != nativeToString.call({ source: 'a', flags: 'b' }); + }), + INCORRECT_NAME = 'toString' != nativeToString.name; + (NOT_GENERIC || INCORRECT_NAME) && + redefine( + RegExp.prototype, + 'toString', + function toString() { + var R = anObject(this), + p = String(R.source), + rf = R.flags; + return ( + '/' + + p + + '/' + + String(void 0 === rf && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf) + ); + }, + { unsafe: !0 }, + ); + }, + 93244: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var collection = __webpack_require__(69789), + collectionStrong = __webpack_require__(98081); + module.exports = collection( + 'Set', + function (init) { + return function Set() { + return init(this, arguments.length ? arguments[0] : void 0); + }; + }, + collectionStrong, + ); + }, + 35744: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + createHTML = __webpack_require__(81720); + $( + { target: 'String', proto: !0, forced: __webpack_require__(59540)('bold') }, + { + bold: function bold() { + return createHTML(this, 'b', '', ''); + }, + }, + ); + }, + 31235: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + notARegExp = __webpack_require__(47272), + requireObjectCoercible = __webpack_require__(58885); + $( + { target: 'String', proto: !0, forced: !__webpack_require__(48127)('includes') }, + { + includes: function includes(searchString) { + return !!~String(requireObjectCoercible(this)).indexOf( + notARegExp(searchString), + arguments.length > 1 ? arguments[1] : void 0, + ); + }, + }, + ); + }, + 28673: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var charAt = __webpack_require__(30966).charAt, + InternalStateModule = __webpack_require__(56407), + defineIterator = __webpack_require__(67675), + setInternalState = InternalStateModule.set, + getInternalState = InternalStateModule.getterFor('String Iterator'); + defineIterator( + String, + 'String', + function (iterated) { + setInternalState(this, { type: 'String Iterator', string: String(iterated), index: 0 }); + }, + function next() { + var point, + state = getInternalState(this), + string = state.string, + index = state.index; + return index >= string.length + ? { value: void 0, done: !0 } + : ((point = charAt(string, index)), (state.index += point.length), { value: point, done: !1 }); + }, + ); + }, + 72508: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + createHTML = __webpack_require__(81720); + $( + { target: 'String', proto: !0, forced: __webpack_require__(59540)('link') }, + { + link: function link(url) { + return createHTML(this, 'a', 'href', url); + }, + }, + ); + }, + 74069: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var fixRegExpWellKnownSymbolLogic = __webpack_require__(94954), + anObject = __webpack_require__(21176), + toLength = __webpack_require__(34237), + requireObjectCoercible = __webpack_require__(58885), + advanceStringIndex = __webpack_require__(36637), + regExpExec = __webpack_require__(98115); + fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) { + return [ + function match(regexp) { + var O = requireObjectCoercible(this), + matcher = null == regexp ? void 0 : regexp[MATCH]; + return void 0 !== matcher ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); + }, + function (string) { + var res = maybeCallNative(nativeMatch, this, string); + if (res.done) return res.value; + var rx = anObject(this), + S = String(string); + if (!rx.global) return regExpExec(rx, S); + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + for (var result, A = [], n = 0; null !== (result = regExpExec(rx, S)); ) { + var matchStr = String(result[0]); + (A[n] = matchStr), + '' === matchStr && (rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode)), + n++; + } + return 0 === n ? null : A; + }, + ]; + }); + }, + 67789: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(23103)({ target: 'String', proto: !0 }, { repeat: __webpack_require__(93124) }); + }, + 85940: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var fixRegExpWellKnownSymbolLogic = __webpack_require__(94954), + fails = __webpack_require__(24229), + anObject = __webpack_require__(21176), + toLength = __webpack_require__(34237), + toInteger = __webpack_require__(16051), + requireObjectCoercible = __webpack_require__(58885), + advanceStringIndex = __webpack_require__(36637), + getSubstitution = __webpack_require__(70017), + regExpExec = __webpack_require__(98115), + REPLACE = __webpack_require__(70095)('replace'), + max = Math.max, + min = Math.min, + REPLACE_KEEPS_$0 = '$0' === 'a'.replace(/./, '$0'), + REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = !!/./[REPLACE] && '' === /./[REPLACE]('a', '$0'); + fixRegExpWellKnownSymbolLogic( + 'replace', + function (_, nativeReplace, maybeCallNative) { + var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; + return [ + function replace(searchValue, replaceValue) { + var O = requireObjectCoercible(this), + replacer = null == searchValue ? void 0 : searchValue[REPLACE]; + return void 0 !== replacer + ? replacer.call(searchValue, O, replaceValue) + : nativeReplace.call(String(O), searchValue, replaceValue); + }, + function (string, replaceValue) { + if ( + 'string' == typeof replaceValue && + -1 === replaceValue.indexOf(UNSAFE_SUBSTITUTE) && + -1 === replaceValue.indexOf('$<') + ) { + var res = maybeCallNative(nativeReplace, this, string, replaceValue); + if (res.done) return res.value; + } + var rx = anObject(this), + S = String(string), + functionalReplace = 'function' == typeof replaceValue; + functionalReplace || (replaceValue = String(replaceValue)); + var global = rx.global; + if (global) { + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + } + for (var results = []; ; ) { + var result = regExpExec(rx, S); + if (null === result) break; + if ((results.push(result), !global)) break; + '' === String(result[0]) && (rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode)); + } + for (var it, accumulatedResult = '', nextSourcePosition = 0, i = 0; i < results.length; i++) { + result = results[i]; + for ( + var matched = String(result[0]), + position = max(min(toInteger(result.index), S.length), 0), + captures = [], + j = 1; + j < result.length; + j++ + ) + captures.push(void 0 === (it = result[j]) ? it : String(it)); + var namedCaptures = result.groups; + if (functionalReplace) { + var replacerArgs = [matched].concat(captures, position, S); + void 0 !== namedCaptures && replacerArgs.push(namedCaptures); + var replacement = String(replaceValue.apply(void 0, replacerArgs)); + } else replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); + position >= nextSourcePosition && + ((accumulatedResult += S.slice(nextSourcePosition, position) + replacement), + (nextSourcePosition = position + matched.length)); + } + return accumulatedResult + S.slice(nextSourcePosition); + }, + ]; + }, + !!fails(function () { + var re = /./; + return ( + (re.exec = function () { + var result = []; + return (result.groups = { a: '7' }), result; + }), + '7' !== ''.replace(re, '$') + ); + }) || + !REPLACE_KEEPS_$0 || + REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE, + ); + }, + 94908: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var fixRegExpWellKnownSymbolLogic = __webpack_require__(94954), + anObject = __webpack_require__(21176), + requireObjectCoercible = __webpack_require__(58885), + sameValue = __webpack_require__(72101), + regExpExec = __webpack_require__(98115); + fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { + return [ + function search(regexp) { + var O = requireObjectCoercible(this), + searcher = null == regexp ? void 0 : regexp[SEARCH]; + return void 0 !== searcher ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O)); + }, + function (string) { + var res = maybeCallNative(nativeSearch, this, string); + if (res.done) return res.value; + var rx = anObject(this), + S = String(string), + previousLastIndex = rx.lastIndex; + sameValue(previousLastIndex, 0) || (rx.lastIndex = 0); + var result = regExpExec(rx, S); + return ( + sameValue(rx.lastIndex, previousLastIndex) || (rx.lastIndex = previousLastIndex), + null === result ? -1 : result.index + ); + }, + ]; + }); + }, + 8532: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + createHTML = __webpack_require__(81720); + $( + { target: 'String', proto: !0, forced: __webpack_require__(59540)('small') }, + { + small: function small() { + return createHTML(this, 'small', '', ''); + }, + }, + ); + }, + 48319: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var fixRegExpWellKnownSymbolLogic = __webpack_require__(94954), + isRegExp = __webpack_require__(48311), + anObject = __webpack_require__(21176), + requireObjectCoercible = __webpack_require__(58885), + speciesConstructor = __webpack_require__(37942), + advanceStringIndex = __webpack_require__(36637), + toLength = __webpack_require__(34237), + callRegExpExec = __webpack_require__(98115), + regexpExec = __webpack_require__(63466), + stickyHelpers = __webpack_require__(25650), + fails = __webpack_require__(24229), + UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y, + arrayPush = [].push, + min = Math.min; + fixRegExpWellKnownSymbolLogic( + 'split', + function (SPLIT, nativeSplit, maybeCallNative) { + var internalSplit; + return ( + (internalSplit = + 'c' == 'abbc'.split(/(b)*/)[1] || + 4 != 'test'.split(/(?:)/, -1).length || + 2 != 'ab'.split(/(?:ab)*/).length || + 4 != '.'.split(/(.?)(.?)/).length || + '.'.split(/()()/).length > 1 || + ''.split(/.?/).length + ? function (separator, limit) { + var string = String(requireObjectCoercible(this)), + lim = void 0 === limit ? 4294967295 : limit >>> 0; + if (0 === lim) return []; + if (void 0 === separator) return [string]; + if (!isRegExp(separator)) return nativeSplit.call(string, separator, lim); + for ( + var match, + lastIndex, + lastLength, + output = [], + flags = + (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''), + lastLastIndex = 0, + separatorCopy = new RegExp(separator.source, flags + 'g'); + (match = regexpExec.call(separatorCopy, string)) && + !( + (lastIndex = separatorCopy.lastIndex) > lastLastIndex && + (output.push(string.slice(lastLastIndex, match.index)), + match.length > 1 && match.index < string.length && arrayPush.apply(output, match.slice(1)), + (lastLength = match[0].length), + (lastLastIndex = lastIndex), + output.length >= lim) + ); + + ) + separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++; + return ( + lastLastIndex === string.length + ? (!lastLength && separatorCopy.test('')) || output.push('') + : output.push(string.slice(lastLastIndex)), + output.length > lim ? output.slice(0, lim) : output + ); + } + : '0'.split(void 0, 0).length + ? function (separator, limit) { + return void 0 === separator && 0 === limit ? [] : nativeSplit.call(this, separator, limit); + } + : nativeSplit), + [ + function split(separator, limit) { + var O = requireObjectCoercible(this), + splitter = null == separator ? void 0 : separator[SPLIT]; + return void 0 !== splitter + ? splitter.call(separator, O, limit) + : internalSplit.call(String(O), separator, limit); + }, + function (string, limit) { + var res = maybeCallNative(internalSplit, this, string, limit, internalSplit !== nativeSplit); + if (res.done) return res.value; + var rx = anObject(this), + S = String(string), + C = speciesConstructor(rx, RegExp), + unicodeMatching = rx.unicode, + flags = + (rx.ignoreCase ? 'i' : '') + + (rx.multiline ? 'm' : '') + + (rx.unicode ? 'u' : '') + + (UNSUPPORTED_Y ? 'g' : 'y'), + splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags), + lim = void 0 === limit ? 4294967295 : limit >>> 0; + if (0 === lim) return []; + if (0 === S.length) return null === callRegExpExec(splitter, S) ? [S] : []; + for (var p = 0, q = 0, A = []; q < S.length; ) { + splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; + var e, + z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S); + if (null === z || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p) + q = advanceStringIndex(S, q, unicodeMatching); + else { + if ((A.push(S.slice(p, q)), A.length === lim)) return A; + for (var i = 1; i <= z.length - 1; i++) if ((A.push(z[i]), A.length === lim)) return A; + q = p = e; + } + } + return A.push(S.slice(p)), A; + }, + ] + ); + }, + !!fails(function () { + var re = /(?:)/, + originalExec = re.exec; + re.exec = function () { + return originalExec.apply(this, arguments); + }; + var result = 'ab'.split(re); + return 2 !== result.length || 'a' !== result[0] || 'b' !== result[1]; + }), + UNSUPPORTED_Y, + ); + }, + 44112: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var descriptor, + $ = __webpack_require__(23103), + getOwnPropertyDescriptor = __webpack_require__(97933).f, + toLength = __webpack_require__(34237), + notARegExp = __webpack_require__(47272), + requireObjectCoercible = __webpack_require__(58885), + correctIsRegExpLogic = __webpack_require__(48127), + IS_PURE = __webpack_require__(24231), + $startsWith = ''.startsWith, + min = Math.min, + CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith'); + $( + { + target: 'String', + proto: !0, + forced: + !!( + IS_PURE || + CORRECT_IS_REGEXP_LOGIC || + ((descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith')), + !descriptor || descriptor.writable) + ) && !CORRECT_IS_REGEXP_LOGIC, + }, + { + startsWith: function startsWith(searchString) { + var that = String(requireObjectCoercible(this)); + notARegExp(searchString); + var index = toLength(min(arguments.length > 1 ? arguments[1] : void 0, that.length)), + search = String(searchString); + return $startsWith + ? $startsWith.call(that, search, index) + : that.slice(index, index + search.length) === search; + }, + }, + ); + }, + 45794: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + $trim = __webpack_require__(1017).trim; + $( + { target: 'String', proto: !0, forced: __webpack_require__(9445)('trim') }, + { + trim: function trim() { + return $trim(this); + }, + }, + ); + }, + 96882: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('asyncIterator'); + }, + 634: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + DESCRIPTORS = __webpack_require__(7400), + global = __webpack_require__(9859), + has = __webpack_require__(50816), + isObject = __webpack_require__(85052), + defineProperty = __webpack_require__(31787).f, + copyConstructorProperties = __webpack_require__(77081), + NativeSymbol = global.Symbol; + if ( + DESCRIPTORS && + 'function' == typeof NativeSymbol && + (!('description' in NativeSymbol.prototype) || void 0 !== NativeSymbol().description) + ) { + var EmptyStringDescriptionStore = {}, + SymbolWrapper = function Symbol() { + var description = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]), + result = + this instanceof SymbolWrapper + ? new NativeSymbol(description) + : void 0 === description + ? NativeSymbol() + : NativeSymbol(description); + return '' === description && (EmptyStringDescriptionStore[result] = !0), result; + }; + copyConstructorProperties(SymbolWrapper, NativeSymbol); + var symbolPrototype = (SymbolWrapper.prototype = NativeSymbol.prototype); + symbolPrototype.constructor = SymbolWrapper; + var symbolToString = symbolPrototype.toString, + native = 'Symbol(test)' == String(NativeSymbol('test')), + regexp = /^Symbol\((.*)\)[^)]+$/; + defineProperty(symbolPrototype, 'description', { + configurable: !0, + get: function description() { + var symbol = isObject(this) ? this.valueOf() : this, + string = symbolToString.call(symbol); + if (has(EmptyStringDescriptionStore, symbol)) return ''; + var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1'); + return '' === desc ? void 0 : desc; + }, + }), + $({ global: !0, forced: !0 }, { Symbol: SymbolWrapper }); + } + }, + 68858: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('hasInstance'); + }, + 72220: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('isConcatSpreadable'); + }, + 20796: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('iterator'); + }, + 34115: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $ = __webpack_require__(23103), + global = __webpack_require__(9859), + getBuiltIn = __webpack_require__(31333), + IS_PURE = __webpack_require__(24231), + DESCRIPTORS = __webpack_require__(7400), + NATIVE_SYMBOL = __webpack_require__(63839), + USE_SYMBOL_AS_UID = __webpack_require__(66969), + fails = __webpack_require__(24229), + has = __webpack_require__(50816), + isArray = __webpack_require__(33718), + isObject = __webpack_require__(85052), + anObject = __webpack_require__(21176), + toObject = __webpack_require__(92991), + toIndexedObject = __webpack_require__(10905), + toPrimitive = __webpack_require__(92066), + createPropertyDescriptor = __webpack_require__(65358), + nativeObjectCreate = __webpack_require__(22391), + objectKeys = __webpack_require__(65632), + getOwnPropertyNamesModule = __webpack_require__(78151), + getOwnPropertyNamesExternal = __webpack_require__(10166), + getOwnPropertySymbolsModule = __webpack_require__(10894), + getOwnPropertyDescriptorModule = __webpack_require__(97933), + definePropertyModule = __webpack_require__(31787), + propertyIsEnumerableModule = __webpack_require__(19195), + createNonEnumerableProperty = __webpack_require__(75762), + redefine = __webpack_require__(27487), + shared = __webpack_require__(33036), + sharedKey = __webpack_require__(44399), + hiddenKeys = __webpack_require__(95977), + uid = __webpack_require__(81441), + wellKnownSymbol = __webpack_require__(70095), + wrappedWellKnownSymbolModule = __webpack_require__(55391), + defineWellKnownSymbol = __webpack_require__(38423), + setToStringTag = __webpack_require__(54555), + InternalStateModule = __webpack_require__(56407), + $forEach = __webpack_require__(89996).forEach, + HIDDEN = sharedKey('hidden'), + TO_PRIMITIVE = wellKnownSymbol('toPrimitive'), + setInternalState = InternalStateModule.set, + getInternalState = InternalStateModule.getterFor('Symbol'), + ObjectPrototype = Object.prototype, + $Symbol = global.Symbol, + $stringify = getBuiltIn('JSON', 'stringify'), + nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f, + nativeDefineProperty = definePropertyModule.f, + nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f, + nativePropertyIsEnumerable = propertyIsEnumerableModule.f, + AllSymbols = shared('symbols'), + ObjectPrototypeSymbols = shared('op-symbols'), + StringToSymbolRegistry = shared('string-to-symbol-registry'), + SymbolToStringRegistry = shared('symbol-to-string-registry'), + WellKnownSymbolsStore = shared('wks'), + QObject = global.QObject, + USE_SETTER = !QObject || !QObject.prototype || !QObject.prototype.findChild, + setSymbolDescriptor = + DESCRIPTORS && + fails(function () { + return ( + 7 != + nativeObjectCreate( + nativeDefineProperty({}, 'a', { + get: function () { + return nativeDefineProperty(this, 'a', { value: 7 }).a; + }, + }), + ).a + ); + }) + ? function (O, P, Attributes) { + var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P); + ObjectPrototypeDescriptor && delete ObjectPrototype[P], + nativeDefineProperty(O, P, Attributes), + ObjectPrototypeDescriptor && + O !== ObjectPrototype && + nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor); + } + : nativeDefineProperty, + wrap = function (tag, description) { + var symbol = (AllSymbols[tag] = nativeObjectCreate($Symbol.prototype)); + return ( + setInternalState(symbol, { type: 'Symbol', tag, description }), + DESCRIPTORS || (symbol.description = description), + symbol + ); + }, + isSymbol = USE_SYMBOL_AS_UID + ? function (it) { + return 'symbol' == typeof it; + } + : function (it) { + return Object(it) instanceof $Symbol; + }, + $defineProperty = function defineProperty(O, P, Attributes) { + O === ObjectPrototype && $defineProperty(ObjectPrototypeSymbols, P, Attributes), anObject(O); + var key = toPrimitive(P, !0); + return ( + anObject(Attributes), + has(AllSymbols, key) + ? (Attributes.enumerable + ? (has(O, HIDDEN) && O[HIDDEN][key] && (O[HIDDEN][key] = !1), + (Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, !1) }))) + : (has(O, HIDDEN) || nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {})), + (O[HIDDEN][key] = !0)), + setSymbolDescriptor(O, key, Attributes)) + : nativeDefineProperty(O, key, Attributes) + ); + }, + $defineProperties = function defineProperties(O, Properties) { + anObject(O); + var properties = toIndexedObject(Properties), + keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); + return ( + $forEach(keys, function (key) { + (DESCRIPTORS && !$propertyIsEnumerable.call(properties, key)) || $defineProperty(O, key, properties[key]); + }), + O + ); + }, + $propertyIsEnumerable = function propertyIsEnumerable(V) { + var P = toPrimitive(V, !0), + enumerable = nativePropertyIsEnumerable.call(this, P); + return ( + !(this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) && + (!(enumerable || !has(this, P) || !has(AllSymbols, P) || (has(this, HIDDEN) && this[HIDDEN][P])) || + enumerable) + ); + }, + $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { + var it = toIndexedObject(O), + key = toPrimitive(P, !0); + if (it !== ObjectPrototype || !has(AllSymbols, key) || has(ObjectPrototypeSymbols, key)) { + var descriptor = nativeGetOwnPropertyDescriptor(it, key); + return ( + !descriptor || + !has(AllSymbols, key) || + (has(it, HIDDEN) && it[HIDDEN][key]) || + (descriptor.enumerable = !0), + descriptor + ); + } + }, + $getOwnPropertyNames = function getOwnPropertyNames(O) { + var names = nativeGetOwnPropertyNames(toIndexedObject(O)), + result = []; + return ( + $forEach(names, function (key) { + has(AllSymbols, key) || has(hiddenKeys, key) || result.push(key); + }), + result + ); + }, + $getOwnPropertySymbols = function getOwnPropertySymbols(O) { + var IS_OBJECT_PROTOTYPE = O === ObjectPrototype, + names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)), + result = []; + return ( + $forEach(names, function (key) { + !has(AllSymbols, key) || + (IS_OBJECT_PROTOTYPE && !has(ObjectPrototype, key)) || + result.push(AllSymbols[key]); + }), + result + ); + }; + (NATIVE_SYMBOL || + (redefine( + ($Symbol = function Symbol() { + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor'); + var description = arguments.length && void 0 !== arguments[0] ? String(arguments[0]) : void 0, + tag = uid(description), + setter = function (value) { + this === ObjectPrototype && setter.call(ObjectPrototypeSymbols, value), + has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), + setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); + }; + return ( + DESCRIPTORS && USE_SETTER && setSymbolDescriptor(ObjectPrototype, tag, { configurable: !0, set: setter }), + wrap(tag, description) + ); + }).prototype, + 'toString', + function toString() { + return getInternalState(this).tag; + }, + ), + redefine($Symbol, 'withoutSetter', function (description) { + return wrap(uid(description), description); + }), + (propertyIsEnumerableModule.f = $propertyIsEnumerable), + (definePropertyModule.f = $defineProperty), + (getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor), + (getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames), + (getOwnPropertySymbolsModule.f = $getOwnPropertySymbols), + (wrappedWellKnownSymbolModule.f = function (name) { + return wrap(wellKnownSymbol(name), name); + }), + DESCRIPTORS && + (nativeDefineProperty($Symbol.prototype, 'description', { + configurable: !0, + get: function description() { + return getInternalState(this).description; + }, + }), + IS_PURE || redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: !0 }))), + $({ global: !0, wrap: !0, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, { Symbol: $Symbol }), + $forEach(objectKeys(WellKnownSymbolsStore), function (name) { + defineWellKnownSymbol(name); + }), + $( + { target: 'Symbol', stat: !0, forced: !NATIVE_SYMBOL }, + { + for: function (key) { + var string = String(key); + if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; + var symbol = $Symbol(string); + return (StringToSymbolRegistry[string] = symbol), (SymbolToStringRegistry[symbol] = string), symbol; + }, + keyFor: function keyFor(sym) { + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol'); + if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; + }, + useSetter: function () { + USE_SETTER = !0; + }, + useSimple: function () { + USE_SETTER = !1; + }, + }, + ), + $( + { target: 'Object', stat: !0, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, + { + create: function create(O, Properties) { + return void 0 === Properties ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); + }, + defineProperty: $defineProperty, + defineProperties: $defineProperties, + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, + }, + ), + $( + { target: 'Object', stat: !0, forced: !NATIVE_SYMBOL }, + { getOwnPropertyNames: $getOwnPropertyNames, getOwnPropertySymbols: $getOwnPropertySymbols }, + ), + $( + { + target: 'Object', + stat: !0, + forced: fails(function () { + getOwnPropertySymbolsModule.f(1); + }), + }, + { + getOwnPropertySymbols: function getOwnPropertySymbols(it) { + return getOwnPropertySymbolsModule.f(toObject(it)); + }, + }, + ), + $stringify) && + $( + { + target: 'JSON', + stat: !0, + forced: + !NATIVE_SYMBOL || + fails(function () { + var symbol = $Symbol(); + return ( + '[null]' != $stringify([symbol]) || + '{}' != $stringify({ a: symbol }) || + '{}' != $stringify(Object(symbol)) + ); + }), + }, + { + stringify: function stringify(it, replacer, space) { + for (var $replacer, args = [it], index = 1; arguments.length > index; ) args.push(arguments[index++]); + if ((($replacer = replacer), (isObject(replacer) || void 0 !== it) && !isSymbol(it))) + return ( + isArray(replacer) || + (replacer = function (key, value) { + if ( + ('function' == typeof $replacer && (value = $replacer.call(this, key, value)), !isSymbol(value)) + ) + return value; + }), + (args[1] = replacer), + $stringify.apply(null, args) + ); + }, + }, + ); + $Symbol.prototype[TO_PRIMITIVE] || + createNonEnumerableProperty($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), + setToStringTag($Symbol, 'Symbol'), + (hiddenKeys[HIDDEN] = !0); + }, + 85960: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('matchAll'); + }, + 64844: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('match'); + }, + 40225: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('replace'); + }, + 71686: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('search'); + }, + 75605: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('species'); + }, + 68223: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('split'); + }, + 9575: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('toPrimitive'); + }, + 38859: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('toStringTag'); + }, + 96100: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('unscopables'); + }, + 52356: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var InternalWeakMap, + global = __webpack_require__(9859), + redefineAll = __webpack_require__(98787), + InternalMetadataModule = __webpack_require__(95926), + collection = __webpack_require__(69789), + collectionWeak = __webpack_require__(63370), + isObject = __webpack_require__(85052), + enforceIternalState = __webpack_require__(56407).enforce, + NATIVE_WEAK_MAP = __webpack_require__(18694), + IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global, + isExtensible = Object.isExtensible, + wrapper = function (init) { + return function WeakMap() { + return init(this, arguments.length ? arguments[0] : void 0); + }; + }, + $WeakMap = (module.exports = collection('WeakMap', wrapper, collectionWeak)); + if (NATIVE_WEAK_MAP && IS_IE11) { + (InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', !0)), + (InternalMetadataModule.REQUIRED = !0); + var WeakMapPrototype = $WeakMap.prototype, + nativeDelete = WeakMapPrototype.delete, + nativeHas = WeakMapPrototype.has, + nativeGet = WeakMapPrototype.get, + nativeSet = WeakMapPrototype.set; + redefineAll(WeakMapPrototype, { + delete: function (key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceIternalState(this); + return ( + state.frozen || (state.frozen = new InternalWeakMap()), + nativeDelete.call(this, key) || state.frozen.delete(key) + ); + } + return nativeDelete.call(this, key); + }, + has: function has(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceIternalState(this); + return ( + state.frozen || (state.frozen = new InternalWeakMap()), + nativeHas.call(this, key) || state.frozen.has(key) + ); + } + return nativeHas.call(this, key); + }, + get: function get(key) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceIternalState(this); + return ( + state.frozen || (state.frozen = new InternalWeakMap()), + nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key) + ); + } + return nativeGet.call(this, key); + }, + set: function set(key, value) { + if (isObject(key) && !isExtensible(key)) { + var state = enforceIternalState(this); + state.frozen || (state.frozen = new InternalWeakMap()), + nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value); + } else nativeSet.call(this, key, value); + return this; + }, + }); + } + }, + 28982: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('asyncDispose'); + }, + 89995: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('dispose'); + }, + 95033: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('matcher'); + }, + 98607: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('metadata'); + }, + 6158: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('observable'); + }, + 63843: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('patternMatch'); + }, + 57551: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + __webpack_require__(38423)('replaceAll'); + }, + 1939: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + DOMIterables = __webpack_require__(95694), + forEach = __webpack_require__(86570), + createNonEnumerableProperty = __webpack_require__(75762); + for (var COLLECTION_NAME in DOMIterables) { + var Collection = global[COLLECTION_NAME], + CollectionPrototype = Collection && Collection.prototype; + if (CollectionPrototype && CollectionPrototype.forEach !== forEach) + try { + createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach); + } catch (error) { + CollectionPrototype.forEach = forEach; + } + } + }, + 6886: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var global = __webpack_require__(9859), + DOMIterables = __webpack_require__(95694), + ArrayIteratorMethods = __webpack_require__(15735), + createNonEnumerableProperty = __webpack_require__(75762), + wellKnownSymbol = __webpack_require__(70095), + ITERATOR = wellKnownSymbol('iterator'), + TO_STRING_TAG = wellKnownSymbol('toStringTag'), + ArrayValues = ArrayIteratorMethods.values; + for (var COLLECTION_NAME in DOMIterables) { + var Collection = global[COLLECTION_NAME], + CollectionPrototype = Collection && Collection.prototype; + if (CollectionPrototype) { + if (CollectionPrototype[ITERATOR] !== ArrayValues) + try { + createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues); + } catch (error) { + CollectionPrototype[ITERATOR] = ArrayValues; + } + if ( + (CollectionPrototype[TO_STRING_TAG] || + createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME), + DOMIterables[COLLECTION_NAME]) + ) + for (var METHOD_NAME in ArrayIteratorMethods) + if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) + try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); + } catch (error) { + CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; + } + } + } + }, + 46106: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + var $ = __webpack_require__(23103), + global = __webpack_require__(9859), + task = __webpack_require__(55795); + $( + { global: !0, bind: !0, enumerable: !0, forced: !global.setImmediate || !global.clearImmediate }, + { setImmediate: task.set, clearImmediate: task.clear }, + ); + }, + 60523: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(15735); + var $ = __webpack_require__(23103), + getBuiltIn = __webpack_require__(31333), + USE_NATIVE_URL = __webpack_require__(77274), + redefine = __webpack_require__(27487), + redefineAll = __webpack_require__(98787), + setToStringTag = __webpack_require__(54555), + createIteratorConstructor = __webpack_require__(93723), + InternalStateModule = __webpack_require__(56407), + anInstance = __webpack_require__(57728), + hasOwn = __webpack_require__(50816), + bind = __webpack_require__(97636), + classof = __webpack_require__(81589), + anObject = __webpack_require__(21176), + isObject = __webpack_require__(85052), + create = __webpack_require__(22391), + createPropertyDescriptor = __webpack_require__(65358), + getIterator = __webpack_require__(28403), + getIteratorMethod = __webpack_require__(78830), + wellKnownSymbol = __webpack_require__(70095), + $fetch = getBuiltIn('fetch'), + Headers = getBuiltIn('Headers'), + ITERATOR = wellKnownSymbol('iterator'), + setInternalState = InternalStateModule.set, + getInternalParamsState = InternalStateModule.getterFor('URLSearchParams'), + getInternalIteratorState = InternalStateModule.getterFor('URLSearchParamsIterator'), + plus = /\+/g, + sequences = Array(4), + percentSequence = function (bytes) { + return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi')); + }, + percentDecode = function (sequence) { + try { + return decodeURIComponent(sequence); + } catch (error) { + return sequence; + } + }, + deserialize = function (it) { + var result = it.replace(plus, ' '), + bytes = 4; + try { + return decodeURIComponent(result); + } catch (error) { + for (; bytes; ) result = result.replace(percentSequence(bytes--), percentDecode); + return result; + } + }, + find = /[!'()~]|%20/g, + replace = { '!': '%21', "'": '%27', '(': '%28', ')': '%29', '~': '%7E', '%20': '+' }, + replacer = function (match) { + return replace[match]; + }, + serialize = function (it) { + return encodeURIComponent(it).replace(find, replacer); + }, + parseSearchParams = function (result, query) { + if (query) + for (var attribute, entry, attributes = query.split('&'), index = 0; index < attributes.length; ) + (attribute = attributes[index++]).length && + ((entry = attribute.split('=')), + result.push({ key: deserialize(entry.shift()), value: deserialize(entry.join('=')) })); + }, + updateSearchParams = function (query) { + (this.entries.length = 0), parseSearchParams(this.entries, query); + }, + validateArgumentsLength = function (passed, required) { + if (passed < required) throw TypeError('Not enough arguments'); + }, + URLSearchParamsIterator = createIteratorConstructor( + function Iterator(params, kind) { + setInternalState(this, { + type: 'URLSearchParamsIterator', + iterator: getIterator(getInternalParamsState(params).entries), + kind, + }); + }, + 'Iterator', + function next() { + var state = getInternalIteratorState(this), + kind = state.kind, + step = state.iterator.next(), + entry = step.value; + return ( + step.done || + (step.value = 'keys' === kind ? entry.key : 'values' === kind ? entry.value : [entry.key, entry.value]), + step + ); + }, + ), + URLSearchParamsConstructor = function URLSearchParams() { + anInstance(this, URLSearchParamsConstructor, 'URLSearchParams'); + var iteratorMethod, + iterator, + next, + step, + entryIterator, + entryNext, + first, + second, + key, + init = arguments.length > 0 ? arguments[0] : void 0, + that = this, + entries = []; + if ( + (setInternalState(that, { + type: 'URLSearchParams', + entries, + updateURL: function () {}, + updateSearchParams, + }), + void 0 !== init) + ) + if (isObject(init)) + if ('function' == typeof (iteratorMethod = getIteratorMethod(init))) + for (next = (iterator = iteratorMethod.call(init)).next; !(step = next.call(iterator)).done; ) { + if ( + (first = (entryNext = (entryIterator = getIterator(anObject(step.value))).next).call(entryIterator)) + .done || + (second = entryNext.call(entryIterator)).done || + !entryNext.call(entryIterator).done + ) + throw TypeError('Expected sequence with length 2'); + entries.push({ key: first.value + '', value: second.value + '' }); + } + else for (key in init) hasOwn(init, key) && entries.push({ key, value: init[key] + '' }); + else + parseSearchParams( + entries, + 'string' == typeof init ? ('?' === init.charAt(0) ? init.slice(1) : init) : init + '', + ); + }, + URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; + redefineAll( + URLSearchParamsPrototype, + { + append: function append(name, value) { + validateArgumentsLength(arguments.length, 2); + var state = getInternalParamsState(this); + state.entries.push({ key: name + '', value: value + '' }), state.updateURL(); + }, + delete: function (name) { + validateArgumentsLength(arguments.length, 1); + for ( + var state = getInternalParamsState(this), entries = state.entries, key = name + '', index = 0; + index < entries.length; + + ) + entries[index].key === key ? entries.splice(index, 1) : index++; + state.updateURL(); + }, + get: function get(name) { + validateArgumentsLength(arguments.length, 1); + for ( + var entries = getInternalParamsState(this).entries, key = name + '', index = 0; + index < entries.length; + index++ + ) + if (entries[index].key === key) return entries[index].value; + return null; + }, + getAll: function getAll(name) { + validateArgumentsLength(arguments.length, 1); + for ( + var entries = getInternalParamsState(this).entries, key = name + '', result = [], index = 0; + index < entries.length; + index++ + ) + entries[index].key === key && result.push(entries[index].value); + return result; + }, + has: function has(name) { + validateArgumentsLength(arguments.length, 1); + for ( + var entries = getInternalParamsState(this).entries, key = name + '', index = 0; + index < entries.length; + + ) + if (entries[index++].key === key) return !0; + return !1; + }, + set: function set(name, value) { + validateArgumentsLength(arguments.length, 1); + for ( + var entry, + state = getInternalParamsState(this), + entries = state.entries, + found = !1, + key = name + '', + val = value + '', + index = 0; + index < entries.length; + index++ + ) + (entry = entries[index]).key === key && + (found ? entries.splice(index--, 1) : ((found = !0), (entry.value = val))); + found || entries.push({ key, value: val }), state.updateURL(); + }, + sort: function sort() { + var entry, + entriesIndex, + sliceIndex, + state = getInternalParamsState(this), + entries = state.entries, + slice = entries.slice(); + for (entries.length = 0, sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) { + for (entry = slice[sliceIndex], entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) + if (entries[entriesIndex].key > entry.key) { + entries.splice(entriesIndex, 0, entry); + break; + } + entriesIndex === sliceIndex && entries.push(entry); + } + state.updateURL(); + }, + forEach: function forEach(callback) { + for ( + var entry, + entries = getInternalParamsState(this).entries, + boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : void 0, 3), + index = 0; + index < entries.length; + + ) + boundFunction((entry = entries[index++]).value, entry.key, this); + }, + keys: function keys() { + return new URLSearchParamsIterator(this, 'keys'); + }, + values: function values() { + return new URLSearchParamsIterator(this, 'values'); + }, + entries: function entries() { + return new URLSearchParamsIterator(this, 'entries'); + }, + }, + { enumerable: !0 }, + ), + redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries), + redefine( + URLSearchParamsPrototype, + 'toString', + function toString() { + for ( + var entry, entries = getInternalParamsState(this).entries, result = [], index = 0; + index < entries.length; + + ) + (entry = entries[index++]), result.push(serialize(entry.key) + '=' + serialize(entry.value)); + return result.join('&'); + }, + { enumerable: !0 }, + ), + setToStringTag(URLSearchParamsConstructor, 'URLSearchParams'), + $({ global: !0, forced: !USE_NATIVE_URL }, { URLSearchParams: URLSearchParamsConstructor }), + USE_NATIVE_URL || + 'function' != typeof $fetch || + 'function' != typeof Headers || + $( + { global: !0, enumerable: !0, forced: !0 }, + { + fetch: function fetch(input) { + var init, + body, + headers, + args = [input]; + return ( + arguments.length > 1 && + (isObject((init = arguments[1])) && + ((body = init.body), + 'URLSearchParams' === classof(body) && + ((headers = init.headers ? new Headers(init.headers) : new Headers()).has('content-type') || + headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'), + (init = create(init, { + body: createPropertyDescriptor(0, String(body)), + headers: createPropertyDescriptor(0, headers), + })))), + args.push(init)), + $fetch.apply(this, args) + ); + }, + }, + ), + (module.exports = { URLSearchParams: URLSearchParamsConstructor, getState: getInternalParamsState }); + }, + 14121: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(28673); + var EOF, + $ = __webpack_require__(23103), + DESCRIPTORS = __webpack_require__(7400), + USE_NATIVE_URL = __webpack_require__(77274), + global = __webpack_require__(9859), + defineProperties = __webpack_require__(90219), + redefine = __webpack_require__(27487), + anInstance = __webpack_require__(57728), + has = __webpack_require__(50816), + assign = __webpack_require__(47), + arrayFrom = __webpack_require__(10507), + codeAt = __webpack_require__(30966).codeAt, + toASCII = __webpack_require__(77321), + setToStringTag = __webpack_require__(54555), + URLSearchParamsModule = __webpack_require__(60523), + InternalStateModule = __webpack_require__(56407), + NativeURL = global.URL, + URLSearchParams = URLSearchParamsModule.URLSearchParams, + getInternalSearchParamsState = URLSearchParamsModule.getState, + setInternalState = InternalStateModule.set, + getInternalURLState = InternalStateModule.getterFor('URL'), + floor = Math.floor, + pow = Math.pow, + ALPHA = /[A-Za-z]/, + ALPHANUMERIC = /[\d+-.A-Za-z]/, + DIGIT = /\d/, + HEX_START = /^0x/i, + OCT = /^[0-7]+$/, + DEC = /^\d+$/, + HEX = /^[\dA-Fa-f]+$/, + FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/, + FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/, + LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g, + TAB_AND_NEW_LINE = /[\t\n\r]/g, + parseHost = function (url, input) { + var result, codePoints, index; + if ('[' == input.charAt(0)) { + if (']' != input.charAt(input.length - 1)) return 'Invalid host'; + if (!(result = parseIPv6(input.slice(1, -1)))) return 'Invalid host'; + url.host = result; + } else if (isSpecial(url)) { + if (((input = toASCII(input)), FORBIDDEN_HOST_CODE_POINT.test(input))) return 'Invalid host'; + if (null === (result = parseIPv4(input))) return 'Invalid host'; + url.host = result; + } else { + if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return 'Invalid host'; + for (result = '', codePoints = arrayFrom(input), index = 0; index < codePoints.length; index++) + result += percentEncode(codePoints[index], C0ControlPercentEncodeSet); + url.host = result; + } + }, + parseIPv4 = function (input) { + var partsLength, + numbers, + index, + part, + radix, + number, + ipv4, + parts = input.split('.'); + if ((parts.length && '' == parts[parts.length - 1] && parts.pop(), (partsLength = parts.length) > 4)) + return input; + for (numbers = [], index = 0; index < partsLength; index++) { + if ('' == (part = parts[index])) return input; + if ( + ((radix = 10), + part.length > 1 && + '0' == part.charAt(0) && + ((radix = HEX_START.test(part) ? 16 : 8), (part = part.slice(8 == radix ? 1 : 2))), + '' === part) + ) + number = 0; + else { + if (!(10 == radix ? DEC : 8 == radix ? OCT : HEX).test(part)) return input; + number = parseInt(part, radix); + } + numbers.push(number); + } + for (index = 0; index < partsLength; index++) + if (((number = numbers[index]), index == partsLength - 1)) { + if (number >= pow(256, 5 - partsLength)) return null; + } else if (number > 255) return null; + for (ipv4 = numbers.pop(), index = 0; index < numbers.length; index++) + ipv4 += numbers[index] * pow(256, 3 - index); + return ipv4; + }, + parseIPv6 = function (input) { + var value, + length, + numbersSeen, + ipv4Piece, + number, + swaps, + swap, + address = [0, 0, 0, 0, 0, 0, 0, 0], + pieceIndex = 0, + compress = null, + pointer = 0, + char = function () { + return input.charAt(pointer); + }; + if (':' == char()) { + if (':' != input.charAt(1)) return; + (pointer += 2), (compress = ++pieceIndex); + } + for (; char(); ) { + if (8 == pieceIndex) return; + if (':' != char()) { + for (value = length = 0; length < 4 && HEX.test(char()); ) + (value = 16 * value + parseInt(char(), 16)), pointer++, length++; + if ('.' == char()) { + if (0 == length) return; + if (((pointer -= length), pieceIndex > 6)) return; + for (numbersSeen = 0; char(); ) { + if (((ipv4Piece = null), numbersSeen > 0)) { + if (!('.' == char() && numbersSeen < 4)) return; + pointer++; + } + if (!DIGIT.test(char())) return; + for (; DIGIT.test(char()); ) { + if (((number = parseInt(char(), 10)), null === ipv4Piece)) ipv4Piece = number; + else { + if (0 == ipv4Piece) return; + ipv4Piece = 10 * ipv4Piece + number; + } + if (ipv4Piece > 255) return; + pointer++; + } + (address[pieceIndex] = 256 * address[pieceIndex] + ipv4Piece), + (2 != ++numbersSeen && 4 != numbersSeen) || pieceIndex++; + } + if (4 != numbersSeen) return; + break; + } + if (':' == char()) { + if ((pointer++, !char())) return; + } else if (char()) return; + address[pieceIndex++] = value; + } else { + if (null !== compress) return; + pointer++, (compress = ++pieceIndex); + } + } + if (null !== compress) + for (swaps = pieceIndex - compress, pieceIndex = 7; 0 != pieceIndex && swaps > 0; ) + (swap = address[pieceIndex]), + (address[pieceIndex--] = address[compress + swaps - 1]), + (address[compress + --swaps] = swap); + else if (8 != pieceIndex) return; + return address; + }, + serializeHost = function (host) { + var result, index, compress, ignore0; + if ('number' == typeof host) { + for (result = [], index = 0; index < 4; index++) result.unshift(host % 256), (host = floor(host / 256)); + return result.join('.'); + } + if ('object' == typeof host) { + for ( + result = '', + compress = (function (ipv6) { + for ( + var maxIndex = null, maxLength = 1, currStart = null, currLength = 0, index = 0; + index < 8; + index++ + ) + 0 !== ipv6[index] + ? (currLength > maxLength && ((maxIndex = currStart), (maxLength = currLength)), + (currStart = null), + (currLength = 0)) + : (null === currStart && (currStart = index), ++currLength); + return currLength > maxLength && ((maxIndex = currStart), (maxLength = currLength)), maxIndex; + })(host), + index = 0; + index < 8; + index++ + ) + (ignore0 && 0 === host[index]) || + (ignore0 && (ignore0 = !1), + compress === index + ? ((result += index ? ':' : '::'), (ignore0 = !0)) + : ((result += host[index].toString(16)), index < 7 && (result += ':'))); + return '[' + result + ']'; + } + return host; + }, + C0ControlPercentEncodeSet = {}, + fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, { ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1 }), + pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, { '#': 1, '?': 1, '{': 1, '}': 1 }), + userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, { + '/': 1, + ':': 1, + ';': 1, + '=': 1, + '@': 1, + '[': 1, + '\\': 1, + ']': 1, + '^': 1, + '|': 1, + }), + percentEncode = function (char, set) { + var code = codeAt(char, 0); + return code > 32 && code < 127 && !has(set, char) ? char : encodeURIComponent(char); + }, + specialSchemes = { ftp: 21, file: null, http: 80, https: 443, ws: 80, wss: 443 }, + isSpecial = function (url) { + return has(specialSchemes, url.scheme); + }, + includesCredentials = function (url) { + return '' != url.username || '' != url.password; + }, + cannotHaveUsernamePasswordPort = function (url) { + return !url.host || url.cannotBeABaseURL || 'file' == url.scheme; + }, + isWindowsDriveLetter = function (string, normalized) { + var second; + return ( + 2 == string.length && + ALPHA.test(string.charAt(0)) && + (':' == (second = string.charAt(1)) || (!normalized && '|' == second)) + ); + }, + startsWithWindowsDriveLetter = function (string) { + var third; + return ( + string.length > 1 && + isWindowsDriveLetter(string.slice(0, 2)) && + (2 == string.length || + '/' === (third = string.charAt(2)) || + '\\' === third || + '?' === third || + '#' === third) + ); + }, + shortenURLsPath = function (url) { + var path = url.path, + pathSize = path.length; + !pathSize || ('file' == url.scheme && 1 == pathSize && isWindowsDriveLetter(path[0], !0)) || path.pop(); + }, + isSingleDot = function (segment) { + return '.' === segment || '%2e' === segment.toLowerCase(); + }, + SCHEME_START = {}, + SCHEME = {}, + NO_SCHEME = {}, + SPECIAL_RELATIVE_OR_AUTHORITY = {}, + PATH_OR_AUTHORITY = {}, + RELATIVE = {}, + RELATIVE_SLASH = {}, + SPECIAL_AUTHORITY_SLASHES = {}, + SPECIAL_AUTHORITY_IGNORE_SLASHES = {}, + AUTHORITY = {}, + HOST = {}, + HOSTNAME = {}, + PORT = {}, + FILE = {}, + FILE_SLASH = {}, + FILE_HOST = {}, + PATH_START = {}, + PATH = {}, + CANNOT_BE_A_BASE_URL_PATH = {}, + QUERY = {}, + FRAGMENT = {}, + parseURL = function (url, input, stateOverride, base) { + var codePoints, + char, + bufferCodePoints, + failure, + segment, + state = stateOverride || SCHEME_START, + pointer = 0, + buffer = '', + seenAt = !1, + seenBracket = !1, + seenPasswordToken = !1; + for ( + stateOverride || + ((url.scheme = ''), + (url.username = ''), + (url.password = ''), + (url.host = null), + (url.port = null), + (url.path = []), + (url.query = null), + (url.fragment = null), + (url.cannotBeABaseURL = !1), + (input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, ''))), + input = input.replace(TAB_AND_NEW_LINE, ''), + codePoints = arrayFrom(input); + pointer <= codePoints.length; + + ) { + switch (((char = codePoints[pointer]), state)) { + case SCHEME_START: + if (!char || !ALPHA.test(char)) { + if (stateOverride) return 'Invalid scheme'; + state = NO_SCHEME; + continue; + } + (buffer += char.toLowerCase()), (state = SCHEME); + break; + case SCHEME: + if (char && (ALPHANUMERIC.test(char) || '+' == char || '-' == char || '.' == char)) + buffer += char.toLowerCase(); + else { + if (':' != char) { + if (stateOverride) return 'Invalid scheme'; + (buffer = ''), (state = NO_SCHEME), (pointer = 0); + continue; + } + if ( + stateOverride && + (isSpecial(url) != has(specialSchemes, buffer) || + ('file' == buffer && (includesCredentials(url) || null !== url.port)) || + ('file' == url.scheme && !url.host)) + ) + return; + if (((url.scheme = buffer), stateOverride)) + return void (isSpecial(url) && specialSchemes[url.scheme] == url.port && (url.port = null)); + (buffer = ''), + 'file' == url.scheme + ? (state = FILE) + : isSpecial(url) && base && base.scheme == url.scheme + ? (state = SPECIAL_RELATIVE_OR_AUTHORITY) + : isSpecial(url) + ? (state = SPECIAL_AUTHORITY_SLASHES) + : '/' == codePoints[pointer + 1] + ? ((state = PATH_OR_AUTHORITY), pointer++) + : ((url.cannotBeABaseURL = !0), url.path.push(''), (state = CANNOT_BE_A_BASE_URL_PATH)); + } + break; + case NO_SCHEME: + if (!base || (base.cannotBeABaseURL && '#' != char)) return 'Invalid scheme'; + if (base.cannotBeABaseURL && '#' == char) { + (url.scheme = base.scheme), + (url.path = base.path.slice()), + (url.query = base.query), + (url.fragment = ''), + (url.cannotBeABaseURL = !0), + (state = FRAGMENT); + break; + } + state = 'file' == base.scheme ? FILE : RELATIVE; + continue; + case SPECIAL_RELATIVE_OR_AUTHORITY: + if ('/' != char || '/' != codePoints[pointer + 1]) { + state = RELATIVE; + continue; + } + (state = SPECIAL_AUTHORITY_IGNORE_SLASHES), pointer++; + break; + case PATH_OR_AUTHORITY: + if ('/' == char) { + state = AUTHORITY; + break; + } + state = PATH; + continue; + case RELATIVE: + if (((url.scheme = base.scheme), char == EOF)) + (url.username = base.username), + (url.password = base.password), + (url.host = base.host), + (url.port = base.port), + (url.path = base.path.slice()), + (url.query = base.query); + else if ('/' == char || ('\\' == char && isSpecial(url))) state = RELATIVE_SLASH; + else if ('?' == char) + (url.username = base.username), + (url.password = base.password), + (url.host = base.host), + (url.port = base.port), + (url.path = base.path.slice()), + (url.query = ''), + (state = QUERY); + else { + if ('#' != char) { + (url.username = base.username), + (url.password = base.password), + (url.host = base.host), + (url.port = base.port), + (url.path = base.path.slice()), + url.path.pop(), + (state = PATH); + continue; + } + (url.username = base.username), + (url.password = base.password), + (url.host = base.host), + (url.port = base.port), + (url.path = base.path.slice()), + (url.query = base.query), + (url.fragment = ''), + (state = FRAGMENT); + } + break; + case RELATIVE_SLASH: + if (!isSpecial(url) || ('/' != char && '\\' != char)) { + if ('/' != char) { + (url.username = base.username), + (url.password = base.password), + (url.host = base.host), + (url.port = base.port), + (state = PATH); + continue; + } + state = AUTHORITY; + } else state = SPECIAL_AUTHORITY_IGNORE_SLASHES; + break; + case SPECIAL_AUTHORITY_SLASHES: + if (((state = SPECIAL_AUTHORITY_IGNORE_SLASHES), '/' != char || '/' != buffer.charAt(pointer + 1))) + continue; + pointer++; + break; + case SPECIAL_AUTHORITY_IGNORE_SLASHES: + if ('/' != char && '\\' != char) { + state = AUTHORITY; + continue; + } + break; + case AUTHORITY: + if ('@' == char) { + seenAt && (buffer = '%40' + buffer), (seenAt = !0), (bufferCodePoints = arrayFrom(buffer)); + for (var i = 0; i < bufferCodePoints.length; i++) { + var codePoint = bufferCodePoints[i]; + if (':' != codePoint || seenPasswordToken) { + var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet); + seenPasswordToken ? (url.password += encodedCodePoints) : (url.username += encodedCodePoints); + } else seenPasswordToken = !0; + } + buffer = ''; + } else if ( + char == EOF || + '/' == char || + '?' == char || + '#' == char || + ('\\' == char && isSpecial(url)) + ) { + if (seenAt && '' == buffer) return 'Invalid authority'; + (pointer -= arrayFrom(buffer).length + 1), (buffer = ''), (state = HOST); + } else buffer += char; + break; + case HOST: + case HOSTNAME: + if (stateOverride && 'file' == url.scheme) { + state = FILE_HOST; + continue; + } + if (':' != char || seenBracket) { + if (char == EOF || '/' == char || '?' == char || '#' == char || ('\\' == char && isSpecial(url))) { + if (isSpecial(url) && '' == buffer) return 'Invalid host'; + if (stateOverride && '' == buffer && (includesCredentials(url) || null !== url.port)) return; + if ((failure = parseHost(url, buffer))) return failure; + if (((buffer = ''), (state = PATH_START), stateOverride)) return; + continue; + } + '[' == char ? (seenBracket = !0) : ']' == char && (seenBracket = !1), (buffer += char); + } else { + if ('' == buffer) return 'Invalid host'; + if ((failure = parseHost(url, buffer))) return failure; + if (((buffer = ''), (state = PORT), stateOverride == HOSTNAME)) return; + } + break; + case PORT: + if (!DIGIT.test(char)) { + if ( + char == EOF || + '/' == char || + '?' == char || + '#' == char || + ('\\' == char && isSpecial(url)) || + stateOverride + ) { + if ('' != buffer) { + var port = parseInt(buffer, 10); + if (port > 65535) return 'Invalid port'; + (url.port = isSpecial(url) && port === specialSchemes[url.scheme] ? null : port), (buffer = ''); + } + if (stateOverride) return; + state = PATH_START; + continue; + } + return 'Invalid port'; + } + buffer += char; + break; + case FILE: + if (((url.scheme = 'file'), '/' == char || '\\' == char)) state = FILE_SLASH; + else { + if (!base || 'file' != base.scheme) { + state = PATH; + continue; + } + if (char == EOF) (url.host = base.host), (url.path = base.path.slice()), (url.query = base.query); + else if ('?' == char) + (url.host = base.host), (url.path = base.path.slice()), (url.query = ''), (state = QUERY); + else { + if ('#' != char) { + startsWithWindowsDriveLetter(codePoints.slice(pointer).join('')) || + ((url.host = base.host), (url.path = base.path.slice()), shortenURLsPath(url)), + (state = PATH); + continue; + } + (url.host = base.host), + (url.path = base.path.slice()), + (url.query = base.query), + (url.fragment = ''), + (state = FRAGMENT); + } + } + break; + case FILE_SLASH: + if ('/' == char || '\\' == char) { + state = FILE_HOST; + break; + } + base && + 'file' == base.scheme && + !startsWithWindowsDriveLetter(codePoints.slice(pointer).join('')) && + (isWindowsDriveLetter(base.path[0], !0) ? url.path.push(base.path[0]) : (url.host = base.host)), + (state = PATH); + continue; + case FILE_HOST: + if (char == EOF || '/' == char || '\\' == char || '?' == char || '#' == char) { + if (!stateOverride && isWindowsDriveLetter(buffer)) state = PATH; + else if ('' == buffer) { + if (((url.host = ''), stateOverride)) return; + state = PATH_START; + } else { + if ((failure = parseHost(url, buffer))) return failure; + if (('localhost' == url.host && (url.host = ''), stateOverride)) return; + (buffer = ''), (state = PATH_START); + } + continue; + } + buffer += char; + break; + case PATH_START: + if (isSpecial(url)) { + if (((state = PATH), '/' != char && '\\' != char)) continue; + } else if (stateOverride || '?' != char) + if (stateOverride || '#' != char) { + if (char != EOF && ((state = PATH), '/' != char)) continue; + } else (url.fragment = ''), (state = FRAGMENT); + else (url.query = ''), (state = QUERY); + break; + case PATH: + if ( + char == EOF || + '/' == char || + ('\\' == char && isSpecial(url)) || + (!stateOverride && ('?' == char || '#' == char)) + ) { + if ( + ('..' === (segment = (segment = buffer).toLowerCase()) || + '%2e.' === segment || + '.%2e' === segment || + '%2e%2e' === segment + ? (shortenURLsPath(url), '/' == char || ('\\' == char && isSpecial(url)) || url.path.push('')) + : isSingleDot(buffer) + ? '/' == char || ('\\' == char && isSpecial(url)) || url.path.push('') + : ('file' == url.scheme && + !url.path.length && + isWindowsDriveLetter(buffer) && + (url.host && (url.host = ''), (buffer = buffer.charAt(0) + ':')), + url.path.push(buffer)), + (buffer = ''), + 'file' == url.scheme && (char == EOF || '?' == char || '#' == char)) + ) + for (; url.path.length > 1 && '' === url.path[0]; ) url.path.shift(); + '?' == char + ? ((url.query = ''), (state = QUERY)) + : '#' == char && ((url.fragment = ''), (state = FRAGMENT)); + } else buffer += percentEncode(char, pathPercentEncodeSet); + break; + case CANNOT_BE_A_BASE_URL_PATH: + '?' == char + ? ((url.query = ''), (state = QUERY)) + : '#' == char + ? ((url.fragment = ''), (state = FRAGMENT)) + : char != EOF && (url.path[0] += percentEncode(char, C0ControlPercentEncodeSet)); + break; + case QUERY: + stateOverride || '#' != char + ? char != EOF && + ("'" == char && isSpecial(url) + ? (url.query += '%27') + : (url.query += '#' == char ? '%23' : percentEncode(char, C0ControlPercentEncodeSet))) + : ((url.fragment = ''), (state = FRAGMENT)); + break; + case FRAGMENT: + char != EOF && (url.fragment += percentEncode(char, fragmentPercentEncodeSet)); + } + pointer++; + } + }, + URLConstructor = function URL(url) { + var baseState, + failure, + that = anInstance(this, URLConstructor, 'URL'), + base = arguments.length > 1 ? arguments[1] : void 0, + urlString = String(url), + state = setInternalState(that, { type: 'URL' }); + if (void 0 !== base) + if (base instanceof URLConstructor) baseState = getInternalURLState(base); + else if ((failure = parseURL((baseState = {}), String(base)))) throw TypeError(failure); + if ((failure = parseURL(state, urlString, null, baseState))) throw TypeError(failure); + var searchParams = (state.searchParams = new URLSearchParams()), + searchParamsState = getInternalSearchParamsState(searchParams); + searchParamsState.updateSearchParams(state.query), + (searchParamsState.updateURL = function () { + state.query = String(searchParams) || null; + }), + DESCRIPTORS || + ((that.href = serializeURL.call(that)), + (that.origin = getOrigin.call(that)), + (that.protocol = getProtocol.call(that)), + (that.username = getUsername.call(that)), + (that.password = getPassword.call(that)), + (that.host = getHost.call(that)), + (that.hostname = getHostname.call(that)), + (that.port = getPort.call(that)), + (that.pathname = getPathname.call(that)), + (that.search = getSearch.call(that)), + (that.searchParams = getSearchParams.call(that)), + (that.hash = getHash.call(that))); + }, + URLPrototype = URLConstructor.prototype, + serializeURL = function () { + var url = getInternalURLState(this), + scheme = url.scheme, + username = url.username, + password = url.password, + host = url.host, + port = url.port, + path = url.path, + query = url.query, + fragment = url.fragment, + output = scheme + ':'; + return ( + null !== host + ? ((output += '//'), + includesCredentials(url) && (output += username + (password ? ':' + password : '') + '@'), + (output += serializeHost(host)), + null !== port && (output += ':' + port)) + : 'file' == scheme && (output += '//'), + (output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : ''), + null !== query && (output += '?' + query), + null !== fragment && (output += '#' + fragment), + output + ); + }, + getOrigin = function () { + var url = getInternalURLState(this), + scheme = url.scheme, + port = url.port; + if ('blob' == scheme) + try { + return new URLConstructor(scheme.path[0]).origin; + } catch (error) { + return 'null'; + } + return 'file' != scheme && isSpecial(url) + ? scheme + '://' + serializeHost(url.host) + (null !== port ? ':' + port : '') + : 'null'; + }, + getProtocol = function () { + return getInternalURLState(this).scheme + ':'; + }, + getUsername = function () { + return getInternalURLState(this).username; + }, + getPassword = function () { + return getInternalURLState(this).password; + }, + getHost = function () { + var url = getInternalURLState(this), + host = url.host, + port = url.port; + return null === host ? '' : null === port ? serializeHost(host) : serializeHost(host) + ':' + port; + }, + getHostname = function () { + var host = getInternalURLState(this).host; + return null === host ? '' : serializeHost(host); + }, + getPort = function () { + var port = getInternalURLState(this).port; + return null === port ? '' : String(port); + }, + getPathname = function () { + var url = getInternalURLState(this), + path = url.path; + return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : ''; + }, + getSearch = function () { + var query = getInternalURLState(this).query; + return query ? '?' + query : ''; + }, + getSearchParams = function () { + return getInternalURLState(this).searchParams; + }, + getHash = function () { + var fragment = getInternalURLState(this).fragment; + return fragment ? '#' + fragment : ''; + }, + accessorDescriptor = function (getter, setter) { + return { get: getter, set: setter, configurable: !0, enumerable: !0 }; + }; + if ( + (DESCRIPTORS && + defineProperties(URLPrototype, { + href: accessorDescriptor(serializeURL, function (href) { + var url = getInternalURLState(this), + urlString = String(href), + failure = parseURL(url, urlString); + if (failure) throw TypeError(failure); + getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query); + }), + origin: accessorDescriptor(getOrigin), + protocol: accessorDescriptor(getProtocol, function (protocol) { + var url = getInternalURLState(this); + parseURL(url, String(protocol) + ':', SCHEME_START); + }), + username: accessorDescriptor(getUsername, function (username) { + var url = getInternalURLState(this), + codePoints = arrayFrom(String(username)); + if (!cannotHaveUsernamePasswordPort(url)) { + url.username = ''; + for (var i = 0; i < codePoints.length; i++) + url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet); + } + }), + password: accessorDescriptor(getPassword, function (password) { + var url = getInternalURLState(this), + codePoints = arrayFrom(String(password)); + if (!cannotHaveUsernamePasswordPort(url)) { + url.password = ''; + for (var i = 0; i < codePoints.length; i++) + url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet); + } + }), + host: accessorDescriptor(getHost, function (host) { + var url = getInternalURLState(this); + url.cannotBeABaseURL || parseURL(url, String(host), HOST); + }), + hostname: accessorDescriptor(getHostname, function (hostname) { + var url = getInternalURLState(this); + url.cannotBeABaseURL || parseURL(url, String(hostname), HOSTNAME); + }), + port: accessorDescriptor(getPort, function (port) { + var url = getInternalURLState(this); + cannotHaveUsernamePasswordPort(url) || + ('' == (port = String(port)) ? (url.port = null) : parseURL(url, port, PORT)); + }), + pathname: accessorDescriptor(getPathname, function (pathname) { + var url = getInternalURLState(this); + url.cannotBeABaseURL || ((url.path = []), parseURL(url, pathname + '', PATH_START)); + }), + search: accessorDescriptor(getSearch, function (search) { + var url = getInternalURLState(this); + '' == (search = String(search)) + ? (url.query = null) + : ('?' == search.charAt(0) && (search = search.slice(1)), + (url.query = ''), + parseURL(url, search, QUERY)), + getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query); + }), + searchParams: accessorDescriptor(getSearchParams), + hash: accessorDescriptor(getHash, function (hash) { + var url = getInternalURLState(this); + '' != (hash = String(hash)) + ? ('#' == hash.charAt(0) && (hash = hash.slice(1)), (url.fragment = ''), parseURL(url, hash, FRAGMENT)) + : (url.fragment = null); + }), + }), + redefine( + URLPrototype, + 'toJSON', + function toJSON() { + return serializeURL.call(this); + }, + { enumerable: !0 }, + ), + redefine( + URLPrototype, + 'toString', + function toString() { + return serializeURL.call(this); + }, + { enumerable: !0 }, + ), + NativeURL) + ) { + var nativeCreateObjectURL = NativeURL.createObjectURL, + nativeRevokeObjectURL = NativeURL.revokeObjectURL; + nativeCreateObjectURL && + redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) { + return nativeCreateObjectURL.apply(NativeURL, arguments); + }), + nativeRevokeObjectURL && + redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) { + return nativeRevokeObjectURL.apply(NativeURL, arguments); + }); + } + setToStringTag(URLConstructor, 'URL'), + $({ global: !0, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, { URL: URLConstructor }); + }, + 74334: module => { + !(function () { + 'use strict'; + var table = []; + function crcDirect(arr) { + var i, + j, + l, + temp, + crc = -1; + for (i = 0, l = arr.length; i < l; i += 1) { + for (temp = 255 & (crc ^ arr[i]), j = 0; j < 8; j += 1) + 1 == (1 & temp) ? (temp = (temp >>> 1) ^ 3988292384) : (temp >>>= 1); + crc = (crc >>> 8) ^ temp; + } + return -1 ^ crc; + } + function crcTable(arr, append) { + var crc, i, l; + if ((void 0 !== crcTable.crc && append && arr) || ((crcTable.crc = -1), arr)) { + for (crc = crcTable.crc, i = 0, l = arr.length; i < l; i += 1) + crc = (crc >>> 8) ^ table[255 & (crc ^ arr[i])]; + return (crcTable.crc = crc), -1 ^ crc; + } + } + !(function makeTable() { + var c, n, k; + for (n = 0; n < 256; n += 1) { + for (c = n, k = 0; k < 8; k += 1) 1 & c ? (c = 3988292384 ^ (c >>> 1)) : (c >>>= 1); + table[n] = c >>> 0; + } + })(), + (module.exports = function (val, direct) { + val = + 'string' == typeof val + ? (function strToArr(str) { + return Array.prototype.map.call(str, function (c) { + return c.charCodeAt(0); + }); + })(val) + : val; + return ((direct ? crcDirect(val) : crcTable(val)) >>> 0).toString(16); + }), + (module.exports.direct = crcDirect), + (module.exports.table = crcTable); + })(); + }, + 3651: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(14965)]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (module, exports, _utils) { + 'use strict'; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }, + addedDiff = function addedDiff(lhs, rhs) { + if (lhs === rhs || !(0, _utils.isObject)(lhs) || !(0, _utils.isObject)(rhs)) return {}; + var l = (0, _utils.properObject)(lhs), + r = (0, _utils.properObject)(rhs); + return Object.keys(r).reduce(function (acc, key) { + if (l.hasOwnProperty(key)) { + var difference = addedDiff(l[key], r[key]); + return (0, _utils.isObject)(difference) && (0, _utils.isEmpty)(difference) + ? acc + : _extends({}, acc, _defineProperty({}, key, difference)); + } + return _extends({}, acc, _defineProperty({}, key, r[key])); + }, {}); + }; + (exports.default = addedDiff), (module.exports = exports.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 23639: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(14965)]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (module, exports, _utils) { + 'use strict'; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }, + deletedDiff = function deletedDiff(lhs, rhs) { + if (lhs === rhs || !(0, _utils.isObject)(lhs) || !(0, _utils.isObject)(rhs)) return {}; + var l = (0, _utils.properObject)(lhs), + r = (0, _utils.properObject)(rhs); + return Object.keys(l).reduce(function (acc, key) { + if (r.hasOwnProperty(key)) { + var difference = deletedDiff(l[key], r[key]); + return (0, _utils.isObject)(difference) && (0, _utils.isEmpty)(difference) + ? acc + : _extends({}, acc, _defineProperty({}, key, difference)); + } + return _extends({}, acc, _defineProperty({}, key, void 0)); + }, {}); + }; + (exports.default = deletedDiff), (module.exports = exports.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 30984: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [ + module, + exports, + __webpack_require__(3651), + __webpack_require__(23639), + __webpack_require__(33196), + ]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (module, exports, _added, _deleted, _updated) { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _added2 = _interopRequireDefault(_added), + _deleted2 = _interopRequireDefault(_deleted), + _updated2 = _interopRequireDefault(_updated); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var detailedDiff = function detailedDiff(lhs, rhs) { + return { + added: (0, _added2.default)(lhs, rhs), + deleted: (0, _deleted2.default)(lhs, rhs), + updated: (0, _updated2.default)(lhs, rhs), + }; + }; + (exports.default = detailedDiff), (module.exports = exports.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 52274: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(14965)]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (module, exports, _utils) { + 'use strict'; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }, + diff = function diff(lhs, rhs) { + if (lhs === rhs) return {}; + if (!(0, _utils.isObject)(lhs) || !(0, _utils.isObject)(rhs)) return rhs; + var l = (0, _utils.properObject)(lhs), + r = (0, _utils.properObject)(rhs), + deletedValues = Object.keys(l).reduce(function (acc, key) { + return r.hasOwnProperty(key) ? acc : _extends({}, acc, _defineProperty({}, key, void 0)); + }, {}); + return (0, _utils.isDate)(l) || (0, _utils.isDate)(r) + ? l.valueOf() == r.valueOf() + ? {} + : r + : Object.keys(r).reduce(function (acc, key) { + if (!l.hasOwnProperty(key)) return _extends({}, acc, _defineProperty({}, key, r[key])); + var difference = diff(l[key], r[key]); + return (0, _utils.isObject)(difference) && + (0, _utils.isEmpty)(difference) && + !(0, _utils.isDate)(difference) + ? acc + : _extends({}, acc, _defineProperty({}, key, difference)); + }, deletedValues); + }; + (exports.default = diff), (module.exports = exports.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 26173: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [ + exports, + __webpack_require__(52274), + __webpack_require__(3651), + __webpack_require__(23639), + __webpack_require__(33196), + __webpack_require__(30984), + ]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (exports, _diff, _added, _deleted, _updated, _detailed) { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }), + (exports.detailedDiff = exports.updatedDiff = exports.deletedDiff = exports.diff = exports.addedDiff = void 0); + var _diff2 = _interopRequireDefault(_diff), + _added2 = _interopRequireDefault(_added), + _deleted2 = _interopRequireDefault(_deleted), + _updated2 = _interopRequireDefault(_updated), + _detailed2 = _interopRequireDefault(_detailed); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + (exports.addedDiff = _added2.default), + (exports.diff = _diff2.default), + (exports.deletedDiff = _deleted2.default), + (exports.updatedDiff = _updated2.default), + (exports.detailedDiff = _detailed2.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 33196: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(14965)]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (module, exports, _utils) { + 'use strict'; + function _defineProperty(obj, key, value) { + return ( + key in obj + ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) + : (obj[key] = value), + obj + ); + } + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }, + updatedDiff = function updatedDiff(lhs, rhs) { + if (lhs === rhs) return {}; + if (!(0, _utils.isObject)(lhs) || !(0, _utils.isObject)(rhs)) return rhs; + var l = (0, _utils.properObject)(lhs), + r = (0, _utils.properObject)(rhs); + return (0, _utils.isDate)(l) || (0, _utils.isDate)(r) + ? l.valueOf() == r.valueOf() + ? {} + : r + : Object.keys(r).reduce(function (acc, key) { + if (l.hasOwnProperty(key)) { + var difference = updatedDiff(l[key], r[key]); + return (0, _utils.isObject)(difference) && + (0, _utils.isEmpty)(difference) && + !(0, _utils.isDate)(difference) + ? acc + : _extends({}, acc, _defineProperty({}, key, difference)); + } + return acc; + }, {}); + }; + (exports.default = updatedDiff), (module.exports = exports.default); + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 14965: function (module, exports) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + (__WEBPACK_AMD_DEFINE_ARRAY__ = [exports]), + (__WEBPACK_AMD_DEFINE_FACTORY__ = function (exports) { + 'use strict'; + Object.defineProperty(exports, '__esModule', { value: !0 }); + var _extends = + Object.assign || + function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + for (var key in source) + Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); + } + return target; + }, + _typeof = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (obj) { + return typeof obj; + } + : function (obj) { + return obj && 'function' == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype + ? 'symbol' + : typeof obj; + }, + isObject = + ((exports.isDate = function isDate(d) { + return d instanceof Date; + }), + (exports.isEmpty = function isEmpty(o) { + return 0 === Object.keys(o).length; + }), + (exports.isObject = function isObject(o) { + return null != o && 'object' === (void 0 === o ? 'undefined' : _typeof(o)); + })); + exports.properObject = function properObject(o) { + return isObject(o) && !o.hasOwnProperty ? _extends({}, o) : o; + }; + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 14926: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var keys = __webpack_require__(33464), + hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol('foo'), + toStr = Object.prototype.toString, + concat = Array.prototype.concat, + origDefineProperty = Object.defineProperty, + supportsDescriptors = + origDefineProperty && + (function () { + var obj = {}; + try { + for (var _ in (origDefineProperty(obj, 'x', { enumerable: !1, value: obj }), obj)) return !1; + return obj.x === obj; + } catch (e) { + return !1; + } + })(), + defineProperty = function (object, name, value, predicate) { + var fn; + (!(name in object) || + ('function' == typeof (fn = predicate) && '[object Function]' === toStr.call(fn) && predicate())) && + (supportsDescriptors + ? origDefineProperty(object, name, { configurable: !0, enumerable: !1, value, writable: !0 }) + : (object[name] = value)); + }, + defineProperties = function (object, map) { + var predicates = arguments.length > 2 ? arguments[2] : {}, + props = keys(map); + hasSymbols && (props = concat.call(props, Object.getOwnPropertySymbols(map))); + for (var i = 0; i < props.length; i += 1) + defineProperty(object, props[i], map[props[i]], predicates[props[i]]); + }; + (defineProperties.supportsDescriptors = !!supportsDescriptors), (module.exports = defineProperties); + }, + 63795: (module, __unused_webpack_exports, __webpack_require__) => { + !(function () { + 'use strict'; + module.exports = { inflate: __webpack_require__(72875), deflate: __webpack_require__(10914) }; + })(); + }, + 10914: module => { + !(function () { + var free_queue, + qhead, + qtail, + initflag, + outcnt, + outoff, + complete, + window, + d_buf, + l_buf, + prev, + bi_buf, + bi_valid, + block_start, + ins_h, + hash_head, + prev_match, + match_available, + match_length, + prev_length, + strstart, + match_start, + eofile, + lookahead, + max_chain_length, + max_lazy_match, + compr_level, + good_match, + nice_match, + dyn_ltree, + dyn_dtree, + static_ltree, + static_dtree, + bl_tree, + l_desc, + d_desc, + bl_desc, + bl_count, + heap, + heap_len, + heap_max, + depth, + length_code, + dist_code, + base_length, + base_dist, + flag_buf, + last_lit, + last_dist, + last_flags, + flags, + flag_bit, + opt_len, + static_len, + deflate_data, + deflate_pos, + H_SHIFT = parseInt(17 / 3, 10), + outbuf = null; + function DeflateCT() { + (this.fc = 0), (this.dl = 0); + } + function DeflateTreeDesc() { + (this.dyn_tree = null), + (this.static_tree = null), + (this.extra_bits = null), + (this.extra_base = 0), + (this.elems = 0), + (this.max_length = 0), + (this.max_code = 0); + } + function DeflateConfiguration(a, b, c, d) { + (this.good_length = a), (this.max_lazy = b), (this.nice_length = c), (this.max_chain = d); + } + function DeflateBuffer() { + (this.next = null), (this.len = 0), (this.ptr = []), (this.off = 0); + } + var extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], + extra_dbits = [ + 0, + 0, + 0, + 0, + 1, + 1, + 2, + 2, + 3, + 3, + 4, + 4, + 5, + 5, + 6, + 6, + 7, + 7, + 8, + 8, + 9, + 9, + 10, + 10, + 11, + 11, + 12, + 12, + 13, + 13, + ], + extra_blbits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], + bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], + configuration_table = [ + new DeflateConfiguration(0, 0, 0, 0), + new DeflateConfiguration(4, 4, 8, 4), + new DeflateConfiguration(4, 5, 16, 8), + new DeflateConfiguration(4, 6, 32, 32), + new DeflateConfiguration(4, 4, 16, 16), + new DeflateConfiguration(8, 16, 32, 32), + new DeflateConfiguration(8, 16, 128, 128), + new DeflateConfiguration(8, 32, 128, 256), + new DeflateConfiguration(32, 128, 258, 1024), + new DeflateConfiguration(32, 258, 258, 4096), + ]; + function reuse_queue(p) { + (p.next = free_queue), (free_queue = p); + } + function head1(i) { + return prev[32768 + i]; + } + function head2(i, val) { + return (prev[32768 + i] = val); + } + function put_byte(c) { + (outbuf[outoff + outcnt++] = c), + outoff + outcnt === 8192 && + (function qoutbuf() { + var q, i; + if (0 !== outcnt) { + for ( + q = (function new_queue() { + var p; + return ( + null !== free_queue + ? ((p = free_queue), (free_queue = free_queue.next)) + : (p = new DeflateBuffer()), + (p.next = null), + (p.len = p.off = 0), + p + ); + })(), + null === qhead ? (qhead = qtail = q) : (qtail = qtail.next = q), + q.len = outcnt - outoff, + i = 0; + i < q.len; + i++ + ) + q.ptr[i] = outbuf[outoff + i]; + outcnt = outoff = 0; + } + })(); + } + function put_short(w) { + (w &= 65535), + outoff + outcnt < 8190 + ? ((outbuf[outoff + outcnt++] = 255 & w), (outbuf[outoff + outcnt++] = w >>> 8)) + : (put_byte(255 & w), put_byte(w >>> 8)); + } + function INSERT_STRING() { + (ins_h = 32767 & ((ins_h << H_SHIFT) ^ (255 & window[strstart + 3 - 1]))), + (hash_head = head1(ins_h)), + (prev[32767 & strstart] = hash_head), + head2(ins_h, strstart); + } + function SEND_CODE(c, tree) { + send_bits(tree[c].fc, tree[c].dl); + } + function D_CODE(dist) { + return 255 & (dist < 256 ? dist_code[dist] : dist_code[256 + (dist >> 7)]); + } + function SMALLER(tree, n, m) { + return tree[n].fc < tree[m].fc || (tree[n].fc === tree[m].fc && depth[n] <= depth[m]); + } + function read_buff(buff, offset, n) { + var i; + for (i = 0; i < n && deflate_pos < deflate_data.length; i++) + buff[offset + i] = 255 & deflate_data[deflate_pos++]; + return i; + } + function longest_match(cur_match) { + var matchp, + len, + i, + broke, + chain_length = max_chain_length, + scanp = strstart, + best_len = prev_length, + limit = strstart > 32506 ? strstart - 32506 : 0, + strendp = strstart + 258, + scan_end1 = window[scanp + best_len - 1], + scan_end = window[scanp + best_len]; + prev_length >= good_match && (chain_length >>= 2); + do { + if ( + window[(matchp = cur_match) + best_len] === scan_end && + window[matchp + best_len - 1] === scan_end1 && + window[matchp] === window[scanp] && + window[++matchp] === window[scanp + 1] + ) { + for (scanp += 2, matchp++; scanp < strendp; ) { + for (broke = !1, i = 0; i < 8; i += 1) + if (((matchp += 1), window[(scanp += 1)] !== window[matchp])) { + broke = !0; + break; + } + if (broke) break; + } + if (((len = 258 - (strendp - scanp)), (scanp = strendp - 258), len > best_len)) { + if (((match_start = cur_match), (best_len = len), len >= nice_match)) break; + (scan_end1 = window[scanp + best_len - 1]), (scan_end = window[scanp + best_len]); + } + } + } while ((cur_match = prev[32767 & cur_match]) > limit && 0 != --chain_length); + return best_len; + } + function fill_window() { + var n, + m, + more = 65536 - lookahead - strstart; + if (-1 === more) more--; + else if (strstart >= 65274) { + for (n = 0; n < 32768; n++) window[n] = window[n + 32768]; + for (match_start -= 32768, strstart -= 32768, block_start -= 32768, n = 0; n < 32768; n++) + head2(n, (m = head1(n)) >= 32768 ? m - 32768 : 0); + for (n = 0; n < 32768; n++) (m = prev[n]), (prev[n] = m >= 32768 ? m - 32768 : 0); + more += 32768; + } + eofile || ((n = read_buff(window, strstart + lookahead, more)) <= 0 ? (eofile = !0) : (lookahead += n)); + } + function init_deflate() { + eofile || + ((bi_buf = 0), + (bi_valid = 0), + (function ct_init() { + var n, bits, length, code, dist; + if (0 !== static_dtree[0].dl) return; + for ( + l_desc.dyn_tree = dyn_ltree, + l_desc.static_tree = static_ltree, + l_desc.extra_bits = extra_lbits, + l_desc.extra_base = 257, + l_desc.elems = 286, + l_desc.max_length = 15, + l_desc.max_code = 0, + d_desc.dyn_tree = dyn_dtree, + d_desc.static_tree = static_dtree, + d_desc.extra_bits = extra_dbits, + d_desc.extra_base = 0, + d_desc.elems = 30, + d_desc.max_length = 15, + d_desc.max_code = 0, + bl_desc.dyn_tree = bl_tree, + bl_desc.static_tree = null, + bl_desc.extra_bits = extra_blbits, + bl_desc.extra_base = 0, + bl_desc.elems = 19, + bl_desc.max_length = 7, + bl_desc.max_code = 0, + length = 0, + code = 0; + code < 28; + code++ + ) + for (base_length[code] = length, n = 0; n < 1 << extra_lbits[code]; n++) length_code[length++] = code; + for (length_code[length - 1] = code, dist = 0, code = 0; code < 16; code++) + for (base_dist[code] = dist, n = 0; n < 1 << extra_dbits[code]; n++) dist_code[dist++] = code; + for (dist >>= 7; code < 30; code++) + for (base_dist[code] = dist << 7, n = 0; n < 1 << (extra_dbits[code] - 7); n++) + dist_code[256 + dist++] = code; + for (bits = 0; bits <= 15; bits++) bl_count[bits] = 0; + n = 0; + for (; n <= 143; ) (static_ltree[n++].dl = 8), bl_count[8]++; + for (; n <= 255; ) (static_ltree[n++].dl = 9), bl_count[9]++; + for (; n <= 279; ) (static_ltree[n++].dl = 7), bl_count[7]++; + for (; n <= 287; ) (static_ltree[n++].dl = 8), bl_count[8]++; + for (gen_codes(static_ltree, 287), n = 0; n < 30; n++) + (static_dtree[n].dl = 5), (static_dtree[n].fc = bi_reverse(n, 5)); + init_block(); + })(), + (function lm_init() { + var j; + for (j = 0; j < 32768; j++) prev[32768 + j] = 0; + if ( + ((max_lazy_match = configuration_table[compr_level].max_lazy), + (good_match = configuration_table[compr_level].good_length), + (nice_match = configuration_table[compr_level].nice_length), + (max_chain_length = configuration_table[compr_level].max_chain), + (strstart = 0), + (block_start = 0), + (lookahead = read_buff(window, 0, 65536)) <= 0) + ) + return (eofile = !0), void (lookahead = 0); + for (eofile = !1; lookahead < 262 && !eofile; ) fill_window(); + for (ins_h = 0, j = 0; j < 2; j++) ins_h = 32767 & ((ins_h << H_SHIFT) ^ (255 & window[j])); + })(), + (qhead = null), + (outcnt = 0), + (outoff = 0), + compr_level <= 3 ? ((prev_length = 2), (match_length = 0)) : ((match_length = 2), (match_available = !1)), + (complete = !1)); + } + function deflate_internal(buff, off, buff_size) { + var n; + return initflag || (init_deflate(), (initflag = !0), 0 !== lookahead) + ? (n = qcopy(buff, off, buff_size)) === buff_size + ? buff_size + : complete + ? n + : (compr_level <= 3 + ? (function deflate_fast() { + for (; 0 !== lookahead && null === qhead; ) { + var flush; + if ( + (INSERT_STRING(), + 0 !== hash_head && + strstart - hash_head <= 32506 && + (match_length = longest_match(hash_head)) > lookahead && + (match_length = lookahead), + match_length >= 3) + ) + if ( + ((flush = ct_tally(strstart - match_start, match_length - 3)), + (lookahead -= match_length), + match_length <= max_lazy_match) + ) { + match_length--; + do { + strstart++, INSERT_STRING(); + } while (0 != --match_length); + strstart++; + } else + (strstart += match_length), + (match_length = 0), + (ins_h = + 32767 & (((ins_h = 255 & window[strstart]) << H_SHIFT) ^ (255 & window[strstart + 1]))); + else (flush = ct_tally(0, 255 & window[strstart])), lookahead--, strstart++; + for (flush && (flush_block(0), (block_start = strstart)); lookahead < 262 && !eofile; ) + fill_window(); + } + })() + : (function deflate_better() { + for (; 0 !== lookahead && null === qhead; ) { + if ( + (INSERT_STRING(), + (prev_length = match_length), + (prev_match = match_start), + (match_length = 2), + 0 !== hash_head && + prev_length < max_lazy_match && + strstart - hash_head <= 32506 && + ((match_length = longest_match(hash_head)) > lookahead && (match_length = lookahead), + 3 === match_length && strstart - match_start > 4096 && match_length--), + prev_length >= 3 && match_length <= prev_length) + ) { + var flush; + (flush = ct_tally(strstart - 1 - prev_match, prev_length - 3)), + (lookahead -= prev_length - 1), + (prev_length -= 2); + do { + strstart++, INSERT_STRING(); + } while (0 != --prev_length); + (match_available = !1), + (match_length = 2), + strstart++, + flush && (flush_block(0), (block_start = strstart)); + } else + match_available + ? (ct_tally(0, 255 & window[strstart - 1]) && (flush_block(0), (block_start = strstart)), + strstart++, + lookahead--) + : ((match_available = !0), strstart++, lookahead--); + for (; lookahead < 262 && !eofile; ) fill_window(); + } + })(), + 0 === lookahead && + (match_available && ct_tally(0, 255 & window[strstart - 1]), flush_block(1), (complete = !0)), + n + qcopy(buff, n + off, buff_size - n)) + : ((complete = !0), 0); + } + function qcopy(buff, off, buff_size) { + var n, i, j; + for (n = 0; null !== qhead && n < buff_size; ) { + for ((i = buff_size - n) > qhead.len && (i = qhead.len), j = 0; j < i; j++) + buff[off + n + j] = qhead.ptr[qhead.off + j]; + var p; + if (((qhead.off += i), (qhead.len -= i), (n += i), 0 === qhead.len)) + (p = qhead), (qhead = qhead.next), reuse_queue(p); + } + if (n === buff_size) return n; + if (outoff < outcnt) { + for ((i = buff_size - n) > outcnt - outoff && (i = outcnt - outoff), j = 0; j < i; j++) + buff[off + n + j] = outbuf[outoff + j]; + (n += i), outcnt === (outoff += i) && (outcnt = outoff = 0); + } + return n; + } + function init_block() { + var n; + for (n = 0; n < 286; n++) dyn_ltree[n].fc = 0; + for (n = 0; n < 30; n++) dyn_dtree[n].fc = 0; + for (n = 0; n < 19; n++) bl_tree[n].fc = 0; + (dyn_ltree[256].fc = 1), + (opt_len = static_len = 0), + (last_lit = last_dist = last_flags = 0), + (flags = 0), + (flag_bit = 1); + } + function pqdownheap(tree, k) { + for ( + var v = heap[k], j = k << 1; + j <= heap_len && (j < heap_len && SMALLER(tree, heap[j + 1], heap[j]) && j++, !SMALLER(tree, v, heap[j])); + + ) + (heap[k] = heap[j]), (k = j), (j <<= 1); + heap[k] = v; + } + function gen_codes(tree, max_code) { + var bits, + n, + next_code = [], + code = 0; + for (bits = 1; bits <= 15; bits++) (code = (code + bl_count[bits - 1]) << 1), (next_code[bits] = code); + for (n = 0; n <= max_code; n++) { + var len = tree[n].dl; + 0 !== len && (tree[n].fc = bi_reverse(next_code[len]++, len)); + } + } + function build_tree(desc) { + var n, + m, + tree = desc.dyn_tree, + stree = desc.static_tree, + elems = desc.elems, + max_code = -1, + node = elems; + for (heap_len = 0, heap_max = 573, n = 0; n < elems; n++) + 0 !== tree[n].fc ? ((heap[++heap_len] = max_code = n), (depth[n] = 0)) : (tree[n].dl = 0); + for (; heap_len < 2; ) { + var xnew = (heap[++heap_len] = max_code < 2 ? ++max_code : 0); + (tree[xnew].fc = 1), (depth[xnew] = 0), opt_len--, null !== stree && (static_len -= stree[xnew].dl); + } + for (desc.max_code = max_code, n = heap_len >> 1; n >= 1; n--) pqdownheap(tree, n); + do { + (n = heap[1]), + (heap[1] = heap[heap_len--]), + pqdownheap(tree, 1), + (m = heap[1]), + (heap[--heap_max] = n), + (heap[--heap_max] = m), + (tree[node].fc = tree[n].fc + tree[m].fc), + depth[n] > depth[m] + 1 ? (depth[node] = depth[n]) : (depth[node] = depth[m] + 1), + (tree[n].dl = tree[m].dl = node), + (heap[1] = node++), + pqdownheap(tree, 1); + } while (heap_len >= 2); + (heap[--heap_max] = heap[1]), + (function gen_bitlen(desc) { + var h, + n, + m, + bits, + xbits, + f, + tree = desc.dyn_tree, + extra = desc.extra_bits, + base = desc.extra_base, + max_code = desc.max_code, + max_length = desc.max_length, + stree = desc.static_tree, + overflow = 0; + for (bits = 0; bits <= 15; bits++) bl_count[bits] = 0; + for (tree[heap[heap_max]].dl = 0, h = heap_max + 1; h < 573; h++) + (bits = tree[tree[(n = heap[h])].dl].dl + 1) > max_length && ((bits = max_length), overflow++), + (tree[n].dl = bits), + n > max_code || + (bl_count[bits]++, + (xbits = 0), + n >= base && (xbits = extra[n - base]), + (f = tree[n].fc), + (opt_len += f * (bits + xbits)), + null !== stree && (static_len += f * (stree[n].dl + xbits))); + if (0 !== overflow) { + do { + for (bits = max_length - 1; 0 === bl_count[bits]; ) bits--; + bl_count[bits]--, (bl_count[bits + 1] += 2), bl_count[max_length]--, (overflow -= 2); + } while (overflow > 0); + for (bits = max_length; 0 !== bits; bits--) + for (n = bl_count[bits]; 0 !== n; ) + (m = heap[--h]) > max_code || + (tree[m].dl !== bits && ((opt_len += (bits - tree[m].dl) * tree[m].fc), (tree[m].fc = bits)), + n--); + } + })(desc), + gen_codes(tree, max_code); + } + function scan_tree(tree, max_code) { + var n, + curlen, + prevlen = -1, + nextlen = tree[0].dl, + count = 0, + max_count = 7, + min_count = 4; + for ( + 0 === nextlen && ((max_count = 138), (min_count = 3)), tree[max_code + 1].dl = 65535, n = 0; + n <= max_code; + n++ + ) + (curlen = nextlen), + (nextlen = tree[n + 1].dl), + (++count < max_count && curlen === nextlen) || + (count < min_count + ? (bl_tree[curlen].fc += count) + : 0 !== curlen + ? (curlen !== prevlen && bl_tree[curlen].fc++, bl_tree[16].fc++) + : count <= 10 + ? bl_tree[17].fc++ + : bl_tree[18].fc++, + (count = 0), + (prevlen = curlen), + 0 === nextlen + ? ((max_count = 138), (min_count = 3)) + : curlen === nextlen + ? ((max_count = 6), (min_count = 3)) + : ((max_count = 7), (min_count = 4))); + } + function send_tree(tree, max_code) { + var n, + curlen, + prevlen = -1, + nextlen = tree[0].dl, + count = 0, + max_count = 7, + min_count = 4; + for (0 === nextlen && ((max_count = 138), (min_count = 3)), n = 0; n <= max_code; n++) + if (((curlen = nextlen), (nextlen = tree[n + 1].dl), !(++count < max_count && curlen === nextlen))) { + if (count < min_count) + do { + SEND_CODE(curlen, bl_tree); + } while (0 != --count); + else + 0 !== curlen + ? (curlen !== prevlen && (SEND_CODE(curlen, bl_tree), count--), + SEND_CODE(16, bl_tree), + send_bits(count - 3, 2)) + : count <= 10 + ? (SEND_CODE(17, bl_tree), send_bits(count - 3, 3)) + : (SEND_CODE(18, bl_tree), send_bits(count - 11, 7)); + (count = 0), + (prevlen = curlen), + 0 === nextlen + ? ((max_count = 138), (min_count = 3)) + : curlen === nextlen + ? ((max_count = 6), (min_count = 3)) + : ((max_count = 7), (min_count = 4)); + } + } + function flush_block(eof) { + var opt_lenb, static_lenb, max_blindex, stored_len, i; + if ( + ((stored_len = strstart - block_start), + (flag_buf[last_flags] = flags), + build_tree(l_desc), + build_tree(d_desc), + (max_blindex = (function build_bl_tree() { + var max_blindex; + for ( + scan_tree(dyn_ltree, l_desc.max_code), + scan_tree(dyn_dtree, d_desc.max_code), + build_tree(bl_desc), + max_blindex = 18; + max_blindex >= 3 && 0 === bl_tree[bl_order[max_blindex]].dl; + max_blindex-- + ); + return (opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4), max_blindex; + })()), + (static_lenb = (static_len + 3 + 7) >> 3) <= (opt_lenb = (opt_len + 3 + 7) >> 3) && + (opt_lenb = static_lenb), + stored_len + 4 <= opt_lenb && block_start >= 0) + ) + for ( + send_bits(0 + eof, 3), bi_windup(), put_short(stored_len), put_short(~stored_len), i = 0; + i < stored_len; + i++ + ) + put_byte(window[block_start + i]); + else + static_lenb === opt_lenb + ? (send_bits(2 + eof, 3), compress_block(static_ltree, static_dtree)) + : (send_bits(4 + eof, 3), + (function send_all_trees(lcodes, dcodes, blcodes) { + var rank; + for ( + send_bits(lcodes - 257, 5), send_bits(dcodes - 1, 5), send_bits(blcodes - 4, 4), rank = 0; + rank < blcodes; + rank++ + ) + send_bits(bl_tree[bl_order[rank]].dl, 3); + send_tree(dyn_ltree, lcodes - 1), send_tree(dyn_dtree, dcodes - 1); + })(l_desc.max_code + 1, d_desc.max_code + 1, max_blindex + 1), + compress_block(dyn_ltree, dyn_dtree)); + init_block(), 0 !== eof && bi_windup(); + } + function ct_tally(dist, lc) { + if ( + ((l_buf[last_lit++] = lc), + 0 === dist + ? dyn_ltree[lc].fc++ + : (dist--, + dyn_ltree[length_code[lc] + 256 + 1].fc++, + dyn_dtree[D_CODE(dist)].fc++, + (d_buf[last_dist++] = dist), + (flags |= flag_bit)), + (flag_bit <<= 1), + 0 == (7 & last_lit) && ((flag_buf[last_flags++] = flags), (flags = 0), (flag_bit = 1)), + compr_level > 2 && 0 == (4095 & last_lit)) + ) { + var dcode, + out_length = 8 * last_lit, + in_length = strstart - block_start; + for (dcode = 0; dcode < 30; dcode++) out_length += dyn_dtree[dcode].fc * (5 + extra_dbits[dcode]); + if ( + ((out_length >>= 3), last_dist < parseInt(last_lit / 2, 10) && out_length < parseInt(in_length / 2, 10)) + ) + return !0; + } + return 8191 === last_lit || 8192 === last_dist; + } + function compress_block(ltree, dtree) { + var dist, + lc, + code, + extra, + lx = 0, + dx = 0, + fx = 0, + flag = 0; + if (0 !== last_lit) + do { + 0 == (7 & lx) && (flag = flag_buf[fx++]), + (lc = 255 & l_buf[lx++]), + 0 == (1 & flag) + ? SEND_CODE(lc, ltree) + : (SEND_CODE((code = length_code[lc]) + 256 + 1, ltree), + 0 !== (extra = extra_lbits[code]) && send_bits((lc -= base_length[code]), extra), + SEND_CODE((code = D_CODE((dist = d_buf[dx++]))), dtree), + 0 !== (extra = extra_dbits[code]) && send_bits((dist -= base_dist[code]), extra)), + (flag >>= 1); + } while (lx < last_lit); + SEND_CODE(256, ltree); + } + function send_bits(value, length) { + bi_valid > 16 - length + ? (put_short((bi_buf |= value << bi_valid)), (bi_buf = value >> (16 - bi_valid)), (bi_valid += length - 16)) + : ((bi_buf |= value << bi_valid), (bi_valid += length)); + } + function bi_reverse(code, len) { + var res = 0; + do { + (res |= 1 & code), (code >>= 1), (res <<= 1); + } while (--len > 0); + return res >> 1; + } + function bi_windup() { + bi_valid > 8 ? put_short(bi_buf) : bi_valid > 0 && put_byte(bi_buf), (bi_buf = 0), (bi_valid = 0); + } + (module.exports = function deflate(arr, level) { + var i, buff; + (deflate_data = arr), + (deflate_pos = 0), + void 0 === level && (level = 6), + (function deflate_start(level) { + var i; + if ( + (level ? (level < 1 ? (level = 1) : level > 9 && (level = 9)) : (level = 6), + (compr_level = level), + (initflag = !1), + (eofile = !1), + null === outbuf) + ) { + for ( + free_queue = qhead = qtail = null, + outbuf = [], + window = [], + d_buf = [], + l_buf = [], + prev = [], + dyn_ltree = [], + i = 0; + i < 573; + i++ + ) + dyn_ltree[i] = new DeflateCT(); + for (dyn_dtree = [], i = 0; i < 61; i++) dyn_dtree[i] = new DeflateCT(); + for (static_ltree = [], i = 0; i < 288; i++) static_ltree[i] = new DeflateCT(); + for (static_dtree = [], i = 0; i < 30; i++) static_dtree[i] = new DeflateCT(); + for (bl_tree = [], i = 0; i < 39; i++) bl_tree[i] = new DeflateCT(); + (l_desc = new DeflateTreeDesc()), + (d_desc = new DeflateTreeDesc()), + (bl_desc = new DeflateTreeDesc()), + (bl_count = []), + (heap = []), + (depth = []), + (length_code = []), + (dist_code = []), + (base_length = []), + (base_dist = []), + (flag_buf = []); + } + })(level), + (buff = []); + do { + i = deflate_internal(buff, buff.length, 1024); + } while (i > 0); + return (deflate_data = null), buff; + }), + (module.exports.DEFAULT_LEVEL = 6); + })(); + }, + 72875: module => { + !(function () { + var slide, + wp, + fixed_td, + fixed_bl, + fixed_bd, + bit_buf, + bit_len, + method, + eof, + copy_leng, + copy_dist, + tl, + td, + bl, + bd, + inflate_data, + inflate_pos, + fixed_tl = null, + MASK_BITS = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535], + cplens = [ + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 13, + 15, + 17, + 19, + 23, + 27, + 31, + 35, + 43, + 51, + 59, + 67, + 83, + 99, + 115, + 131, + 163, + 195, + 227, + 258, + 0, + 0, + ], + cplext = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99], + cpdist = [ + 1, + 2, + 3, + 4, + 5, + 7, + 9, + 13, + 17, + 25, + 33, + 49, + 65, + 97, + 129, + 193, + 257, + 385, + 513, + 769, + 1025, + 1537, + 2049, + 3073, + 4097, + 6145, + 8193, + 12289, + 16385, + 24577, + ], + cpdext = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], + border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; + function HuftList() { + (this.next = null), (this.list = null); + } + function HuftNode() { + (this.e = 0), (this.b = 0), (this.n = 0), (this.t = null); + } + function HuftBuild(b, n, s, d, e, mm) { + var a; + (this.BMAX = 16), (this.N_MAX = 288), (this.status = 0), (this.root = null), (this.m = 0); + var el, + f, + g, + h, + i, + j, + k, + p, + pidx, + q, + w, + xp, + y, + z, + o, + tail, + c = [], + lx = [], + r = new HuftNode(), + u = [], + v = [], + x = []; + for (tail = this.root = null, i = 0; i < this.BMAX + 1; i++) c[i] = 0; + for (i = 0; i < this.BMAX + 1; i++) lx[i] = 0; + for (i = 0; i < this.BMAX; i++) u[i] = null; + for (i = 0; i < this.N_MAX; i++) v[i] = 0; + for (i = 0; i < this.BMAX + 1; i++) x[i] = 0; + (el = n > 256 ? b[256] : this.BMAX), (p = b), (pidx = 0), (i = n); + do { + c[p[pidx]]++, pidx++; + } while (--i > 0); + if (c[0] === n) return (this.root = null), (this.m = 0), void (this.status = 0); + for (j = 1; j <= this.BMAX && 0 === c[j]; j++); + for (k = j, mm < j && (mm = j), i = this.BMAX; 0 !== i && 0 === c[i]; i--); + for (g = i, mm > i && (mm = i), y = 1 << j; j < i; j++, y <<= 1) + if ((y -= c[j]) < 0) return (this.status = 2), void (this.m = mm); + if ((y -= c[i]) < 0) return (this.status = 2), void (this.m = mm); + for (c[i] += y, x[1] = j = 0, p = c, pidx = 1, xp = 2; --i > 0; ) x[xp++] = j += p[pidx++]; + (p = b), (pidx = 0), (i = 0); + do { + 0 !== (j = p[pidx++]) && (v[x[j]++] = i); + } while (++i < n); + for (n = x[g], x[0] = i = 0, p = v, pidx = 0, h = -1, w = lx[0] = 0, q = null, z = 0; k <= g; k++) + for (a = c[k]; a-- > 0; ) { + for (; k > w + lx[1 + h]; ) { + if (((w += lx[1 + h]), h++, (z = (z = g - w) > mm ? mm : z), (f = 1 << (j = k - w)) > a + 1)) + for (f -= a + 1, xp = k; ++j < z && !((f <<= 1) <= c[++xp]); ) f -= c[xp]; + for (w + j > el && w < el && (j = el - w), z = 1 << j, lx[1 + h] = j, q = [], o = 0; o < z; o++) + q[o] = new HuftNode(); + ((tail = tail ? (tail.next = new HuftList()) : (this.root = new HuftList())).next = null), + (tail.list = q), + (u[h] = q), + h > 0 && + ((x[h] = i), + (r.b = lx[h]), + (r.e = 16 + j), + (r.t = q), + (j = (i & ((1 << w) - 1)) >> (w - lx[h])), + (u[h - 1][j].e = r.e), + (u[h - 1][j].b = r.b), + (u[h - 1][j].n = r.n), + (u[h - 1][j].t = r.t)); + } + for ( + r.b = k - w, + pidx >= n + ? (r.e = 99) + : p[pidx] < s + ? ((r.e = p[pidx] < 256 ? 16 : 15), (r.n = p[pidx++])) + : ((r.e = e[p[pidx] - s]), (r.n = d[p[pidx++] - s])), + f = 1 << (k - w), + j = i >> w; + j < z; + j += f + ) + (q[j].e = r.e), (q[j].b = r.b), (q[j].n = r.n), (q[j].t = r.t); + for (j = 1 << (k - 1); 0 != (i & j); j >>= 1) i ^= j; + for (i ^= j; (i & ((1 << w) - 1)) !== x[h]; ) (w -= lx[h]), h--; + } + (this.m = lx[1]), (this.status = 0 !== y && 1 !== g ? 1 : 0); + } + function NEEDBITS(n) { + for (; bit_len < n; ) + (bit_buf |= (inflate_data.length === inflate_pos ? -1 : 255 & inflate_data[inflate_pos++]) << bit_len), + (bit_len += 8); + } + function GETBITS(n) { + return bit_buf & MASK_BITS[n]; + } + function DUMPBITS(n) { + (bit_buf >>= n), (bit_len -= n); + } + function inflate_codes(buff, off, size) { + var e, t, n; + if (0 === size) return 0; + for (n = 0; ; ) { + for (NEEDBITS(bl), e = (t = tl.list[GETBITS(bl)]).e; e > 16; ) { + if (99 === e) return -1; + DUMPBITS(t.b), NEEDBITS((e -= 16)), (e = (t = t.t[GETBITS(e)]).e); + } + if ((DUMPBITS(t.b), 16 !== e)) { + if (15 === e) break; + for ( + NEEDBITS(e), copy_leng = t.n + GETBITS(e), DUMPBITS(e), NEEDBITS(bd), e = (t = td.list[GETBITS(bd)]).e; + e > 16; + + ) { + if (99 === e) return -1; + DUMPBITS(t.b), NEEDBITS((e -= 16)), (e = (t = t.t[GETBITS(e)]).e); + } + for ( + DUMPBITS(t.b), NEEDBITS(e), copy_dist = wp - t.n - GETBITS(e), DUMPBITS(e); + copy_leng > 0 && n < size; + + ) + copy_leng--, (copy_dist &= 32767), (wp &= 32767), (buff[off + n++] = slide[wp++] = slide[copy_dist++]); + if (n === size) return size; + } else if (((wp &= 32767), (buff[off + n++] = slide[wp++] = t.n), n === size)) return size; + } + return (method = -1), n; + } + function inflate_stored(buff, off, size) { + var n; + if ( + (DUMPBITS((n = 7 & bit_len)), + NEEDBITS(16), + (n = GETBITS(16)), + DUMPBITS(16), + NEEDBITS(16), + n !== (65535 & ~bit_buf)) + ) + return -1; + for (DUMPBITS(16), copy_leng = n, n = 0; copy_leng > 0 && n < size; ) + copy_leng--, (wp &= 32767), NEEDBITS(8), (buff[off + n++] = slide[wp++] = GETBITS(8)), DUMPBITS(8); + return 0 === copy_leng && (method = -1), n; + } + function inflate_fixed(buff, off, size) { + if (!fixed_tl) { + var i, + h, + l = []; + for (i = 0; i < 144; i++) l[i] = 8; + for (; i < 256; i++) l[i] = 9; + for (; i < 280; i++) l[i] = 7; + for (; i < 288; i++) l[i] = 8; + if (0 !== (h = new HuftBuild(l, 288, 257, cplens, cplext, (fixed_bl = 7))).status) + return console.error('HufBuild error: ' + h.status), -1; + for (fixed_tl = h.root, fixed_bl = h.m, i = 0; i < 30; i++) l[i] = 5; + if ((h = new HuftBuild(l, 30, 0, cpdist, cpdext, (fixed_bd = 5))).status > 1) + return (fixed_tl = null), console.error('HufBuild error: ' + h.status), -1; + (fixed_td = h.root), (fixed_bd = h.m); + } + return (tl = fixed_tl), (td = fixed_td), (bl = fixed_bl), (bd = fixed_bd), inflate_codes(buff, off, size); + } + function inflate_dynamic(buff, off, size) { + var i, + j, + l, + n, + t, + nb, + nl, + nd, + h, + ll = []; + for (i = 0; i < 316; i++) ll[i] = 0; + if ( + (NEEDBITS(5), + (nl = 257 + GETBITS(5)), + DUMPBITS(5), + NEEDBITS(5), + (nd = 1 + GETBITS(5)), + DUMPBITS(5), + NEEDBITS(4), + (nb = 4 + GETBITS(4)), + DUMPBITS(4), + nl > 286 || nd > 30) + ) + return -1; + for (j = 0; j < nb; j++) NEEDBITS(3), (ll[border[j]] = GETBITS(3)), DUMPBITS(3); + for (; j < 19; j++) ll[border[j]] = 0; + if (0 !== (h = new HuftBuild(ll, 19, 19, null, null, (bl = 7))).status) return -1; + for (tl = h.root, bl = h.m, n = nl + nd, i = l = 0; i < n; ) + if ((NEEDBITS(bl), DUMPBITS((j = (t = tl.list[GETBITS(bl)]).b)), (j = t.n) < 16)) ll[i++] = l = j; + else if (16 === j) { + if ((NEEDBITS(2), (j = 3 + GETBITS(2)), DUMPBITS(2), i + j > n)) return -1; + for (; j-- > 0; ) ll[i++] = l; + } else if (17 === j) { + if ((NEEDBITS(3), (j = 3 + GETBITS(3)), DUMPBITS(3), i + j > n)) return -1; + for (; j-- > 0; ) ll[i++] = 0; + l = 0; + } else { + if ((NEEDBITS(7), (j = 11 + GETBITS(7)), DUMPBITS(7), i + j > n)) return -1; + for (; j-- > 0; ) ll[i++] = 0; + l = 0; + } + if ( + ((h = new HuftBuild(ll, nl, 257, cplens, cplext, (bl = 9))), + 0 === bl && (h.status = 1), + 0 !== h.status && 1 !== h.status) + ) + return -1; + for (tl = h.root, bl = h.m, i = 0; i < nd; i++) ll[i] = ll[i + nl]; + return ( + (h = new HuftBuild(ll, nd, 0, cpdist, cpdext, (bd = 6))), + (td = h.root), + (0 === (bd = h.m) && nl > 257) || 0 !== h.status ? -1 : inflate_codes(buff, off, size) + ); + } + function inflate_internal(buff, off, size) { + var n, i; + for (n = 0; n < size; ) { + if (eof && -1 === method) return n; + if (copy_leng > 0) { + if (0 !== method) + for (; copy_leng > 0 && n < size; ) + copy_leng--, + (copy_dist &= 32767), + (wp &= 32767), + (buff[off + n++] = slide[wp++] = slide[copy_dist++]); + else { + for (; copy_leng > 0 && n < size; ) + copy_leng--, (wp &= 32767), NEEDBITS(8), (buff[off + n++] = slide[wp++] = GETBITS(8)), DUMPBITS(8); + 0 === copy_leng && (method = -1); + } + if (n === size) return n; + } + if (-1 === method) { + if (eof) break; + NEEDBITS(1), + 0 !== GETBITS(1) && (eof = !0), + DUMPBITS(1), + NEEDBITS(2), + (method = GETBITS(2)), + DUMPBITS(2), + (tl = null), + (copy_leng = 0); + } + switch (method) { + case 0: + i = inflate_stored(buff, off + n, size - n); + break; + case 1: + i = tl ? inflate_codes(buff, off + n, size - n) : inflate_fixed(buff, off + n, size - n); + break; + case 2: + i = tl ? inflate_codes(buff, off + n, size - n) : inflate_dynamic(buff, off + n, size - n); + break; + default: + i = -1; + } + if (-1 === i) return eof ? 0 : -1; + n += i; + } + return n; + } + module.exports = function inflate(arr) { + var i, + buff = []; + !(function inflate_start() { + slide || (slide = []), + (wp = 0), + (bit_buf = 0), + (bit_len = 0), + (method = -1), + (eof = !1), + (copy_leng = copy_dist = 0), + (tl = null); + })(), + (inflate_data = arr), + (inflate_pos = 0); + do { + i = inflate_internal(buff, buff.length, 1024); + } while (i > 0); + return (inflate_data = null), buff; + }; + })(); + }, + 72516: module => { + 'use strict'; + var detector = (module.exports = {}); + (detector.isIE = function (version) { + return ( + !!(function isAnyIeVersion() { + var agent = navigator.userAgent.toLowerCase(); + return -1 !== agent.indexOf('msie') || -1 !== agent.indexOf('trident') || -1 !== agent.indexOf(' edge/'); + })() && + (!version || + version === + (function () { + var v = 3, + div = document.createElement('div'), + all = div.getElementsByTagName('i'); + do { + div.innerHTML = '\x3c!--[if gt IE ' + ++v + ']> 4 ? v : undefined; + })()) + ); + }), + (detector.isLegacyOpera = function () { + return !!window.opera; + }); + }, + 67473: module => { + 'use strict'; + (module.exports = {}).forEach = function (collection, callback) { + for (var i = 0; i < collection.length; i++) { + var result = callback(collection[i]); + if (result) return result; + } + }; + }, + 14281: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var browserDetector = __webpack_require__(72516); + module.exports = function (options) { + var reporter = (options = options || {}).reporter, + batchProcessor = options.batchProcessor, + getState = options.stateHandler.getState; + if (!reporter) throw new Error('Missing required dependency: reporter.'); + function buildCssTextString(rules) { + var seperator = options.important ? ' !important; ' : '; '; + return (rules.join(seperator) + seperator).trim(); + } + function getObject(element) { + return getState(element).object; + } + return { + makeDetectable: function makeDetectable(options, element, callback) { + callback || ((callback = element), (element = options), (options = null)), + (options = options || {}).debug, + browserDetector.isIE(8) + ? callback(element) + : (function injectObject(element, callback) { + var OBJECT_STYLE = buildCssTextString([ + 'display: block', + 'position: absolute', + 'top: 0', + 'left: 0', + 'width: 100%', + 'height: 100%', + 'border: none', + 'padding: 0', + 'margin: 0', + 'opacity: 0', + 'z-index: -1000', + 'pointer-events: none', + ]), + positionCheckPerformed = !1, + style = window.getComputedStyle(element), + width = element.offsetWidth, + height = element.offsetHeight; + function mutateDom() { + function alterPositionStyles() { + if ('static' === style.position) { + element.style.setProperty('position', 'relative', options.important ? 'important' : ''); + var removeRelativeStyles = function (reporter, element, style, property) { + var value = style[property]; + 'auto' !== value && + '0' !== + (function getNumericalValue(value) { + return value.replace(/[^-\d\.]/g, ''); + })(value) && + (reporter.warn( + 'An element that is positioned static has style.' + + property + + '=' + + value + + ' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' + + property + + ' will be set to 0. Element: ', + element, + ), + element.style.setProperty(property, '0', options.important ? 'important' : '')); + }; + removeRelativeStyles(reporter, element, style, 'top'), + removeRelativeStyles(reporter, element, style, 'right'), + removeRelativeStyles(reporter, element, style, 'bottom'), + removeRelativeStyles(reporter, element, style, 'left'); + } + } + '' !== style.position && (alterPositionStyles(), (positionCheckPerformed = !0)); + var object = document.createElement('object'); + (object.style.cssText = OBJECT_STYLE), + (object.tabIndex = -1), + (object.type = 'text/html'), + object.setAttribute('aria-hidden', 'true'), + (object.onload = function onObjectLoad() { + positionCheckPerformed || alterPositionStyles(), + (function getDocument(element, callback) { + if (!element.contentDocument) { + var state = getState(element); + return ( + state.checkForObjectDocumentTimeoutId && + window.clearTimeout(state.checkForObjectDocumentTimeoutId), + void (state.checkForObjectDocumentTimeoutId = setTimeout( + function checkForObjectDocument() { + (state.checkForObjectDocumentTimeoutId = 0), getDocument(element, callback); + }, + 100, + )) + ); + } + callback(element.contentDocument); + })(this, function onObjectDocumentReady(objectDocument) { + callback(element); + }); + }), + browserDetector.isIE() || (object.data = 'about:blank'), + getState(element) && + (element.appendChild(object), + (getState(element).object = object), + browserDetector.isIE() && (object.data = 'about:blank')); + } + (getState(element).startSize = { width, height }), + batchProcessor ? batchProcessor.add(mutateDom) : mutateDom(); + })(element, callback); + }, + addListener: function addListener(element, listener) { + function listenerProxy() { + listener(element); + } + if (browserDetector.isIE(8)) + (getState(element).object = { proxy: listenerProxy }), element.attachEvent('onresize', listenerProxy); + else { + var object = getObject(element); + if (!object) throw new Error('Element is not detectable by this strategy.'); + object.contentDocument.defaultView.addEventListener('resize', listenerProxy); + } + }, + uninstall: function uninstall(element) { + if (getState(element)) { + var object = getObject(element); + object && + (browserDetector.isIE(8) ? element.detachEvent('onresize', object.proxy) : element.removeChild(object), + getState(element).checkForObjectDocumentTimeoutId && + window.clearTimeout(getState(element).checkForObjectDocumentTimeoutId), + delete getState(element).object); + } + }, + }; + }; + }, + 66599: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var forEach = __webpack_require__(67473).forEach; + module.exports = function (options) { + var reporter = (options = options || {}).reporter, + batchProcessor = options.batchProcessor, + getState = options.stateHandler.getState, + idHandler = (options.stateHandler.hasState, options.idHandler); + if (!batchProcessor) throw new Error('Missing required dependency: batchProcessor'); + if (!reporter) throw new Error('Missing required dependency: reporter.'); + var scrollbarSizes = (function getScrollbarSizes() { + var child = document.createElement('div'); + child.style.cssText = buildCssTextString([ + 'position: absolute', + 'width: 1000px', + 'height: 1000px', + 'visibility: hidden', + 'margin: 0', + 'padding: 0', + ]); + var container = document.createElement('div'); + (container.style.cssText = buildCssTextString([ + 'position: absolute', + 'width: 500px', + 'height: 500px', + 'overflow: scroll', + 'visibility: none', + 'top: -1500px', + 'left: -1500px', + 'visibility: hidden', + 'margin: 0', + 'padding: 0', + ])), + container.appendChild(child), + document.body.insertBefore(container, document.body.firstChild); + var widthSize = 500 - container.clientWidth, + heightSize = 500 - container.clientHeight; + return document.body.removeChild(container), { width: widthSize, height: heightSize }; + })(); + function initDocument(targetDocument) { + !(function injectScrollStyle(targetDocument, styleId, containerClass) { + function injectStyle(style, method) { + method = + method || + function (element) { + targetDocument.head.appendChild(element); + }; + var styleElement = targetDocument.createElement('style'); + return (styleElement.innerHTML = style), (styleElement.id = styleId), method(styleElement), styleElement; + } + if (!targetDocument.getElementById(styleId)) { + var containerAnimationClass = containerClass + '_animation', + containerAnimationActiveClass = containerClass + '_animation_active', + style = '/* Created by the element-resize-detector library. */\n'; + (style += + '.' + + containerClass + + ' > div::-webkit-scrollbar { ' + + buildCssTextString(['display: none']) + + ' }\n\n'), + (style += + '.' + + containerAnimationActiveClass + + ' { ' + + buildCssTextString([ + '-webkit-animation-duration: 0.1s', + 'animation-duration: 0.1s', + '-webkit-animation-name: ' + containerAnimationClass, + 'animation-name: ' + containerAnimationClass, + ]) + + ' }\n'), + (style += + '@-webkit-keyframes ' + + containerAnimationClass + + ' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n'), + injectStyle( + (style += + '@keyframes ' + + containerAnimationClass + + ' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }'), + ); + } + })(targetDocument, 'erd_scroll_detection_scrollbar_style', 'erd_scroll_detection_container'); + } + function buildCssTextString(rules) { + var seperator = options.important ? ' !important; ' : '; '; + return (rules.join(seperator) + seperator).trim(); + } + function addEvent(el, name, cb) { + if (el.addEventListener) el.addEventListener(name, cb); + else { + if (!el.attachEvent) return reporter.error("[scroll] Don't know how to add event listeners."); + el.attachEvent('on' + name, cb); + } + } + function removeEvent(el, name, cb) { + if (el.removeEventListener) el.removeEventListener(name, cb); + else { + if (!el.detachEvent) return reporter.error("[scroll] Don't know how to remove event listeners."); + el.detachEvent('on' + name, cb); + } + } + function getExpandElement(element) { + return getState(element).container.childNodes[0].childNodes[0].childNodes[0]; + } + function getShrinkElement(element) { + return getState(element).container.childNodes[0].childNodes[0].childNodes[1]; + } + return ( + initDocument(window.document), + { + makeDetectable: function makeDetectable(options, element, callback) { + function debug() { + if (options.debug) { + var args = Array.prototype.slice.call(arguments); + if ((args.unshift(idHandler.get(element), 'Scroll: '), reporter.log.apply)) + reporter.log.apply(null, args); + else for (var i = 0; i < args.length; i++) reporter.log(args[i]); + } + } + function isUnrendered(element) { + var container = getState(element).container.childNodes[0], + style = window.getComputedStyle(container); + return !style.width || -1 === style.width.indexOf('px'); + } + function getStyle() { + var elementStyle = window.getComputedStyle(element), + style = {}; + return ( + (style.position = elementStyle.position), + (style.width = element.offsetWidth), + (style.height = element.offsetHeight), + (style.top = elementStyle.top), + (style.right = elementStyle.right), + (style.bottom = elementStyle.bottom), + (style.left = elementStyle.left), + (style.widthCSS = elementStyle.width), + (style.heightCSS = elementStyle.height), + style + ); + } + function storeStyle() { + if ((debug('storeStyle invoked.'), getState(element))) { + var style = getStyle(); + getState(element).style = style; + } else debug('Aborting because element has been uninstalled'); + } + function storeCurrentSize(element, width, height) { + (getState(element).lastWidth = width), (getState(element).lastHeight = height); + } + function getWidthOffset() { + return 2 * scrollbarSizes.width + 1; + } + function getHeightOffset() { + return 2 * scrollbarSizes.height + 1; + } + function getExpandWidth(width) { + return width + 10 + getWidthOffset(); + } + function getExpandHeight(height) { + return height + 10 + getHeightOffset(); + } + function positionScrollbars(element, width, height) { + var expand = getExpandElement(element), + shrink = getShrinkElement(element), + expandWidth = getExpandWidth(width), + expandHeight = getExpandHeight(height), + shrinkWidth = (function getShrinkWidth(width) { + return 2 * width + getWidthOffset(); + })(width), + shrinkHeight = (function getShrinkHeight(height) { + return 2 * height + getHeightOffset(); + })(height); + (expand.scrollLeft = expandWidth), + (expand.scrollTop = expandHeight), + (shrink.scrollLeft = shrinkWidth), + (shrink.scrollTop = shrinkHeight); + } + function injectContainerElement() { + var container = getState(element).container; + if (!container) { + ((container = document.createElement('div')).className = 'erd_scroll_detection_container'), + (container.style.cssText = buildCssTextString([ + 'visibility: hidden', + 'display: inline', + 'width: 0px', + 'height: 0px', + 'z-index: -1', + 'overflow: hidden', + 'margin: 0', + 'padding: 0', + ])), + (getState(element).container = container), + (function addAnimationClass(element) { + element.className += ' erd_scroll_detection_container_animation_active'; + })(container), + element.appendChild(container); + var onAnimationStart = function () { + getState(element).onRendered && getState(element).onRendered(); + }; + addEvent(container, 'animationstart', onAnimationStart), + (getState(element).onAnimationStart = onAnimationStart); + } + return container; + } + function injectScrollElements() { + if ((debug('Injecting elements'), getState(element))) { + !(function alterPositionStyles() { + var style = getState(element).style; + if ('static' === style.position) { + element.style.setProperty('position', 'relative', options.important ? 'important' : ''); + var removeRelativeStyles = function (reporter, element, style, property) { + var value = style[property]; + 'auto' !== value && + '0' !== + (function getNumericalValue(value) { + return value.replace(/[^-\d\.]/g, ''); + })(value) && + (reporter.warn( + 'An element that is positioned static has style.' + + property + + '=' + + value + + ' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' + + property + + ' will be set to 0. Element: ', + element, + ), + (element.style[property] = 0)); + }; + removeRelativeStyles(reporter, element, style, 'top'), + removeRelativeStyles(reporter, element, style, 'right'), + removeRelativeStyles(reporter, element, style, 'bottom'), + removeRelativeStyles(reporter, element, style, 'left'); + } + })(); + var rootContainer = getState(element).container; + rootContainer || (rootContainer = injectContainerElement()); + var scrollbarWidth = scrollbarSizes.width, + scrollbarHeight = scrollbarSizes.height, + containerContainerStyle = buildCssTextString([ + 'position: absolute', + 'flex: none', + 'overflow: hidden', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + 'left: 0px', + 'top: 0px', + ]), + containerStyle = buildCssTextString( + [ + 'position: absolute', + 'flex: none', + 'overflow: hidden', + 'z-index: -1', + 'visibility: hidden', + ].concat( + (function getLeftTopBottomRightCssText(left, top, bottom, right) { + return [ + 'left: ' + (left = left ? left + 'px' : '0'), + 'top: ' + (top = top ? top + 'px' : '0'), + 'right: ' + (right = right ? right + 'px' : '0'), + 'bottom: ' + (bottom = bottom ? bottom + 'px' : '0'), + ]; + })(-(1 + scrollbarWidth), -(1 + scrollbarHeight), -scrollbarHeight, -scrollbarWidth), + ), + ), + expandStyle = buildCssTextString([ + 'position: absolute', + 'flex: none', + 'overflow: scroll', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + ]), + shrinkStyle = buildCssTextString([ + 'position: absolute', + 'flex: none', + 'overflow: scroll', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + ]), + expandChildStyle = buildCssTextString(['position: absolute', 'left: 0', 'top: 0']), + shrinkChildStyle = buildCssTextString(['position: absolute', 'width: 200%', 'height: 200%']), + containerContainer = document.createElement('div'), + container = document.createElement('div'), + expand = document.createElement('div'), + expandChild = document.createElement('div'), + shrink = document.createElement('div'), + shrinkChild = document.createElement('div'); + (containerContainer.dir = 'ltr'), + (containerContainer.style.cssText = containerContainerStyle), + (containerContainer.className = 'erd_scroll_detection_container'), + (container.className = 'erd_scroll_detection_container'), + (container.style.cssText = containerStyle), + (expand.style.cssText = expandStyle), + (expandChild.style.cssText = expandChildStyle), + (shrink.style.cssText = shrinkStyle), + (shrinkChild.style.cssText = shrinkChildStyle), + expand.appendChild(expandChild), + shrink.appendChild(shrinkChild), + container.appendChild(expand), + container.appendChild(shrink), + containerContainer.appendChild(container), + rootContainer.appendChild(containerContainer), + addEvent(expand, 'scroll', onExpandScroll), + addEvent(shrink, 'scroll', onShrinkScroll), + (getState(element).onExpandScroll = onExpandScroll), + (getState(element).onShrinkScroll = onShrinkScroll); + } else debug('Aborting because element has been uninstalled'); + function onExpandScroll() { + getState(element).onExpand && getState(element).onExpand(); + } + function onShrinkScroll() { + getState(element).onShrink && getState(element).onShrink(); + } + } + function registerListenersAndPositionElements() { + function updateChildSizes(element, width, height) { + var expandChild = (function getExpandChildElement(element) { + return getExpandElement(element).childNodes[0]; + })(element), + expandWidth = getExpandWidth(width), + expandHeight = getExpandHeight(height); + expandChild.style.setProperty('width', expandWidth + 'px', options.important ? 'important' : ''), + expandChild.style.setProperty('height', expandHeight + 'px', options.important ? 'important' : ''); + } + function updateDetectorElements(done) { + var width = element.offsetWidth, + height = element.offsetHeight, + sizeChanged = width !== getState(element).lastWidth || height !== getState(element).lastHeight; + debug('Storing current size', width, height), + storeCurrentSize(element, width, height), + batchProcessor.add(0, function performUpdateChildSizes() { + if (sizeChanged) + if (getState(element)) + if (areElementsInjected()) { + if (options.debug) { + var w = element.offsetWidth, + h = element.offsetHeight; + (w === width && h === height) || + reporter.warn( + idHandler.get(element), + 'Scroll: Size changed before updating detector elements.', + ); + } + updateChildSizes(element, width, height); + } else debug('Aborting because element container has not been initialized'); + else debug('Aborting because element has been uninstalled'); + }), + batchProcessor.add(1, function updateScrollbars() { + getState(element) + ? areElementsInjected() + ? positionScrollbars(element, width, height) + : debug('Aborting because element container has not been initialized') + : debug('Aborting because element has been uninstalled'); + }), + sizeChanged && + done && + batchProcessor.add(2, function () { + getState(element) + ? areElementsInjected() + ? done() + : debug('Aborting because element container has not been initialized') + : debug('Aborting because element has been uninstalled'); + }); + } + function areElementsInjected() { + return !!getState(element).container; + } + function notifyListenersIfNeeded() { + debug('notifyListenersIfNeeded invoked'); + var state = getState(element); + return (function isFirstNotify() { + return void 0 === getState(element).lastNotifiedWidth; + })() && + state.lastWidth === state.startSize.width && + state.lastHeight === state.startSize.height + ? debug( + 'Not notifying: Size is the same as the start size, and there has been no notification yet.', + ) + : state.lastWidth === state.lastNotifiedWidth && state.lastHeight === state.lastNotifiedHeight + ? debug('Not notifying: Size already notified') + : (debug('Current size not notified, notifying...'), + (state.lastNotifiedWidth = state.lastWidth), + (state.lastNotifiedHeight = state.lastHeight), + void forEach(getState(element).listeners, function (listener) { + listener(element); + })); + } + function handleScroll() { + debug('Scroll detected.'), + isUnrendered(element) + ? debug('Scroll event fired while unrendered. Ignoring...') + : updateDetectorElements(notifyListenersIfNeeded); + } + if ((debug('registerListenersAndPositionElements invoked.'), getState(element))) { + (getState(element).onRendered = function handleRender() { + if ((debug('startanimation triggered.'), isUnrendered(element))) + debug('Ignoring since element is still unrendered...'); + else { + debug('Element rendered.'); + var expand = getExpandElement(element), + shrink = getShrinkElement(element); + (0 !== expand.scrollLeft && + 0 !== expand.scrollTop && + 0 !== shrink.scrollLeft && + 0 !== shrink.scrollTop) || + (debug('Scrollbars out of sync. Updating detector elements...'), + updateDetectorElements(notifyListenersIfNeeded)); + } + }), + (getState(element).onExpand = handleScroll), + (getState(element).onShrink = handleScroll); + var style = getState(element).style; + updateChildSizes(element, style.width, style.height); + } else debug('Aborting because element has been uninstalled'); + } + function finalizeDomMutation() { + if ((debug('finalizeDomMutation invoked.'), getState(element))) { + var style = getState(element).style; + storeCurrentSize(element, style.width, style.height), + positionScrollbars(element, style.width, style.height); + } else debug('Aborting because element has been uninstalled'); + } + function ready() { + callback(element); + } + function install() { + debug('Installing...'), + (function initListeners() { + getState(element).listeners = []; + })(), + (function storeStartSize() { + var style = getStyle(); + (getState(element).startSize = { width: style.width, height: style.height }), + debug('Element start size', getState(element).startSize); + })(), + batchProcessor.add(0, storeStyle), + batchProcessor.add(1, injectScrollElements), + batchProcessor.add(2, registerListenersAndPositionElements), + batchProcessor.add(3, finalizeDomMutation), + batchProcessor.add(4, ready); + } + callback || ((callback = element), (element = options), (options = null)), + (options = options || {}), + debug('Making detectable...'), + !(function isDetached(element) { + return ( + !(function isInDocument(element) { + var isInShadowRoot = element.getRootNode && element.getRootNode().contains(element); + return ( + element === element.ownerDocument.body || + element.ownerDocument.body.contains(element) || + isInShadowRoot + ); + })(element) || null === window.getComputedStyle(element) + ); + })(element) + ? install() + : (debug('Element is detached'), + injectContainerElement(), + debug('Waiting until element is attached...'), + (getState(element).onRendered = function () { + debug('Element is now attached'), install(); + })); + }, + addListener: function addListener(element, listener) { + if (!getState(element).listeners.push) + throw new Error('Cannot add listener to an element that is not detectable.'); + getState(element).listeners.push(listener); + }, + uninstall: function uninstall(element) { + var state = getState(element); + state && + (state.onExpandScroll && removeEvent(getExpandElement(element), 'scroll', state.onExpandScroll), + state.onShrinkScroll && removeEvent(getShrinkElement(element), 'scroll', state.onShrinkScroll), + state.onAnimationStart && removeEvent(state.container, 'animationstart', state.onAnimationStart), + state.container && element.removeChild(state.container)); + }, + initDocument, + } + ); + }; + }, + 200: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var forEach = __webpack_require__(67473).forEach, + elementUtilsMaker = __webpack_require__(40987), + listenerHandlerMaker = __webpack_require__(38090), + idGeneratorMaker = __webpack_require__(13992), + idHandlerMaker = __webpack_require__(80076), + reporterMaker = __webpack_require__(53183), + browserDetector = __webpack_require__(72516), + batchProcessorMaker = __webpack_require__(59083), + stateHandler = __webpack_require__(86502), + objectStrategyMaker = __webpack_require__(14281), + scrollStrategyMaker = __webpack_require__(66599); + function isCollection(obj) { + return Array.isArray(obj) || void 0 !== obj.length; + } + function toArray(collection) { + if (Array.isArray(collection)) return collection; + var array = []; + return ( + forEach(collection, function (obj) { + array.push(obj); + }), + array + ); + } + function isElement(obj) { + return obj && 1 === obj.nodeType; + } + function getOption(options, name, defaultValue) { + var value = options[name]; + return null == value && void 0 !== defaultValue ? defaultValue : value; + } + module.exports = function (options) { + var idHandler; + if ((options = options || {}).idHandler) + idHandler = { + get: function (element) { + return options.idHandler.get(element, !0); + }, + set: options.idHandler.set, + }; + else { + var idGenerator = idGeneratorMaker(), + defaultIdHandler = idHandlerMaker({ idGenerator, stateHandler }); + idHandler = defaultIdHandler; + } + var reporter = options.reporter; + reporter || (reporter = reporterMaker(!1 === reporter)); + var batchProcessor = getOption(options, 'batchProcessor', batchProcessorMaker({ reporter })), + globalOptions = {}; + (globalOptions.callOnAdd = !!getOption(options, 'callOnAdd', !0)), + (globalOptions.debug = !!getOption(options, 'debug', !1)); + var detectionStrategy, + eventListenerHandler = listenerHandlerMaker(idHandler), + elementUtils = elementUtilsMaker({ stateHandler }), + desiredStrategy = getOption(options, 'strategy', 'object'), + importantCssRules = getOption(options, 'important', !1), + strategyOptions = { reporter, batchProcessor, stateHandler, idHandler, important: importantCssRules }; + if ( + ('scroll' === desiredStrategy && + (browserDetector.isLegacyOpera() + ? (reporter.warn('Scroll strategy is not supported on legacy Opera. Changing to object strategy.'), + (desiredStrategy = 'object')) + : browserDetector.isIE(9) && + (reporter.warn('Scroll strategy is not supported on IE9. Changing to object strategy.'), + (desiredStrategy = 'object'))), + 'scroll' === desiredStrategy) + ) + detectionStrategy = scrollStrategyMaker(strategyOptions); + else { + if ('object' !== desiredStrategy) throw new Error('Invalid strategy name: ' + desiredStrategy); + detectionStrategy = objectStrategyMaker(strategyOptions); + } + var onReadyCallbacks = {}; + return { + listenTo: function listenTo(options, elements, listener) { + function onResizeCallback(element) { + var listeners = eventListenerHandler.get(element); + forEach(listeners, function callListenerProxy(listener) { + listener(element); + }); + } + function addListener(callOnAdd, element, listener) { + eventListenerHandler.add(element, listener), callOnAdd && listener(element); + } + if ((listener || ((listener = elements), (elements = options), (options = {})), !elements)) + throw new Error('At least one element required.'); + if (!listener) throw new Error('Listener required.'); + if (isElement(elements)) elements = [elements]; + else { + if (!isCollection(elements)) + return reporter.error('Invalid arguments. Must be a DOM element or a collection of DOM elements.'); + elements = toArray(elements); + } + var elementsReady = 0, + callOnAdd = getOption(options, 'callOnAdd', globalOptions.callOnAdd), + onReadyCallback = getOption(options, 'onReady', function noop() {}), + debug = getOption(options, 'debug', globalOptions.debug); + forEach(elements, function attachListenerToElement(element) { + stateHandler.getState(element) || (stateHandler.initState(element), idHandler.set(element)); + var id = idHandler.get(element); + if ( + (debug && reporter.log('Attaching listener to element', id, element), + !elementUtils.isDetectable(element)) + ) + return ( + debug && reporter.log(id, 'Not detectable.'), + elementUtils.isBusy(element) + ? (debug && reporter.log(id, 'System busy making it detectable'), + addListener(callOnAdd, element, listener), + (onReadyCallbacks[id] = onReadyCallbacks[id] || []), + void onReadyCallbacks[id].push(function onReady() { + ++elementsReady === elements.length && onReadyCallback(); + })) + : (debug && reporter.log(id, 'Making detectable...'), + elementUtils.markBusy(element, !0), + detectionStrategy.makeDetectable( + { debug, important: importantCssRules }, + element, + function onElementDetectable(element) { + if ((debug && reporter.log(id, 'onElementDetectable'), stateHandler.getState(element))) { + elementUtils.markAsDetectable(element), + elementUtils.markBusy(element, !1), + detectionStrategy.addListener(element, onResizeCallback), + addListener(callOnAdd, element, listener); + var state = stateHandler.getState(element); + if (state && state.startSize) { + var width = element.offsetWidth, + height = element.offsetHeight; + (state.startSize.width === width && state.startSize.height === height) || + onResizeCallback(element); + } + onReadyCallbacks[id] && + forEach(onReadyCallbacks[id], function (callback) { + callback(); + }); + } else debug && reporter.log(id, 'Element uninstalled before being detectable.'); + delete onReadyCallbacks[id], ++elementsReady === elements.length && onReadyCallback(); + }, + )) + ); + debug && reporter.log(id, 'Already detecable, adding listener.'), + addListener(callOnAdd, element, listener), + elementsReady++; + }), + elementsReady === elements.length && onReadyCallback(); + }, + removeListener: eventListenerHandler.removeListener, + removeAllListeners: eventListenerHandler.removeAllListeners, + uninstall: function uninstall(elements) { + if (!elements) return reporter.error('At least one element is required.'); + if (isElement(elements)) elements = [elements]; + else { + if (!isCollection(elements)) + return reporter.error('Invalid arguments. Must be a DOM element or a collection of DOM elements.'); + elements = toArray(elements); + } + forEach(elements, function (element) { + eventListenerHandler.removeAllListeners(element), + detectionStrategy.uninstall(element), + stateHandler.cleanState(element); + }); + }, + initDocument: function initDocument(targetDocument) { + detectionStrategy.initDocument && detectionStrategy.initDocument(targetDocument); + }, + }; + }; + }, + 40987: module => { + 'use strict'; + module.exports = function (options) { + var getState = options.stateHandler.getState; + return { + isDetectable: function isDetectable(element) { + var state = getState(element); + return state && !!state.isDetectable; + }, + markAsDetectable: function markAsDetectable(element) { + getState(element).isDetectable = !0; + }, + isBusy: function isBusy(element) { + return !!getState(element).busy; + }, + markBusy: function markBusy(element, busy) { + getState(element).busy = !!busy; + }, + }; + }; + }, + 13992: module => { + 'use strict'; + module.exports = function () { + var idCount = 1; + return { + generate: function generate() { + return idCount++; + }, + }; + }; + }, + 80076: module => { + 'use strict'; + module.exports = function (options) { + var idGenerator = options.idGenerator, + getState = options.stateHandler.getState; + return { + get: function getId(element) { + var state = getState(element); + return state && void 0 !== state.id ? state.id : null; + }, + set: function setId(element) { + var state = getState(element); + if (!state) throw new Error('setId required the element to have a resize detection state.'); + var id = idGenerator.generate(); + return (state.id = id), id; + }, + }; + }; + }, + 38090: module => { + 'use strict'; + module.exports = function (idHandler) { + var eventListeners = {}; + function getListeners(element) { + var id = idHandler.get(element); + return void 0 === id ? [] : eventListeners[id] || []; + } + return { + get: getListeners, + add: function addListener(element, listener) { + var id = idHandler.get(element); + eventListeners[id] || (eventListeners[id] = []), eventListeners[id].push(listener); + }, + removeListener: function removeListener(element, listener) { + for (var listeners = getListeners(element), i = 0, len = listeners.length; i < len; ++i) + if (listeners[i] === listener) { + listeners.splice(i, 1); + break; + } + }, + removeAllListeners: function removeAllListeners(element) { + var listeners = getListeners(element); + listeners && (listeners.length = 0); + }, + }; + }; + }, + 53183: module => { + 'use strict'; + module.exports = function (quiet) { + function noop() {} + var reporter = { log: noop, warn: noop, error: noop }; + if (!quiet && window.console) { + var attachFunction = function (reporter, name) { + reporter[name] = function reporterProxy() { + var f = console[name]; + if (f.apply) f.apply(console, arguments); + else for (var i = 0; i < arguments.length; i++) f(arguments[i]); + }; + }; + attachFunction(reporter, 'log'), attachFunction(reporter, 'warn'), attachFunction(reporter, 'error'); + } + return reporter; + }; + }, + 86502: module => { + 'use strict'; + function getState(element) { + return element._erd; + } + module.exports = { + initState: function initState(element) { + return (element._erd = {}), getState(element); + }, + getState, + cleanState: function cleanState(element) { + delete element._erd; + }, + }; + }, + 43352: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { f6: () => ThemeProvider, Fg: () => useTheme, Zz: () => withTheme }); + var defineProperty = __webpack_require__(51119), + react = __webpack_require__(2784), + core_browser_esm = __webpack_require__(47134); + const weak_memoize_browser_esm = function weakMemoize(func) { + var cache = new WeakMap(); + return function (arg) { + if (cache.has(arg)) return cache.get(arg); + var ret = func(arg); + return cache.set(arg, ret), ret; + }; + }; + var esm_extends = __webpack_require__(7560), + hoist_non_react_statics_cjs = __webpack_require__(73463), + hoist_non_react_statics_cjs_default = __webpack_require__.n(hoist_non_react_statics_cjs); + function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && + (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), + keys.push.apply(keys, symbols); + } + return keys; + } + var getTheme = function getTheme(outerTheme, theme) { + if ('function' == typeof theme) { + var mergedTheme = theme(outerTheme); + if (null == mergedTheme || 'object' != typeof mergedTheme || Array.isArray(mergedTheme)) + throw new Error( + '[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!', + ); + return mergedTheme; + } + if (null == theme || 'object' != typeof theme || Array.isArray(theme)) + throw new Error('[ThemeProvider] Please make your theme prop a plain object'); + return (function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 + ? ownKeys(source, !0).forEach(function (key) { + (0, defineProperty.Z)(target, key, source[key]); + }) + : Object.getOwnPropertyDescriptors + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(source).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + return target; + })({}, outerTheme, {}, theme); + }, + createCacheWithTheme = weak_memoize_browser_esm(function (outerTheme) { + return weak_memoize_browser_esm(function (theme) { + return getTheme(outerTheme, theme); + }); + }), + ThemeProvider = function ThemeProvider(props) { + return (0, react.createElement)(core_browser_esm.Ni.Consumer, null, function (theme) { + return ( + props.theme !== theme && (theme = createCacheWithTheme(theme)(props.theme)), + (0, react.createElement)(core_browser_esm.Ni.Provider, { value: theme }, props.children) + ); + }); + }; + function withTheme(Component) { + var componentName = Component.displayName || Component.name || 'Component', + WithTheme = (0, react.forwardRef)(function render(props, ref) { + return (0, react.createElement)(core_browser_esm.Ni.Consumer, null, function (theme) { + return (0, react.createElement)(Component, (0, esm_extends.Z)({ theme, ref }, props)); + }); + }); + return ( + (WithTheme.displayName = 'WithTheme(' + componentName + ')'), + hoist_non_react_statics_cjs_default()(WithTheme, Component) + ); + } + function useTheme() { + return react.useContext(core_browser_esm.Ni); + } + }, + 84904: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(53613), + ToPrimitive = __webpack_require__(43825), + Type = __webpack_require__(24909); + module.exports = function AbstractEqualityComparison(x, y) { + var xType = Type(x), + yType = Type(y); + return xType === yType + ? x === y + : (null == x && null == y) || + ('Number' === xType && 'String' === yType + ? AbstractEqualityComparison(x, ToNumber(y)) + : ('String' === xType && 'Number' === yType) || 'Boolean' === xType + ? AbstractEqualityComparison(ToNumber(x), y) + : 'Boolean' === yType + ? AbstractEqualityComparison(x, ToNumber(y)) + : ('String' !== xType && 'Number' !== xType && 'Symbol' !== xType) || 'Object' !== yType + ? 'Object' === xType && + ('String' === yType || 'Number' === yType || 'Symbol' === yType) && + AbstractEqualityComparison(ToPrimitive(x), y) + : AbstractEqualityComparison(x, ToPrimitive(y))); + }; + }, + 13027: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Number = GetIntrinsic('%Number%'), + $TypeError = GetIntrinsic('%TypeError%'), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + isPrefixOf = __webpack_require__(21543), + ToNumber = __webpack_require__(53613), + ToPrimitive = __webpack_require__(43825), + Type = __webpack_require__(24909); + module.exports = function AbstractRelationalComparison(x, y, LeftFirst) { + if ('Boolean' !== Type(LeftFirst)) + throw new $TypeError('Assertion failed: LeftFirst argument must be a Boolean'); + var px, py; + if ( + (LeftFirst + ? ((px = ToPrimitive(x, $Number)), (py = ToPrimitive(y, $Number))) + : ((py = ToPrimitive(y, $Number)), (px = ToPrimitive(x, $Number))), + !('String' === Type(px) && 'String' === Type(py))) + ) { + var nx = ToNumber(px), + ny = ToNumber(py); + if ($isNaN(nx) || $isNaN(ny)) return; + return ( + (!$isFinite(nx) || !$isFinite(ny) || nx !== ny) && + nx !== 1 / 0 && + (ny === 1 / 0 || (ny !== -1 / 0 && (nx === -1 / 0 || nx < ny))) + ); + } + return !isPrefixOf(py, px) && (!!isPrefixOf(px, py) || px < py); + }; + }, + 68631: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + IsInteger = __webpack_require__(93572), + Type = __webpack_require__(24909), + MAX_SAFE_INTEGER = __webpack_require__(33034), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100), + $TypeError = GetIntrinsic('%TypeError%'), + $charCodeAt = __webpack_require__(62680)('String.prototype.charCodeAt'); + module.exports = function AdvanceStringIndex(S, index, unicode) { + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) + throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); + if ('Boolean' !== Type(unicode)) throw new $TypeError('Assertion failed: `unicode` must be a Boolean'); + if (!unicode) return index + 1; + if (index + 1 >= S.length) return index + 1; + var first = $charCodeAt(S, index); + if (!isLeadingSurrogate(first)) return index + 1; + var second = $charCodeAt(S, index + 1); + return isTrailingSurrogate(second) ? index + 2 : index + 1; + }; + }, + 3155: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ArrayPrototype = GetIntrinsic('%Array.prototype%'), + $RangeError = GetIntrinsic('%RangeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + IsInteger = __webpack_require__(93572), + MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, + $setProto = + GetIntrinsic('%Object.setPrototypeOf%', !0) || + ([].__proto__ !== $ArrayPrototype + ? null + : function (O, proto) { + return (O.__proto__ = proto), O; + }); + module.exports = function ArrayCreate(length) { + if (!IsInteger(length) || length < 0) + throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); + if (length > MAX_ARRAY_LENGTH) throw new $RangeError('length is greater than (2**32 - 1)'); + var proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype, + A = []; + if (proto !== $ArrayPrototype) { + if (!$setProto) + throw new $SyntaxError( + 'ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]', + ); + $setProto(A, proto); + } + return 0 !== length && (A.length = length), A; + }; + }, + 19918: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $RangeError = GetIntrinsic('%RangeError%'), + $TypeError = GetIntrinsic('%TypeError%'), + assign = __webpack_require__(79784), + isPropertyDescriptor = __webpack_require__(92594), + IsArray = __webpack_require__(79984), + IsAccessorDescriptor = __webpack_require__(64147), + IsDataDescriptor = __webpack_require__(26846), + OrdinaryDefineOwnProperty = __webpack_require__(65133), + OrdinaryGetOwnProperty = __webpack_require__(42234), + ToNumber = __webpack_require__(53613), + ToString = __webpack_require__(98765), + ToUint32 = __webpack_require__(24464), + Type = __webpack_require__(24909); + module.exports = function ArraySetLength(A, Desc) { + if (!IsArray(A)) throw new $TypeError('Assertion failed: A must be an Array'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if (!('[[Value]]' in Desc)) return OrdinaryDefineOwnProperty(A, 'length', Desc); + var newLenDesc = assign({}, Desc), + newLen = ToUint32(Desc['[[Value]]']); + if (newLen !== ToNumber(Desc['[[Value]]'])) throw new $RangeError('Invalid array length'); + newLenDesc['[[Value]]'] = newLen; + var oldLenDesc = OrdinaryGetOwnProperty(A, 'length'); + if (!IsDataDescriptor(oldLenDesc)) + throw new $TypeError('Assertion failed: an array had a non-data descriptor on `length`'); + var newWritable, + oldLen = oldLenDesc['[[Value]]']; + if (newLen >= oldLen) return OrdinaryDefineOwnProperty(A, 'length', newLenDesc); + if (!oldLenDesc['[[Writable]]']) return !1; + if ( + (!('[[Writable]]' in newLenDesc) || newLenDesc['[[Writable]]'] + ? (newWritable = !0) + : ((newWritable = !1), (newLenDesc['[[Writable]]'] = !0)), + !OrdinaryDefineOwnProperty(A, 'length', newLenDesc)) + ) + return !1; + for (; newLen < oldLen; ) { + if (!delete A[ToString((oldLen -= 1))] && ((newLenDesc['[[Value]]'] = oldLen + 1), !newWritable)) + return (newLenDesc['[[Writable]]'] = !1), OrdinaryDefineOwnProperty(A, 'length', newLenDesc), !1; + } + return !!newWritable || OrdinaryDefineOwnProperty(A, 'length', { '[[Writable]]': !1 }); + }; + }, + 93853: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Array = GetIntrinsic('%Array%'), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + Get = __webpack_require__(31104), + IsArray = __webpack_require__(79984), + IsConstructor = __webpack_require__(44205), + IsInteger = __webpack_require__(93572), + Type = __webpack_require__(24909); + module.exports = function ArraySpeciesCreate(originalArray, length) { + if (!IsInteger(length) || length < 0) throw new $TypeError('Assertion failed: length must be an integer >= 0'); + var C, + len = 0 === length ? 0 : length; + if ( + (IsArray(originalArray) && + ((C = Get(originalArray, 'constructor')), + $species && 'Object' === Type(C) && null === (C = Get(C, $species)) && (C = void 0)), + void 0 === C) + ) + return $Array(len); + if (!IsConstructor(C)) throw new $TypeError('C must be a constructor'); + return new C(len); + }; + }, + 61565: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsArray = __webpack_require__(79984), + $apply = GetIntrinsic('%Reflect.apply%', !0) || callBound('%Function.prototype.apply%'); + module.exports = function Call(F, V) { + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + return $apply(F, V, argumentsList); + }; + }, + 9256: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + SameValue = __webpack_require__(61096), + ToNumber = __webpack_require__(53613), + ToString = __webpack_require__(98765), + Type = __webpack_require__(24909); + module.exports = function CanonicalNumericIndexString(argument) { + if ('String' !== Type(argument)) throw new $TypeError('Assertion failed: `argument` must be a String'); + if ('-0' === argument) return -0; + var n = ToNumber(argument); + return SameValue(ToString(n), argument) ? n : void 0; + }; + }, + 39354: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + $TypeError = GetIntrinsic('%TypeError%'), + $charCodeAt = callBound('%String.prototype.charCodeAt%'), + $push = callBound('%Array.prototype.push%'); + module.exports = function CharacterRange(A, B) { + if (1 !== A.length || 1 !== B.length) + throw new $TypeError('Assertion failed: CharSets A and B contain exactly one character'); + var a = A[0], + b = B[0], + i = $charCodeAt(a, 0), + j = $charCodeAt(b, 0); + if (!(i <= j)) throw new $TypeError('Assertion failed: i is not <= j'); + for (var arr = [], k = i; k <= j; k += 1) $push(arr, $fromCharCode(k)); + return arr; + }; + }, + 76928: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + IsDataDescriptor = __webpack_require__(26846), + IsGenericDescriptor = __webpack_require__(1250), + Type = __webpack_require__(24909); + module.exports = function CompletePropertyDescriptor(Desc) { + return ( + assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + IsGenericDescriptor(Desc) || IsDataDescriptor(Desc) + ? (has(Desc, '[[Value]]') || (Desc['[[Value]]'] = void 0), + has(Desc, '[[Writable]]') || (Desc['[[Writable]]'] = !1)) + : (has(Desc, '[[Get]]') || (Desc['[[Get]]'] = void 0), has(Desc, '[[Set]]') || (Desc['[[Set]]'] = void 0)), + has(Desc, '[[Enumerable]]') || (Desc['[[Enumerable]]'] = !1), + has(Desc, '[[Configurable]]') || (Desc['[[Configurable]]'] = !1), + Desc + ); + }; + }, + 3534: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(37671), + OrdinaryGetOwnProperty = __webpack_require__(42234), + IsDataDescriptor = __webpack_require__(26846), + IsExtensible = __webpack_require__(52332), + IsPropertyKey = __webpack_require__(72028), + SameValue = __webpack_require__(61096), + Type = __webpack_require__(24909); + module.exports = function CreateDataProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var oldDesc = OrdinaryGetOwnProperty(O, P), + extensible = !oldDesc || IsExtensible(O); + return ( + !((oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]'])) || !extensible) && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Value]]': V, + '[[Writable]]': !0, + }) + ); + }; + }, + 95391: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + CreateDataProperty = __webpack_require__(3534), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function CreateDataPropertyOrThrow(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = CreateDataProperty(O, P, V); + if (!success) throw new $TypeError('unable to create data property'); + return success; + }; + }, + 43515: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $replace = __webpack_require__(62680)('String.prototype.replace'), + RequireObjectCoercible = __webpack_require__(934), + ToString = __webpack_require__(98765), + Type = __webpack_require__(24909); + module.exports = function CreateHTML(string, tag, attribute, value) { + if ('String' !== Type(tag) || 'String' !== Type(attribute)) + throw new $TypeError('Assertion failed: `tag` and `attribute` must be strings'); + var str = RequireObjectCoercible(string), + S = ToString(str), + p1 = '<' + tag; + if ('' !== attribute) { + var V = ToString(value); + p1 += ' ' + attribute + '="' + $replace(V, /\x22/g, '"') + '"'; + } + return p1 + '>' + S + ''; + }; + }, + 368: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(24909); + module.exports = function CreateIterResultObject(value, done) { + if ('Boolean' !== Type(done)) throw new $TypeError('Assertion failed: Type(done) is not Boolean'); + return { value, done }; + }; + }, + 5706: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + $indexOf = callBound('Array.prototype.indexOf', !0) || callBound('String.prototype.indexOf'), + $push = callBound('Array.prototype.push'), + Get = __webpack_require__(31104), + IsArray = __webpack_require__(79984), + ToLength = __webpack_require__(44771), + ToString = __webpack_require__(98765), + Type = __webpack_require__(24909); + module.exports = function CreateListFromArrayLike(obj) { + var elementTypes = + arguments.length > 1 + ? arguments[1] + : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + if ('Object' !== Type(obj)) throw new $TypeError('Assertion failed: `obj` must be an Object'); + if (!IsArray(elementTypes)) + throw new $TypeError('Assertion failed: `elementTypes`, if provided, must be an array'); + for (var len = ToLength(Get(obj, 'length')), list = [], index = 0; index < len; ) { + var indexName = ToString(index), + next = Get(obj, indexName), + nextType = Type(next); + if ($indexOf(elementTypes, nextType) < 0) + throw new $TypeError('item type ' + nextType + ' is not a valid elementType'); + $push(list, next), (index += 1); + } + return list; + }; + }, + 80711: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(37671), + IsDataDescriptor = __webpack_require__(26846), + IsPropertyKey = __webpack_require__(72028), + SameValue = __webpack_require__(61096), + Type = __webpack_require__(24909); + module.exports = function CreateMethodProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !1, + '[[Value]]': V, + '[[Writable]]': !0, + }); + }; + }, + 61261: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $EvalError = __webpack_require__(67286)('%EvalError%'), + DayWithinYear = __webpack_require__(58661), + InLeapYear = __webpack_require__(41372), + MonthFromTime = __webpack_require__(92308); + module.exports = function DateFromTime(t) { + var m = MonthFromTime(t), + d = DayWithinYear(t); + if (0 === m) return d + 1; + if (1 === m) return d - 30; + var leap = InLeapYear(t); + if (2 === m) return d - 58 - leap; + if (3 === m) return d - 89 - leap; + if (4 === m) return d - 119 - leap; + if (5 === m) return d - 150 - leap; + if (6 === m) return d - 180 - leap; + if (7 === m) return d - 211 - leap; + if (8 === m) return d - 242 - leap; + if (9 === m) return d - 272 - leap; + if (10 === m) return d - 303 - leap; + if (11 === m) return d - 333 - leap; + throw new $EvalError('Assertion failed: MonthFromTime returned an impossible value: ' + m); + }; + }, + 73460: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(3366), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function Day(t) { + return floor(t / msPerDay); + }; + }, + 34413: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(3366); + module.exports = function DayFromYear(y) { + return 365 * (y - 1970) + floor((y - 1969) / 4) - floor((y - 1901) / 100) + floor((y - 1601) / 400); + }; + }, + 58661: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Day = __webpack_require__(73460), + DayFromYear = __webpack_require__(34413), + YearFromTime = __webpack_require__(67684); + module.exports = function DayWithinYear(t) { + return Day(t) - DayFromYear(YearFromTime(t)); + }; + }, + 12670: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(61727); + module.exports = function DaysInYear(y) { + return 0 !== modulo(y, 4) ? 365 : 0 !== modulo(y, 100) ? 366 : 0 !== modulo(y, 400) ? 365 : 366; + }; + }, + 77725: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(37671), + IsAccessorDescriptor = __webpack_require__(64147), + IsDataDescriptor = __webpack_require__(26846), + IsPropertyKey = __webpack_require__(72028), + SameValue = __webpack_require__(61096), + ToPropertyDescriptor = __webpack_require__(95751), + Type = __webpack_require__(24909); + module.exports = function DefinePropertyOrThrow(O, P, desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var Desc = isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, desc) + ? desc + : ToPropertyDescriptor(desc); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + }; + }, + 25215: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function DeletePropertyOrThrow(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = delete O[P]; + if (!success) throw new $TypeError('Attempt to delete property failed.'); + return success; + }; + }, + 72162: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + keys = __webpack_require__(33464), + Type = __webpack_require__(24909); + module.exports = function EnumerableOwnNames(O) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + return keys(O); + }; + }, + 37671: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + Type = __webpack_require__(24909); + module.exports = function FromPropertyDescriptor(Desc) { + if (void 0 === Desc) return Desc; + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + var obj = {}; + return ( + '[[Value]]' in Desc && (obj.value = Desc['[[Value]]']), + '[[Writable]]' in Desc && (obj.writable = Desc['[[Writable]]']), + '[[Get]]' in Desc && (obj.get = Desc['[[Get]]']), + '[[Set]]' in Desc && (obj.set = Desc['[[Set]]']), + '[[Enumerable]]' in Desc && (obj.enumerable = Desc['[[Enumerable]]']), + '[[Configurable]]' in Desc && (obj.configurable = Desc['[[Configurable]]']), + obj + ); + }; + }, + 31104: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + inspect = __webpack_require__(99500), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function Get(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + return O[P]; + }; + }, + 6347: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + getIteratorMethod = __webpack_require__(55412), + AdvanceStringIndex = __webpack_require__(68631), + Call = __webpack_require__(61565), + GetMethod = __webpack_require__(46077), + IsArray = __webpack_require__(79984), + Type = __webpack_require__(24909); + module.exports = function GetIterator(obj, method) { + var actualMethod = method; + arguments.length < 2 && + (actualMethod = getIteratorMethod({ AdvanceStringIndex, GetMethod, IsArray, Type }, obj)); + var iterator = Call(actualMethod, obj); + if ('Object' !== Type(iterator)) throw new $TypeError('iterator must return an object'); + return iterator; + }; + }, + 46077: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + GetV = __webpack_require__(38015), + IsCallable = __webpack_require__(52627), + IsPropertyKey = __webpack_require__(72028); + module.exports = function GetMethod(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var func = GetV(O, P); + if (null != func) { + if (!IsCallable(func)) throw new $TypeError(P + 'is not a function'); + return func; + } + }; + }, + 77045: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + hasSymbols = __webpack_require__(58811)(), + $TypeError = GetIntrinsic('%TypeError%'), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%'), + keys = __webpack_require__(33464), + esType = __webpack_require__(24909); + module.exports = function GetOwnPropertyKeys(O, Type) { + if ('Object' !== esType(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('Symbol' === Type) return $gOPS ? $gOPS(O) : []; + if ('String' === Type) return $gOPN ? $gOPN(O) : keys(O); + throw new $TypeError('Assertion failed: `Type` must be `"String"` or `"Symbol"`'); + }; + }, + 74870: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Function = GetIntrinsic('%Function%'), + $TypeError = GetIntrinsic('%TypeError%'), + Get = __webpack_require__(31104), + IsConstructor = __webpack_require__(44205), + Type = __webpack_require__(24909); + module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { + var intrinsic = GetIntrinsic(intrinsicDefaultProto); + if (!IsConstructor(constructor)) throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + var proto = Get(constructor, 'prototype'); + if ('Object' !== Type(proto)) { + if (!(constructor instanceof $Function)) + throw new $TypeError('cross-realm constructors not currently supported'); + proto = intrinsic; + } + return proto; + }; + }, + 84565: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $parseInt = GetIntrinsic('%parseInt%'), + inspect = __webpack_require__(99500), + regexTester = __webpack_require__(80779), + callBound = __webpack_require__(62680), + every = __webpack_require__(37812), + isDigit = regexTester(/^[0-9]$/), + $charAt = callBound('String.prototype.charAt'), + $strSlice = callBound('String.prototype.slice'), + IsArray = __webpack_require__(79984), + IsInteger = __webpack_require__(93572), + Type = __webpack_require__(24909), + canDistinguishSparseFromUndefined = 0 in [void 0], + isStringOrHole = function (capture, index, arr) { + return ( + 'String' === Type(capture) || + (canDistinguishSparseFromUndefined ? !(index in arr) : 'Undefined' === Type(capture)) + ); + }; + module.exports = function GetSubstitution(matched, str, position, captures, replacement) { + if ('String' !== Type(matched)) throw new $TypeError('Assertion failed: `matched` must be a String'); + var matchLength = matched.length; + if ('String' !== Type(str)) throw new $TypeError('Assertion failed: `str` must be a String'); + var stringLength = str.length; + if (!IsInteger(position) || position < 0 || position > stringLength) + throw new $TypeError( + 'Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + + inspect(position), + ); + if (!IsArray(captures) || !every(captures, isStringOrHole)) + throw new $TypeError('Assertion failed: `captures` must be a List of Strings, got ' + inspect(captures)); + if ('String' !== Type(replacement)) throw new $TypeError('Assertion failed: `replacement` must be a String'); + for ( + var tailPos = position + matchLength, m = captures.length, result = '', i = 0; + i < replacement.length; + i += 1 + ) { + var current = $charAt(replacement, i), + isLast = i + 1 >= replacement.length, + nextIsLast = i + 2 >= replacement.length; + if ('$' !== current || isLast) result += $charAt(replacement, i); + else { + var next = $charAt(replacement, i + 1); + if ('$' === next) (result += '$'), (i += 1); + else if ('&' === next) (result += matched), (i += 1); + else if ('`' === next) (result += 0 === position ? '' : $strSlice(str, 0, position - 1)), (i += 1); + else if ("'" === next) (result += tailPos >= stringLength ? '' : $strSlice(str, tailPos)), (i += 1); + else { + var nextNext = nextIsLast ? null : $charAt(replacement, i + 2); + if (!isDigit(next) || '0' === next || (!nextIsLast && isDigit(nextNext))) + if (isDigit(next) && (nextIsLast || isDigit(nextNext))) { + var nn = next + nextNext, + nnI = $parseInt(nn, 10) - 1; + (result += nn <= m && 'Undefined' === Type(captures[nnI]) ? '' : captures[nnI]), (i += 2); + } else result += '$'; + else { + var n = $parseInt(next, 10); + (result += n <= m && 'Undefined' === Type(captures[n - 1]) ? '' : captures[n - 1]), (i += 1); + } + } + } + } + return result; + }; + }, + 38015: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(72028), + ToObject = __webpack_require__(12197); + module.exports = function GetV(V, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return ToObject(V)[P]; + }; + }, + 41509: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + has = __webpack_require__(23198), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function HasOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return has(O, P); + }; + }, + 47257: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function HasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return P in O; + }; + }, + 55326: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + timeConstants = __webpack_require__(2744), + msPerHour = timeConstants.msPerHour, + HoursPerDay = timeConstants.HoursPerDay; + module.exports = function HourFromTime(t) { + return modulo(floor(t / msPerHour), HoursPerDay); + }; + }, + 41372: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $EvalError = __webpack_require__(67286)('%EvalError%'), + DaysInYear = __webpack_require__(12670), + YearFromTime = __webpack_require__(67684); + module.exports = function InLeapYear(t) { + var days = DaysInYear(YearFromTime(t)); + if (365 === days) return 0; + if (366 === days) return 1; + throw new $EvalError('Assertion failed: there are not 365 or 366 days in a year, got: ' + days); + }; + }, + 32013: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $hasInstance = GetIntrinsic('Symbol.hasInstance', !0), + Call = __webpack_require__(61565), + GetMethod = __webpack_require__(46077), + IsCallable = __webpack_require__(52627), + OrdinaryHasInstance = __webpack_require__(4742), + ToBoolean = __webpack_require__(96678), + Type = __webpack_require__(24909); + module.exports = function InstanceofOperator(O, C) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var instOfHandler = $hasInstance ? GetMethod(C, $hasInstance) : void 0; + if (void 0 !== instOfHandler) return ToBoolean(Call(instOfHandler, C, [O])); + if (!IsCallable(C)) throw new $TypeError('`C` is not Callable'); + return OrdinaryHasInstance(C, O); + }; + }, + 1872: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(61565), + IsArray = __webpack_require__(79984), + GetV = __webpack_require__(38015), + IsPropertyKey = __webpack_require__(72028); + module.exports = function Invoke(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + var func = GetV(O, P); + return Call(func, O, argumentsList); + }; + }, + 64147: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(24909); + module.exports = function IsAccessorDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]'))) + ); + }; + }, + 79984: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Array = __webpack_require__(67286)('%Array%'), + toStr = !$Array.isArray && __webpack_require__(62680)('Object.prototype.toString'); + module.exports = + $Array.isArray || + function IsArray(argument) { + return '[object Array]' === toStr(argument); + }; + }, + 52627: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(9680); + }, + 13147: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ValidateAndApplyPropertyDescriptor = __webpack_require__(91201); + module.exports = function IsCompatiblePropertyDescriptor(Extensible, Desc, Current) { + return ValidateAndApplyPropertyDescriptor(void 0, void 0, Extensible, Desc, Current); + }; + }, + 54067: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isConcatSpreadable = __webpack_require__(67286)('%Symbol.isConcatSpreadable%', !0), + Get = __webpack_require__(31104), + IsArray = __webpack_require__(79984), + ToBoolean = __webpack_require__(96678), + Type = __webpack_require__(24909); + module.exports = function IsConcatSpreadable(O) { + if ('Object' !== Type(O)) return !1; + if ($isConcatSpreadable) { + var spreadable = Get(O, $isConcatSpreadable); + if (void 0 !== spreadable) return ToBoolean(spreadable); + } + return IsArray(O); + }; + }, + 44205: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $construct = __webpack_require__(85945)('%Reflect.construct%', !0), + DefinePropertyOrThrow = __webpack_require__(77725); + try { + DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); + } catch (e) { + DefinePropertyOrThrow = null; + } + if (DefinePropertyOrThrow && $construct) { + var isConstructorMarker = {}, + badArrayLike = {}; + DefinePropertyOrThrow(badArrayLike, 'length', { + '[[Get]]': function () { + throw isConstructorMarker; + }, + '[[Enumerable]]': !0, + }), + (module.exports = function IsConstructor(argument) { + try { + $construct(argument, badArrayLike); + } catch (err) { + return err === isConstructorMarker; + } + }); + } else + module.exports = function IsConstructor(argument) { + return 'function' == typeof argument && !!argument.prototype; + }; + }, + 26846: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(24909); + module.exports = function IsDataDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]'))) + ); + }; + }, + 52332: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + isPrimitive = __webpack_require__(26607), + $preventExtensions = $Object.preventExtensions, + $isExtensible = $Object.isExtensible; + module.exports = $preventExtensions + ? function IsExtensible(obj) { + return !isPrimitive(obj) && $isExtensible(obj); + } + : function IsExtensible(obj) { + return !isPrimitive(obj); + }; + }, + 1250: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + IsAccessorDescriptor = __webpack_require__(64147), + IsDataDescriptor = __webpack_require__(26846), + Type = __webpack_require__(24909); + module.exports = function IsGenericDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) + ); + }; + }, + 93572: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(2961), + floor = __webpack_require__(3366), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726); + module.exports = function IsInteger(argument) { + if ('number' != typeof argument || $isNaN(argument) || !$isFinite(argument)) return !1; + var absValue = abs(argument); + return floor(absValue) === absValue; + }; + }, + 57473: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $PromiseThen = __webpack_require__(62680)('Promise.prototype.then', !0), + Type = __webpack_require__(24909); + module.exports = function IsPromise(x) { + if ('Object' !== Type(x)) return !1; + if (!$PromiseThen) return !1; + try { + $PromiseThen(x); + } catch (e) { + return !1; + } + return !0; + }; + }, + 72401: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var isPropertyDescriptor = __webpack_require__(92594), + Type = __webpack_require__(24909), + IsDataDescriptor = __webpack_require__(26846), + IsAccessorDescriptor = __webpack_require__(64147); + module.exports = function IsPropertyDescriptor(Desc) { + return isPropertyDescriptor({ IsDataDescriptor, IsAccessorDescriptor, Type }, Desc); + }; + }, + 72028: module => { + 'use strict'; + module.exports = function IsPropertyKey(argument) { + return 'string' == typeof argument || 'symbol' == typeof argument; + }; + }, + 37446: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $match = __webpack_require__(67286)('%Symbol.match%', !0), + hasRegExpMatcher = __webpack_require__(58786), + ToBoolean = __webpack_require__(96678); + module.exports = function IsRegExp(argument) { + if (!argument || 'object' != typeof argument) return !1; + if ($match) { + var isRegExp = argument[$match]; + if (void 0 !== isRegExp) return ToBoolean(isRegExp); + } + return hasRegExpMatcher(argument); + }; + }, + 86745: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $arrayPush = __webpack_require__(62680)('Array.prototype.push'), + getIteratorMethod = __webpack_require__(55412), + AdvanceStringIndex = __webpack_require__(68631), + GetIterator = __webpack_require__(6347), + GetMethod = __webpack_require__(46077), + IsArray = __webpack_require__(79984), + IteratorStep = __webpack_require__(70604), + IteratorValue = __webpack_require__(67874), + ToObject = __webpack_require__(12197), + ES = { AdvanceStringIndex, GetMethod, IsArray, Type: __webpack_require__(24909) }; + module.exports = function IterableToArrayLike(items) { + var usingIterator = getIteratorMethod(ES, items); + if (void 0 !== usingIterator) { + for (var iterator = GetIterator(items, usingIterator), values = [], next = !0; next; ) + if ((next = IteratorStep(iterator))) { + var nextValue = IteratorValue(next); + $arrayPush(values, nextValue); + } + return values; + } + return ToObject(items); + }; + }, + 1160: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(61565), + GetMethod = __webpack_require__(46077), + IsCallable = __webpack_require__(52627), + Type = __webpack_require__(24909); + module.exports = function IteratorClose(iterator, completion) { + if ('Object' !== Type(iterator)) throw new $TypeError('Assertion failed: Type(iterator) is not Object'); + if (!IsCallable(completion)) + throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record'); + var completionRecord, + completionThunk = completion, + iteratorReturn = GetMethod(iterator, 'return'); + if (void 0 === iteratorReturn) return completionThunk(); + try { + var innerResult = Call(iteratorReturn, iterator, []); + } catch (e) { + throw (completionThunk(), (completionThunk = null), e); + } + if (((completionRecord = completionThunk()), (completionThunk = null), 'Object' !== Type(innerResult))) + throw new $TypeError('iterator .return must return an object'); + return completionRecord; + }; + }, + 58565: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(31104), + ToBoolean = __webpack_require__(96678), + Type = __webpack_require__(24909); + module.exports = function IteratorComplete(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return ToBoolean(Get(iterResult, 'done')); + }; + }, + 95130: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Invoke = __webpack_require__(1872), + Type = __webpack_require__(24909); + module.exports = function IteratorNext(iterator, value) { + var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); + if ('Object' !== Type(result)) throw new $TypeError('iterator next must return an object'); + return result; + }; + }, + 70604: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var IteratorComplete = __webpack_require__(58565), + IteratorNext = __webpack_require__(95130); + module.exports = function IteratorStep(iterator) { + var result = IteratorNext(iterator); + return !0 !== IteratorComplete(result) && result; + }; + }, + 67874: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(31104), + Type = __webpack_require__(24909); + module.exports = function IteratorValue(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return Get(iterResult, 'value'); + }; + }, + 32510: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isFinite = __webpack_require__(21726), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function MakeDate(day, time) { + return $isFinite(day) && $isFinite(time) ? day * msPerDay + time : NaN; + }; + }, + 79289: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $DateUTC = __webpack_require__(67286)('%Date.UTC%'), + $isFinite = __webpack_require__(21726), + DateFromTime = __webpack_require__(61261), + Day = __webpack_require__(73460), + floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + MonthFromTime = __webpack_require__(92308), + ToInteger = __webpack_require__(68796), + YearFromTime = __webpack_require__(67684); + module.exports = function MakeDay(year, month, date) { + if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return NaN; + var y = ToInteger(year), + m = ToInteger(month), + dt = ToInteger(date), + ym = y + floor(m / 12), + mn = modulo(m, 12), + t = $DateUTC(ym, mn, 1); + return YearFromTime(t) !== ym || MonthFromTime(t) !== mn || 1 !== DateFromTime(t) ? NaN : Day(t) + dt - 1; + }; + }, + 66011: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isFinite = __webpack_require__(21726), + timeConstants = __webpack_require__(2744), + msPerSecond = timeConstants.msPerSecond, + msPerMinute = timeConstants.msPerMinute, + msPerHour = timeConstants.msPerHour, + ToInteger = __webpack_require__(68796); + module.exports = function MakeTime(hour, min, sec, ms) { + if (!($isFinite(hour) && $isFinite(min) && $isFinite(sec) && $isFinite(ms))) return NaN; + var h = ToInteger(hour), + m = ToInteger(min), + s = ToInteger(sec), + milli = ToInteger(ms); + return h * msPerHour + m * msPerMinute + s * msPerSecond + milli; + }; + }, + 12776: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + timeConstants = __webpack_require__(2744), + msPerMinute = timeConstants.msPerMinute, + MinutesPerHour = timeConstants.MinutesPerHour; + module.exports = function MinFromTime(t) { + return modulo(floor(t / msPerMinute), MinutesPerHour); + }; + }, + 92308: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var DayWithinYear = __webpack_require__(58661), + InLeapYear = __webpack_require__(41372); + module.exports = function MonthFromTime(t) { + var day = DayWithinYear(t); + if (0 <= day && day < 31) return 0; + var leap = InLeapYear(t); + return 31 <= day && day < 59 + leap + ? 1 + : 59 + leap <= day && day < 90 + leap + ? 2 + : 90 + leap <= day && day < 120 + leap + ? 3 + : 120 + leap <= day && day < 151 + leap + ? 4 + : 151 + leap <= day && day < 181 + leap + ? 5 + : 181 + leap <= day && day < 212 + leap + ? 6 + : 212 + leap <= day && day < 243 + leap + ? 7 + : 243 + leap <= day && day < 273 + leap + ? 8 + : 273 + leap <= day && day < 304 + leap + ? 9 + : 304 + leap <= day && day < 334 + leap + ? 10 + : 334 + leap <= day && day < 365 + leap + ? 11 + : void 0; + }; + }, + 78355: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ObjectCreate = GetIntrinsic('%Object.create%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + Type = __webpack_require__(24909), + hasProto = !({ __proto__: null } instanceof Object); + module.exports = function ObjectCreate(proto, internalSlotsList) { + if (null !== proto && 'Object' !== Type(proto)) + throw new $TypeError('Assertion failed: `proto` must be null or an object'); + var slots = arguments.length < 2 ? [] : internalSlotsList; + if (slots.length > 0) throw new $SyntaxError('es-abstract does not yet support internal slots'); + if ($ObjectCreate) return $ObjectCreate(proto); + if (hasProto) return { __proto__: proto }; + if (null === proto) throw new $SyntaxError('native Object.create support is required to create null objects'); + var T = function T() {}; + return (T.prototype = proto), new T(); + }; + }, + 24768: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + GetPrototypeFromConstructor = __webpack_require__(74870), + IsArray = __webpack_require__(79984), + ObjectCreate = __webpack_require__(78355); + module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { + GetIntrinsic(intrinsicDefaultProto); + var proto = GetPrototypeFromConstructor(constructor, intrinsicDefaultProto), + slots = arguments.length < 3 ? [] : arguments[2]; + if (!IsArray(slots)) throw new $TypeError('Assertion failed: if provided, `internalSlotsList` must be a List'); + return ObjectCreate(proto, slots); + }; + }, + 65133: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + IsAccessorDescriptor = __webpack_require__(64147), + IsDataDescriptor = __webpack_require__(26846), + IsExtensible = __webpack_require__(52332), + IsPropertyKey = __webpack_require__(72028), + ToPropertyDescriptor = __webpack_require__(95751), + SameValue = __webpack_require__(61096), + Type = __webpack_require__(24909), + ValidateAndApplyPropertyDescriptor = __webpack_require__(91201); + module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if (!$gOPD) { + if (IsAccessorDescriptor(Desc)) + throw new $SyntaxError('This environment does not support accessor property descriptors.'); + var creatingNormalDataProperty = + !(P in O) && + Desc['[[Writable]]'] && + Desc['[[Enumerable]]'] && + Desc['[[Configurable]]'] && + '[[Value]]' in Desc, + settingExistingDataProperty = + P in O && + (!('[[Configurable]]' in Desc) || Desc['[[Configurable]]']) && + (!('[[Enumerable]]' in Desc) || Desc['[[Enumerable]]']) && + (!('[[Writable]]' in Desc) || Desc['[[Writable]]']) && + '[[Value]]' in Desc; + if (creatingNormalDataProperty || settingExistingDataProperty) + return (O[P] = Desc['[[Value]]']), SameValue(O[P], Desc['[[Value]]']); + throw new $SyntaxError( + 'This environment does not support defining non-writable, non-enumerable, or non-configurable properties', + ); + } + var desc = $gOPD(O, P), + current = desc && ToPropertyDescriptor(desc), + extensible = IsExtensible(O); + return ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current); + }; + }, + 42234: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $TypeError = GetIntrinsic('%TypeError%'), + $isEnumerable = __webpack_require__(62680)('Object.prototype.propertyIsEnumerable'), + has = __webpack_require__(23198), + IsArray = __webpack_require__(79984), + IsPropertyKey = __webpack_require__(72028), + IsRegExp = __webpack_require__(37446), + ToPropertyDescriptor = __webpack_require__(95751), + Type = __webpack_require__(24909); + module.exports = function OrdinaryGetOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (has(O, P)) { + if (!$gOPD) { + var arrayLength = IsArray(O) && 'length' === P, + regexLastIndex = IsRegExp(O) && 'lastIndex' === P; + return { + '[[Configurable]]': !(arrayLength || regexLastIndex), + '[[Enumerable]]': $isEnumerable(O, P), + '[[Value]]': O[P], + '[[Writable]]': !0, + }; + } + return ToPropertyDescriptor($gOPD(O, P)); + } + }; + }, + 60193: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $getProto = __webpack_require__(92829), + Type = __webpack_require__(24909); + module.exports = function OrdinaryGetPrototypeOf(O) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!$getProto) throw new $TypeError('This environment does not support fetching prototypes.'); + return $getProto(O); + }; + }, + 4742: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(31104), + IsCallable = __webpack_require__(52627), + Type = __webpack_require__(24909); + module.exports = function OrdinaryHasInstance(C, O) { + if (!1 === IsCallable(C)) return !1; + if ('Object' !== Type(O)) return !1; + var P = Get(C, 'prototype'); + if ('Object' !== Type(P)) + throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.'); + return O instanceof C; + }; + }, + 65829: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(72028), + Type = __webpack_require__(24909); + module.exports = function OrdinaryHasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + return P in O; + }; + }, + 35055: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $setProto = __webpack_require__(6361), + OrdinaryGetPrototypeOf = __webpack_require__(60193), + Type = __webpack_require__(24909); + module.exports = function OrdinarySetPrototypeOf(O, V) { + if ('Object' !== Type(V) && 'Null' !== Type(V)) + throw new $TypeError('Assertion failed: V must be Object or Null'); + try { + $setProto(O, V); + } catch (e) { + return !1; + } + return OrdinaryGetPrototypeOf(O) === V; + }; + }, + 21602: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + forEach = __webpack_require__(23173), + $charCodeAt = callBound('String.prototype.charCodeAt'), + $numberToString = callBound('Number.prototype.toString'), + $toLowerCase = callBound('String.prototype.toLowerCase'), + $strSlice = callBound('String.prototype.slice'), + $strSplit = callBound('String.prototype.split'), + Type = __webpack_require__(24909), + escapes = { '\b': 'b', '\f': 'f', '\n': 'n', '\r': 'r', '\t': 't' }; + module.exports = function QuoteJSONString(value) { + if ('String' !== Type(value)) throw new $TypeError('Assertion failed: `value` must be a String'); + var product = '"'; + return ( + value && + forEach($strSplit(value), function (C) { + if ('"' === C || '\\' === C) product += '\\' + C; + else if ('\b' === C || '\f' === C || '\n' === C || '\r' === C || '\t' === C) { + product += '\\' + escapes[C]; + } else { + var cCharCode = $charCodeAt(C, 0); + product += + cCharCode < 32 ? '\\u' + $toLowerCase($strSlice('0000' + $numberToString(cCharCode, 16), -4)) : C; + } + }), + (product += '"') + ); + }; + }, + 5113: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $RegExp = __webpack_require__(67286)('%RegExp%'), + ToString = __webpack_require__(98765); + module.exports = function RegExpCreate(P, F) { + var pattern = void 0 === P ? '' : ToString(P), + flags = void 0 === F ? '' : ToString(F); + return new $RegExp(pattern, flags); + }; + }, + 34797: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + regexExec = __webpack_require__(62680)('RegExp.prototype.exec'), + Call = __webpack_require__(61565), + Get = __webpack_require__(31104), + IsCallable = __webpack_require__(52627), + Type = __webpack_require__(24909); + module.exports = function RegExpExec(R, S) { + if ('Object' !== Type(R)) throw new $TypeError('Assertion failed: `R` must be an Object'); + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + var exec = Get(R, 'exec'); + if (IsCallable(exec)) { + var result = Call(exec, R, [S]); + if (null === result || 'Object' === Type(result)) return result; + throw new $TypeError('"exec" method must return `null` or an Object'); + } + return regexExec(R, S); + }; + }, + 934: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(17497); + }, + 61096: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValue(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); + }; + }, + 21859: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + SameValue = __webpack_require__(61096); + module.exports = function SameValueNonNumber(x, y) { + if ('number' == typeof x || typeof x != typeof y) + throw new $TypeError('SameValueNonNumber requires two non-number values of the same type.'); + return SameValue(x, y); + }; + }, + 65195: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValueZero(x, y) { + return x === y || ($isNaN(x) && $isNaN(y)); + }; + }, + 657: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + timeConstants = __webpack_require__(2744), + msPerSecond = timeConstants.msPerSecond, + SecondsPerMinute = timeConstants.SecondsPerMinute; + module.exports = function SecFromTime(t) { + return modulo(floor(t / msPerSecond), SecondsPerMinute); + }; + }, + 31852: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(72028), + SameValue = __webpack_require__(61096), + Type = __webpack_require__(24909), + noThrowOnStrictViolation = (function () { + try { + return delete [].length, !0; + } catch (e) { + return !1; + } + })(); + module.exports = function Set(O, P, V, Throw) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + if ('Boolean' !== Type(Throw)) throw new $TypeError('Assertion failed: `Throw` must be a Boolean'); + if (Throw) { + if (((O[P] = V), noThrowOnStrictViolation && !SameValue(O[P], V))) + throw new $TypeError('Attempted to assign to readonly property.'); + return !0; + } + try { + return (O[P] = V), !noThrowOnStrictViolation || SameValue(O[P], V); + } catch (e) { + return !1; + } + }; + }, + 97276: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + has = __webpack_require__(23198), + $TypeError = GetIntrinsic('%TypeError%'), + getSymbolDescription = __webpack_require__(64012), + DefinePropertyOrThrow = __webpack_require__(77725), + IsExtensible = __webpack_require__(52332), + Type = __webpack_require__(24909); + module.exports = function SetFunctionName(F, name) { + if ('function' != typeof F) throw new $TypeError('Assertion failed: `F` must be a function'); + if (!IsExtensible(F) || has(F, 'name')) + throw new $TypeError('Assertion failed: `F` must be extensible, and must not have a `name` own property'); + var nameType = Type(name); + if ('Symbol' !== nameType && 'String' !== nameType) + throw new $TypeError('Assertion failed: `name` must be a Symbol or a String'); + if ('Symbol' === nameType) { + var description = getSymbolDescription(name); + name = void 0 === description ? '' : '[' + description + ']'; + } + if (arguments.length > 2) { + var prefix = arguments[2]; + name = prefix + ' ' + name; + } + return DefinePropertyOrThrow(F, 'name', { + '[[Value]]': name, + '[[Writable]]': !1, + '[[Enumerable]]': !1, + '[[Configurable]]': !0, + }); + }; + }, + 24166: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + $preventExtensions = GetIntrinsic('%Object.preventExtensions%'), + $gOPD = __webpack_require__(74486), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + forEach = __webpack_require__(23173), + DefinePropertyOrThrow = __webpack_require__(77725), + IsAccessorDescriptor = __webpack_require__(64147), + ToPropertyDescriptor = __webpack_require__(95751), + Type = __webpack_require__(24909); + module.exports = function SetIntegrityLevel(O, level) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('sealed' !== level && 'frozen' !== level) + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + if (!$preventExtensions) + throw new $SyntaxError('SetIntegrityLevel requires native `Object.preventExtensions` support'); + if (!$preventExtensions(O)) return !1; + if (!$gOPN) throw new $SyntaxError('SetIntegrityLevel requires native `Object.getOwnPropertyNames` support'); + var theKeys = $gOPN(O); + return ( + 'sealed' === level + ? forEach(theKeys, function (k) { + DefinePropertyOrThrow(O, k, { configurable: !1 }); + }) + : 'frozen' === level && + forEach(theKeys, function (k) { + var desc, + currentDesc = $gOPD(O, k); + void 0 !== currentDesc && + ((desc = IsAccessorDescriptor(ToPropertyDescriptor(currentDesc)) + ? { configurable: !1 } + : { configurable: !1, writable: !1 }), + DefinePropertyOrThrow(O, k, desc)); + }), + !0 + ); + }; + }, + 53994: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + IsConstructor = __webpack_require__(44205), + Type = __webpack_require__(24909); + module.exports = function SpeciesConstructor(O, defaultConstructor) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var C = O.constructor; + if (void 0 === C) return defaultConstructor; + if ('Object' !== Type(C)) throw new $TypeError('O.constructor is not an Object'); + var S = $species ? C[$species] : void 0; + if (null == S) return defaultConstructor; + if (IsConstructor(S)) return S; + throw new $TypeError('no constructor found'); + }; + }, + 24312: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsInteger = __webpack_require__(93572), + Type = __webpack_require__(24909), + $charAt = callBound('String.prototype.charAt'); + module.exports = function SplitMatch(S, q, R) { + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + if (!IsInteger(q)) throw new $TypeError('Assertion failed: `q` must be an integer'); + if ('String' !== Type(R)) throw new $TypeError('Assertion failed: `R` must be a String'); + var r = R.length; + if (q + r > S.length) return !1; + for (var i = 0; i < r; i += 1) if ($charAt(S, q + i) !== $charAt(R, i)) return !1; + return q + r; + }; + }, + 78489: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Type = __webpack_require__(24909); + module.exports = function StrictEqualityComparison(x, y) { + var xType = Type(x); + return xType === Type(y) && ('Undefined' === xType || 'Null' === xType || x === y); + }; + }, + 77832: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Object = GetIntrinsic('%Object%'), + $StringPrototype = GetIntrinsic('%String.prototype%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + DefinePropertyOrThrow = __webpack_require__(77725), + Type = __webpack_require__(24909), + setProto = __webpack_require__(6361); + module.exports = function StringCreate(value, prototype) { + if ('String' !== Type(value)) throw new $TypeError('Assertion failed: `S` must be a String'); + var S = $Object(value); + if (S !== $StringPrototype) { + if (!setProto) + throw new $SyntaxError( + 'StringCreate: a `proto` argument that is not `String.prototype` is not supported in an environment that does not support setting the [[Prototype]]', + ); + setProto(S, prototype); + } + var length = value.length; + return ( + DefinePropertyOrThrow(S, 'length', { + '[[Configurable]]': !1, + '[[Enumerable]]': !1, + '[[Value]]': length, + '[[Writable]]': !1, + }), + S + ); + }; + }, + 80287: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $SymbolToString = __webpack_require__(62680)('Symbol.prototype.toString', !0), + Type = __webpack_require__(24909); + module.exports = function SymbolDescriptiveString(sym) { + if ('Symbol' !== Type(sym)) throw new $TypeError('Assertion failed: `sym` must be a Symbol'); + return $SymbolToString(sym); + }; + }, + 31031: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + $TypeError = GetIntrinsic('%TypeError%'), + every = __webpack_require__(37812), + IsDataDescriptor = __webpack_require__(26846), + IsExtensible = __webpack_require__(52332), + ToPropertyDescriptor = __webpack_require__(95751), + Type = __webpack_require__(24909); + module.exports = function TestIntegrityLevel(O, level) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('sealed' !== level && 'frozen' !== level) + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + if (IsExtensible(O)) return !1; + var theKeys = $gOPN(O); + return ( + 0 === theKeys.length || + every(theKeys, function (k) { + var currentDesc = $gOPD(O, k); + if (void 0 !== currentDesc) { + if (currentDesc.configurable) return !1; + if ('frozen' === level && IsDataDescriptor(ToPropertyDescriptor(currentDesc)) && currentDesc.writable) + return !1; + } + return !0; + }) + ); + }; + }, + 64301: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Date = GetIntrinsic('%Date%'), + $Number = GetIntrinsic('%Number%'), + $isFinite = __webpack_require__(21726), + abs = __webpack_require__(2961), + ToNumber = __webpack_require__(53613); + module.exports = function TimeClip(time) { + return !$isFinite(time) || abs(time) > 864e13 ? NaN : $Number(new $Date(ToNumber(time))); + }; + }, + 53506: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var msPerDay = __webpack_require__(2744).msPerDay, + DayFromYear = __webpack_require__(34413); + module.exports = function TimeFromYear(y) { + return msPerDay * DayFromYear(y); + }; + }, + 6054: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(61727), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function TimeWithinDay(t) { + return modulo(t, msPerDay); + }; + }, + 96678: module => { + 'use strict'; + module.exports = function ToBoolean(value) { + return !!value; + }; + }, + 28807: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Date = GetIntrinsic('%Date%'), + $isNaN = __webpack_require__(92510), + Type = __webpack_require__(24909); + module.exports = function ToDateString(tv) { + if ('Number' !== Type(tv)) throw new $TypeError('Assertion failed: `tv` must be a Number'); + return $isNaN(tv) ? 'Invalid Date' : $Date(tv); + }; + }, + 2885: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToUint16 = __webpack_require__(37363); + module.exports = function ToInt16(argument) { + var int16bit = ToUint16(argument); + return int16bit >= 32768 ? int16bit - 65536 : int16bit; + }; + }, + 34185: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(53613); + module.exports = function ToInt32(x) { + return ToNumber(x) >> 0; + }; + }, + 83561: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToUint8 = __webpack_require__(68924); + module.exports = function ToInt8(argument) { + var int8bit = ToUint8(argument); + return int8bit >= 128 ? int8bit - 256 : int8bit; + }; + }, + 68796: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5ToInteger = __webpack_require__(71469), + ToNumber = __webpack_require__(53613); + module.exports = function ToInteger(value) { + var number = ToNumber(value); + return ES5ToInteger(number); + }; + }, + 44771: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var MAX_SAFE_INTEGER = __webpack_require__(33034), + ToInteger = __webpack_require__(68796); + module.exports = function ToLength(argument) { + var len = ToInteger(argument); + return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; + }; + }, + 53613: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Number = GetIntrinsic('%Number%'), + $RegExp = GetIntrinsic('%RegExp%'), + $parseInteger = GetIntrinsic('%parseInt%'), + callBound = __webpack_require__(62680), + regexTester = __webpack_require__(80779), + isPrimitive = __webpack_require__(26607), + $strSlice = callBound('String.prototype.slice'), + isBinary = regexTester(/^0b[01]+$/i), + isOctal = regexTester(/^0o[0-7]+$/i), + isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i), + hasNonWS = regexTester(new $RegExp('[' + ['…', '​', '￾'].join('') + ']', 'g')), + ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), + trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), + $replace = callBound('String.prototype.replace'), + ToPrimitive = __webpack_require__(43825); + module.exports = function ToNumber(argument) { + var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if ('symbol' == typeof value) throw new $TypeError('Cannot convert a Symbol value to a number'); + if ('string' == typeof value) { + if (isBinary(value)) return ToNumber($parseInteger($strSlice(value, 2), 2)); + if (isOctal(value)) return ToNumber($parseInteger($strSlice(value, 2), 8)); + if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; + var trimmed = (function (value) { + return $replace(value, trimRegex, ''); + })(value); + if (trimmed !== value) return ToNumber(trimmed); + } + return $Number(value); + }; + }, + 12197: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + RequireObjectCoercible = __webpack_require__(934); + module.exports = function ToObject(value) { + return RequireObjectCoercible(value), $Object(value); + }; + }, + 43825: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toPrimitive = __webpack_require__(5885); + module.exports = function ToPrimitive(input) { + return arguments.length > 1 ? toPrimitive(input, arguments[1]) : toPrimitive(input); + }; + }, + 95751: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(24909), + ToBoolean = __webpack_require__(96678), + IsCallable = __webpack_require__(52627); + module.exports = function ToPropertyDescriptor(Obj) { + if ('Object' !== Type(Obj)) throw new $TypeError('ToPropertyDescriptor requires an object'); + var desc = {}; + if ( + (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable)), + has(Obj, 'configurable') && (desc['[[Configurable]]'] = ToBoolean(Obj.configurable)), + has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), + has(Obj, 'writable') && (desc['[[Writable]]'] = ToBoolean(Obj.writable)), + has(Obj, 'get')) + ) { + var getter = Obj.get; + if (void 0 !== getter && !IsCallable(getter)) throw new $TypeError('getter must be a function'); + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (void 0 !== setter && !IsCallable(setter)) throw new $TypeError('setter must be a function'); + desc['[[Set]]'] = setter; + } + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) + throw new $TypeError( + 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute', + ); + return desc; + }; + }, + 44876: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $String = __webpack_require__(67286)('%String%'), + ToPrimitive = __webpack_require__(43825), + ToString = __webpack_require__(98765); + module.exports = function ToPropertyKey(argument) { + var key = ToPrimitive(argument, $String); + return 'symbol' == typeof key ? key : ToString(key); + }; + }, + 98765: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $String = GetIntrinsic('%String%'), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function ToString(argument) { + if ('symbol' == typeof argument) throw new $TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); + }; + }, + 37363: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(2961), + floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + ToNumber = __webpack_require__(53613), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + $sign = __webpack_require__(92547); + module.exports = function ToUint16(value) { + var number = ToNumber(value); + if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; + var posInt = $sign(number) * floor(abs(number)); + return modulo(posInt, 65536); + }; + }, + 24464: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(53613); + module.exports = function ToUint32(x) { + return ToNumber(x) >>> 0; + }; + }, + 68924: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(53613), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + $sign = __webpack_require__(92547), + abs = __webpack_require__(2961), + floor = __webpack_require__(3366), + modulo = __webpack_require__(61727); + module.exports = function ToUint8(argument) { + var number = ToNumber(argument); + if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; + var posInt = $sign(number) * floor(abs(number)); + return modulo(posInt, 256); + }; + }, + 1869: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(53613), + floor = __webpack_require__(3366), + $isNaN = __webpack_require__(92510); + module.exports = function ToUint8Clamp(argument) { + var number = ToNumber(argument); + if ($isNaN(number) || number <= 0) return 0; + if (number >= 255) return 255; + var f = floor(argument); + return f + 0.5 < number ? f + 1 : number < f + 0.5 ? f : f % 2 != 0 ? f + 1 : f; + }; + }, + 24909: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5Type = __webpack_require__(62265); + module.exports = function Type(x) { + return 'symbol' == typeof x ? 'Symbol' : ES5Type(x); + }; + }, + 51684: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100); + module.exports = function UTF16Decode(lead, trail) { + if (!isLeadingSurrogate(lead) || !isTrailingSurrogate(trail)) + throw new $TypeError( + 'Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code', + ); + return $fromCharCode(lead) + $fromCharCode(trail); + }; + }, + 6418: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + floor = __webpack_require__(3366), + modulo = __webpack_require__(61727), + isCodePoint = __webpack_require__(19858); + module.exports = function UTF16Encoding(cp) { + if (!isCodePoint(cp)) throw new $TypeError('Assertion failed: `cp` must be >= 0 and <= 0x10FFFF'); + if (cp <= 65535) return $fromCharCode(cp); + var cu1 = floor((cp - 65536) / 1024) + 55296, + cu2 = modulo(cp - 65536, 1024) + 56320; + return $fromCharCode(cu1) + $fromCharCode(cu2); + }; + }, + 91201: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + isPropertyDescriptor = __webpack_require__(92594), + isSamePropertyDescriptor = __webpack_require__(4203), + FromPropertyDescriptor = __webpack_require__(37671), + IsAccessorDescriptor = __webpack_require__(64147), + IsDataDescriptor = __webpack_require__(26846), + IsGenericDescriptor = __webpack_require__(1250), + IsPropertyKey = __webpack_require__(72028), + SameValue = __webpack_require__(61096), + Type = __webpack_require__(24909); + module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { + var oType = Type(O); + if ('Undefined' !== oType && 'Object' !== oType) + throw new $TypeError('Assertion failed: O must be undefined or an Object'); + if ('Boolean' !== Type(extensible)) throw new $TypeError('Assertion failed: extensible must be a Boolean'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if ( + 'Undefined' !== Type(current) && + !isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, current) + ) + throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined'); + if ('Undefined' !== oType && !IsPropertyKey(P)) + throw new $TypeError('Assertion failed: if O is not undefined, P must be a Property Key'); + if ('Undefined' === Type(current)) { + if (!extensible) return !1; + if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) + 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': Desc['[[Configurable]]'], + '[[Enumerable]]': Desc['[[Enumerable]]'], + '[[Value]]': Desc['[[Value]]'], + '[[Writable]]': Desc['[[Writable]]'], + }); + else { + if (!IsAccessorDescriptor(Desc)) + throw new $TypeError('Assertion failed: Desc is not an accessor descriptor'); + if ('Undefined' !== oType) + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + } + return !0; + } + if (IsGenericDescriptor(Desc) && !('[[Configurable]]' in Desc) && !('[[Enumerable]]' in Desc)) return !0; + if (isSamePropertyDescriptor({ SameValue }, Desc, current)) return !0; + if (!current['[[Configurable]]']) { + if (Desc['[[Configurable]]']) return !1; + if ('[[Enumerable]]' in Desc && !Desc['[[Enumerable]]'] == !!current['[[Enumerable]]']) return !1; + } + if (IsGenericDescriptor(Desc)); + else if (IsDataDescriptor(current) !== IsDataDescriptor(Desc)) { + if (!current['[[Configurable]]']) return !1; + IsDataDescriptor(current) + ? 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': current['[[Configurable]]'], + '[[Enumerable]]': current['[[Enumerable]]'], + '[[Get]]': void 0, + }) + : 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': current['[[Configurable]]'], + '[[Enumerable]]': current['[[Enumerable]]'], + '[[Value]]': void 0, + }); + } else if (IsDataDescriptor(current) && IsDataDescriptor(Desc)) { + if (!current['[[Configurable]]'] && !current['[[Writable]]']) + return ( + (!('[[Writable]]' in Desc) || !Desc['[[Writable]]']) && + !('[[Value]]' in Desc && !SameValue(Desc['[[Value]]'], current['[[Value]]'])) + ); + } else { + if (!IsAccessorDescriptor(current) || !IsAccessorDescriptor(Desc)) + throw new $TypeError( + 'Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.', + ); + if (!current['[[Configurable]]']) + return ( + !('[[Set]]' in Desc && !SameValue(Desc['[[Set]]'], current['[[Set]]'])) && + !('[[Get]]' in Desc && !SameValue(Desc['[[Get]]'], current['[[Get]]'])) + ); + } + return ( + 'Undefined' === oType || DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc) + ); + }; + }, + 23757: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Day = __webpack_require__(73460), + modulo = __webpack_require__(61727); + module.exports = function WeekDay(t) { + return modulo(Day(t) + 4, 7); + }; + }, + 67684: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Date = __webpack_require__(67286)('%Date%'), + $getUTCFullYear = __webpack_require__(62680)('Date.prototype.getUTCFullYear'); + module.exports = function YearFromTime(t) { + return $getUTCFullYear(new $Date(t)); + }; + }, + 2961: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $abs = __webpack_require__(67286)('%Math.abs%'); + module.exports = function abs(x) { + return $abs(x); + }; + }, + 3366: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function floor(x) { + return $floor(x); + }; + }, + 61727: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var mod = __webpack_require__(48493); + module.exports = function modulo(x, y) { + return mod(x, y); + }; + }, + 7862: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(61727), + msPerSecond = __webpack_require__(2744).msPerSecond; + module.exports = function msFromTime(t) { + return modulo(t, msPerSecond); + }; + }, + 84874: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $BooleanValueOf = __webpack_require__(62680)('Boolean.prototype.valueOf'), + Type = __webpack_require__(24909); + module.exports = function thisBooleanValue(value) { + return 'Boolean' === Type(value) ? value : $BooleanValueOf(value); + }; + }, + 19274: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var callBound = __webpack_require__(62680), + Type = __webpack_require__(24909), + $NumberValueOf = callBound('Number.prototype.valueOf'); + module.exports = function thisNumberValue(value) { + return 'Number' === Type(value) ? value : $NumberValueOf(value); + }; + }, + 65736: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $StringValueOf = __webpack_require__(62680)('String.prototype.valueOf'), + Type = __webpack_require__(24909); + module.exports = function thisStringValue(value) { + return 'String' === Type(value) ? value : $StringValueOf(value); + }; + }, + 54635: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $DateValueOf = __webpack_require__(62680)('Date.prototype.valueOf'); + module.exports = function thisTimeValue(value) { + return $DateValueOf(value); + }; + }, + 86551: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(929), + ToPrimitive = __webpack_require__(34296), + Type = __webpack_require__(62442); + module.exports = function AbstractEqualityComparison(x, y) { + var xType = Type(x), + yType = Type(y); + return xType === yType + ? x === y + : (null == x && null == y) || + ('Number' === xType && 'String' === yType + ? AbstractEqualityComparison(x, ToNumber(y)) + : ('String' === xType && 'Number' === yType) || 'Boolean' === xType + ? AbstractEqualityComparison(ToNumber(x), y) + : 'Boolean' === yType + ? AbstractEqualityComparison(x, ToNumber(y)) + : ('String' !== xType && 'Number' !== xType && 'Symbol' !== xType) || 'Object' !== yType + ? 'Object' === xType && + ('String' === yType || 'Number' === yType || 'Symbol' === yType) && + AbstractEqualityComparison(ToPrimitive(x), y) + : AbstractEqualityComparison(x, ToPrimitive(y))); + }; + }, + 94826: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Number = GetIntrinsic('%Number%'), + $TypeError = GetIntrinsic('%TypeError%'), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + IsStringPrefix = __webpack_require__(5547), + ToNumber = __webpack_require__(929), + ToPrimitive = __webpack_require__(34296), + Type = __webpack_require__(62442); + module.exports = function AbstractRelationalComparison(x, y, LeftFirst) { + if ('Boolean' !== Type(LeftFirst)) + throw new $TypeError('Assertion failed: LeftFirst argument must be a Boolean'); + var px, py; + if ( + (LeftFirst + ? ((px = ToPrimitive(x, $Number)), (py = ToPrimitive(y, $Number))) + : ((py = ToPrimitive(y, $Number)), (px = ToPrimitive(x, $Number))), + 'String' === Type(px) && 'String' === Type(py)) + ) + return !IsStringPrefix(py, px) && (!!IsStringPrefix(px, py) || px < py); + var nx = ToNumber(px), + ny = ToNumber(py); + return $isNaN(nx) || $isNaN(ny) + ? void 0 + : (!$isFinite(nx) || !$isFinite(ny) || nx !== ny) && + nx !== 1 / 0 && + (ny === 1 / 0 || (ny !== -1 / 0 && (nx === -1 / 0 || nx < ny))); + }; + }, + 68959: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + IsInteger = __webpack_require__(25805), + Type = __webpack_require__(62442), + MAX_SAFE_INTEGER = __webpack_require__(33034), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100), + $TypeError = GetIntrinsic('%TypeError%'), + $charCodeAt = __webpack_require__(62680)('String.prototype.charCodeAt'); + module.exports = function AdvanceStringIndex(S, index, unicode) { + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + if (!IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) + throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); + if ('Boolean' !== Type(unicode)) throw new $TypeError('Assertion failed: `unicode` must be a Boolean'); + if (!unicode) return index + 1; + if (index + 1 >= S.length) return index + 1; + var first = $charCodeAt(S, index); + if (!isLeadingSurrogate(first)) return index + 1; + var second = $charCodeAt(S, index + 1); + return isTrailingSurrogate(second) ? index + 2 : index + 1; + }; + }, + 72995: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ArrayPrototype = GetIntrinsic('%Array.prototype%'), + $RangeError = GetIntrinsic('%RangeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + IsInteger = __webpack_require__(25805), + MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, + $setProto = + GetIntrinsic('%Object.setPrototypeOf%', !0) || + ([].__proto__ !== $ArrayPrototype + ? null + : function (O, proto) { + return (O.__proto__ = proto), O; + }); + module.exports = function ArrayCreate(length) { + if (!IsInteger(length) || length < 0) + throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); + if (length > MAX_ARRAY_LENGTH) throw new $RangeError('length is greater than (2**32 - 1)'); + var proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype, + A = []; + if (proto !== $ArrayPrototype) { + if (!$setProto) + throw new $SyntaxError( + 'ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]', + ); + $setProto(A, proto); + } + return 0 !== length && (A.length = length), A; + }; + }, + 70441: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $RangeError = GetIntrinsic('%RangeError%'), + $TypeError = GetIntrinsic('%TypeError%'), + assign = __webpack_require__(79784), + isPropertyDescriptor = __webpack_require__(92594), + IsArray = __webpack_require__(92222), + IsAccessorDescriptor = __webpack_require__(52275), + IsDataDescriptor = __webpack_require__(47541), + OrdinaryDefineOwnProperty = __webpack_require__(17589), + OrdinaryGetOwnProperty = __webpack_require__(40509), + ToNumber = __webpack_require__(929), + ToString = __webpack_require__(26083), + ToUint32 = __webpack_require__(20592), + Type = __webpack_require__(62442); + module.exports = function ArraySetLength(A, Desc) { + if (!IsArray(A)) throw new $TypeError('Assertion failed: A must be an Array'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if (!('[[Value]]' in Desc)) return OrdinaryDefineOwnProperty(A, 'length', Desc); + var newLenDesc = assign({}, Desc), + newLen = ToUint32(Desc['[[Value]]']); + if (newLen !== ToNumber(Desc['[[Value]]'])) throw new $RangeError('Invalid array length'); + newLenDesc['[[Value]]'] = newLen; + var oldLenDesc = OrdinaryGetOwnProperty(A, 'length'); + if (!IsDataDescriptor(oldLenDesc)) + throw new $TypeError('Assertion failed: an array had a non-data descriptor on `length`'); + var newWritable, + oldLen = oldLenDesc['[[Value]]']; + if (newLen >= oldLen) return OrdinaryDefineOwnProperty(A, 'length', newLenDesc); + if (!oldLenDesc['[[Writable]]']) return !1; + if ( + (!('[[Writable]]' in newLenDesc) || newLenDesc['[[Writable]]'] + ? (newWritable = !0) + : ((newWritable = !1), (newLenDesc['[[Writable]]'] = !0)), + !OrdinaryDefineOwnProperty(A, 'length', newLenDesc)) + ) + return !1; + for (; newLen < oldLen; ) { + if (!delete A[ToString((oldLen -= 1))] && ((newLenDesc['[[Value]]'] = oldLen + 1), !newWritable)) + return (newLenDesc['[[Writable]]'] = !1), OrdinaryDefineOwnProperty(A, 'length', newLenDesc), !1; + } + return !!newWritable || OrdinaryDefineOwnProperty(A, 'length', { '[[Writable]]': !1 }); + }; + }, + 44881: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Array = GetIntrinsic('%Array%'), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + Get = __webpack_require__(56219), + IsArray = __webpack_require__(92222), + IsConstructor = __webpack_require__(84608), + IsInteger = __webpack_require__(25805), + Type = __webpack_require__(62442); + module.exports = function ArraySpeciesCreate(originalArray, length) { + if (!IsInteger(length) || length < 0) throw new $TypeError('Assertion failed: length must be an integer >= 0'); + var C, + len = 0 === length ? 0 : length; + if ( + (IsArray(originalArray) && + ((C = Get(originalArray, 'constructor')), + $species && 'Object' === Type(C) && null === (C = Get(C, $species)) && (C = void 0)), + void 0 === C) + ) + return $Array(len); + if (!IsConstructor(C)) throw new $TypeError('C must be a constructor'); + return new C(len); + }; + }, + 92390: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsArray = __webpack_require__(92222), + $apply = GetIntrinsic('%Reflect.apply%', !0) || callBound('%Function.prototype.apply%'); + module.exports = function Call(F, V) { + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + return $apply(F, V, argumentsList); + }; + }, + 68955: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + SameValue = __webpack_require__(3062), + ToNumber = __webpack_require__(929), + ToString = __webpack_require__(26083), + Type = __webpack_require__(62442); + module.exports = function CanonicalNumericIndexString(argument) { + if ('String' !== Type(argument)) throw new $TypeError('Assertion failed: `argument` must be a String'); + if ('-0' === argument) return -0; + var n = ToNumber(argument); + return SameValue(ToString(n), argument) ? n : void 0; + }; + }, + 21001: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + $TypeError = GetIntrinsic('%TypeError%'), + $charCodeAt = callBound('%String.prototype.charCodeAt%'), + $push = callBound('%Array.prototype.push%'); + module.exports = function CharacterRange(A, B) { + if (1 !== A.length || 1 !== B.length) + throw new $TypeError('Assertion failed: CharSets A and B contain exactly one character'); + var a = A[0], + b = B[0], + i = $charCodeAt(a, 0), + j = $charCodeAt(b, 0); + if (!(i <= j)) throw new $TypeError('Assertion failed: i is not <= j'); + for (var arr = [], k = i; k <= j; k += 1) $push(arr, $fromCharCode(k)); + return arr; + }; + }, + 61272: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + IsDataDescriptor = __webpack_require__(47541), + IsGenericDescriptor = __webpack_require__(64170), + Type = __webpack_require__(62442); + module.exports = function CompletePropertyDescriptor(Desc) { + return ( + assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + IsGenericDescriptor(Desc) || IsDataDescriptor(Desc) + ? (has(Desc, '[[Value]]') || (Desc['[[Value]]'] = void 0), + has(Desc, '[[Writable]]') || (Desc['[[Writable]]'] = !1)) + : (has(Desc, '[[Get]]') || (Desc['[[Get]]'] = void 0), has(Desc, '[[Set]]') || (Desc['[[Set]]'] = void 0)), + has(Desc, '[[Enumerable]]') || (Desc['[[Enumerable]]'] = !1), + has(Desc, '[[Configurable]]') || (Desc['[[Configurable]]'] = !1), + Desc + ); + }; + }, + 9551: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + forEach = __webpack_require__(23173), + OwnPropertyKeys = __webpack_require__(74727), + $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'), + CreateDataProperty = __webpack_require__(86270), + Get = __webpack_require__(56219), + IsArray = __webpack_require__(92222), + IsInteger = __webpack_require__(25805), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + ToNumber = __webpack_require__(929), + ToObject = __webpack_require__(9613), + Type = __webpack_require__(62442); + module.exports = function CopyDataProperties(target, source, excludedItems) { + if ('Object' !== Type(target)) throw new $TypeError('Assertion failed: "target" must be an Object'); + if (!IsArray(excludedItems)) + throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); + for (var i = 0; i < excludedItems.length; i += 1) + if (!IsPropertyKey(excludedItems[i])) + throw new $TypeError('Assertion failed: "excludedItems" must be a List of Property Keys'); + if (null == source) return target; + var fromObj = ToObject(source), + sourceKeys = OwnPropertyKeys(fromObj); + return ( + forEach(sourceKeys, function (nextKey) { + var excluded = !1; + forEach(excludedItems, function (e) { + !0 === SameValue(e, nextKey) && (excluded = !0); + }); + var enumerable = + $isEnumerable(fromObj, nextKey) || + ('string' == typeof source && nextKey >= 0 && IsInteger(ToNumber(nextKey))); + if (!1 === excluded && enumerable) { + var propValue = Get(fromObj, nextKey); + CreateDataProperty(target, nextKey, propValue); + } + }), + target + ); + }; + }, + 86270: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(72976), + OrdinaryGetOwnProperty = __webpack_require__(40509), + IsDataDescriptor = __webpack_require__(47541), + IsExtensible = __webpack_require__(36071), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + Type = __webpack_require__(62442); + module.exports = function CreateDataProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var oldDesc = OrdinaryGetOwnProperty(O, P), + extensible = !oldDesc || IsExtensible(O); + return ( + !((oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]'])) || !extensible) && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Value]]': V, + '[[Writable]]': !0, + }) + ); + }; + }, + 5988: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + CreateDataProperty = __webpack_require__(86270), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function CreateDataPropertyOrThrow(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = CreateDataProperty(O, P, V); + if (!success) throw new $TypeError('unable to create data property'); + return success; + }; + }, + 62706: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $replace = __webpack_require__(62680)('String.prototype.replace'), + RequireObjectCoercible = __webpack_require__(63762), + ToString = __webpack_require__(26083), + Type = __webpack_require__(62442); + module.exports = function CreateHTML(string, tag, attribute, value) { + if ('String' !== Type(tag) || 'String' !== Type(attribute)) + throw new $TypeError('Assertion failed: `tag` and `attribute` must be strings'); + var str = RequireObjectCoercible(string), + S = ToString(str), + p1 = '<' + tag; + if ('' !== attribute) { + var V = ToString(value); + p1 += ' ' + attribute + '="' + $replace(V, /\x22/g, '"') + '"'; + } + return p1 + '>' + S + ''; + }; + }, + 4390: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(62442); + module.exports = function CreateIterResultObject(value, done) { + if ('Boolean' !== Type(done)) throw new $TypeError('Assertion failed: Type(done) is not Boolean'); + return { value, done }; + }; + }, + 37454: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + $indexOf = callBound('Array.prototype.indexOf', !0) || callBound('String.prototype.indexOf'), + $push = callBound('Array.prototype.push'), + Get = __webpack_require__(56219), + IsArray = __webpack_require__(92222), + ToLength = __webpack_require__(63269), + ToString = __webpack_require__(26083), + Type = __webpack_require__(62442); + module.exports = function CreateListFromArrayLike(obj) { + var elementTypes = + arguments.length > 1 + ? arguments[1] + : ['Undefined', 'Null', 'Boolean', 'String', 'Symbol', 'Number', 'Object']; + if ('Object' !== Type(obj)) throw new $TypeError('Assertion failed: `obj` must be an Object'); + if (!IsArray(elementTypes)) + throw new $TypeError('Assertion failed: `elementTypes`, if provided, must be an array'); + for (var len = ToLength(Get(obj, 'length')), list = [], index = 0; index < len; ) { + var indexName = ToString(index), + next = Get(obj, indexName), + nextType = Type(next); + if ($indexOf(elementTypes, nextType) < 0) + throw new $TypeError('item type ' + nextType + ' is not a valid elementType'); + $push(list, next), (index += 1); + } + return list; + }; + }, + 70212: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(72976), + IsDataDescriptor = __webpack_require__(47541), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + Type = __webpack_require__(62442); + module.exports = function CreateMethodProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !1, + '[[Value]]': V, + '[[Writable]]': !0, + }); + }; + }, + 76714: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $EvalError = __webpack_require__(67286)('%EvalError%'), + DayWithinYear = __webpack_require__(21181), + InLeapYear = __webpack_require__(95780), + MonthFromTime = __webpack_require__(41990); + module.exports = function DateFromTime(t) { + var m = MonthFromTime(t), + d = DayWithinYear(t); + if (0 === m) return d + 1; + if (1 === m) return d - 30; + var leap = InLeapYear(t); + if (2 === m) return d - 58 - leap; + if (3 === m) return d - 89 - leap; + if (4 === m) return d - 119 - leap; + if (5 === m) return d - 150 - leap; + if (6 === m) return d - 180 - leap; + if (7 === m) return d - 211 - leap; + if (8 === m) return d - 242 - leap; + if (9 === m) return d - 272 - leap; + if (10 === m) return d - 303 - leap; + if (11 === m) return d - 333 - leap; + throw new $EvalError('Assertion failed: MonthFromTime returned an impossible value: ' + m); + }; + }, + 27403: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + weekdays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + $isNaN = __webpack_require__(92510), + padTimeComponent = __webpack_require__(45971), + Type = __webpack_require__(62442), + WeekDay = __webpack_require__(44458), + MonthFromTime = __webpack_require__(41990), + YearFromTime = __webpack_require__(47455), + DateFromTime = __webpack_require__(76714); + module.exports = function DateString(tv) { + if ('Number' !== Type(tv) || $isNaN(tv)) + throw new $TypeError('Assertion failed: `tv` must be a non-NaN Number'); + return ( + weekdays[WeekDay(tv)] + + ' ' + + months[MonthFromTime(tv)] + + ' ' + + padTimeComponent(DateFromTime(tv)) + + ' ' + + padTimeComponent(YearFromTime(tv), 4) + ); + }; + }, + 38830: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(47227), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function Day(t) { + return floor(t / msPerDay); + }; + }, + 49090: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(47227); + module.exports = function DayFromYear(y) { + return 365 * (y - 1970) + floor((y - 1969) / 4) - floor((y - 1901) / 100) + floor((y - 1601) / 400); + }; + }, + 21181: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Day = __webpack_require__(38830), + DayFromYear = __webpack_require__(49090), + YearFromTime = __webpack_require__(47455); + module.exports = function DayWithinYear(t) { + return Day(t) - DayFromYear(YearFromTime(t)); + }; + }, + 68316: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(6121); + module.exports = function DaysInYear(y) { + return 0 !== modulo(y, 4) ? 365 : 0 !== modulo(y, 100) ? 366 : 0 !== modulo(y, 400) ? 365 : 366; + }; + }, + 38885: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(72976), + IsAccessorDescriptor = __webpack_require__(52275), + IsDataDescriptor = __webpack_require__(47541), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + ToPropertyDescriptor = __webpack_require__(10482), + Type = __webpack_require__(62442); + module.exports = function DefinePropertyOrThrow(O, P, desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var Desc = isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, desc) + ? desc + : ToPropertyDescriptor(desc); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + }; + }, + 55469: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function DeletePropertyOrThrow(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = delete O[P]; + if (!success) throw new $TypeError('Attempt to delete property failed.'); + return success; + }; + }, + 58600: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + objectKeys = __webpack_require__(33464), + callBound = __webpack_require__(62680), + callBind = __webpack_require__(89429), + $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'), + $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%')), + forEach = __webpack_require__(23173), + Type = __webpack_require__(62442); + module.exports = function EnumerableOwnProperties(O, kind) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var keys = objectKeys(O); + if ('key' === kind) return keys; + if ('value' === kind || 'key+value' === kind) { + var results = []; + return ( + forEach(keys, function (key) { + $isEnumerable(O, key) && $pushApply(results, ['value' === kind ? O[key] : [key, O[key]]]); + }), + results + ); + } + throw new $TypeError('Assertion failed: "kind" is not "key", "value", or "key+value": ' + kind); + }; + }, + 72976: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + Type = __webpack_require__(62442); + module.exports = function FromPropertyDescriptor(Desc) { + if (void 0 === Desc) return Desc; + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + var obj = {}; + return ( + '[[Value]]' in Desc && (obj.value = Desc['[[Value]]']), + '[[Writable]]' in Desc && (obj.writable = Desc['[[Writable]]']), + '[[Get]]' in Desc && (obj.get = Desc['[[Get]]']), + '[[Set]]' in Desc && (obj.set = Desc['[[Set]]']), + '[[Enumerable]]' in Desc && (obj.enumerable = Desc['[[Enumerable]]']), + '[[Configurable]]' in Desc && (obj.configurable = Desc['[[Configurable]]']), + obj + ); + }; + }, + 56219: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + inspect = __webpack_require__(99500), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function Get(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + return O[P]; + }; + }, + 17894: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + getIteratorMethod = __webpack_require__(55412), + AdvanceStringIndex = __webpack_require__(68959), + Call = __webpack_require__(92390), + GetMethod = __webpack_require__(26686), + IsArray = __webpack_require__(92222), + Type = __webpack_require__(62442); + module.exports = function GetIterator(obj, method) { + var actualMethod = method; + arguments.length < 2 && + (actualMethod = getIteratorMethod({ AdvanceStringIndex, GetMethod, IsArray, Type }, obj)); + var iterator = Call(actualMethod, obj); + if ('Object' !== Type(iterator)) throw new $TypeError('iterator must return an object'); + return iterator; + }; + }, + 26686: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + GetV = __webpack_require__(89636), + IsCallable = __webpack_require__(38067), + IsPropertyKey = __webpack_require__(67357); + module.exports = function GetMethod(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var func = GetV(O, P); + if (null != func) { + if (!IsCallable(func)) throw new $TypeError(P + 'is not a function'); + return func; + } + }; + }, + 75703: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + hasSymbols = __webpack_require__(58811)(), + $TypeError = GetIntrinsic('%TypeError%'), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + $gOPS = hasSymbols && GetIntrinsic('%Object.getOwnPropertySymbols%'), + keys = __webpack_require__(33464), + esType = __webpack_require__(62442); + module.exports = function GetOwnPropertyKeys(O, Type) { + if ('Object' !== esType(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('Symbol' === Type) return $gOPS ? $gOPS(O) : []; + if ('String' === Type) return $gOPN ? $gOPN(O) : keys(O); + throw new $TypeError('Assertion failed: `Type` must be `"String"` or `"Symbol"`'); + }; + }, + 28837: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Function = GetIntrinsic('%Function%'), + $TypeError = GetIntrinsic('%TypeError%'), + Get = __webpack_require__(56219), + IsConstructor = __webpack_require__(84608), + Type = __webpack_require__(62442); + module.exports = function GetPrototypeFromConstructor(constructor, intrinsicDefaultProto) { + var intrinsic = GetIntrinsic(intrinsicDefaultProto); + if (!IsConstructor(constructor)) throw new $TypeError('Assertion failed: `constructor` must be a constructor'); + var proto = Get(constructor, 'prototype'); + if ('Object' !== Type(proto)) { + if (!(constructor instanceof $Function)) + throw new $TypeError('cross-realm constructors not currently supported'); + proto = intrinsic; + } + return proto; + }; + }, + 58569: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + regexTester = __webpack_require__(80779), + every = __webpack_require__(37812), + $charAt = callBound('String.prototype.charAt'), + $strSlice = callBound('String.prototype.slice'), + $indexOf = callBound('String.prototype.indexOf'), + $parseInt = parseInt, + isDigit = regexTester(/^[0-9]$/), + inspect = __webpack_require__(99500), + Get = __webpack_require__(56219), + IsArray = __webpack_require__(92222), + IsInteger = __webpack_require__(25805), + ToObject = __webpack_require__(9613), + ToString = __webpack_require__(26083), + Type = __webpack_require__(62442), + canDistinguishSparseFromUndefined = 0 in [void 0], + isStringOrHole = function (capture, index, arr) { + return ( + 'String' === Type(capture) || + (canDistinguishSparseFromUndefined ? !(index in arr) : 'Undefined' === Type(capture)) + ); + }; + module.exports = function GetSubstitution(matched, str, position, captures, namedCaptures, replacement) { + if ('String' !== Type(matched)) throw new $TypeError('Assertion failed: `matched` must be a String'); + var matchLength = matched.length; + if ('String' !== Type(str)) throw new $TypeError('Assertion failed: `str` must be a String'); + var stringLength = str.length; + if (!IsInteger(position) || position < 0 || position > stringLength) + throw new $TypeError( + 'Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + + inspect(position), + ); + if (!IsArray(captures) || !every(captures, isStringOrHole)) + throw new $TypeError('Assertion failed: `captures` must be a List of Strings, got ' + inspect(captures)); + if ('String' !== Type(replacement)) throw new $TypeError('Assertion failed: `replacement` must be a String'); + var tailPos = position + matchLength, + m = captures.length; + 'Undefined' !== Type(namedCaptures) && (namedCaptures = ToObject(namedCaptures)); + for (var result = '', i = 0; i < replacement.length; i += 1) { + var current = $charAt(replacement, i), + isLast = i + 1 >= replacement.length, + nextIsLast = i + 2 >= replacement.length; + if ('$' !== current || isLast) result += $charAt(replacement, i); + else { + var next = $charAt(replacement, i + 1); + if ('$' === next) (result += '$'), (i += 1); + else if ('&' === next) (result += matched), (i += 1); + else if ('`' === next) (result += 0 === position ? '' : $strSlice(str, 0, position - 1)), (i += 1); + else if ("'" === next) (result += tailPos >= stringLength ? '' : $strSlice(str, tailPos)), (i += 1); + else { + var nextNext = nextIsLast ? null : $charAt(replacement, i + 2); + if (!isDigit(next) || '0' === next || (!nextIsLast && isDigit(nextNext))) + if (isDigit(next) && (nextIsLast || isDigit(nextNext))) { + var nn = next + nextNext, + nnI = $parseInt(nn, 10) - 1; + (result += nn <= m && 'Undefined' === Type(captures[nnI]) ? '' : captures[nnI]), (i += 2); + } else if ('<' === next) + if ('Undefined' === Type(namedCaptures)) (result += '$<'), (i += 2); + else { + var endIndex = $indexOf(replacement, '>', i); + if (endIndex > -1) { + var groupName = $strSlice(replacement, i + '$<'.length, endIndex), + capture = Get(namedCaptures, groupName); + 'Undefined' !== Type(capture) && (result += ToString(capture)), + (i += ('<' + groupName + '>').length); + } + } + else result += '$'; + else { + var n = $parseInt(next, 10); + (result += n <= m && 'Undefined' === Type(captures[n - 1]) ? '' : captures[n - 1]), (i += 1); + } + } + } + } + return result; + }; + }, + 89636: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(67357), + ToObject = __webpack_require__(9613); + module.exports = function GetV(V, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return ToObject(V)[P]; + }; + }, + 65879: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + has = __webpack_require__(23198), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function HasOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return has(O, P); + }; + }, + 23297: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function HasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return P in O; + }; + }, + 18757: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + timeConstants = __webpack_require__(2744), + msPerHour = timeConstants.msPerHour, + HoursPerDay = timeConstants.HoursPerDay; + module.exports = function HourFromTime(t) { + return modulo(floor(t / msPerHour), HoursPerDay); + }; + }, + 95780: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $EvalError = __webpack_require__(67286)('%EvalError%'), + DaysInYear = __webpack_require__(68316), + YearFromTime = __webpack_require__(47455); + module.exports = function InLeapYear(t) { + var days = DaysInYear(YearFromTime(t)); + if (365 === days) return 0; + if (366 === days) return 1; + throw new $EvalError('Assertion failed: there are not 365 or 366 days in a year, got: ' + days); + }; + }, + 94078: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $hasInstance = GetIntrinsic('Symbol.hasInstance', !0), + Call = __webpack_require__(92390), + GetMethod = __webpack_require__(26686), + IsCallable = __webpack_require__(38067), + OrdinaryHasInstance = __webpack_require__(27105), + ToBoolean = __webpack_require__(518), + Type = __webpack_require__(62442); + module.exports = function InstanceofOperator(O, C) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var instOfHandler = $hasInstance ? GetMethod(C, $hasInstance) : void 0; + if (void 0 !== instOfHandler) return ToBoolean(Call(instOfHandler, C, [O])); + if (!IsCallable(C)) throw new $TypeError('`C` is not Callable'); + return OrdinaryHasInstance(C, O); + }; + }, + 41186: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(92390), + IsArray = __webpack_require__(92222), + GetV = __webpack_require__(89636), + IsPropertyKey = __webpack_require__(67357); + module.exports = function Invoke(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + var func = GetV(O, P); + return Call(func, O, argumentsList); + }; + }, + 52275: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(62442); + module.exports = function IsAccessorDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]'))) + ); + }; + }, + 92222: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Array = __webpack_require__(67286)('%Array%'), + toStr = !$Array.isArray && __webpack_require__(62680)('Object.prototype.toString'); + module.exports = + $Array.isArray || + function IsArray(argument) { + return '[object Array]' === toStr(argument); + }; + }, + 38067: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(9680); + }, + 69443: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ValidateAndApplyPropertyDescriptor = __webpack_require__(18734); + module.exports = function IsCompatiblePropertyDescriptor(Extensible, Desc, Current) { + return ValidateAndApplyPropertyDescriptor(void 0, void 0, Extensible, Desc, Current); + }; + }, + 42679: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isConcatSpreadable = __webpack_require__(67286)('%Symbol.isConcatSpreadable%', !0), + Get = __webpack_require__(56219), + IsArray = __webpack_require__(92222), + ToBoolean = __webpack_require__(518), + Type = __webpack_require__(62442); + module.exports = function IsConcatSpreadable(O) { + if ('Object' !== Type(O)) return !1; + if ($isConcatSpreadable) { + var spreadable = Get(O, $isConcatSpreadable); + if (void 0 !== spreadable) return ToBoolean(spreadable); + } + return IsArray(O); + }; + }, + 84608: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $construct = __webpack_require__(85945)('%Reflect.construct%', !0), + DefinePropertyOrThrow = __webpack_require__(38885); + try { + DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); + } catch (e) { + DefinePropertyOrThrow = null; + } + if (DefinePropertyOrThrow && $construct) { + var isConstructorMarker = {}, + badArrayLike = {}; + DefinePropertyOrThrow(badArrayLike, 'length', { + '[[Get]]': function () { + throw isConstructorMarker; + }, + '[[Enumerable]]': !0, + }), + (module.exports = function IsConstructor(argument) { + try { + $construct(argument, badArrayLike); + } catch (err) { + return err === isConstructorMarker; + } + }); + } else + module.exports = function IsConstructor(argument) { + return 'function' == typeof argument && !!argument.prototype; + }; + }, + 47541: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(62442); + module.exports = function IsDataDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]'))) + ); + }; + }, + 36071: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + isPrimitive = __webpack_require__(26607), + $preventExtensions = $Object.preventExtensions, + $isExtensible = $Object.isExtensible; + module.exports = $preventExtensions + ? function IsExtensible(obj) { + return !isPrimitive(obj) && $isExtensible(obj); + } + : function IsExtensible(obj) { + return !isPrimitive(obj); + }; + }, + 64170: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + IsAccessorDescriptor = __webpack_require__(52275), + IsDataDescriptor = __webpack_require__(47541), + Type = __webpack_require__(62442); + module.exports = function IsGenericDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !IsAccessorDescriptor(Desc) && !IsDataDescriptor(Desc)) + ); + }; + }, + 25805: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(49741), + floor = __webpack_require__(47227), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726); + module.exports = function IsInteger(argument) { + if ('number' != typeof argument || $isNaN(argument) || !$isFinite(argument)) return !1; + var absValue = abs(argument); + return floor(absValue) === absValue; + }; + }, + 40010: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $PromiseThen = __webpack_require__(62680)('Promise.prototype.then', !0), + Type = __webpack_require__(62442); + module.exports = function IsPromise(x) { + if ('Object' !== Type(x)) return !1; + if (!$PromiseThen) return !1; + try { + $PromiseThen(x); + } catch (e) { + return !1; + } + return !0; + }; + }, + 67357: module => { + 'use strict'; + module.exports = function IsPropertyKey(argument) { + return 'string' == typeof argument || 'symbol' == typeof argument; + }; + }, + 57244: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $match = __webpack_require__(67286)('%Symbol.match%', !0), + hasRegExpMatcher = __webpack_require__(58786), + ToBoolean = __webpack_require__(518); + module.exports = function IsRegExp(argument) { + if (!argument || 'object' != typeof argument) return !1; + if ($match) { + var isRegExp = argument[$match]; + if (void 0 !== isRegExp) return ToBoolean(isRegExp); + } + return hasRegExpMatcher(argument); + }; + }, + 70783: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(62442), + isSharedArrayBuffer = __webpack_require__(49638); + module.exports = function IsSharedArrayBuffer(obj) { + if ('Object' !== Type(obj)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + return isSharedArrayBuffer(obj); + }; + }, + 5547: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + isPrefixOf = __webpack_require__(21543), + Type = __webpack_require__(62442); + module.exports = function IsStringPrefix(p, q) { + if ('String' !== Type(p)) throw new $TypeError('Assertion failed: "p" must be a String'); + if ('String' !== Type(q)) throw new $TypeError('Assertion failed: "q" must be a String'); + return isPrefixOf(p, q); + }; + }, + 57366: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $arrayPush = __webpack_require__(62680)('Array.prototype.push'), + GetIterator = __webpack_require__(17894), + IteratorStep = __webpack_require__(51258), + IteratorValue = __webpack_require__(61370); + module.exports = function IterableToList(items, method) { + for (var iterator = GetIterator(items, method), values = [], next = !0; next; ) + if ((next = IteratorStep(iterator))) { + var nextValue = IteratorValue(next); + $arrayPush(values, nextValue); + } + return values; + }; + }, + 54194: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(92390), + GetMethod = __webpack_require__(26686), + IsCallable = __webpack_require__(38067), + Type = __webpack_require__(62442); + module.exports = function IteratorClose(iterator, completion) { + if ('Object' !== Type(iterator)) throw new $TypeError('Assertion failed: Type(iterator) is not Object'); + if (!IsCallable(completion)) + throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record'); + var completionRecord, + completionThunk = completion, + iteratorReturn = GetMethod(iterator, 'return'); + if (void 0 === iteratorReturn) return completionThunk(); + try { + var innerResult = Call(iteratorReturn, iterator, []); + } catch (e) { + throw (completionThunk(), (completionThunk = null), e); + } + if (((completionRecord = completionThunk()), (completionThunk = null), 'Object' !== Type(innerResult))) + throw new $TypeError('iterator .return must return an object'); + return completionRecord; + }; + }, + 88601: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(56219), + ToBoolean = __webpack_require__(518), + Type = __webpack_require__(62442); + module.exports = function IteratorComplete(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return ToBoolean(Get(iterResult, 'done')); + }; + }, + 75648: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Invoke = __webpack_require__(41186), + Type = __webpack_require__(62442); + module.exports = function IteratorNext(iterator, value) { + var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); + if ('Object' !== Type(result)) throw new $TypeError('iterator next must return an object'); + return result; + }; + }, + 51258: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var IteratorComplete = __webpack_require__(88601), + IteratorNext = __webpack_require__(75648); + module.exports = function IteratorStep(iterator) { + var result = IteratorNext(iterator); + return !0 !== IteratorComplete(result) && result; + }; + }, + 61370: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(56219), + Type = __webpack_require__(62442); + module.exports = function IteratorValue(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return Get(iterResult, 'value'); + }; + }, + 31985: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isFinite = __webpack_require__(21726), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function MakeDate(day, time) { + return $isFinite(day) && $isFinite(time) ? day * msPerDay + time : NaN; + }; + }, + 24895: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $DateUTC = __webpack_require__(67286)('%Date.UTC%'), + $isFinite = __webpack_require__(21726), + DateFromTime = __webpack_require__(76714), + Day = __webpack_require__(38830), + floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + MonthFromTime = __webpack_require__(41990), + ToInteger = __webpack_require__(32508), + YearFromTime = __webpack_require__(47455); + module.exports = function MakeDay(year, month, date) { + if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return NaN; + var y = ToInteger(year), + m = ToInteger(month), + dt = ToInteger(date), + ym = y + floor(m / 12), + mn = modulo(m, 12), + t = $DateUTC(ym, mn, 1); + return YearFromTime(t) !== ym || MonthFromTime(t) !== mn || 1 !== DateFromTime(t) ? NaN : Day(t) + dt - 1; + }; + }, + 49413: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isFinite = __webpack_require__(21726), + timeConstants = __webpack_require__(2744), + msPerSecond = timeConstants.msPerSecond, + msPerMinute = timeConstants.msPerMinute, + msPerHour = timeConstants.msPerHour, + ToInteger = __webpack_require__(32508); + module.exports = function MakeTime(hour, min, sec, ms) { + if (!($isFinite(hour) && $isFinite(min) && $isFinite(sec) && $isFinite(ms))) return NaN; + var h = ToInteger(hour), + m = ToInteger(min), + s = ToInteger(sec), + milli = ToInteger(ms); + return h * msPerHour + m * msPerMinute + s * msPerSecond + milli; + }; + }, + 5940: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + timeConstants = __webpack_require__(2744), + msPerMinute = timeConstants.msPerMinute, + MinutesPerHour = timeConstants.MinutesPerHour; + module.exports = function MinFromTime(t) { + return modulo(floor(t / msPerMinute), MinutesPerHour); + }; + }, + 41990: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var DayWithinYear = __webpack_require__(21181), + InLeapYear = __webpack_require__(95780); + module.exports = function MonthFromTime(t) { + var day = DayWithinYear(t); + if (0 <= day && day < 31) return 0; + var leap = InLeapYear(t); + return 31 <= day && day < 59 + leap + ? 1 + : 59 + leap <= day && day < 90 + leap + ? 2 + : 90 + leap <= day && day < 120 + leap + ? 3 + : 120 + leap <= day && day < 151 + leap + ? 4 + : 151 + leap <= day && day < 181 + leap + ? 5 + : 181 + leap <= day && day < 212 + leap + ? 6 + : 212 + leap <= day && day < 243 + leap + ? 7 + : 243 + leap <= day && day < 273 + leap + ? 8 + : 273 + leap <= day && day < 304 + leap + ? 9 + : 304 + leap <= day && day < 334 + leap + ? 10 + : 334 + leap <= day && day < 365 + leap + ? 11 + : void 0; + }; + }, + 77171: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $String = GetIntrinsic('%String%'), + $TypeError = GetIntrinsic('%TypeError%'), + Type = __webpack_require__(62442); + module.exports = function NumberToString(m) { + if ('Number' !== Type(m)) throw new $TypeError('Assertion failed: "m" must be a String'); + return $String(m); + }; + }, + 68585: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ObjectCreate = GetIntrinsic('%Object.create%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + Type = __webpack_require__(62442), + hasProto = !({ __proto__: null } instanceof Object); + module.exports = function ObjectCreate(proto, internalSlotsList) { + if (null !== proto && 'Object' !== Type(proto)) + throw new $TypeError('Assertion failed: `proto` must be null or an object'); + var slots = arguments.length < 2 ? [] : internalSlotsList; + if (slots.length > 0) throw new $SyntaxError('es-abstract does not yet support internal slots'); + if ($ObjectCreate) return $ObjectCreate(proto); + if (hasProto) return { __proto__: proto }; + if (null === proto) throw new $SyntaxError('native Object.create support is required to create null objects'); + var T = function T() {}; + return (T.prototype = proto), new T(); + }; + }, + 58109: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + GetPrototypeFromConstructor = __webpack_require__(28837), + IsArray = __webpack_require__(92222), + ObjectCreate = __webpack_require__(68585); + module.exports = function OrdinaryCreateFromConstructor(constructor, intrinsicDefaultProto) { + GetIntrinsic(intrinsicDefaultProto); + var proto = GetPrototypeFromConstructor(constructor, intrinsicDefaultProto), + slots = arguments.length < 3 ? [] : arguments[2]; + if (!IsArray(slots)) throw new $TypeError('Assertion failed: if provided, `internalSlotsList` must be a List'); + return ObjectCreate(proto, slots); + }; + }, + 17589: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + IsAccessorDescriptor = __webpack_require__(52275), + IsDataDescriptor = __webpack_require__(47541), + IsExtensible = __webpack_require__(36071), + IsPropertyKey = __webpack_require__(67357), + ToPropertyDescriptor = __webpack_require__(10482), + SameValue = __webpack_require__(3062), + Type = __webpack_require__(62442), + ValidateAndApplyPropertyDescriptor = __webpack_require__(18734); + module.exports = function OrdinaryDefineOwnProperty(O, P, Desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if (!$gOPD) { + if (IsAccessorDescriptor(Desc)) + throw new $SyntaxError('This environment does not support accessor property descriptors.'); + var creatingNormalDataProperty = + !(P in O) && + Desc['[[Writable]]'] && + Desc['[[Enumerable]]'] && + Desc['[[Configurable]]'] && + '[[Value]]' in Desc, + settingExistingDataProperty = + P in O && + (!('[[Configurable]]' in Desc) || Desc['[[Configurable]]']) && + (!('[[Enumerable]]' in Desc) || Desc['[[Enumerable]]']) && + (!('[[Writable]]' in Desc) || Desc['[[Writable]]']) && + '[[Value]]' in Desc; + if (creatingNormalDataProperty || settingExistingDataProperty) + return (O[P] = Desc['[[Value]]']), SameValue(O[P], Desc['[[Value]]']); + throw new $SyntaxError( + 'This environment does not support defining non-writable, non-enumerable, or non-configurable properties', + ); + } + var desc = $gOPD(O, P), + current = desc && ToPropertyDescriptor(desc), + extensible = IsExtensible(O); + return ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current); + }; + }, + 40509: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $TypeError = GetIntrinsic('%TypeError%'), + $isEnumerable = __webpack_require__(62680)('Object.prototype.propertyIsEnumerable'), + has = __webpack_require__(23198), + IsArray = __webpack_require__(92222), + IsPropertyKey = __webpack_require__(67357), + IsRegExp = __webpack_require__(57244), + ToPropertyDescriptor = __webpack_require__(10482), + Type = __webpack_require__(62442); + module.exports = function OrdinaryGetOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (has(O, P)) { + if (!$gOPD) { + var arrayLength = IsArray(O) && 'length' === P, + regexLastIndex = IsRegExp(O) && 'lastIndex' === P; + return { + '[[Configurable]]': !(arrayLength || regexLastIndex), + '[[Enumerable]]': $isEnumerable(O, P), + '[[Value]]': O[P], + '[[Writable]]': !0, + }; + } + return ToPropertyDescriptor($gOPD(O, P)); + } + }; + }, + 25461: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $getProto = __webpack_require__(92829), + Type = __webpack_require__(62442); + module.exports = function OrdinaryGetPrototypeOf(O) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!$getProto) throw new $TypeError('This environment does not support fetching prototypes.'); + return $getProto(O); + }; + }, + 27105: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(56219), + IsCallable = __webpack_require__(38067), + Type = __webpack_require__(62442); + module.exports = function OrdinaryHasInstance(C, O) { + if (!1 === IsCallable(C)) return !1; + if ('Object' !== Type(O)) return !1; + var P = Get(C, 'prototype'); + if ('Object' !== Type(P)) + throw new $TypeError('OrdinaryHasInstance called on an object with an invalid prototype property.'); + return O instanceof C; + }; + }, + 16788: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442); + module.exports = function OrdinaryHasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + return P in O; + }; + }, + 56584: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $setProto = __webpack_require__(6361), + OrdinaryGetPrototypeOf = __webpack_require__(25461), + Type = __webpack_require__(62442); + module.exports = function OrdinarySetPrototypeOf(O, V) { + if ('Object' !== Type(V) && 'Null' !== Type(V)) + throw new $TypeError('Assertion failed: V must be Object or Null'); + try { + $setProto(O, V); + } catch (e) { + return !1; + } + return OrdinaryGetPrototypeOf(O) === V; + }; + }, + 95074: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(92390), + Get = __webpack_require__(56219), + IsCallable = __webpack_require__(38067), + Type = __webpack_require__(62442), + inspect = __webpack_require__(99500); + module.exports = function OrdinaryToPrimitive(O, hint) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('string' !== hint && 'number' !== hint) + throw new $TypeError('Assertion failed: `hint` must be "string" or "number"'); + for ( + var methodNames = 'string' === hint ? ['toString', 'valueOf'] : ['valueOf', 'toString'], i = 0; + i < methodNames.length; + i += 1 + ) { + var method = Get(O, methodNames[i]); + if (IsCallable(method)) { + var result = Call(method, O); + if ('Object' !== Type(result)) return result; + } + } + throw new $TypeError('No primitive value for ' + inspect(O)); + }; + }, + 77126: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBind = __webpack_require__(89429), + $resolve = GetIntrinsic('%Promise.resolve%', !0), + $PromiseResolve = $resolve && callBind($resolve); + module.exports = function PromiseResolve(C, x) { + if (!$PromiseResolve) throw new SyntaxError('This environment does not support Promises.'); + return $PromiseResolve(C, x); + }; + }, + 81898: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + forEach = __webpack_require__(23173), + $charCodeAt = callBound('String.prototype.charCodeAt'), + $strSplit = callBound('String.prototype.split'), + Type = __webpack_require__(62442), + UnicodeEscape = __webpack_require__(44989), + has = __webpack_require__(23198), + escapes = { '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"': '\\"', '\\': '\\\\' }; + module.exports = function QuoteJSONString(value) { + if ('String' !== Type(value)) throw new $TypeError('Assertion failed: `value` must be a String'); + var product = '"'; + return ( + value && + forEach($strSplit(value), function (C) { + has(escapes, C) + ? (product += escapes[C]) + : $charCodeAt(C, 0) < 32 + ? (product += UnicodeEscape(C)) + : (product += C); + }), + (product += '"') + ); + }; + }, + 18444: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $RegExp = __webpack_require__(67286)('%RegExp%'), + ToString = __webpack_require__(26083); + module.exports = function RegExpCreate(P, F) { + var pattern = void 0 === P ? '' : ToString(P), + flags = void 0 === F ? '' : ToString(F); + return new $RegExp(pattern, flags); + }; + }, + 32409: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + regexExec = __webpack_require__(62680)('RegExp.prototype.exec'), + Call = __webpack_require__(92390), + Get = __webpack_require__(56219), + IsCallable = __webpack_require__(38067), + Type = __webpack_require__(62442); + module.exports = function RegExpExec(R, S) { + if ('Object' !== Type(R)) throw new $TypeError('Assertion failed: `R` must be an Object'); + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + var exec = Get(R, 'exec'); + if (IsCallable(exec)) { + var result = Call(exec, R, [S]); + if (null === result || 'Object' === Type(result)) return result; + throw new $TypeError('"exec" method must return `null` or an Object'); + } + return regexExec(R, S); + }; + }, + 63762: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(17497); + }, + 3062: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValue(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); + }; + }, + 1550: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + SameValue = __webpack_require__(3062); + module.exports = function SameValueNonNumber(x, y) { + if ('number' == typeof x || typeof x != typeof y) + throw new $TypeError('SameValueNonNumber requires two non-number values of the same type.'); + return SameValue(x, y); + }; + }, + 82557: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValueZero(x, y) { + return x === y || ($isNaN(x) && $isNaN(y)); + }; + }, + 31408: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + timeConstants = __webpack_require__(2744), + msPerSecond = timeConstants.msPerSecond, + SecondsPerMinute = timeConstants.SecondsPerMinute; + module.exports = function SecFromTime(t) { + return modulo(floor(t / msPerSecond), SecondsPerMinute); + }; + }, + 90538: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + Type = __webpack_require__(62442), + noThrowOnStrictViolation = (function () { + try { + return delete [].length, !0; + } catch (e) { + return !1; + } + })(); + module.exports = function Set(O, P, V, Throw) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + if ('Boolean' !== Type(Throw)) throw new $TypeError('Assertion failed: `Throw` must be a Boolean'); + if (Throw) { + if (((O[P] = V), noThrowOnStrictViolation && !SameValue(O[P], V))) + throw new $TypeError('Attempted to assign to readonly property.'); + return !0; + } + try { + return (O[P] = V), !noThrowOnStrictViolation || SameValue(O[P], V); + } catch (e) { + return !1; + } + }; + }, + 90926: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefinePropertyOrThrow = __webpack_require__(38885), + HasOwnProperty = __webpack_require__(65879), + IsExtensible = __webpack_require__(36071), + IsInteger = __webpack_require__(25805), + Type = __webpack_require__(62442); + module.exports = function SetFunctionLength(F, length) { + if ('function' != typeof F || !IsExtensible(F) || HasOwnProperty(F, 'length')) + throw new $TypeError( + 'Assertion failed: `F` must be an extensible function and lack an own `length` property', + ); + if ('Number' !== Type(length)) throw new $TypeError('Assertion failed: `length` must be a Number'); + if (length < 0 || !IsInteger(length)) + throw new $TypeError('Assertion failed: `length` must be an integer >= 0'); + return DefinePropertyOrThrow(F, 'length', { + '[[Configurable]]': !0, + '[[Enumerable]]': !1, + '[[Value]]': length, + '[[Writable]]': !1, + }); + }; + }, + 6922: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + has = __webpack_require__(23198), + $TypeError = GetIntrinsic('%TypeError%'), + getSymbolDescription = __webpack_require__(64012), + DefinePropertyOrThrow = __webpack_require__(38885), + IsExtensible = __webpack_require__(36071), + Type = __webpack_require__(62442); + module.exports = function SetFunctionName(F, name) { + if ('function' != typeof F) throw new $TypeError('Assertion failed: `F` must be a function'); + if (!IsExtensible(F) || has(F, 'name')) + throw new $TypeError('Assertion failed: `F` must be extensible, and must not have a `name` own property'); + var nameType = Type(name); + if ('Symbol' !== nameType && 'String' !== nameType) + throw new $TypeError('Assertion failed: `name` must be a Symbol or a String'); + if ('Symbol' === nameType) { + var description = getSymbolDescription(name); + name = void 0 === description ? '' : '[' + description + ']'; + } + if (arguments.length > 2) { + var prefix = arguments[2]; + name = prefix + ' ' + name; + } + return DefinePropertyOrThrow(F, 'name', { + '[[Value]]': name, + '[[Writable]]': !1, + '[[Enumerable]]': !1, + '[[Configurable]]': !0, + }); + }; + }, + 74323: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + $preventExtensions = GetIntrinsic('%Object.preventExtensions%'), + $gOPD = __webpack_require__(74486), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + forEach = __webpack_require__(23173), + DefinePropertyOrThrow = __webpack_require__(38885), + IsAccessorDescriptor = __webpack_require__(52275), + ToPropertyDescriptor = __webpack_require__(10482), + Type = __webpack_require__(62442); + module.exports = function SetIntegrityLevel(O, level) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('sealed' !== level && 'frozen' !== level) + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + if (!$preventExtensions) + throw new $SyntaxError('SetIntegrityLevel requires native `Object.preventExtensions` support'); + if (!$preventExtensions(O)) return !1; + if (!$gOPN) throw new $SyntaxError('SetIntegrityLevel requires native `Object.getOwnPropertyNames` support'); + var theKeys = $gOPN(O); + return ( + 'sealed' === level + ? forEach(theKeys, function (k) { + DefinePropertyOrThrow(O, k, { configurable: !1 }); + }) + : 'frozen' === level && + forEach(theKeys, function (k) { + var desc, + currentDesc = $gOPD(O, k); + void 0 !== currentDesc && + ((desc = IsAccessorDescriptor(ToPropertyDescriptor(currentDesc)) + ? { configurable: !1 } + : { configurable: !1, writable: !1 }), + DefinePropertyOrThrow(O, k, desc)); + }), + !0 + ); + }; + }, + 92980: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + IsConstructor = __webpack_require__(84608), + Type = __webpack_require__(62442); + module.exports = function SpeciesConstructor(O, defaultConstructor) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var C = O.constructor; + if (void 0 === C) return defaultConstructor; + if ('Object' !== Type(C)) throw new $TypeError('O.constructor is not an Object'); + var S = $species ? C[$species] : void 0; + if (null == S) return defaultConstructor; + if (IsConstructor(S)) return S; + throw new $TypeError('no constructor found'); + }; + }, + 616: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsInteger = __webpack_require__(25805), + Type = __webpack_require__(62442), + $charAt = callBound('String.prototype.charAt'); + module.exports = function SplitMatch(S, q, R) { + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + if (!IsInteger(q)) throw new $TypeError('Assertion failed: `q` must be an integer'); + if ('String' !== Type(R)) throw new $TypeError('Assertion failed: `R` must be a String'); + var r = R.length; + if (q + r > S.length) return !1; + for (var i = 0; i < r; i += 1) if ($charAt(S, q + i) !== $charAt(R, i)) return !1; + return q + r; + }; + }, + 99889: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Type = __webpack_require__(62442); + module.exports = function StrictEqualityComparison(x, y) { + var xType = Type(x); + return xType === Type(y) && ('Undefined' === xType || 'Null' === xType || x === y); + }; + }, + 1315: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Object = GetIntrinsic('%Object%'), + $StringPrototype = GetIntrinsic('%String.prototype%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + DefinePropertyOrThrow = __webpack_require__(38885), + Type = __webpack_require__(62442), + setProto = __webpack_require__(6361); + module.exports = function StringCreate(value, prototype) { + if ('String' !== Type(value)) throw new $TypeError('Assertion failed: `S` must be a String'); + var S = $Object(value); + if (S !== $StringPrototype) { + if (!setProto) + throw new $SyntaxError( + 'StringCreate: a `proto` argument that is not `String.prototype` is not supported in an environment that does not support setting the [[Prototype]]', + ); + setProto(S, prototype); + } + var length = value.length; + return ( + DefinePropertyOrThrow(S, 'length', { + '[[Configurable]]': !1, + '[[Enumerable]]': !1, + '[[Value]]': length, + '[[Writable]]': !1, + }), + S + ); + }; + }, + 33005: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + $charAt = callBound('String.prototype.charAt'), + $stringToString = callBound('String.prototype.toString'), + CanonicalNumericIndexString = __webpack_require__(68955), + IsInteger = __webpack_require__(25805), + IsPropertyKey = __webpack_require__(67357), + Type = __webpack_require__(62442), + isNegativeZero = __webpack_require__(66305); + module.exports = function StringGetOwnProperty(S, P) { + var str; + if ('Object' === Type(S)) + try { + str = $stringToString(S); + } catch (e) {} + if ('String' !== Type(str)) throw new $TypeError('Assertion failed: `S` must be a boxed string object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + if ('String' === Type(P)) { + var index = CanonicalNumericIndexString(P), + len = str.length; + if (!(void 0 === index || !IsInteger(index) || isNegativeZero(index) || index < 0 || len <= index)) + return { '[[Configurable]]': !1, '[[Enumerable]]': !0, '[[Value]]': $charAt(S, index), '[[Writable]]': !1 }; + } + }; + }, + 15360: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $SymbolToString = __webpack_require__(62680)('Symbol.prototype.toString', !0), + Type = __webpack_require__(62442); + module.exports = function SymbolDescriptiveString(sym) { + if ('Symbol' !== Type(sym)) throw new $TypeError('Assertion failed: `sym` must be a Symbol'); + return $SymbolToString(sym); + }; + }, + 3749: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%'), + $TypeError = GetIntrinsic('%TypeError%'), + every = __webpack_require__(37812), + IsDataDescriptor = __webpack_require__(47541), + IsExtensible = __webpack_require__(36071), + ToPropertyDescriptor = __webpack_require__(10482), + Type = __webpack_require__(62442); + module.exports = function TestIntegrityLevel(O, level) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if ('sealed' !== level && 'frozen' !== level) + throw new $TypeError('Assertion failed: `level` must be `"sealed"` or `"frozen"`'); + if (IsExtensible(O)) return !1; + var theKeys = $gOPN(O); + return ( + 0 === theKeys.length || + every(theKeys, function (k) { + var currentDesc = $gOPD(O, k); + if (void 0 !== currentDesc) { + if (currentDesc.configurable) return !1; + if ('frozen' === level && IsDataDescriptor(ToPropertyDescriptor(currentDesc)) && currentDesc.writable) + return !1; + } + return !0; + }) + ); + }; + }, + 29252: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Date = GetIntrinsic('%Date%'), + $Number = GetIntrinsic('%Number%'), + $isFinite = __webpack_require__(21726), + abs = __webpack_require__(49741), + ToNumber = __webpack_require__(929); + module.exports = function TimeClip(time) { + return !$isFinite(time) || abs(time) > 864e13 ? NaN : $Number(new $Date(ToNumber(time))); + }; + }, + 14116: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var msPerDay = __webpack_require__(2744).msPerDay, + DayFromYear = __webpack_require__(49090); + module.exports = function TimeFromYear(y) { + return msPerDay * DayFromYear(y); + }; + }, + 68314: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + $isNaN = __webpack_require__(92510), + padTimeComponent = __webpack_require__(45971), + HourFromTime = __webpack_require__(18757), + MinFromTime = __webpack_require__(5940), + SecFromTime = __webpack_require__(31408), + Type = __webpack_require__(62442); + module.exports = function TimeString(tv) { + if ('Number' !== Type(tv) || $isNaN(tv)) + throw new $TypeError('Assertion failed: `tv` must be a non-NaN Number'); + var hour = HourFromTime(tv), + minute = MinFromTime(tv), + second = SecFromTime(tv); + return padTimeComponent(hour) + ':' + padTimeComponent(minute) + ':' + padTimeComponent(second) + ' GMT'; + }; + }, + 76711: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(6121), + msPerDay = __webpack_require__(2744).msPerDay; + module.exports = function TimeWithinDay(t) { + return modulo(t, msPerDay); + }; + }, + 518: module => { + 'use strict'; + module.exports = function ToBoolean(value) { + return !!value; + }; + }, + 17864: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Date = GetIntrinsic('%Date%'), + $isNaN = __webpack_require__(92510), + Type = __webpack_require__(62442); + module.exports = function ToDateString(tv) { + if ('Number' !== Type(tv)) throw new $TypeError('Assertion failed: `tv` must be a Number'); + return $isNaN(tv) ? 'Invalid Date' : $Date(tv); + }; + }, + 29960: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $RangeError = __webpack_require__(67286)('%RangeError%'), + ToInteger = __webpack_require__(32508), + ToLength = __webpack_require__(63269), + SameValueZero = __webpack_require__(82557); + module.exports = function ToIndex(value) { + if (void 0 === value) return 0; + var integerIndex = ToInteger(value); + if (integerIndex < 0) throw new $RangeError('index must be >= 0'); + var index = ToLength(integerIndex); + if (!SameValueZero(integerIndex, index)) throw new $RangeError('index must be >= 0 and < 2 ** 53 - 1'); + return index; + }; + }, + 21451: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToUint16 = __webpack_require__(26268); + module.exports = function ToInt16(argument) { + var int16bit = ToUint16(argument); + return int16bit >= 32768 ? int16bit - 65536 : int16bit; + }; + }, + 25482: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(929); + module.exports = function ToInt32(x) { + return ToNumber(x) >> 0; + }; + }, + 31923: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToUint8 = __webpack_require__(96777); + module.exports = function ToInt8(argument) { + var int8bit = ToUint8(argument); + return int8bit >= 128 ? int8bit - 256 : int8bit; + }; + }, + 32508: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5ToInteger = __webpack_require__(71469), + ToNumber = __webpack_require__(929); + module.exports = function ToInteger(value) { + var number = ToNumber(value); + return ES5ToInteger(number); + }; + }, + 63269: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var MAX_SAFE_INTEGER = __webpack_require__(33034), + ToInteger = __webpack_require__(32508); + module.exports = function ToLength(argument) { + var len = ToInteger(argument); + return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; + }; + }, + 929: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Number = GetIntrinsic('%Number%'), + $RegExp = GetIntrinsic('%RegExp%'), + $parseInteger = GetIntrinsic('%parseInt%'), + callBound = __webpack_require__(62680), + regexTester = __webpack_require__(80779), + isPrimitive = __webpack_require__(26607), + $strSlice = callBound('String.prototype.slice'), + isBinary = regexTester(/^0b[01]+$/i), + isOctal = regexTester(/^0o[0-7]+$/i), + isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i), + hasNonWS = regexTester(new $RegExp('[' + ['…', '​', '￾'].join('') + ']', 'g')), + ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), + trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), + $replace = callBound('String.prototype.replace'), + ToPrimitive = __webpack_require__(34296); + module.exports = function ToNumber(argument) { + var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if ('symbol' == typeof value) throw new $TypeError('Cannot convert a Symbol value to a number'); + if ('string' == typeof value) { + if (isBinary(value)) return ToNumber($parseInteger($strSlice(value, 2), 2)); + if (isOctal(value)) return ToNumber($parseInteger($strSlice(value, 2), 8)); + if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; + var trimmed = (function (value) { + return $replace(value, trimRegex, ''); + })(value); + if (trimmed !== value) return ToNumber(trimmed); + } + return $Number(value); + }; + }, + 9613: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + RequireObjectCoercible = __webpack_require__(63762); + module.exports = function ToObject(value) { + return RequireObjectCoercible(value), $Object(value); + }; + }, + 34296: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toPrimitive = __webpack_require__(5885); + module.exports = function ToPrimitive(input) { + return arguments.length > 1 ? toPrimitive(input, arguments[1]) : toPrimitive(input); + }; + }, + 10482: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(62442), + ToBoolean = __webpack_require__(518), + IsCallable = __webpack_require__(38067); + module.exports = function ToPropertyDescriptor(Obj) { + if ('Object' !== Type(Obj)) throw new $TypeError('ToPropertyDescriptor requires an object'); + var desc = {}; + if ( + (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable)), + has(Obj, 'configurable') && (desc['[[Configurable]]'] = ToBoolean(Obj.configurable)), + has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), + has(Obj, 'writable') && (desc['[[Writable]]'] = ToBoolean(Obj.writable)), + has(Obj, 'get')) + ) { + var getter = Obj.get; + if (void 0 !== getter && !IsCallable(getter)) throw new $TypeError('getter must be a function'); + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (void 0 !== setter && !IsCallable(setter)) throw new $TypeError('setter must be a function'); + desc['[[Set]]'] = setter; + } + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) + throw new $TypeError( + 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute', + ); + return desc; + }; + }, + 61242: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $String = __webpack_require__(67286)('%String%'), + ToPrimitive = __webpack_require__(34296), + ToString = __webpack_require__(26083); + module.exports = function ToPropertyKey(argument) { + var key = ToPrimitive(argument, $String); + return 'symbol' == typeof key ? key : ToString(key); + }; + }, + 26083: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $String = GetIntrinsic('%String%'), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function ToString(argument) { + if ('symbol' == typeof argument) throw new $TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); + }; + }, + 26268: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(49741), + floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + ToNumber = __webpack_require__(929), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + $sign = __webpack_require__(92547); + module.exports = function ToUint16(value) { + var number = ToNumber(value); + if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; + var posInt = $sign(number) * floor(abs(number)); + return modulo(posInt, 65536); + }; + }, + 20592: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(929); + module.exports = function ToUint32(x) { + return ToNumber(x) >>> 0; + }; + }, + 96777: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(929), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + $sign = __webpack_require__(92547), + abs = __webpack_require__(49741), + floor = __webpack_require__(47227), + modulo = __webpack_require__(6121); + module.exports = function ToUint8(argument) { + var number = ToNumber(argument); + if ($isNaN(number) || 0 === number || !$isFinite(number)) return 0; + var posInt = $sign(number) * floor(abs(number)); + return modulo(posInt, 256); + }; + }, + 24557: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToNumber = __webpack_require__(929), + floor = __webpack_require__(47227), + $isNaN = __webpack_require__(92510); + module.exports = function ToUint8Clamp(argument) { + var number = ToNumber(argument); + if ($isNaN(number) || number <= 0) return 0; + if (number >= 255) return 255; + var f = floor(argument); + return f + 0.5 < number ? f + 1 : number < f + 0.5 ? f : f % 2 != 0 ? f + 1 : f; + }; + }, + 62442: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5Type = __webpack_require__(62265); + module.exports = function Type(x) { + return 'symbol' == typeof x ? 'Symbol' : ES5Type(x); + }; + }, + 51460: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100); + module.exports = function UTF16Decode(lead, trail) { + if (!isLeadingSurrogate(lead) || !isTrailingSurrogate(trail)) + throw new $TypeError( + 'Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code', + ); + return $fromCharCode(lead) + $fromCharCode(trail); + }; + }, + 5531: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + floor = __webpack_require__(47227), + modulo = __webpack_require__(6121), + isCodePoint = __webpack_require__(19858); + module.exports = function UTF16Encoding(cp) { + if (!isCodePoint(cp)) throw new $TypeError('Assertion failed: `cp` must be >= 0 and <= 0x10FFFF'); + if (cp <= 65535) return $fromCharCode(cp); + var cu1 = floor((cp - 65536) / 1024) + 55296, + cu2 = modulo(cp - 65536, 1024) + 56320; + return $fromCharCode(cu1) + $fromCharCode(cu2); + }; + }, + 44989: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + $charCodeAt = callBound('String.prototype.charCodeAt'), + $numberToString = callBound('Number.prototype.toString'), + $toLowerCase = callBound('String.prototype.toLowerCase'), + $strSlice = callBound('String.prototype.slice'); + module.exports = function UnicodeEscape(C) { + if ('string' != typeof C || 1 !== C.length) + throw new $TypeError('Assertion failed: `C` must be a single code unit'); + var n = $charCodeAt(C, 0); + if (n > 65535) throw new $TypeError('`Assertion failed: numeric value of `C` must be <= 0xFFFF'); + return '\\u' + $strSlice('0000' + $toLowerCase($numberToString(n, 16)), -4); + }; + }, + 18734: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + isPropertyDescriptor = __webpack_require__(92594), + isSamePropertyDescriptor = __webpack_require__(4203), + FromPropertyDescriptor = __webpack_require__(72976), + IsAccessorDescriptor = __webpack_require__(52275), + IsDataDescriptor = __webpack_require__(47541), + IsGenericDescriptor = __webpack_require__(64170), + IsPropertyKey = __webpack_require__(67357), + SameValue = __webpack_require__(3062), + Type = __webpack_require__(62442); + module.exports = function ValidateAndApplyPropertyDescriptor(O, P, extensible, Desc, current) { + var oType = Type(O); + if ('Undefined' !== oType && 'Object' !== oType) + throw new $TypeError('Assertion failed: O must be undefined or an Object'); + if ('Boolean' !== Type(extensible)) throw new $TypeError('Assertion failed: extensible must be a Boolean'); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc must be a Property Descriptor'); + if ( + 'Undefined' !== Type(current) && + !isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, current) + ) + throw new $TypeError('Assertion failed: current must be a Property Descriptor, or undefined'); + if ('Undefined' !== oType && !IsPropertyKey(P)) + throw new $TypeError('Assertion failed: if O is not undefined, P must be a Property Key'); + if ('Undefined' === Type(current)) { + if (!extensible) return !1; + if (IsGenericDescriptor(Desc) || IsDataDescriptor(Desc)) + 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': Desc['[[Configurable]]'], + '[[Enumerable]]': Desc['[[Enumerable]]'], + '[[Value]]': Desc['[[Value]]'], + '[[Writable]]': Desc['[[Writable]]'], + }); + else { + if (!IsAccessorDescriptor(Desc)) + throw new $TypeError('Assertion failed: Desc is not an accessor descriptor'); + if ('Undefined' !== oType) + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + } + return !0; + } + if (IsGenericDescriptor(Desc) && !('[[Configurable]]' in Desc) && !('[[Enumerable]]' in Desc)) return !0; + if (isSamePropertyDescriptor({ SameValue }, Desc, current)) return !0; + if (!current['[[Configurable]]']) { + if (Desc['[[Configurable]]']) return !1; + if ('[[Enumerable]]' in Desc && !Desc['[[Enumerable]]'] == !!current['[[Enumerable]]']) return !1; + } + if (IsGenericDescriptor(Desc)); + else if (IsDataDescriptor(current) !== IsDataDescriptor(Desc)) { + if (!current['[[Configurable]]']) return !1; + IsDataDescriptor(current) + ? 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': current['[[Configurable]]'], + '[[Enumerable]]': current['[[Enumerable]]'], + '[[Get]]': void 0, + }) + : 'Undefined' !== oType && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': current['[[Configurable]]'], + '[[Enumerable]]': current['[[Enumerable]]'], + '[[Value]]': void 0, + }); + } else if (IsDataDescriptor(current) && IsDataDescriptor(Desc)) { + if (!current['[[Configurable]]'] && !current['[[Writable]]']) + return ( + (!('[[Writable]]' in Desc) || !Desc['[[Writable]]']) && + !('[[Value]]' in Desc && !SameValue(Desc['[[Value]]'], current['[[Value]]'])) + ); + } else { + if (!IsAccessorDescriptor(current) || !IsAccessorDescriptor(Desc)) + throw new $TypeError( + 'Assertion failed: current and Desc are not both data, both accessors, or one accessor and one data.', + ); + if (!current['[[Configurable]]']) + return ( + !('[[Set]]' in Desc && !SameValue(Desc['[[Set]]'], current['[[Set]]'])) && + !('[[Get]]' in Desc && !SameValue(Desc['[[Get]]'], current['[[Get]]'])) + ); + } + return ( + 'Undefined' === oType || DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc) + ); + }; + }, + 44458: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var Day = __webpack_require__(38830), + modulo = __webpack_require__(6121); + module.exports = function WeekDay(t) { + return modulo(Day(t) + 4, 7); + }; + }, + 47455: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Date = __webpack_require__(67286)('%Date%'), + $getUTCFullYear = __webpack_require__(62680)('Date.prototype.getUTCFullYear'); + module.exports = function YearFromTime(t) { + return $getUTCFullYear(new $Date(t)); + }; + }, + 49741: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $abs = __webpack_require__(67286)('%Math.abs%'); + module.exports = function abs(x) { + return $abs(x); + }; + }, + 47227: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function floor(x) { + return $floor(x); + }; + }, + 6121: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var mod = __webpack_require__(48493); + module.exports = function modulo(x, y) { + return mod(x, y); + }; + }, + 95820: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var modulo = __webpack_require__(6121), + msPerSecond = __webpack_require__(2744).msPerSecond; + module.exports = function msFromTime(t) { + return modulo(t, msPerSecond); + }; + }, + 56207: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $BooleanValueOf = __webpack_require__(62680)('Boolean.prototype.valueOf'), + Type = __webpack_require__(62442); + module.exports = function thisBooleanValue(value) { + return 'Boolean' === Type(value) ? value : $BooleanValueOf(value); + }; + }, + 27071: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var callBound = __webpack_require__(62680), + Type = __webpack_require__(62442), + $NumberValueOf = callBound('Number.prototype.valueOf'); + module.exports = function thisNumberValue(value) { + return 'Number' === Type(value) ? value : $NumberValueOf(value); + }; + }, + 1929: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $StringValueOf = __webpack_require__(62680)('String.prototype.valueOf'), + Type = __webpack_require__(62442); + module.exports = function thisStringValue(value) { + return 'String' === Type(value) ? value : $StringValueOf(value); + }; + }, + 2841: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $SymbolValueOf = __webpack_require__(62680)('Symbol.prototype.valueOf', !0), + Type = __webpack_require__(62442); + module.exports = function thisSymbolValue(value) { + if (!$SymbolValueOf) + throw new SyntaxError( + 'Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object', + ); + return 'Symbol' === Type(value) ? value : $SymbolValueOf(value); + }; + }, + 30076: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $DateValueOf = __webpack_require__(62680)('Date.prototype.valueOf'); + module.exports = function thisTimeValue(value) { + return $DateValueOf(value); + }; + }, + 80640: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Array = GetIntrinsic('%Array%'), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + Get = __webpack_require__(74487), + IsArray = __webpack_require__(29498), + IsConstructor = __webpack_require__(65926), + IsInteger = __webpack_require__(44921), + Type = __webpack_require__(99033); + module.exports = function ArraySpeciesCreate(originalArray, length) { + if (!IsInteger(length) || length < 0) throw new $TypeError('Assertion failed: length must be an integer >= 0'); + var C, + len = 0 === length ? 0 : length; + if ( + (IsArray(originalArray) && + ((C = Get(originalArray, 'constructor')), + $species && 'Object' === Type(C) && null === (C = Get(C, $species)) && (C = void 0)), + void 0 === C) + ) + return $Array(len); + if (!IsConstructor(C)) throw new $TypeError('C must be a constructor'); + return new C(len); + }; + }, + 77633: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsArray = __webpack_require__(29498), + $apply = GetIntrinsic('%Reflect.apply%', !0) || callBound('%Function.prototype.apply%'); + module.exports = function Call(F, V) { + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + return $apply(F, V, argumentsList); + }; + }, + 86791: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(97132), + OrdinaryGetOwnProperty = __webpack_require__(37622), + IsDataDescriptor = __webpack_require__(70019), + IsExtensible = __webpack_require__(35769), + IsPropertyKey = __webpack_require__(44114), + SameValue = __webpack_require__(92777), + Type = __webpack_require__(99033); + module.exports = function CreateDataProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var oldDesc = OrdinaryGetOwnProperty(O, P), + extensible = !oldDesc || IsExtensible(O); + return ( + !((oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]'])) || !extensible) && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Value]]': V, + '[[Writable]]': !0, + }) + ); + }; + }, + 19715: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + CreateDataProperty = __webpack_require__(86791), + IsPropertyKey = __webpack_require__(44114), + Type = __webpack_require__(99033); + module.exports = function CreateDataPropertyOrThrow(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = CreateDataProperty(O, P, V); + if (!success) throw new $TypeError('unable to create data property'); + return success; + }; + }, + 76535: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(97132), + IsAccessorDescriptor = __webpack_require__(86055), + IsDataDescriptor = __webpack_require__(70019), + IsPropertyKey = __webpack_require__(44114), + SameValue = __webpack_require__(92777), + ToPropertyDescriptor = __webpack_require__(58559), + Type = __webpack_require__(99033); + module.exports = function DefinePropertyOrThrow(O, P, desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var Desc = isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, desc) + ? desc + : ToPropertyDescriptor(desc); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + }; + }, + 1153: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + MAX_SAFE_INTEGER = __webpack_require__(33034), + Call = __webpack_require__(77633), + CreateDataPropertyOrThrow = __webpack_require__(19715), + Get = __webpack_require__(74487), + HasProperty = __webpack_require__(83433), + IsArray = __webpack_require__(29498), + ToLength = __webpack_require__(10763), + ToString = __webpack_require__(61225); + module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { + var mapperFunction; + arguments.length > 5 && (mapperFunction = arguments[5]); + for (var targetIndex = start, sourceIndex = 0; sourceIndex < sourceLen; ) { + var P = ToString(sourceIndex), + exists = HasProperty(source, P); + if (!0 === exists) { + var element = Get(source, P); + if (void 0 !== mapperFunction) { + if (arguments.length <= 6) + throw new $TypeError('Assertion failed: thisArg is required when mapperFunction is provided'); + element = Call(mapperFunction, arguments[6], [element, sourceIndex, source]); + } + var shouldFlatten = !1; + if ((depth > 0 && (shouldFlatten = IsArray(element)), shouldFlatten)) { + var elementLen = ToLength(Get(element, 'length')); + targetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1); + } else { + if (targetIndex >= MAX_SAFE_INTEGER) throw new $TypeError('index too large'); + CreateDataPropertyOrThrow(target, ToString(targetIndex), element), (targetIndex += 1); + } + } + sourceIndex += 1; + } + return targetIndex; + }; + }, + 97132: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + Type = __webpack_require__(99033); + module.exports = function FromPropertyDescriptor(Desc) { + if (void 0 === Desc) return Desc; + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + var obj = {}; + return ( + '[[Value]]' in Desc && (obj.value = Desc['[[Value]]']), + '[[Writable]]' in Desc && (obj.writable = Desc['[[Writable]]']), + '[[Get]]' in Desc && (obj.get = Desc['[[Get]]']), + '[[Set]]' in Desc && (obj.set = Desc['[[Set]]']), + '[[Enumerable]]' in Desc && (obj.enumerable = Desc['[[Enumerable]]']), + '[[Configurable]]' in Desc && (obj.configurable = Desc['[[Configurable]]']), + obj + ); + }; + }, + 74487: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + inspect = __webpack_require__(99500), + IsPropertyKey = __webpack_require__(44114), + Type = __webpack_require__(99033); + module.exports = function Get(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + return O[P]; + }; + }, + 83433: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(44114), + Type = __webpack_require__(99033); + module.exports = function HasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return P in O; + }; + }, + 86055: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(99033); + module.exports = function IsAccessorDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]'))) + ); + }; + }, + 29498: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Array = __webpack_require__(67286)('%Array%'), + toStr = !$Array.isArray && __webpack_require__(62680)('Object.prototype.toString'); + module.exports = + $Array.isArray || + function IsArray(argument) { + return '[object Array]' === toStr(argument); + }; + }, + 11256: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(9680); + }, + 65926: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $construct = __webpack_require__(85945)('%Reflect.construct%', !0), + DefinePropertyOrThrow = __webpack_require__(76535); + try { + DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); + } catch (e) { + DefinePropertyOrThrow = null; + } + if (DefinePropertyOrThrow && $construct) { + var isConstructorMarker = {}, + badArrayLike = {}; + DefinePropertyOrThrow(badArrayLike, 'length', { + '[[Get]]': function () { + throw isConstructorMarker; + }, + '[[Enumerable]]': !0, + }), + (module.exports = function IsConstructor(argument) { + try { + $construct(argument, badArrayLike); + } catch (err) { + return err === isConstructorMarker; + } + }); + } else + module.exports = function IsConstructor(argument) { + return 'function' == typeof argument && !!argument.prototype; + }; + }, + 70019: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(99033); + module.exports = function IsDataDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]'))) + ); + }; + }, + 35769: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + isPrimitive = __webpack_require__(26607), + $preventExtensions = $Object.preventExtensions, + $isExtensible = $Object.isExtensible; + module.exports = $preventExtensions + ? function IsExtensible(obj) { + return !isPrimitive(obj) && $isExtensible(obj); + } + : function IsExtensible(obj) { + return !isPrimitive(obj); + }; + }, + 44921: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(45107), + floor = __webpack_require__(27476), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726); + module.exports = function IsInteger(argument) { + if ('number' != typeof argument || $isNaN(argument) || !$isFinite(argument)) return !1; + var absValue = abs(argument); + return floor(absValue) === absValue; + }; + }, + 44114: module => { + 'use strict'; + module.exports = function IsPropertyKey(argument) { + return 'string' == typeof argument || 'symbol' == typeof argument; + }; + }, + 32912: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $match = __webpack_require__(67286)('%Symbol.match%', !0), + hasRegExpMatcher = __webpack_require__(58786), + ToBoolean = __webpack_require__(97480); + module.exports = function IsRegExp(argument) { + if (!argument || 'object' != typeof argument) return !1; + if ($match) { + var isRegExp = argument[$match]; + if (void 0 !== isRegExp) return ToBoolean(isRegExp); + } + return hasRegExpMatcher(argument); + }; + }, + 37622: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $TypeError = GetIntrinsic('%TypeError%'), + $isEnumerable = __webpack_require__(62680)('Object.prototype.propertyIsEnumerable'), + has = __webpack_require__(23198), + IsArray = __webpack_require__(29498), + IsPropertyKey = __webpack_require__(44114), + IsRegExp = __webpack_require__(32912), + ToPropertyDescriptor = __webpack_require__(58559), + Type = __webpack_require__(99033); + module.exports = function OrdinaryGetOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (has(O, P)) { + if (!$gOPD) { + var arrayLength = IsArray(O) && 'length' === P, + regexLastIndex = IsRegExp(O) && 'lastIndex' === P; + return { + '[[Configurable]]': !(arrayLength || regexLastIndex), + '[[Enumerable]]': $isEnumerable(O, P), + '[[Value]]': O[P], + '[[Writable]]': !0, + }; + } + return ToPropertyDescriptor($gOPD(O, P)); + } + }; + }, + 55003: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(17497); + }, + 92777: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValue(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); + }; + }, + 97480: module => { + 'use strict'; + module.exports = function ToBoolean(value) { + return !!value; + }; + }, + 97718: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5ToInteger = __webpack_require__(71469), + ToNumber = __webpack_require__(90292); + module.exports = function ToInteger(value) { + var number = ToNumber(value); + return ES5ToInteger(number); + }; + }, + 10763: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var MAX_SAFE_INTEGER = __webpack_require__(33034), + ToInteger = __webpack_require__(97718); + module.exports = function ToLength(argument) { + var len = ToInteger(argument); + return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; + }; + }, + 90292: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Number = GetIntrinsic('%Number%'), + $RegExp = GetIntrinsic('%RegExp%'), + $parseInteger = GetIntrinsic('%parseInt%'), + callBound = __webpack_require__(62680), + regexTester = __webpack_require__(80779), + isPrimitive = __webpack_require__(26607), + $strSlice = callBound('String.prototype.slice'), + isBinary = regexTester(/^0b[01]+$/i), + isOctal = regexTester(/^0o[0-7]+$/i), + isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i), + hasNonWS = regexTester(new $RegExp('[' + ['…', '​', '￾'].join('') + ']', 'g')), + ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), + trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), + $replace = callBound('String.prototype.replace'), + ToPrimitive = __webpack_require__(77850); + module.exports = function ToNumber(argument) { + var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if ('symbol' == typeof value) throw new $TypeError('Cannot convert a Symbol value to a number'); + if ('string' == typeof value) { + if (isBinary(value)) return ToNumber($parseInteger($strSlice(value, 2), 2)); + if (isOctal(value)) return ToNumber($parseInteger($strSlice(value, 2), 8)); + if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; + var trimmed = (function (value) { + return $replace(value, trimRegex, ''); + })(value); + if (trimmed !== value) return ToNumber(trimmed); + } + return $Number(value); + }; + }, + 44208: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + RequireObjectCoercible = __webpack_require__(55003); + module.exports = function ToObject(value) { + return RequireObjectCoercible(value), $Object(value); + }; + }, + 77850: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toPrimitive = __webpack_require__(5885); + module.exports = function ToPrimitive(input) { + return arguments.length > 1 ? toPrimitive(input, arguments[1]) : toPrimitive(input); + }; + }, + 58559: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(99033), + ToBoolean = __webpack_require__(97480), + IsCallable = __webpack_require__(11256); + module.exports = function ToPropertyDescriptor(Obj) { + if ('Object' !== Type(Obj)) throw new $TypeError('ToPropertyDescriptor requires an object'); + var desc = {}; + if ( + (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable)), + has(Obj, 'configurable') && (desc['[[Configurable]]'] = ToBoolean(Obj.configurable)), + has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), + has(Obj, 'writable') && (desc['[[Writable]]'] = ToBoolean(Obj.writable)), + has(Obj, 'get')) + ) { + var getter = Obj.get; + if (void 0 !== getter && !IsCallable(getter)) throw new $TypeError('getter must be a function'); + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (void 0 !== setter && !IsCallable(setter)) throw new $TypeError('setter must be a function'); + desc['[[Set]]'] = setter; + } + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) + throw new $TypeError( + 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute', + ); + return desc; + }; + }, + 61225: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $String = GetIntrinsic('%String%'), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function ToString(argument) { + if ('symbol' == typeof argument) throw new $TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); + }; + }, + 99033: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5Type = __webpack_require__(62265); + module.exports = function Type(x) { + return 'symbol' == typeof x ? 'Symbol' : ES5Type(x); + }; + }, + 45107: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $abs = __webpack_require__(67286)('%Math.abs%'); + module.exports = function abs(x) { + return $abs(x); + }; + }, + 27476: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function floor(x) { + return $floor(x); + }; + }, + 39033: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Array = __webpack_require__(67286)('%Array%'), + toStr = !$Array.isArray && __webpack_require__(62680)('Object.prototype.toString'); + module.exports = + $Array.isArray || + function IsArray(argument) { + return '[object Array]' === toStr(argument); + }; + }, + 97013: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var inspect = __webpack_require__(99500), + $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(81862), + Get = __webpack_require__(8408), + GetIterator = __webpack_require__(37888), + IsCallable = __webpack_require__(7965), + IteratorClose = __webpack_require__(74807), + IteratorStep = __webpack_require__(53334), + IteratorValue = __webpack_require__(1624), + Type = __webpack_require__(43462); + module.exports = function AddEntriesFromIterable(target, iterable, adder) { + if (!IsCallable(adder)) throw new $TypeError('Assertion failed: `adder` is not callable'); + if (null == iterable) throw new $TypeError('Assertion failed: `iterable` is present, and not nullish'); + for (var iteratorRecord = GetIterator(iterable); ; ) { + var next = IteratorStep(iteratorRecord); + if (!next) return target; + var nextItem = IteratorValue(next); + if ('Object' !== Type(nextItem)) { + var error = new $TypeError('iterator next must return an Object, got ' + inspect(nextItem)); + return IteratorClose(iteratorRecord, function () { + throw error; + }); + } + try { + var k = Get(nextItem, '0'), + v = Get(nextItem, '1'); + Call(adder, target, [k, v]); + } catch (e) { + return IteratorClose(iteratorRecord, function () { + throw e; + }); + } + } + }; + }, + 87479: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + CodePointAt = __webpack_require__(7587), + IsIntegralNumber = __webpack_require__(82520), + Type = __webpack_require__(43462), + MAX_SAFE_INTEGER = __webpack_require__(33034), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function AdvanceStringIndex(S, index, unicode) { + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + if (!IsIntegralNumber(index) || index < 0 || index > MAX_SAFE_INTEGER) + throw new $TypeError('Assertion failed: `length` must be an integer >= 0 and <= 2**53'); + if ('Boolean' !== Type(unicode)) throw new $TypeError('Assertion failed: `unicode` must be a Boolean'); + return unicode + ? index + 1 >= S.length + ? index + 1 + : index + CodePointAt(S, index)['[[CodeUnitCount]]'] + : index + 1; + }; + }, + 44417: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ArrayPrototype = GetIntrinsic('%Array.prototype%'), + $RangeError = GetIntrinsic('%RangeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + $TypeError = GetIntrinsic('%TypeError%'), + IsIntegralNumber = __webpack_require__(82520), + MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, + $setProto = + GetIntrinsic('%Object.setPrototypeOf%', !0) || + ([].__proto__ !== $ArrayPrototype + ? null + : function (O, proto) { + return (O.__proto__ = proto), O; + }); + module.exports = function ArrayCreate(length) { + if (!IsIntegralNumber(length) || length < 0) + throw new $TypeError('Assertion failed: `length` must be an integer Number >= 0'); + if (length > MAX_ARRAY_LENGTH) throw new $RangeError('length is greater than (2**32 - 1)'); + var proto = arguments.length > 1 ? arguments[1] : $ArrayPrototype, + A = []; + if (proto !== $ArrayPrototype) { + if (!$setProto) + throw new $SyntaxError( + 'ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]', + ); + $setProto(A, proto); + } + return 0 !== length && (A.length = length), A; + }; + }, + 4143: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + ArrayCreate = __webpack_require__(44417), + Get = __webpack_require__(8408), + IsArray = __webpack_require__(21752), + IsConstructor = __webpack_require__(64284), + IsIntegralNumber = __webpack_require__(82520), + Type = __webpack_require__(43462); + module.exports = function ArraySpeciesCreate(originalArray, length) { + if (!IsIntegralNumber(length) || length < 0) + throw new $TypeError('Assertion failed: length must be an integer >= 0'); + if (!IsArray(originalArray)) return ArrayCreate(length); + var C = Get(originalArray, 'constructor'); + if (($species && 'Object' === Type(C) && null === (C = Get(C, $species)) && (C = void 0), void 0 === C)) + return ArrayCreate(length); + if (!IsConstructor(C)) throw new $TypeError('C must be a constructor'); + return new C(length); + }; + }, + 81862: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $TypeError = GetIntrinsic('%TypeError%'), + IsArray = __webpack_require__(21752), + $apply = GetIntrinsic('%Reflect.apply%', !0) || callBound('%Function.prototype.apply%'); + module.exports = function Call(F, V) { + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + return $apply(F, V, argumentsList); + }; + }, + 7587: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + callBound = __webpack_require__(62680), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100), + Type = __webpack_require__(43462), + UTF16SurrogatePairToCodePoint = __webpack_require__(47667), + $charAt = callBound('String.prototype.charAt'), + $charCodeAt = callBound('String.prototype.charCodeAt'); + module.exports = function CodePointAt(string, position) { + if ('String' !== Type(string)) throw new $TypeError('Assertion failed: `string` must be a String'); + var size = string.length; + if (position < 0 || position >= size) + throw new $TypeError('Assertion failed: `position` must be >= 0, and < the length of `string`'); + var first = $charCodeAt(string, position), + cp = $charAt(string, position), + firstIsLeading = isLeadingSurrogate(first), + firstIsTrailing = isTrailingSurrogate(first); + if (!firstIsLeading && !firstIsTrailing) + return { '[[CodePoint]]': cp, '[[CodeUnitCount]]': 1, '[[IsUnpairedSurrogate]]': !1 }; + if (firstIsTrailing || position + 1 === size) + return { '[[CodePoint]]': cp, '[[CodeUnitCount]]': 1, '[[IsUnpairedSurrogate]]': !0 }; + var second = $charCodeAt(string, position + 1); + return isTrailingSurrogate(second) + ? { + '[[CodePoint]]': UTF16SurrogatePairToCodePoint(first, second), + '[[CodeUnitCount]]': 2, + '[[IsUnpairedSurrogate]]': !1, + } + : { '[[CodePoint]]': cp, '[[CodeUnitCount]]': 1, '[[IsUnpairedSurrogate]]': !0 }; + }; + }, + 25170: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(13868), + OrdinaryGetOwnProperty = __webpack_require__(83147), + IsDataDescriptor = __webpack_require__(85127), + IsExtensible = __webpack_require__(64183), + IsPropertyKey = __webpack_require__(99718), + SameValue = __webpack_require__(64829), + Type = __webpack_require__(43462); + module.exports = function CreateDataProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var oldDesc = OrdinaryGetOwnProperty(O, P), + extensible = !oldDesc || IsExtensible(O); + return ( + !((oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]'])) || !extensible) && + DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Value]]': V, + '[[Writable]]': !0, + }) + ); + }; + }, + 23412: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + CreateDataProperty = __webpack_require__(25170), + IsPropertyKey = __webpack_require__(99718), + Type = __webpack_require__(43462); + module.exports = function CreateDataPropertyOrThrow(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var success = CreateDataProperty(O, P, V); + if (!success) throw new $TypeError('unable to create data property'); + return success; + }; + }, + 57402: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(43462); + module.exports = function CreateIterResultObject(value, done) { + if ('Boolean' !== Type(done)) throw new $TypeError('Assertion failed: Type(done) is not Boolean'); + return { value, done }; + }; + }, + 32724: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(13868), + IsDataDescriptor = __webpack_require__(85127), + IsPropertyKey = __webpack_require__(99718), + SameValue = __webpack_require__(64829), + Type = __webpack_require__(43462); + module.exports = function CreateMethodProperty(O, P, V) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, { + '[[Configurable]]': !0, + '[[Enumerable]]': !1, + '[[Value]]': V, + '[[Writable]]': !0, + }); + }; + }, + 91751: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + hasSymbols = __webpack_require__(58811)(), + $TypeError = GetIntrinsic('%TypeError%'), + IteratorPrototype = GetIntrinsic('%IteratorPrototype%', !0), + $defineProperty = GetIntrinsic('%Object.defineProperty%', !0), + AdvanceStringIndex = __webpack_require__(87479), + CreateIterResultObject = __webpack_require__(57402), + CreateMethodProperty = __webpack_require__(32724), + Get = __webpack_require__(8408), + OrdinaryObjectCreate = __webpack_require__(58468), + RegExpExec = __webpack_require__(47591), + Set = __webpack_require__(8020), + ToLength = __webpack_require__(60012), + ToString = __webpack_require__(22051), + Type = __webpack_require__(43462), + SLOT = __webpack_require__(39979), + RegExpStringIterator = function RegExpStringIterator(R, S, global, fullUnicode) { + if ('String' !== Type(S)) throw new $TypeError('`S` must be a string'); + if ('Boolean' !== Type(global)) throw new $TypeError('`global` must be a boolean'); + if ('Boolean' !== Type(fullUnicode)) throw new $TypeError('`fullUnicode` must be a boolean'); + SLOT.set(this, '[[IteratingRegExp]]', R), + SLOT.set(this, '[[IteratedString]]', S), + SLOT.set(this, '[[Global]]', global), + SLOT.set(this, '[[Unicode]]', fullUnicode), + SLOT.set(this, '[[Done]]', !1); + }; + IteratorPrototype && (RegExpStringIterator.prototype = OrdinaryObjectCreate(IteratorPrototype)); + if ( + (CreateMethodProperty(RegExpStringIterator.prototype, 'next', function next() { + var O = this; + if ('Object' !== Type(O)) throw new $TypeError('receiver must be an object'); + if ( + !( + O instanceof RegExpStringIterator && + SLOT.has(O, '[[IteratingRegExp]]') && + SLOT.has(O, '[[IteratedString]]') && + SLOT.has(O, '[[Global]]') && + SLOT.has(O, '[[Unicode]]') && + SLOT.has(O, '[[Done]]') + ) + ) + throw new $TypeError('"this" value must be a RegExpStringIterator instance'); + if (SLOT.get(O, '[[Done]]')) return CreateIterResultObject(void 0, !0); + var R = SLOT.get(O, '[[IteratingRegExp]]'), + S = SLOT.get(O, '[[IteratedString]]'), + global = SLOT.get(O, '[[Global]]'), + fullUnicode = SLOT.get(O, '[[Unicode]]'), + match = RegExpExec(R, S); + if (null === match) return SLOT.set(O, '[[Done]]', !0), CreateIterResultObject(void 0, !0); + if (global) { + if ('' === ToString(Get(match, '0'))) { + var thisIndex = ToLength(Get(R, 'lastIndex')), + nextIndex = AdvanceStringIndex(S, thisIndex, fullUnicode); + Set(R, 'lastIndex', nextIndex, !0); + } + return CreateIterResultObject(match, !1); + } + return SLOT.set(O, '[[Done]]', !0), CreateIterResultObject(match, !1); + }), + hasSymbols && + (Symbol.toStringTag && + ($defineProperty + ? $defineProperty(RegExpStringIterator.prototype, Symbol.toStringTag, { + configurable: !0, + enumerable: !1, + value: 'RegExp String Iterator', + writable: !1, + }) + : (RegExpStringIterator.prototype[Symbol.toStringTag] = 'RegExp String Iterator')), + Symbol.iterator && 'function' != typeof RegExpStringIterator.prototype[Symbol.iterator])) + ) { + CreateMethodProperty(RegExpStringIterator.prototype, Symbol.iterator, function SymbolIterator() { + return this; + }); + } + module.exports = function CreateRegExpStringIterator(R, S, global, fullUnicode) { + return new RegExpStringIterator(R, S, global, fullUnicode); + }; + }, + 61392: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + isPropertyDescriptor = __webpack_require__(92594), + DefineOwnProperty = __webpack_require__(9046), + FromPropertyDescriptor = __webpack_require__(13868), + IsAccessorDescriptor = __webpack_require__(84631), + IsDataDescriptor = __webpack_require__(85127), + IsPropertyKey = __webpack_require__(99718), + SameValue = __webpack_require__(64829), + ToPropertyDescriptor = __webpack_require__(33066), + Type = __webpack_require__(43462); + module.exports = function DefinePropertyOrThrow(O, P, desc) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var Desc = isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, desc) + ? desc + : ToPropertyDescriptor(desc); + if (!isPropertyDescriptor({ Type, IsDataDescriptor, IsAccessorDescriptor }, Desc)) + throw new $TypeError('Assertion failed: Desc is not a valid Property Descriptor'); + return DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, Desc); + }; + }, + 66790: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + MAX_SAFE_INTEGER = __webpack_require__(33034), + Call = __webpack_require__(81862), + CreateDataPropertyOrThrow = __webpack_require__(23412), + Get = __webpack_require__(8408), + HasProperty = __webpack_require__(93620), + IsArray = __webpack_require__(21752), + LengthOfArrayLike = __webpack_require__(38277), + ToString = __webpack_require__(22051); + module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { + var mapperFunction; + arguments.length > 5 && (mapperFunction = arguments[5]); + for (var targetIndex = start, sourceIndex = 0; sourceIndex < sourceLen; ) { + var P = ToString(sourceIndex), + exists = HasProperty(source, P); + if (!0 === exists) { + var element = Get(source, P); + if (void 0 !== mapperFunction) { + if (arguments.length <= 6) + throw new $TypeError('Assertion failed: thisArg is required when mapperFunction is provided'); + element = Call(mapperFunction, arguments[6], [element, sourceIndex, source]); + } + var shouldFlatten = !1; + if ((depth > 0 && (shouldFlatten = IsArray(element)), shouldFlatten)) { + var elementLen = LengthOfArrayLike(element); + targetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1); + } else { + if (targetIndex >= MAX_SAFE_INTEGER) throw new $TypeError('index too large'); + CreateDataPropertyOrThrow(target, ToString(targetIndex), element), (targetIndex += 1); + } + } + sourceIndex += 1; + } + return targetIndex; + }; + }, + 13868: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var assertRecord = __webpack_require__(79719), + Type = __webpack_require__(43462); + module.exports = function FromPropertyDescriptor(Desc) { + if (void 0 === Desc) return Desc; + assertRecord(Type, 'Property Descriptor', 'Desc', Desc); + var obj = {}; + return ( + '[[Value]]' in Desc && (obj.value = Desc['[[Value]]']), + '[[Writable]]' in Desc && (obj.writable = Desc['[[Writable]]']), + '[[Get]]' in Desc && (obj.get = Desc['[[Get]]']), + '[[Set]]' in Desc && (obj.set = Desc['[[Set]]']), + '[[Enumerable]]' in Desc && (obj.enumerable = Desc['[[Enumerable]]']), + '[[Configurable]]' in Desc && (obj.configurable = Desc['[[Configurable]]']), + obj + ); + }; + }, + 8408: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + inspect = __webpack_require__(99500), + IsPropertyKey = __webpack_require__(99718), + Type = __webpack_require__(43462); + module.exports = function Get(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + if (!IsPropertyKey(P)) + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + return O[P]; + }; + }, + 37888: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $asyncIterator = GetIntrinsic('%Symbol.asyncIterator%', !0), + inspect = __webpack_require__(99500), + hasSymbols = __webpack_require__(58811)(), + getIteratorMethod = __webpack_require__(55412), + AdvanceStringIndex = __webpack_require__(87479), + Call = __webpack_require__(81862), + GetMethod = __webpack_require__(70557), + IsArray = __webpack_require__(21752), + Type = __webpack_require__(43462); + module.exports = function GetIterator(obj, hint, method) { + var actualHint = hint; + if ((arguments.length < 2 && (actualHint = 'sync'), 'sync' !== actualHint && 'async' !== actualHint)) + throw new $TypeError("Assertion failed: `hint` must be one of 'sync' or 'async', got " + inspect(hint)); + var actualMethod = method; + if (arguments.length < 3) + if ('async' === actualHint) { + if ( + (hasSymbols && $asyncIterator && (actualMethod = GetMethod(obj, $asyncIterator)), void 0 === actualMethod) + ) + throw new $TypeError("async from sync iterators aren't currently supported"); + } else actualMethod = getIteratorMethod({ AdvanceStringIndex, GetMethod, IsArray, Type }, obj); + var iterator = Call(actualMethod, obj); + if ('Object' !== Type(iterator)) throw new $TypeError('iterator must return an object'); + return iterator; + }; + }, + 70557: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + GetV = __webpack_require__(69779), + IsCallable = __webpack_require__(7965), + IsPropertyKey = __webpack_require__(99718); + module.exports = function GetMethod(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + var func = GetV(O, P); + if (null != func) { + if (!IsCallable(func)) throw new $TypeError(P + 'is not a function'); + return func; + } + }; + }, + 69779: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(99718), + ToObject = __webpack_require__(82151); + module.exports = function GetV(V, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true'); + return ToObject(V)[P]; + }; + }, + 93620: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(99718), + Type = __webpack_require__(43462); + module.exports = function HasProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + return P in O; + }; + }, + 3538: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(81862), + IsArray = __webpack_require__(21752), + GetV = __webpack_require__(69779), + IsPropertyKey = __webpack_require__(99718); + module.exports = function Invoke(O, P) { + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + var argumentsList = arguments.length > 2 ? arguments[2] : []; + if (!IsArray(argumentsList)) + throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); + var func = GetV(O, P); + return Call(func, O, argumentsList); + }; + }, + 84631: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(43462); + module.exports = function IsAccessorDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), !(!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]'))) + ); + }; + }, + 21752: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Array = __webpack_require__(67286)('%Array%'), + toStr = !$Array.isArray && __webpack_require__(62680)('Object.prototype.toString'); + module.exports = + $Array.isArray || + function IsArray(argument) { + return '[object Array]' === toStr(argument); + }; + }, + 7965: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(9680); + }, + 64284: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $construct = __webpack_require__(85945)('%Reflect.construct%', !0), + DefinePropertyOrThrow = __webpack_require__(61392); + try { + DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); + } catch (e) { + DefinePropertyOrThrow = null; + } + if (DefinePropertyOrThrow && $construct) { + var isConstructorMarker = {}, + badArrayLike = {}; + DefinePropertyOrThrow(badArrayLike, 'length', { + '[[Get]]': function () { + throw isConstructorMarker; + }, + '[[Enumerable]]': !0, + }), + (module.exports = function IsConstructor(argument) { + try { + $construct(argument, badArrayLike); + } catch (err) { + return err === isConstructorMarker; + } + }); + } else + module.exports = function IsConstructor(argument) { + return 'function' == typeof argument && !!argument.prototype; + }; + }, + 85127: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + assertRecord = __webpack_require__(79719), + Type = __webpack_require__(43462); + module.exports = function IsDataDescriptor(Desc) { + return ( + void 0 !== Desc && + (assertRecord(Type, 'Property Descriptor', 'Desc', Desc), + !(!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]'))) + ); + }; + }, + 64183: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + isPrimitive = __webpack_require__(26607), + $preventExtensions = $Object.preventExtensions, + $isExtensible = $Object.isExtensible; + module.exports = $preventExtensions + ? function IsExtensible(obj) { + return !isPrimitive(obj) && $isExtensible(obj); + } + : function IsExtensible(obj) { + return !isPrimitive(obj); + }; + }, + 82520: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(34624), + floor = __webpack_require__(25684), + Type = __webpack_require__(43462), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726); + module.exports = function IsIntegralNumber(argument) { + if ('Number' !== Type(argument) || $isNaN(argument) || !$isFinite(argument)) return !1; + var absValue = abs(argument); + return floor(absValue) === absValue; + }; + }, + 99718: module => { + 'use strict'; + module.exports = function IsPropertyKey(argument) { + return 'string' == typeof argument || 'symbol' == typeof argument; + }; + }, + 324: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $match = __webpack_require__(67286)('%Symbol.match%', !0), + hasRegExpMatcher = __webpack_require__(58786), + ToBoolean = __webpack_require__(15871); + module.exports = function IsRegExp(argument) { + if (!argument || 'object' != typeof argument) return !1; + if ($match) { + var isRegExp = argument[$match]; + if (void 0 !== isRegExp) return ToBoolean(isRegExp); + } + return hasRegExpMatcher(argument); + }; + }, + 74807: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Call = __webpack_require__(81862), + GetMethod = __webpack_require__(70557), + IsCallable = __webpack_require__(7965), + Type = __webpack_require__(43462); + module.exports = function IteratorClose(iterator, completion) { + if ('Object' !== Type(iterator)) throw new $TypeError('Assertion failed: Type(iterator) is not Object'); + if (!IsCallable(completion)) + throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record'); + var completionRecord, + completionThunk = completion, + iteratorReturn = GetMethod(iterator, 'return'); + if (void 0 === iteratorReturn) return completionThunk(); + try { + var innerResult = Call(iteratorReturn, iterator, []); + } catch (e) { + throw (completionThunk(), (completionThunk = null), e); + } + if (((completionRecord = completionThunk()), (completionThunk = null), 'Object' !== Type(innerResult))) + throw new $TypeError('iterator .return must return an object'); + return completionRecord; + }; + }, + 71965: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(8408), + ToBoolean = __webpack_require__(15871), + Type = __webpack_require__(43462); + module.exports = function IteratorComplete(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return ToBoolean(Get(iterResult, 'done')); + }; + }, + 82939: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Invoke = __webpack_require__(3538), + Type = __webpack_require__(43462); + module.exports = function IteratorNext(iterator, value) { + var result = Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]); + if ('Object' !== Type(result)) throw new $TypeError('iterator next must return an object'); + return result; + }; + }, + 53334: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var IteratorComplete = __webpack_require__(71965), + IteratorNext = __webpack_require__(82939); + module.exports = function IteratorStep(iterator) { + var result = IteratorNext(iterator); + return !0 !== IteratorComplete(result) && result; + }; + }, + 1624: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(8408), + Type = __webpack_require__(43462); + module.exports = function IteratorValue(iterResult) { + if ('Object' !== Type(iterResult)) throw new $TypeError('Assertion failed: Type(iterResult) is not Object'); + return Get(iterResult, 'value'); + }; + }, + 38277: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + Get = __webpack_require__(8408), + ToLength = __webpack_require__(60012), + Type = __webpack_require__(43462); + module.exports = function LengthOfArrayLike(obj) { + if ('Object' !== Type(obj)) throw new $TypeError('Assertion failed: `obj` must be an Object'); + return ToLength(Get(obj, 'length')); + }; + }, + 83147: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $gOPD = __webpack_require__(74486), + $TypeError = GetIntrinsic('%TypeError%'), + $isEnumerable = __webpack_require__(62680)('Object.prototype.propertyIsEnumerable'), + has = __webpack_require__(23198), + IsArray = __webpack_require__(21752), + IsPropertyKey = __webpack_require__(99718), + IsRegExp = __webpack_require__(324), + ToPropertyDescriptor = __webpack_require__(33066), + Type = __webpack_require__(43462); + module.exports = function OrdinaryGetOwnProperty(O, P) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: O must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: P must be a Property Key'); + if (has(O, P)) { + if (!$gOPD) { + var arrayLength = IsArray(O) && 'length' === P, + regexLastIndex = IsRegExp(O) && 'lastIndex' === P; + return { + '[[Configurable]]': !(arrayLength || regexLastIndex), + '[[Enumerable]]': $isEnumerable(O, P), + '[[Value]]': O[P], + '[[Writable]]': !0, + }; + } + return ToPropertyDescriptor($gOPD(O, P)); + } + }; + }, + 58468: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $ObjectCreate = GetIntrinsic('%Object.create%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + IsArray = __webpack_require__(21752), + Type = __webpack_require__(43462), + hasProto = !({ __proto__: null } instanceof Object); + module.exports = function OrdinaryObjectCreate(proto) { + if (null !== proto && 'Object' !== Type(proto)) + throw new $TypeError('Assertion failed: `proto` must be null or an object'); + var additionalInternalSlotsList = arguments.length < 2 ? [] : arguments[1]; + if (!IsArray(additionalInternalSlotsList)) + throw new $TypeError('Assertion failed: `additionalInternalSlotsList` must be an Array'); + if (additionalInternalSlotsList.length > 0) + throw new $SyntaxError('es-abstract does not yet support internal slots'); + if ($ObjectCreate) return $ObjectCreate(proto); + if (hasProto) return { __proto__: proto }; + if (null === proto) throw new $SyntaxError('native Object.create support is required to create null objects'); + var T = function T() {}; + return (T.prototype = proto), new T(); + }; + }, + 47591: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + regexExec = __webpack_require__(62680)('RegExp.prototype.exec'), + Call = __webpack_require__(81862), + Get = __webpack_require__(8408), + IsCallable = __webpack_require__(7965), + Type = __webpack_require__(43462); + module.exports = function RegExpExec(R, S) { + if ('Object' !== Type(R)) throw new $TypeError('Assertion failed: `R` must be an Object'); + if ('String' !== Type(S)) throw new $TypeError('Assertion failed: `S` must be a String'); + var exec = Get(R, 'exec'); + if (IsCallable(exec)) { + var result = Call(exec, R, [S]); + if (null === result || 'Object' === Type(result)) return result; + throw new $TypeError('"exec" method must return `null` or an Object'); + } + return regexExec(R, S); + }; + }, + 27004: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(17497); + }, + 64829: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValue(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : $isNaN(x) && $isNaN(y); + }; + }, + 48982: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $isNaN = __webpack_require__(92510); + module.exports = function SameValueZero(x, y) { + return x === y || ($isNaN(x) && $isNaN(y)); + }; + }, + 8020: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'), + IsPropertyKey = __webpack_require__(99718), + SameValue = __webpack_require__(64829), + Type = __webpack_require__(43462), + noThrowOnStrictViolation = (function () { + try { + return delete [].length, !0; + } catch (e) { + return !1; + } + })(); + module.exports = function Set(O, P, V, Throw) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: `O` must be an Object'); + if (!IsPropertyKey(P)) throw new $TypeError('Assertion failed: `P` must be a Property Key'); + if ('Boolean' !== Type(Throw)) throw new $TypeError('Assertion failed: `Throw` must be a Boolean'); + if (Throw) { + if (((O[P] = V), noThrowOnStrictViolation && !SameValue(O[P], V))) + throw new $TypeError('Attempted to assign to readonly property.'); + return !0; + } + try { + return (O[P] = V), !noThrowOnStrictViolation || SameValue(O[P], V); + } catch (e) { + return !1; + } + }; + }, + 41227: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $species = GetIntrinsic('%Symbol.species%', !0), + $TypeError = GetIntrinsic('%TypeError%'), + IsConstructor = __webpack_require__(64284), + Type = __webpack_require__(43462); + module.exports = function SpeciesConstructor(O, defaultConstructor) { + if ('Object' !== Type(O)) throw new $TypeError('Assertion failed: Type(O) is not Object'); + var C = O.constructor; + if (void 0 === C) return defaultConstructor; + if ('Object' !== Type(C)) throw new $TypeError('O.constructor is not an Object'); + var S = $species ? C[$species] : void 0; + if (null == S) return defaultConstructor; + if (IsConstructor(S)) return S; + throw new $TypeError('no constructor found'); + }; + }, + 15871: module => { + 'use strict'; + module.exports = function ToBoolean(value) { + return !!value; + }; + }, + 35174: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5ToInteger = __webpack_require__(71469), + ToNumber = __webpack_require__(78048); + module.exports = function ToInteger(value) { + var number = ToNumber(value); + return 0 !== number && (number = ES5ToInteger(number)), 0 === number ? 0 : number; + }; + }, + 60012: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var MAX_SAFE_INTEGER = __webpack_require__(33034), + ToIntegerOrInfinity = __webpack_require__(35174); + module.exports = function ToLength(argument) { + var len = ToIntegerOrInfinity(argument); + return len <= 0 ? 0 : len > MAX_SAFE_INTEGER ? MAX_SAFE_INTEGER : len; + }; + }, + 78048: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $Number = GetIntrinsic('%Number%'), + $RegExp = GetIntrinsic('%RegExp%'), + $parseInteger = GetIntrinsic('%parseInt%'), + callBound = __webpack_require__(62680), + regexTester = __webpack_require__(80779), + isPrimitive = __webpack_require__(26607), + $strSlice = callBound('String.prototype.slice'), + isBinary = regexTester(/^0b[01]+$/i), + isOctal = regexTester(/^0o[0-7]+$/i), + isInvalidHexLiteral = regexTester(/^[-+]0x[0-9a-f]+$/i), + hasNonWS = regexTester(new $RegExp('[' + ['…', '​', '￾'].join('') + ']', 'g')), + ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), + trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), + $replace = callBound('String.prototype.replace'), + ToPrimitive = __webpack_require__(31454); + module.exports = function ToNumber(argument) { + var value = isPrimitive(argument) ? argument : ToPrimitive(argument, $Number); + if ('symbol' == typeof value) throw new $TypeError('Cannot convert a Symbol value to a number'); + if ('bigint' == typeof value) throw new $TypeError("Conversion from 'BigInt' to 'number' is not allowed."); + if ('string' == typeof value) { + if (isBinary(value)) return ToNumber($parseInteger($strSlice(value, 2), 2)); + if (isOctal(value)) return ToNumber($parseInteger($strSlice(value, 2), 8)); + if (hasNonWS(value) || isInvalidHexLiteral(value)) return NaN; + var trimmed = (function (value) { + return $replace(value, trimRegex, ''); + })(value); + if (trimmed !== value) return ToNumber(trimmed); + } + return $Number(value); + }; + }, + 82151: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $Object = __webpack_require__(67286)('%Object%'), + RequireObjectCoercible = __webpack_require__(27004); + module.exports = function ToObject(value) { + return RequireObjectCoercible(value), $Object(value); + }; + }, + 31454: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toPrimitive = __webpack_require__(5885); + module.exports = function ToPrimitive(input) { + return arguments.length > 1 ? toPrimitive(input, arguments[1]) : toPrimitive(input); + }; + }, + 33066: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has = __webpack_require__(23198), + $TypeError = __webpack_require__(67286)('%TypeError%'), + Type = __webpack_require__(43462), + ToBoolean = __webpack_require__(15871), + IsCallable = __webpack_require__(7965); + module.exports = function ToPropertyDescriptor(Obj) { + if ('Object' !== Type(Obj)) throw new $TypeError('ToPropertyDescriptor requires an object'); + var desc = {}; + if ( + (has(Obj, 'enumerable') && (desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable)), + has(Obj, 'configurable') && (desc['[[Configurable]]'] = ToBoolean(Obj.configurable)), + has(Obj, 'value') && (desc['[[Value]]'] = Obj.value), + has(Obj, 'writable') && (desc['[[Writable]]'] = ToBoolean(Obj.writable)), + has(Obj, 'get')) + ) { + var getter = Obj.get; + if (void 0 !== getter && !IsCallable(getter)) throw new $TypeError('getter must be a function'); + desc['[[Get]]'] = getter; + } + if (has(Obj, 'set')) { + var setter = Obj.set; + if (void 0 !== setter && !IsCallable(setter)) throw new $TypeError('setter must be a function'); + desc['[[Set]]'] = setter; + } + if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) + throw new $TypeError( + 'Invalid property descriptor. Cannot both specify accessors and a value or writable attribute', + ); + return desc; + }; + }, + 17902: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $String = __webpack_require__(67286)('%String%'), + ToPrimitive = __webpack_require__(31454), + ToString = __webpack_require__(22051); + module.exports = function ToPropertyKey(argument) { + var key = ToPrimitive(argument, $String); + return 'symbol' == typeof key ? key : ToString(key); + }; + }, + 22051: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $String = GetIntrinsic('%String%'), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function ToString(argument) { + if ('symbol' == typeof argument) throw new $TypeError('Cannot convert a Symbol value to a string'); + return $String(argument); + }; + }, + 43462: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES5Type = __webpack_require__(62265); + module.exports = function Type(x) { + return 'symbol' == typeof x ? 'Symbol' : 'bigint' == typeof x ? 'BigInt' : ES5Type(x); + }; + }, + 47667: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $fromCharCode = GetIntrinsic('%String.fromCharCode%'), + isLeadingSurrogate = __webpack_require__(74254), + isTrailingSurrogate = __webpack_require__(78100); + module.exports = function UTF16DecodeSurrogatePair(lead, trail) { + if (!isLeadingSurrogate(lead) || !isTrailingSurrogate(trail)) + throw new $TypeError( + 'Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code', + ); + return $fromCharCode(lead) + $fromCharCode(trail); + }; + }, + 34624: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $abs = __webpack_require__(67286)('%Math.abs%'); + module.exports = function abs(x) { + return $abs(x); + }; + }, + 25684: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function floor(x) { + return $floor(x); + }; + }, + 17497: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $TypeError = __webpack_require__(67286)('%TypeError%'); + module.exports = function CheckObjectCoercible(value, optMessage) { + if (null == value) throw new $TypeError(optMessage || 'Cannot call method on ' + value); + return value; + }; + }, + 71469: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var abs = __webpack_require__(25113), + floor = __webpack_require__(95041), + ToNumber = __webpack_require__(44734), + $isNaN = __webpack_require__(92510), + $isFinite = __webpack_require__(21726), + $sign = __webpack_require__(92547); + module.exports = function ToInteger(value) { + var number = ToNumber(value); + return $isNaN(number) ? 0 : 0 !== number && $isFinite(number) ? $sign(number) * floor(abs(number)) : number; + }; + }, + 44734: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ToPrimitive = __webpack_require__(29597); + module.exports = function ToNumber(value) { + var prim = ToPrimitive(value, Number); + if ('string' != typeof prim) return +prim; + var trimmed = prim.replace( + /^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g, + '', + ); + return /^0[ob]|^[+-]0x/.test(trimmed) ? NaN : +trimmed; + }; + }, + 29597: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(74670); + }, + 62265: module => { + 'use strict'; + module.exports = function Type(x) { + return null === x + ? 'Null' + : void 0 === x + ? 'Undefined' + : 'function' == typeof x || 'object' == typeof x + ? 'Object' + : 'number' == typeof x + ? 'Number' + : 'boolean' == typeof x + ? 'Boolean' + : 'string' == typeof x + ? 'String' + : void 0; + }; + }, + 25113: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $abs = __webpack_require__(67286)('%Math.abs%'); + module.exports = function abs(x) { + return $abs(x); + }; + }, + 95041: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function floor(x) { + return $floor(x); + }; + }, + 85945: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(67286); + }, + 3160: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES2016 = { + 'Abstract Equality Comparison': __webpack_require__(84904), + 'Abstract Relational Comparison': __webpack_require__(13027), + 'Strict Equality Comparison': __webpack_require__(78489), + abs: __webpack_require__(2961), + AdvanceStringIndex: __webpack_require__(68631), + ArrayCreate: __webpack_require__(3155), + ArraySetLength: __webpack_require__(19918), + ArraySpeciesCreate: __webpack_require__(93853), + Call: __webpack_require__(61565), + CanonicalNumericIndexString: __webpack_require__(9256), + CharacterRange: __webpack_require__(39354), + CompletePropertyDescriptor: __webpack_require__(76928), + CreateDataProperty: __webpack_require__(3534), + CreateDataPropertyOrThrow: __webpack_require__(95391), + CreateHTML: __webpack_require__(43515), + CreateIterResultObject: __webpack_require__(368), + CreateListFromArrayLike: __webpack_require__(5706), + CreateMethodProperty: __webpack_require__(80711), + DateFromTime: __webpack_require__(61261), + Day: __webpack_require__(73460), + DayFromYear: __webpack_require__(34413), + DaysInYear: __webpack_require__(12670), + DayWithinYear: __webpack_require__(58661), + DefinePropertyOrThrow: __webpack_require__(77725), + DeletePropertyOrThrow: __webpack_require__(25215), + EnumerableOwnNames: __webpack_require__(72162), + floor: __webpack_require__(3366), + FromPropertyDescriptor: __webpack_require__(37671), + Get: __webpack_require__(31104), + GetIterator: __webpack_require__(6347), + GetMethod: __webpack_require__(46077), + GetOwnPropertyKeys: __webpack_require__(77045), + GetPrototypeFromConstructor: __webpack_require__(74870), + GetSubstitution: __webpack_require__(84565), + GetV: __webpack_require__(38015), + HasOwnProperty: __webpack_require__(41509), + HasProperty: __webpack_require__(47257), + HourFromTime: __webpack_require__(55326), + InLeapYear: __webpack_require__(41372), + InstanceofOperator: __webpack_require__(32013), + Invoke: __webpack_require__(1872), + IsAccessorDescriptor: __webpack_require__(64147), + IsArray: __webpack_require__(79984), + IsCallable: __webpack_require__(52627), + IsCompatiblePropertyDescriptor: __webpack_require__(13147), + IsConcatSpreadable: __webpack_require__(54067), + IsConstructor: __webpack_require__(44205), + IsDataDescriptor: __webpack_require__(26846), + IsExtensible: __webpack_require__(52332), + IsGenericDescriptor: __webpack_require__(1250), + IsInteger: __webpack_require__(93572), + IsPromise: __webpack_require__(57473), + IsPropertyDescriptor: __webpack_require__(72401), + IsPropertyKey: __webpack_require__(72028), + IsRegExp: __webpack_require__(37446), + IterableToArrayLike: __webpack_require__(86745), + IteratorClose: __webpack_require__(1160), + IteratorComplete: __webpack_require__(58565), + IteratorNext: __webpack_require__(95130), + IteratorStep: __webpack_require__(70604), + IteratorValue: __webpack_require__(67874), + MakeDate: __webpack_require__(32510), + MakeDay: __webpack_require__(79289), + MakeTime: __webpack_require__(66011), + MinFromTime: __webpack_require__(12776), + modulo: __webpack_require__(61727), + MonthFromTime: __webpack_require__(92308), + msFromTime: __webpack_require__(7862), + ObjectCreate: __webpack_require__(78355), + OrdinaryCreateFromConstructor: __webpack_require__(24768), + OrdinaryDefineOwnProperty: __webpack_require__(65133), + OrdinaryGetOwnProperty: __webpack_require__(42234), + OrdinaryGetPrototypeOf: __webpack_require__(60193), + OrdinaryHasInstance: __webpack_require__(4742), + OrdinaryHasProperty: __webpack_require__(65829), + OrdinarySetPrototypeOf: __webpack_require__(35055), + QuoteJSONString: __webpack_require__(21602), + RegExpCreate: __webpack_require__(5113), + RegExpExec: __webpack_require__(34797), + RequireObjectCoercible: __webpack_require__(934), + SameValue: __webpack_require__(61096), + SameValueNonNumber: __webpack_require__(21859), + SameValueZero: __webpack_require__(65195), + SecFromTime: __webpack_require__(657), + Set: __webpack_require__(31852), + SetFunctionName: __webpack_require__(97276), + SetIntegrityLevel: __webpack_require__(24166), + SpeciesConstructor: __webpack_require__(53994), + SplitMatch: __webpack_require__(24312), + StringCreate: __webpack_require__(77832), + SymbolDescriptiveString: __webpack_require__(80287), + TestIntegrityLevel: __webpack_require__(31031), + thisBooleanValue: __webpack_require__(84874), + thisNumberValue: __webpack_require__(19274), + thisStringValue: __webpack_require__(65736), + thisTimeValue: __webpack_require__(54635), + TimeClip: __webpack_require__(64301), + TimeFromYear: __webpack_require__(53506), + TimeWithinDay: __webpack_require__(6054), + ToBoolean: __webpack_require__(96678), + ToDateString: __webpack_require__(28807), + ToInt16: __webpack_require__(2885), + ToInt32: __webpack_require__(34185), + ToInt8: __webpack_require__(83561), + ToInteger: __webpack_require__(68796), + ToLength: __webpack_require__(44771), + ToNumber: __webpack_require__(53613), + ToObject: __webpack_require__(12197), + ToPrimitive: __webpack_require__(43825), + ToPropertyDescriptor: __webpack_require__(95751), + ToPropertyKey: __webpack_require__(44876), + ToString: __webpack_require__(98765), + ToUint16: __webpack_require__(37363), + ToUint32: __webpack_require__(24464), + ToUint8: __webpack_require__(68924), + ToUint8Clamp: __webpack_require__(1869), + Type: __webpack_require__(24909), + UTF16Decode: __webpack_require__(51684), + UTF16Encoding: __webpack_require__(6418), + ValidateAndApplyPropertyDescriptor: __webpack_require__(91201), + WeekDay: __webpack_require__(23757), + YearFromTime: __webpack_require__(67684), + }; + module.exports = ES2016; + }, + 1600: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES2018 = { + 'Abstract Equality Comparison': __webpack_require__(86551), + 'Abstract Relational Comparison': __webpack_require__(94826), + 'Strict Equality Comparison': __webpack_require__(99889), + abs: __webpack_require__(49741), + AdvanceStringIndex: __webpack_require__(68959), + ArrayCreate: __webpack_require__(72995), + ArraySetLength: __webpack_require__(70441), + ArraySpeciesCreate: __webpack_require__(44881), + Call: __webpack_require__(92390), + CanonicalNumericIndexString: __webpack_require__(68955), + CharacterRange: __webpack_require__(21001), + CompletePropertyDescriptor: __webpack_require__(61272), + CopyDataProperties: __webpack_require__(9551), + CreateDataProperty: __webpack_require__(86270), + CreateDataPropertyOrThrow: __webpack_require__(5988), + CreateHTML: __webpack_require__(62706), + CreateIterResultObject: __webpack_require__(4390), + CreateListFromArrayLike: __webpack_require__(37454), + CreateMethodProperty: __webpack_require__(70212), + DateFromTime: __webpack_require__(76714), + DateString: __webpack_require__(27403), + Day: __webpack_require__(38830), + DayFromYear: __webpack_require__(49090), + DaysInYear: __webpack_require__(68316), + DayWithinYear: __webpack_require__(21181), + DefinePropertyOrThrow: __webpack_require__(38885), + DeletePropertyOrThrow: __webpack_require__(55469), + EnumerableOwnPropertyNames: __webpack_require__(58600), + floor: __webpack_require__(47227), + FromPropertyDescriptor: __webpack_require__(72976), + Get: __webpack_require__(56219), + GetIterator: __webpack_require__(17894), + GetMethod: __webpack_require__(26686), + GetOwnPropertyKeys: __webpack_require__(75703), + GetPrototypeFromConstructor: __webpack_require__(28837), + GetSubstitution: __webpack_require__(58569), + GetV: __webpack_require__(89636), + HasOwnProperty: __webpack_require__(65879), + HasProperty: __webpack_require__(23297), + HourFromTime: __webpack_require__(18757), + InLeapYear: __webpack_require__(95780), + InstanceofOperator: __webpack_require__(94078), + Invoke: __webpack_require__(41186), + IsAccessorDescriptor: __webpack_require__(52275), + IsArray: __webpack_require__(92222), + IsCallable: __webpack_require__(38067), + IsCompatiblePropertyDescriptor: __webpack_require__(69443), + IsConcatSpreadable: __webpack_require__(42679), + IsConstructor: __webpack_require__(84608), + IsDataDescriptor: __webpack_require__(47541), + IsExtensible: __webpack_require__(36071), + IsGenericDescriptor: __webpack_require__(64170), + IsInteger: __webpack_require__(25805), + IsPromise: __webpack_require__(40010), + IsPropertyKey: __webpack_require__(67357), + IsRegExp: __webpack_require__(57244), + IsSharedArrayBuffer: __webpack_require__(70783), + IsStringPrefix: __webpack_require__(5547), + IterableToList: __webpack_require__(57366), + IteratorClose: __webpack_require__(54194), + IteratorComplete: __webpack_require__(88601), + IteratorNext: __webpack_require__(75648), + IteratorStep: __webpack_require__(51258), + IteratorValue: __webpack_require__(61370), + MakeDate: __webpack_require__(31985), + MakeDay: __webpack_require__(24895), + MakeTime: __webpack_require__(49413), + MinFromTime: __webpack_require__(5940), + modulo: __webpack_require__(6121), + MonthFromTime: __webpack_require__(41990), + msFromTime: __webpack_require__(95820), + NumberToString: __webpack_require__(77171), + ObjectCreate: __webpack_require__(68585), + OrdinaryCreateFromConstructor: __webpack_require__(58109), + OrdinaryDefineOwnProperty: __webpack_require__(17589), + OrdinaryGetOwnProperty: __webpack_require__(40509), + OrdinaryGetPrototypeOf: __webpack_require__(25461), + OrdinaryHasInstance: __webpack_require__(27105), + OrdinaryHasProperty: __webpack_require__(16788), + OrdinarySetPrototypeOf: __webpack_require__(56584), + OrdinaryToPrimitive: __webpack_require__(95074), + PromiseResolve: __webpack_require__(77126), + QuoteJSONString: __webpack_require__(81898), + RegExpCreate: __webpack_require__(18444), + RegExpExec: __webpack_require__(32409), + RequireObjectCoercible: __webpack_require__(63762), + SameValue: __webpack_require__(3062), + SameValueNonNumber: __webpack_require__(1550), + SameValueZero: __webpack_require__(82557), + SecFromTime: __webpack_require__(31408), + Set: __webpack_require__(90538), + SetFunctionLength: __webpack_require__(90926), + SetFunctionName: __webpack_require__(6922), + SetIntegrityLevel: __webpack_require__(74323), + SpeciesConstructor: __webpack_require__(92980), + SplitMatch: __webpack_require__(616), + StringCreate: __webpack_require__(1315), + StringGetOwnProperty: __webpack_require__(33005), + SymbolDescriptiveString: __webpack_require__(15360), + TestIntegrityLevel: __webpack_require__(3749), + thisBooleanValue: __webpack_require__(56207), + thisNumberValue: __webpack_require__(27071), + thisStringValue: __webpack_require__(1929), + thisSymbolValue: __webpack_require__(2841), + thisTimeValue: __webpack_require__(30076), + TimeClip: __webpack_require__(29252), + TimeFromYear: __webpack_require__(14116), + TimeString: __webpack_require__(68314), + TimeWithinDay: __webpack_require__(76711), + ToBoolean: __webpack_require__(518), + ToDateString: __webpack_require__(17864), + ToIndex: __webpack_require__(29960), + ToInt16: __webpack_require__(21451), + ToInt32: __webpack_require__(25482), + ToInt8: __webpack_require__(31923), + ToInteger: __webpack_require__(32508), + ToLength: __webpack_require__(63269), + ToNumber: __webpack_require__(929), + ToObject: __webpack_require__(9613), + ToPrimitive: __webpack_require__(34296), + ToPropertyDescriptor: __webpack_require__(10482), + ToPropertyKey: __webpack_require__(61242), + ToString: __webpack_require__(26083), + ToUint16: __webpack_require__(26268), + ToUint32: __webpack_require__(20592), + ToUint8: __webpack_require__(96777), + ToUint8Clamp: __webpack_require__(24557), + Type: __webpack_require__(62442), + UnicodeEscape: __webpack_require__(44989), + UTF16Decode: __webpack_require__(51460), + UTF16Encoding: __webpack_require__(5531), + ValidateAndApplyPropertyDescriptor: __webpack_require__(18734), + WeekDay: __webpack_require__(44458), + YearFromTime: __webpack_require__(47455), + }; + module.exports = ES2018; + }, + 106: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + module.exports = __webpack_require__(3160); + }, + 9046: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $defineProperty = __webpack_require__(67286)('%Object.defineProperty%', !0); + if ($defineProperty) + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + $defineProperty = null; + } + var hasArrayLengthDefineBug = + Object.defineProperty && 0 === Object.defineProperty([], 'length', { value: 1 }).length, + isArray = hasArrayLengthDefineBug && __webpack_require__(39033), + $isEnumerable = __webpack_require__(62680)('Object.prototype.propertyIsEnumerable'); + module.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) { + if (!$defineProperty) { + if (!IsDataDescriptor(desc)) return !1; + if (!desc['[[Configurable]]'] || !desc['[[Writable]]']) return !1; + if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) return !1; + var V = desc['[[Value]]']; + return (O[P] = V), SameValue(O[P], V); + } + return hasArrayLengthDefineBug && + 'length' === P && + '[[Value]]' in desc && + isArray(O) && + O.length !== desc['[[Value]]'] + ? ((O.length = desc['[[Value]]']), O.length === desc['[[Value]]']) + : ($defineProperty(O, P, FromPropertyDescriptor(desc)), !0); + }; + }, + 74727: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBind = __webpack_require__(89429), + callBound = __webpack_require__(62680), + $ownKeys = GetIntrinsic('%Reflect.ownKeys%', !0), + $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%')), + $SymbolValueOf = callBound('Symbol.prototype.valueOf', !0), + $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', !0), + $gOPS = $SymbolValueOf ? GetIntrinsic('%Object.getOwnPropertySymbols%') : null, + keys = __webpack_require__(33464); + module.exports = + $ownKeys || + function OwnPropertyKeys(source) { + var ownKeys = ($gOPN || keys)(source); + return $gOPS && $pushApply(ownKeys, $gOPS(source)), ownKeys; + }; + }, + 79719: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $TypeError = GetIntrinsic('%TypeError%'), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + has = __webpack_require__(23198), + predicates = { + 'Property Descriptor': function isPropertyDescriptor(Type, Desc) { + if ('Object' !== Type(Desc)) return !1; + var allowed = { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Get]]': !0, + '[[Set]]': !0, + '[[Value]]': !0, + '[[Writable]]': !0, + }; + for (var key in Desc) if (has(Desc, key) && !allowed[key]) return !1; + var isData = has(Desc, '[[Value]]'), + IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]'); + if (isData && IsAccessor) + throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); + return !0; + }, + }; + module.exports = function assertRecord(Type, recordType, argumentName, value) { + var predicate = predicates[recordType]; + if ('function' != typeof predicate) throw new $SyntaxError('unknown record type: ' + recordType); + if (!predicate(Type, value)) throw new $TypeError(argumentName + ' must be a ' + recordType); + }; + }, + 37812: module => { + 'use strict'; + module.exports = function every(array, predicate) { + for (var i = 0; i < array.length; i += 1) if (!predicate(array[i], i, array)) return !1; + return !0; + }; + }, + 23173: module => { + 'use strict'; + module.exports = function forEach(array, callback) { + for (var i = 0; i < array.length; i += 1) callback(array[i], i, array); + }; + }, + 55412: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var hasSymbols = __webpack_require__(58811)(), + GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $iterator = GetIntrinsic('%Symbol.iterator%', !0), + $stringSlice = callBound('String.prototype.slice'); + module.exports = function getIteratorMethod(ES, iterable) { + var usingIterator; + return ( + hasSymbols + ? (usingIterator = ES.GetMethod(iterable, $iterator)) + : ES.IsArray(iterable) + ? (usingIterator = function () { + var i = -1, + arr = this; + return { + next: function () { + return { done: (i += 1) >= arr.length, value: arr[i] }; + }, + }; + }) + : 'String' === ES.Type(iterable) && + (usingIterator = function () { + var i = 0; + return { + next: function () { + var nextIndex = ES.AdvanceStringIndex(iterable, i, !0), + value = $stringSlice(iterable, i, nextIndex); + return (i = nextIndex), { done: nextIndex > iterable.length, value }; + }, + }; + }), + usingIterator + ); + }; + }, + 74486: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $gOPD = __webpack_require__(67286)('%Object.getOwnPropertyDescriptor%', !0); + if ($gOPD) + try { + $gOPD([], 'length'); + } catch (e) { + $gOPD = null; + } + module.exports = $gOPD; + }, + 92829: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', !0), + $ArrayProto = GetIntrinsic('%Array.prototype%'); + module.exports = + originalGetProto || + ([].__proto__ === $ArrayProto + ? function (O) { + return O.__proto__; + } + : null); + }, + 19858: module => { + 'use strict'; + module.exports = function isCodePoint(cp) { + return 'number' == typeof cp && cp >= 0 && cp <= 1114111 && (0 | cp) === cp; + }; + }, + 21726: module => { + 'use strict'; + var $isNaN = + Number.isNaN || + function (a) { + return a != a; + }; + module.exports = + Number.isFinite || + function (x) { + return 'number' == typeof x && !$isNaN(x) && x !== 1 / 0 && x !== -1 / 0; + }; + }, + 74254: module => { + 'use strict'; + module.exports = function isLeadingSurrogate(charCode) { + return 'number' == typeof charCode && charCode >= 55296 && charCode <= 56319; + }; + }, + 92510: module => { + 'use strict'; + module.exports = + Number.isNaN || + function isNaN(a) { + return a != a; + }; + }, + 21543: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $strSlice = __webpack_require__(62680)('String.prototype.slice'); + module.exports = function isPrefixOf(prefix, string) { + return ( + prefix === string || (!(prefix.length > string.length) && $strSlice(string, 0, prefix.length) === prefix) + ); + }; + }, + 26607: module => { + 'use strict'; + module.exports = function isPrimitive(value) { + return null === value || ('function' != typeof value && 'object' != typeof value); + }; + }, + 92594: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + has = __webpack_require__(23198), + $TypeError = GetIntrinsic('%TypeError%'); + module.exports = function IsPropertyDescriptor(ES, Desc) { + if ('Object' !== ES.Type(Desc)) return !1; + var allowed = { + '[[Configurable]]': !0, + '[[Enumerable]]': !0, + '[[Get]]': !0, + '[[Set]]': !0, + '[[Value]]': !0, + '[[Writable]]': !0, + }; + for (var key in Desc) if (has(Desc, key) && !allowed[key]) return !1; + if (ES.IsDataDescriptor(Desc) && ES.IsAccessorDescriptor(Desc)) + throw new $TypeError('Property Descriptors may not be both accessor and data descriptors'); + return !0; + }; + }, + 4203: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var every = __webpack_require__(37812); + module.exports = function isSamePropertyDescriptor(ES, D1, D2) { + return every( + ['[[Configurable]]', '[[Enumerable]]', '[[Get]]', '[[Set]]', '[[Value]]', '[[Writable]]'], + function (field) { + return field in D1 == field in D2 && ES.SameValue(D1[field], D2[field]); + }, + ); + }; + }, + 78100: module => { + 'use strict'; + module.exports = function isTrailingSurrogate(charCode) { + return 'number' == typeof charCode && charCode >= 56320 && charCode <= 57343; + }; + }, + 33034: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + $Math = GetIntrinsic('%Math%'), + $Number = GetIntrinsic('%Number%'); + module.exports = $Number.MAX_SAFE_INTEGER || $Math.pow(2, 53) - 1; + }, + 48493: module => { + 'use strict'; + var $floor = Math.floor; + module.exports = function mod(number, modulo) { + var remain = number % modulo; + return $floor(remain >= 0 ? remain : remain + modulo); + }; + }, + 45971: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $strSlice = __webpack_require__(62680)('String.prototype.slice'); + module.exports = function padTimeComponent(c, count) { + return $strSlice('00' + c, -(count || 2)); + }; + }, + 80779: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $test = __webpack_require__(67286)('RegExp.prototype.test'), + callBind = __webpack_require__(89429); + module.exports = function regexTester(regex) { + return callBind($test, regex); + }; + }, + 6361: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + originalSetProto = GetIntrinsic('%Object.setPrototypeOf%', !0), + $ArrayProto = GetIntrinsic('%Array.prototype%'); + module.exports = + originalSetProto || + ([].__proto__ !== $ArrayProto + ? null + : function (O, proto) { + return (O.__proto__ = proto), O; + }); + }, + 92547: module => { + 'use strict'; + module.exports = function sign(number) { + return number >= 0 ? 1 : -1; + }; + }, + 2744: module => { + 'use strict'; + module.exports = { + HoursPerDay: 24, + MinutesPerHour: 60, + SecondsPerMinute: 60, + msPerSecond: 1e3, + msPerMinute: 6e4, + msPerHour: 36e5, + msPerDay: 864e5, + }; + }, + 58811: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var origSymbol = 'undefined' != typeof Symbol && Symbol, + hasSymbolSham = __webpack_require__(28483); + module.exports = function hasNativeSymbols() { + return ( + 'function' == typeof origSymbol && + 'function' == typeof Symbol && + 'symbol' == typeof origSymbol('foo') && + 'symbol' == typeof Symbol('bar') && + hasSymbolSham() + ); + }; + }, + 28483: module => { + 'use strict'; + module.exports = function hasSymbols() { + if ('function' != typeof Symbol || 'function' != typeof Object.getOwnPropertySymbols) return !1; + if ('symbol' == typeof Symbol.iterator) return !0; + var obj = {}, + sym = Symbol('test'), + symObj = Object(sym); + if ('string' == typeof sym) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(sym)) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(symObj)) return !1; + for (sym in ((obj[sym] = 42), obj)) return !1; + if ('function' == typeof Object.keys && 0 !== Object.keys(obj).length) return !1; + if ('function' == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(obj).length) return !1; + var syms = Object.getOwnPropertySymbols(obj); + if (1 !== syms.length || syms[0] !== sym) return !1; + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return !1; + if ('function' == typeof Object.getOwnPropertyDescriptor) { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (42 !== descriptor.value || !0 !== descriptor.enumerable) return !1; + } + return !0; + }; + }, + 1893: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var keys = __webpack_require__(33464), + canBeObject = function (obj) { + return null != obj; + }, + hasSymbols = __webpack_require__(60697)(), + callBound = __webpack_require__(62680), + toObject = Object, + $push = callBound('Array.prototype.push'), + $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable'), + originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null; + module.exports = function assign(target, source1) { + if (!canBeObject(target)) throw new TypeError('target must be an object'); + var s, + source, + i, + props, + syms, + value, + key, + objTarget = toObject(target); + for (s = 1; s < arguments.length; ++s) { + (source = toObject(arguments[s])), (props = keys(source)); + var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols); + if (getSymbols) + for (syms = getSymbols(source), i = 0; i < syms.length; ++i) + (key = syms[i]), $propIsEnumerable(source, key) && $push(props, key); + for (i = 0; i < props.length; ++i) + (value = source[(key = props[i])]), $propIsEnumerable(source, key) && (objTarget[key] = value); + } + return objTarget; + }; + }, + 79784: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var defineProperties = __webpack_require__(14926), + callBind = __webpack_require__(89429), + implementation = __webpack_require__(1893), + getPolyfill = __webpack_require__(17344), + shim = __webpack_require__(8889), + polyfill = callBind.apply(getPolyfill()), + bound = function assign(target, source1) { + return polyfill(Object, arguments); + }; + defineProperties(bound, { getPolyfill, implementation, shim }), (module.exports = bound); + }, + 60697: module => { + 'use strict'; + module.exports = function hasSymbols() { + if ('function' != typeof Symbol || 'function' != typeof Object.getOwnPropertySymbols) return !1; + if ('symbol' == typeof Symbol.iterator) return !0; + var obj = {}, + sym = Symbol('test'), + symObj = Object(sym); + if ('string' == typeof sym) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(sym)) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(symObj)) return !1; + for (sym in ((obj[sym] = 42), obj)) return !1; + if ('function' == typeof Object.keys && 0 !== Object.keys(obj).length) return !1; + if ('function' == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(obj).length) return !1; + var syms = Object.getOwnPropertySymbols(obj); + if (1 !== syms.length || syms[0] !== sym) return !1; + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return !1; + if ('function' == typeof Object.getOwnPropertyDescriptor) { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (42 !== descriptor.value || !0 !== descriptor.enumerable) return !1; + } + return !0; + }; + }, + 17344: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(1893); + module.exports = function getPolyfill() { + return Object.assign + ? (function () { + if (!Object.assign) return !1; + for (var str = 'abcdefghijklmnopqrst', letters = str.split(''), map = {}, i = 0; i < letters.length; ++i) + map[letters[i]] = letters[i]; + var obj = Object.assign({}, map), + actual = ''; + for (var k in obj) actual += k; + return str !== actual; + })() || + (function () { + if (!Object.assign || !Object.preventExtensions) return !1; + var thrower = Object.preventExtensions({ 1: 2 }); + try { + Object.assign(thrower, 'xy'); + } catch (e) { + return 'y' === thrower[1]; + } + return !1; + })() + ? implementation + : Object.assign + : implementation; + }; + }, + 8889: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var define = __webpack_require__(14926), + getPolyfill = __webpack_require__(17344); + module.exports = function shimAssign() { + var polyfill = getPolyfill(); + return ( + define(Object, { assign: polyfill }, { + assign: function () { + return Object.assign !== polyfill; + }, + }), + polyfill + ); + }; + }, + 5885: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var hasSymbols = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator, + isPrimitive = __webpack_require__(53919), + isCallable = __webpack_require__(9680), + isDate = __webpack_require__(54277), + isSymbol = __webpack_require__(88705), + ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { + if (null == O) throw new TypeError('Cannot call method on ' + O); + if ('string' != typeof hint || ('number' !== hint && 'string' !== hint)) + throw new TypeError('hint must be "string" or "number"'); + var method, + result, + i, + methodNames = 'string' === hint ? ['toString', 'valueOf'] : ['valueOf', 'toString']; + for (i = 0; i < methodNames.length; ++i) + if (((method = O[methodNames[i]]), isCallable(method) && ((result = method.call(O)), isPrimitive(result)))) + return result; + throw new TypeError('No default value'); + }, + GetMethod = function GetMethod(O, P) { + var func = O[P]; + if (null != func) { + if (!isCallable(func)) + throw new TypeError(func + ' returned for property ' + P + ' of object ' + O + ' is not a function'); + return func; + } + }; + module.exports = function ToPrimitive(input) { + if (isPrimitive(input)) return input; + var exoticToPrim, + hint = 'default'; + if ( + (arguments.length > 1 && + (arguments[1] === String ? (hint = 'string') : arguments[1] === Number && (hint = 'number')), + hasSymbols && + (Symbol.toPrimitive + ? (exoticToPrim = GetMethod(input, Symbol.toPrimitive)) + : isSymbol(input) && (exoticToPrim = Symbol.prototype.valueOf)), + void 0 !== exoticToPrim) + ) { + var result = exoticToPrim.call(input, hint); + if (isPrimitive(result)) return result; + throw new TypeError('unable to convert exotic object to primitive'); + } + return ( + 'default' === hint && (isDate(input) || isSymbol(input)) && (hint = 'string'), + ordinaryToPrimitive(input, 'default' === hint ? 'number' : hint) + ); + }; + }, + 74670: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toStr = Object.prototype.toString, + isPrimitive = __webpack_require__(53919), + isCallable = __webpack_require__(9680), + ES5internalSlots___DefaultValue__ = function (O) { + var actualHint; + if ( + (actualHint = arguments.length > 1 ? arguments[1] : '[object Date]' === toStr.call(O) ? String : Number) === + String || + actualHint === Number + ) { + var value, + i, + methods = actualHint === String ? ['toString', 'valueOf'] : ['valueOf', 'toString']; + for (i = 0; i < methods.length; ++i) + if (isCallable(O[methods[i]]) && ((value = O[methods[i]]()), isPrimitive(value))) return value; + throw new TypeError('No default value'); + } + throw new TypeError('invalid [[DefaultValue]] hint supplied'); + }; + module.exports = function ToPrimitive(input) { + return isPrimitive(input) + ? input + : arguments.length > 1 + ? ES5internalSlots___DefaultValue__(input, arguments[1]) + : ES5internalSlots___DefaultValue__(input); + }; + }, + 53919: module => { + 'use strict'; + module.exports = function isPrimitive(value) { + return null === value || ('function' != typeof value && 'object' != typeof value); + }; + }, + 91535: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; + !(function (root, factory) { + 'use strict'; + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == + typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = function () { + var defineGetter, + defineSetter, + lookupGetter, + lookupSetter, + call = Function.call, + prototypeOfObject = Object.prototype, + owns = call.bind(prototypeOfObject.hasOwnProperty), + isEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable), + toStr = call.bind(prototypeOfObject.toString), + supportsAccessors = owns(prototypeOfObject, '__defineGetter__'); + supportsAccessors && + ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)), + (defineSetter = call.bind(prototypeOfObject.__defineSetter__)), + (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)), + (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))); + var isPrimitive = function isPrimitive(o) { + return null == o || ('object' != typeof o && 'function' != typeof o); + }; + Object.getPrototypeOf || + (Object.getPrototypeOf = function getPrototypeOf(object) { + var proto = object.__proto__; + return proto || null === proto + ? proto + : '[object Function]' === toStr(object.constructor) + ? object.constructor.prototype + : object instanceof Object + ? prototypeOfObject + : null; + }); + var doesGetOwnPropertyDescriptorWork = function doesGetOwnPropertyDescriptorWork(object) { + try { + return (object.sentinel = 0), 0 === Object.getOwnPropertyDescriptor(object, 'sentinel').value; + } catch (exception) { + return !1; + } + }; + if (Object.defineProperty) { + var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({}); + if ( + !( + 'undefined' == typeof document || doesGetOwnPropertyDescriptorWork(document.createElement('div')) + ) || + !getOwnPropertyDescriptorWorksOnObject + ) + var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor; + } + if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) { + var ERR_NON_OBJECT = 'Object.getOwnPropertyDescriptor called on a non-object: '; + Object.getOwnPropertyDescriptor = function getOwnPropertyDescriptor(object, property) { + if (isPrimitive(object)) throw new TypeError(ERR_NON_OBJECT + object); + if (getOwnPropertyDescriptorFallback) + try { + return getOwnPropertyDescriptorFallback.call(Object, object, property); + } catch (exception) {} + var descriptor; + if (!owns(object, property)) return descriptor; + if ( + ((descriptor = { enumerable: isEnumerable(object, property), configurable: !0 }), supportsAccessors) + ) { + var prototype = object.__proto__, + notPrototypeOfObject = object !== prototypeOfObject; + notPrototypeOfObject && (object.__proto__ = prototypeOfObject); + var getter = lookupGetter(object, property), + setter = lookupSetter(object, property); + if ((notPrototypeOfObject && (object.__proto__ = prototype), getter || setter)) + return getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor; + } + return (descriptor.value = object[property]), (descriptor.writable = !0), descriptor; + }; + } + Object.getOwnPropertyNames || + (Object.getOwnPropertyNames = function getOwnPropertyNames(object) { + return Object.keys(object); + }); + if (!Object.create) { + var createEmpty, + shouldUseActiveX = function shouldUseActiveX() { + if (!document.domain) return !1; + try { + return !!new ActiveXObject('htmlfile'); + } catch (exception) { + return !1; + } + }, + getEmptyViaActiveX = function getEmptyViaActiveX() { + var empty, + xDoc, + script = 'script'; + return ( + (xDoc = new ActiveXObject('htmlfile')).write('<' + script + '>'), + xDoc.close(), + (empty = xDoc.parentWindow.Object.prototype), + (xDoc = null), + empty + ); + }, + getEmptyViaIFrame = function getEmptyViaIFrame() { + var empty, + iframe = document.createElement('iframe'), + parent = document.body || document.documentElement; + return ( + (iframe.style.display = 'none'), + parent.appendChild(iframe), + (iframe.src = 'javascript:'), + (empty = iframe.contentWindow.Object.prototype), + parent.removeChild(iframe), + (iframe = null), + empty + ); + }; + (createEmpty = + !({ __proto__: null } instanceof Object) || 'undefined' == typeof document + ? function () { + return { __proto__: null }; + } + : function () { + var empty = shouldUseActiveX() ? getEmptyViaActiveX() : getEmptyViaIFrame(); + delete empty.constructor, + delete empty.hasOwnProperty, + delete empty.propertyIsEnumerable, + delete empty.isPrototypeOf, + delete empty.toLocaleString, + delete empty.toString, + delete empty.valueOf; + var Empty = function Empty() {}; + return ( + (Empty.prototype = empty), + (createEmpty = function () { + return new Empty(); + }), + new Empty() + ); + }), + (Object.create = function create(prototype, properties) { + var object, + Type = function Type() {}; + if (null === prototype) object = createEmpty(); + else { + if (null !== prototype && isPrimitive(prototype)) + throw new TypeError('Object prototype may only be an Object or null'); + (Type.prototype = prototype), ((object = new Type()).__proto__ = prototype); + } + return void 0 !== properties && Object.defineProperties(object, properties), object; + }); + } + var doesDefinePropertyWork = function doesDefinePropertyWork(object) { + try { + return Object.defineProperty(object, 'sentinel', {}), 'sentinel' in object; + } catch (exception) { + return !1; + } + }; + if (Object.defineProperty) { + var definePropertyWorksOnObject = doesDefinePropertyWork({}), + definePropertyWorksOnDom = + 'undefined' == typeof document || doesDefinePropertyWork(document.createElement('div')); + if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) + var definePropertyFallback = Object.defineProperty, + definePropertiesFallback = Object.defineProperties; + } + if (!Object.defineProperty || definePropertyFallback) { + var ERR_NON_OBJECT_DESCRIPTOR = 'Property description must be an object: ', + ERR_NON_OBJECT_TARGET = 'Object.defineProperty called on non-object: ', + ERR_ACCESSORS_NOT_SUPPORTED = 'getters & setters can not be defined on this javascript engine'; + Object.defineProperty = function defineProperty(object, property, descriptor) { + if (isPrimitive(object)) throw new TypeError(ERR_NON_OBJECT_TARGET + object); + if (isPrimitive(descriptor)) throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor); + if (definePropertyFallback) + try { + return definePropertyFallback.call(Object, object, property, descriptor); + } catch (exception) {} + if ('value' in descriptor) + if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) { + var prototype = object.__proto__; + (object.__proto__ = prototypeOfObject), + delete object[property], + (object[property] = descriptor.value), + (object.__proto__ = prototype); + } else object[property] = descriptor.value; + else { + var hasGetter = 'get' in descriptor, + hasSetter = 'set' in descriptor; + if (!supportsAccessors && (hasGetter || hasSetter)) + throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED); + hasGetter && defineGetter(object, property, descriptor.get), + hasSetter && defineSetter(object, property, descriptor.set); + } + return object; + }; + } + (Object.defineProperties && !definePropertiesFallback) || + (Object.defineProperties = function defineProperties(object, properties) { + if (definePropertiesFallback) + try { + return definePropertiesFallback.call(Object, object, properties); + } catch (exception) {} + return ( + Object.keys(properties).forEach(function (property) { + '__proto__' !== property && Object.defineProperty(object, property, properties[property]); + }), + object + ); + }); + Object.seal || + (Object.seal = function seal(object) { + if (Object(object) !== object) throw new TypeError('Object.seal can only be called on Objects.'); + return object; + }); + Object.freeze || + (Object.freeze = function freeze(object) { + if (Object(object) !== object) throw new TypeError('Object.freeze can only be called on Objects.'); + return object; + }); + try { + Object.freeze(function () {}); + } catch (exception) { + Object.freeze = + ((freezeObject = Object.freeze), + function freeze(object) { + return 'function' == typeof object ? object : freezeObject(object); + }); + } + var freezeObject; + Object.preventExtensions || + (Object.preventExtensions = function preventExtensions(object) { + if (Object(object) !== object) + throw new TypeError('Object.preventExtensions can only be called on Objects.'); + return object; + }); + Object.isSealed || + (Object.isSealed = function isSealed(object) { + if (Object(object) !== object) throw new TypeError('Object.isSealed can only be called on Objects.'); + return !1; + }); + Object.isFrozen || + (Object.isFrozen = function isFrozen(object) { + if (Object(object) !== object) throw new TypeError('Object.isFrozen can only be called on Objects.'); + return !1; + }); + Object.isExtensible || + (Object.isExtensible = function isExtensible(object) { + if (Object(object) !== object) + throw new TypeError('Object.isExtensible can only be called on Objects.'); + for (var name = ''; owns(object, name); ) name += '?'; + object[name] = !0; + var returnValue = owns(object, name); + return delete object[name], returnValue; + }); + }) + ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + })(); + }, + 82704: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; + !(function (root, factory) { + 'use strict'; + (__WEBPACK_AMD_DEFINE_FACTORY__ = function () { + var isRegex, + isString, + $Array = Array, + ArrayPrototype = $Array.prototype, + $Object = Object, + ObjectPrototype = $Object.prototype, + $Function = Function, + FunctionPrototype = $Function.prototype, + $String = String, + StringPrototype = $String.prototype, + $Number = Number, + NumberPrototype = $Number.prototype, + array_slice = ArrayPrototype.slice, + array_splice = ArrayPrototype.splice, + array_push = ArrayPrototype.push, + array_unshift = ArrayPrototype.unshift, + array_concat = ArrayPrototype.concat, + array_join = ArrayPrototype.join, + call = FunctionPrototype.call, + apply = FunctionPrototype.apply, + max = Math.max, + min = Math.min, + to_string = ObjectPrototype.toString, + hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag, + fnToStr = Function.prototype.toString, + constructorRegex = /^\s*class /, + isES6ClassFn = function isES6ClassFn(value) { + try { + var spaceStripped = fnToStr + .call(value) + .replace(/\/\/.*\n/g, '') + .replace(/\/\*[.\s\S]*\*\//g, '') + .replace(/\n/gm, ' ') + .replace(/ {2}/g, ' '); + return constructorRegex.test(spaceStripped); + } catch (e) { + return !1; + } + }, + tryFunctionObject = function tryFunctionObject(value) { + try { + return !isES6ClassFn(value) && (fnToStr.call(value), !0); + } catch (e) { + return !1; + } + }, + fnClass = '[object Function]', + genClass = '[object GeneratorFunction]', + isCallable = function isCallable(value) { + if (!value) return !1; + if ('function' != typeof value && 'object' != typeof value) return !1; + if (hasToStringTag) return tryFunctionObject(value); + if (isES6ClassFn(value)) return !1; + var strClass = to_string.call(value); + return strClass === fnClass || strClass === genClass; + }, + regexExec = RegExp.prototype.exec, + tryRegexExec = function tryRegexExec(value) { + try { + return regexExec.call(value), !0; + } catch (e) { + return !1; + } + }, + regexClass = '[object RegExp]'; + isRegex = function isRegex(value) { + return ( + 'object' == typeof value && (hasToStringTag ? tryRegexExec(value) : to_string.call(value) === regexClass) + ); + }; + var strValue = String.prototype.valueOf, + tryStringObject = function tryStringObject(value) { + try { + return strValue.call(value), !0; + } catch (e) { + return !1; + } + }, + stringClass = '[object String]'; + isString = function isString(value) { + return ( + 'string' == typeof value || + ('object' == typeof value && + (hasToStringTag ? tryStringObject(value) : to_string.call(value) === stringClass)) + ); + }; + var supportsDescriptors = + $Object.defineProperty && + (function () { + try { + var obj = {}; + for (var _ in ($Object.defineProperty(obj, 'x', { enumerable: !1, value: obj }), obj)) return !1; + return obj.x === obj; + } catch (e) { + return !1; + } + })(), + defineProperties = + ((has = ObjectPrototype.hasOwnProperty), + (defineProperty = supportsDescriptors + ? function (object, name, method, forceAssign) { + (!forceAssign && name in object) || + $Object.defineProperty(object, name, { + configurable: !0, + enumerable: !1, + writable: !0, + value: method, + }); + } + : function (object, name, method, forceAssign) { + (!forceAssign && name in object) || (object[name] = method); + }), + function defineProperties(object, map, forceAssign) { + for (var name in map) has.call(map, name) && defineProperty(object, name, map[name], forceAssign); + }), + isPrimitive = function isPrimitive(input) { + var type = typeof input; + return null === input || ('object' !== type && 'function' !== type); + }, + isActualNaN = + $Number.isNaN || + function isActualNaN(x) { + return x != x; + }, + ES = { + ToInteger: function ToInteger(num) { + var n = +num; + return ( + isActualNaN(n) + ? (n = 0) + : 0 !== n && n !== 1 / 0 && n !== -1 / 0 && (n = (n > 0 || -1) * Math.floor(Math.abs(n))), + n + ); + }, + ToPrimitive: function ToPrimitive(input) { + var val, valueOf, toStr; + if (isPrimitive(input)) return input; + if (((valueOf = input.valueOf), isCallable(valueOf) && ((val = valueOf.call(input)), isPrimitive(val)))) + return val; + if (((toStr = input.toString), isCallable(toStr) && ((val = toStr.call(input)), isPrimitive(val)))) + return val; + throw new TypeError(); + }, + ToObject: function (o) { + if (null == o) throw new TypeError("can't convert " + o + ' to object'); + return $Object(o); + }, + ToUint32: function ToUint32(x) { + return x >>> 0; + }, + }, + Empty = function Empty() {}; + var has, defineProperty; + defineProperties(FunctionPrototype, { + bind: function bind(that) { + var target = this; + if (!isCallable(target)) throw new TypeError('Function.prototype.bind called on incompatible ' + target); + for ( + var bound, + args = array_slice.call(arguments, 1), + binder = function () { + if (this instanceof bound) { + var result = apply.call(target, this, array_concat.call(args, array_slice.call(arguments))); + return $Object(result) === result ? result : this; + } + return apply.call(target, that, array_concat.call(args, array_slice.call(arguments))); + }, + boundLength = max(0, target.length - args.length), + boundArgs = [], + i = 0; + i < boundLength; + i++ + ) + array_push.call(boundArgs, '$' + i); + return ( + (bound = $Function( + 'binder', + 'return function (' + array_join.call(boundArgs, ',') + '){ return binder.apply(this, arguments); }', + )(binder)), + target.prototype && + ((Empty.prototype = target.prototype), (bound.prototype = new Empty()), (Empty.prototype = null)), + bound + ); + }, + }); + var owns = call.bind(ObjectPrototype.hasOwnProperty), + toStr = call.bind(ObjectPrototype.toString), + arraySlice = call.bind(array_slice), + arraySliceApply = apply.bind(array_slice); + if ('object' == typeof document && document && document.documentElement) + try { + arraySlice(document.documentElement.childNodes); + } catch (e) { + var origArraySlice = arraySlice, + origArraySliceApply = arraySliceApply; + (arraySlice = function arraySliceIE(arr) { + for (var r = [], i = arr.length; i-- > 0; ) r[i] = arr[i]; + return origArraySliceApply(r, origArraySlice(arguments, 1)); + }), + (arraySliceApply = function arraySliceApplyIE(arr, args) { + return origArraySliceApply(arraySlice(arr), args); + }); + } + var strSlice = call.bind(StringPrototype.slice), + strSplit = call.bind(StringPrototype.split), + strIndexOf = call.bind(StringPrototype.indexOf), + pushCall = call.bind(array_push), + isEnum = call.bind(ObjectPrototype.propertyIsEnumerable), + arraySort = call.bind(ArrayPrototype.sort), + isArray = + $Array.isArray || + function isArray(obj) { + return '[object Array]' === toStr(obj); + }, + hasUnshiftReturnValueBug = 1 !== [].unshift(0); + defineProperties( + ArrayPrototype, + { + unshift: function () { + return array_unshift.apply(this, arguments), this.length; + }, + }, + hasUnshiftReturnValueBug, + ), + defineProperties($Array, { isArray }); + var boxedString = $Object('a'), + splitString = 'a' !== boxedString[0] || !(0 in boxedString), + properlyBoxesContext = function properlyBoxed(method) { + var properlyBoxesNonStrict = !0, + properlyBoxesStrict = !0, + threwException = !1; + if (method) + try { + method.call('foo', function (_, __, context) { + 'object' != typeof context && (properlyBoxesNonStrict = !1); + }), + method.call( + [1], + function () { + properlyBoxesStrict = 'string' == typeof this; + }, + 'x', + ); + } catch (e) { + threwException = !0; + } + return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict; + }; + defineProperties( + ArrayPrototype, + { + forEach: function forEach(callbackfn) { + var T, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + i = -1, + length = ES.ToUint32(self.length); + if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) + throw new TypeError('Array.prototype.forEach callback must be a function'); + for (; ++i < length; ) + i in self && (void 0 === T ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object)); + }, + }, + !properlyBoxesContext(ArrayPrototype.forEach), + ), + defineProperties( + ArrayPrototype, + { + map: function map(callbackfn) { + var T, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length), + result = $Array(length); + if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) + throw new TypeError('Array.prototype.map callback must be a function'); + for (var i = 0; i < length; i++) + i in self && + (result[i] = + void 0 === T ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object)); + return result; + }, + }, + !properlyBoxesContext(ArrayPrototype.map), + ), + defineProperties( + ArrayPrototype, + { + filter: function filter(callbackfn) { + var value, + T, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length), + result = []; + if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) + throw new TypeError('Array.prototype.filter callback must be a function'); + for (var i = 0; i < length; i++) + i in self && + ((value = self[i]), + (void 0 === T ? callbackfn(value, i, object) : callbackfn.call(T, value, i, object)) && + pushCall(result, value)); + return result; + }, + }, + !properlyBoxesContext(ArrayPrototype.filter), + ), + defineProperties( + ArrayPrototype, + { + every: function every(callbackfn) { + var T, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length); + if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) + throw new TypeError('Array.prototype.every callback must be a function'); + for (var i = 0; i < length; i++) + if ( + i in self && + !(void 0 === T ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object)) + ) + return !1; + return !0; + }, + }, + !properlyBoxesContext(ArrayPrototype.every), + ), + defineProperties( + ArrayPrototype, + { + some: function some(callbackfn) { + var T, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length); + if ((arguments.length > 1 && (T = arguments[1]), !isCallable(callbackfn))) + throw new TypeError('Array.prototype.some callback must be a function'); + for (var i = 0; i < length; i++) + if ( + i in self && + (void 0 === T ? callbackfn(self[i], i, object) : callbackfn.call(T, self[i], i, object)) + ) + return !0; + return !1; + }, + }, + !properlyBoxesContext(ArrayPrototype.some), + ); + var reduceCoercesToObject = !1; + ArrayPrototype.reduce && + (reduceCoercesToObject = + 'object' == + typeof ArrayPrototype.reduce.call('es5', function (_, __, ___, list) { + return list; + })); + defineProperties( + ArrayPrototype, + { + reduce: function reduce(callbackfn) { + var object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length); + if (!isCallable(callbackfn)) throw new TypeError('Array.prototype.reduce callback must be a function'); + if (0 === length && 1 === arguments.length) + throw new TypeError('reduce of empty array with no initial value'); + var result, + i = 0; + if (arguments.length >= 2) result = arguments[1]; + else + for (;;) { + if (i in self) { + result = self[i++]; + break; + } + if (++i >= length) throw new TypeError('reduce of empty array with no initial value'); + } + for (; i < length; i++) i in self && (result = callbackfn(result, self[i], i, object)); + return result; + }, + }, + !reduceCoercesToObject, + ); + var reduceRightCoercesToObject = !1; + ArrayPrototype.reduceRight && + (reduceRightCoercesToObject = + 'object' == + typeof ArrayPrototype.reduceRight.call('es5', function (_, __, ___, list) { + return list; + })); + defineProperties( + ArrayPrototype, + { + reduceRight: function reduceRight(callbackfn) { + var result, + object = ES.ToObject(this), + self = splitString && isString(this) ? strSplit(this, '') : object, + length = ES.ToUint32(self.length); + if (!isCallable(callbackfn)) + throw new TypeError('Array.prototype.reduceRight callback must be a function'); + if (0 === length && 1 === arguments.length) + throw new TypeError('reduceRight of empty array with no initial value'); + var i = length - 1; + if (arguments.length >= 2) result = arguments[1]; + else + for (;;) { + if (i in self) { + result = self[i--]; + break; + } + if (--i < 0) throw new TypeError('reduceRight of empty array with no initial value'); + } + if (i < 0) return result; + do { + i in self && (result = callbackfn(result, self[i], i, object)); + } while (i--); + return result; + }, + }, + !reduceRightCoercesToObject, + ); + var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && -1 !== [0, 1].indexOf(1, 2); + defineProperties( + ArrayPrototype, + { + indexOf: function indexOf(searchElement) { + var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this), + length = ES.ToUint32(self.length); + if (0 === length) return -1; + var i = 0; + for ( + arguments.length > 1 && (i = ES.ToInteger(arguments[1])), i = i >= 0 ? i : max(0, length + i); + i < length; + i++ + ) + if (i in self && self[i] === searchElement) return i; + return -1; + }, + }, + hasFirefox2IndexOfBug, + ); + var hasFirefox2LastIndexOfBug = ArrayPrototype.lastIndexOf && -1 !== [0, 1].lastIndexOf(0, -3); + defineProperties( + ArrayPrototype, + { + lastIndexOf: function lastIndexOf(searchElement) { + var self = splitString && isString(this) ? strSplit(this, '') : ES.ToObject(this), + length = ES.ToUint32(self.length); + if (0 === length) return -1; + var i = length - 1; + for ( + arguments.length > 1 && (i = min(i, ES.ToInteger(arguments[1]))), + i = i >= 0 ? i : length - Math.abs(i); + i >= 0; + i-- + ) + if (i in self && searchElement === self[i]) return i; + return -1; + }, + }, + hasFirefox2LastIndexOfBug, + ); + var spliceNoopReturnsEmptyArray = + ((a = [1, 2]), (result = a.splice()), 2 === a.length && isArray(result) && 0 === result.length); + var a, result; + defineProperties( + ArrayPrototype, + { + splice: function splice(start, deleteCount) { + return 0 === arguments.length ? [] : array_splice.apply(this, arguments); + }, + }, + !spliceNoopReturnsEmptyArray, + ); + var spliceWorksWithEmptyObject = ((obj = {}), ArrayPrototype.splice.call(obj, 0, 0, 1), 1 === obj.length); + var obj; + defineProperties( + ArrayPrototype, + { + splice: function splice(start, deleteCount) { + if (0 === arguments.length) return []; + var args = arguments; + return ( + (this.length = max(ES.ToInteger(this.length), 0)), + arguments.length > 0 && + 'number' != typeof deleteCount && + ((args = arraySlice(arguments)).length < 2 + ? pushCall(args, this.length - start) + : (args[1] = ES.ToInteger(deleteCount))), + array_splice.apply(this, args) + ); + }, + }, + !spliceWorksWithEmptyObject, + ); + var spliceWorksWithLargeSparseArrays = + ((arr = new $Array(1e5)), (arr[8] = 'x'), arr.splice(1, 1), 7 === arr.indexOf('x')), + spliceWorksWithSmallSparseArrays = (function () { + var n = 256, + arr = []; + return (arr[n] = 'a'), arr.splice(n + 1, 0, 'b'), 'a' === arr[n]; + })(); + var arr; + defineProperties( + ArrayPrototype, + { + splice: function splice(start, deleteCount) { + for ( + var from, + O = ES.ToObject(this), + A = [], + len = ES.ToUint32(O.length), + relativeStart = ES.ToInteger(start), + actualStart = relativeStart < 0 ? max(len + relativeStart, 0) : min(relativeStart, len), + actualDeleteCount = min(max(ES.ToInteger(deleteCount), 0), len - actualStart), + k = 0; + k < actualDeleteCount; + + ) + (from = $String(actualStart + k)), owns(O, from) && (A[k] = O[from]), (k += 1); + var to, + items = arraySlice(arguments, 2), + itemCount = items.length; + if (itemCount < actualDeleteCount) { + k = actualStart; + for (var maxK = len - actualDeleteCount; k < maxK; ) + (from = $String(k + actualDeleteCount)), + (to = $String(k + itemCount)), + owns(O, from) ? (O[to] = O[from]) : delete O[to], + (k += 1); + k = len; + for (var minK = len - actualDeleteCount + itemCount; k > minK; ) delete O[k - 1], (k -= 1); + } else if (itemCount > actualDeleteCount) + for (k = len - actualDeleteCount; k > actualStart; ) + (from = $String(k + actualDeleteCount - 1)), + (to = $String(k + itemCount - 1)), + owns(O, from) ? (O[to] = O[from]) : delete O[to], + (k -= 1); + k = actualStart; + for (var i = 0; i < items.length; ++i) (O[k] = items[i]), (k += 1); + return (O.length = len - actualDeleteCount + itemCount), A; + }, + }, + !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays, + ); + var hasStringJoinBug, + originalJoin = ArrayPrototype.join; + try { + hasStringJoinBug = '1,2,3' !== Array.prototype.join.call('123', ','); + } catch (e) { + hasStringJoinBug = !0; + } + hasStringJoinBug && + defineProperties( + ArrayPrototype, + { + join: function join(separator) { + var sep = void 0 === separator ? ',' : separator; + return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep); + }, + }, + hasStringJoinBug, + ); + var hasJoinUndefinedBug = '1,2' !== [1, 2].join(void 0); + hasJoinUndefinedBug && + defineProperties( + ArrayPrototype, + { + join: function join(separator) { + var sep = void 0 === separator ? ',' : separator; + return originalJoin.call(this, sep); + }, + }, + hasJoinUndefinedBug, + ); + var pushShim = function push(item) { + for (var O = ES.ToObject(this), n = ES.ToUint32(O.length), i = 0; i < arguments.length; ) + (O[n + i] = arguments[i]), (i += 1); + return (O.length = n + i), n + i; + }, + pushIsNotGeneric = (function () { + var obj = {}; + return ( + 1 !== Array.prototype.push.call(obj, void 0) || 1 !== obj.length || void 0 !== obj[0] || !owns(obj, 0) + ); + })(); + defineProperties( + ArrayPrototype, + { + push: function push(item) { + return isArray(this) ? array_push.apply(this, arguments) : pushShim.apply(this, arguments); + }, + }, + pushIsNotGeneric, + ); + var pushUndefinedIsWeird = (function () { + var arr = []; + return 1 !== arr.push(void 0) || 1 !== arr.length || void 0 !== arr[0] || !owns(arr, 0); + })(); + defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird), + defineProperties( + ArrayPrototype, + { + slice: function (start, end) { + var arr = isString(this) ? strSplit(this, '') : this; + return arraySliceApply(arr, arguments); + }, + }, + splitString, + ); + var sortIgnoresNonFunctions = (function () { + try { + [1, 2].sort(null); + } catch (e) { + try { + [1, 2].sort({}); + } catch (e2) { + return !1; + } + } + return !0; + })(), + sortThrowsOnRegex = (function () { + try { + return [1, 2].sort(/a/), !1; + } catch (e) {} + return !0; + })(), + sortIgnoresUndefined = (function () { + try { + return [1, 2].sort(void 0), !0; + } catch (e) {} + return !1; + })(); + defineProperties( + ArrayPrototype, + { + sort: function sort(compareFn) { + if (void 0 === compareFn) return arraySort(this); + if (!isCallable(compareFn)) throw new TypeError('Array.prototype.sort callback must be a function'); + return arraySort(this, compareFn); + }, + }, + sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex, + ); + var hasDontEnumBug = !isEnum({ toString: null }, 'toString'), + hasProtoEnumBug = isEnum(function () {}, 'prototype'), + hasStringEnumBug = !owns('x', '0'), + equalsConstructorPrototype = function (o) { + var ctor = o.constructor; + return ctor && ctor.prototype === o; + }, + excludedKeys = { + $applicationCache: !0, + $console: !0, + $external: !0, + $frame: !0, + $frameElement: !0, + $frames: !0, + $innerHeight: !0, + $innerWidth: !0, + $onmozfullscreenchange: !0, + $onmozfullscreenerror: !0, + $outerHeight: !0, + $outerWidth: !0, + $pageXOffset: !0, + $pageYOffset: !0, + $parent: !0, + $scrollLeft: !0, + $scrollTop: !0, + $scrollX: !0, + $scrollY: !0, + $self: !0, + $webkitIndexedDB: !0, + $webkitStorageInfo: !0, + $window: !0, + $width: !0, + $height: !0, + $top: !0, + $localStorage: !0, + }, + hasAutomationEqualityBug = (function () { + if ('undefined' == typeof window) return !1; + for (var k in window) + try { + !excludedKeys['$' + k] && + owns(window, k) && + null !== window[k] && + 'object' == typeof window[k] && + equalsConstructorPrototype(window[k]); + } catch (e) { + return !0; + } + return !1; + })(), + equalsConstructorPrototypeIfNotBuggy = function (object) { + if ('undefined' == typeof window || !hasAutomationEqualityBug) return equalsConstructorPrototype(object); + try { + return equalsConstructorPrototype(object); + } catch (e) { + return !1; + } + }, + dontEnums = [ + 'toString', + 'toLocaleString', + 'valueOf', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'constructor', + ], + dontEnumsLength = dontEnums.length, + isStandardArguments = function isArguments(value) { + return '[object Arguments]' === toStr(value); + }, + isLegacyArguments = function isArguments(value) { + return ( + null !== value && + 'object' == typeof value && + 'number' == typeof value.length && + value.length >= 0 && + !isArray(value) && + isCallable(value.callee) + ); + }, + isArguments = isStandardArguments(arguments) ? isStandardArguments : isLegacyArguments; + defineProperties($Object, { + keys: function keys(object) { + var isFn = isCallable(object), + isArgs = isArguments(object), + isObject = null !== object && 'object' == typeof object, + isStr = isObject && isString(object); + if (!isObject && !isFn && !isArgs) throw new TypeError('Object.keys called on a non-object'); + var theKeys = [], + skipProto = hasProtoEnumBug && isFn; + if ((isStr && hasStringEnumBug) || isArgs) + for (var i = 0; i < object.length; ++i) pushCall(theKeys, $String(i)); + if (!isArgs) + for (var name in object) + (skipProto && 'prototype' === name) || !owns(object, name) || pushCall(theKeys, $String(name)); + if (hasDontEnumBug) + for ( + var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object), j = 0; + j < dontEnumsLength; + j++ + ) { + var dontEnum = dontEnums[j]; + (skipConstructor && 'constructor' === dontEnum) || + !owns(object, dontEnum) || + pushCall(theKeys, dontEnum); + } + return theKeys; + }, + }); + var keysWorksWithArguments = + $Object.keys && + (function () { + return 2 === $Object.keys(arguments).length; + })(1, 2), + keysHasArgumentsLengthBug = + $Object.keys && + (function () { + var argKeys = $Object.keys(arguments); + return 1 !== arguments.length || 1 !== argKeys.length || 1 !== argKeys[0]; + })(1), + originalKeys = $Object.keys; + defineProperties( + $Object, + { + keys: function keys(object) { + return isArguments(object) ? originalKeys(arraySlice(object)) : originalKeys(object); + }, + }, + !keysWorksWithArguments || keysHasArgumentsLengthBug, + ); + var hasToDateStringFormatBug, + hasToStringFormatBug, + hasNegativeMonthYearBug = 0 !== new Date(-0xc782b5b342b24).getUTCMonth(), + aNegativeTestDate = new Date(-0x55d318d56a724), + aPositiveTestDate = new Date(14496624e5), + hasToUTCStringFormatBug = 'Mon, 01 Jan -45875 11:59:59 GMT' !== aNegativeTestDate.toUTCString(); + aNegativeTestDate.getTimezoneOffset() < -720 + ? ((hasToDateStringFormatBug = 'Tue Jan 02 -45875' !== aNegativeTestDate.toDateString()), + (hasToStringFormatBug = !/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( + String(aPositiveTestDate), + ))) + : ((hasToDateStringFormatBug = 'Mon Jan 01 -45875' !== aNegativeTestDate.toDateString()), + (hasToStringFormatBug = !/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test( + String(aPositiveTestDate), + ))); + var originalGetFullYear = call.bind(Date.prototype.getFullYear), + originalGetMonth = call.bind(Date.prototype.getMonth), + originalGetDate = call.bind(Date.prototype.getDate), + originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear), + originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth), + originalGetUTCDate = call.bind(Date.prototype.getUTCDate), + originalGetUTCDay = call.bind(Date.prototype.getUTCDay), + originalGetUTCHours = call.bind(Date.prototype.getUTCHours), + originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes), + originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds), + originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds), + dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + monthName = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + daysInMonth = function daysInMonth(month, year) { + return originalGetDate(new Date(year, month, 0)); + }; + defineProperties( + Date.prototype, + { + getFullYear: function getFullYear() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetFullYear(this); + return year < 0 && originalGetMonth(this) > 11 ? year + 1 : year; + }, + getMonth: function getMonth() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetFullYear(this), + month = originalGetMonth(this); + return year < 0 && month > 11 ? 0 : month; + }, + getDate: function getDate() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetFullYear(this), + month = originalGetMonth(this), + date = originalGetDate(this); + return year < 0 && month > 11 ? (12 === month ? date : daysInMonth(0, year + 1) - date + 1) : date; + }, + getUTCFullYear: function getUTCFullYear() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetUTCFullYear(this); + return year < 0 && originalGetUTCMonth(this) > 11 ? year + 1 : year; + }, + getUTCMonth: function getUTCMonth() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetUTCFullYear(this), + month = originalGetUTCMonth(this); + return year < 0 && month > 11 ? 0 : month; + }, + getUTCDate: function getUTCDate() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var year = originalGetUTCFullYear(this), + month = originalGetUTCMonth(this), + date = originalGetUTCDate(this); + return year < 0 && month > 11 ? (12 === month ? date : daysInMonth(0, year + 1) - date + 1) : date; + }, + }, + hasNegativeMonthYearBug, + ), + defineProperties( + Date.prototype, + { + toUTCString: function toUTCString() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var day = originalGetUTCDay(this), + date = originalGetUTCDate(this), + month = originalGetUTCMonth(this), + year = originalGetUTCFullYear(this), + hour = originalGetUTCHours(this), + minute = originalGetUTCMinutes(this), + second = originalGetUTCSeconds(this); + return ( + dayName[day] + + ', ' + + (date < 10 ? '0' + date : date) + + ' ' + + monthName[month] + + ' ' + + year + + ' ' + + (hour < 10 ? '0' + hour : hour) + + ':' + + (minute < 10 ? '0' + minute : minute) + + ':' + + (second < 10 ? '0' + second : second) + + ' GMT' + ); + }, + }, + hasNegativeMonthYearBug || hasToUTCStringFormatBug, + ), + defineProperties( + Date.prototype, + { + toDateString: function toDateString() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var day = this.getDay(), + date = this.getDate(), + month = this.getMonth(), + year = this.getFullYear(); + return dayName[day] + ' ' + monthName[month] + ' ' + (date < 10 ? '0' + date : date) + ' ' + year; + }, + }, + hasNegativeMonthYearBug || hasToDateStringFormatBug, + ), + (hasNegativeMonthYearBug || hasToStringFormatBug) && + ((Date.prototype.toString = function toString() { + if (!(this && this instanceof Date)) throw new TypeError('this is not a Date object.'); + var day = this.getDay(), + date = this.getDate(), + month = this.getMonth(), + year = this.getFullYear(), + hour = this.getHours(), + minute = this.getMinutes(), + second = this.getSeconds(), + timezoneOffset = this.getTimezoneOffset(), + hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60), + minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60); + return ( + dayName[day] + + ' ' + + monthName[month] + + ' ' + + (date < 10 ? '0' + date : date) + + ' ' + + year + + ' ' + + (hour < 10 ? '0' + hour : hour) + + ':' + + (minute < 10 ? '0' + minute : minute) + + ':' + + (second < 10 ? '0' + second : second) + + ' GMT' + + (timezoneOffset > 0 ? '-' : '+') + + (hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) + + (minutesOffset < 10 ? '0' + minutesOffset : minutesOffset) + ); + }), + supportsDescriptors && + $Object.defineProperty(Date.prototype, 'toString', { configurable: !0, enumerable: !1, writable: !0 })); + var negativeDate = -621987552e5, + negativeYearString = '-000001', + hasNegativeDateBug = + Date.prototype.toISOString && -1 === new Date(negativeDate).toISOString().indexOf(negativeYearString), + hasSafari51DateBug = + Date.prototype.toISOString && '1969-12-31T23:59:59.999Z' !== new Date(-1).toISOString(), + getTime = call.bind(Date.prototype.getTime); + defineProperties( + Date.prototype, + { + toISOString: function toISOString() { + if (!isFinite(this) || !isFinite(getTime(this))) + throw new RangeError('Date.prototype.toISOString called on non-finite value.'); + var year = originalGetUTCFullYear(this), + month = originalGetUTCMonth(this); + year += Math.floor(month / 12); + var result = [ + (month = ((month % 12) + 12) % 12) + 1, + originalGetUTCDate(this), + originalGetUTCHours(this), + originalGetUTCMinutes(this), + originalGetUTCSeconds(this), + ]; + year = + (year < 0 ? '-' : year > 9999 ? '+' : '') + + strSlice('00000' + Math.abs(year), 0 <= year && year <= 9999 ? -4 : -6); + for (var i = 0; i < result.length; ++i) result[i] = strSlice('00' + result[i], -2); + return ( + year + + '-' + + arraySlice(result, 0, 2).join('-') + + 'T' + + arraySlice(result, 2).join(':') + + '.' + + strSlice('000' + originalGetUTCMilliseconds(this), -3) + + 'Z' + ); + }, + }, + hasNegativeDateBug || hasSafari51DateBug, + ), + (function () { + try { + return ( + Date.prototype.toJSON && + null === new Date(NaN).toJSON() && + -1 !== new Date(negativeDate).toJSON().indexOf(negativeYearString) && + Date.prototype.toJSON.call({ + toISOString: function () { + return !0; + }, + }) + ); + } catch (e) { + return !1; + } + })() || + (Date.prototype.toJSON = function toJSON(key) { + var O = $Object(this), + tv = ES.ToPrimitive(O); + if ('number' == typeof tv && !isFinite(tv)) return null; + var toISO = O.toISOString; + if (!isCallable(toISO)) throw new TypeError('toISOString property is not callable'); + return toISO.call(O); + }); + var supportsExtendedYears = 1e15 === Date.parse('+033658-09-27T01:46:40.000Z'), + acceptsInvalidDates = + !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || + !isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || + !isNaN(Date.parse('2012-12-31T23:59:60.000Z')); + if (isNaN(Date.parse('2000-01-01T00:00:00.000Z')) || acceptsInvalidDates || !supportsExtendedYears) { + var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1, + hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime()); + Date = (function (NativeDate) { + var DateShim = function Date(Y, M, D, h, m, s, ms) { + var date, + length = arguments.length; + if (this instanceof NativeDate) { + var seconds = s, + millis = ms; + if (hasSafariSignedIntBug && length >= 7 && ms > maxSafeUnsigned32Bit) { + var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, + sToShift = Math.floor(msToShift / 1e3); + (seconds += sToShift), (millis -= 1e3 * sToShift); + } + date = + 1 === length && $String(Y) === Y + ? new NativeDate(DateShim.parse(Y)) + : length >= 7 + ? new NativeDate(Y, M, D, h, m, seconds, millis) + : length >= 6 + ? new NativeDate(Y, M, D, h, m, seconds) + : length >= 5 + ? new NativeDate(Y, M, D, h, m) + : length >= 4 + ? new NativeDate(Y, M, D, h) + : length >= 3 + ? new NativeDate(Y, M, D) + : length >= 2 + ? new NativeDate(Y, M) + : length >= 1 + ? new NativeDate(Y instanceof NativeDate ? +Y : Y) + : new NativeDate(); + } else date = NativeDate.apply(this, arguments); + return isPrimitive(date) || defineProperties(date, { constructor: DateShim }, !0), date; + }, + isoDateExpression = new RegExp( + '^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$', + ), + months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], + dayFromMonth = function dayFromMonth(year, month) { + var t = month > 1 ? 1 : 0; + return ( + months[month] + + Math.floor((year - 1969 + t) / 4) - + Math.floor((year - 1901 + t) / 100) + + Math.floor((year - 1601 + t) / 400) + + 365 * (year - 1970) + ); + }, + toUTC = function toUTC(t) { + var s = 0, + ms = t; + if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) { + var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) * maxSafeUnsigned32Bit, + sToShift = Math.floor(msToShift / 1e3); + (s += sToShift), (ms -= 1e3 * sToShift); + } + return $Number(new NativeDate(1970, 0, 1, 0, 0, s, ms)); + }; + for (var key in NativeDate) owns(NativeDate, key) && (DateShim[key] = NativeDate[key]); + defineProperties(DateShim, { now: NativeDate.now, UTC: NativeDate.UTC }, !0), + (DateShim.prototype = NativeDate.prototype), + defineProperties(DateShim.prototype, { constructor: DateShim }, !0); + var parseShim = function parse(string) { + var match = isoDateExpression.exec(string); + if (match) { + var result, + year = $Number(match[1]), + month = $Number(match[2] || 1) - 1, + day = $Number(match[3] || 1) - 1, + hour = $Number(match[4] || 0), + minute = $Number(match[5] || 0), + second = $Number(match[6] || 0), + millisecond = Math.floor(1e3 * $Number(match[7] || 0)), + isLocalTime = Boolean(match[4] && !match[8]), + signOffset = '-' === match[9] ? 1 : -1, + hourOffset = $Number(match[10] || 0), + minuteOffset = $Number(match[11] || 0); + return hour < (minute > 0 || second > 0 || millisecond > 0 ? 24 : 25) && + minute < 60 && + second < 60 && + millisecond < 1e3 && + month > -1 && + month < 12 && + hourOffset < 24 && + minuteOffset < 60 && + day > -1 && + day < dayFromMonth(year, month + 1) - dayFromMonth(year, month) && + ((result = + 1e3 * + (60 * + ((result = 60 * (24 * (dayFromMonth(year, month) + day) + hour + hourOffset * signOffset)) + + minute + + minuteOffset * signOffset) + + second) + + millisecond), + isLocalTime && (result = toUTC(result)), + -864e13 <= result && result <= 864e13) + ? result + : NaN; + } + return NativeDate.parse.apply(this, arguments); + }; + return defineProperties(DateShim, { parse: parseShim }), DateShim; + })(Date); + } + Date.now || + (Date.now = function now() { + return new Date().getTime(); + }); + var hasToFixedBugs = + NumberPrototype.toFixed && + ('0.000' !== (8e-5).toFixed(3) || + '1' !== (0.9).toFixed(0) || + '1.25' !== (1.255).toFixed(2) || + '1000000000000000128' !== (0xde0b6b3a7640080).toFixed(0)), + toFixedHelpers = { + base: 1e7, + size: 6, + data: [0, 0, 0, 0, 0, 0], + multiply: function multiply(n, c) { + for (var i = -1, c2 = c; ++i < toFixedHelpers.size; ) + (c2 += n * toFixedHelpers.data[i]), + (toFixedHelpers.data[i] = c2 % toFixedHelpers.base), + (c2 = Math.floor(c2 / toFixedHelpers.base)); + }, + divide: function divide(n) { + for (var i = toFixedHelpers.size, c = 0; --i >= 0; ) + (c += toFixedHelpers.data[i]), + (toFixedHelpers.data[i] = Math.floor(c / n)), + (c = (c % n) * toFixedHelpers.base); + }, + numToString: function numToString() { + for (var i = toFixedHelpers.size, s = ''; --i >= 0; ) + if ('' !== s || 0 === i || 0 !== toFixedHelpers.data[i]) { + var t = $String(toFixedHelpers.data[i]); + '' === s ? (s = t) : (s += strSlice('0000000', 0, 7 - t.length) + t); + } + return s; + }, + pow: function pow(x, n, acc) { + return 0 === n ? acc : n % 2 == 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc); + }, + log: function log(x) { + for (var n = 0, x2 = x; x2 >= 4096; ) (n += 12), (x2 /= 4096); + for (; x2 >= 2; ) (n += 1), (x2 /= 2); + return n; + }, + }; + defineProperties( + NumberPrototype, + { + toFixed: function toFixed(fractionDigits) { + var f, x, s, m, e, z, j, k; + if (((f = $Number(fractionDigits)), (f = isActualNaN(f) ? 0 : Math.floor(f)) < 0 || f > 20)) + throw new RangeError('Number.toFixed called with invalid number of decimals'); + if (((x = $Number(this)), isActualNaN(x))) return 'NaN'; + if (x <= -1e21 || x >= 1e21) return $String(x); + if (((s = ''), x < 0 && ((s = '-'), (x = -x)), (m = '0'), x > 1e-21)) + if ( + ((z = + (e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69) < 0 + ? x * toFixedHelpers.pow(2, -e, 1) + : x / toFixedHelpers.pow(2, e, 1)), + (z *= 4503599627370496), + (e = 52 - e) > 0) + ) { + for (toFixedHelpers.multiply(0, z), j = f; j >= 7; ) toFixedHelpers.multiply(1e7, 0), (j -= 7); + for (toFixedHelpers.multiply(toFixedHelpers.pow(10, j, 1), 0), j = e - 1; j >= 23; ) + toFixedHelpers.divide(1 << 23), (j -= 23); + toFixedHelpers.divide(1 << j), + toFixedHelpers.multiply(1, 1), + toFixedHelpers.divide(2), + (m = toFixedHelpers.numToString()); + } else + toFixedHelpers.multiply(0, z), + toFixedHelpers.multiply(1 << -e, 0), + (m = toFixedHelpers.numToString() + strSlice('0.00000000000000000000', 2, 2 + f)); + return (m = + f > 0 + ? (k = m.length) <= f + ? s + strSlice('0.0000000000000000000', 0, f - k + 2) + m + : s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f) + : s + m); + }, + }, + hasToFixedBugs, + ); + var hasToPrecisionUndefinedBug = (function () { + try { + return '1' === (1).toPrecision(void 0); + } catch (e) { + return !0; + } + })(), + originalToPrecision = NumberPrototype.toPrecision; + defineProperties( + NumberPrototype, + { + toPrecision: function toPrecision(precision) { + return void 0 === precision + ? originalToPrecision.call(this) + : originalToPrecision.call(this, precision); + }, + }, + hasToPrecisionUndefinedBug, + ), + 2 !== 'ab'.split(/(?:ab)*/).length || + 4 !== '.'.split(/(.?)(.?)/).length || + 't' === 'tesst'.split(/(s)*/)[1] || + 4 !== 'test'.split(/(?:)/, -1).length || + ''.split(/.?/).length || + '.'.split(/()()/).length > 1 + ? ((compliantExecNpcg = void 0 === /()??/.exec('')[1]), + (maxSafe32BitInt = Math.pow(2, 32) - 1), + (StringPrototype.split = function (separator, limit) { + var string = String(this); + if (void 0 === separator && 0 === limit) return []; + if (!isRegex(separator)) return strSplit(this, separator, limit); + var separator2, + match, + lastIndex, + lastLength, + output = [], + flags = + (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''), + lastLastIndex = 0, + separatorCopy = new RegExp(separator.source, flags + 'g'); + compliantExecNpcg || (separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags)); + var splitLimit = void 0 === limit ? maxSafe32BitInt : ES.ToUint32(limit); + for ( + match = separatorCopy.exec(string); + match && + !( + (lastIndex = match.index + match[0].length) > lastLastIndex && + (pushCall(output, strSlice(string, lastLastIndex, match.index)), + !compliantExecNpcg && + match.length > 1 && + match[0].replace(separator2, function () { + for (var i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (match[i] = void 0); + }), + match.length > 1 && match.index < string.length && array_push.apply(output, arraySlice(match, 1)), + (lastLength = match[0].length), + (lastLastIndex = lastIndex), + output.length >= splitLimit) + ); + + ) + separatorCopy.lastIndex === match.index && separatorCopy.lastIndex++, + (match = separatorCopy.exec(string)); + return ( + lastLastIndex === string.length + ? (!lastLength && separatorCopy.test('')) || pushCall(output, '') + : pushCall(output, strSlice(string, lastLastIndex)), + output.length > splitLimit ? arraySlice(output, 0, splitLimit) : output + ); + })) + : '0'.split(void 0, 0).length && + (StringPrototype.split = function split(separator, limit) { + return void 0 === separator && 0 === limit ? [] : strSplit(this, separator, limit); + }); + var compliantExecNpcg, maxSafe32BitInt; + var str_replace = StringPrototype.replace; + (groups = []), + 'x'.replace(/x(.)?/g, function (match, group) { + pushCall(groups, group); + }), + (1 !== groups.length || void 0 !== groups[0]) && + (StringPrototype.replace = function replace(searchValue, replaceValue) { + var isFn = isCallable(replaceValue), + hasCapturingGroups = isRegex(searchValue) && /\)[*?]/.test(searchValue.source); + if (isFn && hasCapturingGroups) { + var wrappedReplaceValue = function (match) { + var length = arguments.length, + originalLastIndex = searchValue.lastIndex; + searchValue.lastIndex = 0; + var args = searchValue.exec(match) || []; + return ( + (searchValue.lastIndex = originalLastIndex), + pushCall(args, arguments[length - 2], arguments[length - 1]), + replaceValue.apply(this, args) + ); + }; + return str_replace.call(this, searchValue, wrappedReplaceValue); + } + return str_replace.call(this, searchValue, replaceValue); + }); + var groups; + var string_substr = StringPrototype.substr, + hasNegativeSubstrBug = ''.substr && 'b' !== '0b'.substr(-1); + defineProperties( + StringPrototype, + { + substr: function substr(start, length) { + var normalizedStart = start; + return ( + start < 0 && (normalizedStart = max(this.length + start, 0)), + string_substr.call(this, normalizedStart, length) + ); + }, + }, + hasNegativeSubstrBug, + ); + var ws = '\t\n\v\f\r   ᠎              \u2028\u2029\ufeff', + zeroWidth = '​', + wsRegexChars = '[' + ws + ']', + trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*'), + trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$'), + hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !zeroWidth.trim()); + defineProperties( + StringPrototype, + { + trim: function trim() { + if (null == this) throw new TypeError("can't convert " + this + ' to object'); + return $String(this).replace(trimBeginRegexp, '').replace(trimEndRegexp, ''); + }, + }, + hasTrimWhitespaceBug, + ); + var trim = call.bind(String.prototype.trim), + hasLastIndexBug = StringPrototype.lastIndexOf && -1 !== 'abcあい'.lastIndexOf('あい', 2); + defineProperties( + StringPrototype, + { + lastIndexOf: function lastIndexOf(searchString) { + if (null == this) throw new TypeError("can't convert " + this + ' to object'); + for ( + var S = $String(this), + searchStr = $String(searchString), + numPos = arguments.length > 1 ? $Number(arguments[1]) : NaN, + pos = isActualNaN(numPos) ? 1 / 0 : ES.ToInteger(numPos), + start = min(max(pos, 0), S.length), + searchLen = searchStr.length, + k = start + searchLen; + k > 0; + + ) { + k = max(0, k - searchLen); + var index = strIndexOf(strSlice(S, k, start + searchLen), searchStr); + if (-1 !== index) return k + index; + } + return -1; + }, + }, + hasLastIndexBug, + ); + var originalLastIndexOf = StringPrototype.lastIndexOf; + defineProperties( + StringPrototype, + { + lastIndexOf: function lastIndexOf(searchString) { + return originalLastIndexOf.apply(this, arguments); + }, + }, + 1 !== StringPrototype.lastIndexOf.length, + ), + (8 !== parseInt(ws + '08') || 22 !== parseInt(ws + '0x16')) && + (parseInt = + ((origParseInt = parseInt), + (hexRegex = /^[-+]?0[xX]/), + function parseInt(str, radix) { + var string = trim(String(str)), + defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10); + return origParseInt(string, defaultedRadix); + })); + var origParseInt, hexRegex; + 1 / parseFloat('-0') != -1 / 0 && + (parseFloat = + ((origParseFloat = parseFloat), + function parseFloat(string) { + var inputString = trim(String(string)), + result = origParseFloat(inputString); + return 0 === result && '-' === strSlice(inputString, 0, 1) ? -0 : result; + })); + var origParseFloat; + if ('RangeError: test' !== String(new RangeError('test'))) { + var errorToStringShim = function toString() { + if (null == this) throw new TypeError("can't convert " + this + ' to object'); + var name = this.name; + void 0 === name ? (name = 'Error') : 'string' != typeof name && (name = $String(name)); + var msg = this.message; + return ( + void 0 === msg ? (msg = '') : 'string' != typeof msg && (msg = $String(msg)), + name ? (msg ? name + ': ' + msg : name) : msg + ); + }; + Error.prototype.toString = errorToStringShim; + } + if (supportsDescriptors) { + var ensureNonEnumerable = function (obj, prop) { + if (isEnum(obj, prop)) { + var desc = Object.getOwnPropertyDescriptor(obj, prop); + desc.configurable && ((desc.enumerable = !1), Object.defineProperty(obj, prop, desc)); + } + }; + ensureNonEnumerable(Error.prototype, 'message'), + '' !== Error.prototype.message && (Error.prototype.message = ''), + ensureNonEnumerable(Error.prototype, 'name'); + } + if ('/a/gim' !== String(/a/gim)) { + var regexToString = function toString() { + var str = '/' + this.source + '/'; + return this.global && (str += 'g'), this.ignoreCase && (str += 'i'), this.multiline && (str += 'm'), str; + }; + RegExp.prototype.toString = regexToString; + } + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + })(); + }, + 6473: function (module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_FACTORY__, + __WEBPACK_AMD_DEFINE_RESULT__, + process = __webpack_require__(34406); + (__WEBPACK_AMD_DEFINE_FACTORY__ = function () { + 'use strict'; + var ArrayIterator, + _apply = Function.call.bind(Function.apply), + _call = Function.call.bind(Function.call), + isArray = Array.isArray, + keys = Object.keys, + not = function notThunker(func) { + return function notThunk() { + return !_apply(func, this, arguments); + }; + }, + throwsError = function (func) { + try { + return func(), !1; + } catch (e) { + return !0; + } + }, + valueOrFalseIfThrows = function valueOrFalseIfThrows(func) { + try { + return func(); + } catch (e) { + return !1; + } + }, + isCallableWithoutNew = not(throwsError), + arePropertyDescriptorsSupported = function () { + return !throwsError(function () { + return Object.defineProperty({}, 'x', { get: function () {} }); + }); + }, + supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported(), + functionsHaveNames = 'foo' === function foo() {}.name, + _forEach = Function.call.bind(Array.prototype.forEach), + _reduce = Function.call.bind(Array.prototype.reduce), + _filter = Function.call.bind(Array.prototype.filter), + _some = Function.call.bind(Array.prototype.some), + defineProperty = function (object, name, value, force) { + (!force && name in object) || + (supportsDescriptors + ? Object.defineProperty(object, name, { configurable: !0, enumerable: !1, writable: !0, value }) + : (object[name] = value)); + }, + defineProperties = function (object, map, forceOverride) { + _forEach(keys(map), function (name) { + var method = map[name]; + defineProperty(object, name, method, !!forceOverride); + }); + }, + _toString = Function.call.bind(Object.prototype.toString), + isCallable = function IsCallableFast(x) { + return 'function' == typeof x; + }, + Value = { + getter: function (object, name, getter) { + if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); + Object.defineProperty(object, name, { configurable: !0, enumerable: !1, get: getter }); + }, + proxy: function (originalObject, key, targetObject) { + if (!supportsDescriptors) throw new TypeError('getters require true ES5 support'); + var originalDescriptor = Object.getOwnPropertyDescriptor(originalObject, key); + Object.defineProperty(targetObject, key, { + configurable: originalDescriptor.configurable, + enumerable: originalDescriptor.enumerable, + get: function getKey() { + return originalObject[key]; + }, + set: function setKey(value) { + originalObject[key] = value; + }, + }); + }, + redefine: function (object, property, newValue) { + if (supportsDescriptors) { + var descriptor = Object.getOwnPropertyDescriptor(object, property); + (descriptor.value = newValue), Object.defineProperty(object, property, descriptor); + } else object[property] = newValue; + }, + defineByDescriptor: function (object, property, descriptor) { + supportsDescriptors + ? Object.defineProperty(object, property, descriptor) + : 'value' in descriptor && (object[property] = descriptor.value); + }, + preserveToString: function (target, source) { + source && + isCallable(source.toString) && + defineProperty(target, 'toString', source.toString.bind(source), !0); + }, + }, + create = + Object.create || + function (prototype, properties) { + var Prototype = function Prototype() {}; + Prototype.prototype = prototype; + var object = new Prototype(); + return ( + void 0 !== properties && + keys(properties).forEach(function (key) { + Value.defineByDescriptor(object, key, properties[key]); + }), + object + ); + }, + supportsSubclassing = function (C, f) { + return ( + !!Object.setPrototypeOf && + valueOrFalseIfThrows(function () { + var Sub = function Subclass(arg) { + var o = new C(arg); + return Object.setPrototypeOf(o, Subclass.prototype), o; + }; + return ( + Object.setPrototypeOf(Sub, C), + (Sub.prototype = create(C.prototype, { constructor: { value: Sub } })), + f(Sub) + ); + }) + ); + }, + globals = (function () { + if ('undefined' != typeof self) return self; + if ('undefined' != typeof window) return window; + if (void 0 !== __webpack_require__.g) return __webpack_require__.g; + throw new Error('unable to locate global object'); + })(), + globalIsFinite = globals.isFinite, + _indexOf = Function.call.bind(String.prototype.indexOf), + _arrayIndexOfApply = Function.apply.bind(Array.prototype.indexOf), + _concat = Function.call.bind(Array.prototype.concat), + _strSlice = Function.call.bind(String.prototype.slice), + _push = Function.call.bind(Array.prototype.push), + _pushApply = Function.apply.bind(Array.prototype.push), + _shift = Function.call.bind(Array.prototype.shift), + _max = Math.max, + _min = Math.min, + _floor = Math.floor, + _abs = Math.abs, + _exp = Math.exp, + _log = Math.log, + _sqrt = Math.sqrt, + _hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty), + noop = function () {}, + OrigMap = globals.Map, + origMapDelete = OrigMap && OrigMap.prototype.delete, + origMapGet = OrigMap && OrigMap.prototype.get, + origMapHas = OrigMap && OrigMap.prototype.has, + origMapSet = OrigMap && OrigMap.prototype.set, + Symbol = globals.Symbol || {}, + symbolSpecies = Symbol.species || '@@species', + numberIsNaN = + Number.isNaN || + function isNaN(value) { + return value != value; + }, + numberIsFinite = + Number.isFinite || + function isFinite(value) { + return 'number' == typeof value && globalIsFinite(value); + }, + _sign = isCallable(Math.sign) + ? Math.sign + : function sign(value) { + var number = Number(value); + return 0 === number || numberIsNaN(number) ? number : number < 0 ? -1 : 1; + }, + _log1p = function log1p(value) { + var x = Number(value); + return x < -1 || numberIsNaN(x) + ? NaN + : 0 === x || x === 1 / 0 + ? x + : -1 === x + ? -1 / 0 + : 1 + x - 1 == 0 + ? x + : x * (_log(1 + x) / (1 + x - 1)); + }, + isStandardArguments = function isArguments(value) { + return '[object Arguments]' === _toString(value); + }, + isLegacyArguments = function isArguments(value) { + return ( + null !== value && + 'object' == typeof value && + 'number' == typeof value.length && + value.length >= 0 && + '[object Array]' !== _toString(value) && + '[object Function]' === _toString(value.callee) + ); + }, + isArguments = isStandardArguments(arguments) ? isStandardArguments : isLegacyArguments, + Type = { + primitive: function (x) { + return null === x || ('function' != typeof x && 'object' != typeof x); + }, + string: function (x) { + return '[object String]' === _toString(x); + }, + regex: function (x) { + return '[object RegExp]' === _toString(x); + }, + symbol: function (x) { + return 'function' == typeof globals.Symbol && 'symbol' == typeof x; + }, + }, + overrideNative = function overrideNative(object, property, replacement) { + var original = object[property]; + defineProperty(object, property, replacement, !0), Value.preserveToString(object[property], original); + }, + hasSymbols = 'function' == typeof Symbol && 'function' == typeof Symbol.for && Type.symbol(Symbol()), + $iterator$ = Type.symbol(Symbol.iterator) ? Symbol.iterator : '_es6-shim iterator_'; + globals.Set && 'function' == typeof new globals.Set()['@@iterator'] && ($iterator$ = '@@iterator'), + globals.Reflect || defineProperty(globals, 'Reflect', {}, !0); + var o, + Reflect = globals.Reflect, + $String = String, + domAll = 'undefined' != typeof document && document ? document.all : null, + isNullOrUndefined = + null == domAll + ? function isNullOrUndefined(x) { + return null == x; + } + : function isNullOrUndefinedAndNotDocumentAll(x) { + return null == x && x !== domAll; + }, + ES = { + Call: function Call(F, V) { + var args = arguments.length > 2 ? arguments[2] : []; + if (!ES.IsCallable(F)) throw new TypeError(F + ' is not a function'); + return _apply(F, V, args); + }, + RequireObjectCoercible: function (x, optMessage) { + if (isNullOrUndefined(x)) throw new TypeError(optMessage || 'Cannot call method on ' + x); + return x; + }, + TypeIsObject: function (x) { + return ( + null != x && !0 !== x && !1 !== x && ('function' == typeof x || 'object' == typeof x || x === domAll) + ); + }, + ToObject: function (o, optMessage) { + return Object(ES.RequireObjectCoercible(o, optMessage)); + }, + IsCallable: isCallable, + IsConstructor: function (x) { + return ES.IsCallable(x); + }, + ToInt32: function (x) { + return ES.ToNumber(x) >> 0; + }, + ToUint32: function (x) { + return ES.ToNumber(x) >>> 0; + }, + ToNumber: function (value) { + if ('[object Symbol]' === _toString(value)) + throw new TypeError('Cannot convert a Symbol value to a number'); + return +value; + }, + ToInteger: function (value) { + var number = ES.ToNumber(value); + return numberIsNaN(number) + ? 0 + : 0 !== number && numberIsFinite(number) + ? (number > 0 ? 1 : -1) * _floor(_abs(number)) + : number; + }, + ToLength: function (value) { + var len = ES.ToInteger(value); + return len <= 0 ? 0 : len > Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : len; + }, + SameValue: function (a, b) { + return a === b ? 0 !== a || 1 / a == 1 / b : numberIsNaN(a) && numberIsNaN(b); + }, + SameValueZero: function (a, b) { + return a === b || (numberIsNaN(a) && numberIsNaN(b)); + }, + IsIterable: function (o) { + return ES.TypeIsObject(o) && (void 0 !== o[$iterator$] || isArguments(o)); + }, + GetIterator: function (o) { + if (isArguments(o)) return new ArrayIterator(o, 'value'); + var itFn = ES.GetMethod(o, $iterator$); + if (!ES.IsCallable(itFn)) throw new TypeError('value is not an iterable'); + var it = ES.Call(itFn, o); + if (!ES.TypeIsObject(it)) throw new TypeError('bad iterator'); + return it; + }, + GetMethod: function (o, p) { + var func = ES.ToObject(o)[p]; + if (!isNullOrUndefined(func)) { + if (!ES.IsCallable(func)) throw new TypeError('Method not callable: ' + p); + return func; + } + }, + IteratorComplete: function (iterResult) { + return !!iterResult.done; + }, + IteratorClose: function (iterator, completionIsThrow) { + var returnMethod = ES.GetMethod(iterator, 'return'); + if (void 0 !== returnMethod) { + var innerResult, innerException; + try { + innerResult = ES.Call(returnMethod, iterator); + } catch (e) { + innerException = e; + } + if (!completionIsThrow) { + if (innerException) throw innerException; + if (!ES.TypeIsObject(innerResult)) + throw new TypeError("Iterator's return method returned a non-object."); + } + } + }, + IteratorNext: function (it) { + var result = arguments.length > 1 ? it.next(arguments[1]) : it.next(); + if (!ES.TypeIsObject(result)) throw new TypeError('bad iterator'); + return result; + }, + IteratorStep: function (it) { + var result = ES.IteratorNext(it); + return !ES.IteratorComplete(result) && result; + }, + Construct: function (C, args, newTarget, isES6internal) { + var target = void 0 === newTarget ? C : newTarget; + if (!isES6internal && Reflect.construct) return Reflect.construct(C, args, target); + var proto = target.prototype; + ES.TypeIsObject(proto) || (proto = Object.prototype); + var obj = create(proto), + result = ES.Call(C, obj, args); + return ES.TypeIsObject(result) ? result : obj; + }, + SpeciesConstructor: function (O, defaultConstructor) { + var C = O.constructor; + if (void 0 === C) return defaultConstructor; + if (!ES.TypeIsObject(C)) throw new TypeError('Bad constructor'); + var S = C[symbolSpecies]; + if (isNullOrUndefined(S)) return defaultConstructor; + if (!ES.IsConstructor(S)) throw new TypeError('Bad @@species'); + return S; + }, + CreateHTML: function (string, tag, attribute, value) { + var S = ES.ToString(string), + p1 = '<' + tag; + return ( + '' !== attribute && (p1 += ' ' + attribute + '="' + ES.ToString(value).replace(/"/g, '"') + '"'), + p1 + '>' + S + '' + ); + }, + IsRegExp: function IsRegExp(argument) { + if (!ES.TypeIsObject(argument)) return !1; + var isRegExp = argument[Symbol.match]; + return void 0 !== isRegExp ? !!isRegExp : Type.regex(argument); + }, + ToString: function ToString(string) { + return $String(string); + }, + }; + if (supportsDescriptors && hasSymbols) { + var defineWellKnownSymbol = function defineWellKnownSymbol(name) { + if (Type.symbol(Symbol[name])) return Symbol[name]; + var sym = Symbol.for('Symbol.' + name); + return ( + Object.defineProperty(Symbol, name, { configurable: !1, enumerable: !1, writable: !1, value: sym }), sym + ); + }; + if (!Type.symbol(Symbol.search)) { + var symbolSearch = defineWellKnownSymbol('search'), + originalSearch = String.prototype.search; + defineProperty(RegExp.prototype, symbolSearch, function search(string) { + return ES.Call(originalSearch, string, [this]); + }); + var searchShim = function search(regexp) { + var O = ES.RequireObjectCoercible(this); + if (!isNullOrUndefined(regexp)) { + var searcher = ES.GetMethod(regexp, symbolSearch); + if (void 0 !== searcher) return ES.Call(searcher, regexp, [O]); + } + return ES.Call(originalSearch, O, [ES.ToString(regexp)]); + }; + overrideNative(String.prototype, 'search', searchShim); + } + if (!Type.symbol(Symbol.replace)) { + var symbolReplace = defineWellKnownSymbol('replace'), + originalReplace = String.prototype.replace; + defineProperty(RegExp.prototype, symbolReplace, function replace(string, replaceValue) { + return ES.Call(originalReplace, string, [this, replaceValue]); + }); + var replaceShim = function replace(searchValue, replaceValue) { + var O = ES.RequireObjectCoercible(this); + if (!isNullOrUndefined(searchValue)) { + var replacer = ES.GetMethod(searchValue, symbolReplace); + if (void 0 !== replacer) return ES.Call(replacer, searchValue, [O, replaceValue]); + } + return ES.Call(originalReplace, O, [ES.ToString(searchValue), replaceValue]); + }; + overrideNative(String.prototype, 'replace', replaceShim); + } + if (!Type.symbol(Symbol.split)) { + var symbolSplit = defineWellKnownSymbol('split'), + originalSplit = String.prototype.split; + defineProperty(RegExp.prototype, symbolSplit, function split(string, limit) { + return ES.Call(originalSplit, string, [this, limit]); + }); + var splitShim = function split(separator, limit) { + var O = ES.RequireObjectCoercible(this); + if (!isNullOrUndefined(separator)) { + var splitter = ES.GetMethod(separator, symbolSplit); + if (void 0 !== splitter) return ES.Call(splitter, separator, [O, limit]); + } + return ES.Call(originalSplit, O, [ES.ToString(separator), limit]); + }; + overrideNative(String.prototype, 'split', splitShim); + } + var symbolMatchExists = Type.symbol(Symbol.match), + stringMatchIgnoresSymbolMatch = + symbolMatchExists && + (((o = {})[Symbol.match] = function () { + return 42; + }), + 42 !== 'a'.match(o)); + if (!symbolMatchExists || stringMatchIgnoresSymbolMatch) { + var symbolMatch = defineWellKnownSymbol('match'), + originalMatch = String.prototype.match; + defineProperty(RegExp.prototype, symbolMatch, function match(string) { + return ES.Call(originalMatch, string, [this]); + }); + var matchShim = function match(regexp) { + var O = ES.RequireObjectCoercible(this); + if (!isNullOrUndefined(regexp)) { + var matcher = ES.GetMethod(regexp, symbolMatch); + if (void 0 !== matcher) return ES.Call(matcher, regexp, [O]); + } + return ES.Call(originalMatch, O, [ES.ToString(regexp)]); + }; + overrideNative(String.prototype, 'match', matchShim); + } + } + var wrapConstructor = function wrapConstructor(original, replacement, keysToSkip) { + Value.preserveToString(replacement, original), + Object.setPrototypeOf && Object.setPrototypeOf(original, replacement), + supportsDescriptors + ? _forEach(Object.getOwnPropertyNames(original), function (key) { + key in noop || keysToSkip[key] || Value.proxy(original, key, replacement); + }) + : _forEach(Object.keys(original), function (key) { + key in noop || keysToSkip[key] || (replacement[key] = original[key]); + }), + (replacement.prototype = original.prototype), + Value.redefine(original.prototype, 'constructor', replacement); + }, + defaultSpeciesGetter = function () { + return this; + }, + addDefaultSpecies = function (C) { + supportsDescriptors && + !_hasOwnProperty(C, symbolSpecies) && + Value.getter(C, symbolSpecies, defaultSpeciesGetter); + }, + addIterator = function (prototype, impl) { + var implementation = + impl || + function iterator() { + return this; + }; + defineProperty(prototype, $iterator$, implementation), + !prototype[$iterator$] && Type.symbol($iterator$) && (prototype[$iterator$] = implementation); + }, + createDataProperty = function createDataProperty(object, name, value) { + supportsDescriptors + ? Object.defineProperty(object, name, { configurable: !0, enumerable: !0, writable: !0, value }) + : (object[name] = value); + }, + createDataPropertyOrThrow = function createDataPropertyOrThrow(object, name, value) { + if ((createDataProperty(object, name, value), !ES.SameValue(object[name], value))) + throw new TypeError('property is nonconfigurable'); + }, + emulateES6construct = function (o, defaultNewTarget, defaultProto, slots) { + if (!ES.TypeIsObject(o)) throw new TypeError('Constructor requires `new`: ' + defaultNewTarget.name); + var proto = defaultNewTarget.prototype; + ES.TypeIsObject(proto) || (proto = defaultProto); + var obj = create(proto); + for (var name in slots) + if (_hasOwnProperty(slots, name)) { + var value = slots[name]; + defineProperty(obj, name, value, !0); + } + return obj; + }; + if (String.fromCodePoint && 1 !== String.fromCodePoint.length) { + var originalFromCodePoint = String.fromCodePoint; + overrideNative(String, 'fromCodePoint', function fromCodePoint(codePoints) { + return ES.Call(originalFromCodePoint, this, arguments); + }); + } + var StringShims = { + fromCodePoint: function fromCodePoint(codePoints) { + for (var next, result = [], i = 0, length = arguments.length; i < length; i++) { + if ( + ((next = Number(arguments[i])), !ES.SameValue(next, ES.ToInteger(next)) || next < 0 || next > 1114111) + ) + throw new RangeError('Invalid code point ' + next); + next < 65536 + ? _push(result, String.fromCharCode(next)) + : ((next -= 65536), + _push(result, String.fromCharCode(55296 + (next >> 10))), + _push(result, String.fromCharCode((next % 1024) + 56320))); + } + return result.join(''); + }, + raw: function raw(callSite) { + var cooked = ES.ToObject(callSite, 'bad callSite'), + rawString = ES.ToObject(cooked.raw, 'bad raw value'), + len = rawString.length, + literalsegments = ES.ToLength(len); + if (literalsegments <= 0) return ''; + for ( + var nextKey, next, nextSeg, nextSub, stringElements = [], nextIndex = 0; + nextIndex < literalsegments && + ((nextKey = ES.ToString(nextIndex)), + (nextSeg = ES.ToString(rawString[nextKey])), + _push(stringElements, nextSeg), + !(nextIndex + 1 >= literalsegments)); + + ) + (next = nextIndex + 1 < arguments.length ? arguments[nextIndex + 1] : ''), + (nextSub = ES.ToString(next)), + _push(stringElements, nextSub), + (nextIndex += 1); + return stringElements.join(''); + }, + }; + String.raw && + 'xy' !== String.raw({ raw: { 0: 'x', 1: 'y', length: 2 } }) && + overrideNative(String, 'raw', StringShims.raw), + defineProperties(String, StringShims); + var stringRepeat = function repeat(s, times) { + if (times < 1) return ''; + if (times % 2) return repeat(s, times - 1) + s; + var half = repeat(s, times / 2); + return half + half; + }, + stringMaxLength = 1 / 0, + StringPrototypeShims = { + repeat: function repeat(times) { + var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), + numTimes = ES.ToInteger(times); + if (numTimes < 0 || numTimes >= stringMaxLength) + throw new RangeError('repeat count must be less than infinity and not overflow maximum string size'); + return stringRepeat(thisStr, numTimes); + }, + startsWith: function startsWith(searchString) { + var S = ES.ToString(ES.RequireObjectCoercible(this)); + if (ES.IsRegExp(searchString)) throw new TypeError('Cannot call method "startsWith" with a regex'); + var position, + searchStr = ES.ToString(searchString); + arguments.length > 1 && (position = arguments[1]); + var start = _max(ES.ToInteger(position), 0); + return _strSlice(S, start, start + searchStr.length) === searchStr; + }, + endsWith: function endsWith(searchString) { + var S = ES.ToString(ES.RequireObjectCoercible(this)); + if (ES.IsRegExp(searchString)) throw new TypeError('Cannot call method "endsWith" with a regex'); + var endPosition, + searchStr = ES.ToString(searchString), + len = S.length; + arguments.length > 1 && (endPosition = arguments[1]); + var pos = void 0 === endPosition ? len : ES.ToInteger(endPosition), + end = _min(_max(pos, 0), len); + return _strSlice(S, end - searchStr.length, end) === searchStr; + }, + includes: function includes(searchString) { + if (ES.IsRegExp(searchString)) throw new TypeError('"includes" does not accept a RegExp'); + var position, + searchStr = ES.ToString(searchString); + return arguments.length > 1 && (position = arguments[1]), -1 !== _indexOf(this, searchStr, position); + }, + codePointAt: function codePointAt(pos) { + var thisStr = ES.ToString(ES.RequireObjectCoercible(this)), + position = ES.ToInteger(pos), + length = thisStr.length; + if (position >= 0 && position < length) { + var first = thisStr.charCodeAt(position); + if (first < 55296 || first > 56319 || position + 1 === length) return first; + var second = thisStr.charCodeAt(position + 1); + return second < 56320 || second > 57343 ? first : 1024 * (first - 55296) + (second - 56320) + 65536; + } + }, + }; + if ( + (String.prototype.includes && + !1 !== 'a'.includes('a', 1 / 0) && + overrideNative(String.prototype, 'includes', StringPrototypeShims.includes), + String.prototype.startsWith && String.prototype.endsWith) + ) { + var startsWithRejectsRegex = throwsError(function () { + return '/a/'.startsWith(/a/); + }), + startsWithHandlesInfinity = valueOrFalseIfThrows(function () { + return !1 === 'abc'.startsWith('a', 1 / 0); + }); + (startsWithRejectsRegex && startsWithHandlesInfinity) || + (overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), + overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith)); + } + hasSymbols && + (valueOrFalseIfThrows(function () { + var re = /a/; + return (re[Symbol.match] = !1), '/a/'.startsWith(re); + }) || overrideNative(String.prototype, 'startsWith', StringPrototypeShims.startsWith), + valueOrFalseIfThrows(function () { + var re = /a/; + return (re[Symbol.match] = !1), '/a/'.endsWith(re); + }) || overrideNative(String.prototype, 'endsWith', StringPrototypeShims.endsWith), + valueOrFalseIfThrows(function () { + var re = /a/; + return (re[Symbol.match] = !1), '/a/'.includes(re); + }) || overrideNative(String.prototype, 'includes', StringPrototypeShims.includes)), + defineProperties(String.prototype, StringPrototypeShims); + var ws = ['\t\n\v\f\r   ᠎    ', '          \u2028', '\u2029\ufeff'].join(''), + trimRegexp = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g'), + trimShim = function trim() { + return ES.ToString(ES.RequireObjectCoercible(this)).replace(trimRegexp, ''); + }, + nonWS = ['…', '​', '￾'].join(''), + nonWSregex = new RegExp('[' + nonWS + ']', 'g'), + isBadHexRegex = /^[-+]0x[0-9a-f]+$/i, + hasStringTrimBug = nonWS.trim().length !== nonWS.length; + defineProperty(String.prototype, 'trim', trimShim, hasStringTrimBug); + var iteratorResult = function (x) { + return { value: x, done: 0 === arguments.length }; + }, + StringIterator = function (s) { + ES.RequireObjectCoercible(s), (this._s = ES.ToString(s)), (this._i = 0); + }; + (StringIterator.prototype.next = function () { + var s = this._s, + i = this._i; + if (void 0 === s || i >= s.length) return (this._s = void 0), iteratorResult(); + var second, + len, + first = s.charCodeAt(i); + return ( + (len = + first < 55296 || + first > 56319 || + i + 1 === s.length || + (second = s.charCodeAt(i + 1)) < 56320 || + second > 57343 + ? 1 + : 2), + (this._i = i + len), + iteratorResult(s.substr(i, len)) + ); + }), + addIterator(StringIterator.prototype), + addIterator(String.prototype, function () { + return new StringIterator(this); + }); + var ArrayShims = { + from: function from(items) { + var mapFn, + mapping, + T, + length, + result, + i, + C = this; + if ((arguments.length > 1 && (mapFn = arguments[1]), void 0 === mapFn)) mapping = !1; + else { + if (!ES.IsCallable(mapFn)) + throw new TypeError('Array.from: when provided, the second argument must be a function'); + arguments.length > 2 && (T = arguments[2]), (mapping = !0); + } + if (void 0 !== (isArguments(items) || ES.GetMethod(items, $iterator$))) { + result = ES.IsConstructor(C) ? Object(new C()) : []; + var next, + nextValue, + iterator = ES.GetIterator(items); + for (i = 0; !1 !== (next = ES.IteratorStep(iterator)); ) { + nextValue = next.value; + try { + mapping && (nextValue = void 0 === T ? mapFn(nextValue, i) : _call(mapFn, T, nextValue, i)), + (result[i] = nextValue); + } catch (e) { + throw (ES.IteratorClose(iterator, !0), e); + } + i += 1; + } + length = i; + } else { + var value, + arrayLike = ES.ToObject(items); + for ( + length = ES.ToLength(arrayLike.length), + result = ES.IsConstructor(C) ? Object(new C(length)) : new Array(length), + i = 0; + i < length; + ++i + ) + (value = arrayLike[i]), + mapping && (value = void 0 === T ? mapFn(value, i) : _call(mapFn, T, value, i)), + createDataPropertyOrThrow(result, i, value); + } + return (result.length = length), result; + }, + of: function of() { + for ( + var len = arguments.length, + C = this, + A = isArray(C) || !ES.IsCallable(C) ? new Array(len) : ES.Construct(C, [len]), + k = 0; + k < len; + ++k + ) + createDataPropertyOrThrow(A, k, arguments[k]); + return (A.length = len), A; + }, + }; + defineProperties(Array, ArrayShims), + addDefaultSpecies(Array), + defineProperties( + (ArrayIterator = function (array, kind) { + (this.i = 0), (this.array = array), (this.kind = kind); + }).prototype, + { + next: function () { + var i = this.i, + array = this.array; + if (!(this instanceof ArrayIterator)) throw new TypeError('Not an ArrayIterator'); + if (void 0 !== array) + for (var len = ES.ToLength(array.length); i < len; i++) { + var retval, + kind = this.kind; + return ( + 'key' === kind + ? (retval = i) + : 'value' === kind + ? (retval = array[i]) + : 'entry' === kind && (retval = [i, array[i]]), + (this.i = i + 1), + iteratorResult(retval) + ); + } + return (this.array = void 0), iteratorResult(); + }, + }, + ), + addIterator(ArrayIterator.prototype), + Array.of === ArrayShims.of || + (function () { + var Foo = function Foo(len) { + this.length = len; + }; + Foo.prototype = []; + var fooArr = Array.of.apply(Foo, [1, 2]); + return fooArr instanceof Foo && 2 === fooArr.length; + })() || + overrideNative(Array, 'of', ArrayShims.of); + var ArrayPrototypeShims = { + copyWithin: function copyWithin(target, start) { + var end, + o = ES.ToObject(this), + len = ES.ToLength(o.length), + relativeTarget = ES.ToInteger(target), + relativeStart = ES.ToInteger(start), + to = relativeTarget < 0 ? _max(len + relativeTarget, 0) : _min(relativeTarget, len), + from = relativeStart < 0 ? _max(len + relativeStart, 0) : _min(relativeStart, len); + arguments.length > 2 && (end = arguments[2]); + var relativeEnd = void 0 === end ? len : ES.ToInteger(end), + finalItem = relativeEnd < 0 ? _max(len + relativeEnd, 0) : _min(relativeEnd, len), + count = _min(finalItem - from, len - to), + direction = 1; + for ( + from < to && to < from + count && ((direction = -1), (from += count - 1), (to += count - 1)); + count > 0; + + ) + from in o ? (o[to] = o[from]) : delete o[to], (from += direction), (to += direction), (count -= 1); + return o; + }, + fill: function fill(value) { + var start, end; + arguments.length > 1 && (start = arguments[1]), arguments.length > 2 && (end = arguments[2]); + var O = ES.ToObject(this), + len = ES.ToLength(O.length); + start = ES.ToInteger(void 0 === start ? 0 : start); + for ( + var relativeEnd = (end = ES.ToInteger(void 0 === end ? len : end)) < 0 ? len + end : end, + i = start < 0 ? _max(len + start, 0) : _min(start, len); + i < len && i < relativeEnd; + ++i + ) + O[i] = value; + return O; + }, + find: function find(predicate) { + var list = ES.ToObject(this), + length = ES.ToLength(list.length); + if (!ES.IsCallable(predicate)) throw new TypeError('Array#find: predicate must be a function'); + for (var value, thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; i < length; i++) + if (((value = list[i]), thisArg)) { + if (_call(predicate, thisArg, value, i, list)) return value; + } else if (predicate(value, i, list)) return value; + }, + findIndex: function findIndex(predicate) { + var list = ES.ToObject(this), + length = ES.ToLength(list.length); + if (!ES.IsCallable(predicate)) throw new TypeError('Array#findIndex: predicate must be a function'); + for (var thisArg = arguments.length > 1 ? arguments[1] : null, i = 0; i < length; i++) + if (thisArg) { + if (_call(predicate, thisArg, list[i], i, list)) return i; + } else if (predicate(list[i], i, list)) return i; + return -1; + }, + keys: function keys() { + return new ArrayIterator(this, 'key'); + }, + values: function values() { + return new ArrayIterator(this, 'value'); + }, + entries: function entries() { + return new ArrayIterator(this, 'entry'); + }, + }; + if ( + (Array.prototype.keys && !ES.IsCallable([1].keys().next) && delete Array.prototype.keys, + Array.prototype.entries && !ES.IsCallable([1].entries().next) && delete Array.prototype.entries, + Array.prototype.keys && + Array.prototype.entries && + !Array.prototype.values && + Array.prototype[$iterator$] && + (defineProperties(Array.prototype, { values: Array.prototype[$iterator$] }), + Type.symbol(Symbol.unscopables) && (Array.prototype[Symbol.unscopables].values = !0)), + functionsHaveNames && Array.prototype.values && 'values' !== Array.prototype.values.name) + ) { + var originalArrayPrototypeValues = Array.prototype.values; + overrideNative(Array.prototype, 'values', function values() { + return ES.Call(originalArrayPrototypeValues, this, arguments); + }), + defineProperty(Array.prototype, $iterator$, Array.prototype.values, !0); + } + defineProperties(Array.prototype, ArrayPrototypeShims), + 1 / [!0].indexOf(!0, -0) < 0 && + defineProperty( + Array.prototype, + 'indexOf', + function indexOf(searchElement) { + var value = _arrayIndexOfApply(this, arguments); + return 0 === value && 1 / value < 0 ? 0 : value; + }, + !0, + ), + addIterator(Array.prototype, function () { + return this.values(); + }), + Object.getPrototypeOf && addIterator(Object.getPrototypeOf([].values())); + var arr, + arrayFromSwallowsNegativeLengths = valueOrFalseIfThrows(function () { + return 0 === Array.from({ length: -1 }).length; + }), + arrayFromHandlesIterables = + 1 === (arr = Array.from([0].entries())).length && isArray(arr[0]) && 0 === arr[0][0] && 0 === arr[0][1]; + if ( + ((arrayFromSwallowsNegativeLengths && arrayFromHandlesIterables) || + overrideNative(Array, 'from', ArrayShims.from), + !valueOrFalseIfThrows(function () { + return Array.from([0], void 0); + })) + ) { + var origArrayFrom = Array.from; + overrideNative(Array, 'from', function from(items) { + return arguments.length > 1 && void 0 !== arguments[1] + ? ES.Call(origArrayFrom, this, arguments) + : _call(origArrayFrom, this, items); + }); + } + var int32sAsOne = -(Math.pow(2, 32) - 1), + toLengthsCorrectly = function (method, reversed) { + var obj = { length: int32sAsOne }; + return ( + (obj[reversed ? (obj.length >>> 0) - 1 : 0] = !0), + valueOrFalseIfThrows(function () { + return ( + _call( + method, + obj, + function () { + throw new RangeError('should not reach here'); + }, + [], + ), + !0 + ); + }) + ); + }; + if (!toLengthsCorrectly(Array.prototype.forEach)) { + var originalForEach = Array.prototype.forEach; + overrideNative( + Array.prototype, + 'forEach', + function forEach(callbackFn) { + return ES.Call(originalForEach, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.map)) { + var originalMap = Array.prototype.map; + overrideNative( + Array.prototype, + 'map', + function map(callbackFn) { + return ES.Call(originalMap, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.filter)) { + var originalFilter = Array.prototype.filter; + overrideNative( + Array.prototype, + 'filter', + function filter(callbackFn) { + return ES.Call(originalFilter, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.some)) { + var originalSome = Array.prototype.some; + overrideNative( + Array.prototype, + 'some', + function some(callbackFn) { + return ES.Call(originalSome, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.every)) { + var originalEvery = Array.prototype.every; + overrideNative( + Array.prototype, + 'every', + function every(callbackFn) { + return ES.Call(originalEvery, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.reduce)) { + var originalReduce = Array.prototype.reduce; + overrideNative( + Array.prototype, + 'reduce', + function reduce(callbackFn) { + return ES.Call(originalReduce, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + if (!toLengthsCorrectly(Array.prototype.reduceRight, !0)) { + var originalReduceRight = Array.prototype.reduceRight; + overrideNative( + Array.prototype, + 'reduceRight', + function reduceRight(callbackFn) { + return ES.Call(originalReduceRight, this.length >= 0 ? this : [], arguments); + }, + !0, + ); + } + var lacksOctalSupport = 8 !== Number('0o10'), + lacksBinarySupport = 2 !== Number('0b10'), + trimsNonWhitespace = _some(nonWS, function (c) { + return 0 === Number(c + 0 + c); + }); + if (lacksOctalSupport || lacksBinarySupport || trimsNonWhitespace) { + var OrigNumber = Number, + binaryRegex = /^0b[01]+$/i, + octalRegex = /^0o[0-7]+$/i, + isBinary = binaryRegex.test.bind(binaryRegex), + isOctal = octalRegex.test.bind(octalRegex), + toPrimitive = function (O) { + var result; + if ('function' == typeof O.valueOf && ((result = O.valueOf()), Type.primitive(result))) return result; + if ('function' == typeof O.toString && ((result = O.toString()), Type.primitive(result))) return result; + throw new TypeError('No default value'); + }, + hasNonWS = nonWSregex.test.bind(nonWSregex), + isBadHex = isBadHexRegex.test.bind(isBadHexRegex), + NumberShim = (function () { + var NumberShim = function Number(value) { + var primValue; + 'string' == + typeof (primValue = + arguments.length > 0 ? (Type.primitive(value) ? value : toPrimitive(value, 'number')) : 0) && + ((primValue = ES.Call(trimShim, primValue)), + isBinary(primValue) + ? (primValue = parseInt(_strSlice(primValue, 2), 2)) + : isOctal(primValue) + ? (primValue = parseInt(_strSlice(primValue, 2), 8)) + : (hasNonWS(primValue) || isBadHex(primValue)) && (primValue = NaN)); + var receiver = this, + valueOfSucceeds = valueOrFalseIfThrows(function () { + return OrigNumber.prototype.valueOf.call(receiver), !0; + }); + return receiver instanceof NumberShim && !valueOfSucceeds + ? new OrigNumber(primValue) + : OrigNumber(primValue); + }; + return NumberShim; + })(); + wrapConstructor(OrigNumber, NumberShim, {}), + defineProperties(NumberShim, { + NaN: OrigNumber.NaN, + MAX_VALUE: OrigNumber.MAX_VALUE, + MIN_VALUE: OrigNumber.MIN_VALUE, + NEGATIVE_INFINITY: OrigNumber.NEGATIVE_INFINITY, + POSITIVE_INFINITY: OrigNumber.POSITIVE_INFINITY, + }), + (Number = NumberShim), + Value.redefine(globals, 'Number', NumberShim); + } + var maxSafeInteger = Math.pow(2, 53) - 1; + defineProperties(Number, { + MAX_SAFE_INTEGER: maxSafeInteger, + MIN_SAFE_INTEGER: -maxSafeInteger, + EPSILON: 2220446049250313e-31, + parseInt: globals.parseInt, + parseFloat: globals.parseFloat, + isFinite: numberIsFinite, + isInteger: function isInteger(value) { + return numberIsFinite(value) && ES.ToInteger(value) === value; + }, + isSafeInteger: function isSafeInteger(value) { + return Number.isInteger(value) && _abs(value) <= Number.MAX_SAFE_INTEGER; + }, + isNaN: numberIsNaN, + }), + defineProperty(Number, 'parseInt', globals.parseInt, Number.parseInt !== globals.parseInt), + 1 === + [, 1].find(function () { + return !0; + }) && overrideNative(Array.prototype, 'find', ArrayPrototypeShims.find), + 0 !== + [, 1].findIndex(function () { + return !0; + }) && overrideNative(Array.prototype, 'findIndex', ArrayPrototypeShims.findIndex); + var FAKENULL, + gpo, + spo, + isEnumerableOn = Function.bind.call(Function.bind, Object.prototype.propertyIsEnumerable), + ensureEnumerable = function ensureEnumerable(obj, prop) { + supportsDescriptors && isEnumerableOn(obj, prop) && Object.defineProperty(obj, prop, { enumerable: !1 }); + }, + sliceArgs = function sliceArgs() { + for ( + var initial = Number(this), + len = arguments.length, + desiredArgCount = len - initial, + args = new Array(desiredArgCount < 0 ? 0 : desiredArgCount), + i = initial; + i < len; + ++i + ) + args[i - initial] = arguments[i]; + return args; + }, + assignTo = function assignTo(source) { + return function assignToSource(target, key) { + return (target[key] = source[key]), target; + }; + }, + assignReducer = function (target, source) { + var symbols, + sourceKeys = keys(Object(source)); + return ( + ES.IsCallable(Object.getOwnPropertySymbols) && + (symbols = _filter(Object.getOwnPropertySymbols(Object(source)), isEnumerableOn(source))), + _reduce(_concat(sourceKeys, symbols || []), assignTo(source), target) + ); + }, + ObjectShims = { + assign: function (target, source) { + var to = ES.ToObject(target, 'Cannot convert undefined or null to object'); + return _reduce(ES.Call(sliceArgs, 1, arguments), assignReducer, to); + }, + is: function is(a, b) { + return ES.SameValue(a, b); + }, + }; + if ( + (Object.assign && + Object.preventExtensions && + (function () { + var thrower = Object.preventExtensions({ 1: 2 }); + try { + Object.assign(thrower, 'xy'); + } catch (e) { + return 'y' === thrower[1]; + } + })() && + overrideNative(Object, 'assign', ObjectShims.assign), + defineProperties(Object, ObjectShims), + supportsDescriptors) + ) { + var ES5ObjectShims = { + setPrototypeOf: (function (Object, magic) { + var set, + checkArgs = function (O, proto) { + if (!ES.TypeIsObject(O)) throw new TypeError('cannot set prototype on a non-object'); + if (null !== proto && !ES.TypeIsObject(proto)) + throw new TypeError('can only set prototype to an object or null' + proto); + }, + setPrototypeOf = function (O, proto) { + return checkArgs(O, proto), _call(set, O, proto), O; + }; + try { + (set = Object.getOwnPropertyDescriptor(Object.prototype, magic).set), _call(set, {}, null); + } catch (e) { + if (Object.prototype !== {}[magic]) return; + (set = function (proto) { + this[magic] = proto; + }), + (setPrototypeOf.polyfill = + setPrototypeOf(setPrototypeOf({}, null), Object.prototype) instanceof Object); + } + return setPrototypeOf; + })(Object, '__proto__'), + }; + defineProperties(Object, ES5ObjectShims); + } + if ( + (Object.setPrototypeOf && + Object.getPrototypeOf && + null !== Object.getPrototypeOf(Object.setPrototypeOf({}, null)) && + null === Object.getPrototypeOf(Object.create(null)) && + ((FAKENULL = Object.create(null)), + (gpo = Object.getPrototypeOf), + (spo = Object.setPrototypeOf), + (Object.getPrototypeOf = function (o) { + var result = gpo(o); + return result === FAKENULL ? null : result; + }), + (Object.setPrototypeOf = function (o, p) { + return spo(o, null === p ? FAKENULL : p); + }), + (Object.setPrototypeOf.polyfill = !1)), + throwsError(function () { + return Object.keys('foo'); + })) + ) { + var originalObjectKeys = Object.keys; + overrideNative(Object, 'keys', function keys(value) { + return originalObjectKeys(ES.ToObject(value)); + }), + (keys = Object.keys); + } + if ( + throwsError(function () { + return Object.keys(/a/g); + }) + ) { + var regexRejectingObjectKeys = Object.keys; + overrideNative(Object, 'keys', function keys(value) { + if (Type.regex(value)) { + var regexKeys = []; + for (var k in value) _hasOwnProperty(value, k) && _push(regexKeys, k); + return regexKeys; + } + return regexRejectingObjectKeys(value); + }), + (keys = Object.keys); + } + if ( + Object.getOwnPropertyNames && + throwsError(function () { + return Object.getOwnPropertyNames('foo'); + }) + ) { + var cachedWindowNames = 'object' == typeof window ? Object.getOwnPropertyNames(window) : [], + originalObjectGetOwnPropertyNames = Object.getOwnPropertyNames; + overrideNative(Object, 'getOwnPropertyNames', function getOwnPropertyNames(value) { + var val = ES.ToObject(value); + if ('[object Window]' === _toString(val)) + try { + return originalObjectGetOwnPropertyNames(val); + } catch (e) { + return _concat([], cachedWindowNames); + } + return originalObjectGetOwnPropertyNames(val); + }); + } + if ( + Object.getOwnPropertyDescriptor && + throwsError(function () { + return Object.getOwnPropertyDescriptor('foo', 'bar'); + }) + ) { + var originalObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + overrideNative(Object, 'getOwnPropertyDescriptor', function getOwnPropertyDescriptor(value, property) { + return originalObjectGetOwnPropertyDescriptor(ES.ToObject(value), property); + }); + } + if ( + Object.seal && + throwsError(function () { + return Object.seal('foo'); + }) + ) { + var originalObjectSeal = Object.seal; + overrideNative(Object, 'seal', function seal(value) { + return ES.TypeIsObject(value) ? originalObjectSeal(value) : value; + }); + } + if ( + Object.isSealed && + throwsError(function () { + return Object.isSealed('foo'); + }) + ) { + var originalObjectIsSealed = Object.isSealed; + overrideNative(Object, 'isSealed', function isSealed(value) { + return !ES.TypeIsObject(value) || originalObjectIsSealed(value); + }); + } + if ( + Object.freeze && + throwsError(function () { + return Object.freeze('foo'); + }) + ) { + var originalObjectFreeze = Object.freeze; + overrideNative(Object, 'freeze', function freeze(value) { + return ES.TypeIsObject(value) ? originalObjectFreeze(value) : value; + }); + } + if ( + Object.isFrozen && + throwsError(function () { + return Object.isFrozen('foo'); + }) + ) { + var originalObjectIsFrozen = Object.isFrozen; + overrideNative(Object, 'isFrozen', function isFrozen(value) { + return !ES.TypeIsObject(value) || originalObjectIsFrozen(value); + }); + } + if ( + Object.preventExtensions && + throwsError(function () { + return Object.preventExtensions('foo'); + }) + ) { + var originalObjectPreventExtensions = Object.preventExtensions; + overrideNative(Object, 'preventExtensions', function preventExtensions(value) { + return ES.TypeIsObject(value) ? originalObjectPreventExtensions(value) : value; + }); + } + if ( + Object.isExtensible && + throwsError(function () { + return Object.isExtensible('foo'); + }) + ) { + var originalObjectIsExtensible = Object.isExtensible; + overrideNative(Object, 'isExtensible', function isExtensible(value) { + return !!ES.TypeIsObject(value) && originalObjectIsExtensible(value); + }); + } + if ( + Object.getPrototypeOf && + throwsError(function () { + return Object.getPrototypeOf('foo'); + }) + ) { + var originalGetProto = Object.getPrototypeOf; + overrideNative(Object, 'getPrototypeOf', function getPrototypeOf(value) { + return originalGetProto(ES.ToObject(value)); + }); + } + var desc, + hasFlags = + supportsDescriptors && + (desc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags')) && + ES.IsCallable(desc.get); + if (supportsDescriptors && !hasFlags) { + var regExpFlagsGetter = function flags() { + if (!ES.TypeIsObject(this)) throw new TypeError('Method called on incompatible type: must be an object.'); + var result = ''; + return ( + this.global && (result += 'g'), + this.ignoreCase && (result += 'i'), + this.multiline && (result += 'm'), + this.unicode && (result += 'u'), + this.sticky && (result += 'y'), + result + ); + }; + Value.getter(RegExp.prototype, 'flags', regExpFlagsGetter); + } + var regex, + regExpSupportsFlagsWithRegex = + supportsDescriptors && + valueOrFalseIfThrows(function () { + return '/a/i' === String(new RegExp(/a/g, 'i')); + }), + regExpNeedsToSupportSymbolMatch = + hasSymbols && supportsDescriptors && (((regex = /./)[Symbol.match] = !1), RegExp(regex) === regex), + regexToStringIsGeneric = valueOrFalseIfThrows(function () { + return '/abc/' === RegExp.prototype.toString.call({ source: 'abc' }); + }), + regexToStringSupportsGenericFlags = + regexToStringIsGeneric && + valueOrFalseIfThrows(function () { + return '/a/b' === RegExp.prototype.toString.call({ source: 'a', flags: 'b' }); + }); + if (!regexToStringIsGeneric || !regexToStringSupportsGenericFlags) { + var origRegExpToString = RegExp.prototype.toString; + defineProperty( + RegExp.prototype, + 'toString', + function toString() { + var R = ES.RequireObjectCoercible(this); + return Type.regex(R) ? _call(origRegExpToString, R) : '/' + $String(R.source) + '/' + $String(R.flags); + }, + !0, + ), + Value.preserveToString(RegExp.prototype.toString, origRegExpToString); + } + if (supportsDescriptors && (!regExpSupportsFlagsWithRegex || regExpNeedsToSupportSymbolMatch)) { + var flagsGetter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get, + sourceDesc = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source') || {}, + legacySourceGetter = function () { + return this.source; + }, + sourceGetter = ES.IsCallable(sourceDesc.get) ? sourceDesc.get : legacySourceGetter, + OrigRegExp = RegExp, + RegExpShim = function RegExp(pattern, flags) { + var patternIsRegExp = ES.IsRegExp(pattern); + return this instanceof RegExp || !patternIsRegExp || void 0 !== flags || pattern.constructor !== RegExp + ? Type.regex(pattern) + ? new RegExp(ES.Call(sourceGetter, pattern), void 0 === flags ? ES.Call(flagsGetter, pattern) : flags) + : (patternIsRegExp && (pattern.source, void 0 === flags && pattern.flags), + new OrigRegExp(pattern, flags)) + : pattern; + }; + wrapConstructor(OrigRegExp, RegExpShim, { $input: !0 }), + (RegExp = RegExpShim), + Value.redefine(globals, 'RegExp', RegExpShim); + } + if (supportsDescriptors) { + var regexGlobals = { input: '$_', lastMatch: '$&', lastParen: '$+', leftContext: '$`', rightContext: "$'" }; + _forEach(keys(regexGlobals), function (prop) { + prop in RegExp && + !(regexGlobals[prop] in RegExp) && + Value.getter(RegExp, regexGlobals[prop], function get() { + return RegExp[prop]; + }); + }); + } + addDefaultSpecies(RegExp); + var inverseEpsilon = 1 / Number.EPSILON, + roundTiesToEven = function roundTiesToEven(n) { + return n + inverseEpsilon - inverseEpsilon; + }, + BINARY_32_EPSILON = Math.pow(2, -23), + BINARY_32_MAX_VALUE = Math.pow(2, 127) * (2 - BINARY_32_EPSILON), + BINARY_32_MIN_VALUE = Math.pow(2, -126), + E = Math.E, + LOG2E = Math.LOG2E, + LOG10E = Math.LOG10E, + numberCLZ = Number.prototype.clz; + delete Number.prototype.clz; + var MathShims = { + acosh: function acosh(value) { + var x = Number(value); + if (numberIsNaN(x) || value < 1) return NaN; + if (1 === x) return 0; + if (x === 1 / 0) return x; + var xInvSquared = 1 / (x * x); + if (x < 2) return _log1p(x - 1 + _sqrt(1 - xInvSquared) * x); + var halfX = x / 2; + return _log1p(halfX + _sqrt(1 - xInvSquared) * halfX - 1) + 1 / LOG2E; + }, + asinh: function asinh(value) { + var x = Number(value); + if (0 === x || !globalIsFinite(x)) return x; + var a = _abs(x), + aSquared = a * a, + s = _sign(x); + return a < 1 + ? s * _log1p(a + aSquared / (_sqrt(aSquared + 1) + 1)) + : s * (_log1p(a / 2 + (_sqrt(1 + 1 / aSquared) * a) / 2 - 1) + 1 / LOG2E); + }, + atanh: function atanh(value) { + var x = Number(value); + if (0 === x) return x; + if (-1 === x) return -1 / 0; + if (1 === x) return 1 / 0; + if (numberIsNaN(x) || x < -1 || x > 1) return NaN; + var a = _abs(x); + return (_sign(x) * _log1p((2 * a) / (1 - a))) / 2; + }, + cbrt: function cbrt(value) { + var x = Number(value); + if (0 === x) return x; + var result, + negate = x < 0; + return ( + negate && (x = -x), + (result = x === 1 / 0 ? 1 / 0 : (x / ((result = _exp(_log(x) / 3)) * result) + 2 * result) / 3), + negate ? -result : result + ); + }, + clz32: function clz32(value) { + var x = Number(value), + number = ES.ToUint32(x); + return 0 === number + ? 32 + : numberCLZ + ? ES.Call(numberCLZ, number) + : 31 - _floor(_log(number + 0.5) * LOG2E); + }, + cosh: function cosh(value) { + var x = Number(value); + if (0 === x) return 1; + if (numberIsNaN(x)) return NaN; + if (!globalIsFinite(x)) return 1 / 0; + var t = _exp(_abs(x) - 1); + return (t + 1 / (t * E * E)) * (E / 2); + }, + expm1: function expm1(value) { + var x = Number(value); + if (x === -1 / 0) return -1; + if (!globalIsFinite(x) || 0 === x) return x; + if (_abs(x) > 0.5) return _exp(x) - 1; + for (var t = x, sum = 0, n = 1; sum + t !== sum; ) (sum += t), (t *= x / (n += 1)); + return sum; + }, + hypot: function hypot(x, y) { + for (var result = 0, largest = 0, i = 0; i < arguments.length; ++i) { + var value = _abs(Number(arguments[i])); + largest < value + ? ((result *= (largest / value) * (largest / value)), (result += 1), (largest = value)) + : (result += value > 0 ? (value / largest) * (value / largest) : value); + } + return largest === 1 / 0 ? 1 / 0 : largest * _sqrt(result); + }, + log2: function log2(value) { + return _log(value) * LOG2E; + }, + log10: function log10(value) { + return _log(value) * LOG10E; + }, + log1p: _log1p, + sign: _sign, + sinh: function sinh(value) { + var x = Number(value); + if (!globalIsFinite(x) || 0 === x) return x; + var a = _abs(x); + if (a < 1) { + var u = Math.expm1(a); + return (_sign(x) * u * (1 + 1 / (u + 1))) / 2; + } + var t = _exp(a - 1); + return _sign(x) * (t - 1 / (t * E * E)) * (E / 2); + }, + tanh: function tanh(value) { + var x = Number(value); + return numberIsNaN(x) || 0 === x + ? x + : x >= 20 + ? 1 + : x <= -20 + ? -1 + : (Math.expm1(x) - Math.expm1(-x)) / (_exp(x) + _exp(-x)); + }, + trunc: function trunc(value) { + var x = Number(value); + return x < 0 ? -_floor(-x) : _floor(x); + }, + imul: function imul(x, y) { + var a = ES.ToUint32(x), + b = ES.ToUint32(y), + al = 65535 & a, + bl = 65535 & b; + return (al * bl + (((((a >>> 16) & 65535) * bl + al * ((b >>> 16) & 65535)) << 16) >>> 0)) | 0; + }, + fround: function fround(x) { + var v = Number(x); + if (0 === v || v === 1 / 0 || v === -1 / 0 || numberIsNaN(v)) return v; + var sign = _sign(v), + abs = _abs(v); + if (abs < BINARY_32_MIN_VALUE) + return ( + sign * + roundTiesToEven(abs / BINARY_32_MIN_VALUE / BINARY_32_EPSILON) * + BINARY_32_MIN_VALUE * + BINARY_32_EPSILON + ); + var a = (1 + BINARY_32_EPSILON / Number.EPSILON) * abs, + result = a - (a - abs); + return result > BINARY_32_MAX_VALUE || numberIsNaN(result) ? sign * (1 / 0) : sign * result; + }, + }, + withinULPDistance = function withinULPDistance(result, expected, distance) { + return _abs(1 - result / expected) / Number.EPSILON < (distance || 8); + }; + defineProperties(Math, MathShims), + defineProperty(Math, 'sinh', MathShims.sinh, Math.sinh(710) === 1 / 0), + defineProperty(Math, 'cosh', MathShims.cosh, Math.cosh(710) === 1 / 0), + defineProperty(Math, 'log1p', MathShims.log1p, -1e-17 !== Math.log1p(-1e-17)), + defineProperty(Math, 'asinh', MathShims.asinh, Math.asinh(-1e7) !== -Math.asinh(1e7)), + defineProperty(Math, 'asinh', MathShims.asinh, Math.asinh(1e300) === 1 / 0), + defineProperty(Math, 'atanh', MathShims.atanh, 0 === Math.atanh(1e-300)), + defineProperty(Math, 'tanh', MathShims.tanh, -2e-17 !== Math.tanh(-2e-17)), + defineProperty(Math, 'acosh', MathShims.acosh, Math.acosh(Number.MAX_VALUE) === 1 / 0), + defineProperty( + Math, + 'acosh', + MathShims.acosh, + !withinULPDistance(Math.acosh(1 + Number.EPSILON), Math.sqrt(2 * Number.EPSILON)), + ), + defineProperty(Math, 'cbrt', MathShims.cbrt, !withinULPDistance(Math.cbrt(1e-300), 1e-100)), + defineProperty(Math, 'sinh', MathShims.sinh, -2e-17 !== Math.sinh(-2e-17)); + var expm1OfTen = Math.expm1(10); + defineProperty( + Math, + 'expm1', + MathShims.expm1, + expm1OfTen > 22025.465794806718 || expm1OfTen < 22025.465794806718, + ); + var origMathRound = Math.round, + roundHandlesBoundaryConditions = + 0 === Math.round(0.5 - Number.EPSILON / 4) && 1 === Math.round(Number.EPSILON / 3.99 - 0.5), + roundDoesNotIncreaseIntegers = [inverseEpsilon + 1, 2 * inverseEpsilon - 1].every(function (num) { + return Math.round(num) === num; + }); + defineProperty( + Math, + 'round', + function round(x) { + var floor = _floor(x); + return x - floor < 0.5 ? floor : -1 === floor ? -0 : floor + 1; + }, + !roundHandlesBoundaryConditions || !roundDoesNotIncreaseIntegers, + ), + Value.preserveToString(Math.round, origMathRound); + var origImul = Math.imul; + -5 !== Math.imul(4294967295, 5) && ((Math.imul = MathShims.imul), Value.preserveToString(Math.imul, origImul)), + 2 !== Math.imul.length && + overrideNative(Math, 'imul', function imul(x, y) { + return ES.Call(origImul, Math, arguments); + }); + var count, + thenable, + PromiseShim = (function () { + var setTimeout = globals.setTimeout; + if ('function' == typeof setTimeout || 'object' == typeof setTimeout) { + ES.IsPromise = function (promise) { + return !!ES.TypeIsObject(promise) && void 0 !== promise._promise; + }; + var makeZeroTimeout, + PromiseCapability = function (C) { + if (!ES.IsConstructor(C)) throw new TypeError('Bad promise constructor'); + var capability = this, + resolver = function (resolve, reject) { + if (void 0 !== capability.resolve || void 0 !== capability.reject) + throw new TypeError('Bad Promise implementation!'); + (capability.resolve = resolve), (capability.reject = reject); + }; + if ( + ((capability.resolve = void 0), + (capability.reject = void 0), + (capability.promise = new C(resolver)), + !ES.IsCallable(capability.resolve) || !ES.IsCallable(capability.reject)) + ) + throw new TypeError('Bad promise constructor'); + }; + 'undefined' != typeof window && + ES.IsCallable(window.postMessage) && + (makeZeroTimeout = function () { + var timeouts = [], + messageName = 'zero-timeout-message', + setZeroTimeout = function (fn) { + _push(timeouts, fn), window.postMessage(messageName, '*'); + }, + handleMessage = function (event) { + if (event.source === window && event.data === messageName) { + if ((event.stopPropagation(), 0 === timeouts.length)) return; + _shift(timeouts)(); + } + }; + return window.addEventListener('message', handleMessage, !0), setZeroTimeout; + }); + var Promise$prototype, + Promise$prototype$then, + makePromiseAsap = function () { + var P = globals.Promise, + pr = P && P.resolve && P.resolve(); + return ( + pr && + function (task) { + return pr.then(task); + } + ); + }, + enqueue = ES.IsCallable(globals.setImmediate) + ? globals.setImmediate + : 'object' == typeof process && process.nextTick + ? process.nextTick + : makePromiseAsap() || + (ES.IsCallable(makeZeroTimeout) + ? makeZeroTimeout() + : function (task) { + setTimeout(task, 0); + }), + PROMISE_IDENTITY = function (x) { + return x; + }, + PROMISE_THROWER = function (e) { + throw e; + }, + PROMISE_PENDING = 0, + PROMISE_FULFILLED = 1, + PROMISE_REJECTED = 2, + PROMISE_FULFILL_OFFSET = 0, + PROMISE_REJECT_OFFSET = 1, + PROMISE_CAPABILITY_OFFSET = 2, + PROMISE_FAKE_CAPABILITY = {}, + enqueuePromiseReactionJob = function (handler, capability, argument) { + enqueue(function () { + promiseReactionJob(handler, capability, argument); + }); + }, + promiseReactionJob = function (handler, promiseCapability, argument) { + var handlerResult, f; + if (promiseCapability === PROMISE_FAKE_CAPABILITY) return handler(argument); + try { + (handlerResult = handler(argument)), (f = promiseCapability.resolve); + } catch (e) { + (handlerResult = e), (f = promiseCapability.reject); + } + f(handlerResult); + }, + fulfillPromise = function (promise, value) { + var _promise = promise._promise, + length = _promise.reactionLength; + if ( + length > 0 && + (enqueuePromiseReactionJob(_promise.fulfillReactionHandler0, _promise.reactionCapability0, value), + (_promise.fulfillReactionHandler0 = void 0), + (_promise.rejectReactions0 = void 0), + (_promise.reactionCapability0 = void 0), + length > 1) + ) + for (var i = 1, idx = 0; i < length; i++, idx += 3) + enqueuePromiseReactionJob( + _promise[idx + PROMISE_FULFILL_OFFSET], + _promise[idx + PROMISE_CAPABILITY_OFFSET], + value, + ), + (promise[idx + PROMISE_FULFILL_OFFSET] = void 0), + (promise[idx + PROMISE_REJECT_OFFSET] = void 0), + (promise[idx + PROMISE_CAPABILITY_OFFSET] = void 0); + (_promise.result = value), (_promise.state = PROMISE_FULFILLED), (_promise.reactionLength = 0); + }, + rejectPromise = function (promise, reason) { + var _promise = promise._promise, + length = _promise.reactionLength; + if ( + length > 0 && + (enqueuePromiseReactionJob(_promise.rejectReactionHandler0, _promise.reactionCapability0, reason), + (_promise.fulfillReactionHandler0 = void 0), + (_promise.rejectReactions0 = void 0), + (_promise.reactionCapability0 = void 0), + length > 1) + ) + for (var i = 1, idx = 0; i < length; i++, idx += 3) + enqueuePromiseReactionJob( + _promise[idx + PROMISE_REJECT_OFFSET], + _promise[idx + PROMISE_CAPABILITY_OFFSET], + reason, + ), + (promise[idx + PROMISE_FULFILL_OFFSET] = void 0), + (promise[idx + PROMISE_REJECT_OFFSET] = void 0), + (promise[idx + PROMISE_CAPABILITY_OFFSET] = void 0); + (_promise.result = reason), (_promise.state = PROMISE_REJECTED), (_promise.reactionLength = 0); + }, + createResolvingFunctions = function (promise) { + var alreadyResolved = !1; + return { + resolve: function (resolution) { + var then; + if (!alreadyResolved) { + if (((alreadyResolved = !0), resolution === promise)) + return rejectPromise(promise, new TypeError('Self resolution')); + if (!ES.TypeIsObject(resolution)) return fulfillPromise(promise, resolution); + try { + then = resolution.then; + } catch (e) { + return rejectPromise(promise, e); + } + if (!ES.IsCallable(then)) return fulfillPromise(promise, resolution); + enqueue(function () { + promiseResolveThenableJob(promise, resolution, then); + }); + } + }, + reject: function (reason) { + if (!alreadyResolved) return (alreadyResolved = !0), rejectPromise(promise, reason); + }, + }; + }, + optimizedThen = function (then, thenable, resolve, reject) { + then === Promise$prototype$then + ? _call(then, thenable, resolve, reject, PROMISE_FAKE_CAPABILITY) + : _call(then, thenable, resolve, reject); + }, + promiseResolveThenableJob = function (promise, thenable, then) { + var resolvingFunctions = createResolvingFunctions(promise), + resolve = resolvingFunctions.resolve, + reject = resolvingFunctions.reject; + try { + optimizedThen(then, thenable, resolve, reject); + } catch (e) { + reject(e); + } + }, + Promise = (function () { + var PromiseShim = function Promise(resolver) { + if (!(this instanceof PromiseShim)) throw new TypeError('Constructor Promise requires "new"'); + if (this && this._promise) throw new TypeError('Bad construction'); + if (!ES.IsCallable(resolver)) throw new TypeError('not a valid resolver'); + var promise = emulateES6construct(this, PromiseShim, Promise$prototype, { + _promise: { + result: void 0, + state: PROMISE_PENDING, + reactionLength: 0, + fulfillReactionHandler0: void 0, + rejectReactionHandler0: void 0, + reactionCapability0: void 0, + }, + }), + resolvingFunctions = createResolvingFunctions(promise), + reject = resolvingFunctions.reject; + try { + resolver(resolvingFunctions.resolve, reject); + } catch (e) { + reject(e); + } + return promise; + }; + return PromiseShim; + })(); + Promise$prototype = Promise.prototype; + var _promiseAllResolver = function (index, values, capability, remaining) { + var alreadyCalled = !1; + return function (x) { + alreadyCalled || + ((alreadyCalled = !0), + (values[index] = x), + 0 == --remaining.count && (0, capability.resolve)(values)); + }; + }, + performPromiseAll = function (iteratorRecord, C, resultCapability) { + for ( + var next, nextValue, it = iteratorRecord.iterator, values = [], remaining = { count: 1 }, index = 0; + ; + + ) { + try { + if (!1 === (next = ES.IteratorStep(it))) { + iteratorRecord.done = !0; + break; + } + nextValue = next.value; + } catch (e) { + throw ((iteratorRecord.done = !0), e); + } + values[index] = void 0; + var nextPromise = C.resolve(nextValue), + resolveElement = _promiseAllResolver(index, values, resultCapability, remaining); + (remaining.count += 1), + optimizedThen(nextPromise.then, nextPromise, resolveElement, resultCapability.reject), + (index += 1); + } + return 0 == --remaining.count && (0, resultCapability.resolve)(values), resultCapability.promise; + }, + performPromiseRace = function (iteratorRecord, C, resultCapability) { + for (var next, nextValue, nextPromise, it = iteratorRecord.iterator; ; ) { + try { + if (!1 === (next = ES.IteratorStep(it))) { + iteratorRecord.done = !0; + break; + } + nextValue = next.value; + } catch (e) { + throw ((iteratorRecord.done = !0), e); + } + (nextPromise = C.resolve(nextValue)), + optimizedThen(nextPromise.then, nextPromise, resultCapability.resolve, resultCapability.reject); + } + return resultCapability.promise; + }; + return ( + defineProperties(Promise, { + all: function all(iterable) { + var C = this; + if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); + var iterator, + iteratorRecord, + capability = new PromiseCapability(C); + try { + return ( + (iterator = ES.GetIterator(iterable)), + performPromiseAll((iteratorRecord = { iterator, done: !1 }), C, capability) + ); + } catch (e) { + var exception = e; + if (iteratorRecord && !iteratorRecord.done) + try { + ES.IteratorClose(iterator, !0); + } catch (ee) { + exception = ee; + } + return (0, capability.reject)(exception), capability.promise; + } + }, + race: function race(iterable) { + var C = this; + if (!ES.TypeIsObject(C)) throw new TypeError('Promise is not object'); + var iterator, + iteratorRecord, + capability = new PromiseCapability(C); + try { + return ( + (iterator = ES.GetIterator(iterable)), + performPromiseRace((iteratorRecord = { iterator, done: !1 }), C, capability) + ); + } catch (e) { + var exception = e; + if (iteratorRecord && !iteratorRecord.done) + try { + ES.IteratorClose(iterator, !0); + } catch (ee) { + exception = ee; + } + return (0, capability.reject)(exception), capability.promise; + } + }, + reject: function reject(reason) { + var C = this; + if (!ES.TypeIsObject(C)) throw new TypeError('Bad promise constructor'); + var capability = new PromiseCapability(C); + return (0, capability.reject)(reason), capability.promise; + }, + resolve: function resolve(v) { + var C = this; + if (!ES.TypeIsObject(C)) throw new TypeError('Bad promise constructor'); + if (ES.IsPromise(v) && v.constructor === C) return v; + var capability = new PromiseCapability(C); + return (0, capability.resolve)(v), capability.promise; + }, + }), + defineProperties(Promise$prototype, { + catch: function (onRejected) { + return this.then(null, onRejected); + }, + then: function then(onFulfilled, onRejected) { + var promise = this; + if (!ES.IsPromise(promise)) throw new TypeError('not a promise'); + var resultCapability, + C = ES.SpeciesConstructor(promise, Promise); + resultCapability = + arguments.length > 2 && arguments[2] === PROMISE_FAKE_CAPABILITY && C === Promise + ? PROMISE_FAKE_CAPABILITY + : new PromiseCapability(C); + var value, + fulfillReactionHandler = ES.IsCallable(onFulfilled) ? onFulfilled : PROMISE_IDENTITY, + rejectReactionHandler = ES.IsCallable(onRejected) ? onRejected : PROMISE_THROWER, + _promise = promise._promise; + if (_promise.state === PROMISE_PENDING) { + if (0 === _promise.reactionLength) + (_promise.fulfillReactionHandler0 = fulfillReactionHandler), + (_promise.rejectReactionHandler0 = rejectReactionHandler), + (_promise.reactionCapability0 = resultCapability); + else { + var idx = 3 * (_promise.reactionLength - 1); + (_promise[idx + PROMISE_FULFILL_OFFSET] = fulfillReactionHandler), + (_promise[idx + PROMISE_REJECT_OFFSET] = rejectReactionHandler), + (_promise[idx + PROMISE_CAPABILITY_OFFSET] = resultCapability); + } + _promise.reactionLength += 1; + } else if (_promise.state === PROMISE_FULFILLED) + (value = _promise.result), + enqueuePromiseReactionJob(fulfillReactionHandler, resultCapability, value); + else { + if (_promise.state !== PROMISE_REJECTED) throw new TypeError('unexpected Promise state'); + (value = _promise.result), + enqueuePromiseReactionJob(rejectReactionHandler, resultCapability, value); + } + return resultCapability.promise; + }, + }), + (PROMISE_FAKE_CAPABILITY = new PromiseCapability(Promise)), + (Promise$prototype$then = Promise$prototype.then), + Promise + ); + } + })(); + if ( + (globals.Promise && + (delete globals.Promise.accept, delete globals.Promise.defer, delete globals.Promise.prototype.chain), + 'function' == typeof PromiseShim) + ) { + defineProperties(globals, { Promise: PromiseShim }); + var promiseSupportsSubclassing = supportsSubclassing(globals.Promise, function (S) { + return S.resolve(42).then(function () {}) instanceof S; + }), + promiseIgnoresNonFunctionThenCallbacks = !throwsError(function () { + return globals.Promise.reject(42).then(null, 5).then(null, noop); + }), + promiseRequiresObjectContext = throwsError(function () { + return globals.Promise.call(3, noop); + }), + promiseResolveBroken = (function (Promise) { + var p = Promise.resolve(5); + p.constructor = {}; + var p2 = Promise.resolve(p); + try { + p2.then(null, noop).then(null, noop); + } catch (e) { + return !0; + } + return p === p2; + })(globals.Promise), + getsThenSynchronously = + supportsDescriptors && + ((count = 0), + (thenable = Object.defineProperty({}, 'then', { + get: function () { + count += 1; + }, + })), + Promise.resolve(thenable), + 1 === count), + BadResolverPromise = function BadResolverPromise(executor) { + var p = new Promise(executor); + executor(3, function () {}), (this.then = p.then), (this.constructor = BadResolverPromise); + }; + (BadResolverPromise.prototype = Promise.prototype), (BadResolverPromise.all = Promise.all); + var hasBadResolverPromise = valueOrFalseIfThrows(function () { + return !!BadResolverPromise.all([1, 2]); + }); + if ( + ((promiseSupportsSubclassing && + promiseIgnoresNonFunctionThenCallbacks && + promiseRequiresObjectContext && + !promiseResolveBroken && + getsThenSynchronously && + !hasBadResolverPromise) || + ((Promise = PromiseShim), overrideNative(globals, 'Promise', PromiseShim)), + 1 !== Promise.all.length) + ) { + var origAll = Promise.all; + overrideNative(Promise, 'all', function all(iterable) { + return ES.Call(origAll, this, arguments); + }); + } + if (1 !== Promise.race.length) { + var origRace = Promise.race; + overrideNative(Promise, 'race', function race(iterable) { + return ES.Call(origRace, this, arguments); + }); + } + if (1 !== Promise.resolve.length) { + var origResolve = Promise.resolve; + overrideNative(Promise, 'resolve', function resolve(x) { + return ES.Call(origResolve, this, arguments); + }); + } + if (1 !== Promise.reject.length) { + var origReject = Promise.reject; + overrideNative(Promise, 'reject', function reject(r) { + return ES.Call(origReject, this, arguments); + }); + } + ensureEnumerable(Promise, 'all'), + ensureEnumerable(Promise, 'race'), + ensureEnumerable(Promise, 'resolve'), + ensureEnumerable(Promise, 'reject'), + addDefaultSpecies(Promise); + } + var s, + m, + testOrder = function (a) { + var b = keys( + _reduce( + a, + function (o, k) { + return (o[k] = !0), o; + }, + {}, + ), + ); + return a.join(':') === b.join(':'); + }, + preservesInsertionOrder = testOrder(['z', 'a', 'bb']), + preservesNumericInsertionOrder = testOrder(['z', 1, 'a', '3', 2]); + if (supportsDescriptors) { + var fastkey = function fastkey(key, skipInsertionOrderCheck) { + return skipInsertionOrderCheck || preservesInsertionOrder + ? isNullOrUndefined(key) + ? '^' + ES.ToString(key) + : 'string' == typeof key + ? '$' + key + : 'number' == typeof key + ? preservesNumericInsertionOrder + ? key + : 'n' + key + : 'boolean' == typeof key + ? 'b' + key + : null + : null; + }, + emptyObject = function emptyObject() { + return Object.create ? Object.create(null) : {}; + }, + addIterableToMap = function addIterableToMap(MapConstructor, map, iterable) { + if (isArray(iterable) || Type.string(iterable)) + _forEach(iterable, function (entry) { + if (!ES.TypeIsObject(entry)) + throw new TypeError('Iterator value ' + entry + ' is not an entry object'); + map.set(entry[0], entry[1]); + }); + else if (iterable instanceof MapConstructor) + _call(MapConstructor.prototype.forEach, iterable, function (value, key) { + map.set(key, value); + }); + else { + var iter, adder; + if (!isNullOrUndefined(iterable)) { + if (((adder = map.set), !ES.IsCallable(adder))) throw new TypeError('bad map'); + iter = ES.GetIterator(iterable); + } + if (void 0 !== iter) + for (;;) { + var next = ES.IteratorStep(iter); + if (!1 === next) break; + var nextItem = next.value; + try { + if (!ES.TypeIsObject(nextItem)) + throw new TypeError('Iterator value ' + nextItem + ' is not an entry object'); + _call(adder, map, nextItem[0], nextItem[1]); + } catch (e) { + throw (ES.IteratorClose(iter, !0), e); + } + } + } + }, + addIterableToSet = function addIterableToSet(SetConstructor, set, iterable) { + if (isArray(iterable) || Type.string(iterable)) + _forEach(iterable, function (value) { + set.add(value); + }); + else if (iterable instanceof SetConstructor) + _call(SetConstructor.prototype.forEach, iterable, function (value) { + set.add(value); + }); + else { + var iter, adder; + if (!isNullOrUndefined(iterable)) { + if (((adder = set.add), !ES.IsCallable(adder))) throw new TypeError('bad set'); + iter = ES.GetIterator(iterable); + } + if (void 0 !== iter) + for (;;) { + var next = ES.IteratorStep(iter); + if (!1 === next) break; + var nextValue = next.value; + try { + _call(adder, set, nextValue); + } catch (e) { + throw (ES.IteratorClose(iter, !0), e); + } + } + } + }, + collectionShims = { + Map: (function () { + var empty = {}, + MapEntry = function MapEntry(key, value) { + (this.key = key), (this.value = value), (this.next = null), (this.prev = null); + }; + MapEntry.prototype.isRemoved = function isRemoved() { + return this.key === empty; + }; + var Map$prototype, + isMap = function isMap(map) { + return !!map._es6map; + }, + requireMapSlot = function requireMapSlot(map, method) { + if (!ES.TypeIsObject(map) || !isMap(map)) + throw new TypeError( + 'Method Map.prototype.' + method + ' called on incompatible receiver ' + ES.ToString(map), + ); + }, + MapIterator = function MapIterator(map, kind) { + requireMapSlot(map, '[[MapIterator]]'), + (this.head = map._head), + (this.i = this.head), + (this.kind = kind); + }; + (MapIterator.prototype = { + isMapIterator: !0, + next: function next() { + if (!this.isMapIterator) throw new TypeError('Not a MapIterator'); + var result, + i = this.i, + kind = this.kind, + head = this.head; + if (void 0 === this.i) return iteratorResult(); + for (; i.isRemoved() && i !== head; ) i = i.prev; + for (; i.next !== head; ) + if (!(i = i.next).isRemoved()) + return ( + (result = 'key' === kind ? i.key : 'value' === kind ? i.value : [i.key, i.value]), + (this.i = i), + iteratorResult(result) + ); + return (this.i = void 0), iteratorResult(); + }, + }), + addIterator(MapIterator.prototype); + var MapShim = function Map() { + if (!(this instanceof Map)) throw new TypeError('Constructor Map requires "new"'); + if (this && this._es6map) throw new TypeError('Bad construction'); + var map = emulateES6construct(this, Map, Map$prototype, { + _es6map: !0, + _head: null, + _map: OrigMap ? new OrigMap() : null, + _size: 0, + _storage: emptyObject(), + }), + head = new MapEntry(null, null); + return ( + (head.next = head.prev = head), + (map._head = head), + arguments.length > 0 && addIterableToMap(Map, map, arguments[0]), + map + ); + }; + return ( + (Map$prototype = MapShim.prototype), + Value.getter(Map$prototype, 'size', function () { + if (void 0 === this._size) throw new TypeError('size method called on incompatible Map'); + return this._size; + }), + defineProperties(Map$prototype, { + get: function get(key) { + var entry; + requireMapSlot(this, 'get'); + var fkey = fastkey(key, !0); + if (null !== fkey) return (entry = this._storage[fkey]) ? entry.value : void 0; + if (this._map) return (entry = origMapGet.call(this._map, key)) ? entry.value : void 0; + for (var head = this._head, i = head; (i = i.next) !== head; ) + if (ES.SameValueZero(i.key, key)) return i.value; + }, + has: function has(key) { + requireMapSlot(this, 'has'); + var fkey = fastkey(key, !0); + if (null !== fkey) return void 0 !== this._storage[fkey]; + if (this._map) return origMapHas.call(this._map, key); + for (var head = this._head, i = head; (i = i.next) !== head; ) + if (ES.SameValueZero(i.key, key)) return !0; + return !1; + }, + set: function set(key, value) { + requireMapSlot(this, 'set'); + var entry, + head = this._head, + i = head, + fkey = fastkey(key, !0); + if (null !== fkey) { + if (void 0 !== this._storage[fkey]) return (this._storage[fkey].value = value), this; + (entry = this._storage[fkey] = new MapEntry(key, value)), (i = head.prev); + } else + this._map && + (origMapHas.call(this._map, key) + ? (origMapGet.call(this._map, key).value = value) + : ((entry = new MapEntry(key, value)), + origMapSet.call(this._map, key, entry), + (i = head.prev))); + for (; (i = i.next) !== head; ) if (ES.SameValueZero(i.key, key)) return (i.value = value), this; + return ( + (entry = entry || new MapEntry(key, value)), + ES.SameValue(-0, key) && (entry.key = 0), + (entry.next = this._head), + (entry.prev = this._head.prev), + (entry.prev.next = entry), + (entry.next.prev = entry), + (this._size += 1), + this + ); + }, + delete: function (key) { + requireMapSlot(this, 'delete'); + var head = this._head, + i = head, + fkey = fastkey(key, !0); + if (null !== fkey) { + if (void 0 === this._storage[fkey]) return !1; + (i = this._storage[fkey].prev), delete this._storage[fkey]; + } else if (this._map) { + if (!origMapHas.call(this._map, key)) return !1; + (i = origMapGet.call(this._map, key).prev), origMapDelete.call(this._map, key); + } + for (; (i = i.next) !== head; ) + if (ES.SameValueZero(i.key, key)) + return ( + (i.key = empty), + (i.value = empty), + (i.prev.next = i.next), + (i.next.prev = i.prev), + (this._size -= 1), + !0 + ); + return !1; + }, + clear: function clear() { + requireMapSlot(this, 'clear'), + (this._map = OrigMap ? new OrigMap() : null), + (this._size = 0), + (this._storage = emptyObject()); + for (var head = this._head, i = head, p = i.next; (i = p) !== head; ) + (i.key = empty), (i.value = empty), (p = i.next), (i.next = i.prev = head); + head.next = head.prev = head; + }, + keys: function keys() { + return requireMapSlot(this, 'keys'), new MapIterator(this, 'key'); + }, + values: function values() { + return requireMapSlot(this, 'values'), new MapIterator(this, 'value'); + }, + entries: function entries() { + return requireMapSlot(this, 'entries'), new MapIterator(this, 'key+value'); + }, + forEach: function forEach(callback) { + requireMapSlot(this, 'forEach'); + for ( + var context = arguments.length > 1 ? arguments[1] : null, + it = this.entries(), + entry = it.next(); + !entry.done; + entry = it.next() + ) + context + ? _call(callback, context, entry.value[1], entry.value[0], this) + : callback(entry.value[1], entry.value[0], this); + }, + }), + addIterator(Map$prototype, Map$prototype.entries), + MapShim + ); + })(), + Set: (function () { + var Set$prototype, + isSet = function isSet(set) { + return set._es6set && void 0 !== set._storage; + }, + requireSetSlot = function requireSetSlot(set, method) { + if (!ES.TypeIsObject(set) || !isSet(set)) + throw new TypeError( + 'Set.prototype.' + method + ' called on incompatible receiver ' + ES.ToString(set), + ); + }, + SetShim = function Set() { + if (!(this instanceof Set)) throw new TypeError('Constructor Set requires "new"'); + if (this && this._es6set) throw new TypeError('Bad construction'); + var set = emulateES6construct(this, Set, Set$prototype, { + _es6set: !0, + '[[SetData]]': null, + _storage: emptyObject(), + }); + if (!set._es6set) throw new TypeError('bad set'); + return arguments.length > 0 && addIterableToSet(Set, set, arguments[0]), set; + }; + Set$prototype = SetShim.prototype; + var decodeKey = function (key) { + var k = key; + if ('^null' === k) return null; + if ('^undefined' !== k) { + var first = k.charAt(0); + return '$' === first + ? _strSlice(k, 1) + : 'n' === first + ? +_strSlice(k, 1) + : 'b' === first + ? 'btrue' === k + : +k; + } + }, + ensureMap = function ensureMap(set) { + if (!set['[[SetData]]']) { + var m = new collectionShims.Map(); + (set['[[SetData]]'] = m), + _forEach(keys(set._storage), function (key) { + var k = decodeKey(key); + m.set(k, k); + }), + (set['[[SetData]]'] = m); + } + set._storage = null; + }; + Value.getter(SetShim.prototype, 'size', function () { + return ( + requireSetSlot(this, 'size'), + this._storage ? keys(this._storage).length : (ensureMap(this), this['[[SetData]]'].size) + ); + }), + defineProperties(SetShim.prototype, { + has: function has(key) { + var fkey; + return ( + requireSetSlot(this, 'has'), + this._storage && null !== (fkey = fastkey(key)) + ? !!this._storage[fkey] + : (ensureMap(this), this['[[SetData]]'].has(key)) + ); + }, + add: function add(key) { + var fkey; + return ( + requireSetSlot(this, 'add'), + this._storage && null !== (fkey = fastkey(key)) + ? ((this._storage[fkey] = !0), this) + : (ensureMap(this), this['[[SetData]]'].set(key, key), this) + ); + }, + delete: function (key) { + var fkey; + if ((requireSetSlot(this, 'delete'), this._storage && null !== (fkey = fastkey(key)))) { + var hasFKey = _hasOwnProperty(this._storage, fkey); + return delete this._storage[fkey] && hasFKey; + } + return ensureMap(this), this['[[SetData]]'].delete(key); + }, + clear: function clear() { + requireSetSlot(this, 'clear'), + this._storage && (this._storage = emptyObject()), + this['[[SetData]]'] && this['[[SetData]]'].clear(); + }, + values: function values() { + return ( + requireSetSlot(this, 'values'), ensureMap(this), new SetIterator(this['[[SetData]]'].values()) + ); + }, + entries: function entries() { + return ( + requireSetSlot(this, 'entries'), ensureMap(this), new SetIterator(this['[[SetData]]'].entries()) + ); + }, + forEach: function forEach(callback) { + requireSetSlot(this, 'forEach'); + var context = arguments.length > 1 ? arguments[1] : null, + entireSet = this; + ensureMap(entireSet), + this['[[SetData]]'].forEach(function (value, key) { + context ? _call(callback, context, key, key, entireSet) : callback(key, key, entireSet); + }); + }, + }), + defineProperty(SetShim.prototype, 'keys', SetShim.prototype.values, !0), + addIterator(SetShim.prototype, SetShim.prototype.values); + var SetIterator = function SetIterator(it) { + this.it = it; + }; + return ( + (SetIterator.prototype = { + isSetIterator: !0, + next: function next() { + if (!this.isSetIterator) throw new TypeError('Not a SetIterator'); + return this.it.next(); + }, + }), + addIterator(SetIterator.prototype), + SetShim + ); + })(), + }; + if ( + (globals.Set && + !Set.prototype.delete && + Set.prototype.remove && + Set.prototype.items && + Set.prototype.map && + Array.isArray(new Set().keys) && + (globals.Set = collectionShims.Set), + globals.Map || globals.Set) + ) { + valueOrFalseIfThrows(function () { + return 2 === new Map([[1, 2]]).get(1); + }) || + ((globals.Map = function Map() { + if (!(this instanceof Map)) throw new TypeError('Constructor Map requires "new"'); + var m = new OrigMap(); + return ( + arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), + delete m.constructor, + Object.setPrototypeOf(m, globals.Map.prototype), + m + ); + }), + (globals.Map.prototype = create(OrigMap.prototype)), + defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), + Value.preserveToString(globals.Map, OrigMap)); + var testMap = new Map(), + mapUsesSameValueZero = + ((m = new Map([ + [1, 0], + [2, 0], + [3, 0], + [4, 0], + ])).set(-0, m), + m.get(0) === m && m.get(-0) === m && m.has(0) && m.has(-0)), + mapSupportsChaining = testMap.set(1, 2) === testMap; + (mapUsesSameValueZero && mapSupportsChaining) || + overrideNative(Map.prototype, 'set', function set(k, v) { + return _call(origMapSet, this, 0 === k ? 0 : k, v), this; + }), + mapUsesSameValueZero || + (defineProperties( + Map.prototype, + { + get: function get(k) { + return _call(origMapGet, this, 0 === k ? 0 : k); + }, + has: function has(k) { + return _call(origMapHas, this, 0 === k ? 0 : k); + }, + }, + !0, + ), + Value.preserveToString(Map.prototype.get, origMapGet), + Value.preserveToString(Map.prototype.has, origMapHas)); + var testSet = new Set(), + setUsesSameValueZero = + Set.prototype.delete && + Set.prototype.add && + Set.prototype.has && + ((s = testSet).delete(0), s.add(-0), !s.has(0)), + setSupportsChaining = testSet.add(1) === testSet; + if (!setUsesSameValueZero || !setSupportsChaining) { + var origSetAdd = Set.prototype.add; + (Set.prototype.add = function add(v) { + return _call(origSetAdd, this, 0 === v ? 0 : v), this; + }), + Value.preserveToString(Set.prototype.add, origSetAdd); + } + if (!setUsesSameValueZero) { + var origSetHas = Set.prototype.has; + (Set.prototype.has = function has(v) { + return _call(origSetHas, this, 0 === v ? 0 : v); + }), + Value.preserveToString(Set.prototype.has, origSetHas); + var origSetDel = Set.prototype.delete; + (Set.prototype.delete = function SetDelete(v) { + return _call(origSetDel, this, 0 === v ? 0 : v); + }), + Value.preserveToString(Set.prototype.delete, origSetDel); + } + var mapSupportsSubclassing = supportsSubclassing(globals.Map, function (M) { + var m = new M([]); + return m.set(42, 42), m instanceof M; + }), + mapFailsToSupportSubclassing = Object.setPrototypeOf && !mapSupportsSubclassing, + mapRequiresNew = (function () { + try { + return !(globals.Map() instanceof globals.Map); + } catch (e) { + return e instanceof TypeError; + } + })(); + (0 === globals.Map.length && !mapFailsToSupportSubclassing && mapRequiresNew) || + ((globals.Map = function Map() { + if (!(this instanceof Map)) throw new TypeError('Constructor Map requires "new"'); + var m = new OrigMap(); + return ( + arguments.length > 0 && addIterableToMap(Map, m, arguments[0]), + delete m.constructor, + Object.setPrototypeOf(m, Map.prototype), + m + ); + }), + (globals.Map.prototype = OrigMap.prototype), + defineProperty(globals.Map.prototype, 'constructor', globals.Map, !0), + Value.preserveToString(globals.Map, OrigMap)); + var setSupportsSubclassing = supportsSubclassing(globals.Set, function (S) { + var s = new S([]); + return s.add(42, 42), s instanceof S; + }), + setFailsToSupportSubclassing = Object.setPrototypeOf && !setSupportsSubclassing, + setRequiresNew = (function () { + try { + return !(globals.Set() instanceof globals.Set); + } catch (e) { + return e instanceof TypeError; + } + })(); + if (0 !== globals.Set.length || setFailsToSupportSubclassing || !setRequiresNew) { + var OrigSet = globals.Set; + (globals.Set = function Set() { + if (!(this instanceof Set)) throw new TypeError('Constructor Set requires "new"'); + var s = new OrigSet(); + return ( + arguments.length > 0 && addIterableToSet(Set, s, arguments[0]), + delete s.constructor, + Object.setPrototypeOf(s, Set.prototype), + s + ); + }), + (globals.Set.prototype = OrigSet.prototype), + defineProperty(globals.Set.prototype, 'constructor', globals.Set, !0), + Value.preserveToString(globals.Set, OrigSet); + } + var newMap = new globals.Map(), + mapIterationThrowsStopIterator = !valueOrFalseIfThrows(function () { + return newMap.keys().next().done; + }); + if ( + (('function' != typeof globals.Map.prototype.clear || + 0 !== new globals.Set().size || + 0 !== newMap.size || + 'function' != typeof globals.Map.prototype.keys || + 'function' != typeof globals.Set.prototype.keys || + 'function' != typeof globals.Map.prototype.forEach || + 'function' != typeof globals.Set.prototype.forEach || + isCallableWithoutNew(globals.Map) || + isCallableWithoutNew(globals.Set) || + 'function' != typeof newMap.keys().next || + mapIterationThrowsStopIterator || + !mapSupportsSubclassing) && + defineProperties(globals, { Map: collectionShims.Map, Set: collectionShims.Set }, !0), + globals.Set.prototype.keys !== globals.Set.prototype.values && + defineProperty(globals.Set.prototype, 'keys', globals.Set.prototype.values, !0), + addIterator(Object.getPrototypeOf(new globals.Map().keys())), + addIterator(Object.getPrototypeOf(new globals.Set().keys())), + functionsHaveNames && 'has' !== globals.Set.prototype.has.name) + ) { + var anonymousSetHas = globals.Set.prototype.has; + overrideNative(globals.Set.prototype, 'has', function has(key) { + return _call(anonymousSetHas, this, key); + }); + } + } + defineProperties(globals, collectionShims), addDefaultSpecies(globals.Map), addDefaultSpecies(globals.Set); + } + var throwUnlessTargetIsObject = function throwUnlessTargetIsObject(target) { + if (!ES.TypeIsObject(target)) throw new TypeError('target must be an object'); + }, + ReflectShims = { + apply: function apply() { + return ES.Call(ES.Call, null, arguments); + }, + construct: function construct(constructor, args) { + if (!ES.IsConstructor(constructor)) throw new TypeError('First argument must be a constructor.'); + var newTarget = arguments.length > 2 ? arguments[2] : constructor; + if (!ES.IsConstructor(newTarget)) throw new TypeError('new.target must be a constructor.'); + return ES.Construct(constructor, args, newTarget, 'internal'); + }, + deleteProperty: function deleteProperty(target, key) { + if ((throwUnlessTargetIsObject(target), supportsDescriptors)) { + var desc = Object.getOwnPropertyDescriptor(target, key); + if (desc && !desc.configurable) return !1; + } + return delete target[key]; + }, + has: function has(target, key) { + return throwUnlessTargetIsObject(target), key in target; + }, + }; + Object.getOwnPropertyNames && + Object.assign(ReflectShims, { + ownKeys: function ownKeys(target) { + throwUnlessTargetIsObject(target); + var keys = Object.getOwnPropertyNames(target); + return ( + ES.IsCallable(Object.getOwnPropertySymbols) && _pushApply(keys, Object.getOwnPropertySymbols(target)), + keys + ); + }, + }); + var callAndCatchException = function ConvertExceptionToBoolean(func) { + return !throwsError(func); + }; + if ( + (Object.preventExtensions && + Object.assign(ReflectShims, { + isExtensible: function isExtensible(target) { + return throwUnlessTargetIsObject(target), Object.isExtensible(target); + }, + preventExtensions: function preventExtensions(target) { + return ( + throwUnlessTargetIsObject(target), + callAndCatchException(function () { + return Object.preventExtensions(target); + }) + ); + }, + }), + supportsDescriptors) + ) { + var internalGet = function get(target, key, receiver) { + var desc = Object.getOwnPropertyDescriptor(target, key); + if (!desc) { + var parent = Object.getPrototypeOf(target); + if (null === parent) return; + return internalGet(parent, key, receiver); + } + return 'value' in desc ? desc.value : desc.get ? ES.Call(desc.get, receiver) : void 0; + }, + internalSet = function set(target, key, value, receiver) { + var desc = Object.getOwnPropertyDescriptor(target, key); + if (!desc) { + var parent = Object.getPrototypeOf(target); + if (null !== parent) return internalSet(parent, key, value, receiver); + desc = { value: void 0, writable: !0, enumerable: !0, configurable: !0 }; + } + return 'value' in desc + ? !!desc.writable && + !!ES.TypeIsObject(receiver) && + (Object.getOwnPropertyDescriptor(receiver, key) + ? Reflect.defineProperty(receiver, key, { value }) + : Reflect.defineProperty(receiver, key, { + value, + writable: !0, + enumerable: !0, + configurable: !0, + })) + : !!desc.set && (_call(desc.set, receiver, value), !0); + }; + Object.assign(ReflectShims, { + defineProperty: function defineProperty(target, propertyKey, attributes) { + return ( + throwUnlessTargetIsObject(target), + callAndCatchException(function () { + return Object.defineProperty(target, propertyKey, attributes); + }) + ); + }, + getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) { + return throwUnlessTargetIsObject(target), Object.getOwnPropertyDescriptor(target, propertyKey); + }, + get: function get(target, key) { + return ( + throwUnlessTargetIsObject(target), + internalGet(target, key, arguments.length > 2 ? arguments[2] : target) + ); + }, + set: function set(target, key, value) { + return ( + throwUnlessTargetIsObject(target), + internalSet(target, key, value, arguments.length > 3 ? arguments[3] : target) + ); + }, + }); + } + if (Object.getPrototypeOf) { + var objectDotGetPrototypeOf = Object.getPrototypeOf; + ReflectShims.getPrototypeOf = function getPrototypeOf(target) { + return throwUnlessTargetIsObject(target), objectDotGetPrototypeOf(target); + }; + } + if (Object.setPrototypeOf && ReflectShims.getPrototypeOf) { + var willCreateCircularPrototype = function (object, lastProto) { + for (var proto = lastProto; proto; ) { + if (object === proto) return !0; + proto = ReflectShims.getPrototypeOf(proto); + } + return !1; + }; + Object.assign(ReflectShims, { + setPrototypeOf: function setPrototypeOf(object, proto) { + if ((throwUnlessTargetIsObject(object), null !== proto && !ES.TypeIsObject(proto))) + throw new TypeError('proto must be an object or null'); + return ( + proto === Reflect.getPrototypeOf(object) || + (!(Reflect.isExtensible && !Reflect.isExtensible(object)) && + !willCreateCircularPrototype(object, proto) && + (Object.setPrototypeOf(object, proto), !0)) + ); + }, + }); + } + var defineOrOverrideReflectProperty = function (key, shim) { + ES.IsCallable(globals.Reflect[key]) + ? valueOrFalseIfThrows(function () { + return globals.Reflect[key](1), globals.Reflect[key](NaN), globals.Reflect[key](!0), !0; + }) && overrideNative(globals.Reflect, key, shim) + : defineProperty(globals.Reflect, key, shim); + }; + Object.keys(ReflectShims).forEach(function (key) { + defineOrOverrideReflectProperty(key, ReflectShims[key]); + }); + var originalReflectGetProto = globals.Reflect.getPrototypeOf; + if ( + (functionsHaveNames && + originalReflectGetProto && + 'getPrototypeOf' !== originalReflectGetProto.name && + overrideNative(globals.Reflect, 'getPrototypeOf', function getPrototypeOf(target) { + return _call(originalReflectGetProto, globals.Reflect, target); + }), + globals.Reflect.setPrototypeOf && + valueOrFalseIfThrows(function () { + return globals.Reflect.setPrototypeOf(1, {}), !0; + }) && + overrideNative(globals.Reflect, 'setPrototypeOf', ReflectShims.setPrototypeOf), + globals.Reflect.defineProperty && + (valueOrFalseIfThrows(function () { + var basic = !globals.Reflect.defineProperty(1, 'test', { value: 1 }), + extensible = + 'function' != typeof Object.preventExtensions || + !globals.Reflect.defineProperty(Object.preventExtensions({}), 'test', {}); + return basic && extensible; + }) || + overrideNative(globals.Reflect, 'defineProperty', ReflectShims.defineProperty)), + globals.Reflect.construct && + (valueOrFalseIfThrows(function () { + var F = function F() {}; + return globals.Reflect.construct(function () {}, [], F) instanceof F; + }) || + overrideNative(globals.Reflect, 'construct', ReflectShims.construct)), + 'Invalid Date' !== String(new Date(NaN))) + ) { + var dateToString = Date.prototype.toString, + shimmedDateToString = function toString() { + var valueOf = +this; + return valueOf != valueOf ? 'Invalid Date' : ES.Call(dateToString, this); + }; + overrideNative(Date.prototype, 'toString', shimmedDateToString); + } + var stringHTMLshims = { + anchor: function anchor(name) { + return ES.CreateHTML(this, 'a', 'name', name); + }, + big: function big() { + return ES.CreateHTML(this, 'big', '', ''); + }, + blink: function blink() { + return ES.CreateHTML(this, 'blink', '', ''); + }, + bold: function bold() { + return ES.CreateHTML(this, 'b', '', ''); + }, + fixed: function fixed() { + return ES.CreateHTML(this, 'tt', '', ''); + }, + fontcolor: function fontcolor(color) { + return ES.CreateHTML(this, 'font', 'color', color); + }, + fontsize: function fontsize(size) { + return ES.CreateHTML(this, 'font', 'size', size); + }, + italics: function italics() { + return ES.CreateHTML(this, 'i', '', ''); + }, + link: function link(url) { + return ES.CreateHTML(this, 'a', 'href', url); + }, + small: function small() { + return ES.CreateHTML(this, 'small', '', ''); + }, + strike: function strike() { + return ES.CreateHTML(this, 'strike', '', ''); + }, + sub: function sub() { + return ES.CreateHTML(this, 'sub', '', ''); + }, + sup: function sub() { + return ES.CreateHTML(this, 'sup', '', ''); + }, + }; + _forEach(Object.keys(stringHTMLshims), function (key) { + var method = String.prototype[key], + shouldOverwrite = !1; + if (ES.IsCallable(method)) { + var output = _call(method, '', ' " '), + quotesCount = _concat([], output.match(/"/g)).length; + shouldOverwrite = output !== output.toLowerCase() || quotesCount > 2; + } else shouldOverwrite = !0; + shouldOverwrite && overrideNative(String.prototype, key, stringHTMLshims[key]); + }); + var JSONstringifiesSymbols = (function () { + if (!hasSymbols) return !1; + var stringify = 'object' == typeof JSON && 'function' == typeof JSON.stringify ? JSON.stringify : null; + if (!stringify) return !1; + if (void 0 !== stringify(Symbol())) return !0; + if ('[null]' !== stringify([Symbol()])) return !0; + var obj = { a: Symbol() }; + return (obj[Symbol()] = !0), '{}' !== stringify(obj); + })(), + JSONstringifyAcceptsObjectSymbol = valueOrFalseIfThrows(function () { + return ( + !hasSymbols || + ('{}' === JSON.stringify(Object(Symbol())) && '[{}]' === JSON.stringify([Object(Symbol())])) + ); + }); + if (JSONstringifiesSymbols || !JSONstringifyAcceptsObjectSymbol) { + var origStringify = JSON.stringify; + overrideNative(JSON, 'stringify', function stringify(value) { + if ('symbol' != typeof value) { + var replacer; + arguments.length > 1 && (replacer = arguments[1]); + var args = [value]; + if (isArray(replacer)) args.push(replacer); + else { + var replaceFn = ES.IsCallable(replacer) ? replacer : null, + wrappedReplacer = function (key, val) { + var parsedValue = replaceFn ? _call(replaceFn, this, key, val) : val; + if ('symbol' != typeof parsedValue) + return Type.symbol(parsedValue) ? assignTo({})(parsedValue) : parsedValue; + }; + args.push(wrappedReplacer); + } + return arguments.length > 2 && args.push(arguments[2]), origStringify.apply(this, args); + } + }); + } + return globals; + }), + void 0 === + (__WEBPACK_AMD_DEFINE_RESULT__ = + 'function' == typeof __WEBPACK_AMD_DEFINE_FACTORY__ + ? __WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module) + : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__); + }, + 69378: module => { + 'use strict'; + module.exports = function equal(a, b) { + if (a === b) return !0; + if (a && b && 'object' == typeof a && 'object' == typeof b) { + if (a.constructor !== b.constructor) return !1; + var length, i, keys; + if (Array.isArray(a)) { + if ((length = a.length) != b.length) return !1; + for (i = length; 0 != i--; ) if (!equal(a[i], b[i])) return !1; + return !0; + } + if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; + if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); + if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); + if ((length = (keys = Object.keys(a)).length) !== Object.keys(b).length) return !1; + for (i = length; 0 != i--; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return !1; + for (i = length; 0 != i--; ) { + var key = keys[i]; + if (!equal(a[key], b[key])) return !1; + } + return !0; + } + return a != a && b != b; + }; + }, + 37795: module => { + 'use strict'; + var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ', + slice = Array.prototype.slice, + toStr = Object.prototype.toString; + module.exports = function bind(that) { + var target = this; + if ('function' != typeof target || '[object Function]' !== toStr.call(target)) + throw new TypeError(ERROR_MESSAGE + target); + for ( + var bound, + args = slice.call(arguments, 1), + binder = function () { + if (this instanceof bound) { + var result = target.apply(this, args.concat(slice.call(arguments))); + return Object(result) === result ? result : this; + } + return target.apply(that, args.concat(slice.call(arguments))); + }, + boundLength = Math.max(0, target.length - args.length), + boundArgs = [], + i = 0; + i < boundLength; + i++ + ) + boundArgs.push('$' + i); + if ( + ((bound = Function( + 'binder', + 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }', + )(binder)), + target.prototype) + ) { + var Empty = function Empty() {}; + (Empty.prototype = target.prototype), (bound.prototype = new Empty()), (Empty.prototype = null); + } + return bound; + }; + }, + 4090: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(37795); + module.exports = Function.prototype.bind || implementation; + }, + 63595: module => { + module.exports = 'string' == typeof function foo() {}.name; + }, + 63872: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var isCallable = __webpack_require__(9680), + functionsHaveNames = __webpack_require__(63595), + bind = __webpack_require__(4090), + functionToString = bind.call(Function.call, Function.prototype.toString), + stringMatch = bind.call(Function.call, String.prototype.match), + classRegex = /^class /, + regex = /\s*function\s+([^(\s]*)\s*/, + functionProto = Function.prototype; + module.exports = function getName() { + if ( + !(function isClassConstructor(fn) { + if (isCallable(fn)) return !1; + if ('function' != typeof fn) return !1; + try { + return !!stringMatch(functionToString(fn), classRegex); + } catch (e) {} + return !1; + })(this) && + !isCallable(this) + ) + throw new TypeError('Function.prototype.name sham getter called on non-function'); + if (functionsHaveNames) return this.name; + if (this === functionProto) return ''; + var str = functionToString(this), + match = stringMatch(str, regex); + return match && match[1]; + }; + }, + 35619: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(63872); + module.exports = function getPolyfill() { + return implementation; + }; + }, + 24619: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var supportsDescriptors = __webpack_require__(14926).supportsDescriptors, + functionsHaveNames = __webpack_require__(63595), + getPolyfill = __webpack_require__(35619), + defineProperty = Object.defineProperty, + TypeErr = TypeError; + module.exports = function shimName() { + var polyfill = getPolyfill(); + if (functionsHaveNames) return polyfill; + if (!supportsDescriptors) + throw new TypeErr('Shimming Function.prototype.name support requires ES5 property descriptor support.'); + var functionProto = Function.prototype; + return ( + defineProperty(functionProto, 'name', { + configurable: !0, + enumerable: !1, + get: function () { + var name = polyfill.call(this); + return ( + this !== functionProto && + defineProperty(this, 'name', { configurable: !0, enumerable: !1, value: name, writable: !1 }), + name + ); + }, + }), + polyfill + ); + }; + }, + 46522: function (module) { + module.exports = (function (e) { + var t = {}; + function r(n) { + if (t[n]) return t[n].exports; + var o = (t[n] = { i: n, l: !1, exports: {} }); + return e[n].call(o.exports, o, o.exports, r), (o.l = !0), o.exports; + } + return ( + (r.m = e), + (r.c = t), + (r.d = function (e, t, n) { + r.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: n }); + }), + (r.r = function (e) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }), + Object.defineProperty(e, '__esModule', { value: !0 }); + }), + (r.t = function (e, t) { + if ((1 & t && (e = r(e)), 8 & t)) return e; + if (4 & t && 'object' == typeof e && e && e.__esModule) return e; + var n = Object.create(null); + if ( + (r.r(n), Object.defineProperty(n, 'default', { enumerable: !0, value: e }), 2 & t && 'string' != typeof e) + ) + for (var o in e) + r.d( + n, + o, + function (t) { + return e[t]; + }.bind(null, o), + ); + return n; + }), + (r.n = function (e) { + var t = + e && e.__esModule + ? function () { + return e.default; + } + : function () { + return e; + }; + return r.d(t, 'a', t), t; + }), + (r.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (r.p = ''), + r((r.s = 0)) + ); + })([ + function (e, t, r) { + function n(e) { + return (n = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator + ? function (e) { + return typeof e; + } + : function (e) { + return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype + ? 'symbol' + : typeof e; + })(e); + } + function o(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n); + } + } + var i = r(1), + a = r(7), + s = a.get, + c = (a.deepValue, a.isArray), + h = (function () { + function e(t, r) { + var n = r.location, + o = void 0 === n ? 0 : n, + i = r.distance, + a = void 0 === i ? 100 : i, + c = r.threshold, + h = void 0 === c ? 0.6 : c, + l = r.maxPatternLength, + u = void 0 === l ? 32 : l, + f = r.caseSensitive, + v = void 0 !== f && f, + p = r.tokenSeparator, + d = void 0 === p ? / +/g : p, + g = r.findAllMatches, + y = void 0 !== g && g, + m = r.minMatchCharLength, + k = void 0 === m ? 1 : m, + b = r.id, + S = void 0 === b ? null : b, + x = r.keys, + M = void 0 === x ? [] : x, + _ = r.shouldSort, + w = void 0 === _ || _, + L = r.getFn, + A = void 0 === L ? s : L, + O = r.sortFn, + C = + void 0 === O + ? function (e, t) { + return e.score - t.score; + } + : O, + j = r.tokenize, + P = void 0 !== j && j, + I = r.matchAllTokens, + F = void 0 !== I && I, + T = r.includeMatches, + N = void 0 !== T && T, + z = r.includeScore, + E = void 0 !== z && z, + W = r.verbose, + K = void 0 !== W && W; + !(function (e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + })(this, e), + (this.options = { + location: o, + distance: a, + threshold: h, + maxPatternLength: u, + isCaseSensitive: v, + tokenSeparator: d, + findAllMatches: y, + minMatchCharLength: k, + id: S, + keys: M, + includeMatches: N, + includeScore: E, + shouldSort: w, + getFn: A, + sortFn: C, + verbose: K, + tokenize: P, + matchAllTokens: F, + }), + this.setCollection(t), + this._processKeys(M); + } + var t, r, a; + return ( + (t = e), + (r = [ + { + key: 'setCollection', + value: function (e) { + return (this.list = e), e; + }, + }, + { + key: '_processKeys', + value: function (e) { + if (((this._keyWeights = {}), (this._keyNames = []), e.length && 'string' == typeof e[0])) + for (var t = 0, r = e.length; t < r; t += 1) { + var n = e[t]; + (this._keyWeights[n] = 1), this._keyNames.push(n); + } + else { + for (var o = null, i = null, a = 0, s = 0, c = e.length; s < c; s += 1) { + var h = e[s]; + if (!h.hasOwnProperty('name')) throw new Error('Missing "name" property in key object'); + var l = h.name; + if ((this._keyNames.push(l), !h.hasOwnProperty('weight'))) + throw new Error('Missing "weight" property in key object'); + var u = h.weight; + if (u < 0 || u > 1) throw new Error('"weight" property in key must bein the range of [0, 1)'); + (i = null == i ? u : Math.max(i, u)), + (o = null == o ? u : Math.min(o, u)), + (this._keyWeights[l] = u), + (a += u); + } + if (a > 1) throw new Error('Total of weights cannot exceed 1'); + } + }, + }, + { + key: 'search', + value: function (e) { + var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { limit: !1 }; + this._log('---------\nSearch pattern: "'.concat(e, '"')); + var r = this._prepareSearchers(e), + n = r.tokenSearchers, + o = r.fullSearcher, + i = this._search(n, o); + return ( + this._computeScore(i), + this.options.shouldSort && this._sort(i), + t.limit && 'number' == typeof t.limit && (i = i.slice(0, t.limit)), + this._format(i) + ); + }, + }, + { + key: '_prepareSearchers', + value: function () { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '', + t = []; + if (this.options.tokenize) + for (var r = e.split(this.options.tokenSeparator), n = 0, o = r.length; n < o; n += 1) + t.push(new i(r[n], this.options)); + return { tokenSearchers: t, fullSearcher: new i(e, this.options) }; + }, + }, + { + key: '_search', + value: function () { + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], + t = arguments.length > 1 ? arguments[1] : void 0, + r = this.list, + n = {}, + o = []; + if ('string' == typeof r[0]) { + for (var i = 0, a = r.length; i < a; i += 1) + this._analyze( + { key: '', value: r[i], record: i, index: i }, + { resultMap: n, results: o, tokenSearchers: e, fullSearcher: t }, + ); + return o; + } + for (var s = 0, c = r.length; s < c; s += 1) + for (var h = r[s], l = 0, u = this._keyNames.length; l < u; l += 1) { + var f = this._keyNames[l]; + this._analyze( + { key: f, value: this.options.getFn(h, f), record: h, index: s }, + { resultMap: n, results: o, tokenSearchers: e, fullSearcher: t }, + ); + } + return o; + }, + }, + { + key: '_analyze', + value: function (e, t) { + var r = this, + n = e.key, + o = e.arrayIndex, + i = void 0 === o ? -1 : o, + a = e.value, + s = e.record, + h = e.index, + l = t.tokenSearchers, + u = void 0 === l ? [] : l, + f = t.fullSearcher, + v = t.resultMap, + p = void 0 === v ? {} : v, + d = t.results, + g = void 0 === d ? [] : d; + !(function e(t, o, i, a) { + if (null != o) + if ('string' == typeof o) { + var s = !1, + h = -1, + l = 0; + r._log('\nKey: '.concat('' === n ? '--' : n)); + var v = f.search(o); + if ((r._log('Full text: "'.concat(o, '", score: ').concat(v.score)), r.options.tokenize)) { + for ( + var d = o.split(r.options.tokenSeparator), y = d.length, m = [], k = 0, b = u.length; + k < b; + k += 1 + ) { + var S = u[k]; + r._log('\nPattern: "'.concat(S.pattern, '"')); + for (var x = !1, M = 0; M < y; M += 1) { + var _ = d[M], + w = S.search(_), + L = {}; + w.isMatch + ? ((L[_] = w.score), (s = !0), (x = !0), m.push(w.score)) + : ((L[_] = 1), r.options.matchAllTokens || m.push(1)), + r._log('Token: "'.concat(_, '", score: ').concat(L[_])); + } + x && (l += 1); + } + h = m[0]; + for (var A = m.length, O = 1; O < A; O += 1) h += m[O]; + (h /= A), r._log('Token score average:', h); + } + var C = v.score; + h > -1 && (C = (C + h) / 2), r._log('Score average:', C); + var j = !r.options.tokenize || !r.options.matchAllTokens || l >= u.length; + if ((r._log('\nCheck Matches: '.concat(j)), (s || v.isMatch) && j)) { + var P = { key: n, arrayIndex: t, value: o, score: C }; + r.options.includeMatches && (P.matchedIndices = v.matchedIndices); + var I = p[a]; + I ? I.output.push(P) : ((p[a] = { item: i, output: [P] }), g.push(p[a])); + } + } else if (c(o)) for (var F = 0, T = o.length; F < T; F += 1) e(F, o[F], i, a); + })(i, a, s, h); + }, + }, + { + key: '_computeScore', + value: function (e) { + this._log('\n\nComputing score:\n'); + for (var t = this._keyWeights, r = !!Object.keys(t).length, n = 0, o = e.length; n < o; n += 1) { + for (var i = e[n], a = i.output, s = a.length, c = 1, h = 0; h < s; h += 1) { + var l = a[h], + u = l.key, + f = r ? t[u] : 1, + v = 0 === l.score && t && t[u] > 0 ? Number.EPSILON : l.score; + c *= Math.pow(v, f); + } + (i.score = c), this._log(i); + } + }, + }, + { + key: '_sort', + value: function (e) { + this._log('\n\nSorting....'), e.sort(this.options.sortFn); + }, + }, + { + key: '_format', + value: function (e) { + var t = []; + if (this.options.verbose) { + var r = []; + this._log( + '\n\nOutput:\n\n', + JSON.stringify( + e, + function (e, t) { + if ('object' === n(t) && null !== t) { + if (-1 !== r.indexOf(t)) return; + r.push(t); + } + return t; + }, + 2, + ), + ), + (r = null); + } + var o = []; + this.options.includeMatches && + o.push(function (e, t) { + var r = e.output; + t.matches = []; + for (var n = 0, o = r.length; n < o; n += 1) { + var i = r[n]; + if (0 !== i.matchedIndices.length) { + var a = { indices: i.matchedIndices, value: i.value }; + i.key && (a.key = i.key), + i.hasOwnProperty('arrayIndex') && i.arrayIndex > -1 && (a.arrayIndex = i.arrayIndex), + t.matches.push(a); + } + } + }), + this.options.includeScore && + o.push(function (e, t) { + t.score = e.score; + }); + for (var i = 0, a = e.length; i < a; i += 1) { + var s = e[i]; + if ((this.options.id && (s.item = this.options.getFn(s.item, this.options.id)[0]), o.length)) { + for (var c = { item: s.item }, h = 0, l = o.length; h < l; h += 1) o[h](s, c); + t.push(c); + } else t.push(s.item); + } + return t; + }, + }, + { + key: '_log', + value: function () { + var e; + this.options.verbose && (e = console).log.apply(e, arguments); + }, + }, + ]) && o(t.prototype, r), + a && o(t, a), + e + ); + })(); + e.exports = h; + }, + function (e, t, r) { + function n(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + (n.enumerable = n.enumerable || !1), + (n.configurable = !0), + 'value' in n && (n.writable = !0), + Object.defineProperty(e, n.key, n); + } + } + var o = r(2), + i = r(3), + a = r(6), + s = (function () { + function e(t, r) { + var n = r.location, + o = void 0 === n ? 0 : n, + i = r.distance, + s = void 0 === i ? 100 : i, + c = r.threshold, + h = void 0 === c ? 0.6 : c, + l = r.maxPatternLength, + u = void 0 === l ? 32 : l, + f = r.isCaseSensitive, + v = void 0 !== f && f, + p = r.tokenSeparator, + d = void 0 === p ? / +/g : p, + g = r.findAllMatches, + y = void 0 !== g && g, + m = r.minMatchCharLength, + k = void 0 === m ? 1 : m, + b = r.includeMatches, + S = void 0 !== b && b; + !(function (e, t) { + if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); + })(this, e), + (this.options = { + location: o, + distance: s, + threshold: h, + maxPatternLength: u, + isCaseSensitive: v, + tokenSeparator: d, + findAllMatches: y, + includeMatches: S, + minMatchCharLength: k, + }), + (this.pattern = v ? t : t.toLowerCase()), + this.pattern.length <= u && (this.patternAlphabet = a(this.pattern)); + } + var t, r, s; + return ( + (t = e), + (r = [ + { + key: 'search', + value: function (e) { + var t = this.options, + r = t.isCaseSensitive, + n = t.includeMatches; + if ((r || (e = e.toLowerCase()), this.pattern === e)) { + var a = { isMatch: !0, score: 0 }; + return n && (a.matchedIndices = [[0, e.length - 1]]), a; + } + var s = this.options, + c = s.maxPatternLength, + h = s.tokenSeparator; + if (this.pattern.length > c) return o(e, this.pattern, h); + var l = this.options, + u = l.location, + f = l.distance, + v = l.threshold, + p = l.findAllMatches, + d = l.minMatchCharLength; + return i(e, this.pattern, this.patternAlphabet, { + location: u, + distance: f, + threshold: v, + findAllMatches: p, + minMatchCharLength: d, + includeMatches: n, + }); + }, + }, + ]) && n(t.prototype, r), + s && n(t, s), + e + ); + })(); + e.exports = s; + }, + function (e, t) { + var r = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g; + e.exports = function (e, t) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : / +/g, + o = new RegExp(t.replace(r, '\\$&').replace(n, '|')), + i = e.match(o), + a = !!i, + s = []; + if (a) + for (var c = 0, h = i.length; c < h; c += 1) { + var l = i[c]; + s.push([e.indexOf(l), l.length - 1]); + } + return { score: a ? 0.5 : 1, isMatch: a, matchedIndices: s }; + }; + }, + function (e, t, r) { + var n = r(4), + o = r(5); + e.exports = function (e, t, r, i) { + for ( + var a = i.location, + s = void 0 === a ? 0 : a, + c = i.distance, + h = void 0 === c ? 100 : c, + l = i.threshold, + u = void 0 === l ? 0.6 : l, + f = i.findAllMatches, + v = void 0 !== f && f, + p = i.minMatchCharLength, + d = void 0 === p ? 1 : p, + g = i.includeMatches, + y = void 0 !== g && g, + m = s, + k = e.length, + b = u, + S = e.indexOf(t, m), + x = t.length, + M = [], + _ = 0; + _ < k; + _ += 1 + ) + M[_] = 0; + if (-1 !== S) { + var w = n(t, { errors: 0, currentLocation: S, expectedLocation: m, distance: h }); + if (((b = Math.min(w, b)), -1 !== (S = e.lastIndexOf(t, m + x)))) { + var L = n(t, { errors: 0, currentLocation: S, expectedLocation: m, distance: h }); + b = Math.min(L, b); + } + } + S = -1; + for (var A = [], O = 1, C = x + k, j = 1 << (x <= 31 ? x - 1 : 30), P = 0; P < x; P += 1) { + for (var I = 0, F = C; I < F; ) + n(t, { errors: P, currentLocation: m + F, expectedLocation: m, distance: h }) <= b ? (I = F) : (C = F), + (F = Math.floor((C - I) / 2 + I)); + C = F; + var T = Math.max(1, m - F + 1), + N = v ? k : Math.min(m + F, k) + x, + z = Array(N + 2); + z[N + 1] = (1 << P) - 1; + for (var E = N; E >= T; E -= 1) { + var W = E - 1, + K = r[e.charAt(W)]; + if ( + (K && (M[W] = 1), + (z[E] = ((z[E + 1] << 1) | 1) & K), + 0 !== P && (z[E] |= ((A[E + 1] | A[E]) << 1) | 1 | A[E + 1]), + z[E] & j && (O = n(t, { errors: P, currentLocation: W, expectedLocation: m, distance: h })) <= b) + ) { + if (((b = O), (S = W) <= m)) break; + T = Math.max(1, 2 * m - S); + } + } + if (n(t, { errors: P + 1, currentLocation: m, expectedLocation: m, distance: h }) > b) break; + A = z; + } + var $ = { isMatch: S >= 0, score: 0 === O ? 0.001 : O }; + return y && ($.matchedIndices = o(M, d)), $; + }; + }, + function (e, t) { + e.exports = function (e, t) { + var r = t.errors, + n = void 0 === r ? 0 : r, + o = t.currentLocation, + i = void 0 === o ? 0 : o, + a = t.expectedLocation, + s = void 0 === a ? 0 : a, + c = t.distance, + h = void 0 === c ? 100 : c, + l = n / e.length, + u = Math.abs(s - i); + return h ? l + u / h : u ? 1 : l; + }; + }, + function (e, t) { + e.exports = function () { + for ( + var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], + t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, + r = [], + n = -1, + o = -1, + i = 0, + a = e.length; + i < a; + i += 1 + ) { + var s = e[i]; + s && -1 === n ? (n = i) : s || -1 === n || ((o = i - 1) - n + 1 >= t && r.push([n, o]), (n = -1)); + } + return e[i - 1] && i - n >= t && r.push([n, i - 1]), r; + }; + }, + function (e, t) { + e.exports = function (e) { + for (var t = {}, r = e.length, n = 0; n < r; n += 1) t[e.charAt(n)] = 0; + for (var o = 0; o < r; o += 1) t[e.charAt(o)] |= 1 << (r - o - 1); + return t; + }; + }, + function (e, t) { + var r = function (e) { + return Array.isArray ? Array.isArray(e) : '[object Array]' === Object.prototype.toString.call(e); + }, + n = function (e) { + return null == e + ? '' + : (function (e) { + if ('string' == typeof e) return e; + var t = e + ''; + return '0' == t && 1 / e == -1 / 0 ? '-0' : t; + })(e); + }, + o = function (e) { + return 'string' == typeof e; + }, + i = function (e) { + return 'number' == typeof e; + }; + e.exports = { + get: function (e, t) { + var a = []; + return ( + (function e(t, s) { + if (s) { + var c = s.indexOf('.'), + h = s, + l = null; + -1 !== c && ((h = s.slice(0, c)), (l = s.slice(c + 1))); + var u = t[h]; + if (null != u) + if (l || (!o(u) && !i(u))) + if (r(u)) for (var f = 0, v = u.length; f < v; f += 1) e(u[f], l); + else l && e(u, l); + else a.push(n(u)); + } else a.push(t); + })(e, t), + a + ); + }, + isArray: r, + isString: o, + isNum: i, + toString: n, + }; + }, + ]); + }, + 67286: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $SyntaxError = SyntaxError, + $Function = Function, + $TypeError = TypeError, + getEvalledConstructor = function (expressionSyntax) { + try { + return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} + }, + $gOPD = Object.getOwnPropertyDescriptor; + if ($gOPD) + try { + $gOPD({}, ''); + } catch (e) { + $gOPD = null; + } + var throwTypeError = function () { + throw new $TypeError(); + }, + ThrowTypeError = $gOPD + ? (function () { + try { + return throwTypeError; + } catch (calleeThrows) { + try { + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + })() + : throwTypeError, + hasSymbols = __webpack_require__(32636)(), + getProto = + Object.getPrototypeOf || + function (x) { + return x.__proto__; + }, + needsEval = {}, + TypedArray = 'undefined' == typeof Uint8Array ? undefined : getProto(Uint8Array), + INTRINSICS = { + '%AggregateError%': 'undefined' == typeof AggregateError ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': 'undefined' == typeof ArrayBuffer ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': needsEval, + '%AsyncGenerator%': needsEval, + '%AsyncGeneratorFunction%': needsEval, + '%AsyncIteratorPrototype%': needsEval, + '%Atomics%': 'undefined' == typeof Atomics ? undefined : Atomics, + '%BigInt%': 'undefined' == typeof BigInt ? undefined : BigInt, + '%Boolean%': Boolean, + '%DataView%': 'undefined' == typeof DataView ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': Error, + '%eval%': eval, + '%EvalError%': EvalError, + '%Float32Array%': 'undefined' == typeof Float32Array ? undefined : Float32Array, + '%Float64Array%': 'undefined' == typeof Float64Array ? undefined : Float64Array, + '%FinalizationRegistry%': 'undefined' == typeof FinalizationRegistry ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': needsEval, + '%Int8Array%': 'undefined' == typeof Int8Array ? undefined : Int8Array, + '%Int16Array%': 'undefined' == typeof Int16Array ? undefined : Int16Array, + '%Int32Array%': 'undefined' == typeof Int32Array ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': 'object' == typeof JSON ? JSON : undefined, + '%Map%': 'undefined' == typeof Map ? undefined : Map, + '%MapIteratorPrototype%': + 'undefined' != typeof Map && hasSymbols ? getProto(new Map()[Symbol.iterator]()) : undefined, + '%Math%': Math, + '%Number%': Number, + '%Object%': Object, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': 'undefined' == typeof Promise ? undefined : Promise, + '%Proxy%': 'undefined' == typeof Proxy ? undefined : Proxy, + '%RangeError%': RangeError, + '%ReferenceError%': ReferenceError, + '%Reflect%': 'undefined' == typeof Reflect ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': 'undefined' == typeof Set ? undefined : Set, + '%SetIteratorPrototype%': + 'undefined' != typeof Set && hasSymbols ? getProto(new Set()[Symbol.iterator]()) : undefined, + '%SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': 'undefined' == typeof Uint8Array ? undefined : Uint8Array, + '%Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray ? undefined : Uint8ClampedArray, + '%Uint16Array%': 'undefined' == typeof Uint16Array ? undefined : Uint16Array, + '%Uint32Array%': 'undefined' == typeof Uint32Array ? undefined : Uint32Array, + '%URIError%': URIError, + '%WeakMap%': 'undefined' == typeof WeakMap ? undefined : WeakMap, + '%WeakRef%': 'undefined' == typeof WeakRef ? undefined : WeakRef, + '%WeakSet%': 'undefined' == typeof WeakSet ? undefined : WeakSet, + }, + doEval = function doEval(name) { + var value; + if ('%AsyncFunction%' === name) value = getEvalledConstructor('async function () {}'); + else if ('%GeneratorFunction%' === name) value = getEvalledConstructor('function* () {}'); + else if ('%AsyncGeneratorFunction%' === name) value = getEvalledConstructor('async function* () {}'); + else if ('%AsyncGenerator%' === name) { + var fn = doEval('%AsyncGeneratorFunction%'); + fn && (value = fn.prototype); + } else if ('%AsyncIteratorPrototype%' === name) { + var gen = doEval('%AsyncGenerator%'); + gen && (value = getProto(gen.prototype)); + } + return (INTRINSICS[name] = value), value; + }, + LEGACY_ALIASES = { + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'], + }, + bind = __webpack_require__(4090), + hasOwn = __webpack_require__(23198), + $concat = bind.call(Function.call, Array.prototype.concat), + $spliceApply = bind.call(Function.apply, Array.prototype.splice), + $replace = bind.call(Function.call, String.prototype.replace), + $strSlice = bind.call(Function.call, String.prototype.slice), + rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, + reEscapeChar = /\\(\\)?/g, + stringToPath = function stringToPath(string) { + var first = $strSlice(string, 0, 1), + last = $strSlice(string, -1); + if ('%' === first && '%' !== last) throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); + if ('%' === last && '%' !== first) throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); + var result = []; + return ( + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }), + result + ); + }, + getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var alias, + intrinsicName = name; + if ( + (hasOwn(LEGACY_ALIASES, intrinsicName) && + (intrinsicName = '%' + (alias = LEGACY_ALIASES[intrinsicName])[0] + '%'), + hasOwn(INTRINSICS, intrinsicName)) + ) { + var value = INTRINSICS[intrinsicName]; + if ((value === needsEval && (value = doEval(intrinsicName)), void 0 === value && !allowMissing)) + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + return { alias, name: intrinsicName, value }; + } + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); + }; + module.exports = function GetIntrinsic(name, allowMissing) { + if ('string' != typeof name || 0 === name.length) + throw new $TypeError('intrinsic name must be a non-empty string'); + if (arguments.length > 1 && 'boolean' != typeof allowMissing) + throw new $TypeError('"allowMissing" argument must be a boolean'); + var parts = stringToPath(name), + intrinsicBaseName = parts.length > 0 ? parts[0] : '', + intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing), + intrinsicRealName = intrinsic.name, + value = intrinsic.value, + skipFurtherCaching = !1, + alias = intrinsic.alias; + alias && ((intrinsicBaseName = alias[0]), $spliceApply(parts, $concat([0, 1], alias))); + for (var i = 1, isOwn = !0; i < parts.length; i += 1) { + var part = parts[i], + first = $strSlice(part, 0, 1), + last = $strSlice(part, -1); + if ( + ('"' === first || "'" === first || '`' === first || '"' === last || "'" === last || '`' === last) && + first !== last + ) + throw new $SyntaxError('property names with quotes must have matching quotes'); + if ( + (('constructor' !== part && isOwn) || (skipFurtherCaching = !0), + hasOwn(INTRINSICS, (intrinsicRealName = '%' + (intrinsicBaseName += '.' + part) + '%'))) + ) + value = INTRINSICS[intrinsicRealName]; + else if (null != value) { + if (!(part in value)) { + if (!allowMissing) + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + return; + } + if ($gOPD && i + 1 >= parts.length) { + var desc = $gOPD(value, part); + value = (isOwn = !!desc) && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[part]; + } else (isOwn = hasOwn(value, part)), (value = value[part]); + isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value); + } + } + return value; + }; + }, + 67972: module => { + 'use strict'; + var getInferredName; + try { + getInferredName = Function('s', 'return { [s]() {} }[s].name;'); + } catch (e) {} + module.exports = getInferredName && 'inferred' === function () {}.name ? getInferredName : null; + }, + 64012: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + callBound = __webpack_require__(62680), + $SyntaxError = GetIntrinsic('%SyntaxError%'), + getGlobalSymbolDescription = GetIntrinsic('%Symbol.keyFor%', !0), + thisSymbolValue = callBound('%Symbol.prototype.valueOf%', !0), + symToStr = callBound('Symbol.prototype.toString', !0), + getInferredName = __webpack_require__(67972); + module.exports = + callBound('%Symbol.prototype.description%', !0) || + function getSymbolDescription(symbol) { + if (!thisSymbolValue) throw new $SyntaxError('Symbols are not supported in this environment'); + var desc, + sym = thisSymbolValue(symbol); + if (getInferredName) { + var name = getInferredName(sym); + if ('' === name) return; + return name.slice(1, -1); + } + return getGlobalSymbolDescription && 'string' == typeof (desc = getGlobalSymbolDescription(sym)) + ? desc + : (desc = symToStr(sym).slice(7, -1)) || void 0; + }; + }, + 35048: (module, __unused_webpack_exports, __webpack_require__) => { + var win; + (win = + 'undefined' != typeof window + ? window + : void 0 !== __webpack_require__.g + ? __webpack_require__.g + : 'undefined' != typeof self + ? self + : {}), + (module.exports = win); + }, + 65893: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(86039)(); + }, + 26585: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + 'undefined' != typeof self + ? (module.exports = self) + : 'undefined' != typeof window + ? (module.exports = window) + : void 0 !== __webpack_require__.g + ? (module.exports = __webpack_require__.g) + : (module.exports = Function('return this')()); + }, + 54664: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(26585); + module.exports = function getPolyfill() { + return 'object' == typeof __webpack_require__.g && + __webpack_require__.g && + __webpack_require__.g.Math === Math && + __webpack_require__.g.Array === Array + ? __webpack_require__.g + : implementation; + }; + }, + 86039: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var define = __webpack_require__(14926), + getPolyfill = __webpack_require__(54664); + module.exports = function shimGlobal() { + var polyfill = getPolyfill(); + if (define.supportsDescriptors) { + var descriptor = Object.getOwnPropertyDescriptor(polyfill, 'globalThis'); + (!descriptor || + (descriptor.configurable && (descriptor.enumerable || descriptor.writable || globalThis !== polyfill))) && + Object.defineProperty(polyfill, 'globalThis', { + configurable: !0, + enumerable: !1, + value: polyfill, + writable: !1, + }); + } else ('object' == typeof globalThis && globalThis === polyfill) || (polyfill.globalThis = polyfill); + return polyfill; + }; + }, + 69907: (module, __unused_webpack_exports, __webpack_require__) => { + !(function () { + 'use strict'; + var crc32 = __webpack_require__(74334), + deflate = __webpack_require__(63795), + compressionMethods = { deflate: 8 }, + possibleFlags_FTEXT = 1, + possibleFlags_FHCRC = 2, + possibleFlags_FEXTRA = 4, + possibleFlags_FNAME = 8, + possibleFlags_FCOMMENT = 16, + osMap = { + fat: 0, + amiga: 1, + vmz: 2, + unix: 3, + 'vm/cms': 4, + atari: 5, + hpfs: 6, + macintosh: 7, + 'z-system': 8, + cplm: 9, + 'tops-20': 10, + ntfs: 11, + qdos: 12, + acorn: 13, + vfat: 14, + vms: 15, + beos: 16, + tandem: 17, + theos: 18, + }; + function putByte(n, arr) { + arr.push(255 & n); + } + function putShort(n, arr) { + arr.push(255 & n), arr.push(n >>> 8); + } + function putLong(n, arr) { + putShort(65535 & n, arr), putShort(n >>> 16, arr); + } + function readByte(arr) { + return arr.shift(); + } + function readShort(arr) { + return arr.shift() | (arr.shift() << 8); + } + function readLong(arr) { + var n1 = readShort(arr), + n2 = readShort(arr); + return n2 > 32768 ? (((n2 -= 32768) << 16) | n1) + 32768 * Math.pow(2, 16) : (n2 << 16) | n1; + } + function readString(arr) { + for (var charArr = []; 0 !== arr[0]; ) charArr.push(String.fromCharCode(arr.shift())); + return arr.shift(), charArr.join(''); + } + module.exports = { + zip: function zip(data, options) { + var level, + flags = 0, + out = []; + return ( + options || (options = {}), + (level = options.level || 6), + 'string' == typeof data && + (data = Array.prototype.map.call(data, function (char) { + return char.charCodeAt(0); + })), + putByte(31, out), + putByte(139, out), + putByte(compressionMethods.deflate, out), + options.name && (flags |= possibleFlags_FNAME), + putByte(flags, out), + putLong(options.timestamp || parseInt(Date.now() / 1e3, 10), out), + putByte(1 === level ? 4 : 9 === level ? 2 : 0, out), + putByte(osMap.unix, out), + options.name && + (!(function putString(s, arr) { + var i, + len = s.length; + for (i = 0; i < len; i += 1) putByte(s.charCodeAt(i), arr); + })(options.name.substring(options.name.lastIndexOf('/') + 1), out), + putByte(0, out)), + deflate.deflate(data, level).forEach(function (byte) { + putByte(byte, out); + }), + putLong(parseInt(crc32(data), 16), out), + putLong(data.length, out), + out + ); + }, + unzip: function unzip(data, options) { + var t, + compressionMethod, + flags, + res, + arr = Array.prototype.slice.call(data, 0); + if (31 !== readByte(arr) || 139 !== readByte(arr)) throw 'Not a GZIP file'; + if ( + ((t = readByte(arr)), + (t = Object.keys(compressionMethods).some(function (key) { + return (compressionMethod = key), compressionMethods[key] === t; + })), + !t) + ) + throw 'Unsupported compression method'; + if ( + ((flags = readByte(arr)), + readLong(arr), + readByte(arr), + (t = readByte(arr)), + Object.keys(osMap).some(function (key) { + if (osMap[key] === t) return key, !0; + }), + flags & possibleFlags_FEXTRA && + (function readBytes(arr, n) { + var i, + ret = []; + for (i = 0; i < n; i += 1) ret.push(arr.shift()); + return ret; + })(arr, (t = readShort(arr))), + flags & possibleFlags_FNAME && readString(arr), + flags & possibleFlags_FCOMMENT && readString(arr), + flags & possibleFlags_FHCRC && readShort(arr), + 'deflate' === compressionMethod && (res = deflate.inflate(arr.splice(0, arr.length - 8))), + flags & possibleFlags_FTEXT && + (res = Array.prototype.map + .call(res, function (byte) { + return String.fromCharCode(byte); + }) + .join('')), + readLong(arr) !== parseInt(crc32(res), 16)) + ) + throw 'Checksum does not match'; + if (readLong(arr) !== res.length) throw 'Size of decompressed file not correct'; + return res; + }, + get DEFAULT_LEVEL() { + return 6; + }, + }; + })(); + }, + 32636: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var origSymbol = __webpack_require__.g.Symbol, + hasSymbolSham = __webpack_require__(66679); + module.exports = function hasNativeSymbols() { + return ( + 'function' == typeof origSymbol && + 'function' == typeof Symbol && + 'symbol' == typeof origSymbol('foo') && + 'symbol' == typeof Symbol('bar') && + hasSymbolSham() + ); + }; + }, + 66679: module => { + 'use strict'; + module.exports = function hasSymbols() { + if ('function' != typeof Symbol || 'function' != typeof Object.getOwnPropertySymbols) return !1; + if ('symbol' == typeof Symbol.iterator) return !0; + var obj = {}, + sym = Symbol('test'), + symObj = Object(sym); + if ('string' == typeof sym) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(sym)) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(symObj)) return !1; + for (sym in ((obj[sym] = 42), obj)) return !1; + if ('function' == typeof Object.keys && 0 !== Object.keys(obj).length) return !1; + if ('function' == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(obj).length) return !1; + var syms = Object.getOwnPropertySymbols(obj); + if (1 !== syms.length || syms[0] !== sym) return !1; + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return !1; + if ('function' == typeof Object.getOwnPropertyDescriptor) { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (42 !== descriptor.value || !0 !== descriptor.enumerable) return !1; + } + return !0; + }; + }, + 37364: module => { + 'use strict'; + module.exports = function hasSymbols() { + if ('function' != typeof Symbol || 'function' != typeof Object.getOwnPropertySymbols) return !1; + if ('symbol' == typeof Symbol.iterator) return !0; + var obj = {}, + sym = Symbol('test'), + symObj = Object(sym); + if ('string' == typeof sym) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(sym)) return !1; + if ('[object Symbol]' !== Object.prototype.toString.call(symObj)) return !1; + for (sym in ((obj[sym] = 42), obj)) return !1; + if ('function' == typeof Object.keys && 0 !== Object.keys(obj).length) return !1; + if ('function' == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(obj).length) return !1; + var syms = Object.getOwnPropertySymbols(obj); + if (1 !== syms.length || syms[0] !== sym) return !1; + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return !1; + if ('function' == typeof Object.getOwnPropertyDescriptor) { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (42 !== descriptor.value || !0 !== descriptor.enumerable) return !1; + } + return !0; + }; + }, + 67226: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var hasSymbols = __webpack_require__(37364); + module.exports = function hasToStringTagShams() { + return hasSymbols() && !!Symbol.toStringTag; + }; + }, + 23198: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var bind = __webpack_require__(4090); + module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + }, + 73463: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var reactIs = __webpack_require__(48570), + REACT_STATICS = { + childContextTypes: !0, + contextType: !0, + contextTypes: !0, + defaultProps: !0, + displayName: !0, + getDefaultProps: !0, + getDerivedStateFromError: !0, + getDerivedStateFromProps: !0, + mixins: !0, + propTypes: !0, + type: !0, + }, + KNOWN_STATICS = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, + MEMO_STATICS = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, + TYPE_STATICS = {}; + function getStatics(component) { + return reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS; + } + TYPE_STATICS[reactIs.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }; + var defineProperty = Object.defineProperty, + getOwnPropertyNames = Object.getOwnPropertyNames, + getOwnPropertySymbols = Object.getOwnPropertySymbols, + getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, + getPrototypeOf = Object.getPrototypeOf, + objectPrototype = Object.prototype; + module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if ('string' != typeof sourceComponent) { + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + inheritedComponent && + inheritedComponent !== objectPrototype && + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + var keys = getOwnPropertyNames(sourceComponent); + getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent))); + for ( + var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; + i < keys.length; + ++i + ) { + var key = keys[i]; + if ( + !( + KNOWN_STATICS[key] || + (blacklist && blacklist[key]) || + (sourceStatics && sourceStatics[key]) || + (targetStatics && targetStatics[key]) + ) + ) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + return targetComponent; + }; + }, + 39979: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var GetIntrinsic = __webpack_require__(67286), + has = __webpack_require__(23198), + channel = __webpack_require__(74294)(), + $TypeError = GetIntrinsic('%TypeError%'), + SLOT = { + assert: function (O, slot) { + if (!O || ('object' != typeof O && 'function' != typeof O)) throw new $TypeError('`O` is not an object'); + if ('string' != typeof slot) throw new $TypeError('`slot` must be a string'); + channel.assert(O); + }, + get: function (O, slot) { + if (!O || ('object' != typeof O && 'function' != typeof O)) throw new $TypeError('`O` is not an object'); + if ('string' != typeof slot) throw new $TypeError('`slot` must be a string'); + var slots = channel.get(O); + return slots && slots['$' + slot]; + }, + has: function (O, slot) { + if (!O || ('object' != typeof O && 'function' != typeof O)) throw new $TypeError('`O` is not an object'); + if ('string' != typeof slot) throw new $TypeError('`slot` must be a string'); + var slots = channel.get(O); + return !!slots && has(slots, '$' + slot); + }, + set: function (O, slot, V) { + if (!O || ('object' != typeof O && 'function' != typeof O)) throw new $TypeError('`O` is not an object'); + if ('string' != typeof slot) throw new $TypeError('`slot` must be a string'); + var slots = channel.get(O); + slots || ((slots = {}), channel.set(O, slots)), (slots['$' + slot] = V); + }, + }; + Object.freeze && Object.freeze(SLOT), (module.exports = SLOT); + }, + 47677: module => { + 'use strict'; + module.exports = function (condition, format, a, b, c, d, e, f) { + if (void 0 === format) throw new Error('invariant requires an error message argument'); + if (!condition) { + var error; + if (void 0 === format) + error = new Error( + 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.', + ); + else { + var args = [a, b, c, d, e, f], + argIndex = 0; + (error = new Error( + format.replace(/%s/g, function () { + return args[argIndex++]; + }), + )).name = 'Invariant Violation'; + } + throw ((error.framesToPop = 1), error); + } + }; + }, + 9680: module => { + 'use strict'; + var badArrayLike, + isCallableMarker, + fnToStr = Function.prototype.toString, + reflectApply = 'object' == typeof Reflect && null !== Reflect && Reflect.apply; + if ('function' == typeof reflectApply && 'function' == typeof Object.defineProperty) + try { + (badArrayLike = Object.defineProperty({}, 'length', { + get: function () { + throw isCallableMarker; + }, + })), + (isCallableMarker = {}), + reflectApply( + function () { + throw 42; + }, + null, + badArrayLike, + ); + } catch (_) { + _ !== isCallableMarker && (reflectApply = null); + } + else reflectApply = null; + var constructorRegex = /^\s*class\b/, + isES6ClassFn = function isES6ClassFunction(value) { + try { + var fnStr = fnToStr.call(value); + return constructorRegex.test(fnStr); + } catch (e) { + return !1; + } + }, + toStr = Object.prototype.toString, + hasToStringTag = 'function' == typeof Symbol && !!Symbol.toStringTag, + documentDotAll = + 'object' == typeof document && void 0 === document.all && void 0 !== document.all ? document.all : {}; + module.exports = reflectApply + ? function isCallable(value) { + if (value === documentDotAll) return !0; + if (!value) return !1; + if ('function' != typeof value && 'object' != typeof value) return !1; + if ('function' == typeof value && !value.prototype) return !0; + try { + reflectApply(value, null, badArrayLike); + } catch (e) { + if (e !== isCallableMarker) return !1; + } + return !isES6ClassFn(value); + } + : function isCallable(value) { + if (value === documentDotAll) return !0; + if (!value) return !1; + if ('function' != typeof value && 'object' != typeof value) return !1; + if ('function' == typeof value && !value.prototype) return !0; + if (hasToStringTag) + return (function tryFunctionToStr(value) { + try { + return !isES6ClassFn(value) && (fnToStr.call(value), !0); + } catch (e) { + return !1; + } + })(value); + if (isES6ClassFn(value)) return !1; + var strClass = toStr.call(value); + return '[object Function]' === strClass || '[object GeneratorFunction]' === strClass; + }; + }, + 54277: module => { + 'use strict'; + var getDay = Date.prototype.getDay, + toStr = Object.prototype.toString, + hasToStringTag = 'function' == typeof Symbol && 'symbol' == typeof Symbol.toStringTag; + module.exports = function isDateObject(value) { + return ( + 'object' == typeof value && + null !== value && + (hasToStringTag + ? (function tryDateObject(value) { + try { + return getDay.call(value), !0; + } catch (e) { + return !1; + } + })(value) + : '[object Date]' === toStr.call(value)) + ); + }; + }, + 2273: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(26985), + isWindow = __webpack_require__(84337); + module.exports = function isNode(val) { + return ( + !(!isObject(val) || !isWindow(window) || 'function' != typeof window.Node) && + 'number' == typeof val.nodeType && + 'string' == typeof val.nodeName + ); + }; + }, + 49748: module => { + module.exports = function isFunction(fn) { + if (!fn) return !1; + var string = toString.call(fn); + return ( + '[object Function]' === string || + ('function' == typeof fn && '[object RegExp]' !== string) || + ('undefined' != typeof window && + (fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt)) + ); + }; + var toString = Object.prototype.toString; + }, + 66305: module => { + 'use strict'; + module.exports = function isNegativeZero(number) { + return 0 === number && 1 / number == -1 / 0; + }; + }, + 26985: module => { + 'use strict'; + module.exports = function isObject(x) { + return 'object' == typeof x && null !== x; + }; + }, + 58786: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var has, + $exec, + isRegexMarker, + badStringifier, + callBound = __webpack_require__(62680), + hasToStringTag = __webpack_require__(67226)(); + if (hasToStringTag) { + (has = callBound('Object.prototype.hasOwnProperty')), + ($exec = callBound('RegExp.prototype.exec')), + (isRegexMarker = {}); + var throwRegexMarker = function () { + throw isRegexMarker; + }; + (badStringifier = { toString: throwRegexMarker, valueOf: throwRegexMarker }), + 'symbol' == typeof Symbol.toPrimitive && (badStringifier[Symbol.toPrimitive] = throwRegexMarker); + } + var $toString = callBound('Object.prototype.toString'), + gOPD = Object.getOwnPropertyDescriptor; + module.exports = hasToStringTag + ? function isRegex(value) { + if (!value || 'object' != typeof value) return !1; + var descriptor = gOPD(value, 'lastIndex'); + if (!(descriptor && has(descriptor, 'value'))) return !1; + try { + $exec(value, badStringifier); + } catch (e) { + return e === isRegexMarker; + } + } + : function isRegex(value) { + return ( + !(!value || ('object' != typeof value && 'function' != typeof value)) && + '[object RegExp]' === $toString(value) + ); + }; + }, + 49638: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var $byteLength = __webpack_require__(62680)('SharedArrayBuffer.prototype.byteLength', !0); + module.exports = $byteLength + ? function isSharedArrayBuffer(obj) { + if (!obj || 'object' != typeof obj) return !1; + try { + return $byteLength(obj), !0; + } catch (e) { + return !1; + } + } + : function isSharedArrayBuffer(obj) { + return !1; + }; + }, + 26302: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var strValue = String.prototype.valueOf, + toStr = Object.prototype.toString, + hasToStringTag = __webpack_require__(67226)(); + module.exports = function isString(value) { + return ( + 'string' == typeof value || + ('object' == typeof value && + (hasToStringTag + ? (function tryStringObject(value) { + try { + return strValue.call(value), !0; + } catch (e) { + return !1; + } + })(value) + : '[object String]' === toStr.call(value))) + ); + }; + }, + 88705: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var toStr = Object.prototype.toString; + if (__webpack_require__(32636)()) { + var symToStr = Symbol.prototype.toString, + symStringRegex = /^Symbol\(.*\)$/; + module.exports = function isSymbol(value) { + if ('symbol' == typeof value) return !0; + if ('[object Symbol]' !== toStr.call(value)) return !1; + try { + return (function isRealSymbolObject(value) { + return 'symbol' == typeof value.valueOf() && symStringRegex.test(symToStr.call(value)); + })(value); + } catch (e) { + return !1; + } + }; + } else + module.exports = function isSymbol(value) { + return !1; + }; + }, + 84337: module => { + 'use strict'; + module.exports = function (obj) { + if (null == obj) return !1; + var o = Object(obj); + return o === o.window; + }; + }, + 39515: (module, __unused_webpack_exports, __webpack_require__) => { + var DataView = __webpack_require__(38761)(__webpack_require__(37772), 'DataView'); + module.exports = DataView; + }, + 89612: (module, __unused_webpack_exports, __webpack_require__) => { + var hashClear = __webpack_require__(52118), + hashDelete = __webpack_require__(96909), + hashGet = __webpack_require__(98138), + hashHas = __webpack_require__(4174), + hashSet = __webpack_require__(7942); + function Hash(entries) { + var index = -1, + length = null == entries ? 0 : entries.length; + for (this.clear(); ++index < length; ) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + (Hash.prototype.clear = hashClear), + (Hash.prototype.delete = hashDelete), + (Hash.prototype.get = hashGet), + (Hash.prototype.has = hashHas), + (Hash.prototype.set = hashSet), + (module.exports = Hash); + }, + 80235: (module, __unused_webpack_exports, __webpack_require__) => { + var listCacheClear = __webpack_require__(3945), + listCacheDelete = __webpack_require__(21846), + listCacheGet = __webpack_require__(88028), + listCacheHas = __webpack_require__(72344), + listCacheSet = __webpack_require__(94769); + function ListCache(entries) { + var index = -1, + length = null == entries ? 0 : entries.length; + for (this.clear(); ++index < length; ) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + (ListCache.prototype.clear = listCacheClear), + (ListCache.prototype.delete = listCacheDelete), + (ListCache.prototype.get = listCacheGet), + (ListCache.prototype.has = listCacheHas), + (ListCache.prototype.set = listCacheSet), + (module.exports = ListCache); + }, + 10326: (module, __unused_webpack_exports, __webpack_require__) => { + var Map = __webpack_require__(38761)(__webpack_require__(37772), 'Map'); + module.exports = Map; + }, + 96738: (module, __unused_webpack_exports, __webpack_require__) => { + var mapCacheClear = __webpack_require__(92411), + mapCacheDelete = __webpack_require__(36417), + mapCacheGet = __webpack_require__(86928), + mapCacheHas = __webpack_require__(79493), + mapCacheSet = __webpack_require__(24150); + function MapCache(entries) { + var index = -1, + length = null == entries ? 0 : entries.length; + for (this.clear(); ++index < length; ) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + (MapCache.prototype.clear = mapCacheClear), + (MapCache.prototype.delete = mapCacheDelete), + (MapCache.prototype.get = mapCacheGet), + (MapCache.prototype.has = mapCacheHas), + (MapCache.prototype.set = mapCacheSet), + (module.exports = MapCache); + }, + 52760: (module, __unused_webpack_exports, __webpack_require__) => { + var Promise = __webpack_require__(38761)(__webpack_require__(37772), 'Promise'); + module.exports = Promise; + }, + 2143: (module, __unused_webpack_exports, __webpack_require__) => { + var Set = __webpack_require__(38761)(__webpack_require__(37772), 'Set'); + module.exports = Set; + }, + 45386: (module, __unused_webpack_exports, __webpack_require__) => { + var MapCache = __webpack_require__(96738), + setCacheAdd = __webpack_require__(52842), + setCacheHas = __webpack_require__(52482); + function SetCache(values) { + var index = -1, + length = null == values ? 0 : values.length; + for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); + } + (SetCache.prototype.add = SetCache.prototype.push = setCacheAdd), + (SetCache.prototype.has = setCacheHas), + (module.exports = SetCache); + }, + 86571: (module, __unused_webpack_exports, __webpack_require__) => { + var ListCache = __webpack_require__(80235), + stackClear = __webpack_require__(15243), + stackDelete = __webpack_require__(72858), + stackGet = __webpack_require__(4417), + stackHas = __webpack_require__(8605), + stackSet = __webpack_require__(71418); + function Stack(entries) { + var data = (this.__data__ = new ListCache(entries)); + this.size = data.size; + } + (Stack.prototype.clear = stackClear), + (Stack.prototype.delete = stackDelete), + (Stack.prototype.get = stackGet), + (Stack.prototype.has = stackHas), + (Stack.prototype.set = stackSet), + (module.exports = Stack); + }, + 50857: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(37772).Symbol; + module.exports = Symbol; + }, + 79162: (module, __unused_webpack_exports, __webpack_require__) => { + var Uint8Array = __webpack_require__(37772).Uint8Array; + module.exports = Uint8Array; + }, + 93215: (module, __unused_webpack_exports, __webpack_require__) => { + var WeakMap = __webpack_require__(38761)(__webpack_require__(37772), 'WeakMap'); + module.exports = WeakMap; + }, + 49432: module => { + module.exports = function apply(func, thisArg, args) { + switch (args.length) { + case 0: + return func.call(thisArg); + case 1: + return func.call(thisArg, args[0]); + case 2: + return func.call(thisArg, args[0], args[1]); + case 3: + return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); + }; + }, + 65338: module => { + module.exports = function arrayAggregator(array, setter, iteratee, accumulator) { + for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) { + var value = array[index]; + setter(accumulator, value, iteratee(value), array); + } + return accumulator; + }; + }, + 72517: module => { + module.exports = function arrayEach(array, iteratee) { + for ( + var index = -1, length = null == array ? 0 : array.length; + ++index < length && !1 !== iteratee(array[index], index, array); + + ); + return array; + }; + }, + 67552: module => { + module.exports = function arrayFilter(array, predicate) { + for (var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) { + var value = array[index]; + predicate(value, index, array) && (result[resIndex++] = value); + } + return result; + }; + }, + 38333: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIndexOf = __webpack_require__(2280); + module.exports = function arrayIncludes(array, value) { + return !!(null == array ? 0 : array.length) && baseIndexOf(array, value, 0) > -1; + }; + }, + 34893: module => { + module.exports = function arrayIncludesWith(array, value, comparator) { + for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) + if (comparator(value, array[index])) return !0; + return !1; + }; + }, + 1634: (module, __unused_webpack_exports, __webpack_require__) => { + var baseTimes = __webpack_require__(36473), + isArguments = __webpack_require__(79631), + isArray = __webpack_require__(86152), + isBuffer = __webpack_require__(73226), + isIndex = __webpack_require__(39045), + isTypedArray = __webpack_require__(77598), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + for (var key in value) + (!inherited && !hasOwnProperty.call(value, key)) || + (skipIndexes && + ('length' == key || + (isBuff && ('offset' == key || 'parent' == key)) || + (isType && ('buffer' == key || 'byteLength' == key || 'byteOffset' == key)) || + isIndex(key, length))) || + result.push(key); + return result; + }; + }, + 50343: module => { + module.exports = function arrayMap(array, iteratee) { + for (var index = -1, length = null == array ? 0 : array.length, result = Array(length); ++index < length; ) + result[index] = iteratee(array[index], index, array); + return result; + }; + }, + 65067: module => { + module.exports = function arrayPush(array, values) { + for (var index = -1, length = values.length, offset = array.length; ++index < length; ) + array[offset + index] = values[index]; + return array; + }; + }, + 81207: module => { + module.exports = function arrayReduce(array, iteratee, accumulator, initAccum) { + var index = -1, + length = null == array ? 0 : array.length; + for (initAccum && length && (accumulator = array[++index]); ++index < length; ) + accumulator = iteratee(accumulator, array[index], index, array); + return accumulator; + }; + }, + 87064: module => { + module.exports = function arraySome(array, predicate) { + for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) + if (predicate(array[index], index, array)) return !0; + return !1; + }; + }, + 50217: module => { + module.exports = function asciiToArray(string) { + return string.split(''); + }; + }, + 45981: module => { + var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; + module.exports = function asciiWords(string) { + return string.match(reAsciiWord) || []; + }; + }, + 28582: (module, __unused_webpack_exports, __webpack_require__) => { + var baseAssignValue = __webpack_require__(13940), + eq = __webpack_require__(41225); + module.exports = function assignMergeValue(object, key, value) { + ((void 0 !== value && !eq(object[key], value)) || (void 0 === value && !(key in object))) && + baseAssignValue(object, key, value); + }; + }, + 60091: (module, __unused_webpack_exports, __webpack_require__) => { + var baseAssignValue = __webpack_require__(13940), + eq = __webpack_require__(41225), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function assignValue(object, key, value) { + var objValue = object[key]; + (hasOwnProperty.call(object, key) && eq(objValue, value) && (void 0 !== value || key in object)) || + baseAssignValue(object, key, value); + }; + }, + 22218: (module, __unused_webpack_exports, __webpack_require__) => { + var eq = __webpack_require__(41225); + module.exports = function assocIndexOf(array, key) { + for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; + return -1; + }; + }, + 12825: (module, __unused_webpack_exports, __webpack_require__) => { + var baseEach = __webpack_require__(24303); + module.exports = function baseAggregator(collection, setter, iteratee, accumulator) { + return ( + baseEach(collection, function (value, key, collection) { + setter(accumulator, value, iteratee(value), collection); + }), + accumulator + ); + }; + }, + 67993: (module, __unused_webpack_exports, __webpack_require__) => { + var copyObject = __webpack_require__(752), + keys = __webpack_require__(90249); + module.exports = function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); + }; + }, + 55906: (module, __unused_webpack_exports, __webpack_require__) => { + var copyObject = __webpack_require__(752), + keysIn = __webpack_require__(18582); + module.exports = function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); + }; + }, + 13940: (module, __unused_webpack_exports, __webpack_require__) => { + var defineProperty = __webpack_require__(83043); + module.exports = function baseAssignValue(object, key, value) { + '__proto__' == key && defineProperty + ? defineProperty(object, key, { configurable: !0, enumerable: !0, value, writable: !0 }) + : (object[key] = value); + }; + }, + 18874: (module, __unused_webpack_exports, __webpack_require__) => { + var Stack = __webpack_require__(86571), + arrayEach = __webpack_require__(72517), + assignValue = __webpack_require__(60091), + baseAssign = __webpack_require__(67993), + baseAssignIn = __webpack_require__(55906), + cloneBuffer = __webpack_require__(92175), + copyArray = __webpack_require__(51522), + copySymbols = __webpack_require__(7680), + copySymbolsIn = __webpack_require__(19987), + getAllKeys = __webpack_require__(13483), + getAllKeysIn = __webpack_require__(76939), + getTag = __webpack_require__(70940), + initCloneArray = __webpack_require__(99917), + initCloneByTag = __webpack_require__(8222), + initCloneObject = __webpack_require__(78725), + isArray = __webpack_require__(86152), + isBuffer = __webpack_require__(73226), + isMap = __webpack_require__(4714), + isObject = __webpack_require__(29259), + isSet = __webpack_require__(43679), + keys = __webpack_require__(90249), + keysIn = __webpack_require__(18582), + cloneableTags = {}; + (cloneableTags['[object Arguments]'] = cloneableTags['[object Array]'] = cloneableTags[ + '[object ArrayBuffer]' + ] = cloneableTags['[object DataView]'] = cloneableTags['[object Boolean]'] = cloneableTags[ + '[object Date]' + ] = cloneableTags['[object Float32Array]'] = cloneableTags['[object Float64Array]'] = cloneableTags[ + '[object Int8Array]' + ] = cloneableTags['[object Int16Array]'] = cloneableTags['[object Int32Array]'] = cloneableTags[ + '[object Map]' + ] = cloneableTags['[object Number]'] = cloneableTags['[object Object]'] = cloneableTags[ + '[object RegExp]' + ] = cloneableTags['[object Set]'] = cloneableTags['[object String]'] = cloneableTags[ + '[object Symbol]' + ] = cloneableTags['[object Uint8Array]'] = cloneableTags['[object Uint8ClampedArray]'] = cloneableTags[ + '[object Uint16Array]' + ] = cloneableTags['[object Uint32Array]'] = !0), + (cloneableTags['[object Error]'] = cloneableTags['[object Function]'] = cloneableTags['[object WeakMap]'] = !1), + (module.exports = function baseClone(value, bitmask, customizer, key, object, stack) { + var result, + isDeep = 1 & bitmask, + isFlat = 2 & bitmask, + isFull = 4 & bitmask; + if ( + (customizer && (result = object ? customizer(value, key, object, stack) : customizer(value)), + void 0 !== result) + ) + return result; + if (!isObject(value)) return value; + var isArr = isArray(value); + if (isArr) { + if (((result = initCloneArray(value)), !isDeep)) return copyArray(value, result); + } else { + var tag = getTag(value), + isFunc = '[object Function]' == tag || '[object GeneratorFunction]' == tag; + if (isBuffer(value)) return cloneBuffer(value, isDeep); + if ('[object Object]' == tag || '[object Arguments]' == tag || (isFunc && !object)) { + if (((result = isFlat || isFunc ? {} : initCloneObject(value)), !isDeep)) + return isFlat + ? copySymbolsIn(value, baseAssignIn(result, value)) + : copySymbols(value, baseAssign(result, value)); + } else { + if (!cloneableTags[tag]) return object ? value : {}; + result = initCloneByTag(value, tag, isDeep); + } + } + stack || (stack = new Stack()); + var stacked = stack.get(value); + if (stacked) return stacked; + stack.set(value, result), + isSet(value) + ? value.forEach(function (subValue) { + result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); + }) + : isMap(value) && + value.forEach(function (subValue, key) { + result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + var props = isArr ? void 0 : (isFull ? (isFlat ? getAllKeysIn : getAllKeys) : isFlat ? keysIn : keys)(value); + return ( + arrayEach(props || value, function (subValue, key) { + props && (subValue = value[(key = subValue)]), + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }), + result + ); + }); + }, + 39413: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(29259), + objectCreate = Object.create, + baseCreate = (function () { + function object() {} + return function (proto) { + if (!isObject(proto)) return {}; + if (objectCreate) return objectCreate(proto); + object.prototype = proto; + var result = new object(); + return (object.prototype = void 0), result; + }; + })(); + module.exports = baseCreate; + }, + 24303: (module, __unused_webpack_exports, __webpack_require__) => { + var baseForOwn = __webpack_require__(26548), + baseEach = __webpack_require__(92019)(baseForOwn); + module.exports = baseEach; + }, + 21359: module => { + module.exports = function baseFindIndex(array, predicate, fromIndex, fromRight) { + for ( + var length = array.length, index = fromIndex + (fromRight ? 1 : -1); + fromRight ? index-- : ++index < length; + + ) + if (predicate(array[index], index, array)) return index; + return -1; + }; + }, + 62034: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayPush = __webpack_require__(65067), + isFlattenable = __webpack_require__(95882); + module.exports = function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + for (predicate || (predicate = isFlattenable), result || (result = []); ++index < length; ) { + var value = array[index]; + depth > 0 && predicate(value) + ? depth > 1 + ? baseFlatten(value, depth - 1, predicate, isStrict, result) + : arrayPush(result, value) + : isStrict || (result[result.length] = value); + } + return result; + }; + }, + 15308: (module, __unused_webpack_exports, __webpack_require__) => { + var baseFor = __webpack_require__(55463)(); + module.exports = baseFor; + }, + 26548: (module, __unused_webpack_exports, __webpack_require__) => { + var baseFor = __webpack_require__(15308), + keys = __webpack_require__(90249); + module.exports = function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); + }; + }, + 13324: (module, __unused_webpack_exports, __webpack_require__) => { + var castPath = __webpack_require__(17297), + toKey = __webpack_require__(33812); + module.exports = function baseGet(object, path) { + for (var index = 0, length = (path = castPath(path, object)).length; null != object && index < length; ) + object = object[toKey(path[index++])]; + return index && index == length ? object : void 0; + }; + }, + 1897: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayPush = __webpack_require__(65067), + isArray = __webpack_require__(86152); + module.exports = function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); + }; + }, + 53366: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + getRawTag = __webpack_require__(62107), + objectToString = __webpack_require__(37157), + symToStringTag = Symbol ? Symbol.toStringTag : void 0; + module.exports = function baseGetTag(value) { + return null == value + ? void 0 === value + ? '[object Undefined]' + : '[object Null]' + : symToStringTag && symToStringTag in Object(value) + ? getRawTag(value) + : objectToString(value); + }; + }, + 20187: module => { + module.exports = function baseHasIn(object, key) { + return null != object && key in Object(object); + }; + }, + 2280: (module, __unused_webpack_exports, __webpack_require__) => { + var baseFindIndex = __webpack_require__(21359), + baseIsNaN = __webpack_require__(22195), + strictIndexOf = __webpack_require__(66024); + module.exports = function baseIndexOf(array, value, fromIndex) { + return value == value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); + }; + }, + 15183: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetTag = __webpack_require__(53366), + isObjectLike = __webpack_require__(15125); + module.exports = function baseIsArguments(value) { + return isObjectLike(value) && '[object Arguments]' == baseGetTag(value); + }; + }, + 88746: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsEqualDeep = __webpack_require__(51952), + isObjectLike = __webpack_require__(15125); + module.exports = function baseIsEqual(value, other, bitmask, customizer, stack) { + return ( + value === other || + (null == value || null == other || (!isObjectLike(value) && !isObjectLike(other)) + ? value != value && other != other + : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)) + ); + }; + }, + 51952: (module, __unused_webpack_exports, __webpack_require__) => { + var Stack = __webpack_require__(86571), + equalArrays = __webpack_require__(74871), + equalByTag = __webpack_require__(11491), + equalObjects = __webpack_require__(17416), + getTag = __webpack_require__(70940), + isArray = __webpack_require__(86152), + isBuffer = __webpack_require__(73226), + isTypedArray = __webpack_require__(77598), + objectTag = '[object Object]', + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? '[object Array]' : getTag(object), + othTag = othIsArr ? '[object Array]' : getTag(other), + objIsObj = (objTag = '[object Arguments]' == objTag ? objectTag : objTag) == objectTag, + othIsObj = (othTag = '[object Arguments]' == othTag ? objectTag : othTag) == objectTag, + isSameTag = objTag == othTag; + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) return !1; + (objIsArr = !0), (objIsObj = !1); + } + if (isSameTag && !objIsObj) + return ( + stack || (stack = new Stack()), + objIsArr || isTypedArray(object) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack) + ); + if (!(1 & bitmask)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + return stack || (stack = new Stack()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + return ( + !!isSameTag && + (stack || (stack = new Stack()), equalObjects(object, other, bitmask, customizer, equalFunc, stack)) + ); + }; + }, + 74511: (module, __unused_webpack_exports, __webpack_require__) => { + var getTag = __webpack_require__(70940), + isObjectLike = __webpack_require__(15125); + module.exports = function baseIsMap(value) { + return isObjectLike(value) && '[object Map]' == getTag(value); + }; + }, + 37036: (module, __unused_webpack_exports, __webpack_require__) => { + var Stack = __webpack_require__(86571), + baseIsEqual = __webpack_require__(88746); + module.exports = function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + if (null == object) return !length; + for (object = Object(object); index--; ) { + var data = matchData[index]; + if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; + } + for (; ++index < length; ) { + var key = (data = matchData[index])[0], + objValue = object[key], + srcValue = data[1]; + if (noCustomizer && data[2]) { + if (void 0 === objValue && !(key in object)) return !1; + } else { + var stack = new Stack(); + if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); + if (!(void 0 === result ? baseIsEqual(srcValue, objValue, 3, customizer, stack) : result)) return !1; + } + } + return !0; + }; + }, + 22195: module => { + module.exports = function baseIsNaN(value) { + return value != value; + }; + }, + 6840: (module, __unused_webpack_exports, __webpack_require__) => { + var isFunction = __webpack_require__(61049), + isMasked = __webpack_require__(47394), + isObject = __webpack_require__(29259), + toSource = __webpack_require__(87035), + reIsHostCtor = /^\[object .+?Constructor\]$/, + funcProto = Function.prototype, + objectProto = Object.prototype, + funcToString = funcProto.toString, + hasOwnProperty = objectProto.hasOwnProperty, + reIsNative = RegExp( + '^' + + funcToString + .call(hasOwnProperty) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + + '$', + ); + module.exports = function baseIsNative(value) { + return ( + !(!isObject(value) || isMasked(value)) && + (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)) + ); + }; + }, + 8109: (module, __unused_webpack_exports, __webpack_require__) => { + var getTag = __webpack_require__(70940), + isObjectLike = __webpack_require__(15125); + module.exports = function baseIsSet(value) { + return isObjectLike(value) && '[object Set]' == getTag(value); + }; + }, + 35522: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetTag = __webpack_require__(53366), + isLength = __webpack_require__(61158), + isObjectLike = __webpack_require__(15125), + typedArrayTags = {}; + (typedArrayTags['[object Float32Array]'] = typedArrayTags['[object Float64Array]'] = typedArrayTags[ + '[object Int8Array]' + ] = typedArrayTags['[object Int16Array]'] = typedArrayTags['[object Int32Array]'] = typedArrayTags[ + '[object Uint8Array]' + ] = typedArrayTags['[object Uint8ClampedArray]'] = typedArrayTags['[object Uint16Array]'] = typedArrayTags[ + '[object Uint32Array]' + ] = !0), + (typedArrayTags['[object Arguments]'] = typedArrayTags['[object Array]'] = typedArrayTags[ + '[object ArrayBuffer]' + ] = typedArrayTags['[object Boolean]'] = typedArrayTags['[object DataView]'] = typedArrayTags[ + '[object Date]' + ] = typedArrayTags['[object Error]'] = typedArrayTags['[object Function]'] = typedArrayTags[ + '[object Map]' + ] = typedArrayTags['[object Number]'] = typedArrayTags['[object Object]'] = typedArrayTags[ + '[object RegExp]' + ] = typedArrayTags['[object Set]'] = typedArrayTags['[object String]'] = typedArrayTags[ + '[object WeakMap]' + ] = !1), + (module.exports = function baseIsTypedArray(value) { + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; + }); + }, + 68286: (module, __unused_webpack_exports, __webpack_require__) => { + var baseMatches = __webpack_require__(26423), + baseMatchesProperty = __webpack_require__(74716), + identity = __webpack_require__(23059), + isArray = __webpack_require__(86152), + property = __webpack_require__(65798); + module.exports = function baseIteratee(value) { + return 'function' == typeof value + ? value + : null == value + ? identity + : 'object' == typeof value + ? isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value) + : property(value); + }; + }, + 86411: (module, __unused_webpack_exports, __webpack_require__) => { + var isPrototype = __webpack_require__(16001), + nativeKeys = __webpack_require__(54248), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function baseKeys(object) { + if (!isPrototype(object)) return nativeKeys(object); + var result = []; + for (var key in Object(object)) hasOwnProperty.call(object, key) && 'constructor' != key && result.push(key); + return result; + }; + }, + 18390: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(29259), + isPrototype = __webpack_require__(16001), + nativeKeysIn = __webpack_require__(62966), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function baseKeysIn(object) { + if (!isObject(object)) return nativeKeysIn(object); + var isProto = isPrototype(object), + result = []; + for (var key in object) + ('constructor' != key || (!isProto && hasOwnProperty.call(object, key))) && result.push(key); + return result; + }; + }, + 26423: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsMatch = __webpack_require__(37036), + getMatchData = __webpack_require__(49882), + matchesStrictComparable = __webpack_require__(73477); + module.exports = function baseMatches(source) { + var matchData = getMatchData(source); + return 1 == matchData.length && matchData[0][2] + ? matchesStrictComparable(matchData[0][0], matchData[0][1]) + : function (object) { + return object === source || baseIsMatch(object, source, matchData); + }; + }; + }, + 74716: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsEqual = __webpack_require__(88746), + get = __webpack_require__(72579), + hasIn = __webpack_require__(15707), + isKey = __webpack_require__(21401), + isStrictComparable = __webpack_require__(28792), + matchesStrictComparable = __webpack_require__(73477), + toKey = __webpack_require__(33812); + module.exports = function baseMatchesProperty(path, srcValue) { + return isKey(path) && isStrictComparable(srcValue) + ? matchesStrictComparable(toKey(path), srcValue) + : function (object) { + var objValue = get(object, path); + return void 0 === objValue && objValue === srcValue + ? hasIn(object, path) + : baseIsEqual(srcValue, objValue, 3); + }; + }; + }, + 96196: (module, __unused_webpack_exports, __webpack_require__) => { + var Stack = __webpack_require__(86571), + assignMergeValue = __webpack_require__(28582), + baseFor = __webpack_require__(15308), + baseMergeDeep = __webpack_require__(25561), + isObject = __webpack_require__(29259), + keysIn = __webpack_require__(18582), + safeGet = __webpack_require__(52434); + module.exports = function baseMerge(object, source, srcIndex, customizer, stack) { + object !== source && + baseFor( + source, + function (srcValue, key) { + if ((stack || (stack = new Stack()), isObject(srcValue))) + baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); + else { + var newValue = customizer + ? customizer(safeGet(object, key), srcValue, key + '', object, source, stack) + : void 0; + void 0 === newValue && (newValue = srcValue), assignMergeValue(object, key, newValue); + } + }, + keysIn, + ); + }; + }, + 25561: (module, __unused_webpack_exports, __webpack_require__) => { + var assignMergeValue = __webpack_require__(28582), + cloneBuffer = __webpack_require__(92175), + cloneTypedArray = __webpack_require__(6190), + copyArray = __webpack_require__(51522), + initCloneObject = __webpack_require__(78725), + isArguments = __webpack_require__(79631), + isArray = __webpack_require__(86152), + isArrayLikeObject = __webpack_require__(93746), + isBuffer = __webpack_require__(73226), + isFunction = __webpack_require__(61049), + isObject = __webpack_require__(29259), + isPlainObject = __webpack_require__(97030), + isTypedArray = __webpack_require__(77598), + safeGet = __webpack_require__(52434), + toPlainObject = __webpack_require__(63329); + module.exports = function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { + var objValue = safeGet(object, key), + srcValue = safeGet(source, key), + stacked = stack.get(srcValue); + if (stacked) assignMergeValue(object, key, stacked); + else { + var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : void 0, + isCommon = void 0 === newValue; + if (isCommon) { + var isArr = isArray(srcValue), + isBuff = !isArr && isBuffer(srcValue), + isTyped = !isArr && !isBuff && isTypedArray(srcValue); + (newValue = srcValue), + isArr || isBuff || isTyped + ? isArray(objValue) + ? (newValue = objValue) + : isArrayLikeObject(objValue) + ? (newValue = copyArray(objValue)) + : isBuff + ? ((isCommon = !1), (newValue = cloneBuffer(srcValue, !0))) + : isTyped + ? ((isCommon = !1), (newValue = cloneTypedArray(srcValue, !0))) + : (newValue = []) + : isPlainObject(srcValue) || isArguments(srcValue) + ? ((newValue = objValue), + isArguments(objValue) + ? (newValue = toPlainObject(objValue)) + : (isObject(objValue) && !isFunction(objValue)) || (newValue = initCloneObject(srcValue))) + : (isCommon = !1); + } + isCommon && + (stack.set(srcValue, newValue), + mergeFunc(newValue, srcValue, srcIndex, customizer, stack), + stack.delete(srcValue)), + assignMergeValue(object, key, newValue); + } + }; + }, + 92602: (module, __unused_webpack_exports, __webpack_require__) => { + var basePickBy = __webpack_require__(93759), + hasIn = __webpack_require__(15707); + module.exports = function basePick(object, paths) { + return basePickBy(object, paths, function (value, path) { + return hasIn(object, path); + }); + }; + }, + 93759: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGet = __webpack_require__(13324), + baseSet = __webpack_require__(82857), + castPath = __webpack_require__(17297); + module.exports = function basePickBy(object, paths, predicate) { + for (var index = -1, length = paths.length, result = {}; ++index < length; ) { + var path = paths[index], + value = baseGet(object, path); + predicate(value, path) && baseSet(result, castPath(path, object), value); + } + return result; + }; + }, + 20256: module => { + module.exports = function baseProperty(key) { + return function (object) { + return null == object ? void 0 : object[key]; + }; + }; + }, + 82952: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGet = __webpack_require__(13324); + module.exports = function basePropertyDeep(path) { + return function (object) { + return baseGet(object, path); + }; + }; + }, + 6435: module => { + module.exports = function basePropertyOf(object) { + return function (key) { + return null == object ? void 0 : object[key]; + }; + }; + }, + 36060: (module, __unused_webpack_exports, __webpack_require__) => { + var identity = __webpack_require__(23059), + overRest = __webpack_require__(43114), + setToString = __webpack_require__(75251); + module.exports = function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); + }; + }, + 82857: (module, __unused_webpack_exports, __webpack_require__) => { + var assignValue = __webpack_require__(60091), + castPath = __webpack_require__(17297), + isIndex = __webpack_require__(39045), + isObject = __webpack_require__(29259), + toKey = __webpack_require__(33812); + module.exports = function baseSet(object, path, value, customizer) { + if (!isObject(object)) return object; + for ( + var index = -1, length = (path = castPath(path, object)).length, lastIndex = length - 1, nested = object; + null != nested && ++index < length; + + ) { + var key = toKey(path[index]), + newValue = value; + if ('__proto__' === key || 'constructor' === key || 'prototype' === key) return object; + if (index != lastIndex) { + var objValue = nested[key]; + void 0 === (newValue = customizer ? customizer(objValue, key, nested) : void 0) && + (newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}); + } + assignValue(nested, key, newValue), (nested = nested[key]); + } + return object; + }; + }, + 86532: (module, __unused_webpack_exports, __webpack_require__) => { + var constant = __webpack_require__(86874), + defineProperty = __webpack_require__(83043), + identity = __webpack_require__(23059), + baseSetToString = defineProperty + ? function (func, string) { + return defineProperty(func, 'toString', { + configurable: !0, + enumerable: !1, + value: constant(string), + writable: !0, + }); + } + : identity; + module.exports = baseSetToString; + }, + 39872: module => { + module.exports = function baseSlice(array, start, end) { + var index = -1, + length = array.length; + start < 0 && (start = -start > length ? 0 : length + start), + (end = end > length ? length : end) < 0 && (end += length), + (length = start > end ? 0 : (end - start) >>> 0), + (start >>>= 0); + for (var result = Array(length); ++index < length; ) result[index] = array[index + start]; + return result; + }; + }, + 36473: module => { + module.exports = function baseTimes(n, iteratee) { + for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); + return result; + }; + }, + 1054: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + arrayMap = __webpack_require__(50343), + isArray = __webpack_require__(86152), + isSymbol = __webpack_require__(4795), + symbolProto = Symbol ? Symbol.prototype : void 0, + symbolToString = symbolProto ? symbolProto.toString : void 0; + module.exports = function baseToString(value) { + if ('string' == typeof value) return value; + if (isArray(value)) return arrayMap(value, baseToString) + ''; + if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ''; + var result = value + ''; + return '0' == result && 1 / value == -Infinity ? '-0' : result; + }; + }, + 51704: (module, __unused_webpack_exports, __webpack_require__) => { + var trimmedEndIndex = __webpack_require__(52153), + reTrimStart = /^\s+/; + module.exports = function baseTrim(string) { + return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string; + }; + }, + 47826: module => { + module.exports = function baseUnary(func) { + return function (value) { + return func(value); + }; + }; + }, + 67326: (module, __unused_webpack_exports, __webpack_require__) => { + var SetCache = __webpack_require__(45386), + arrayIncludes = __webpack_require__(38333), + arrayIncludesWith = __webpack_require__(34893), + cacheHas = __webpack_require__(59950), + createSet = __webpack_require__(78803), + setToArray = __webpack_require__(16909); + module.exports = function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = !0, + result = [], + seen = result; + if (comparator) (isCommon = !1), (includes = arrayIncludesWith); + else if (length >= 200) { + var set = iteratee ? null : createSet(array); + if (set) return setToArray(set); + (isCommon = !1), (includes = cacheHas), (seen = new SetCache()); + } else seen = iteratee ? [] : result; + outer: for (; ++index < length; ) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + if (((value = comparator || 0 !== value ? value : 0), isCommon && computed == computed)) { + for (var seenIndex = seen.length; seenIndex--; ) if (seen[seenIndex] === computed) continue outer; + iteratee && seen.push(computed), result.push(value); + } else includes(seen, computed, comparator) || (seen !== result && seen.push(computed), result.push(value)); + } + return result; + }; + }, + 59950: module => { + module.exports = function cacheHas(cache, key) { + return cache.has(key); + }; + }, + 17297: (module, __unused_webpack_exports, __webpack_require__) => { + var isArray = __webpack_require__(86152), + isKey = __webpack_require__(21401), + stringToPath = __webpack_require__(54452), + toString = __webpack_require__(66188); + module.exports = function castPath(value, object) { + return isArray(value) ? value : isKey(value, object) ? [value] : stringToPath(toString(value)); + }; + }, + 23895: (module, __unused_webpack_exports, __webpack_require__) => { + var baseSlice = __webpack_require__(39872); + module.exports = function castSlice(array, start, end) { + var length = array.length; + return (end = void 0 === end ? length : end), !start && end >= length ? array : baseSlice(array, start, end); + }; + }, + 79882: (module, __unused_webpack_exports, __webpack_require__) => { + var Uint8Array = __webpack_require__(79162); + module.exports = function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + return new Uint8Array(result).set(new Uint8Array(arrayBuffer)), result; + }; + }, + 92175: (module, exports, __webpack_require__) => { + module = __webpack_require__.nmd(module); + var root = __webpack_require__(37772), + freeExports = exports && !exports.nodeType && exports, + freeModule = freeExports && module && !module.nodeType && module, + Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, + allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0; + module.exports = function cloneBuffer(buffer, isDeep) { + if (isDeep) return buffer.slice(); + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + return buffer.copy(result), result; + }; + }, + 34727: (module, __unused_webpack_exports, __webpack_require__) => { + var cloneArrayBuffer = __webpack_require__(79882); + module.exports = function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); + }; + }, + 96058: module => { + var reFlags = /\w*$/; + module.exports = function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + return (result.lastIndex = regexp.lastIndex), result; + }; + }, + 70169: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + symbolProto = Symbol ? Symbol.prototype : void 0, + symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + module.exports = function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; + }; + }, + 6190: (module, __unused_webpack_exports, __webpack_require__) => { + var cloneArrayBuffer = __webpack_require__(79882); + module.exports = function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); + }; + }, + 51522: module => { + module.exports = function copyArray(source, array) { + var index = -1, + length = source.length; + for (array || (array = Array(length)); ++index < length; ) array[index] = source[index]; + return array; + }; + }, + 752: (module, __unused_webpack_exports, __webpack_require__) => { + var assignValue = __webpack_require__(60091), + baseAssignValue = __webpack_require__(13940); + module.exports = function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + for (var index = -1, length = props.length; ++index < length; ) { + var key = props[index], + newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; + void 0 === newValue && (newValue = source[key]), + isNew ? baseAssignValue(object, key, newValue) : assignValue(object, key, newValue); + } + return object; + }; + }, + 7680: (module, __unused_webpack_exports, __webpack_require__) => { + var copyObject = __webpack_require__(752), + getSymbols = __webpack_require__(80633); + module.exports = function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); + }; + }, + 19987: (module, __unused_webpack_exports, __webpack_require__) => { + var copyObject = __webpack_require__(752), + getSymbolsIn = __webpack_require__(12680); + module.exports = function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); + }; + }, + 24019: (module, __unused_webpack_exports, __webpack_require__) => { + var coreJsData = __webpack_require__(37772)['__core-js_shared__']; + module.exports = coreJsData; + }, + 36740: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayAggregator = __webpack_require__(65338), + baseAggregator = __webpack_require__(12825), + baseIteratee = __webpack_require__(68286), + isArray = __webpack_require__(86152); + module.exports = function createAggregator(setter, initializer) { + return function (collection, iteratee) { + var func = isArray(collection) ? arrayAggregator : baseAggregator, + accumulator = initializer ? initializer() : {}; + return func(collection, setter, baseIteratee(iteratee, 2), accumulator); + }; + }; + }, + 97263: (module, __unused_webpack_exports, __webpack_require__) => { + var baseRest = __webpack_require__(36060), + isIterateeCall = __webpack_require__(82406); + module.exports = function createAssigner(assigner) { + return baseRest(function (object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : void 0, + guard = length > 2 ? sources[2] : void 0; + for ( + customizer = assigner.length > 3 && 'function' == typeof customizer ? (length--, customizer) : void 0, + guard && + isIterateeCall(sources[0], sources[1], guard) && + ((customizer = length < 3 ? void 0 : customizer), (length = 1)), + object = Object(object); + ++index < length; + + ) { + var source = sources[index]; + source && assigner(object, source, index, customizer); + } + return object; + }); + }; + }, + 92019: (module, __unused_webpack_exports, __webpack_require__) => { + var isArrayLike = __webpack_require__(67878); + module.exports = function createBaseEach(eachFunc, fromRight) { + return function (collection, iteratee) { + if (null == collection) return collection; + if (!isArrayLike(collection)) return eachFunc(collection, iteratee); + for ( + var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); + (fromRight ? index-- : ++index < length) && !1 !== iteratee(iterable[index], index, iterable); + + ); + return collection; + }; + }; + }, + 55463: module => { + module.exports = function createBaseFor(fromRight) { + return function (object, iteratee, keysFunc) { + for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) { + var key = props[fromRight ? length : ++index]; + if (!1 === iteratee(iterable[key], key, iterable)) break; + } + return object; + }; + }; + }, + 83126: (module, __unused_webpack_exports, __webpack_require__) => { + var castSlice = __webpack_require__(23895), + hasUnicode = __webpack_require__(33880), + stringToArray = __webpack_require__(8435), + toString = __webpack_require__(66188); + module.exports = function createCaseFirst(methodName) { + return function (string) { + string = toString(string); + var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0, + chr = strSymbols ? strSymbols[0] : string.charAt(0), + trailing = strSymbols ? castSlice(strSymbols, 1).join('') : string.slice(1); + return chr[methodName]() + trailing; + }; + }; + }, + 34311: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayReduce = __webpack_require__(81207), + deburr = __webpack_require__(97329), + words = __webpack_require__(11618), + reApos = RegExp("['’]", 'g'); + module.exports = function createCompounder(callback) { + return function (string) { + return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); + }; + }; + }, + 78803: (module, __unused_webpack_exports, __webpack_require__) => { + var Set = __webpack_require__(2143), + noop = __webpack_require__(34291), + setToArray = __webpack_require__(16909), + createSet = + Set && 1 / setToArray(new Set([, -0]))[1] == 1 / 0 + ? function (values) { + return new Set(values); + } + : noop; + module.exports = createSet; + }, + 61655: (module, __unused_webpack_exports, __webpack_require__) => { + var deburrLetter = __webpack_require__(6435)({ + À: 'A', + Á: 'A', + Â: 'A', + Ã: 'A', + Ä: 'A', + Å: 'A', + à: 'a', + á: 'a', + â: 'a', + ã: 'a', + ä: 'a', + å: 'a', + Ç: 'C', + ç: 'c', + Ð: 'D', + ð: 'd', + È: 'E', + É: 'E', + Ê: 'E', + Ë: 'E', + è: 'e', + é: 'e', + ê: 'e', + ë: 'e', + Ì: 'I', + Í: 'I', + Î: 'I', + Ï: 'I', + ì: 'i', + í: 'i', + î: 'i', + ï: 'i', + Ñ: 'N', + ñ: 'n', + Ò: 'O', + Ó: 'O', + Ô: 'O', + Õ: 'O', + Ö: 'O', + Ø: 'O', + ò: 'o', + ó: 'o', + ô: 'o', + õ: 'o', + ö: 'o', + ø: 'o', + Ù: 'U', + Ú: 'U', + Û: 'U', + Ü: 'U', + ù: 'u', + ú: 'u', + û: 'u', + ü: 'u', + Ý: 'Y', + ý: 'y', + ÿ: 'y', + Æ: 'Ae', + æ: 'ae', + Þ: 'Th', + þ: 'th', + ß: 'ss', + Ā: 'A', + Ă: 'A', + Ą: 'A', + ā: 'a', + ă: 'a', + ą: 'a', + Ć: 'C', + Ĉ: 'C', + Ċ: 'C', + Č: 'C', + ć: 'c', + ĉ: 'c', + ċ: 'c', + č: 'c', + Ď: 'D', + Đ: 'D', + ď: 'd', + đ: 'd', + Ē: 'E', + Ĕ: 'E', + Ė: 'E', + Ę: 'E', + Ě: 'E', + ē: 'e', + ĕ: 'e', + ė: 'e', + ę: 'e', + ě: 'e', + Ĝ: 'G', + Ğ: 'G', + Ġ: 'G', + Ģ: 'G', + ĝ: 'g', + ğ: 'g', + ġ: 'g', + ģ: 'g', + Ĥ: 'H', + Ħ: 'H', + ĥ: 'h', + ħ: 'h', + Ĩ: 'I', + Ī: 'I', + Ĭ: 'I', + Į: 'I', + İ: 'I', + ĩ: 'i', + ī: 'i', + ĭ: 'i', + į: 'i', + ı: 'i', + Ĵ: 'J', + ĵ: 'j', + Ķ: 'K', + ķ: 'k', + ĸ: 'k', + Ĺ: 'L', + Ļ: 'L', + Ľ: 'L', + Ŀ: 'L', + Ł: 'L', + ĺ: 'l', + ļ: 'l', + ľ: 'l', + ŀ: 'l', + ł: 'l', + Ń: 'N', + Ņ: 'N', + Ň: 'N', + Ŋ: 'N', + ń: 'n', + ņ: 'n', + ň: 'n', + ŋ: 'n', + Ō: 'O', + Ŏ: 'O', + Ő: 'O', + ō: 'o', + ŏ: 'o', + ő: 'o', + Ŕ: 'R', + Ŗ: 'R', + Ř: 'R', + ŕ: 'r', + ŗ: 'r', + ř: 'r', + Ś: 'S', + Ŝ: 'S', + Ş: 'S', + Š: 'S', + ś: 's', + ŝ: 's', + ş: 's', + š: 's', + Ţ: 'T', + Ť: 'T', + Ŧ: 'T', + ţ: 't', + ť: 't', + ŧ: 't', + Ũ: 'U', + Ū: 'U', + Ŭ: 'U', + Ů: 'U', + Ű: 'U', + Ų: 'U', + ũ: 'u', + ū: 'u', + ŭ: 'u', + ů: 'u', + ű: 'u', + ų: 'u', + Ŵ: 'W', + ŵ: 'w', + Ŷ: 'Y', + ŷ: 'y', + Ÿ: 'Y', + Ź: 'Z', + Ż: 'Z', + Ž: 'Z', + ź: 'z', + ż: 'z', + ž: 'z', + IJ: 'IJ', + ij: 'ij', + Œ: 'Oe', + œ: 'oe', + ʼn: "'n", + ſ: 's', + }); + module.exports = deburrLetter; + }, + 83043: (module, __unused_webpack_exports, __webpack_require__) => { + var getNative = __webpack_require__(38761), + defineProperty = (function () { + try { + var func = getNative(Object, 'defineProperty'); + return func({}, '', {}), func; + } catch (e) {} + })(); + module.exports = defineProperty; + }, + 74871: (module, __unused_webpack_exports, __webpack_require__) => { + var SetCache = __webpack_require__(45386), + arraySome = __webpack_require__(87064), + cacheHas = __webpack_require__(59950); + module.exports = function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = 1 & bitmask, + arrLength = array.length, + othLength = other.length; + if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; + var arrStacked = stack.get(array), + othStacked = stack.get(other); + if (arrStacked && othStacked) return arrStacked == other && othStacked == array; + var index = -1, + result = !0, + seen = 2 & bitmask ? new SetCache() : void 0; + for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { + var arrValue = array[index], + othValue = other[index]; + if (customizer) + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + if (void 0 !== compared) { + if (compared) continue; + result = !1; + break; + } + if (seen) { + if ( + !arraySome(other, function (othValue, othIndex) { + if ( + !cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack)) + ) + return seen.push(othIndex); + }) + ) { + result = !1; + break; + } + } else if (arrValue !== othValue && !equalFunc(arrValue, othValue, bitmask, customizer, stack)) { + result = !1; + break; + } + } + return stack.delete(array), stack.delete(other), result; + }; + }, + 11491: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + Uint8Array = __webpack_require__(79162), + eq = __webpack_require__(41225), + equalArrays = __webpack_require__(74871), + mapToArray = __webpack_require__(75179), + setToArray = __webpack_require__(16909), + symbolProto = Symbol ? Symbol.prototype : void 0, + symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; + module.exports = function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case '[object DataView]': + if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return !1; + (object = object.buffer), (other = other.buffer); + case '[object ArrayBuffer]': + return !( + object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other)) + ); + case '[object Boolean]': + case '[object Date]': + case '[object Number]': + return eq(+object, +other); + case '[object Error]': + return object.name == other.name && object.message == other.message; + case '[object RegExp]': + case '[object String]': + return object == other + ''; + case '[object Map]': + var convert = mapToArray; + case '[object Set]': + var isPartial = 1 & bitmask; + if ((convert || (convert = setToArray), object.size != other.size && !isPartial)) return !1; + var stacked = stack.get(object); + if (stacked) return stacked == other; + (bitmask |= 2), stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + return stack.delete(object), result; + case '[object Symbol]': + if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); + } + return !1; + }; + }, + 17416: (module, __unused_webpack_exports, __webpack_require__) => { + var getAllKeys = __webpack_require__(13483), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = 1 & bitmask, + objProps = getAllKeys(object), + objLength = objProps.length; + if (objLength != getAllKeys(other).length && !isPartial) return !1; + for (var index = objLength; index--; ) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; + } + var objStacked = stack.get(object), + othStacked = stack.get(other); + if (objStacked && othStacked) return objStacked == other && othStacked == object; + var result = !0; + stack.set(object, other), stack.set(other, object); + for (var skipCtor = isPartial; ++index < objLength; ) { + var objValue = object[(key = objProps[index])], + othValue = other[key]; + if (customizer) + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + if ( + !(void 0 === compared + ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) + : compared) + ) { + result = !1; + break; + } + skipCtor || (skipCtor = 'constructor' == key); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + objCtor == othCtor || + !('constructor' in object) || + !('constructor' in other) || + ('function' == typeof objCtor && + objCtor instanceof objCtor && + 'function' == typeof othCtor && + othCtor instanceof othCtor) || + (result = !1); + } + return stack.delete(object), stack.delete(other), result; + }; + }, + 29097: (module, __unused_webpack_exports, __webpack_require__) => { + var flatten = __webpack_require__(35676), + overRest = __webpack_require__(43114), + setToString = __webpack_require__(75251); + module.exports = function flatRest(func) { + return setToString(overRest(func, void 0, flatten), func + ''); + }; + }, + 51242: (module, __unused_webpack_exports, __webpack_require__) => { + var freeGlobal = + 'object' == typeof __webpack_require__.g && + __webpack_require__.g && + __webpack_require__.g.Object === Object && + __webpack_require__.g; + module.exports = freeGlobal; + }, + 13483: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetAllKeys = __webpack_require__(1897), + getSymbols = __webpack_require__(80633), + keys = __webpack_require__(90249); + module.exports = function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); + }; + }, + 76939: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetAllKeys = __webpack_require__(1897), + getSymbolsIn = __webpack_require__(12680), + keysIn = __webpack_require__(18582); + module.exports = function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); + }; + }, + 27937: (module, __unused_webpack_exports, __webpack_require__) => { + var isKeyable = __webpack_require__(98304); + module.exports = function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data['string' == typeof key ? 'string' : 'hash'] : data.map; + }; + }, + 49882: (module, __unused_webpack_exports, __webpack_require__) => { + var isStrictComparable = __webpack_require__(28792), + keys = __webpack_require__(90249); + module.exports = function getMatchData(object) { + for (var result = keys(object), length = result.length; length--; ) { + var key = result[length], + value = object[key]; + result[length] = [key, value, isStrictComparable(value)]; + } + return result; + }; + }, + 38761: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsNative = __webpack_require__(6840), + getValue = __webpack_require__(98109); + module.exports = function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : void 0; + }; + }, + 47353: (module, __unused_webpack_exports, __webpack_require__) => { + var getPrototype = __webpack_require__(60241)(Object.getPrototypeOf, Object); + module.exports = getPrototype; + }, + 62107: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + objectProto = Object.prototype, + hasOwnProperty = objectProto.hasOwnProperty, + nativeObjectToString = objectProto.toString, + symToStringTag = Symbol ? Symbol.toStringTag : void 0; + module.exports = function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + try { + value[symToStringTag] = void 0; + var unmasked = !0; + } catch (e) {} + var result = nativeObjectToString.call(value); + return unmasked && (isOwn ? (value[symToStringTag] = tag) : delete value[symToStringTag]), result; + }; + }, + 80633: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayFilter = __webpack_require__(67552), + stubArray = __webpack_require__(30981), + propertyIsEnumerable = Object.prototype.propertyIsEnumerable, + nativeGetSymbols = Object.getOwnPropertySymbols, + getSymbols = nativeGetSymbols + ? function (object) { + return null == object + ? [] + : ((object = Object(object)), + arrayFilter(nativeGetSymbols(object), function (symbol) { + return propertyIsEnumerable.call(object, symbol); + })); + } + : stubArray; + module.exports = getSymbols; + }, + 12680: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayPush = __webpack_require__(65067), + getPrototype = __webpack_require__(47353), + getSymbols = __webpack_require__(80633), + stubArray = __webpack_require__(30981), + getSymbolsIn = Object.getOwnPropertySymbols + ? function (object) { + for (var result = []; object; ) arrayPush(result, getSymbols(object)), (object = getPrototype(object)); + return result; + } + : stubArray; + module.exports = getSymbolsIn; + }, + 70940: (module, __unused_webpack_exports, __webpack_require__) => { + var DataView = __webpack_require__(39515), + Map = __webpack_require__(10326), + Promise = __webpack_require__(52760), + Set = __webpack_require__(2143), + WeakMap = __webpack_require__(93215), + baseGetTag = __webpack_require__(53366), + toSource = __webpack_require__(87035), + dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap), + getTag = baseGetTag; + ((DataView && '[object DataView]' != getTag(new DataView(new ArrayBuffer(1)))) || + (Map && '[object Map]' != getTag(new Map())) || + (Promise && '[object Promise]' != getTag(Promise.resolve())) || + (Set && '[object Set]' != getTag(new Set())) || + (WeakMap && '[object WeakMap]' != getTag(new WeakMap()))) && + (getTag = function (value) { + var result = baseGetTag(value), + Ctor = '[object Object]' == result ? value.constructor : void 0, + ctorString = Ctor ? toSource(Ctor) : ''; + if (ctorString) + switch (ctorString) { + case dataViewCtorString: + return '[object DataView]'; + case mapCtorString: + return '[object Map]'; + case promiseCtorString: + return '[object Promise]'; + case setCtorString: + return '[object Set]'; + case weakMapCtorString: + return '[object WeakMap]'; + } + return result; + }), + (module.exports = getTag); + }, + 98109: module => { + module.exports = function getValue(object, key) { + return null == object ? void 0 : object[key]; + }; + }, + 1369: (module, __unused_webpack_exports, __webpack_require__) => { + var castPath = __webpack_require__(17297), + isArguments = __webpack_require__(79631), + isArray = __webpack_require__(86152), + isIndex = __webpack_require__(39045), + isLength = __webpack_require__(61158), + toKey = __webpack_require__(33812); + module.exports = function hasPath(object, path, hasFunc) { + for (var index = -1, length = (path = castPath(path, object)).length, result = !1; ++index < length; ) { + var key = toKey(path[index]); + if (!(result = null != object && hasFunc(object, key))) break; + object = object[key]; + } + return result || ++index != length + ? result + : !!(length = null == object ? 0 : object.length) && + isLength(length) && + isIndex(key, length) && + (isArray(object) || isArguments(object)); + }; + }, + 33880: module => { + var reHasUnicode = RegExp('[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]'); + module.exports = function hasUnicode(string) { + return reHasUnicode.test(string); + }; + }, + 83559: module => { + var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + module.exports = function hasUnicodeWord(string) { + return reHasUnicodeWord.test(string); + }; + }, + 52118: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeCreate = __webpack_require__(99191); + module.exports = function hashClear() { + (this.__data__ = nativeCreate ? nativeCreate(null) : {}), (this.size = 0); + }; + }, + 96909: module => { + module.exports = function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + return (this.size -= result ? 1 : 0), result; + }; + }, + 98138: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeCreate = __webpack_require__(99191), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return '__lodash_hash_undefined__' === result ? void 0 : result; + } + return hasOwnProperty.call(data, key) ? data[key] : void 0; + }; + }, + 4174: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeCreate = __webpack_require__(99191), + hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function hashHas(key) { + var data = this.__data__; + return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); + }; + }, + 7942: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeCreate = __webpack_require__(99191); + module.exports = function hashSet(key, value) { + var data = this.__data__; + return ( + (this.size += this.has(key) ? 0 : 1), + (data[key] = nativeCreate && void 0 === value ? '__lodash_hash_undefined__' : value), + this + ); + }; + }, + 99917: module => { + var hasOwnProperty = Object.prototype.hasOwnProperty; + module.exports = function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + return ( + length && + 'string' == typeof array[0] && + hasOwnProperty.call(array, 'index') && + ((result.index = array.index), (result.input = array.input)), + result + ); + }; + }, + 8222: (module, __unused_webpack_exports, __webpack_require__) => { + var cloneArrayBuffer = __webpack_require__(79882), + cloneDataView = __webpack_require__(34727), + cloneRegExp = __webpack_require__(96058), + cloneSymbol = __webpack_require__(70169), + cloneTypedArray = __webpack_require__(6190); + module.exports = function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case '[object ArrayBuffer]': + return cloneArrayBuffer(object); + case '[object Boolean]': + case '[object Date]': + return new Ctor(+object); + case '[object DataView]': + return cloneDataView(object, isDeep); + case '[object Float32Array]': + case '[object Float64Array]': + case '[object Int8Array]': + case '[object Int16Array]': + case '[object Int32Array]': + case '[object Uint8Array]': + case '[object Uint8ClampedArray]': + case '[object Uint16Array]': + case '[object Uint32Array]': + return cloneTypedArray(object, isDeep); + case '[object Map]': + case '[object Set]': + return new Ctor(); + case '[object Number]': + case '[object String]': + return new Ctor(object); + case '[object RegExp]': + return cloneRegExp(object); + case '[object Symbol]': + return cloneSymbol(object); + } + }; + }, + 78725: (module, __unused_webpack_exports, __webpack_require__) => { + var baseCreate = __webpack_require__(39413), + getPrototype = __webpack_require__(47353), + isPrototype = __webpack_require__(16001); + module.exports = function initCloneObject(object) { + return 'function' != typeof object.constructor || isPrototype(object) ? {} : baseCreate(getPrototype(object)); + }; + }, + 95882: (module, __unused_webpack_exports, __webpack_require__) => { + var Symbol = __webpack_require__(50857), + isArguments = __webpack_require__(79631), + isArray = __webpack_require__(86152), + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0; + module.exports = function isFlattenable(value) { + return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); + }; + }, + 39045: module => { + var reIsUint = /^(?:0|[1-9]\d*)$/; + module.exports = function isIndex(value, length) { + var type = typeof value; + return ( + !!(length = null == length ? 9007199254740991 : length) && + ('number' == type || ('symbol' != type && reIsUint.test(value))) && + value > -1 && + value % 1 == 0 && + value < length + ); + }; + }, + 82406: (module, __unused_webpack_exports, __webpack_require__) => { + var eq = __webpack_require__(41225), + isArrayLike = __webpack_require__(67878), + isIndex = __webpack_require__(39045), + isObject = __webpack_require__(29259); + module.exports = function isIterateeCall(value, index, object) { + if (!isObject(object)) return !1; + var type = typeof index; + return ( + !!('number' == type + ? isArrayLike(object) && isIndex(index, object.length) + : 'string' == type && index in object) && eq(object[index], value) + ); + }; + }, + 21401: (module, __unused_webpack_exports, __webpack_require__) => { + var isArray = __webpack_require__(86152), + isSymbol = __webpack_require__(4795), + reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/; + module.exports = function isKey(value, object) { + if (isArray(value)) return !1; + var type = typeof value; + return ( + !('number' != type && 'symbol' != type && 'boolean' != type && null != value && !isSymbol(value)) || + reIsPlainProp.test(value) || + !reIsDeepProp.test(value) || + (null != object && value in Object(object)) + ); + }; + }, + 98304: module => { + module.exports = function isKeyable(value) { + var type = typeof value; + return 'string' == type || 'number' == type || 'symbol' == type || 'boolean' == type + ? '__proto__' !== value + : null === value; + }; + }, + 47394: (module, __unused_webpack_exports, __webpack_require__) => { + var uid, + coreJsData = __webpack_require__(24019), + maskSrcKey = (uid = /[^.]+$/.exec((coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + uid + : ''; + module.exports = function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; + }; + }, + 16001: module => { + var objectProto = Object.prototype; + module.exports = function isPrototype(value) { + var Ctor = value && value.constructor; + return value === (('function' == typeof Ctor && Ctor.prototype) || objectProto); + }; + }, + 28792: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(29259); + module.exports = function isStrictComparable(value) { + return value == value && !isObject(value); + }; + }, + 3945: module => { + module.exports = function listCacheClear() { + (this.__data__ = []), (this.size = 0); + }; + }, + 21846: (module, __unused_webpack_exports, __webpack_require__) => { + var assocIndexOf = __webpack_require__(22218), + splice = Array.prototype.splice; + module.exports = function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), --this.size, !0); + }; + }, + 88028: (module, __unused_webpack_exports, __webpack_require__) => { + var assocIndexOf = __webpack_require__(22218); + module.exports = function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + return index < 0 ? void 0 : data[index][1]; + }; + }, + 72344: (module, __unused_webpack_exports, __webpack_require__) => { + var assocIndexOf = __webpack_require__(22218); + module.exports = function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + }; + }, + 94769: (module, __unused_webpack_exports, __webpack_require__) => { + var assocIndexOf = __webpack_require__(22218); + module.exports = function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + return index < 0 ? (++this.size, data.push([key, value])) : (data[index][1] = value), this; + }; + }, + 92411: (module, __unused_webpack_exports, __webpack_require__) => { + var Hash = __webpack_require__(89612), + ListCache = __webpack_require__(80235), + Map = __webpack_require__(10326); + module.exports = function mapCacheClear() { + (this.size = 0), (this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), string: new Hash() }); + }; + }, + 36417: (module, __unused_webpack_exports, __webpack_require__) => { + var getMapData = __webpack_require__(27937); + module.exports = function mapCacheDelete(key) { + var result = getMapData(this, key).delete(key); + return (this.size -= result ? 1 : 0), result; + }; + }, + 86928: (module, __unused_webpack_exports, __webpack_require__) => { + var getMapData = __webpack_require__(27937); + module.exports = function mapCacheGet(key) { + return getMapData(this, key).get(key); + }; + }, + 79493: (module, __unused_webpack_exports, __webpack_require__) => { + var getMapData = __webpack_require__(27937); + module.exports = function mapCacheHas(key) { + return getMapData(this, key).has(key); + }; + }, + 24150: (module, __unused_webpack_exports, __webpack_require__) => { + var getMapData = __webpack_require__(27937); + module.exports = function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + return data.set(key, value), (this.size += data.size == size ? 0 : 1), this; + }; + }, + 75179: module => { + module.exports = function mapToArray(map) { + var index = -1, + result = Array(map.size); + return ( + map.forEach(function (value, key) { + result[++index] = [key, value]; + }), + result + ); + }; + }, + 73477: module => { + module.exports = function matchesStrictComparable(key, srcValue) { + return function (object) { + return null != object && object[key] === srcValue && (void 0 !== srcValue || key in Object(object)); + }; + }; + }, + 77777: (module, __unused_webpack_exports, __webpack_require__) => { + var memoize = __webpack_require__(30733); + module.exports = function memoizeCapped(func) { + var result = memoize(func, function (key) { + return 500 === cache.size && cache.clear(), key; + }), + cache = result.cache; + return result; + }; + }, + 99191: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeCreate = __webpack_require__(38761)(Object, 'create'); + module.exports = nativeCreate; + }, + 54248: (module, __unused_webpack_exports, __webpack_require__) => { + var nativeKeys = __webpack_require__(60241)(Object.keys, Object); + module.exports = nativeKeys; + }, + 62966: module => { + module.exports = function nativeKeysIn(object) { + var result = []; + if (null != object) for (var key in Object(object)) result.push(key); + return result; + }; + }, + 4146: (module, exports, __webpack_require__) => { + module = __webpack_require__.nmd(module); + var freeGlobal = __webpack_require__(51242), + freeExports = exports && !exports.nodeType && exports, + freeModule = freeExports && module && !module.nodeType && module, + freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process, + nodeUtil = (function () { + try { + var types = freeModule && freeModule.require && freeModule.require('util').types; + return types || (freeProcess && freeProcess.binding && freeProcess.binding('util')); + } catch (e) {} + })(); + module.exports = nodeUtil; + }, + 37157: module => { + var nativeObjectToString = Object.prototype.toString; + module.exports = function objectToString(value) { + return nativeObjectToString.call(value); + }; + }, + 60241: module => { + module.exports = function overArg(func, transform) { + return function (arg) { + return func(transform(arg)); + }; + }; + }, + 43114: (module, __unused_webpack_exports, __webpack_require__) => { + var apply = __webpack_require__(49432), + nativeMax = Math.max; + module.exports = function overRest(func, start, transform) { + return ( + (start = nativeMax(void 0 === start ? func.length - 1 : start, 0)), + function () { + for ( + var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); + ++index < length; + + ) + array[index] = args[start + index]; + index = -1; + for (var otherArgs = Array(start + 1); ++index < start; ) otherArgs[index] = args[index]; + return (otherArgs[start] = transform(array)), apply(func, this, otherArgs); + } + ); + }; + }, + 37772: (module, __unused_webpack_exports, __webpack_require__) => { + var freeGlobal = __webpack_require__(51242), + freeSelf = 'object' == typeof self && self && self.Object === Object && self, + root = freeGlobal || freeSelf || Function('return this')(); + module.exports = root; + }, + 52434: module => { + module.exports = function safeGet(object, key) { + if (('constructor' !== key || 'function' != typeof object[key]) && '__proto__' != key) return object[key]; + }; + }, + 52842: module => { + module.exports = function setCacheAdd(value) { + return this.__data__.set(value, '__lodash_hash_undefined__'), this; + }; + }, + 52482: module => { + module.exports = function setCacheHas(value) { + return this.__data__.has(value); + }; + }, + 16909: module => { + module.exports = function setToArray(set) { + var index = -1, + result = Array(set.size); + return ( + set.forEach(function (value) { + result[++index] = value; + }), + result + ); + }; + }, + 75251: (module, __unused_webpack_exports, __webpack_require__) => { + var baseSetToString = __webpack_require__(86532), + setToString = __webpack_require__(97787)(baseSetToString); + module.exports = setToString; + }, + 97787: module => { + var nativeNow = Date.now; + module.exports = function shortOut(func) { + var count = 0, + lastCalled = 0; + return function () { + var stamp = nativeNow(), + remaining = 16 - (stamp - lastCalled); + if (((lastCalled = stamp), remaining > 0)) { + if (++count >= 800) return arguments[0]; + } else count = 0; + return func.apply(void 0, arguments); + }; + }; + }, + 15243: (module, __unused_webpack_exports, __webpack_require__) => { + var ListCache = __webpack_require__(80235); + module.exports = function stackClear() { + (this.__data__ = new ListCache()), (this.size = 0); + }; + }, + 72858: module => { + module.exports = function stackDelete(key) { + var data = this.__data__, + result = data.delete(key); + return (this.size = data.size), result; + }; + }, + 4417: module => { + module.exports = function stackGet(key) { + return this.__data__.get(key); + }; + }, + 8605: module => { + module.exports = function stackHas(key) { + return this.__data__.has(key); + }; + }, + 71418: (module, __unused_webpack_exports, __webpack_require__) => { + var ListCache = __webpack_require__(80235), + Map = __webpack_require__(10326), + MapCache = __webpack_require__(96738); + module.exports = function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || pairs.length < 199) return pairs.push([key, value]), (this.size = ++data.size), this; + data = this.__data__ = new MapCache(pairs); + } + return data.set(key, value), (this.size = data.size), this; + }; + }, + 66024: module => { + module.exports = function strictIndexOf(array, value, fromIndex) { + for (var index = fromIndex - 1, length = array.length; ++index < length; ) + if (array[index] === value) return index; + return -1; + }; + }, + 8435: (module, __unused_webpack_exports, __webpack_require__) => { + var asciiToArray = __webpack_require__(50217), + hasUnicode = __webpack_require__(33880), + unicodeToArray = __webpack_require__(63344); + module.exports = function stringToArray(string) { + return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); + }; + }, + 54452: (module, __unused_webpack_exports, __webpack_require__) => { + var memoizeCapped = __webpack_require__(77777), + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + reEscapeChar = /\\(\\)?/g, + stringToPath = memoizeCapped(function (string) { + var result = []; + return ( + 46 === string.charCodeAt(0) && result.push(''), + string.replace(rePropName, function (match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match); + }), + result + ); + }); + module.exports = stringToPath; + }, + 33812: (module, __unused_webpack_exports, __webpack_require__) => { + var isSymbol = __webpack_require__(4795); + module.exports = function toKey(value) { + if ('string' == typeof value || isSymbol(value)) return value; + var result = value + ''; + return '0' == result && 1 / value == -Infinity ? '-0' : result; + }; + }, + 87035: module => { + var funcToString = Function.prototype.toString; + module.exports = function toSource(func) { + if (null != func) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return func + ''; + } catch (e) {} + } + return ''; + }; + }, + 52153: module => { + var reWhitespace = /\s/; + module.exports = function trimmedEndIndex(string) { + for (var index = string.length; index-- && reWhitespace.test(string.charAt(index)); ); + return index; + }; + }, + 63344: module => { + var rsAstral = '[\\ud800-\\udfff]', + rsCombo = '[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]', + rsFitz = '\\ud83c[\\udffb-\\udfff]', + rsNonAstral = '[^\\ud800-\\udfff]', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + reOptMod = '(?:' + rsCombo + '|' + rsFitz + ')' + '?', + rsSeq = + '[\\ufe0e\\ufe0f]?' + + reOptMod + + ('(?:\\u200d(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')[\\ufe0e\\ufe0f]?' + reOptMod + ')*'), + rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')', + reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + module.exports = function unicodeToArray(string) { + return string.match(reUnicode) || []; + }; + }, + 75304: module => { + var rsBreakRange = + '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', + rsBreak = '[' + rsBreakRange + ']', + rsDigits = '\\d+', + rsDingbat = '[\\u2700-\\u27bf]', + rsLower = '[a-z\\xdf-\\xf6\\xf8-\\xff]', + rsMisc = + '[^\\ud800-\\udfff' + + rsBreakRange + + rsDigits + + '\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]', + rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', + rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', + rsUpper = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', + rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', + rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', + reOptMod = '(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?', + rsSeq = + '[\\ufe0e\\ufe0f]?' + + reOptMod + + ('(?:\\u200d(?:' + + ['[^\\ud800-\\udfff]', rsRegional, rsSurrPair].join('|') + + ')[\\ufe0e\\ufe0f]?' + + reOptMod + + ')*'), + rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, + reUnicodeWord = RegExp( + [ + rsUpper + '?' + rsLower + "+(?:['’](?:d|ll|m|re|s|t|ve))?(?=" + [rsBreak, rsUpper, '$'].join('|') + ')', + rsMiscUpper + "+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=" + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', + rsUpper + '?' + rsMiscLower + "+(?:['’](?:d|ll|m|re|s|t|ve))?", + rsUpper + "+(?:['’](?:D|LL|M|RE|S|T|VE))?", + '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', + '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', + rsDigits, + rsEmoji, + ].join('|'), + 'g', + ); + module.exports = function unicodeWords(string) { + return string.match(reUnicodeWord) || []; + }; + }, + 9850: (module, __unused_webpack_exports, __webpack_require__) => { + var baseClone = __webpack_require__(18874); + module.exports = function cloneDeep(value) { + return baseClone(value, 5); + }; + }, + 86874: module => { + module.exports = function constant(value) { + return function () { + return value; + }; + }; + }, + 24471: (module, __unused_webpack_exports, __webpack_require__) => { + var baseAssignValue = __webpack_require__(13940), + createAggregator = __webpack_require__(36740), + hasOwnProperty = Object.prototype.hasOwnProperty, + countBy = createAggregator(function (result, value, key) { + hasOwnProperty.call(result, key) ? ++result[key] : baseAssignValue(result, key, 1); + }); + module.exports = countBy; + }, + 54073: (module, __unused_webpack_exports, __webpack_require__) => { + var isObject = __webpack_require__(29259), + now = __webpack_require__(61100), + toNumber = __webpack_require__(7642), + nativeMax = Math.max, + nativeMin = Math.min; + module.exports = function debounce(func, wait, options) { + var lastArgs, + lastThis, + maxWait, + result, + timerId, + lastCallTime, + lastInvokeTime = 0, + leading = !1, + maxing = !1, + trailing = !0; + if ('function' != typeof func) throw new TypeError('Expected a function'); + function invokeFunc(time) { + var args = lastArgs, + thisArg = lastThis; + return (lastArgs = lastThis = void 0), (lastInvokeTime = time), (result = func.apply(thisArg, args)); + } + function leadingEdge(time) { + return ( + (lastInvokeTime = time), (timerId = setTimeout(timerExpired, wait)), leading ? invokeFunc(time) : result + ); + } + function shouldInvoke(time) { + var timeSinceLastCall = time - lastCallTime; + return ( + void 0 === lastCallTime || + timeSinceLastCall >= wait || + timeSinceLastCall < 0 || + (maxing && time - lastInvokeTime >= maxWait) + ); + } + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) return trailingEdge(time); + timerId = setTimeout( + timerExpired, + (function remainingWait(time) { + var timeWaiting = wait - (time - lastCallTime); + return maxing ? nativeMin(timeWaiting, maxWait - (time - lastInvokeTime)) : timeWaiting; + })(time), + ); + } + function trailingEdge(time) { + return (timerId = void 0), trailing && lastArgs ? invokeFunc(time) : ((lastArgs = lastThis = void 0), result); + } + function debounced() { + var time = now(), + isInvoking = shouldInvoke(time); + if (((lastArgs = arguments), (lastThis = this), (lastCallTime = time), isInvoking)) { + if (void 0 === timerId) return leadingEdge(lastCallTime); + if (maxing) + return clearTimeout(timerId), (timerId = setTimeout(timerExpired, wait)), invokeFunc(lastCallTime); + } + return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; + } + return ( + (wait = toNumber(wait) || 0), + isObject(options) && + ((leading = !!options.leading), + (maxWait = (maxing = 'maxWait' in options) ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait), + (trailing = 'trailing' in options ? !!options.trailing : trailing)), + (debounced.cancel = function cancel() { + void 0 !== timerId && clearTimeout(timerId), + (lastInvokeTime = 0), + (lastArgs = lastCallTime = lastThis = timerId = void 0); + }), + (debounced.flush = function flush() { + return void 0 === timerId ? result : trailingEdge(now()); + }), + debounced + ); + }; + }, + 97329: (module, __unused_webpack_exports, __webpack_require__) => { + var deburrLetter = __webpack_require__(61655), + toString = __webpack_require__(66188), + reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, + reComboMark = RegExp('[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]', 'g'); + module.exports = function deburr(string) { + return (string = toString(string)) && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); + }; + }, + 41225: module => { + module.exports = function eq(value, other) { + return value === other || (value != value && other != other); + }; + }, + 35676: (module, __unused_webpack_exports, __webpack_require__) => { + var baseFlatten = __webpack_require__(62034); + module.exports = function flatten(array) { + return (null == array ? 0 : array.length) ? baseFlatten(array, 1) : []; + }; + }, + 72579: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGet = __webpack_require__(13324); + module.exports = function get(object, path, defaultValue) { + var result = null == object ? void 0 : baseGet(object, path); + return void 0 === result ? defaultValue : result; + }; + }, + 15707: (module, __unused_webpack_exports, __webpack_require__) => { + var baseHasIn = __webpack_require__(20187), + hasPath = __webpack_require__(1369); + module.exports = function hasIn(object, path) { + return null != object && hasPath(object, path, baseHasIn); + }; + }, + 23059: module => { + module.exports = function identity(value) { + return value; + }; + }, + 79631: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsArguments = __webpack_require__(15183), + isObjectLike = __webpack_require__(15125), + objectProto = Object.prototype, + hasOwnProperty = objectProto.hasOwnProperty, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + isArguments = baseIsArguments( + (function () { + return arguments; + })(), + ) + ? baseIsArguments + : function (value) { + return ( + isObjectLike(value) && + hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee') + ); + }; + module.exports = isArguments; + }, + 86152: module => { + var isArray = Array.isArray; + module.exports = isArray; + }, + 67878: (module, __unused_webpack_exports, __webpack_require__) => { + var isFunction = __webpack_require__(61049), + isLength = __webpack_require__(61158); + module.exports = function isArrayLike(value) { + return null != value && isLength(value.length) && !isFunction(value); + }; + }, + 93746: (module, __unused_webpack_exports, __webpack_require__) => { + var isArrayLike = __webpack_require__(67878), + isObjectLike = __webpack_require__(15125); + module.exports = function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); + }; + }, + 73226: (module, exports, __webpack_require__) => { + module = __webpack_require__.nmd(module); + var root = __webpack_require__(37772), + stubFalse = __webpack_require__(36330), + freeExports = exports && !exports.nodeType && exports, + freeModule = freeExports && module && !module.nodeType && module, + Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, + isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse; + module.exports = isBuffer; + }, + 18149: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsEqual = __webpack_require__(88746); + module.exports = function isEqual(value, other) { + return baseIsEqual(value, other); + }; + }, + 61049: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetTag = __webpack_require__(53366), + isObject = __webpack_require__(29259); + module.exports = function isFunction(value) { + if (!isObject(value)) return !1; + var tag = baseGetTag(value); + return ( + '[object Function]' == tag || + '[object GeneratorFunction]' == tag || + '[object AsyncFunction]' == tag || + '[object Proxy]' == tag + ); + }; + }, + 61158: module => { + module.exports = function isLength(value) { + return 'number' == typeof value && value > -1 && value % 1 == 0 && value <= 9007199254740991; + }; + }, + 4714: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsMap = __webpack_require__(74511), + baseUnary = __webpack_require__(47826), + nodeUtil = __webpack_require__(4146), + nodeIsMap = nodeUtil && nodeUtil.isMap, + isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; + module.exports = isMap; + }, + 29259: module => { + module.exports = function isObject(value) { + var type = typeof value; + return null != value && ('object' == type || 'function' == type); + }; + }, + 15125: module => { + module.exports = function isObjectLike(value) { + return null != value && 'object' == typeof value; + }; + }, + 97030: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetTag = __webpack_require__(53366), + getPrototype = __webpack_require__(47353), + isObjectLike = __webpack_require__(15125), + funcProto = Function.prototype, + objectProto = Object.prototype, + funcToString = funcProto.toString, + hasOwnProperty = objectProto.hasOwnProperty, + objectCtorString = funcToString.call(Object); + module.exports = function isPlainObject(value) { + if (!isObjectLike(value) || '[object Object]' != baseGetTag(value)) return !1; + var proto = getPrototype(value); + if (null === proto) return !0; + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return 'function' == typeof Ctor && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; + }; + }, + 43679: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsSet = __webpack_require__(8109), + baseUnary = __webpack_require__(47826), + nodeUtil = __webpack_require__(4146), + nodeIsSet = nodeUtil && nodeUtil.isSet, + isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; + module.exports = isSet; + }, + 4795: (module, __unused_webpack_exports, __webpack_require__) => { + var baseGetTag = __webpack_require__(53366), + isObjectLike = __webpack_require__(15125); + module.exports = function isSymbol(value) { + return 'symbol' == typeof value || (isObjectLike(value) && '[object Symbol]' == baseGetTag(value)); + }; + }, + 77598: (module, __unused_webpack_exports, __webpack_require__) => { + var baseIsTypedArray = __webpack_require__(35522), + baseUnary = __webpack_require__(47826), + nodeUtil = __webpack_require__(4146), + nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, + isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + module.exports = isTypedArray; + }, + 90249: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayLikeKeys = __webpack_require__(1634), + baseKeys = __webpack_require__(86411), + isArrayLike = __webpack_require__(67878); + module.exports = function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); + }; + }, + 18582: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayLikeKeys = __webpack_require__(1634), + baseKeysIn = __webpack_require__(18390), + isArrayLike = __webpack_require__(67878); + module.exports = function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, !0) : baseKeysIn(object); + }; + }, + 34519: (module, __unused_webpack_exports, __webpack_require__) => { + var baseAssignValue = __webpack_require__(13940), + baseForOwn = __webpack_require__(26548), + baseIteratee = __webpack_require__(68286); + module.exports = function mapValues(object, iteratee) { + var result = {}; + return ( + (iteratee = baseIteratee(iteratee, 3)), + baseForOwn(object, function (value, key, object) { + baseAssignValue(result, key, iteratee(value, key, object)); + }), + result + ); + }; + }, + 30733: (module, __unused_webpack_exports, __webpack_require__) => { + var MapCache = __webpack_require__(96738); + function memoize(func, resolver) { + if ('function' != typeof func || (null != resolver && 'function' != typeof resolver)) + throw new TypeError('Expected a function'); + var memoized = function () { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + if (cache.has(key)) return cache.get(key); + var result = func.apply(this, args); + return (memoized.cache = cache.set(key, result) || cache), result; + }; + return (memoized.cache = new (memoize.Cache || MapCache)()), memoized; + } + (memoize.Cache = MapCache), (module.exports = memoize); + }, + 12782: (module, __unused_webpack_exports, __webpack_require__) => { + var baseMerge = __webpack_require__(96196), + mergeWith = __webpack_require__(97263)(function (object, source, srcIndex, customizer) { + baseMerge(object, source, srcIndex, customizer); + }); + module.exports = mergeWith; + }, + 34291: module => { + module.exports = function noop() {}; + }, + 61100: (module, __unused_webpack_exports, __webpack_require__) => { + var root = __webpack_require__(37772); + module.exports = function () { + return root.Date.now(); + }; + }, + 13888: (module, __unused_webpack_exports, __webpack_require__) => { + var basePick = __webpack_require__(92602), + pick = __webpack_require__(29097)(function (object, paths) { + return null == object ? {} : basePick(object, paths); + }); + module.exports = pick; + }, + 42208: (module, __unused_webpack_exports, __webpack_require__) => { + var arrayMap = __webpack_require__(50343), + baseIteratee = __webpack_require__(68286), + basePickBy = __webpack_require__(93759), + getAllKeysIn = __webpack_require__(76939); + module.exports = function pickBy(object, predicate) { + if (null == object) return {}; + var props = arrayMap(getAllKeysIn(object), function (prop) { + return [prop]; + }); + return ( + (predicate = baseIteratee(predicate)), + basePickBy(object, props, function (value, path) { + return predicate(value, path[0]); + }) + ); + }; + }, + 65798: (module, __unused_webpack_exports, __webpack_require__) => { + var baseProperty = __webpack_require__(20256), + basePropertyDeep = __webpack_require__(82952), + isKey = __webpack_require__(21401), + toKey = __webpack_require__(33812); + module.exports = function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); + }; + }, + 74600: (module, __unused_webpack_exports, __webpack_require__) => { + var createCompounder = __webpack_require__(34311), + upperFirst = __webpack_require__(23779), + startCase = createCompounder(function (result, word, index) { + return result + (index ? ' ' : '') + upperFirst(word); + }); + module.exports = startCase; + }, + 30981: module => { + module.exports = function stubArray() { + return []; + }; + }, + 36330: module => { + module.exports = function stubFalse() { + return !1; + }; + }, + 12436: (module, __unused_webpack_exports, __webpack_require__) => { + var debounce = __webpack_require__(54073), + isObject = __webpack_require__(29259); + module.exports = function throttle(func, wait, options) { + var leading = !0, + trailing = !0; + if ('function' != typeof func) throw new TypeError('Expected a function'); + return ( + isObject(options) && + ((leading = 'leading' in options ? !!options.leading : leading), + (trailing = 'trailing' in options ? !!options.trailing : trailing)), + debounce(func, wait, { leading, maxWait: wait, trailing }) + ); + }; + }, + 7642: (module, __unused_webpack_exports, __webpack_require__) => { + var baseTrim = __webpack_require__(51704), + isObject = __webpack_require__(29259), + isSymbol = __webpack_require__(4795), + reIsBadHex = /^[-+]0x[0-9a-f]+$/i, + reIsBinary = /^0b[01]+$/i, + reIsOctal = /^0o[0-7]+$/i, + freeParseInt = parseInt; + module.exports = function toNumber(value) { + if ('number' == typeof value) return value; + if (isSymbol(value)) return NaN; + if (isObject(value)) { + var other = 'function' == typeof value.valueOf ? value.valueOf() : value; + value = isObject(other) ? other + '' : other; + } + if ('string' != typeof value) return 0 === value ? value : +value; + value = baseTrim(value); + var isBinary = reIsBinary.test(value); + return isBinary || reIsOctal.test(value) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : reIsBadHex.test(value) + ? NaN + : +value; + }; + }, + 63329: (module, __unused_webpack_exports, __webpack_require__) => { + var copyObject = __webpack_require__(752), + keysIn = __webpack_require__(18582); + module.exports = function toPlainObject(value) { + return copyObject(value, keysIn(value)); + }; + }, + 66188: (module, __unused_webpack_exports, __webpack_require__) => { + var baseToString = __webpack_require__(1054); + module.exports = function toString(value) { + return null == value ? '' : baseToString(value); + }; + }, + 75652: (module, __unused_webpack_exports, __webpack_require__) => { + var baseUniq = __webpack_require__(67326); + module.exports = function uniq(array) { + return array && array.length ? baseUniq(array) : []; + }; + }, + 23779: (module, __unused_webpack_exports, __webpack_require__) => { + var upperFirst = __webpack_require__(83126)('toUpperCase'); + module.exports = upperFirst; + }, + 11618: (module, __unused_webpack_exports, __webpack_require__) => { + var asciiWords = __webpack_require__(45981), + hasUnicodeWord = __webpack_require__(83559), + toString = __webpack_require__(66188), + unicodeWords = __webpack_require__(75304); + module.exports = function words(string, pattern, guard) { + return ( + (string = toString(string)), + void 0 === (pattern = guard ? void 0 : pattern) + ? hasUnicodeWord(string) + ? unicodeWords(string) + : asciiWords(string) + : string.match(pattern) || [] + ); + }; + }, + 38228: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { Z: () => __WEBPACK_DEFAULT_EXPORT__ }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784); + function e() { + return (e = + Object.assign || + function (t) { + for (var e = 1; e < arguments.length; e++) { + var n = arguments[e]; + for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); + } + return t; + }).apply(this, arguments); + } + const n = ['children', 'options'], + r = [ + 'allowFullScreen', + 'allowTransparency', + 'autoComplete', + 'autoFocus', + 'autoPlay', + 'cellPadding', + 'cellSpacing', + 'charSet', + 'className', + 'classId', + 'colSpan', + 'contentEditable', + 'contextMenu', + 'crossOrigin', + 'encType', + 'formAction', + 'formEncType', + 'formMethod', + 'formNoValidate', + 'formTarget', + 'frameBorder', + 'hrefLang', + 'inputMode', + 'keyParams', + 'keyType', + 'marginHeight', + 'marginWidth', + 'maxLength', + 'mediaGroup', + 'minLength', + 'noValidate', + 'radioGroup', + 'readOnly', + 'rowSpan', + 'spellCheck', + 'srcDoc', + 'srcLang', + 'srcSet', + 'tabIndex', + 'useMap', + ].reduce((t, e) => ((t[e.toLowerCase()] = e), t), { for: 'htmlFor' }), + o = { amp: '&', apos: "'", gt: '>', lt: '<', nbsp: ' ', quot: '“' }, + c = ['style', 'script'], + a = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, + u = /mailto:/i, + i = /\n{2,}$/, + l = /^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/, + s = /^ *> ?/gm, + _ = /^ {2,}\n/, + f = /^(?:( *[-*_]) *){3,}(?:\n *)+\n/, + d = /^\s*(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n?/, + p = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, + g = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, + m = /^(?:\n *)*\n/, + y = /\r\n?/g, + h = /^\[\^([^\]]+)](:.*)\n/, + k = /^\[\^([^\]]+)]/, + x = /\f/g, + b = /^\s*?\[(x|\s)\]/, + v = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, + S = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, + $ = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i, + w = /&([a-z]+);/g, + z = /^)/, + E = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, + A = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, + R = /^\{.*\}$/, + I = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, + M = /^<([^ >]+@[^ >]+)>/, + O = /^<([^ >]+:\/[^ >]+)>/, + B = / *\n+$/, + L = /(?:^|\n)( *)$/, + T = /-([a-z])?/gi, + j = /^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/, + C = /^\[([^\]]*)\]:\s*(\S+)\s*("([^"]*)")?/, + D = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, + N = /^\[([^\]]*)\] ?\[([^\]]*)\]/, + Z = /(\[|\])/g, + F = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, + P = /\t/g, + G = /^ *\| */, + H = /(^ *\||\| *$)/g, + q = / *$/, + U = /^ *:-+: *$/, + V = /^ *:-+ *$/, + W = /^ *-+: *$/, + Q = /^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/, + X = /^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/, + J = /^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/, + K = /^\\([^0-9A-Za-z\s])/, + Y = /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i, + tt = /^\n+/, + et = /^([ \t]*)/, + nt = /\\([^0-9A-Z\s])/gi, + rt = new RegExp('^( *)((?:[*+-]|\\d+\\.)) +'), + ot = new RegExp('^( *)((?:[*+-]|\\d+\\.)) +[^\\n]*(?:\\n(?!\\1(?:[*+-]|\\d+\\.) )[^\\n]*)*(\\n|$)', 'gm'), + ct = new RegExp( + '^( *)((?:[*+-]|\\d+\\.)) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1(?:[*+-]|\\d+\\.) (?!(?:[*+-]|\\d+\\.) ))\\n*|\\s*\\n*$)', + ), + at = '(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*', + ut = new RegExp('^\\[(' + at + ')\\]\\(\\s*?(?:\\s+[\'"]([\\s\\S]*?)[\'"])?\\s*\\)'), + it = new RegExp( + '^!\\[(' + at + ')\\]\\(\\s*?(?:\\s+[\'"]([\\s\\S]*?)[\'"])?\\s*\\)', + ), + lt = [l, p, d, v, S, z, ot, ct, j], + st = [...lt, /^[^\n]+(?: \n|\n{2,})/, $, A]; + function _t(t) { + return t + .replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g, 'a') + .replace(/[çÇ]/g, 'c') + .replace(/[ðÐ]/g, 'd') + .replace(/[ÈÉÊËéèêë]/g, 'e') + .replace(/[ÏïÎîÍíÌì]/g, 'i') + .replace(/[Ññ]/g, 'n') + .replace(/[øØœŒÕõÔôÓóÒò]/g, 'o') + .replace(/[ÜüÛûÚúÙù]/g, 'u') + .replace(/[ŸÿÝý]/g, 'y') + .replace(/[^a-z0-9- ]/gi, '') + .replace(/ /gi, '-') + .toLowerCase(); + } + function ft(t) { + return W.test(t) ? 'right' : U.test(t) ? 'center' : V.test(t) ? 'left' : null; + } + function dt(t, e, n) { + const r = n.t; + n.t = !0; + const o = e(t.trim(), n); + n.t = r; + let c = [[]]; + return ( + o.forEach(function (t, e) { + 'tableSeparator' === t.type + ? 0 !== e && e !== o.length - 1 && c.push([]) + : ('text' !== t.type || + (null != o[e + 1] && 'tableSeparator' !== o[e + 1].type) || + (t.content = t.content.replace(q, '')), + c[c.length - 1].push(t)); + }), + c + ); + } + function pt(t, e, n) { + n.o = !0; + const r = dt(t[1], e, n), + o = t[2].replace(H, '').split('|').map(ft), + c = (function (t, e, n) { + return t + .trim() + .split('\n') + .map(function (t) { + return dt(t, e, n); + }); + })(t[3], e, n); + return (n.o = !1), { align: o, cells: c, header: r, type: 'table' }; + } + function gt(t, e) { + return null == t.align[e] ? {} : { textAlign: t.align[e] }; + } + function mt(t) { + return function (e, n) { + return n.o ? t.exec(e) : null; + }; + } + function yt(t) { + return function (e, n) { + return n.o || n.u ? t.exec(e) : null; + }; + } + function ht(t) { + return function (e, n) { + return n.o || n.u ? null : t.exec(e); + }; + } + function kt(t) { + return function (e) { + return t.exec(e); + }; + } + function xt(t, e, n) { + if (e.o || e.u) return null; + if (n && !n.endsWith('\n')) return null; + let r = ''; + t.split('\n').every(t => !lt.some(e => e.test(t)) && ((r += t + '\n'), t.trim())); + const o = r.trimEnd(); + return '' == o ? null : [r, o]; + } + function bt(t) { + try { + if ( + decodeURIComponent(t) + .replace(/[^A-Za-z0-9/:]/g, '') + .match(/^\s*(javascript|vbscript|data):/i) + ) + return null; + } catch (t) { + return null; + } + return t; + } + function vt(t) { + return t.replace(nt, '$1'); + } + function St(t, e, n) { + const r = n.o || !1, + o = n.u || !1; + (n.o = !0), (n.u = !0); + const c = t(e, n); + return (n.o = r), (n.u = o), c; + } + function $t(t, e, n) { + const r = n.o || !1, + o = n.u || !1; + (n.o = !1), (n.u = !0); + const c = t(e, n); + return (n.o = r), (n.u = o), c; + } + function wt(t, e, n) { + return (n.o = !1), t(e + '\n\n', n); + } + const zt = (t, e, n) => ({ content: St(e, t[1], n) }); + function Et() { + return {}; + } + function At() { + return null; + } + function Rt(...t) { + return t.filter(Boolean).join(' '); + } + function It(t, e, n) { + let r = t; + const o = e.split('.'); + for (; o.length && ((r = r[o[0]]), void 0 !== r); ) o.shift(); + return r || n; + } + var Mt, t; + function Ot(n, H = {}) { + (H.overrides = H.overrides || {}), + (H.slugify = H.slugify || _t), + (H.namedCodesToUnicode = H.namedCodesToUnicode ? e({}, o, H.namedCodesToUnicode) : o); + const q = H.createElement || react__WEBPACK_IMPORTED_MODULE_0__.createElement; + function U(t, n, ...r) { + const o = It(H.overrides, `${t}.props`, {}); + return q( + (function (t, e) { + const n = It(e, t); + return n + ? 'function' == typeof n || ('object' == typeof n && 'render' in n) + ? n + : It(e, `${t}.component`, t) + : t; + })(t, H.overrides), + e({}, n, o, { className: Rt(null == n ? void 0 : n.className, o.className) || void 0 }), + ...r, + ); + } + function V(e) { + let n = !1; + H.forceInline ? (n = !0) : H.forceBlock || (n = !1 === F.test(e)); + const r = dt(ft(n ? e : `${e.trimEnd().replace(tt, '')}\n\n`, { o: n })); + for (; 'string' == typeof r[r.length - 1] && !r[r.length - 1].trim(); ) r.pop(); + if (null === H.wrapper) return r; + const o = H.wrapper || (n ? 'span' : 'div'); + let c; + if (r.length > 1 || H.forceWrapper) c = r; + else { + if (1 === r.length) return (c = r[0]), 'string' == typeof c ? U('span', { key: 'outer' }, c) : c; + c = null; + } + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(o, { key: 'outer' }, c); + } + function W(e) { + const n = e.match(a); + return n + ? n.reduce(function (e, n, o) { + const c = n.indexOf('='); + if (-1 !== c) { + const a = ((t = n.slice(0, c)), + -1 !== t.indexOf('-') && + null === t.match(E) && + (t = t.replace(T, function (t, e) { + return e.toUpperCase(); + })), + t).trim(), + u = (function (t) { + const e = t[0]; + return ('"' === e || "'" === e) && t.length >= 2 && t[t.length - 1] === e ? t.slice(1, -1) : t; + })(n.slice(c + 1).trim()), + i = r[a] || a, + l = (e[i] = (function (t, e) { + return 'style' === t + ? e.split(/;\s?/).reduce(function (t, e) { + const n = e.slice(0, e.indexOf(':')); + return ( + (t[n.replace(/(-[a-z])/g, t => t[1].toUpperCase())] = e.slice(n.length + 1).trim()), t + ); + }, {}) + : 'href' === t + ? bt(e) + : (e.match(R) && (e = e.slice(1, e.length - 1)), 'true' === e || ('false' !== e && e)); + })(a, u)); + 'string' == typeof l && + ($.test(l) || A.test(l)) && + (e[i] = react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(V(l.trim()), { key: o })); + } else 'style' !== n && (e[r[n] || n] = !0); + var t; + return e; + }, {}) + : void 0; + } + const nt = [], + at = {}, + lt = { + blockQuote: { + i: ht(l), + l: Mt.HIGH, + _: (t, e, n) => ({ content: e(t[0].replace(s, ''), n) }), + p: (t, e, n) => U('blockquote', { key: n.g }, e(t.content, n)), + }, + breakLine: { i: kt(_), l: Mt.HIGH, _: Et, p: (t, e, n) => U('br', { key: n.g }) }, + breakThematic: { i: ht(f), l: Mt.HIGH, _: Et, p: (t, e, n) => U('hr', { key: n.g }) }, + codeBlock: { + i: ht(p), + l: Mt.MAX, + _: t => ({ content: t[0].replace(/^ {4}/gm, '').replace(/\n+$/, ''), lang: void 0 }), + p: (t, e, n) => + U('pre', { key: n.g }, U('code', { className: t.lang ? `lang-${t.lang}` : '' }, t.content)), + }, + codeFenced: { i: ht(d), l: Mt.MAX, _: t => ({ content: t[3], lang: t[2] || void 0, type: 'codeBlock' }) }, + codeInline: { + i: yt(g), + l: Mt.LOW, + _: t => ({ content: t[2] }), + p: (t, e, n) => U('code', { key: n.g }, t.content), + }, + footnote: { i: ht(h), l: Mt.MAX, _: t => (nt.push({ footnote: t[2], identifier: t[1] }), {}), p: At }, + footnoteReference: { + i: mt(k), + l: Mt.HIGH, + _: t => ({ content: t[1], target: `#${H.slugify(t[1])}` }), + p: (t, e, n) => U('a', { key: n.g, href: bt(t.target) }, U('sup', { key: n.g }, t.content)), + }, + gfmTask: { + i: mt(b), + l: Mt.HIGH, + _: t => ({ completed: 'x' === t[1].toLowerCase() }), + p: (t, e, n) => U('input', { checked: t.completed, key: n.g, readOnly: !0, type: 'checkbox' }), + }, + heading: { + i: ht(v), + l: Mt.HIGH, + _: (t, e, n) => ({ content: St(e, t[2], n), id: H.slugify(t[2]), level: t[1].length }), + p: (t, e, n) => ((t.tag = `h${t.level}`), U(t.tag, { id: t.id, key: n.g }, e(t.content, n))), + }, + headingSetext: { + i: ht(S), + l: Mt.MAX, + _: (t, e, n) => ({ content: St(e, t[1], n), level: '=' === t[2] ? 1 : 2, type: 'heading' }), + }, + htmlComment: { i: kt(z), l: Mt.HIGH, _: () => ({}), p: At }, + image: { + i: yt(it), + l: Mt.HIGH, + _: t => ({ alt: t[1], target: vt(t[2]), title: t[3] }), + p: (t, e, n) => U('img', { key: n.g, alt: t.alt || void 0, title: t.title || void 0, src: bt(t.target) }), + }, + link: { + i: mt(ut), + l: Mt.LOW, + _: (t, e, n) => ({ content: $t(e, t[1], n), target: vt(t[2]), title: t[3] }), + p: (t, e, n) => U('a', { key: n.g, href: bt(t.target), title: t.title }, e(t.content, n)), + }, + linkAngleBraceStyleDetector: { + i: mt(O), + l: Mt.MAX, + _: t => ({ content: [{ content: t[1], type: 'text' }], target: t[1], type: 'link' }), + }, + linkBareUrlDetector: { + i: (t, e) => (e.m ? null : mt(I)(t, e)), + l: Mt.MAX, + _: t => ({ content: [{ content: t[1], type: 'text' }], target: t[1], title: void 0, type: 'link' }), + }, + linkMailtoDetector: { + i: mt(M), + l: Mt.MAX, + _(t) { + let e = t[1], + n = t[1]; + return ( + u.test(n) || (n = 'mailto:' + n), + { content: [{ content: e.replace('mailto:', ''), type: 'text' }], target: n, type: 'link' } + ); + }, + }, + list: { + i(t, e, n) { + const r = L.exec(n); + return !r || (!e.h && e.o) ? null : ct.exec((t = r[1] + t)); + }, + l: Mt.HIGH, + _(t, e, n) { + const r = t[2], + o = r.length > 1, + c = o ? +r : void 0, + a = t[0].replace(i, '\n').match(ot); + let u = !1; + return { + items: a.map(function (t, r) { + const o = rt.exec(t)[0].length, + c = new RegExp('^ {1,' + o + '}', 'gm'), + i = t.replace(c, '').replace(rt, ''), + l = r === a.length - 1, + s = -1 !== i.indexOf('\n\n') || (l && u); + u = s; + const _ = n.o, + f = n.h; + let d; + (n.h = !0), s ? ((n.o = !1), (d = i.replace(B, '\n\n'))) : ((n.o = !0), (d = i.replace(B, ''))); + const p = e(d, n); + return (n.o = _), (n.h = f), p; + }), + ordered: o, + start: c, + }; + }, + p: (t, e, n) => + U( + t.ordered ? 'ol' : 'ul', + { key: n.g, start: t.start }, + t.items.map(function (t, r) { + return U('li', { key: r }, e(t, n)); + }), + ), + }, + newlineCoalescer: { i: ht(m), l: Mt.LOW, _: Et, p: () => '\n' }, + paragraph: { i: xt, l: Mt.LOW, _: zt, p: (t, e, n) => U('p', { key: n.g }, e(t.content, n)) }, + ref: { i: mt(C), l: Mt.MAX, _: t => ((at[t[1]] = { target: t[2], title: t[4] }), {}), p: At }, + refImage: { + i: yt(D), + l: Mt.MAX, + _: t => ({ alt: t[1] || void 0, ref: t[2] }), + p: (t, e, n) => U('img', { key: n.g, alt: t.alt, src: bt(at[t.ref].target), title: at[t.ref].title }), + }, + refLink: { + i: mt(N), + l: Mt.MAX, + _: (t, e, n) => ({ content: e(t[1], n), fallbackContent: e(t[0].replace(Z, '\\$1'), n), ref: t[2] }), + p: (t, e, n) => + at[t.ref] + ? U('a', { key: n.g, href: bt(at[t.ref].target), title: at[t.ref].title }, e(t.content, n)) + : U('span', { key: n.g }, e(t.fallbackContent, n)), + }, + table: { + i: ht(j), + l: Mt.HIGH, + _: pt, + p: (t, e, n) => + U( + 'table', + { key: n.g }, + U( + 'thead', + null, + U( + 'tr', + null, + t.header.map(function (r, o) { + return U('th', { key: o, style: gt(t, o) }, e(r, n)); + }), + ), + ), + U( + 'tbody', + null, + t.cells.map(function (r, o) { + return U( + 'tr', + { key: o }, + r.map(function (r, o) { + return U('td', { key: o, style: gt(t, o) }, e(r, n)); + }), + ); + }), + ), + ), + }, + tableSeparator: { + i: function (t, e) { + return e.t ? G.exec(t) : null; + }, + l: Mt.HIGH, + _: function () { + return { type: 'tableSeparator' }; + }, + p: () => ' | ', + }, + text: { + i: kt(Y), + l: Mt.MIN, + _: t => ({ + content: t[0].replace(w, (t, e) => (H.namedCodesToUnicode[e] ? H.namedCodesToUnicode[e] : t)), + }), + p: t => t.content, + }, + textBolded: { + i: yt(Q), + l: Mt.MED, + _: (t, e, n) => ({ content: e(t[2], n) }), + p: (t, e, n) => U('strong', { key: n.g }, e(t.content, n)), + }, + textEmphasized: { + i: yt(X), + l: Mt.LOW, + _: (t, e, n) => ({ content: e(t[2], n) }), + p: (t, e, n) => U('em', { key: n.g }, e(t.content, n)), + }, + textEscaped: { i: yt(K), l: Mt.HIGH, _: t => ({ content: t[1], type: 'text' }) }, + textStrikethroughed: { + i: yt(J), + l: Mt.LOW, + _: zt, + p: (t, e, n) => U('del', { key: n.g }, e(t.content, n)), + }, + }; + !0 !== H.disableParsingRawHTML && + ((lt.htmlBlock = { + i: kt($), + l: Mt.HIGH, + _(t, e, n) { + const [, r] = t[3].match(et), + o = new RegExp(`^${r}`, 'gm'), + a = t[3].replace(o, ''), + u = ((i = a), st.some(t => t.test(i)) ? wt : St); + var i; + const l = t[1].toLowerCase(), + s = -1 !== c.indexOf(l); + n.m = n.m || 'a' === l; + const _ = s ? t[3] : u(e, a, n); + return (n.m = !1), { attrs: W(t[2]), content: _, noInnerParse: s, tag: s ? l : t[1] }; + }, + p: (t, n, r) => U(t.tag, e({ key: r.g }, t.attrs), t.noInnerParse ? t.content : n(t.content, r)), + }), + (lt.htmlSelfClosing = { + i: kt(A), + l: Mt.HIGH, + _: t => ({ attrs: W(t[2] || ''), tag: t[1] }), + p: (t, n, r) => U(t.tag, e({}, t.attrs, { key: r.g })), + })); + const ft = (function (t) { + let e = Object.keys(t); + function n(r, o) { + let c = [], + a = ''; + for (; r; ) { + let u = 0; + for (; u < e.length; ) { + const i = e[u], + l = t[i], + s = l.i(r, o, a); + if (s) { + const t = s[0]; + r = r.substring(t.length); + const e = l._(s, n, o); + null == e.type && (e.type = i), c.push(e), (a = t); + break; + } + u++; + } + } + return c; + } + return ( + e.sort(function (e, n) { + let r = t[e].l, + o = t[n].l; + return r !== o ? r - o : e < n ? -1 : 1; + }), + function (t, e) { + return n( + (function (t) { + return t.replace(y, '\n').replace(x, '').replace(P, ' '); + })(t), + e, + ); + } + ); + })(lt), + dt = + ((t = lt), + (Ot = function (e, n, r) { + return t[e.type].p(e, n, r); + }), + function t(e, n = {}) { + if (Array.isArray(e)) { + const r = n.g, + o = []; + let c = !1; + for (let r = 0; r < e.length; r++) { + n.g = r; + const a = t(e[r], n), + u = 'string' == typeof a; + u && c ? (o[o.length - 1] += a) : null !== a && o.push(a), (c = u); + } + return (n.g = r), o; + } + return Ot(e, t, n); + }); + var t, Ot; + const Bt = V(n); + return nt.length + ? U( + 'div', + null, + Bt, + U( + 'footer', + { key: 'footer' }, + nt.map(function (t) { + return U( + 'div', + { id: H.slugify(t.identifier), key: t.identifier }, + t.identifier, + dt(ft(t.footnote, { o: !0 })), + ); + }), + ), + ) + : Bt; + } + ((t = Mt || (Mt = {}))[(t.MAX = 0)] = 'MAX'), + (t[(t.HIGH = 1)] = 'HIGH'), + (t[(t.MED = 2)] = 'MED'), + (t[(t.LOW = 3)] = 'LOW'), + (t[(t.MIN = 4)] = 'MIN'); + const __WEBPACK_DEFAULT_EXPORT__ = e => { + let { children: r, options: o } = e, + c = (function (t, e) { + if (null == t) return {}; + var n, + r, + o = {}, + c = Object.keys(t); + for (r = 0; r < c.length; r++) e.indexOf((n = c[r])) >= 0 || (o[n] = t[n]); + return o; + })(e, n); + return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(Ot(r, o), c); + }; + }, + 49224: module => { + module.exports = (function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + if (i) return i(o, !0); + var f = new Error("Cannot find module '" + o + "'"); + throw ((f.code = 'MODULE_NOT_FOUND'), f); + } + var l = (n[o] = { exports: {} }); + t[o][0].call( + l.exports, + function (e) { + var n = t[o][1][e]; + return s(n || e); + }, + l, + l.exports, + e, + t, + n, + r, + ); + } + return n[o].exports; + } + for (var i = void 0, o = 0; o < r.length; o++) s(r[o]); + return s; + })( + { + 1: [ + function (_dereq_, module, exports) { + module.exports = function (forceSimilar) { + return 'function' != typeof Map || forceSimilar ? new (_dereq_('./similar'))() : new Map(); + }; + }, + { './similar': 2 }, + ], + 2: [ + function (_dereq_, module, exports) { + function Similar() { + return (this.list = []), (this.lastItem = void 0), (this.size = 0), this; + } + (Similar.prototype.get = function (key) { + var index; + return this.lastItem && this.isEqual(this.lastItem.key, key) + ? this.lastItem.val + : (index = this.indexOf(key)) >= 0 + ? ((this.lastItem = this.list[index]), this.list[index].val) + : void 0; + }), + (Similar.prototype.set = function (key, val) { + var index; + return this.lastItem && this.isEqual(this.lastItem.key, key) + ? ((this.lastItem.val = val), this) + : (index = this.indexOf(key)) >= 0 + ? ((this.lastItem = this.list[index]), (this.list[index].val = val), this) + : ((this.lastItem = { key, val }), this.list.push(this.lastItem), this.size++, this); + }), + (Similar.prototype.delete = function (key) { + var index; + if ( + (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), + (index = this.indexOf(key)) >= 0) + ) + return this.size--, this.list.splice(index, 1)[0]; + }), + (Similar.prototype.has = function (key) { + var index; + return ( + !(!this.lastItem || !this.isEqual(this.lastItem.key, key)) || + ((index = this.indexOf(key)) >= 0 && ((this.lastItem = this.list[index]), !0)) + ); + }), + (Similar.prototype.forEach = function (callback, thisArg) { + var i; + for (i = 0; i < this.size; i++) + callback.call(thisArg || this, this.list[i].val, this.list[i].key, this); + }), + (Similar.prototype.indexOf = function (key) { + var i; + for (i = 0; i < this.size; i++) if (this.isEqual(this.list[i].key, key)) return i; + return -1; + }), + (Similar.prototype.isEqual = function (val1, val2) { + return val1 === val2 || (val1 != val1 && val2 != val2); + }), + (module.exports = Similar); + }, + {}, + ], + 3: [ + function (_dereq_, module, exports) { + var MapOrSimilar = _dereq_('map-or-similar'); + function moveToMostRecentLru(lru, lruPath) { + var isMatch, + i, + ii, + lruLen = lru.length, + lruPathLen = lruPath.length; + for (i = 0; i < lruLen; i++) { + for (isMatch = !0, ii = 0; ii < lruPathLen; ii++) + if (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) { + isMatch = !1; + break; + } + if (isMatch) break; + } + lru.push(lru.splice(i, 1)[0]); + } + function removeCachedResult(removedLru) { + var tmp, + i, + removedLruLen = removedLru.length, + currentLru = removedLru[removedLruLen - 1]; + for ( + currentLru.cacheItem.delete(currentLru.arg), i = removedLruLen - 2; + i >= 0 && (!(tmp = (currentLru = removedLru[i]).cacheItem.get(currentLru.arg)) || !tmp.size); + i-- + ) + currentLru.cacheItem.delete(currentLru.arg); + } + function isEqual(val1, val2) { + return val1 === val2 || (val1 != val1 && val2 != val2); + } + module.exports = function (limit) { + var cache = new MapOrSimilar(!1), + lru = []; + return function (fn) { + var memoizerific = function () { + var newMap, + fnResult, + i, + currentCache = cache, + argsLengthMinusOne = arguments.length - 1, + lruPath = Array(argsLengthMinusOne + 1), + isMemoized = !0; + if ( + (memoizerific.numArgs || 0 === memoizerific.numArgs) && + memoizerific.numArgs !== argsLengthMinusOne + 1 + ) + throw new Error( + 'Memoizerific functions should always be called with the same number of arguments', + ); + for (i = 0; i < argsLengthMinusOne; i++) + (lruPath[i] = { cacheItem: currentCache, arg: arguments[i] }), + currentCache.has(arguments[i]) + ? (currentCache = currentCache.get(arguments[i])) + : ((isMemoized = !1), + (newMap = new MapOrSimilar(!1)), + currentCache.set(arguments[i], newMap), + (currentCache = newMap)); + return ( + isMemoized && + (currentCache.has(arguments[argsLengthMinusOne]) + ? (fnResult = currentCache.get(arguments[argsLengthMinusOne])) + : (isMemoized = !1)), + isMemoized || + ((fnResult = fn.apply(null, arguments)), + currentCache.set(arguments[argsLengthMinusOne], fnResult)), + limit > 0 && + ((lruPath[argsLengthMinusOne] = { + cacheItem: currentCache, + arg: arguments[argsLengthMinusOne], + }), + isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), + lru.length > limit && removeCachedResult(lru.shift())), + (memoizerific.wasMemoized = isMemoized), + (memoizerific.numArgs = argsLengthMinusOne + 1), + fnResult + ); + }; + return ( + (memoizerific.limit = limit), + (memoizerific.wasMemoized = !1), + (memoizerific.cache = cache), + (memoizerific.lru = lru), + memoizerific + ); + }; + }; + }, + { 'map-or-similar': 1 }, + ], + }, + {}, + [3], + )(3); + }, + 37320: module => { + 'use strict'; + var getOwnPropertySymbols = Object.getOwnPropertySymbols, + hasOwnProperty = Object.prototype.hasOwnProperty, + propIsEnumerable = Object.prototype.propertyIsEnumerable; + function toObject(val) { + if (null == val) throw new TypeError('Object.assign cannot be called with null or undefined'); + return Object(val); + } + module.exports = (function shouldUseNative() { + try { + if (!Object.assign) return !1; + var test1 = new String('abc'); + if (((test1[5] = 'de'), '5' === Object.getOwnPropertyNames(test1)[0])) return !1; + for (var test2 = {}, i = 0; i < 10; i++) test2['_' + String.fromCharCode(i)] = i; + if ( + '0123456789' !== + Object.getOwnPropertyNames(test2) + .map(function (n) { + return test2[n]; + }) + .join('') + ) + return !1; + var test3 = {}; + return ( + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }), + 'abcdefghijklmnopqrst' === Object.keys(Object.assign({}, test3)).join('') + ); + } catch (err) { + return !1; + } + })() + ? Object.assign + : function (target, source) { + for (var from, symbols, to = toObject(target), s = 1; s < arguments.length; s++) { + for (var key in (from = Object(arguments[s]))) hasOwnProperty.call(from, key) && (to[key] = from[key]); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) + propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); + } + } + return to; + }; + }, + 99500: (module, __unused_webpack_exports, __webpack_require__) => { + var hasMap = 'function' == typeof Map && Map.prototype, + mapSizeDescriptor = + Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null, + mapSize = + hasMap && mapSizeDescriptor && 'function' == typeof mapSizeDescriptor.get ? mapSizeDescriptor.get : null, + mapForEach = hasMap && Map.prototype.forEach, + hasSet = 'function' == typeof Set && Set.prototype, + setSizeDescriptor = + Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null, + setSize = + hasSet && setSizeDescriptor && 'function' == typeof setSizeDescriptor.get ? setSizeDescriptor.get : null, + setForEach = hasSet && Set.prototype.forEach, + weakMapHas = 'function' == typeof WeakMap && WeakMap.prototype ? WeakMap.prototype.has : null, + weakSetHas = 'function' == typeof WeakSet && WeakSet.prototype ? WeakSet.prototype.has : null, + weakRefDeref = 'function' == typeof WeakRef && WeakRef.prototype ? WeakRef.prototype.deref : null, + booleanValueOf = Boolean.prototype.valueOf, + objectToString = Object.prototype.toString, + functionToString = Function.prototype.toString, + match = String.prototype.match, + bigIntValueOf = 'function' == typeof BigInt ? BigInt.prototype.valueOf : null, + gOPS = Object.getOwnPropertySymbols, + symToString = + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? Symbol.prototype.toString : null, + hasShammedSymbols = 'function' == typeof Symbol && 'object' == typeof Symbol.iterator, + isEnumerable = Object.prototype.propertyIsEnumerable, + gPO = + ('function' == typeof Reflect ? Reflect.getPrototypeOf : Object.getPrototypeOf) || + ([].__proto__ === Array.prototype + ? function (O) { + return O.__proto__; + } + : null), + inspectCustom = __webpack_require__(53260).custom, + inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null, + toStringTag = 'function' == typeof Symbol && void 0 !== Symbol.toStringTag ? Symbol.toStringTag : null; + function wrapQuotes(s, defaultStyle, opts) { + var quoteChar = 'double' === (opts.quoteStyle || defaultStyle) ? '"' : "'"; + return quoteChar + s + quoteChar; + } + function quote(s) { + return String(s).replace(/"/g, '"'); + } + function isArray(obj) { + return !('[object Array]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + } + function isSymbol(obj) { + if (hasShammedSymbols) return obj && 'object' == typeof obj && obj instanceof Symbol; + if ('symbol' == typeof obj) return !0; + if (!obj || 'object' != typeof obj || !symToString) return !1; + try { + return symToString.call(obj), !0; + } catch (e) {} + return !1; + } + module.exports = function inspect_(obj, options, depth, seen) { + var opts = options || {}; + if (has(opts, 'quoteStyle') && 'single' !== opts.quoteStyle && 'double' !== opts.quoteStyle) + throw new TypeError('option "quoteStyle" must be "single" or "double"'); + if ( + has(opts, 'maxStringLength') && + ('number' == typeof opts.maxStringLength + ? opts.maxStringLength < 0 && opts.maxStringLength !== 1 / 0 + : null !== opts.maxStringLength) + ) + throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); + var customInspect = !has(opts, 'customInspect') || opts.customInspect; + if ('boolean' != typeof customInspect && 'symbol' !== customInspect) + throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); + if ( + has(opts, 'indent') && + null !== opts.indent && + '\t' !== opts.indent && + !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) + ) + throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); + if (void 0 === obj) return 'undefined'; + if (null === obj) return 'null'; + if ('boolean' == typeof obj) return obj ? 'true' : 'false'; + if ('string' == typeof obj) return inspectString(obj, opts); + if ('number' == typeof obj) return 0 === obj ? (1 / 0 / obj > 0 ? '0' : '-0') : String(obj); + if ('bigint' == typeof obj) return String(obj) + 'n'; + var maxDepth = void 0 === opts.depth ? 5 : opts.depth; + if ((void 0 === depth && (depth = 0), depth >= maxDepth && maxDepth > 0 && 'object' == typeof obj)) + return isArray(obj) ? '[Array]' : '[Object]'; + var indent = (function getIndent(opts, depth) { + var baseIndent; + if ('\t' === opts.indent) baseIndent = '\t'; + else { + if (!('number' == typeof opts.indent && opts.indent > 0)) return null; + baseIndent = Array(opts.indent + 1).join(' '); + } + return { base: baseIndent, prev: Array(depth + 1).join(baseIndent) }; + })(opts, depth); + if (void 0 === seen) seen = []; + else if (indexOf(seen, obj) >= 0) return '[Circular]'; + function inspect(value, from, noIndent) { + if ((from && (seen = seen.slice()).push(from), noIndent)) { + var newOpts = { depth: opts.depth }; + return ( + has(opts, 'quoteStyle') && (newOpts.quoteStyle = opts.quoteStyle), + inspect_(value, newOpts, depth + 1, seen) + ); + } + return inspect_(value, opts, depth + 1, seen); + } + if ('function' == typeof obj) { + var name = (function nameOf(f) { + if (f.name) return f.name; + var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/); + if (m) return m[1]; + return null; + })(obj), + keys = arrObjKeys(obj, inspect); + return ( + '[Function' + + (name ? ': ' + name : ' (anonymous)') + + ']' + + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '') + ); + } + if (isSymbol(obj)) { + var symString = hasShammedSymbols + ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') + : symToString.call(obj); + return 'object' != typeof obj || hasShammedSymbols ? symString : markBoxed(symString); + } + if ( + (function isElement(x) { + if (!x || 'object' != typeof x) return !1; + if ('undefined' != typeof HTMLElement && x instanceof HTMLElement) return !0; + return 'string' == typeof x.nodeName && 'function' == typeof x.getAttribute; + })(obj) + ) { + for ( + var s = '<' + String(obj.nodeName).toLowerCase(), attrs = obj.attributes || [], i = 0; + i < attrs.length; + i++ + ) + s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); + return ( + (s += '>'), + obj.childNodes && obj.childNodes.length && (s += '...'), + (s += '') + ); + } + if (isArray(obj)) { + if (0 === obj.length) return '[]'; + var xs = arrObjKeys(obj, inspect); + return indent && + !(function singleLineValues(xs) { + for (var i = 0; i < xs.length; i++) if (indexOf(xs[i], '\n') >= 0) return !1; + return !0; + })(xs) + ? '[' + indentedJoin(xs, indent) + ']' + : '[ ' + xs.join(', ') + ' ]'; + } + if ( + (function isError(obj) { + return !('[object Error]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + })(obj) + ) { + var parts = arrObjKeys(obj, inspect); + return 0 === parts.length ? '[' + String(obj) + ']' : '{ [' + String(obj) + '] ' + parts.join(', ') + ' }'; + } + if ('object' == typeof obj && customInspect) { + if (inspectSymbol && 'function' == typeof obj[inspectSymbol]) return obj[inspectSymbol](); + if ('symbol' !== customInspect && 'function' == typeof obj.inspect) return obj.inspect(); + } + if ( + (function isMap(x) { + if (!mapSize || !x || 'object' != typeof x) return !1; + try { + mapSize.call(x); + try { + setSize.call(x); + } catch (s) { + return !0; + } + return x instanceof Map; + } catch (e) {} + return !1; + })(obj) + ) { + var mapParts = []; + return ( + mapForEach.call(obj, function (value, key) { + mapParts.push(inspect(key, obj, !0) + ' => ' + inspect(value, obj)); + }), + collectionOf('Map', mapSize.call(obj), mapParts, indent) + ); + } + if ( + (function isSet(x) { + if (!setSize || !x || 'object' != typeof x) return !1; + try { + setSize.call(x); + try { + mapSize.call(x); + } catch (m) { + return !0; + } + return x instanceof Set; + } catch (e) {} + return !1; + })(obj) + ) { + var setParts = []; + return ( + setForEach.call(obj, function (value) { + setParts.push(inspect(value, obj)); + }), + collectionOf('Set', setSize.call(obj), setParts, indent) + ); + } + if ( + (function isWeakMap(x) { + if (!weakMapHas || !x || 'object' != typeof x) return !1; + try { + weakMapHas.call(x, weakMapHas); + try { + weakSetHas.call(x, weakSetHas); + } catch (s) { + return !0; + } + return x instanceof WeakMap; + } catch (e) {} + return !1; + })(obj) + ) + return weakCollectionOf('WeakMap'); + if ( + (function isWeakSet(x) { + if (!weakSetHas || !x || 'object' != typeof x) return !1; + try { + weakSetHas.call(x, weakSetHas); + try { + weakMapHas.call(x, weakMapHas); + } catch (s) { + return !0; + } + return x instanceof WeakSet; + } catch (e) {} + return !1; + })(obj) + ) + return weakCollectionOf('WeakSet'); + if ( + (function isWeakRef(x) { + if (!weakRefDeref || !x || 'object' != typeof x) return !1; + try { + return weakRefDeref.call(x), !0; + } catch (e) {} + return !1; + })(obj) + ) + return weakCollectionOf('WeakRef'); + if ( + (function isNumber(obj) { + return !('[object Number]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + })(obj) + ) + return markBoxed(inspect(Number(obj))); + if ( + (function isBigInt(obj) { + if (!obj || 'object' != typeof obj || !bigIntValueOf) return !1; + try { + return bigIntValueOf.call(obj), !0; + } catch (e) {} + return !1; + })(obj) + ) + return markBoxed(inspect(bigIntValueOf.call(obj))); + if ( + (function isBoolean(obj) { + return !( + '[object Boolean]' !== toStr(obj) || + (toStringTag && 'object' == typeof obj && toStringTag in obj) + ); + })(obj) + ) + return markBoxed(booleanValueOf.call(obj)); + if ( + (function isString(obj) { + return !('[object String]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + })(obj) + ) + return markBoxed(inspect(String(obj))); + if ( + !(function isDate(obj) { + return !('[object Date]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + })(obj) && + !(function isRegExp(obj) { + return !('[object RegExp]' !== toStr(obj) || (toStringTag && 'object' == typeof obj && toStringTag in obj)); + })(obj) + ) { + var ys = arrObjKeys(obj, inspect), + isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object, + protoTag = obj instanceof Object ? '' : 'null prototype', + stringTag = + !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj + ? toStr(obj).slice(8, -1) + : protoTag + ? 'Object' + : '', + tag = + (isPlainObject || 'function' != typeof obj.constructor + ? '' + : obj.constructor.name + ? obj.constructor.name + ' ' + : '') + + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : ''); + return 0 === ys.length + ? tag + '{}' + : indent + ? tag + '{' + indentedJoin(ys, indent) + '}' + : tag + '{ ' + ys.join(', ') + ' }'; + } + return String(obj); + }; + var hasOwn = + Object.prototype.hasOwnProperty || + function (key) { + return key in this; + }; + function has(obj, key) { + return hasOwn.call(obj, key); + } + function toStr(obj) { + return objectToString.call(obj); + } + function indexOf(xs, x) { + if (xs.indexOf) return xs.indexOf(x); + for (var i = 0, l = xs.length; i < l; i++) if (xs[i] === x) return i; + return -1; + } + function inspectString(str, opts) { + if (str.length > opts.maxStringLength) { + var remaining = str.length - opts.maxStringLength, + trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); + return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer; + } + return wrapQuotes(str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte), 'single', opts); + } + function lowbyte(c) { + var n = c.charCodeAt(0), + x = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[n]; + return x ? '\\' + x : '\\x' + (n < 16 ? '0' : '') + n.toString(16).toUpperCase(); + } + function markBoxed(str) { + return 'Object(' + str + ')'; + } + function weakCollectionOf(type) { + return type + ' { ? }'; + } + function collectionOf(type, size, entries, indent) { + return type + ' (' + size + ') {' + (indent ? indentedJoin(entries, indent) : entries.join(', ')) + '}'; + } + function indentedJoin(xs, indent) { + if (0 === xs.length) return ''; + var lineJoiner = '\n' + indent.prev + indent.base; + return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev; + } + function arrObjKeys(obj, inspect) { + var isArr = isArray(obj), + xs = []; + if (isArr) { + xs.length = obj.length; + for (var i = 0; i < obj.length; i++) xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; + } + var symMap, + syms = 'function' == typeof gOPS ? gOPS(obj) : []; + if (hasShammedSymbols) { + symMap = {}; + for (var k = 0; k < syms.length; k++) symMap['$' + syms[k]] = syms[k]; + } + for (var key in obj) + has(obj, key) && + ((isArr && String(Number(key)) === key && key < obj.length) || + (hasShammedSymbols && symMap['$' + key] instanceof Symbol) || + (/[^\w$]/.test(key) + ? xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)) + : xs.push(key + ': ' + inspect(obj[key], obj)))); + if ('function' == typeof gOPS) + for (var j = 0; j < syms.length; j++) + isEnumerable.call(obj, syms[j]) && xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); + return xs; + } + }, + 75691: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var keysShim; + if (!Object.keys) { + var has = Object.prototype.hasOwnProperty, + toStr = Object.prototype.toString, + isArgs = __webpack_require__(30801), + isEnumerable = Object.prototype.propertyIsEnumerable, + hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'), + hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'), + dontEnums = [ + 'toString', + 'toLocaleString', + 'valueOf', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'constructor', + ], + equalsConstructorPrototype = function (o) { + var ctor = o.constructor; + return ctor && ctor.prototype === o; + }, + excludedKeys = { + $applicationCache: !0, + $console: !0, + $external: !0, + $frame: !0, + $frameElement: !0, + $frames: !0, + $innerHeight: !0, + $innerWidth: !0, + $onmozfullscreenchange: !0, + $onmozfullscreenerror: !0, + $outerHeight: !0, + $outerWidth: !0, + $pageXOffset: !0, + $pageYOffset: !0, + $parent: !0, + $scrollLeft: !0, + $scrollTop: !0, + $scrollX: !0, + $scrollY: !0, + $self: !0, + $webkitIndexedDB: !0, + $webkitStorageInfo: !0, + $window: !0, + }, + hasAutomationEqualityBug = (function () { + if ('undefined' == typeof window) return !1; + for (var k in window) + try { + if (!excludedKeys['$' + k] && has.call(window, k) && null !== window[k] && 'object' == typeof window[k]) + try { + equalsConstructorPrototype(window[k]); + } catch (e) { + return !0; + } + } catch (e) { + return !0; + } + return !1; + })(); + keysShim = function keys(object) { + var isObject = null !== object && 'object' == typeof object, + isFunction = '[object Function]' === toStr.call(object), + isArguments = isArgs(object), + isString = isObject && '[object String]' === toStr.call(object), + theKeys = []; + if (!isObject && !isFunction && !isArguments) throw new TypeError('Object.keys called on a non-object'); + var skipProto = hasProtoEnumBug && isFunction; + if (isString && object.length > 0 && !has.call(object, 0)) + for (var i = 0; i < object.length; ++i) theKeys.push(String(i)); + if (isArguments && object.length > 0) for (var j = 0; j < object.length; ++j) theKeys.push(String(j)); + else + for (var name in object) + (skipProto && 'prototype' === name) || !has.call(object, name) || theKeys.push(String(name)); + if (hasDontEnumBug) + for ( + var skipConstructor = (function (o) { + if ('undefined' == typeof window || !hasAutomationEqualityBug) return equalsConstructorPrototype(o); + try { + return equalsConstructorPrototype(o); + } catch (e) { + return !1; + } + })(object), + k = 0; + k < dontEnums.length; + ++k + ) + (skipConstructor && 'constructor' === dontEnums[k]) || + !has.call(object, dontEnums[k]) || + theKeys.push(dontEnums[k]); + return theKeys; + }; + } + module.exports = keysShim; + }, + 33464: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var slice = Array.prototype.slice, + isArgs = __webpack_require__(30801), + origKeys = Object.keys, + keysShim = origKeys + ? function keys(o) { + return origKeys(o); + } + : __webpack_require__(75691), + originalKeys = Object.keys; + (keysShim.shim = function shimObjectKeys() { + if (Object.keys) { + var keysWorksWithArguments = (function () { + var args = Object.keys(arguments); + return args && args.length === arguments.length; + })(1, 2); + keysWorksWithArguments || + (Object.keys = function keys(object) { + return isArgs(object) ? originalKeys(slice.call(object)) : originalKeys(object); + }); + } else Object.keys = keysShim; + return Object.keys || keysShim; + }), + (module.exports = keysShim); + }, + 30801: module => { + 'use strict'; + var toStr = Object.prototype.toString; + module.exports = function isArguments(value) { + var str = toStr.call(value), + isArgs = '[object Arguments]' === str; + return ( + isArgs || + (isArgs = + '[object Array]' !== str && + null !== value && + 'object' == typeof value && + 'number' == typeof value.length && + value.length >= 0 && + '[object Function]' === toStr.call(value.callee)), + isArgs + ); + }; + }, + 31968: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var RequireObjectCoercible = __webpack_require__(27004), + callBound = __webpack_require__(62680), + $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'), + $push = callBound('Array.prototype.push'); + module.exports = function entries(O) { + var obj = RequireObjectCoercible(O), + entrys = []; + for (var key in obj) $isEnumerable(obj, key) && $push(entrys, [key, obj[key]]); + return entrys; + }; + }, + 554: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(31968); + module.exports = function getPolyfill() { + return 'function' == typeof Object.entries ? Object.entries : implementation; + }; + }, + 30660: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getPolyfill = __webpack_require__(554), + define = __webpack_require__(14926); + module.exports = function shimEntries() { + var polyfill = getPolyfill(); + return ( + define(Object, { entries: polyfill }, { + entries: function testEntries() { + return Object.entries !== polyfill; + }, + }), + polyfill + ); + }; + }, + 79282: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(57522)(); + }, + 43581: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var AddEntriesFromIterable = __webpack_require__(97013), + CreateDataPropertyOrThrow = __webpack_require__(23412), + RequireObjectCoercible = __webpack_require__(27004), + ToPropertyKey = __webpack_require__(17902), + adder = function addDataProperty(key, value) { + var propertyKey = ToPropertyKey(key); + CreateDataPropertyOrThrow(this, propertyKey, value); + }; + module.exports = function fromEntries(iterable) { + return RequireObjectCoercible(iterable), AddEntriesFromIterable({}, iterable, adder); + }; + }, + 98221: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(43581); + module.exports = function getPolyfill() { + return 'function' == typeof Object.fromEntries ? Object.fromEntries : implementation; + }; + }, + 57522: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getPolyfill = __webpack_require__(98221), + define = __webpack_require__(14926); + module.exports = function shimEntries() { + var polyfill = getPolyfill(); + return ( + define(Object, { fromEntries: polyfill }, { + fromEntries: function testEntries() { + return Object.fromEntries !== polyfill; + }, + }), + polyfill + ); + }; + }, + 12977: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ES = __webpack_require__(106), + defineProperty = Object.defineProperty, + getDescriptor = Object.getOwnPropertyDescriptor, + getOwnNames = Object.getOwnPropertyNames, + getSymbols = Object.getOwnPropertySymbols, + concat = Function.call.bind(Array.prototype.concat), + reduce = Function.call.bind(Array.prototype.reduce), + getAll = getSymbols + ? function (obj) { + return concat(getOwnNames(obj), getSymbols(obj)); + } + : getOwnNames, + isES5 = ES.IsCallable(getDescriptor) && ES.IsCallable(getOwnNames); + module.exports = function getOwnPropertyDescriptors(value) { + if ((ES.RequireObjectCoercible(value), !isES5)) + throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor'); + var O = ES.ToObject(value); + return reduce( + getAll(O), + function (acc, key) { + var descriptor = getDescriptor(O, key); + return ( + void 0 !== descriptor && + (function put(obj, prop, val) { + defineProperty && prop in obj + ? defineProperty(obj, prop, { configurable: !0, enumerable: !0, value: val, writable: !0 }) + : (obj[prop] = val); + })(acc, key, descriptor), + acc + ); + }, + {}, + ); + }; + }, + 86720: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(12977); + module.exports = function getPolyfill() { + return 'function' == typeof Object.getOwnPropertyDescriptors + ? Object.getOwnPropertyDescriptors + : implementation; + }; + }, + 11325: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getPolyfill = __webpack_require__(86720), + define = __webpack_require__(14926); + module.exports = function shimGetOwnPropertyDescriptors() { + var polyfill = getPolyfill(); + return ( + define(Object, { getOwnPropertyDescriptors: polyfill }, { + getOwnPropertyDescriptors: function () { + return Object.getOwnPropertyDescriptors !== polyfill; + }, + }), + polyfill + ); + }; + }, + 63177: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var RequireObjectCoercible = __webpack_require__(27004), + callBound = __webpack_require__(62680), + $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'), + $push = callBound('Array.prototype.push'); + module.exports = function values(O) { + var obj = RequireObjectCoercible(O), + vals = []; + for (var key in obj) $isEnumerable(obj, key) && $push(vals, obj[key]); + return vals; + }; + }, + 44237: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var implementation = __webpack_require__(63177); + module.exports = function getPolyfill() { + return 'function' == typeof Object.values ? Object.values : implementation; + }; + }, + 88607: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getPolyfill = __webpack_require__(44237), + define = __webpack_require__(14926); + module.exports = function shimValues() { + var polyfill = getPolyfill(); + return ( + define(Object, { values: polyfill }, { + values: function testValues() { + return Object.values !== polyfill; + }, + }), + polyfill + ); + }; + }, + 1039: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.d(__webpack_exports__, { + _j: () => curriedDarken, + $n: () => curriedLighten, + jb: () => curriedOpacify, + m4: () => rgba, + DZ: () => curriedTransparentize, + }); + var esm_extends = __webpack_require__(7560), + assertThisInitialized = __webpack_require__(73989), + inheritsLoose = __webpack_require__(35307), + getPrototypeOf = __webpack_require__(75630), + setPrototypeOf = __webpack_require__(74938); + function _isNativeReflectConstruct() { + if ('undefined' == typeof Reflect || !Reflect.construct) return !1; + if (Reflect.construct.sham) return !1; + if ('function' == typeof Proxy) return !0; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; + } catch (e) { + return !1; + } + } + function _construct(Parent, args, Class) { + return ( + (_construct = _isNativeReflectConstruct() + ? Reflect.construct + : function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var instance = new (Function.bind.apply(Parent, a))(); + return Class && (0, setPrototypeOf.Z)(instance, Class.prototype), instance; + }), + _construct.apply(null, arguments) + ); + } + function _wrapNativeSuper(Class) { + var _cache = 'function' == typeof Map ? new Map() : void 0; + return ( + (_wrapNativeSuper = function _wrapNativeSuper(Class) { + if ( + null === Class || + !(function _isNativeFunction(fn) { + return -1 !== Function.toString.call(fn).indexOf('[native code]'); + })(Class) + ) + return Class; + if ('function' != typeof Class) throw new TypeError('Super expression must either be null or a function'); + if (void 0 !== _cache) { + if (_cache.has(Class)) return _cache.get(Class); + _cache.set(Class, Wrapper); + } + function Wrapper() { + return _construct(Class, arguments, (0, getPrototypeOf.Z)(this).constructor); + } + return ( + (Wrapper.prototype = Object.create(Class.prototype, { + constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 }, + })), + (0, setPrototypeOf.Z)(Wrapper, Class) + ); + }), + _wrapNativeSuper(Class) + ); + } + var ERRORS = { + 1: 'Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n', + 2: 'Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n', + 3: 'Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n', + 4: "Couldn't generate valid rgb string from %s, it returned %s.\n\n", + 5: "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n", + 6: 'Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n', + 7: 'Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n', + 8: 'Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n', + 9: 'Please provide a number of steps to the modularScale helper.\n\n', + 10: 'Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n', + 11: 'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n', + 12: 'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n', + 13: 'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n', + 14: 'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n', + 15: 'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n', + 16: 'You must provide a template to this method.\n\n', + 17: 'You passed an unsupported selector state to this method.\n\n', + 18: 'minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n', + 19: 'fromSize and toSize must be provided as stringified numbers with the same units.\n\n', + 20: 'expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n', + 21: 'expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n', + 22: 'expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n', + 23: 'fontFace expects a name of a font-family.\n\n', + 24: 'fontFace expects either the path to the font file(s) or a name of a local copy.\n\n', + 25: 'fontFace expects localFonts to be an array.\n\n', + 26: 'fontFace expects fileFormats to be an array.\n\n', + 27: 'radialGradient requries at least 2 color-stops to properly render.\n\n', + 28: 'Please supply a filename to retinaImage() as the first argument.\n\n', + 29: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", + 30: 'Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n', + 31: 'The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n', + 32: "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n", + 33: 'The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n', + 34: 'borderRadius expects a radius value as a string or number as the second argument.\n\n', + 35: 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n', + 36: 'Property must be a string value.\n\n', + 37: 'Syntax Error at %s.\n\n', + 38: 'Formula contains a function that needs parentheses at %s.\n\n', + 39: 'Formula is missing closing parenthesis at %s.\n\n', + 40: 'Formula has too many closing parentheses at %s.\n\n', + 41: 'All values in a formula must have the same unit or be unitless.\n\n', + 42: 'Please provide a number of steps to the modularScale helper.\n\n', + 43: 'Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n', + 44: 'Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n', + 45: 'Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n', + 46: 'Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n', + 47: 'minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n', + 48: 'fromSize and toSize must be provided as stringified numbers with the same units.\n\n', + 49: 'Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n', + 50: 'Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n', + 51: 'Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n', + 52: 'fontFace expects either the path to the font file(s) or a name of a local copy.\n\n', + 53: 'fontFace expects localFonts to be an array.\n\n', + 54: 'fontFace expects fileFormats to be an array.\n\n', + 55: 'fontFace expects a name of a font-family.\n\n', + 56: 'linearGradient requries at least 2 color-stops to properly render.\n\n', + 57: 'radialGradient requries at least 2 color-stops to properly render.\n\n', + 58: 'Please supply a filename to retinaImage() as the first argument.\n\n', + 59: "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", + 60: 'Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n', + 61: 'Property must be a string value.\n\n', + 62: 'borderRadius expects a radius value as a string or number as the second argument.\n\n', + 63: 'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n', + 64: 'The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n', + 65: "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n", + 66: 'The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n', + 67: 'You must provide a template to this method.\n\n', + 68: 'You passed an unsupported selector state to this method.\n\n', + 69: 'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n', + 70: 'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n', + 71: 'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n', + 72: 'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n', + 73: 'Please provide a valid CSS variable.\n\n', + 74: 'CSS variable not found and no default was provided.\n\n', + 75: 'important requires a valid style object, got a %s instead.\n\n', + 76: 'fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n', + 77: 'remToPx expects a value in "rem" but you provided it in "%s".\n\n', + 78: 'base must be set in "px" or "%" but you set it in "%s".\n', + }; + function format() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) + args[_key] = arguments[_key]; + var c, + a = args[0], + b = []; + for (c = 1; c < args.length; c += 1) b.push(args[c]); + return ( + b.forEach(function (d) { + a = a.replace(/%[a-z]/, d); + }), + a + ); + } + var PolishedError = (function (_Error) { + function PolishedError(code) { + for ( + var _this, _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) + args[_key2 - 1] = arguments[_key2]; + return ( + (_this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this), + (0, assertThisInitialized.Z)(_this) + ); + } + return (0, inheritsLoose.Z)(PolishedError, _Error), PolishedError; + })(_wrapNativeSuper(Error)); + function colorToInt(color) { + return Math.round(255 * color); + } + function convertToInt(red, green, blue) { + return colorToInt(red) + ',' + colorToInt(green) + ',' + colorToInt(blue); + } + function hslToRgb(hue, saturation, lightness, convert) { + if ((void 0 === convert && (convert = convertToInt), 0 === saturation)) + return convert(lightness, lightness, lightness); + var huePrime = (((hue % 360) + 360) % 360) / 60, + chroma = (1 - Math.abs(2 * lightness - 1)) * saturation, + secondComponent = chroma * (1 - Math.abs((huePrime % 2) - 1)), + red = 0, + green = 0, + blue = 0; + huePrime >= 0 && huePrime < 1 + ? ((red = chroma), (green = secondComponent)) + : huePrime >= 1 && huePrime < 2 + ? ((red = secondComponent), (green = chroma)) + : huePrime >= 2 && huePrime < 3 + ? ((green = chroma), (blue = secondComponent)) + : huePrime >= 3 && huePrime < 4 + ? ((green = secondComponent), (blue = chroma)) + : huePrime >= 4 && huePrime < 5 + ? ((red = secondComponent), (blue = chroma)) + : huePrime >= 5 && huePrime < 6 && ((red = chroma), (blue = secondComponent)); + var lightnessModification = lightness - chroma / 2; + return convert(red + lightnessModification, green + lightnessModification, blue + lightnessModification); + } + var namedColorMap = { + aliceblue: 'f0f8ff', + antiquewhite: 'faebd7', + aqua: '00ffff', + aquamarine: '7fffd4', + azure: 'f0ffff', + beige: 'f5f5dc', + bisque: 'ffe4c4', + black: '000', + blanchedalmond: 'ffebcd', + blue: '0000ff', + blueviolet: '8a2be2', + brown: 'a52a2a', + burlywood: 'deb887', + cadetblue: '5f9ea0', + chartreuse: '7fff00', + chocolate: 'd2691e', + coral: 'ff7f50', + cornflowerblue: '6495ed', + cornsilk: 'fff8dc', + crimson: 'dc143c', + cyan: '00ffff', + darkblue: '00008b', + darkcyan: '008b8b', + darkgoldenrod: 'b8860b', + darkgray: 'a9a9a9', + darkgreen: '006400', + darkgrey: 'a9a9a9', + darkkhaki: 'bdb76b', + darkmagenta: '8b008b', + darkolivegreen: '556b2f', + darkorange: 'ff8c00', + darkorchid: '9932cc', + darkred: '8b0000', + darksalmon: 'e9967a', + darkseagreen: '8fbc8f', + darkslateblue: '483d8b', + darkslategray: '2f4f4f', + darkslategrey: '2f4f4f', + darkturquoise: '00ced1', + darkviolet: '9400d3', + deeppink: 'ff1493', + deepskyblue: '00bfff', + dimgray: '696969', + dimgrey: '696969', + dodgerblue: '1e90ff', + firebrick: 'b22222', + floralwhite: 'fffaf0', + forestgreen: '228b22', + fuchsia: 'ff00ff', + gainsboro: 'dcdcdc', + ghostwhite: 'f8f8ff', + gold: 'ffd700', + goldenrod: 'daa520', + gray: '808080', + green: '008000', + greenyellow: 'adff2f', + grey: '808080', + honeydew: 'f0fff0', + hotpink: 'ff69b4', + indianred: 'cd5c5c', + indigo: '4b0082', + ivory: 'fffff0', + khaki: 'f0e68c', + lavender: 'e6e6fa', + lavenderblush: 'fff0f5', + lawngreen: '7cfc00', + lemonchiffon: 'fffacd', + lightblue: 'add8e6', + lightcoral: 'f08080', + lightcyan: 'e0ffff', + lightgoldenrodyellow: 'fafad2', + lightgray: 'd3d3d3', + lightgreen: '90ee90', + lightgrey: 'd3d3d3', + lightpink: 'ffb6c1', + lightsalmon: 'ffa07a', + lightseagreen: '20b2aa', + lightskyblue: '87cefa', + lightslategray: '789', + lightslategrey: '789', + lightsteelblue: 'b0c4de', + lightyellow: 'ffffe0', + lime: '0f0', + limegreen: '32cd32', + linen: 'faf0e6', + magenta: 'f0f', + maroon: '800000', + mediumaquamarine: '66cdaa', + mediumblue: '0000cd', + mediumorchid: 'ba55d3', + mediumpurple: '9370db', + mediumseagreen: '3cb371', + mediumslateblue: '7b68ee', + mediumspringgreen: '00fa9a', + mediumturquoise: '48d1cc', + mediumvioletred: 'c71585', + midnightblue: '191970', + mintcream: 'f5fffa', + mistyrose: 'ffe4e1', + moccasin: 'ffe4b5', + navajowhite: 'ffdead', + navy: '000080', + oldlace: 'fdf5e6', + olive: '808000', + olivedrab: '6b8e23', + orange: 'ffa500', + orangered: 'ff4500', + orchid: 'da70d6', + palegoldenrod: 'eee8aa', + palegreen: '98fb98', + paleturquoise: 'afeeee', + palevioletred: 'db7093', + papayawhip: 'ffefd5', + peachpuff: 'ffdab9', + peru: 'cd853f', + pink: 'ffc0cb', + plum: 'dda0dd', + powderblue: 'b0e0e6', + purple: '800080', + rebeccapurple: '639', + red: 'f00', + rosybrown: 'bc8f8f', + royalblue: '4169e1', + saddlebrown: '8b4513', + salmon: 'fa8072', + sandybrown: 'f4a460', + seagreen: '2e8b57', + seashell: 'fff5ee', + sienna: 'a0522d', + silver: 'c0c0c0', + skyblue: '87ceeb', + slateblue: '6a5acd', + slategray: '708090', + slategrey: '708090', + snow: 'fffafa', + springgreen: '00ff7f', + steelblue: '4682b4', + tan: 'd2b48c', + teal: '008080', + thistle: 'd8bfd8', + tomato: 'ff6347', + turquoise: '40e0d0', + violet: 'ee82ee', + wheat: 'f5deb3', + white: 'fff', + whitesmoke: 'f5f5f5', + yellow: 'ff0', + yellowgreen: '9acd32', + }; + var hexRegex = /^#[a-fA-F0-9]{6}$/, + hexRgbaRegex = /^#[a-fA-F0-9]{8}$/, + reducedHexRegex = /^#[a-fA-F0-9]{3}$/, + reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/, + rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i, + rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i, + hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, + hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i; + function parseToRgb(color) { + if ('string' != typeof color) throw new PolishedError(3); + var normalizedColor = (function nameToHex(color) { + if ('string' != typeof color) return color; + var normalizedColorName = color.toLowerCase(); + return namedColorMap[normalizedColorName] ? '#' + namedColorMap[normalizedColorName] : color; + })(color); + if (normalizedColor.match(hexRegex)) + return { + red: parseInt('' + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt('' + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt('' + normalizedColor[5] + normalizedColor[6], 16), + }; + if (normalizedColor.match(hexRgbaRegex)) { + var alpha = parseFloat((parseInt('' + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2)); + return { + red: parseInt('' + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt('' + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt('' + normalizedColor[5] + normalizedColor[6], 16), + alpha, + }; + } + if (normalizedColor.match(reducedHexRegex)) + return { + red: parseInt('' + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt('' + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt('' + normalizedColor[3] + normalizedColor[3], 16), + }; + if (normalizedColor.match(reducedRgbaHexRegex)) { + var _alpha = parseFloat((parseInt('' + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2)); + return { + red: parseInt('' + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt('' + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt('' + normalizedColor[3] + normalizedColor[3], 16), + alpha: _alpha, + }; + } + var rgbMatched = rgbRegex.exec(normalizedColor); + if (rgbMatched) + return { + red: parseInt('' + rgbMatched[1], 10), + green: parseInt('' + rgbMatched[2], 10), + blue: parseInt('' + rgbMatched[3], 10), + }; + var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50)); + if (rgbaMatched) + return { + red: parseInt('' + rgbaMatched[1], 10), + green: parseInt('' + rgbaMatched[2], 10), + blue: parseInt('' + rgbaMatched[3], 10), + alpha: parseFloat('' + rgbaMatched[4]), + }; + var hslMatched = hslRegex.exec(normalizedColor); + if (hslMatched) { + var rgbColorString = + 'rgb(' + + hslToRgb( + parseInt('' + hslMatched[1], 10), + parseInt('' + hslMatched[2], 10) / 100, + parseInt('' + hslMatched[3], 10) / 100, + ) + + ')', + hslRgbMatched = rgbRegex.exec(rgbColorString); + if (!hslRgbMatched) throw new PolishedError(4, normalizedColor, rgbColorString); + return { + red: parseInt('' + hslRgbMatched[1], 10), + green: parseInt('' + hslRgbMatched[2], 10), + blue: parseInt('' + hslRgbMatched[3], 10), + }; + } + var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50)); + if (hslaMatched) { + var _rgbColorString = + 'rgb(' + + hslToRgb( + parseInt('' + hslaMatched[1], 10), + parseInt('' + hslaMatched[2], 10) / 100, + parseInt('' + hslaMatched[3], 10) / 100, + ) + + ')', + _hslRgbMatched = rgbRegex.exec(_rgbColorString); + if (!_hslRgbMatched) throw new PolishedError(4, normalizedColor, _rgbColorString); + return { + red: parseInt('' + _hslRgbMatched[1], 10), + green: parseInt('' + _hslRgbMatched[2], 10), + blue: parseInt('' + _hslRgbMatched[3], 10), + alpha: parseFloat('' + hslaMatched[4]), + }; + } + throw new PolishedError(5); + } + function parseToHsl(color) { + return (function rgbToHsl(color) { + var hue, + red = color.red / 255, + green = color.green / 255, + blue = color.blue / 255, + max = Math.max(red, green, blue), + min = Math.min(red, green, blue), + lightness = (max + min) / 2; + if (max === min) + return void 0 !== color.alpha + ? { hue: 0, saturation: 0, lightness, alpha: color.alpha } + : { hue: 0, saturation: 0, lightness }; + var delta = max - min, + saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min); + switch (max) { + case red: + hue = (green - blue) / delta + (green < blue ? 6 : 0); + break; + case green: + hue = (blue - red) / delta + 2; + break; + default: + hue = (red - green) / delta + 4; + } + return ( + (hue *= 60), + void 0 !== color.alpha ? { hue, saturation, lightness, alpha: color.alpha } : { hue, saturation, lightness } + ); + })(parseToRgb(color)); + } + var reduceHexValue = function reduceHexValue(value) { + return 7 === value.length && value[1] === value[2] && value[3] === value[4] && value[5] === value[6] + ? '#' + value[1] + value[3] + value[5] + : value; + }; + function numberToHex(value) { + var hex = value.toString(16); + return 1 === hex.length ? '0' + hex : hex; + } + function colorToHex(color) { + return numberToHex(Math.round(255 * color)); + } + function convertToHex(red, green, blue) { + return reduceHexValue('#' + colorToHex(red) + colorToHex(green) + colorToHex(blue)); + } + function hslToHex(hue, saturation, lightness) { + return hslToRgb(hue, saturation, lightness, convertToHex); + } + function hsl(value, saturation, lightness) { + if ('number' == typeof value && 'number' == typeof saturation && 'number' == typeof lightness) + return hslToHex(value, saturation, lightness); + if ('object' == typeof value && void 0 === saturation && void 0 === lightness) + return hslToHex(value.hue, value.saturation, value.lightness); + throw new PolishedError(1); + } + function hsla(value, saturation, lightness, alpha) { + if ( + 'number' == typeof value && + 'number' == typeof saturation && + 'number' == typeof lightness && + 'number' == typeof alpha + ) + return alpha >= 1 + ? hslToHex(value, saturation, lightness) + : 'rgba(' + hslToRgb(value, saturation, lightness) + ',' + alpha + ')'; + if ('object' == typeof value && void 0 === saturation && void 0 === lightness && void 0 === alpha) + return value.alpha >= 1 + ? hslToHex(value.hue, value.saturation, value.lightness) + : 'rgba(' + hslToRgb(value.hue, value.saturation, value.lightness) + ',' + value.alpha + ')'; + throw new PolishedError(2); + } + function rgb(value, green, blue) { + if ('number' == typeof value && 'number' == typeof green && 'number' == typeof blue) + return reduceHexValue('#' + numberToHex(value) + numberToHex(green) + numberToHex(blue)); + if ('object' == typeof value && void 0 === green && void 0 === blue) + return reduceHexValue('#' + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue)); + throw new PolishedError(6); + } + function rgba(firstValue, secondValue, thirdValue, fourthValue) { + if ('string' == typeof firstValue && 'number' == typeof secondValue) { + var rgbValue = parseToRgb(firstValue); + return 'rgba(' + rgbValue.red + ',' + rgbValue.green + ',' + rgbValue.blue + ',' + secondValue + ')'; + } + if ( + 'number' == typeof firstValue && + 'number' == typeof secondValue && + 'number' == typeof thirdValue && + 'number' == typeof fourthValue + ) + return fourthValue >= 1 + ? rgb(firstValue, secondValue, thirdValue) + : 'rgba(' + firstValue + ',' + secondValue + ',' + thirdValue + ',' + fourthValue + ')'; + if ('object' == typeof firstValue && void 0 === secondValue && void 0 === thirdValue && void 0 === fourthValue) + return firstValue.alpha >= 1 + ? rgb(firstValue.red, firstValue.green, firstValue.blue) + : 'rgba(' + firstValue.red + ',' + firstValue.green + ',' + firstValue.blue + ',' + firstValue.alpha + ')'; + throw new PolishedError(7); + } + function toColorString(color) { + if ('object' != typeof color) throw new PolishedError(8); + if ( + (function isRgba(color) { + return ( + 'number' == typeof color.red && + 'number' == typeof color.green && + 'number' == typeof color.blue && + 'number' == typeof color.alpha + ); + })(color) + ) + return rgba(color); + if ( + (function isRgb(color) { + return ( + 'number' == typeof color.red && + 'number' == typeof color.green && + 'number' == typeof color.blue && + ('number' != typeof color.alpha || void 0 === color.alpha) + ); + })(color) + ) + return rgb(color); + if ( + (function isHsla(color) { + return ( + 'number' == typeof color.hue && + 'number' == typeof color.saturation && + 'number' == typeof color.lightness && + 'number' == typeof color.alpha + ); + })(color) + ) + return hsla(color); + if ( + (function isHsl(color) { + return ( + 'number' == typeof color.hue && + 'number' == typeof color.saturation && + 'number' == typeof color.lightness && + ('number' != typeof color.alpha || void 0 === color.alpha) + ); + })(color) + ) + return hsl(color); + throw new PolishedError(8); + } + function curried(f, length, acc) { + return function fn() { + var combined = acc.concat(Array.prototype.slice.call(arguments)); + return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined); + }; + } + function curry(f) { + return curried(f, f.length, []); + } + function guard(lowerBoundary, upperBoundary, value) { + return Math.max(lowerBoundary, Math.min(upperBoundary, value)); + } + function darken(amount, color) { + if ('transparent' === color) return color; + var hslColor = parseToHsl(color); + return toColorString( + (0, esm_extends.Z)({}, hslColor, { lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)) }), + ); + } + var curriedDarken = curry(darken); + function lighten(amount, color) { + if ('transparent' === color) return color; + var hslColor = parseToHsl(color); + return toColorString( + (0, esm_extends.Z)({}, hslColor, { lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)) }), + ); + } + var curriedLighten = curry(lighten); + function opacify(amount, color) { + if ('transparent' === color) return color; + var parsedColor = parseToRgb(color), + alpha = 'number' == typeof parsedColor.alpha ? parsedColor.alpha : 1; + return rgba( + (0, esm_extends.Z)({}, parsedColor, { alpha: guard(0, 1, (100 * alpha + 100 * parseFloat(amount)) / 100) }), + ); + } + var curriedOpacify = curry(opacify); + function transparentize(amount, color) { + if ('transparent' === color) return color; + var parsedColor = parseToRgb(color), + alpha = 'number' == typeof parsedColor.alpha ? parsedColor.alpha : 1; + return rgba( + (0, esm_extends.Z)({}, parsedColor, { + alpha: guard(0, 1, +(100 * alpha - 100 * parseFloat(amount)).toFixed(2) / 100), + }), + ); + } + var curriedTransparentize = curry(transparentize); + }, + 34406: module => { + var cachedSetTimeout, + cachedClearTimeout, + process = (module.exports = {}); + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); + } + function defaultClearTimeout() { + throw new Error('clearTimeout has not been defined'); + } + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) + return (cachedSetTimeout = setTimeout), setTimeout(fun, 0); + try { + return cachedSetTimeout(fun, 0); + } catch (e) { + try { + return cachedSetTimeout.call(null, fun, 0); + } catch (e) { + return cachedSetTimeout.call(this, fun, 0); + } + } + } + !(function () { + try { + cachedSetTimeout = 'function' == typeof setTimeout ? setTimeout : defaultSetTimout; + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + cachedClearTimeout = 'function' == typeof clearTimeout ? clearTimeout : defaultClearTimeout; + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + })(); + var currentQueue, + queue = [], + draining = !1, + queueIndex = -1; + function cleanUpNextTick() { + draining && + currentQueue && + ((draining = !1), + currentQueue.length ? (queue = currentQueue.concat(queue)) : (queueIndex = -1), + queue.length && drainQueue()); + } + function drainQueue() { + if (!draining) { + var timeout = runTimeout(cleanUpNextTick); + draining = !0; + for (var len = queue.length; len; ) { + for (currentQueue = queue, queue = []; ++queueIndex < len; ) currentQueue && currentQueue[queueIndex].run(); + (queueIndex = -1), (len = queue.length); + } + (currentQueue = null), + (draining = !1), + (function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) + return (cachedClearTimeout = clearTimeout), clearTimeout(marker); + try { + return cachedClearTimeout(marker); + } catch (e) { + try { + return cachedClearTimeout.call(null, marker); + } catch (e) { + return cachedClearTimeout.call(this, marker); + } + } + })(timeout); + } + } + function Item(fun, array) { + (this.fun = fun), (this.array = array); + } + function noop() {} + (process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i]; + queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); + }), + (Item.prototype.run = function () { + this.fun.apply(null, this.array); + }), + (process.title = 'browser'), + (process.browser = !0), + (process.env = {}), + (process.argv = []), + (process.version = ''), + (process.versions = {}), + (process.on = noop), + (process.addListener = noop), + (process.once = noop), + (process.off = noop), + (process.removeListener = noop), + (process.removeAllListeners = noop), + (process.emit = noop), + (process.prependListener = noop), + (process.prependOnceListener = noop), + (process.listeners = function (name) { + return []; + }), + (process.binding = function (name) { + throw new Error('process.binding is not supported'); + }), + (process.cwd = function () { + return '/'; + }), + (process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); + }), + (process.umask = function () { + return 0; + }); + }, + 93821: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(64087)(); + }, + 42714: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(9878)(); + var ES = __webpack_require__(1600), + getIntrinsic = __webpack_require__(85945), + bind = __webpack_require__(4090), + all = bind.call(Function.call, getIntrinsic('%Promise_all%')), + reject = bind.call(Function.call, getIntrinsic('%Promise_reject%')); + module.exports = function allSettled(iterable) { + var C = this; + if ('Object' !== ES.Type(C)) throw new TypeError('`this` value must be an object'); + return all( + C, + Array.from(iterable, function (item) { + var itemPromise = ES.PromiseResolve(C, item); + try { + return itemPromise.then( + function (value) { + return { status: 'fulfilled', value }; + }, + function (reason) { + return { status: 'rejected', reason }; + }, + ); + } catch (e) { + return reject(C, e); + } + }), + ); + }; + }, + 11533: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var requirePromise = __webpack_require__(9878), + implementation = __webpack_require__(42714); + module.exports = function getPolyfill() { + return requirePromise(), 'function' == typeof Promise.allSettled ? Promise.allSettled : implementation; + }; + }, + 9878: module => { + 'use strict'; + module.exports = function requirePromise() { + if ('function' != typeof Promise) + throw new TypeError('`Promise.allSettled` requires a global `Promise` be available.'); + if ('function' != typeof Array.from) + throw new TypeError('`Promise.allSettled` requires `Array.from` be available.'); + }; + }, + 64087: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var requirePromise = __webpack_require__(9878), + getPolyfill = __webpack_require__(11533), + define = __webpack_require__(14926); + module.exports = function shimAllSettled() { + requirePromise(); + var polyfill = getPolyfill(); + return ( + define(Promise, { allSettled: polyfill }, { + allSettled: function testAllSettled() { + return Promise.allSettled !== polyfill; + }, + }), + polyfill + ); + }; + }, + 45481: (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(65574)(); + }, + 61386: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + __webpack_require__(57897)(); + var ES = __webpack_require__(106), + bind = __webpack_require__(4090), + promiseResolve = function PromiseResolve(C, value) { + return new C(function (resolve) { + resolve(value); + }); + }, + OriginalPromise = Promise, + then = bind.call(Function.call, OriginalPromise.prototype.then), + promiseFinally = function finally_(onFinally) { + then(this, null, function () {}); + var C = ES.SpeciesConstructor(this, OriginalPromise), + thenFinally = onFinally, + catchFinally = onFinally; + return ( + ES.IsCallable(onFinally) && + ((thenFinally = (function CreateThenFinally(C, onFinally) { + return function (value) { + var result = onFinally(); + return promiseResolve(C, result).then(function () { + return value; + }); + }; + })(C, onFinally)), + (catchFinally = (function CreateCatchFinally(C, onFinally) { + return function (reason) { + var result = onFinally(); + return promiseResolve(C, result).then(function () { + throw reason; + }); + }; + })(C, onFinally))), + this.then(thenFinally, catchFinally) + ); + }; + if (Object.getOwnPropertyDescriptor) { + var descriptor = Object.getOwnPropertyDescriptor(promiseFinally, 'name'); + descriptor && + descriptor.configurable && + Object.defineProperty(promiseFinally, 'name', { configurable: !0, value: 'finally' }); + } + module.exports = promiseFinally; + }, + 32887: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var requirePromise = __webpack_require__(57897), + implementation = __webpack_require__(61386); + module.exports = function getPolyfill() { + return ( + requirePromise(), 'function' == typeof Promise.prototype.finally ? Promise.prototype.finally : implementation + ); + }; + }, + 57897: module => { + 'use strict'; + module.exports = function requirePromise() { + if ('function' != typeof Promise) + throw new TypeError('`Promise.prototype.finally` requires a global `Promise` be available.'); + }; + }, + 65574: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var requirePromise = __webpack_require__(57897), + getPolyfill = __webpack_require__(32887), + define = __webpack_require__(14926); + module.exports = function shimPromiseFinally() { + requirePromise(); + var polyfill = getPolyfill(); + return ( + define(Promise.prototype, { finally: polyfill }, { + finally: function testFinally() { + return Promise.prototype.finally !== polyfill; + }, + }), + polyfill + ); + }; + }, + 92849: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var printWarning = function () {}, + ReactPropTypesSecret = __webpack_require__(23586), + loggedTypeFailures = {}, + has = Function.call.bind(Object.prototype.hasOwnProperty); + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + for (var typeSpecName in typeSpecs) + if (has(typeSpecs, typeSpecName)) { + var error; + try { + if ('function' != typeof typeSpecs[typeSpecName]) { + var err = Error( + (componentName || 'React class') + + ': ' + + location + + ' type `' + + typeSpecName + + '` is invalid; it must be a function, usually from the `prop-types` package, but received `' + + typeof typeSpecs[typeSpecName] + + '`.', + ); + throw ((err.name = 'Invariant Violation'), err); + } + error = typeSpecs[typeSpecName]( + values, + typeSpecName, + componentName, + location, + null, + ReactPropTypesSecret, + ); + } catch (ex) { + error = ex; + } + if ( + (!error || + error instanceof Error || + printWarning( + (componentName || 'React class') + + ': type specification of ' + + location + + ' `' + + typeSpecName + + '` is invalid; the type checker function must return `null` or an `Error` but returned a ' + + typeof error + + '. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).', + ), + error instanceof Error && !(error.message in loggedTypeFailures)) + ) { + loggedTypeFailures[error.message] = !0; + var stack = getStack ? getStack() : ''; + printWarning('Failed ' + location + ' type: ' + error.message + (null != stack ? stack : '')); + } + } + } + (printWarning = function (text) { + var message = 'Warning: ' + text; + 'undefined' != typeof console && console.error(message); + try { + throw new Error(message); + } catch (x) {} + }), + (checkPropTypes.resetWarningCache = function () { + loggedTypeFailures = {}; + }), + (module.exports = checkPropTypes); + }, + 5957: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var ReactIs = __webpack_require__(48570), + assign = __webpack_require__(37320), + ReactPropTypesSecret = __webpack_require__(23586), + checkPropTypes = __webpack_require__(92849), + has = Function.call.bind(Object.prototype.hasOwnProperty), + printWarning = function () {}; + function emptyFunctionThatReturnsNull() { + return null; + } + (printWarning = function (text) { + var message = 'Warning: ' + text; + 'undefined' != typeof console && console.error(message); + try { + throw new Error(message); + } catch (x) {} + }), + (module.exports = function (isValidElement, throwOnDirectAccess) { + var ITERATOR_SYMBOL = 'function' == typeof Symbol && Symbol.iterator; + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + any: (function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunctionThatReturnsNull); + })(), + arrayOf: function createArrayOfTypeChecker(typeChecker) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if ('function' != typeof typeChecker) + return new PropTypeError( + 'Property `' + + propFullName + + '` of component `' + + componentName + + '` has invalid PropType notation inside arrayOf.', + ); + var propValue = props[propName]; + if (!Array.isArray(propValue)) + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + getPropType(propValue) + + '` supplied to `' + + componentName + + '`, expected an array.', + ); + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker( + propValue, + i, + componentName, + location, + propFullName + '[' + i + ']', + ReactPropTypesSecret, + ); + if (error instanceof Error) return error; + } + return null; + }); + }, + element: (function createElementTypeChecker() { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + return isValidElement(propValue) + ? null + : new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + getPropType(propValue) + + '` supplied to `' + + componentName + + '`, expected a single ReactElement.', + ); + }); + })(), + elementType: (function createElementTypeTypeChecker() { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + return ReactIs.isValidElementType(propValue) + ? null + : new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + getPropType(propValue) + + '` supplied to `' + + componentName + + '`, expected a single ReactElement type.', + ); + }); + })(), + instanceOf: function createInstanceTypeChecker(expectedClass) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || '<>'; + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + (function getClassName(propValue) { + return propValue.constructor && propValue.constructor.name + ? propValue.constructor.name + : '<>'; + })(props[propName]) + + '` supplied to `' + + componentName + + '`, expected instance of `' + + expectedClassName + + '`.', + ); + } + return null; + }); + }, + node: (function createNodeChecker() { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + return isNode(props[propName]) + ? null + : new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` supplied to `' + + componentName + + '`, expected a ReactNode.', + ); + }); + })(), + objectOf: function createObjectOfTypeChecker(typeChecker) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if ('function' != typeof typeChecker) + return new PropTypeError( + 'Property `' + + propFullName + + '` of component `' + + componentName + + '` has invalid PropType notation inside objectOf.', + ); + var propValue = props[propName], + propType = getPropType(propValue); + if ('object' !== propType) + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + propType + + '` supplied to `' + + componentName + + '`, expected an object.', + ); + for (var key in propValue) + if (has(propValue, key)) { + var error = typeChecker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error instanceof Error) return error; + } + return null; + }); + }, + oneOf: function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) + return ( + printWarning( + arguments.length > 1 + ? 'Invalid arguments supplied to oneOf, expected an array, got ' + + arguments.length + + ' arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' + : 'Invalid argument supplied to oneOf, expected an array.', + ), + emptyFunctionThatReturnsNull + ); + function validate(props, propName, componentName, location, propFullName) { + for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) + if (is(propValue, expectedValues[i])) return null; + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { + return 'symbol' === getPreciseType(value) ? String(value) : value; + }); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of value `' + + String(propValue) + + '` supplied to `' + + componentName + + '`, expected one of ' + + valuesString + + '.', + ); + } + return createChainableTypeChecker(validate); + }, + oneOfType: function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) + return ( + printWarning('Invalid argument supplied to oneOfType, expected an instance of array.'), + emptyFunctionThatReturnsNull + ); + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if ('function' != typeof checker) + return ( + printWarning( + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but received ' + + getPostfixForTypeWarning(checker) + + ' at index ' + + i + + '.', + ), + emptyFunctionThatReturnsNull + ); + } + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) + if ( + null == + (0, arrayOfTypeCheckers[i])( + props, + propName, + componentName, + location, + propFullName, + ReactPropTypesSecret, + ) + ) + return null; + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` supplied to `' + componentName + '`.', + ); + }); + }, + shape: function createShapeTypeChecker(shapeTypes) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName], + propType = getPropType(propValue); + if ('object' !== propType) + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + propType + + '` supplied to `' + + componentName + + '`, expected `object`.', + ); + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (checker) { + var error = checker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error) return error; + } + } + return null; + }); + }, + exact: function createStrictShapeTypeChecker(shapeTypes) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName], + propType = getPropType(propValue); + if ('object' !== propType) + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + propType + + '` supplied to `' + + componentName + + '`, expected `object`.', + ); + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` key `' + + key + + '` supplied to `' + + componentName + + '`.\nBad object: ' + + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + + JSON.stringify(Object.keys(shapeTypes), null, ' '), + ); + var error = checker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error) return error; + } + return null; + }); + }, + }; + function is(x, y) { + return x === y ? 0 !== x || 1 / x == 1 / y : x != x && y != y; + } + function PropTypeError(message) { + (this.message = message), (this.stack = ''); + } + function createChainableTypeChecker(validate) { + var manualPropTypeCallCache = {}, + manualPropTypeWarningCount = 0; + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + if ( + ((componentName = componentName || '<>'), + (propFullName = propFullName || propName), + secret !== ReactPropTypesSecret) + ) { + if (throwOnDirectAccess) { + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types', + ); + throw ((err.name = 'Invariant Violation'), err); + } + if ('undefined' != typeof console) { + var cacheKey = componentName + ':' + propName; + !manualPropTypeCallCache[cacheKey] && + manualPropTypeWarningCount < 3 && + (printWarning( + 'You are manually calling a React.PropTypes validation function for the `' + + propFullName + + '` prop on `' + + componentName + + '`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.', + ), + (manualPropTypeCallCache[cacheKey] = !0), + manualPropTypeWarningCount++); + } + } + return null == props[propName] + ? isRequired + ? null === props[propName] + ? new PropTypeError( + 'The ' + + location + + ' `' + + propFullName + + '` is marked as required in `' + + componentName + + '`, but its value is `null`.', + ) + : new PropTypeError( + 'The ' + + location + + ' `' + + propFullName + + '` is marked as required in `' + + componentName + + '`, but its value is `undefined`.', + ) + : null + : validate(props, propName, componentName, location, propFullName); + } + var chainedCheckType = checkType.bind(null, !1); + return (chainedCheckType.isRequired = checkType.bind(null, !0)), chainedCheckType; + } + function createPrimitiveTypeChecker(expectedType) { + return createChainableTypeChecker(function validate( + props, + propName, + componentName, + location, + propFullName, + secret, + ) { + var propValue = props[propName]; + return getPropType(propValue) !== expectedType + ? new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + getPreciseType(propValue) + + '` supplied to `' + + componentName + + '`, expected `' + + expectedType + + '`.', + ) + : null; + }); + } + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return !0; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) return propValue.every(isNode); + if (null === propValue || isValidElement(propValue)) return !0; + var iteratorFn = (function getIteratorFn(maybeIterable) { + var iteratorFn = + maybeIterable && + ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || maybeIterable['@@iterator']); + if ('function' == typeof iteratorFn) return iteratorFn; + })(propValue); + if (!iteratorFn) return !1; + var step, + iterator = iteratorFn.call(propValue); + if (iteratorFn !== propValue.entries) { + for (; !(step = iterator.next()).done; ) if (!isNode(step.value)) return !1; + } else + for (; !(step = iterator.next()).done; ) { + var entry = step.value; + if (entry && !isNode(entry[1])) return !1; + } + return !0; + default: + return !1; + } + } + function getPropType(propValue) { + var propType = typeof propValue; + return Array.isArray(propValue) + ? 'array' + : propValue instanceof RegExp + ? 'object' + : (function isSymbol(propType, propValue) { + return ( + 'symbol' === propType || + (!!propValue && + ('Symbol' === propValue['@@toStringTag'] || + ('function' == typeof Symbol && propValue instanceof Symbol))) + ); + })(propType, propValue) + ? 'symbol' + : propType; + } + function getPreciseType(propValue) { + if (null == propValue) return '' + propValue; + var propType = getPropType(propValue); + if ('object' === propType) { + if (propValue instanceof Date) return 'date'; + if (propValue instanceof RegExp) return 'regexp'; + } + return propType; + } + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } + return ( + (PropTypeError.prototype = Error.prototype), + (ReactPropTypes.checkPropTypes = checkPropTypes), + (ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache), + (ReactPropTypes.PropTypes = ReactPropTypes), + ReactPropTypes + ); + }); + }, + 13980: (module, __unused_webpack_exports, __webpack_require__) => { + var ReactIs = __webpack_require__(48570); + module.exports = __webpack_require__(5957)(ReactIs.isElement, !0); + }, + 23586: module => { + 'use strict'; + module.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + 85527: module => { + 'use strict'; + var replace = String.prototype.replace, + percentTwenties = /%20/g, + Format_RFC1738 = 'RFC1738', + Format_RFC3986 = 'RFC3986'; + module.exports = { + default: Format_RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + }, + }, + RFC1738: Format_RFC1738, + RFC3986: Format_RFC3986, + }; + }, + 19126: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var stringify = __webpack_require__(66845), + parse = __webpack_require__(29166), + formats = __webpack_require__(85527); + module.exports = { formats, parse, stringify }; + }, + 29166: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var utils = __webpack_require__(12493), + has = Object.prototype.hasOwnProperty, + isArray = Array.isArray, + defaults = { + allowDots: !1, + allowPrototypes: !1, + allowSparse: !1, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: !1, + comma: !1, + decoder: utils.decode, + delimiter: '&', + depth: 5, + ignoreQueryPrefix: !1, + interpretNumericEntities: !1, + parameterLimit: 1e3, + parseArrays: !0, + plainObjects: !1, + strictNullHandling: !1, + }, + interpretNumericEntities = function (str) { + return str.replace(/&#(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); + }, + parseArrayValue = function (val, options) { + return val && 'string' == typeof val && options.comma && val.indexOf(',') > -1 ? val.split(',') : val; + }, + parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (givenKey) { + var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey, + child = /(\[[^[\]]*])/g, + segment = options.depth > 0 && /(\[[^[\]]*])/.exec(key), + parent = segment ? key.slice(0, segment.index) : key, + keys = []; + if (parent) { + if (!options.plainObjects && has.call(Object.prototype, parent) && !options.allowPrototypes) return; + keys.push(parent); + } + for (var i = 0; options.depth > 0 && null !== (segment = child.exec(key)) && i < options.depth; ) { + if ( + ((i += 1), + !options.plainObjects && + has.call(Object.prototype, segment[1].slice(1, -1)) && + !options.allowPrototypes) + ) + return; + keys.push(segment[1]); + } + return ( + segment && keys.push('[' + key.slice(segment.index) + ']'), + (function (chain, val, options, valuesParsed) { + for (var leaf = valuesParsed ? val : parseArrayValue(val, options), i = chain.length - 1; i >= 0; --i) { + var obj, + root = chain[i]; + if ('[]' === root && options.parseArrays) obj = [].concat(leaf); + else { + obj = options.plainObjects ? Object.create(null) : {}; + var cleanRoot = + '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root, + index = parseInt(cleanRoot, 10); + options.parseArrays || '' !== cleanRoot + ? !isNaN(index) && + root !== cleanRoot && + String(index) === cleanRoot && + index >= 0 && + options.parseArrays && + index <= options.arrayLimit + ? ((obj = [])[index] = leaf) + : (obj[cleanRoot] = leaf) + : (obj = { 0: leaf }); + } + leaf = obj; + } + return leaf; + })(keys, val, options, valuesParsed) + ); + } + }; + module.exports = function (str, opts) { + var options = (function normalizeParseOptions(opts) { + if (!opts) return defaults; + if (null !== opts.decoder && void 0 !== opts.decoder && 'function' != typeof opts.decoder) + throw new TypeError('Decoder has to be a function.'); + if (void 0 !== opts.charset && 'utf-8' !== opts.charset && 'iso-8859-1' !== opts.charset) + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + var charset = void 0 === opts.charset ? defaults.charset : opts.charset; + return { + allowDots: void 0 === opts.allowDots ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: 'boolean' == typeof opts.allowPrototypes ? opts.allowPrototypes : defaults.allowPrototypes, + allowSparse: 'boolean' == typeof opts.allowSparse ? opts.allowSparse : defaults.allowSparse, + arrayLimit: 'number' == typeof opts.arrayLimit ? opts.arrayLimit : defaults.arrayLimit, + charset, + charsetSentinel: 'boolean' == typeof opts.charsetSentinel ? opts.charsetSentinel : defaults.charsetSentinel, + comma: 'boolean' == typeof opts.comma ? opts.comma : defaults.comma, + decoder: 'function' == typeof opts.decoder ? opts.decoder : defaults.decoder, + delimiter: + 'string' == typeof opts.delimiter || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + depth: 'number' == typeof opts.depth || !1 === opts.depth ? +opts.depth : defaults.depth, + ignoreQueryPrefix: !0 === opts.ignoreQueryPrefix, + interpretNumericEntities: + 'boolean' == typeof opts.interpretNumericEntities + ? opts.interpretNumericEntities + : defaults.interpretNumericEntities, + parameterLimit: 'number' == typeof opts.parameterLimit ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: !1 !== opts.parseArrays, + plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: + 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling, + }; + })(opts); + if ('' === str || null == str) return options.plainObjects ? Object.create(null) : {}; + for ( + var tempObj = + 'string' == typeof str + ? (function parseQueryStringValues(str, options) { + var i, + obj = {}, + cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str, + limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit, + parts = cleanStr.split(options.delimiter, limit), + skipIndex = -1, + charset = options.charset; + if (options.charsetSentinel) + for (i = 0; i < parts.length; ++i) + 0 === parts[i].indexOf('utf8=') && + ('utf8=%E2%9C%93' === parts[i] + ? (charset = 'utf-8') + : 'utf8=%26%2310003%3B' === parts[i] && (charset = 'iso-8859-1'), + (skipIndex = i), + (i = parts.length)); + for (i = 0; i < parts.length; ++i) + if (i !== skipIndex) { + var key, + val, + part = parts[i], + bracketEqualsPos = part.indexOf(']='), + pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1; + -1 === pos + ? ((key = options.decoder(part, defaults.decoder, charset, 'key')), + (val = options.strictNullHandling ? null : '')) + : ((key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key')), + (val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + }))), + val && + options.interpretNumericEntities && + 'iso-8859-1' === charset && + (val = interpretNumericEntities(val)), + part.indexOf('[]=') > -1 && (val = isArray(val) ? [val] : val), + has.call(obj, key) ? (obj[key] = utils.combine(obj[key], val)) : (obj[key] = val); + } + return obj; + })(str, options) + : str, + obj = options.plainObjects ? Object.create(null) : {}, + keys = Object.keys(tempObj), + i = 0; + i < keys.length; + ++i + ) { + var key = keys[i], + newObj = parseKeys(key, tempObj[key], options, 'string' == typeof str); + obj = utils.merge(obj, newObj, options); + } + return !0 === options.allowSparse ? obj : utils.compact(obj); + }; + }, + 66845: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var getSideChannel = __webpack_require__(74294), + utils = __webpack_require__(12493), + formats = __webpack_require__(85527), + has = Object.prototype.hasOwnProperty, + arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; + }, + }, + isArray = Array.isArray, + push = Array.prototype.push, + pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); + }, + toISO = Date.prototype.toISOString, + defaultFormat = formats.default, + defaults = { + addQueryPrefix: !1, + allowDots: !1, + charset: 'utf-8', + charsetSentinel: !1, + delimiter: '&', + encode: !0, + encoder: utils.encode, + encodeValuesOnly: !1, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + indices: !1, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: !1, + strictNullHandling: !1, + }, + stringify = function stringify( + object, + prefix, + generateArrayPrefix, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + sideChannel, + ) { + var obj = object; + if (sideChannel.has(object)) throw new RangeError('Cyclic object value'); + if ( + ('function' == typeof filter + ? (obj = filter(prefix, obj)) + : obj instanceof Date + ? (obj = serializeDate(obj)) + : 'comma' === generateArrayPrefix && + isArray(obj) && + (obj = utils.maybeMap(obj, function (value) { + return value instanceof Date ? serializeDate(value) : value; + })), + null === obj) + ) { + if (strictNullHandling) + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; + obj = ''; + } + if ( + (function isNonNullishPrimitive(v) { + return ( + 'string' == typeof v || + 'number' == typeof v || + 'boolean' == typeof v || + 'symbol' == typeof v || + 'bigint' == typeof v + ); + })(obj) || + utils.isBuffer(obj) + ) + return encoder + ? [ + formatter(encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format)) + + '=' + + formatter(encoder(obj, defaults.encoder, charset, 'value', format)), + ] + : [formatter(prefix) + '=' + formatter(String(obj))]; + var objKeys, + values = []; + if (void 0 === obj) return values; + if ('comma' === generateArrayPrefix && isArray(obj)) + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void 0 }]; + else if (isArray(filter)) objKeys = filter; + else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i], + value = 'object' == typeof key && void 0 !== key.value ? key.value : obj[key]; + if (!skipNulls || null !== value) { + var keyPrefix = isArray(obj) + ? 'function' == typeof generateArrayPrefix + ? generateArrayPrefix(prefix, key) + : prefix + : prefix + (allowDots ? '.' + key : '[' + key + ']'); + sideChannel.set(object, !0); + var valueSideChannel = getSideChannel(); + pushToArray( + values, + stringify( + value, + keyPrefix, + generateArrayPrefix, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + format, + formatter, + encodeValuesOnly, + charset, + valueSideChannel, + ), + ); + } + } + return values; + }; + module.exports = function (object, opts) { + var objKeys, + obj = object, + options = (function normalizeStringifyOptions(opts) { + if (!opts) return defaults; + if (null !== opts.encoder && void 0 !== opts.encoder && 'function' != typeof opts.encoder) + throw new TypeError('Encoder has to be a function.'); + var charset = opts.charset || defaults.charset; + if (void 0 !== opts.charset && 'utf-8' !== opts.charset && 'iso-8859-1' !== opts.charset) + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + var format = formats.default; + if (void 0 !== opts.format) { + if (!has.call(formats.formatters, opts.format)) throw new TypeError('Unknown format option provided.'); + format = opts.format; + } + var formatter = formats.formatters[format], + filter = defaults.filter; + return ( + ('function' == typeof opts.filter || isArray(opts.filter)) && (filter = opts.filter), + { + addQueryPrefix: 'boolean' == typeof opts.addQueryPrefix ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: void 0 === opts.allowDots ? defaults.allowDots : !!opts.allowDots, + charset, + charsetSentinel: + 'boolean' == typeof opts.charsetSentinel ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: void 0 === opts.delimiter ? defaults.delimiter : opts.delimiter, + encode: 'boolean' == typeof opts.encode ? opts.encode : defaults.encode, + encoder: 'function' == typeof opts.encoder ? opts.encoder : defaults.encoder, + encodeValuesOnly: + 'boolean' == typeof opts.encodeValuesOnly ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter, + format, + formatter, + serializeDate: 'function' == typeof opts.serializeDate ? opts.serializeDate : defaults.serializeDate, + skipNulls: 'boolean' == typeof opts.skipNulls ? opts.skipNulls : defaults.skipNulls, + sort: 'function' == typeof opts.sort ? opts.sort : null, + strictNullHandling: + 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling, + } + ); + })(opts); + 'function' == typeof options.filter + ? (obj = (0, options.filter)('', obj)) + : isArray(options.filter) && (objKeys = options.filter); + var arrayFormat, + keys = []; + if ('object' != typeof obj || null === obj) return ''; + arrayFormat = + opts && opts.arrayFormat in arrayPrefixGenerators + ? opts.arrayFormat + : opts && 'indices' in opts + ? opts.indices + ? 'indices' + : 'repeat' + : 'indices'; + var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; + objKeys || (objKeys = Object.keys(obj)), options.sort && objKeys.sort(options.sort); + for (var sideChannel = getSideChannel(), i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + (options.skipNulls && null === obj[key]) || + pushToArray( + keys, + stringify( + obj[key], + key, + generateArrayPrefix, + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.format, + options.formatter, + options.encodeValuesOnly, + options.charset, + sideChannel, + ), + ); + } + var joined = keys.join(options.delimiter), + prefix = !0 === options.addQueryPrefix ? '?' : ''; + return ( + options.charsetSentinel && + ('iso-8859-1' === options.charset ? (prefix += 'utf8=%26%2310003%3B&') : (prefix += 'utf8=%E2%9C%93&')), + joined.length > 0 ? prefix + joined : '' + ); + }; + }, + 12493: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + var formats = __webpack_require__(85527), + has = Object.prototype.hasOwnProperty, + isArray = Array.isArray, + hexTable = (function () { + for (var array = [], i = 0; i < 256; ++i) + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + return array; + })(), + arrayToObject = function arrayToObject(source, options) { + for (var obj = options && options.plainObjects ? Object.create(null) : {}, i = 0; i < source.length; ++i) + void 0 !== source[i] && (obj[i] = source[i]); + return obj; + }; + module.exports = { + arrayToObject, + assign: function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + return (acc[key] = source[key]), acc; + }, target); + }, + combine: function combine(a, b) { + return [].concat(a, b); + }, + compact: function compact(value) { + for (var queue = [{ obj: { o: value }, prop: 'o' }], refs = [], i = 0; i < queue.length; ++i) + for (var item = queue[i], obj = item.obj[item.prop], keys = Object.keys(obj), j = 0; j < keys.length; ++j) { + var key = keys[j], + val = obj[key]; + 'object' == typeof val && + null !== val && + -1 === refs.indexOf(val) && + (queue.push({ obj, prop: key }), refs.push(val)); + } + return ( + (function compactQueue(queue) { + for (; queue.length > 1; ) { + var item = queue.pop(), + obj = item.obj[item.prop]; + if (isArray(obj)) { + for (var compacted = [], j = 0; j < obj.length; ++j) void 0 !== obj[j] && compacted.push(obj[j]); + item.obj[item.prop] = compacted; + } + } + })(queue), + value + ); + }, + decode: function (str, decoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if ('iso-8859-1' === charset) return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } + }, + encode: function encode(str, defaultEncoder, charset, kind, format) { + if (0 === str.length) return str; + var string = str; + if ( + ('symbol' == typeof str + ? (string = Symbol.prototype.toString.call(str)) + : 'string' != typeof str && (string = String(str)), + 'iso-8859-1' === charset) + ) + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + for (var out = '', i = 0; i < string.length; ++i) { + var c = string.charCodeAt(i); + 45 === c || + 46 === c || + 95 === c || + 126 === c || + (c >= 48 && c <= 57) || + (c >= 65 && c <= 90) || + (c >= 97 && c <= 122) || + (format === formats.RFC1738 && (40 === c || 41 === c)) + ? (out += string.charAt(i)) + : c < 128 + ? (out += hexTable[c]) + : c < 2048 + ? (out += hexTable[192 | (c >> 6)] + hexTable[128 | (63 & c)]) + : c < 55296 || c >= 57344 + ? (out += hexTable[224 | (c >> 12)] + hexTable[128 | ((c >> 6) & 63)] + hexTable[128 | (63 & c)]) + : ((i += 1), + (c = 65536 + (((1023 & c) << 10) | (1023 & string.charCodeAt(i)))), + (out += + hexTable[240 | (c >> 18)] + + hexTable[128 | ((c >> 12) & 63)] + + hexTable[128 | ((c >> 6) & 63)] + + hexTable[128 | (63 & c)])); + } + return out; + }, + isBuffer: function isBuffer(obj) { + return ( + !(!obj || 'object' != typeof obj) && + !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)) + ); + }, + isRegExp: function isRegExp(obj) { + return '[object RegExp]' === Object.prototype.toString.call(obj); + }, + maybeMap: function maybeMap(val, fn) { + if (isArray(val)) { + for (var mapped = [], i = 0; i < val.length; i += 1) mapped.push(fn(val[i])); + return mapped; + } + return fn(val); + }, + merge: function merge(target, source, options) { + if (!source) return target; + if ('object' != typeof source) { + if (isArray(target)) target.push(source); + else { + if (!target || 'object' != typeof target) return [target, source]; + ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) && + (target[source] = !0); + } + return target; + } + if (!target || 'object' != typeof target) return [target].concat(source); + var mergeTarget = target; + return ( + isArray(target) && !isArray(source) && (mergeTarget = arrayToObject(target, options)), + isArray(target) && isArray(source) + ? (source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + targetItem && 'object' == typeof targetItem && item && 'object' == typeof item + ? (target[i] = merge(targetItem, item, options)) + : target.push(item); + } else target[i] = item; + }), + target) + : Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + return has.call(acc, key) ? (acc[key] = merge(acc[key], value, options)) : (acc[key] = value), acc; + }, mergeTarget) + ); + }, + }; + }, + 24777: (__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + 'use strict'; + __webpack_require__.r(__webpack_exports__), + __webpack_require__.d(__webpack_exports__, { + HexColorInput: () => Me, + HexColorPicker: () => G, + HslColorPicker: () => re, + HslStringColorPicker: () => oe, + HslaColorPicker: () => V, + HslaStringColorPicker: () => Z, + HsvColorPicker: () => ie, + HsvStringColorPicker: () => fe, + HsvaColorPicker: () => ae, + HsvaStringColorPicker: () => ue, + RgbColorPicker: () => pe, + RgbStringColorPicker: () => _e, + RgbaColorPicker: () => de, + RgbaStringColorPicker: () => me, + setNonce: () => X, + }); + var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2784); + function l() { + return (l = + Object.assign || + function (e) { + for (var r = 1; r < arguments.length; r++) { + var t = arguments[r]; + for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + } + return e; + }).apply(this, arguments); + } + function u(e, r) { + if (null == e) return {}; + var t, + o, + n = {}, + a = Object.keys(e); + for (o = 0; o < a.length; o++) r.indexOf((t = a[o])) >= 0 || (n[t] = e[t]); + return n; + } + var c = + 'undefined' != typeof window + ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect + : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; + function i(e) { + var r = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(e); + return ( + (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { + r.current = e; + }), + (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) { + return r.current && r.current(e); + }, []) + ); + } + var s, + f = function (e, r, t) { + return void 0 === r && (r = 0), void 0 === t && (t = 1), e > t ? t : e < r ? r : e; + }, + v = function (e) { + return 'touches' in e; + }, + d = function (e, r) { + var t = e.getBoundingClientRect(), + o = v(r) ? r.touches[0] : r; + return { + left: f((o.pageX - (t.left + window.pageXOffset)) / t.width), + top: f((o.pageY - (t.top + window.pageYOffset)) / t.height), + }; + }, + h = function (e) { + !v(e) && e.preventDefault(); + }, + m = react__WEBPACK_IMPORTED_MODULE_0__.memo(function (r) { + var t = r.onMove, + s = r.onKey, + f = u(r, ['onMove', 'onKey']), + m = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null), + g = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1), + p = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1), + b = p[0], + _ = p[1], + C = i(t), + x = i(s), + E = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + h(e), (v(e) ? e.touches.length > 0 : e.buttons > 0) && m.current ? C(d(m.current, e)) : _(!1); + }, + [C], + ), + H = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + var r, + t = e.nativeEvent, + o = m.current; + h(t), + (r = t), + (g.current && !v(r)) || (g.current || (g.current = v(r)), 0) || !o || (o.focus(), C(d(o, t)), _(!0)); + }, + [C], + ), + M = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + var r = e.which || e.keyCode; + r < 37 || + r > 40 || + (e.preventDefault(), + x({ left: 39 === r ? 0.05 : 37 === r ? -0.05 : 0, top: 40 === r ? 0.05 : 38 === r ? -0.05 : 0 })); + }, + [x], + ), + N = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () { + return _(!1); + }, []), + w = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + var r = e ? window.addEventListener : window.removeEventListener; + r(g.current ? 'touchmove' : 'mousemove', E), r(g.current ? 'touchend' : 'mouseup', N); + }, + [E, N], + ); + return ( + c( + function () { + return ( + w(b), + function () { + b && w(!1); + } + ); + }, + [b, w], + ), + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + l({}, f, { + className: 'react-colorful__interactive', + ref: m, + onTouchStart: H, + onMouseDown: H, + onKeyDown: M, + tabIndex: 0, + role: 'slider', + }), + ) + ); + }), + g = function (e) { + return e.filter(Boolean).join(' '); + }, + p = function (r) { + var t = r.color, + o = r.left, + n = r.top, + a = void 0 === n ? 0.5 : n, + l = g(['react-colorful__pointer', r.className]); + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + { className: l, style: { top: 100 * a + '%', left: 100 * o + '%' } }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { + className: 'react-colorful__pointer-fill', + style: { backgroundColor: t }, + }), + ); + }, + b = function (e, r, t) { + return void 0 === r && (r = 0), void 0 === t && (t = Math.pow(10, r)), Math.round(t * e) / t; + }, + _ = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, + C = function (e) { + return ( + '#' === e[0] && (e = e.substr(1)), + e.length < 6 + ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: 1 } + : { + r: parseInt(e.substr(0, 2), 16), + g: parseInt(e.substr(2, 2), 16), + b: parseInt(e.substr(4, 2), 16), + a: 1, + } + ); + }, + x = function (e, r) { + return void 0 === r && (r = 'deg'), Number(e) * (_[r] || 1); + }, + E = function (e) { + var r = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( + e, + ); + return r + ? M({ + h: x(r[1], r[2]), + s: Number(r[3]), + l: Number(r[4]), + a: void 0 === r[5] ? 1 : Number(r[5]) / (r[6] ? 100 : 1), + }) + : { h: 0, s: 0, v: 0, a: 1 }; + }, + H = E, + M = function (e) { + var r = e.s, + t = e.l; + return { + h: e.h, + s: (r *= (t < 50 ? t : 100 - t) / 100) > 0 ? ((2 * r) / (t + r)) * 100 : 0, + v: t + r, + a: e.a, + }; + }, + N = function (e) { + var r = e.s, + t = e.v, + o = e.a, + n = ((200 - r) * t) / 100; + return { + h: b(e.h), + s: b(n > 0 && n < 200 ? ((r * t) / 100 / (n <= 100 ? n : 200 - n)) * 100 : 0), + l: b(n / 2), + a: b(o, 2), + }; + }, + w = function (e) { + var r = N(e); + return 'hsl(' + r.h + ', ' + r.s + '%, ' + r.l + '%)'; + }, + y = function (e) { + var r = N(e); + return 'hsla(' + r.h + ', ' + r.s + '%, ' + r.l + '%, ' + r.a + ')'; + }, + q = function (e) { + var r = e.h, + t = e.s, + o = e.v, + n = e.a; + (r = (r / 360) * 6), (t /= 100), (o /= 100); + var a = Math.floor(r), + l = o * (1 - t), + u = o * (1 - (r - a) * t), + c = o * (1 - (1 - r + a) * t), + i = a % 6; + return { + r: b(255 * [o, u, l, l, c, o][i]), + g: b(255 * [c, o, o, u, l, l][i]), + b: b(255 * [l, l, c, o, o, u][i]), + a: b(n, 2), + }; + }, + k = function (e) { + var r = /hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( + e, + ); + return r + ? K({ + h: x(r[1], r[2]), + s: Number(r[3]), + v: Number(r[4]), + a: void 0 === r[5] ? 1 : Number(r[5]) / (r[6] ? 100 : 1), + }) + : { h: 0, s: 0, v: 0, a: 1 }; + }, + O = k, + I = function (e) { + var r = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( + e, + ); + return r + ? B({ + r: Number(r[1]) / (r[2] ? 100 / 255 : 1), + g: Number(r[3]) / (r[4] ? 100 / 255 : 1), + b: Number(r[5]) / (r[6] ? 100 / 255 : 1), + a: void 0 === r[7] ? 1 : Number(r[7]) / (r[8] ? 100 : 1), + }) + : { h: 0, s: 0, v: 0, a: 1 }; + }, + j = I, + z = function (e) { + var r = e.toString(16); + return r.length < 2 ? '0' + r : r; + }, + B = function (e) { + var r = e.r, + t = e.g, + o = e.b, + n = e.a, + a = Math.max(r, t, o), + l = a - Math.min(r, t, o), + u = l ? (a === r ? (t - o) / l : a === t ? 2 + (o - r) / l : 4 + (r - t) / l) : 0; + return { h: b(60 * (u < 0 ? u + 6 : u)), s: b(a ? (l / a) * 100 : 0), v: b((a / 255) * 100), a: n }; + }, + K = function (e) { + return { h: b(e.h), s: b(e.s), v: b(e.v), a: b(e.a, 2) }; + }, + A = react__WEBPACK_IMPORTED_MODULE_0__.memo(function (r) { + var t = r.hue, + o = r.onChange, + n = g(['react-colorful__hue', r.className]); + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + { className: n }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + m, + { + onMove: function (e) { + o({ h: 360 * e.left }); + }, + onKey: function (e) { + o({ h: f(t + 360 * e.left, 0, 360) }); + }, + 'aria-label': 'Hue', + 'aria-valuetext': b(t), + }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement(p, { + className: 'react-colorful__hue-pointer', + left: t / 360, + color: w({ h: t, s: 100, v: 100, a: 1 }), + }), + ), + ); + }), + L = react__WEBPACK_IMPORTED_MODULE_0__.memo(function (r) { + var t = r.hsva, + o = r.onChange, + n = { backgroundColor: w({ h: t.h, s: 100, v: 100, a: 1 }) }; + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + { className: 'react-colorful__saturation', style: n }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + m, + { + onMove: function (e) { + o({ s: 100 * e.left, v: 100 - 100 * e.top }); + }, + onKey: function (e) { + o({ s: f(t.s + 100 * e.left, 0, 100), v: f(t.v - 100 * e.top, 0, 100) }); + }, + 'aria-label': 'Color', + 'aria-valuetext': 'Saturation ' + b(t.s) + '%, Brightness ' + b(t.v) + '%', + }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement(p, { + className: 'react-colorful__saturation-pointer', + top: 1 - t.v / 100, + left: t.s / 100, + color: w(t), + }), + ), + ); + }), + D = function (e, r) { + if (e === r) return !0; + for (var t in e) if (e[t] !== r[t]) return !1; + return !0; + }, + F = function (e, r) { + return e.replace(/\s/g, '') === r.replace(/\s/g, ''); + }; + function S(e, r, l) { + var u = i(l), + c = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(function () { + return e.toHsva(r); + }), + s = c[0], + f = c[1], + v = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)({ color: r, hsva: s }); + (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)( + function () { + if (!e.equal(r, v.current.color)) { + var t = e.toHsva(r); + (v.current = { hsva: t, color: r }), f(t); + } + }, + [r, e], + ), + (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)( + function () { + var r; + D(s, v.current.hsva) || + e.equal((r = e.fromHsva(s)), v.current.color) || + ((v.current = { hsva: s, color: r }), u(r)); + }, + [s, e, u], + ); + var d = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (e) { + f(function (r) { + return Object.assign({}, r, e); + }); + }, []); + return [s, d]; + } + var P, + X = function (e) { + s = e; + }, + Y = function () { + c(function () { + if ('undefined' != typeof document && !P) { + (P = document.createElement('style')).innerHTML = + '.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}'; + var e = s || __webpack_require__.nc; + e && P.setAttribute('nonce', e), document.head.appendChild(P); + } + }, []); + }, + $ = function (r) { + var t = r.className, + o = r.colorModel, + n = r.color, + a = void 0 === n ? o.defaultColor : n, + c = r.onChange, + i = u(r, ['className', 'colorModel', 'color', 'onChange']); + Y(); + var s = S(o, a, c), + f = s[0], + v = s[1], + d = g(['react-colorful', t]); + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + l({}, i, { className: d }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement(L, { hsva: f, onChange: v }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement(A, { + hue: f.h, + onChange: v, + className: 'react-colorful__last-control', + }), + ); + }, + R = { + defaultColor: '000', + toHsva: function (e) { + return B(C(e)); + }, + fromHsva: function (e) { + return (t = (r = q(e)).g), (o = r.b), '#' + z(r.r) + z(t) + z(o); + var r, t, o; + }, + equal: function (e, r) { + return e.toLowerCase() === r.toLowerCase() || D(C(e), C(r)); + }, + }, + G = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: R })); + }, + J = function (r) { + var t = r.className, + o = r.hsva, + n = r.onChange, + a = { + backgroundImage: + 'linear-gradient(90deg, ' + + y(Object.assign({}, o, { a: 0 })) + + ', ' + + y(Object.assign({}, o, { a: 1 })) + + ')', + }, + l = g(['react-colorful__alpha', t]); + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + { className: l }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement('div', { + className: 'react-colorful__alpha-gradient', + style: a, + }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + m, + { + onMove: function (e) { + n({ a: e.left }); + }, + onKey: function (e) { + n({ a: f(o.a + e.left) }); + }, + 'aria-label': 'Alpha', + 'aria-valuetext': b(100 * o.a) + '%', + }, + react__WEBPACK_IMPORTED_MODULE_0__.createElement(p, { + className: 'react-colorful__alpha-pointer', + left: o.a, + color: y(o), + }), + ), + ); + }, + Q = function (r) { + var t = r.className, + o = r.colorModel, + n = r.color, + a = void 0 === n ? o.defaultColor : n, + c = r.onChange, + i = u(r, ['className', 'colorModel', 'color', 'onChange']); + Y(); + var s = S(o, a, c), + f = s[0], + v = s[1], + d = g(['react-colorful', t]); + return react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'div', + l({}, i, { className: d }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement(L, { hsva: f, onChange: v }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement(A, { hue: f.h, onChange: v }), + react__WEBPACK_IMPORTED_MODULE_0__.createElement(J, { + hsva: f, + onChange: v, + className: 'react-colorful__last-control', + }), + ); + }, + U = { defaultColor: { h: 0, s: 0, l: 0, a: 1 }, toHsva: M, fromHsva: N, equal: D }, + V = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: U })); + }, + W = { defaultColor: 'hsla(0, 0%, 0%, 1)', toHsva: E, fromHsva: y, equal: F }, + Z = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: W })); + }, + ee = { + defaultColor: { h: 0, s: 0, l: 0 }, + toHsva: function (e) { + return M({ h: e.h, s: e.s, l: e.l, a: 1 }); + }, + fromHsva: function (e) { + return { h: (r = N(e)).h, s: r.s, l: r.l }; + var r; + }, + equal: D, + }, + re = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: ee })); + }, + te = { defaultColor: 'hsl(0, 0%, 0%)', toHsva: H, fromHsva: w, equal: F }, + oe = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: te })); + }, + ne = { + defaultColor: { h: 0, s: 0, v: 0, a: 1 }, + toHsva: function (e) { + return e; + }, + fromHsva: K, + equal: D, + }, + ae = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: ne })); + }, + le = { + defaultColor: 'hsva(0, 0%, 0%, 1)', + toHsva: k, + fromHsva: function (e) { + var r = K(e); + return 'hsva(' + r.h + ', ' + r.s + '%, ' + r.v + '%, ' + r.a + ')'; + }, + equal: F, + }, + ue = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: le })); + }, + ce = { + defaultColor: { h: 0, s: 0, v: 0 }, + toHsva: function (e) { + return { h: e.h, s: e.s, v: e.v, a: 1 }; + }, + fromHsva: function (e) { + var r = K(e); + return { h: r.h, s: r.s, v: r.v }; + }, + equal: D, + }, + ie = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: ce })); + }, + se = { + defaultColor: 'hsv(0, 0%, 0%)', + toHsva: O, + fromHsva: function (e) { + var r = K(e); + return 'hsv(' + r.h + ', ' + r.s + '%, ' + r.v + '%)'; + }, + equal: F, + }, + fe = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: se })); + }, + ve = { defaultColor: { r: 0, g: 0, b: 0, a: 1 }, toHsva: B, fromHsva: q, equal: D }, + de = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: ve })); + }, + he = { + defaultColor: 'rgba(0, 0, 0, 1)', + toHsva: I, + fromHsva: function (e) { + var r = q(e); + return 'rgba(' + r.r + ', ' + r.g + ', ' + r.b + ', ' + r.a + ')'; + }, + equal: F, + }, + me = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q, l({}, r, { colorModel: he })); + }, + ge = { + defaultColor: { r: 0, g: 0, b: 0 }, + toHsva: function (e) { + return B({ r: e.r, g: e.g, b: e.b, a: 1 }); + }, + fromHsva: function (e) { + return { r: (r = q(e)).r, g: r.g, b: r.b }; + var r; + }, + equal: D, + }, + pe = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: ge })); + }, + be = { + defaultColor: 'rgb(0, 0, 0)', + toHsva: j, + fromHsva: function (e) { + var r = q(e); + return 'rgb(' + r.r + ', ' + r.g + ', ' + r.b + ')'; + }, + equal: F, + }, + _e = function (r) { + return react__WEBPACK_IMPORTED_MODULE_0__.createElement($, l({}, r, { colorModel: be })); + }, + Ce = /^#?[0-9A-F]{3}$/i, + xe = /^#?[0-9A-F]{6}$/i, + Ee = function (e) { + return xe.test(e) || Ce.test(e); + }, + He = function (e) { + return e.replace(/([^0-9A-F]+)/gi, '').substr(0, 6); + }, + Me = function (r) { + var n = r.color, + c = void 0 === n ? '' : n, + s = r.onChange, + f = r.onBlur, + v = r.prefixed, + d = u(r, ['color', 'onChange', 'onBlur', 'prefixed']), + h = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(function () { + return He(c); + }), + m = h[0], + g = h[1], + p = i(s), + b = i(f), + _ = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + var r = He(e.target.value); + g(r), Ee(r) && p('#' + r); + }, + [p], + ), + C = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)( + function (e) { + Ee(e.target.value) || g(He(c)), b(e); + }, + [c, b], + ); + return ( + (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)( + function () { + g(He(c)); + }, + [c], + ), + react__WEBPACK_IMPORTED_MODULE_0__.createElement( + 'input', + l({}, d, { value: (v ? '#' : '') + m, spellCheck: 'false', onChange: _, onBlur: C }), + ) + ); + }; + }, + 87361: (module, __unused_webpack_exports, __webpack_require__) => { + 'use strict'; + (function () { + var React = __webpack_require__(2784), + _assign = __webpack_require__(37320), + checkPropTypes = __webpack_require__(92849); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function error(format) { + for ( + var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) + args[_key2 - 1] = arguments[_key2]; + printWarning('error', format, args); + } + function printWarning(level, format, args) { + if ( + !( + args.length > 0 && + 'string' == typeof args[args.length - 1] && + 0 === args[args.length - 1].indexOf('\n in') + ) + ) { + var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum(); + '' !== stack && ((format += '%s'), (args = args.concat([stack]))); + } + var argsWithFormat = args.map(function (item) { + return '' + item; + }); + argsWithFormat.unshift('Warning: ' + format), + Function.prototype.apply.call(console[level], console, argsWithFormat); + try { + var argIndex = 0, + message = + 'Warning: ' + + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} + } + ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher') || + (ReactSharedInternals.ReactCurrentDispatcher = { current: null }), + ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig') || + (ReactSharedInternals.ReactCurrentBatchConfig = { suspense: null }); + var hasSymbol = 'function' == typeof Symbol && Symbol.for, + REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 60106, + REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 60107, + REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 60108, + REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 60114, + REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 60109, + REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 60110, + REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 60111, + REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 60112, + REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 60113, + REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 60120, + REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 60115, + REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 60116, + REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 60121, + REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 60117, + REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 60119; + function getComponentName(type) { + if (null == type) return null; + if ( + ('number' == typeof type.tag && + error( + 'Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.', + ), + 'function' == typeof type) + ) + return type.displayName || type.name || null; + if ('string' == typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + case REACT_PORTAL_TYPE: + return 'Portal'; + case REACT_PROFILER_TYPE: + return 'Profiler'; + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + if ('object' == typeof type) + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + case REACT_FORWARD_REF_TYPE: + return (function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return ( + outerType.displayName || + ('' !== functionName ? wrapperName + '(' + functionName + ')' : wrapperName) + ); + })(type, type.render, 'ForwardRef'); + case REACT_MEMO_TYPE: + return getComponentName(type.type); + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + case REACT_LAZY_TYPE: + var resolvedThenable = (function refineResolvedLazyComponent(lazyComponent) { + return 1 === lazyComponent._status ? lazyComponent._result : null; + })(type); + if (resolvedThenable) return getComponentName(resolvedThenable); + } + return null; + } + var BEFORE_SLASH_RE = /^(.*)[\\\/]/; + var ReactDebugCurrentFrame, didWarnAboutInvalidateContextType; + (ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame), + (didWarnAboutInvalidateContextType = new Set()); + var emptyObject = {}; + function maskContext(type, context) { + var contextTypes = type.contextTypes; + if (!contextTypes) return emptyObject; + var maskedContext = {}; + for (var contextName in contextTypes) maskedContext[contextName] = context[contextName]; + return maskedContext; + } + function checkContextTypes(typeSpecs, values, location) { + checkPropTypes(typeSpecs, values, location, 'Component', ReactDebugCurrentFrame.getCurrentStack); + } + function validateContextBounds(context, threadID) { + for (var i = 0 | context._threadCount; i <= threadID; i++) + (context[i] = context._currentValue2), (context._threadCount = i + 1); + } + Object.freeze(emptyObject); + for (var nextAvailableThreadIDs = new Uint16Array(16), i = 0; i < 15; i++) nextAvailableThreadIDs[i] = i + 1; + function allocThreadID() { + var nextID = nextAvailableThreadIDs[0]; + return 0 === nextID + ? (function growThreadCountAndReturnNextAvailable() { + var oldArray = nextAvailableThreadIDs, + oldSize = oldArray.length, + newSize = 2 * oldSize; + if (!(newSize <= 65536)) + throw Error( + 'Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic.', + ); + var newArray = new Uint16Array(newSize); + newArray.set(oldArray), ((nextAvailableThreadIDs = newArray)[0] = oldSize + 1); + for (var _i = oldSize; _i < newSize - 1; _i++) nextAvailableThreadIDs[_i] = _i + 1; + return (nextAvailableThreadIDs[newSize - 1] = 0), oldSize; + })() + : ((nextAvailableThreadIDs[0] = nextAvailableThreadIDs[nextID]), nextID); + } + function freeThreadID(id) { + (nextAvailableThreadIDs[id] = nextAvailableThreadIDs[0]), (nextAvailableThreadIDs[0] = id); + } + nextAvailableThreadIDs[15] = 0; + var ATTRIBUTE_NAME_START_CHAR = + ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD', + ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040', + VALID_ATTRIBUTE_NAME_REGEX = new RegExp( + '^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$', + ), + hasOwnProperty = Object.prototype.hasOwnProperty, + illegalAttributeNameCache = {}, + validatedAttributeNameCache = {}; + function isAttributeNameSafe(attributeName) { + return ( + !!hasOwnProperty.call(validatedAttributeNameCache, attributeName) || + (!hasOwnProperty.call(illegalAttributeNameCache, attributeName) && + (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) + ? ((validatedAttributeNameCache[attributeName] = !0), !0) + : ((illegalAttributeNameCache[attributeName] = !0), + error('Invalid attribute name: `%s`', attributeName), + !1))) + ); + } + function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { + if (null !== propertyInfo && 0 === propertyInfo.type) return !1; + switch (typeof value) { + case 'function': + case 'symbol': + return !0; + case 'boolean': + if (isCustomComponentTag) return !1; + if (null !== propertyInfo) return !propertyInfo.acceptsBooleans; + var prefix = name.toLowerCase().slice(0, 5); + return 'data-' !== prefix && 'aria-' !== prefix; + default: + return !1; + } + } + function getPropertyInfo(name) { + return properties.hasOwnProperty(name) ? properties[name] : null; + } + function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) { + (this.acceptsBooleans = 2 === type || 3 === type || 4 === type), + (this.attributeName = attributeName), + (this.attributeNamespace = attributeNamespace), + (this.mustUseProperty = mustUseProperty), + (this.propertyName = name), + (this.type = type), + (this.sanitizeURL = sanitizeURL); + } + var properties = {}; + [ + 'children', + 'dangerouslySetInnerHTML', + 'defaultValue', + 'defaultChecked', + 'innerHTML', + 'suppressContentEditableWarning', + 'suppressHydrationWarning', + 'style', + ].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 0, !1, name, null, !1); + }), + [ + ['acceptCharset', 'accept-charset'], + ['className', 'class'], + ['htmlFor', 'for'], + ['httpEquiv', 'http-equiv'], + ].forEach(function (_ref) { + var name = _ref[0], + attributeName = _ref[1]; + properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null, !1); + }), + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 2, !1, name.toLowerCase(), null, !1); + }), + ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 2, !1, name, null, !1); + }), + [ + 'allowFullScreen', + 'async', + 'autoFocus', + 'autoPlay', + 'controls', + 'default', + 'defer', + 'disabled', + 'disablePictureInPicture', + 'formNoValidate', + 'hidden', + 'loop', + 'noModule', + 'noValidate', + 'open', + 'playsInline', + 'readOnly', + 'required', + 'reversed', + 'scoped', + 'seamless', + 'itemScope', + ].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 3, !1, name.toLowerCase(), null, !1); + }), + ['checked', 'multiple', 'muted', 'selected'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 3, !0, name, null, !1); + }), + ['capture', 'download'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 4, !1, name, null, !1); + }), + ['cols', 'rows', 'size', 'span'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 6, !1, name, null, !1); + }), + ['rowSpan', 'start'].forEach(function (name) { + properties[name] = new PropertyInfoRecord(name, 5, !1, name.toLowerCase(), null, !1); + }); + var CAMELIZE = /[\-\:]([a-z])/g, + capitalize = function (token) { + return token[1].toUpperCase(); + }; + [ + 'accent-height', + 'alignment-baseline', + 'arabic-form', + 'baseline-shift', + 'cap-height', + 'clip-path', + 'clip-rule', + 'color-interpolation', + 'color-interpolation-filters', + 'color-profile', + 'color-rendering', + 'dominant-baseline', + 'enable-background', + 'fill-opacity', + 'fill-rule', + 'flood-color', + 'flood-opacity', + 'font-family', + 'font-size', + 'font-size-adjust', + 'font-stretch', + 'font-style', + 'font-variant', + 'font-weight', + 'glyph-name', + 'glyph-orientation-horizontal', + 'glyph-orientation-vertical', + 'horiz-adv-x', + 'horiz-origin-x', + 'image-rendering', + 'letter-spacing', + 'lighting-color', + 'marker-end', + 'marker-mid', + 'marker-start', + 'overline-position', + 'overline-thickness', + 'paint-order', + 'panose-1', + 'pointer-events', + 'rendering-intent', + 'shape-rendering', + 'stop-color', + 'stop-opacity', + 'strikethrough-position', + 'strikethrough-thickness', + 'stroke-dasharray', + 'stroke-dashoffset', + 'stroke-linecap', + 'stroke-linejoin', + 'stroke-miterlimit', + 'stroke-opacity', + 'stroke-width', + 'text-anchor', + 'text-decoration', + 'text-rendering', + 'underline-position', + 'underline-thickness', + 'unicode-bidi', + 'unicode-range', + 'units-per-em', + 'v-alphabetic', + 'v-hanging', + 'v-ideographic', + 'v-mathematical', + 'vector-effect', + 'vert-adv-y', + 'vert-origin-x', + 'vert-origin-y', + 'word-spacing', + 'writing-mode', + 'xmlns:xlink', + 'x-height', + ].forEach(function (attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null, !1); + }), + ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function ( + attributeName, + ) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, 'http://www.w3.org/1999/xlink', !1); + }), + ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + 1, + !1, + attributeName, + 'http://www.w3.org/XML/1998/namespace', + !1, + ); + }), + ['tabIndex', 'crossOrigin'].forEach(function (attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + 1, + !1, + attributeName.toLowerCase(), + null, + !1, + ); + }); + (properties.xlinkHref = new PropertyInfoRecord( + 'xlinkHref', + 1, + !1, + 'xlink:href', + 'http://www.w3.org/1999/xlink', + !0, + )), + ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + 1, + !1, + attributeName.toLowerCase(), + null, + !0, + ); + }); + ReactSharedInternals.ReactDebugCurrentFrame; + var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i, + didWarn = !1; + var matchHtmlRegExp = /["'&<>]/; + function escapeTextForBrowser(text) { + return 'boolean' == typeof text || 'number' == typeof text + ? '' + text + : (function escapeHtml(string) { + var escape, + str = '' + string, + match = matchHtmlRegExp.exec(str); + if (!match) return str; + var index, + html = '', + lastIndex = 0; + for (index = match.index; index < str.length; index++) { + switch (str.charCodeAt(index)) { + case 34: + escape = '"'; + break; + case 38: + escape = '&'; + break; + case 39: + escape = '''; + break; + case 60: + escape = '<'; + break; + case 62: + escape = '>'; + break; + default: + continue; + } + lastIndex !== index && (html += str.substring(lastIndex, index)), + (lastIndex = index + 1), + (html += escape); + } + return lastIndex !== index ? html + str.substring(lastIndex, index) : html; + })(text); + } + function quoteAttributeValueForBrowser(value) { + return '"' + escapeTextForBrowser(value) + '"'; + } + function createMarkupForProperty(name, value) { + var propertyInfo = getPropertyInfo(name); + if ( + 'style' !== name && + (function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { + return null !== propertyInfo + ? 0 === propertyInfo.type + : !isCustomComponentTag && + name.length > 2 && + ('o' === name[0] || 'O' === name[0]) && + ('n' === name[1] || 'N' === name[1]); + })(name, propertyInfo, !1) + ) + return ''; + if ( + (function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { + if (null == value) return !0; + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0; + if (isCustomComponentTag) return !1; + if (null !== propertyInfo) + switch (propertyInfo.type) { + case 3: + return !value; + case 4: + return !1 === value; + case 5: + return isNaN(value); + case 6: + return isNaN(value) || value < 1; + } + return !1; + })(name, value, propertyInfo, !1) + ) + return ''; + if (null !== propertyInfo) { + var attributeName = propertyInfo.attributeName, + type = propertyInfo.type; + return 3 === type || (4 === type && !0 === value) + ? attributeName + '=""' + : (propertyInfo.sanitizeURL && + (function sanitizeURL(url) { + !didWarn && + isJavaScriptProtocol.test(url) && + ((didWarn = !0), + error( + 'A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.', + JSON.stringify(url), + )); + })((value = '' + value)), + attributeName + '=' + quoteAttributeValueForBrowser(value)); + } + return isAttributeNameSafe(name) ? name + '=' + quoteAttributeValueForBrowser(value) : ''; + } + var currentHookNameInDev, + objectIs = + 'function' == typeof Object.is + ? Object.is + : function is(x, y) { + return (x === y && (0 !== x || 1 / x == 1 / y)) || (x != x && y != y); + }, + currentlyRenderingComponent = null, + firstWorkInProgressHook = null, + workInProgressHook = null, + isReRender = !1, + didScheduleRenderPhaseUpdate = !1, + renderPhaseUpdates = null, + numberOfReRenders = 0, + isInHookUserCodeInDev = !1; + function resolveCurrentlyRenderingComponent() { + if (null === currentlyRenderingComponent) + throw Error( + 'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.', + ); + return ( + isInHookUserCodeInDev && + error( + 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://fb.me/rules-of-hooks', + ), + currentlyRenderingComponent + ); + } + function createHook() { + if (numberOfReRenders > 0) throw Error('Rendered more hooks than during the previous render'); + return { memoizedState: null, queue: null, next: null }; + } + function createWorkInProgressHook() { + return ( + null === workInProgressHook + ? null === firstWorkInProgressHook + ? ((isReRender = !1), (firstWorkInProgressHook = workInProgressHook = createHook())) + : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook)) + : null === workInProgressHook.next + ? ((isReRender = !1), (workInProgressHook = workInProgressHook.next = createHook())) + : ((isReRender = !0), (workInProgressHook = workInProgressHook.next)), + workInProgressHook + ); + } + function prepareToUseHooks(componentIdentity) { + (currentlyRenderingComponent = componentIdentity), (isInHookUserCodeInDev = !1); + } + function finishHooks(Component, props, children, refOrContext) { + for (; didScheduleRenderPhaseUpdate; ) + (didScheduleRenderPhaseUpdate = !1), + (numberOfReRenders += 1), + (workInProgressHook = null), + (children = Component(props, refOrContext)); + return ( + (currentlyRenderingComponent = null), + (firstWorkInProgressHook = null), + (numberOfReRenders = 0), + (renderPhaseUpdates = null), + (workInProgressHook = null), + (isInHookUserCodeInDev = !1), + children + ); + } + function basicStateReducer(state, action) { + return 'function' == typeof action ? action(state) : action; + } + function useReducer(reducer, initialArg, init) { + if ( + (reducer !== basicStateReducer && (currentHookNameInDev = 'useReducer'), + (currentlyRenderingComponent = resolveCurrentlyRenderingComponent()), + (workInProgressHook = createWorkInProgressHook()), + isReRender) + ) { + var queue = workInProgressHook.queue, + dispatch = queue.dispatch; + if (null !== renderPhaseUpdates) { + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (void 0 !== firstRenderPhaseUpdate) { + renderPhaseUpdates.delete(queue); + var newState = workInProgressHook.memoizedState, + update = firstRenderPhaseUpdate; + do { + var action = update.action; + (isInHookUserCodeInDev = !0), + (newState = reducer(newState, action)), + (isInHookUserCodeInDev = !1), + (update = update.next); + } while (null !== update); + return (workInProgressHook.memoizedState = newState), [newState, dispatch]; + } + } + return [workInProgressHook.memoizedState, dispatch]; + } + var initialState; + (isInHookUserCodeInDev = !0), + (initialState = + reducer === basicStateReducer + ? 'function' == typeof initialArg + ? initialArg() + : initialArg + : void 0 !== init + ? init(initialArg) + : initialArg), + (isInHookUserCodeInDev = !1), + (workInProgressHook.memoizedState = initialState); + var _queue = (workInProgressHook.queue = { last: null, dispatch: null }), + _dispatch = (_queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue)); + return [workInProgressHook.memoizedState, _dispatch]; + } + function dispatchAction(componentIdentity, queue, action) { + if (!(numberOfReRenders < 25)) + throw Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'); + if (componentIdentity === currentlyRenderingComponent) { + didScheduleRenderPhaseUpdate = !0; + var update = { action, next: null }; + null === renderPhaseUpdates && (renderPhaseUpdates = new Map()); + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (void 0 === firstRenderPhaseUpdate) renderPhaseUpdates.set(queue, update); + else { + for (var lastRenderPhaseUpdate = firstRenderPhaseUpdate; null !== lastRenderPhaseUpdate.next; ) + lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + lastRenderPhaseUpdate.next = update; + } + } + } + function noop() {} + var currentThreadID = 0; + function setCurrentThreadID(threadID) { + currentThreadID = threadID; + } + var Dispatcher = { + readContext: function readContext(context, observedBits) { + var threadID = currentThreadID; + return ( + validateContextBounds(context, threadID), + isInHookUserCodeInDev && + error( + 'Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().', + ), + context[threadID] + ); + }, + useContext: function useContext(context, observedBits) { + (currentHookNameInDev = 'useContext'), resolveCurrentlyRenderingComponent(); + var threadID = currentThreadID; + return validateContextBounds(context, threadID), context[threadID]; + }, + useMemo: function useMemo(nextCreate, deps) { + currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); + var nextDeps = void 0 === deps ? null : deps; + if (null !== (workInProgressHook = createWorkInProgressHook())) { + var prevState = workInProgressHook.memoizedState; + if (null !== prevState) + if (null !== nextDeps) + if ( + (function areHookInputsEqual(nextDeps, prevDeps) { + if (null === prevDeps) + return ( + error( + '%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.', + currentHookNameInDev, + ), + !1 + ); + nextDeps.length !== prevDeps.length && + error( + 'The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s', + currentHookNameInDev, + '[' + nextDeps.join(', ') + ']', + '[' + prevDeps.join(', ') + ']', + ); + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) + if (!objectIs(nextDeps[i], prevDeps[i])) return !1; + return !0; + })(nextDeps, prevState[1]) + ) + return prevState[0]; + } + isInHookUserCodeInDev = !0; + var nextValue = nextCreate(); + return ( + (isInHookUserCodeInDev = !1), (workInProgressHook.memoizedState = [nextValue, nextDeps]), nextValue + ); + }, + useReducer, + useRef: function useRef(initialValue) { + currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); + var previousRef = (workInProgressHook = createWorkInProgressHook()).memoizedState; + if (null === previousRef) { + var ref = { current: initialValue }; + return Object.seal(ref), (workInProgressHook.memoizedState = ref), ref; + } + return previousRef; + }, + useState: function useState(initialState) { + return (currentHookNameInDev = 'useState'), useReducer(basicStateReducer, initialState); + }, + useLayoutEffect: function useLayoutEffect(create, inputs) { + (currentHookNameInDev = 'useLayoutEffect'), + error( + "useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://fb.me/react-uselayouteffect-ssr for common fixes.", + ); + }, + useCallback: function useCallback(callback, deps) { + return callback; + }, + useImperativeHandle: noop, + useEffect: noop, + useDebugValue: noop, + useResponder: function useResponder(responder, props) { + return { props, responder }; + }, + useDeferredValue: function useDeferredValue(value, config) { + return resolveCurrentlyRenderingComponent(), value; + }, + useTransition: function useTransition(config) { + return ( + resolveCurrentlyRenderingComponent(), + [ + function (callback) { + callback(); + }, + !1, + ] + ); + }, + }, + HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml', + SVG_NAMESPACE = 'http://www.w3.org/2000/svg', + Namespaces_html = HTML_NAMESPACE; + function getIntrinsicNamespace(type) { + switch (type) { + case 'svg': + return SVG_NAMESPACE; + case 'math': + return 'http://www.w3.org/1998/Math/MathML'; + default: + return HTML_NAMESPACE; + } + } + function getChildNamespace(parentNamespace, type) { + return null == parentNamespace || parentNamespace === HTML_NAMESPACE + ? getIntrinsicNamespace(type) + : parentNamespace === SVG_NAMESPACE && 'foreignObject' === type + ? HTML_NAMESPACE + : parentNamespace; + } + var ReactDebugCurrentFrame$2, + ReactControlledValuePropTypes = { checkPropTypes: null }; + ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame; + var hasReadOnlyValue = { button: !0, checkbox: !0, image: !0, hidden: !0, radio: !0, reset: !0, submit: !0 }, + propTypes = { + value: function (props, propName, componentName) { + return hasReadOnlyValue[props.type] || + props.onChange || + props.readOnly || + props.disabled || + null == props[propName] + ? null + : new Error( + 'You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.', + ); + }, + checked: function (props, propName, componentName) { + return props.onChange || props.readOnly || props.disabled || null == props[propName] + ? null + : new Error( + 'You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.', + ); + }, + }; + ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) { + checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum); + }; + var omittedCloseTags = { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0, + }, + voidElementTags = _assign({ menuitem: !0 }, omittedCloseTags), + ReactDebugCurrentFrame$3 = null; + ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame; + var isUnitlessNumber = { + animationIterationCount: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0, + }; + var prefixes = ['Webkit', 'ms', 'Moz', 'O']; + function dangerousStyleValue(name, value, isCustomProperty) { + return null == value || 'boolean' == typeof value || '' === value + ? '' + : isCustomProperty || + 'number' != typeof value || + 0 === value || + (isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) + ? ('' + value).trim() + : value + 'px'; + } + Object.keys(isUnitlessNumber).forEach(function (prop) { + prefixes.forEach(function (prefix) { + isUnitlessNumber[ + (function prefixKey(prefix, key) { + return prefix + key.charAt(0).toUpperCase() + key.substring(1); + })(prefix, prop) + ] = isUnitlessNumber[prop]; + }); + }); + var uppercasePattern = /([A-Z])/g, + msPattern = /^ms-/; + function isCustomComponent(tagName, props) { + if (-1 === tagName.indexOf('-')) return 'string' == typeof props.is; + switch (tagName) { + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return !1; + default: + return !0; + } + } + var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, + msPattern$1 = /^-ms-/, + hyphenPattern = /-(.)/g, + badStyleValueWithSemicolonPattern = /;\s*$/, + warnedStyleNames = {}, + warnedStyleValues = {}, + warnedForNaNValue = !1, + warnedForInfinityValue = !1, + warnHyphenatedStyleName = function (name) { + (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) || + ((warnedStyleNames[name] = !0), + error( + 'Unsupported style property %s. Did you mean %s?', + name, + name.replace(msPattern$1, 'ms-').replace(hyphenPattern, function (_, character) { + return character.toUpperCase(); + }), + )); + }, + warnValidStyle$1 = function (name, value) { + name.indexOf('-') > -1 + ? warnHyphenatedStyleName(name) + : badVendoredStyleNamePattern.test(name) + ? (function (name) { + (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) || + ((warnedStyleNames[name] = !0), + error( + 'Unsupported vendor-prefixed style property %s. Did you mean %s?', + name, + name.charAt(0).toUpperCase() + name.slice(1), + )); + })(name) + : badStyleValueWithSemicolonPattern.test(value) && + (function (name, value) { + (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) || + ((warnedStyleValues[value] = !0), + error( + 'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.', + name, + value.replace(badStyleValueWithSemicolonPattern, ''), + )); + })(name, value), + 'number' == typeof value && + (isNaN(value) + ? (function (name, value) { + warnedForNaNValue || + ((warnedForNaNValue = !0), + error('`NaN` is an invalid value for the `%s` css style property.', name)); + })(name) + : isFinite(value) || + (function (name, value) { + warnedForInfinityValue || + ((warnedForInfinityValue = !0), + error('`Infinity` is an invalid value for the `%s` css style property.', name)); + })(name)); + }, + ariaProperties = { + 'aria-current': 0, + 'aria-details': 0, + 'aria-disabled': 0, + 'aria-hidden': 0, + 'aria-invalid': 0, + 'aria-keyshortcuts': 0, + 'aria-label': 0, + 'aria-roledescription': 0, + 'aria-autocomplete': 0, + 'aria-checked': 0, + 'aria-expanded': 0, + 'aria-haspopup': 0, + 'aria-level': 0, + 'aria-modal': 0, + 'aria-multiline': 0, + 'aria-multiselectable': 0, + 'aria-orientation': 0, + 'aria-placeholder': 0, + 'aria-pressed': 0, + 'aria-readonly': 0, + 'aria-required': 0, + 'aria-selected': 0, + 'aria-sort': 0, + 'aria-valuemax': 0, + 'aria-valuemin': 0, + 'aria-valuenow': 0, + 'aria-valuetext': 0, + 'aria-atomic': 0, + 'aria-busy': 0, + 'aria-live': 0, + 'aria-relevant': 0, + 'aria-dropeffect': 0, + 'aria-grabbed': 0, + 'aria-activedescendant': 0, + 'aria-colcount': 0, + 'aria-colindex': 0, + 'aria-colspan': 0, + 'aria-controls': 0, + 'aria-describedby': 0, + 'aria-errormessage': 0, + 'aria-flowto': 0, + 'aria-labelledby': 0, + 'aria-owns': 0, + 'aria-posinset': 0, + 'aria-rowcount': 0, + 'aria-rowindex': 0, + 'aria-rowspan': 0, + 'aria-setsize': 0, + }, + warnedProperties = {}, + rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'), + rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'), + hasOwnProperty$1 = Object.prototype.hasOwnProperty; + function validateProperty(tagName, name) { + if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) return !0; + if (rARIACamel.test(name)) { + var ariaName = 'aria-' + name.slice(4).toLowerCase(), + correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; + if (null == correctName) + return ( + error( + 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', + name, + ), + (warnedProperties[name] = !0), + !0 + ); + if (name !== correctName) + return ( + error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName), + (warnedProperties[name] = !0), + !0 + ); + } + if (rARIA.test(name)) { + var lowerCasedName = name.toLowerCase(), + standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; + if (null == standardName) return (warnedProperties[name] = !0), !1; + if (name !== standardName) + return ( + error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName), + (warnedProperties[name] = !0), + !0 + ); + } + return !0; + } + function validateProperties(type, props) { + isCustomComponent(type, props) || + (function warnInvalidARIAProps(type, props) { + var invalidProps = []; + for (var key in props) validateProperty(0, key) || invalidProps.push(key); + var unknownPropString = invalidProps + .map(function (prop) { + return '`' + prop + '`'; + }) + .join(', '); + 1 === invalidProps.length + ? error( + 'Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop', + unknownPropString, + type, + ) + : invalidProps.length > 1 && + error( + 'Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop', + unknownPropString, + type, + ); + })(type, props); + } + var didWarnValueNull = !1; + var validateProperty$1, + registrationNameModules = {}, + possibleRegistrationNames = {}, + possibleStandardNames = { + accept: 'accept', + acceptcharset: 'acceptCharset', + 'accept-charset': 'acceptCharset', + accesskey: 'accessKey', + action: 'action', + allowfullscreen: 'allowFullScreen', + alt: 'alt', + as: 'as', + async: 'async', + autocapitalize: 'autoCapitalize', + autocomplete: 'autoComplete', + autocorrect: 'autoCorrect', + autofocus: 'autoFocus', + autoplay: 'autoPlay', + autosave: 'autoSave', + capture: 'capture', + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing', + challenge: 'challenge', + charset: 'charSet', + checked: 'checked', + children: 'children', + cite: 'cite', + class: 'className', + classid: 'classID', + classname: 'className', + cols: 'cols', + colspan: 'colSpan', + content: 'content', + contenteditable: 'contentEditable', + contextmenu: 'contextMenu', + controls: 'controls', + controlslist: 'controlsList', + coords: 'coords', + crossorigin: 'crossOrigin', + dangerouslysetinnerhtml: 'dangerouslySetInnerHTML', + data: 'data', + datetime: 'dateTime', + default: 'default', + defaultchecked: 'defaultChecked', + defaultvalue: 'defaultValue', + defer: 'defer', + dir: 'dir', + disabled: 'disabled', + disablepictureinpicture: 'disablePictureInPicture', + download: 'download', + draggable: 'draggable', + enctype: 'encType', + for: 'htmlFor', + form: 'form', + formmethod: 'formMethod', + formaction: 'formAction', + formenctype: 'formEncType', + formnovalidate: 'formNoValidate', + formtarget: 'formTarget', + frameborder: 'frameBorder', + headers: 'headers', + height: 'height', + hidden: 'hidden', + high: 'high', + href: 'href', + hreflang: 'hrefLang', + htmlfor: 'htmlFor', + httpequiv: 'httpEquiv', + 'http-equiv': 'httpEquiv', + icon: 'icon', + id: 'id', + innerhtml: 'innerHTML', + inputmode: 'inputMode', + integrity: 'integrity', + is: 'is', + itemid: 'itemID', + itemprop: 'itemProp', + itemref: 'itemRef', + itemscope: 'itemScope', + itemtype: 'itemType', + keyparams: 'keyParams', + keytype: 'keyType', + kind: 'kind', + label: 'label', + lang: 'lang', + list: 'list', + loop: 'loop', + low: 'low', + manifest: 'manifest', + marginwidth: 'marginWidth', + marginheight: 'marginHeight', + max: 'max', + maxlength: 'maxLength', + media: 'media', + mediagroup: 'mediaGroup', + method: 'method', + min: 'min', + minlength: 'minLength', + multiple: 'multiple', + muted: 'muted', + name: 'name', + nomodule: 'noModule', + nonce: 'nonce', + novalidate: 'noValidate', + open: 'open', + optimum: 'optimum', + pattern: 'pattern', + placeholder: 'placeholder', + playsinline: 'playsInline', + poster: 'poster', + preload: 'preload', + profile: 'profile', + radiogroup: 'radioGroup', + readonly: 'readOnly', + referrerpolicy: 'referrerPolicy', + rel: 'rel', + required: 'required', + reversed: 'reversed', + role: 'role', + rows: 'rows', + rowspan: 'rowSpan', + sandbox: 'sandbox', + scope: 'scope', + scoped: 'scoped', + scrolling: 'scrolling', + seamless: 'seamless', + selected: 'selected', + shape: 'shape', + size: 'size', + sizes: 'sizes', + span: 'span', + spellcheck: 'spellCheck', + src: 'src', + srcdoc: 'srcDoc', + srclang: 'srcLang', + srcset: 'srcSet', + start: 'start', + step: 'step', + style: 'style', + summary: 'summary', + tabindex: 'tabIndex', + target: 'target', + title: 'title', + type: 'type', + usemap: 'useMap', + value: 'value', + width: 'width', + wmode: 'wmode', + wrap: 'wrap', + about: 'about', + accentheight: 'accentHeight', + 'accent-height': 'accentHeight', + accumulate: 'accumulate', + additive: 'additive', + alignmentbaseline: 'alignmentBaseline', + 'alignment-baseline': 'alignmentBaseline', + allowreorder: 'allowReorder', + alphabetic: 'alphabetic', + amplitude: 'amplitude', + arabicform: 'arabicForm', + 'arabic-form': 'arabicForm', + ascent: 'ascent', + attributename: 'attributeName', + attributetype: 'attributeType', + autoreverse: 'autoReverse', + azimuth: 'azimuth', + basefrequency: 'baseFrequency', + baselineshift: 'baselineShift', + 'baseline-shift': 'baselineShift', + baseprofile: 'baseProfile', + bbox: 'bbox', + begin: 'begin', + bias: 'bias', + by: 'by', + calcmode: 'calcMode', + capheight: 'capHeight', + 'cap-height': 'capHeight', + clip: 'clip', + clippath: 'clipPath', + 'clip-path': 'clipPath', + clippathunits: 'clipPathUnits', + cliprule: 'clipRule', + 'clip-rule': 'clipRule', + color: 'color', + colorinterpolation: 'colorInterpolation', + 'color-interpolation': 'colorInterpolation', + colorinterpolationfilters: 'colorInterpolationFilters', + 'color-interpolation-filters': 'colorInterpolationFilters', + colorprofile: 'colorProfile', + 'color-profile': 'colorProfile', + colorrendering: 'colorRendering', + 'color-rendering': 'colorRendering', + contentscripttype: 'contentScriptType', + contentstyletype: 'contentStyleType', + cursor: 'cursor', + cx: 'cx', + cy: 'cy', + d: 'd', + datatype: 'datatype', + decelerate: 'decelerate', + descent: 'descent', + diffuseconstant: 'diffuseConstant', + direction: 'direction', + display: 'display', + divisor: 'divisor', + dominantbaseline: 'dominantBaseline', + 'dominant-baseline': 'dominantBaseline', + dur: 'dur', + dx: 'dx', + dy: 'dy', + edgemode: 'edgeMode', + elevation: 'elevation', + enablebackground: 'enableBackground', + 'enable-background': 'enableBackground', + end: 'end', + exponent: 'exponent', + externalresourcesrequired: 'externalResourcesRequired', + fill: 'fill', + fillopacity: 'fillOpacity', + 'fill-opacity': 'fillOpacity', + fillrule: 'fillRule', + 'fill-rule': 'fillRule', + filter: 'filter', + filterres: 'filterRes', + filterunits: 'filterUnits', + floodopacity: 'floodOpacity', + 'flood-opacity': 'floodOpacity', + floodcolor: 'floodColor', + 'flood-color': 'floodColor', + focusable: 'focusable', + fontfamily: 'fontFamily', + 'font-family': 'fontFamily', + fontsize: 'fontSize', + 'font-size': 'fontSize', + fontsizeadjust: 'fontSizeAdjust', + 'font-size-adjust': 'fontSizeAdjust', + fontstretch: 'fontStretch', + 'font-stretch': 'fontStretch', + fontstyle: 'fontStyle', + 'font-style': 'fontStyle', + fontvariant: 'fontVariant', + 'font-variant': 'fontVariant', + fontweight: 'fontWeight', + 'font-weight': 'fontWeight', + format: 'format', + from: 'from', + fx: 'fx', + fy: 'fy', + g1: 'g1', + g2: 'g2', + glyphname: 'glyphName', + 'glyph-name': 'glyphName', + glyphorientationhorizontal: 'glyphOrientationHorizontal', + 'glyph-orientation-horizontal': 'glyphOrientationHorizontal', + glyphorientationvertical: 'glyphOrientationVertical', + 'glyph-orientation-vertical': 'glyphOrientationVertical', + glyphref: 'glyphRef', + gradienttransform: 'gradientTransform', + gradientunits: 'gradientUnits', + hanging: 'hanging', + horizadvx: 'horizAdvX', + 'horiz-adv-x': 'horizAdvX', + horizoriginx: 'horizOriginX', + 'horiz-origin-x': 'horizOriginX', + ideographic: 'ideographic', + imagerendering: 'imageRendering', + 'image-rendering': 'imageRendering', + in2: 'in2', + in: 'in', + inlist: 'inlist', + intercept: 'intercept', + k1: 'k1', + k2: 'k2', + k3: 'k3', + k4: 'k4', + k: 'k', + kernelmatrix: 'kernelMatrix', + kernelunitlength: 'kernelUnitLength', + kerning: 'kerning', + keypoints: 'keyPoints', + keysplines: 'keySplines', + keytimes: 'keyTimes', + lengthadjust: 'lengthAdjust', + letterspacing: 'letterSpacing', + 'letter-spacing': 'letterSpacing', + lightingcolor: 'lightingColor', + 'lighting-color': 'lightingColor', + limitingconeangle: 'limitingConeAngle', + local: 'local', + markerend: 'markerEnd', + 'marker-end': 'markerEnd', + markerheight: 'markerHeight', + markermid: 'markerMid', + 'marker-mid': 'markerMid', + markerstart: 'markerStart', + 'marker-start': 'markerStart', + markerunits: 'markerUnits', + markerwidth: 'markerWidth', + mask: 'mask', + maskcontentunits: 'maskContentUnits', + maskunits: 'maskUnits', + mathematical: 'mathematical', + mode: 'mode', + numoctaves: 'numOctaves', + offset: 'offset', + opacity: 'opacity', + operator: 'operator', + order: 'order', + orient: 'orient', + orientation: 'orientation', + origin: 'origin', + overflow: 'overflow', + overlineposition: 'overlinePosition', + 'overline-position': 'overlinePosition', + overlinethickness: 'overlineThickness', + 'overline-thickness': 'overlineThickness', + paintorder: 'paintOrder', + 'paint-order': 'paintOrder', + panose1: 'panose1', + 'panose-1': 'panose1', + pathlength: 'pathLength', + patterncontentunits: 'patternContentUnits', + patterntransform: 'patternTransform', + patternunits: 'patternUnits', + pointerevents: 'pointerEvents', + 'pointer-events': 'pointerEvents', + points: 'points', + pointsatx: 'pointsAtX', + pointsaty: 'pointsAtY', + pointsatz: 'pointsAtZ', + prefix: 'prefix', + preservealpha: 'preserveAlpha', + preserveaspectratio: 'preserveAspectRatio', + primitiveunits: 'primitiveUnits', + property: 'property', + r: 'r', + radius: 'radius', + refx: 'refX', + refy: 'refY', + renderingintent: 'renderingIntent', + 'rendering-intent': 'renderingIntent', + repeatcount: 'repeatCount', + repeatdur: 'repeatDur', + requiredextensions: 'requiredExtensions', + requiredfeatures: 'requiredFeatures', + resource: 'resource', + restart: 'restart', + result: 'result', + results: 'results', + rotate: 'rotate', + rx: 'rx', + ry: 'ry', + scale: 'scale', + security: 'security', + seed: 'seed', + shaperendering: 'shapeRendering', + 'shape-rendering': 'shapeRendering', + slope: 'slope', + spacing: 'spacing', + specularconstant: 'specularConstant', + specularexponent: 'specularExponent', + speed: 'speed', + spreadmethod: 'spreadMethod', + startoffset: 'startOffset', + stddeviation: 'stdDeviation', + stemh: 'stemh', + stemv: 'stemv', + stitchtiles: 'stitchTiles', + stopcolor: 'stopColor', + 'stop-color': 'stopColor', + stopopacity: 'stopOpacity', + 'stop-opacity': 'stopOpacity', + strikethroughposition: 'strikethroughPosition', + 'strikethrough-position': 'strikethroughPosition', + strikethroughthickness: 'strikethroughThickness', + 'strikethrough-thickness': 'strikethroughThickness', + string: 'string', + stroke: 'stroke', + strokedasharray: 'strokeDasharray', + 'stroke-dasharray': 'strokeDasharray', + strokedashoffset: 'strokeDashoffset', + 'stroke-dashoffset': 'strokeDashoffset', + strokelinecap: 'strokeLinecap', + 'stroke-linecap': 'strokeLinecap', + strokelinejoin: 'strokeLinejoin', + 'stroke-linejoin': 'strokeLinejoin', + strokemiterlimit: 'strokeMiterlimit', + 'stroke-miterlimit': 'strokeMiterlimit', + strokewidth: 'strokeWidth', + 'stroke-width': 'strokeWidth', + strokeopacity: 'strokeOpacity', + 'stroke-opacity': 'strokeOpacity', + suppresscontenteditablewarning: 'suppressContentEditableWarning', + suppresshydrationwarning: 'suppressHydrationWarning', + surfacescale: 'surfaceScale', + systemlanguage: 'systemLanguage', + tablevalues: 'tableValues', + targetx: 'targetX', + targety: 'targetY', + textanchor: 'textAnchor', + 'text-anchor': 'textAnchor', + textdecoration: 'textDecoration', + 'text-decoration': 'textDecoration', + textlength: 'textLength', + textrendering: 'textRendering', + 'text-rendering': 'textRendering', + to: 'to', + transform: 'transform', + typeof: 'typeof', + u1: 'u1', + u2: 'u2', + underlineposition: 'underlinePosition', + 'underline-position': 'underlinePosition', + underlinethickness: 'underlineThickness', + 'underline-thickness': 'underlineThickness', + unicode: 'unicode', + unicodebidi: 'unicodeBidi', + 'unicode-bidi': 'unicodeBidi', + unicoderange: 'unicodeRange', + 'unicode-range': 'unicodeRange', + unitsperem: 'unitsPerEm', + 'units-per-em': 'unitsPerEm', + unselectable: 'unselectable', + valphabetic: 'vAlphabetic', + 'v-alphabetic': 'vAlphabetic', + values: 'values', + vectoreffect: 'vectorEffect', + 'vector-effect': 'vectorEffect', + version: 'version', + vertadvy: 'vertAdvY', + 'vert-adv-y': 'vertAdvY', + vertoriginx: 'vertOriginX', + 'vert-origin-x': 'vertOriginX', + vertoriginy: 'vertOriginY', + 'vert-origin-y': 'vertOriginY', + vhanging: 'vHanging', + 'v-hanging': 'vHanging', + videographic: 'vIdeographic', + 'v-ideographic': 'vIdeographic', + viewbox: 'viewBox', + viewtarget: 'viewTarget', + visibility: 'visibility', + vmathematical: 'vMathematical', + 'v-mathematical': 'vMathematical', + vocab: 'vocab', + widths: 'widths', + wordspacing: 'wordSpacing', + 'word-spacing': 'wordSpacing', + writingmode: 'writingMode', + 'writing-mode': 'writingMode', + x1: 'x1', + x2: 'x2', + x: 'x', + xchannelselector: 'xChannelSelector', + xheight: 'xHeight', + 'x-height': 'xHeight', + xlinkactuate: 'xlinkActuate', + 'xlink:actuate': 'xlinkActuate', + xlinkarcrole: 'xlinkArcrole', + 'xlink:arcrole': 'xlinkArcrole', + xlinkhref: 'xlinkHref', + 'xlink:href': 'xlinkHref', + xlinkrole: 'xlinkRole', + 'xlink:role': 'xlinkRole', + xlinkshow: 'xlinkShow', + 'xlink:show': 'xlinkShow', + xlinktitle: 'xlinkTitle', + 'xlink:title': 'xlinkTitle', + xlinktype: 'xlinkType', + 'xlink:type': 'xlinkType', + xmlbase: 'xmlBase', + 'xml:base': 'xmlBase', + xmllang: 'xmlLang', + 'xml:lang': 'xmlLang', + xmlns: 'xmlns', + 'xml:space': 'xmlSpace', + xmlnsxlink: 'xmlnsXlink', + 'xmlns:xlink': 'xmlnsXlink', + xmlspace: 'xmlSpace', + y1: 'y1', + y2: 'y2', + y: 'y', + ychannelselector: 'yChannelSelector', + z: 'z', + zoomandpan: 'zoomAndPan', + }, + warnedProperties$1 = {}, + _hasOwnProperty = Object.prototype.hasOwnProperty, + EVENT_NAME_REGEX = /^on./, + INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, + rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$'), + rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$'); + validateProperty$1 = function (tagName, name, value, canUseEventSystem) { + if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0; + var lowerCasedName = name.toLowerCase(); + if ('onfocusin' === lowerCasedName || 'onfocusout' === lowerCasedName) + return ( + error( + 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.', + ), + (warnedProperties$1[name] = !0), + !0 + ); + if (canUseEventSystem) { + if (registrationNameModules.hasOwnProperty(name)) return !0; + var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) + ? possibleRegistrationNames[lowerCasedName] + : null; + if (null != registrationName) + return ( + error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName), + (warnedProperties$1[name] = !0), + !0 + ); + if (EVENT_NAME_REGEX.test(name)) + return ( + error('Unknown event handler property `%s`. It will be ignored.', name), + (warnedProperties$1[name] = !0), + !0 + ); + } else if (EVENT_NAME_REGEX.test(name)) + return ( + INVALID_EVENT_NAME_REGEX.test(name) && + error( + 'Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.', + name, + ), + (warnedProperties$1[name] = !0), + !0 + ); + if (rARIA$1.test(name) || rARIACamel$1.test(name)) return !0; + if ('innerhtml' === lowerCasedName) + return ( + error( + 'Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`.', + ), + (warnedProperties$1[name] = !0), + !0 + ); + if ('aria' === lowerCasedName) + return ( + error( + 'The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead.', + ), + (warnedProperties$1[name] = !0), + !0 + ); + if ('is' === lowerCasedName && null != value && 'string' != typeof value) + return ( + error( + 'Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.', + typeof value, + ), + (warnedProperties$1[name] = !0), + !0 + ); + if ('number' == typeof value && isNaN(value)) + return ( + error('Received NaN for the `%s` attribute. If this is expected, cast the value to a string.', name), + (warnedProperties$1[name] = !0), + !0 + ); + var propertyInfo = getPropertyInfo(name), + isReserved = null !== propertyInfo && 0 === propertyInfo.type; + if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { + var standardName = possibleStandardNames[lowerCasedName]; + if (standardName !== name) + return ( + error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName), + (warnedProperties$1[name] = !0), + !0 + ); + } else if (!isReserved && name !== lowerCasedName) + return ( + error( + 'React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.', + name, + lowerCasedName, + ), + (warnedProperties$1[name] = !0), + !0 + ); + return 'boolean' == typeof value && shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) + ? (value + ? error( + 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', + value, + name, + name, + value, + name, + ) + : error( + 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', + value, + name, + name, + value, + name, + name, + name, + ), + (warnedProperties$1[name] = !0), + !0) + : !!isReserved || + (shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) + ? ((warnedProperties$1[name] = !0), !1) + : (('false' !== value && 'true' !== value) || + null === propertyInfo || + 3 !== propertyInfo.type || + (error( + 'Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?', + value, + name, + 'false' === value + ? 'The browser will interpret it as a truthy value.' + : 'Although this works, it will not work as expected if you pass the string "false".', + name, + value, + ), + (warnedProperties$1[name] = !0)), + !0)); + }; + function validateProperties$2(type, props, canUseEventSystem) { + isCustomComponent(type, props) || + (function (type, props, canUseEventSystem) { + var unknownProps = []; + for (var key in props) + validateProperty$1(0, key, props[key], canUseEventSystem) || unknownProps.push(key); + var unknownPropString = unknownProps + .map(function (prop) { + return '`' + prop + '`'; + }) + .join(', '); + 1 === unknownProps.length + ? error( + 'Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react-attribute-behavior', + unknownPropString, + type, + ) + : unknownProps.length > 1 && + error( + 'Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://fb.me/react-attribute-behavior', + unknownPropString, + type, + ); + })(type, props, canUseEventSystem); + } + var ReactDebugCurrentFrame$4, + describeStackFrame, + validatePropertiesInDevelopment, + pushCurrentDebugStack, + pushElementToDebugStack, + popCurrentDebugStack, + toArray = React.Children.toArray, + currentDebugStacks = [], + ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher, + prevGetCurrentStackImpl = null, + getCurrentServerStackImpl = function () { + return ''; + }, + hasWarnedAboutUsingContextAsConsumer = !1; + (ReactDebugCurrentFrame$4 = ReactSharedInternals.ReactDebugCurrentFrame), + (validatePropertiesInDevelopment = function (type, props) { + validateProperties(type, props), + (function validateProperties$1(type, props) { + ('input' !== type && 'textarea' !== type && 'select' !== type) || + null == props || + null !== props.value || + didWarnValueNull || + ((didWarnValueNull = !0), + 'select' === type && props.multiple + ? error( + '`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.', + type, + ) + : error( + '`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.', + type, + )); + })(type, props), + validateProperties$2(type, props, !1); + }), + (describeStackFrame = function (element) { + var source = element._source; + return (function describeComponentFrame(name, source, ownerName) { + var sourceInfo = ''; + if (source) { + var path = source.fileName, + fileName = path.replace(BEFORE_SLASH_RE, ''); + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + if (match) { + var pathBeforeSlash = match[1]; + pathBeforeSlash && (fileName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '') + '/' + fileName); + } + } + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else ownerName && (sourceInfo = ' (created by ' + ownerName + ')'); + return '\n in ' + (name || 'Unknown') + sourceInfo; + })(getComponentName(element.type), source, null); + }), + (pushCurrentDebugStack = function (stack) { + currentDebugStacks.push(stack), + 1 === currentDebugStacks.length && + ((prevGetCurrentStackImpl = ReactDebugCurrentFrame$4.getCurrentStack), + (ReactDebugCurrentFrame$4.getCurrentStack = getCurrentServerStackImpl)); + }), + (pushElementToDebugStack = function (element) { + var stack = currentDebugStacks[currentDebugStacks.length - 1]; + stack[stack.length - 1].debugElementStack.push(element); + }), + (popCurrentDebugStack = function () { + currentDebugStacks.pop(), + 0 === currentDebugStacks.length && + ((ReactDebugCurrentFrame$4.getCurrentStack = prevGetCurrentStackImpl), + (prevGetCurrentStackImpl = null)); + }), + (getCurrentServerStackImpl = function () { + if (0 === currentDebugStacks.length) return ''; + for ( + var frames = currentDebugStacks[currentDebugStacks.length - 1], stack = '', i = frames.length - 1; + i >= 0; + i-- + ) + for ( + var debugElementStack = frames[i].debugElementStack, ii = debugElementStack.length - 1; + ii >= 0; + ii-- + ) + stack += describeStackFrame(debugElementStack[ii]); + return stack; + }); + var didWarnDefaultInputValue = !1, + didWarnDefaultChecked = !1, + didWarnDefaultSelectValue = !1, + didWarnDefaultTextareaValue = !1, + didWarnInvalidOptionChildren = !1, + didWarnAboutNoopUpdateForComponent = {}, + didWarnAboutBadClass = {}, + didWarnAboutModulePatternComponent = {}, + didWarnAboutDeprecatedWillMount = {}, + didWarnAboutUndefinedDerivedState = {}, + didWarnAboutUninitializedState = {}, + valuePropNames = ['value', 'defaultValue'], + newlineEatingTags = { listing: !0, pre: !0, textarea: !0 }, + VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, + validatedTagCache = {}; + var styleNameCache = {}, + processStyleName = function (styleName) { + if (styleNameCache.hasOwnProperty(styleName)) return styleNameCache[styleName]; + var result = (function hyphenateStyleName(name) { + return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-'); + })(styleName); + return (styleNameCache[styleName] = result), result; + }; + function createMarkupForStyles(styles) { + var serialized = '', + delimiter = ''; + for (var styleName in styles) + if (styles.hasOwnProperty(styleName)) { + var isCustomProperty = 0 === styleName.indexOf('--'), + styleValue = styles[styleName]; + isCustomProperty || warnValidStyle$1(styleName, styleValue), + null != styleValue && + ((serialized += delimiter + (isCustomProperty ? styleName : processStyleName(styleName)) + ':'), + (serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty)), + (delimiter = ';')); + } + return serialized || null; + } + function warnNoop(publicInstance, callerName) { + var _constructor = publicInstance.constructor, + componentName = (_constructor && getComponentName(_constructor)) || 'ReactClass', + warningKey = componentName + '.' + callerName; + didWarnAboutNoopUpdateForComponent[warningKey] || + (error( + '%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.', + callerName, + callerName, + componentName, + ), + (didWarnAboutNoopUpdateForComponent[warningKey] = !0)); + } + var hasOwnProperty$2 = Object.prototype.hasOwnProperty, + RESERVED_PROPS = { + children: null, + dangerouslySetInnerHTML: null, + suppressContentEditableWarning: null, + suppressHydrationWarning: null, + }; + function validateRenderResult(child, type) { + if (void 0 === child) + throw Error( + (getComponentName(type) || 'Component') + + '(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.', + ); + } + function resolve(child, context, threadID) { + for (; React.isValidElement(child); ) { + var element = child, + Component = element.type; + if ((pushElementToDebugStack(element), 'function' != typeof Component)) break; + processChild(element, Component); + } + function processChild(element, Component) { + var inst, + isClass = (function shouldConstruct(Component) { + return Component.prototype && Component.prototype.isReactComponent; + })(Component), + publicContext = (function processContext(type, context, threadID, isClass) { + if (isClass) { + var contextType = type.contextType; + if ( + 'contextType' in type && + null !== contextType && + (void 0 === contextType || + contextType.$$typeof !== REACT_CONTEXT_TYPE || + void 0 !== contextType._context) && + !didWarnAboutInvalidateContextType.has(type) + ) { + didWarnAboutInvalidateContextType.add(type); + var addendum = ''; + (addendum = + void 0 === contextType + ? ' However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.' + : 'object' != typeof contextType + ? ' However, it is set to a ' + typeof contextType + '.' + : contextType.$$typeof === REACT_PROVIDER_TYPE + ? ' Did you accidentally pass the Context.Provider instead?' + : void 0 !== contextType._context + ? ' Did you accidentally pass the Context.Consumer instead?' + : ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.'), + error( + '%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s', + getComponentName(type) || 'Component', + addendum, + ); + } + if ('object' == typeof contextType && null !== contextType) + return validateContextBounds(contextType, threadID), contextType[threadID]; + var maskedContext = maskContext(type, context); + return ( + type.contextTypes && checkContextTypes(type.contextTypes, maskedContext, 'context'), maskedContext + ); + } + var _maskedContext = maskContext(type, context); + return ( + type.contextTypes && checkContextTypes(type.contextTypes, _maskedContext, 'context'), _maskedContext + ); + })(Component, context, threadID, isClass), + queue = [], + replace = !1, + updater = { + isMounted: function (publicInstance) { + return !1; + }, + enqueueForceUpdate: function (publicInstance) { + if (null === queue) return warnNoop(publicInstance, 'forceUpdate'), null; + }, + enqueueReplaceState: function (publicInstance, completeState) { + (replace = !0), (queue = [completeState]); + }, + enqueueSetState: function (publicInstance, currentPartialState) { + if (null === queue) return warnNoop(publicInstance, 'setState'), null; + queue.push(currentPartialState); + }, + }; + if (isClass) { + if ( + ((inst = new Component(element.props, publicContext, updater)), + 'function' == typeof Component.getDerivedStateFromProps) + ) { + if (null === inst.state || void 0 === inst.state) { + var componentName = getComponentName(Component) || 'Unknown'; + didWarnAboutUninitializedState[componentName] || + (error( + '`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', + componentName, + null === inst.state ? 'null' : 'undefined', + componentName, + ), + (didWarnAboutUninitializedState[componentName] = !0)); + } + var partialState = Component.getDerivedStateFromProps.call(null, element.props, inst.state); + if (void 0 === partialState) { + var _componentName = getComponentName(Component) || 'Unknown'; + didWarnAboutUndefinedDerivedState[_componentName] || + (error( + '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.', + _componentName, + ), + (didWarnAboutUndefinedDerivedState[_componentName] = !0)); + } + null != partialState && (inst.state = _assign({}, inst.state, partialState)); + } + } else { + if (Component.prototype && 'function' == typeof Component.prototype.render) { + var _componentName2 = getComponentName(Component) || 'Unknown'; + didWarnAboutBadClass[_componentName2] || + (error( + "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", + _componentName2, + _componentName2, + ), + (didWarnAboutBadClass[_componentName2] = !0)); + } + if ( + (prepareToUseHooks({}), + (inst = Component(element.props, publicContext, updater)), + null == (inst = finishHooks(Component, element.props, inst, publicContext)) || null == inst.render) + ) + return void validateRenderResult((child = inst), Component); + var _componentName3 = getComponentName(Component) || 'Unknown'; + didWarnAboutModulePatternComponent[_componentName3] || + (error( + "The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", + _componentName3, + _componentName3, + _componentName3, + ), + (didWarnAboutModulePatternComponent[_componentName3] = !0)); + } + (inst.props = element.props), (inst.context = publicContext), (inst.updater = updater); + var childContext, + initialState = inst.state; + if ( + (void 0 === initialState && (inst.state = initialState = null), + 'function' == typeof inst.UNSAFE_componentWillMount || 'function' == typeof inst.componentWillMount) + ) { + if ('function' == typeof inst.componentWillMount) { + if (!0 !== inst.componentWillMount.__suppressDeprecationWarning) { + var _componentName4 = getComponentName(Component) || 'Unknown'; + didWarnAboutDeprecatedWillMount[_componentName4] || + (!(function warn(format) { + for ( + var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; + _key < _len; + _key++ + ) + args[_key - 1] = arguments[_key]; + printWarning('warn', format, args); + })( + 'componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s', + _componentName4, + ), + (didWarnAboutDeprecatedWillMount[_componentName4] = !0)); + } + 'function' != typeof Component.getDerivedStateFromProps && inst.componentWillMount(); + } + if ( + ('function' == typeof inst.UNSAFE_componentWillMount && + 'function' != typeof Component.getDerivedStateFromProps && + inst.UNSAFE_componentWillMount(), + queue.length) + ) { + var oldQueue = queue, + oldReplace = replace; + if (((queue = null), (replace = !1), oldReplace && 1 === oldQueue.length)) inst.state = oldQueue[0]; + else { + for ( + var nextState = oldReplace ? oldQueue[0] : inst.state, dontMutate = !0, i = oldReplace ? 1 : 0; + i < oldQueue.length; + i++ + ) { + var partial = oldQueue[i], + _partialState = + 'function' == typeof partial + ? partial.call(inst, nextState, element.props, publicContext) + : partial; + null != _partialState && + (dontMutate + ? ((dontMutate = !1), (nextState = _assign({}, nextState, _partialState))) + : _assign(nextState, _partialState)); + } + inst.state = nextState; + } + } else queue = null; + } + if ( + (void 0 === (child = inst.render()) && inst.render._isMockFunction && (child = null), + validateRenderResult(child, Component), + 'function' == typeof inst.getChildContext) + ) { + var _childContextTypes = Component.childContextTypes; + if ('object' == typeof _childContextTypes) { + for (var contextKey in (childContext = inst.getChildContext())) + if (!(contextKey in _childContextTypes)) + throw Error( + (getComponentName(Component) || 'Unknown') + + '.getChildContext(): key "' + + contextKey + + '" is not defined in childContextTypes.', + ); + } else + error( + '%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().', + getComponentName(Component) || 'Unknown', + ); + } + childContext && (context = _assign({}, context, childContext)); + } + return { child, context }; + } + var ReactDOMServerRenderer = (function () { + function ReactDOMServerRenderer(children, makeStaticMarkup) { + var flatChildren = (function flattenTopLevelChildren(children) { + if (!React.isValidElement(children)) return toArray(children); + var element = children; + if (element.type !== REACT_FRAGMENT_TYPE) return [element]; + var fragmentChildren = element.props.children; + return React.isValidElement(fragmentChildren) ? [fragmentChildren] : toArray(fragmentChildren); + })(children), + topFrame = { + type: null, + domNamespace: Namespaces_html, + children: flatChildren, + childIndex: 0, + context: emptyObject, + footer: '', + debugElementStack: [], + }; + (this.threadID = allocThreadID()), + (this.stack = [topFrame]), + (this.exhausted = !1), + (this.currentSelectValue = null), + (this.previousWasTextNode = !1), + (this.makeStaticMarkup = makeStaticMarkup), + (this.suspenseDepth = 0), + (this.contextIndex = -1), + (this.contextStack = []), + (this.contextValueStack = []), + (this.contextProviderStack = []); + } + var _proto = ReactDOMServerRenderer.prototype; + return ( + (_proto.destroy = function destroy() { + this.exhausted || ((this.exhausted = !0), this.clearProviders(), freeThreadID(this.threadID)); + }), + (_proto.pushProvider = function pushProvider(provider) { + var index = ++this.contextIndex, + context = provider.type._context, + threadID = this.threadID; + validateContextBounds(context, threadID); + var previousValue = context[threadID]; + (this.contextStack[index] = context), + (this.contextValueStack[index] = previousValue), + (this.contextProviderStack[index] = provider), + (context[threadID] = provider.props.value); + }), + (_proto.popProvider = function popProvider(provider) { + var index = this.contextIndex; + (index < 0 || provider !== this.contextProviderStack[index]) && error('Unexpected pop.'); + var context = this.contextStack[index], + previousValue = this.contextValueStack[index]; + (this.contextStack[index] = null), + (this.contextValueStack[index] = null), + (this.contextProviderStack[index] = null), + this.contextIndex--, + (context[this.threadID] = previousValue); + }), + (_proto.clearProviders = function clearProviders() { + for (var index = this.contextIndex; index >= 0; index--) { + var context = this.contextStack[index], + previousValue = this.contextValueStack[index]; + context[this.threadID] = previousValue; + } + }), + (_proto.read = function read(bytes) { + if (this.exhausted) return null; + var prevThreadID = currentThreadID; + setCurrentThreadID(this.threadID); + var prevDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = Dispatcher; + try { + for (var out = [''], suspended = !1; out[0].length < bytes; ) { + if (0 === this.stack.length) { + (this.exhausted = !0), freeThreadID(this.threadID); + break; + } + var frame = this.stack[this.stack.length - 1]; + if (suspended || frame.childIndex >= frame.children.length) { + var footer = frame.footer; + if (('' !== footer && (this.previousWasTextNode = !1), this.stack.pop(), 'select' === frame.type)) + this.currentSelectValue = null; + else if ( + null != frame.type && + null != frame.type.type && + frame.type.type.$$typeof === REACT_PROVIDER_TYPE + ) { + var provider = frame.type; + this.popProvider(provider); + } else if (frame.type === REACT_SUSPENSE_TYPE) { + this.suspenseDepth--; + var buffered = out.pop(); + if (suspended) { + suspended = !1; + var fallbackFrame = frame.fallbackFrame; + if (!fallbackFrame) + throw Error( + 'ReactDOMServer did not find an internal fallback frame for Suspense. This is a bug in React. Please file an issue.', + ); + this.stack.push(fallbackFrame), (out[this.suspenseDepth] += '\x3c!--$!--\x3e'); + continue; + } + out[this.suspenseDepth] += buffered; + } + out[this.suspenseDepth] += footer; + } else { + var child = frame.children[frame.childIndex++], + outBuffer = ''; + pushCurrentDebugStack(this.stack), (frame.debugElementStack.length = 0); + try { + outBuffer += this.render(child, frame.context, frame.domNamespace); + } catch (err) { + throw null != err && 'function' == typeof err.then + ? Error('ReactDOMServer does not yet support Suspense.') + : err; + } finally { + popCurrentDebugStack(); + } + out.length <= this.suspenseDepth && out.push(''), (out[this.suspenseDepth] += outBuffer); + } + } + return out[0]; + } finally { + (ReactCurrentDispatcher.current = prevDispatcher), setCurrentThreadID(prevThreadID); + } + }), + (_proto.render = function render(child, context, parentNamespace) { + if ('string' == typeof child || 'number' == typeof child) { + var text = '' + child; + return '' === text + ? '' + : this.makeStaticMarkup + ? escapeTextForBrowser(text) + : this.previousWasTextNode + ? '\x3c!-- --\x3e' + escapeTextForBrowser(text) + : ((this.previousWasTextNode = !0), escapeTextForBrowser(text)); + } + var nextChild, + _resolve = resolve(child, context, this.threadID); + if (((nextChild = _resolve.child), (context = _resolve.context), null === nextChild || !1 === nextChild)) + return ''; + if (!React.isValidElement(nextChild)) { + if (null != nextChild && null != nextChild.$$typeof) { + var $$typeof = nextChild.$$typeof; + if ($$typeof === REACT_PORTAL_TYPE) + throw Error( + 'Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.', + ); + throw Error( + 'Unknown element-like object type: ' + + $$typeof.toString() + + '. This is likely a bug in React. Please file an issue.', + ); + } + var frame = { + type: null, + domNamespace: parentNamespace, + children: toArray(nextChild), + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(frame), ''; + } + var nextElement = nextChild, + elementType = nextElement.type; + if ('string' == typeof elementType) return this.renderDOM(nextElement, context, parentNamespace); + switch (elementType) { + case REACT_STRICT_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_PROFILER_TYPE: + case REACT_SUSPENSE_LIST_TYPE: + case REACT_FRAGMENT_TYPE: + var _frame = { + type: null, + domNamespace: parentNamespace, + children: toArray(nextChild.props.children), + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(_frame), ''; + case REACT_SUSPENSE_TYPE: + throw Error('ReactDOMServer does not yet support Suspense.'); + } + if ('object' == typeof elementType && null !== elementType) + switch (elementType.$$typeof) { + case REACT_FORWARD_REF_TYPE: + var _nextChildren4, + element = nextChild; + prepareToUseHooks({}), + (_nextChildren4 = elementType.render(element.props, element.ref)), + (_nextChildren4 = finishHooks(elementType.render, element.props, _nextChildren4, element.ref)); + var _frame4 = { + type: null, + domNamespace: parentNamespace, + children: (_nextChildren4 = toArray(_nextChildren4)), + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(_frame4), ''; + case REACT_MEMO_TYPE: + var _element = nextChild, + _frame5 = { + type: null, + domNamespace: parentNamespace, + children: [ + React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props)), + ], + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(_frame5), ''; + case REACT_PROVIDER_TYPE: + var provider = nextChild, + nextProps = provider.props, + _frame6 = { + type: provider, + domNamespace: parentNamespace, + children: toArray(nextProps.children), + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.pushProvider(provider), this.stack.push(_frame6), ''; + case REACT_CONTEXT_TYPE: + var reactContext = nextChild.type; + void 0 === reactContext._context + ? reactContext !== reactContext.Consumer && + (hasWarnedAboutUsingContextAsConsumer || + ((hasWarnedAboutUsingContextAsConsumer = !0), + error( + 'Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?', + ))) + : (reactContext = reactContext._context); + var _nextProps = nextChild.props, + threadID = this.threadID; + validateContextBounds(reactContext, threadID); + var nextValue = reactContext[threadID], + _frame7 = { + type: nextChild, + domNamespace: parentNamespace, + children: toArray(_nextProps.children(nextValue)), + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(_frame7), ''; + case REACT_FUNDAMENTAL_TYPE: + throw Error('ReactDOMServer does not yet support the fundamental API.'); + case REACT_LAZY_TYPE: + var _element2 = nextChild, + lazyComponent = nextChild.type; + switch ( + ((function initializeLazyComponentType(lazyComponent) { + if (-1 === lazyComponent._status) { + lazyComponent._status = 0; + var thenable = (0, lazyComponent._ctor)(); + (lazyComponent._result = thenable), + thenable.then( + function (moduleObject) { + if (0 === lazyComponent._status) { + var defaultExport = moduleObject.default; + void 0 === defaultExport && + error( + "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", + moduleObject, + ), + (lazyComponent._status = 1), + (lazyComponent._result = defaultExport); + } + }, + function (error) { + 0 === lazyComponent._status && + ((lazyComponent._status = 2), (lazyComponent._result = error)); + }, + ); + } + })(lazyComponent), + lazyComponent._status) + ) { + case 1: + var _frame9 = { + type: null, + domNamespace: parentNamespace, + children: [ + React.createElement( + lazyComponent._result, + _assign({ ref: _element2.ref }, _element2.props), + ), + ], + childIndex: 0, + context, + footer: '', + debugElementStack: [], + }; + return this.stack.push(_frame9), ''; + case 2: + throw lazyComponent._result; + default: + throw Error('ReactDOMServer does not yet support lazy-loaded components.'); + } + case REACT_SCOPE_TYPE: + throw Error('ReactDOMServer does not yet support scope components.'); + } + var info = '', + owner = nextElement._owner; + (void 0 === elementType || + ('object' == typeof elementType && null !== elementType && 0 === Object.keys(elementType).length)) && + (info += + " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var ownerName = owner ? getComponentName(owner) : null; + throw ( + (ownerName && (info += '\n\nCheck the render method of `' + ownerName + '`.'), + Error( + 'Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + + (null == elementType ? elementType : typeof elementType) + + '.' + + info, + )) + ); + }), + (_proto.renderDOM = function renderDOM(element, context, parentNamespace) { + var tag = element.type.toLowerCase(), + namespace = parentNamespace; + parentNamespace === Namespaces_html && (namespace = getIntrinsicNamespace(tag)), + namespace === Namespaces_html && + tag !== element.type && + error( + '<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.', + element.type, + ), + (function validateDangerousTag(tag) { + if (!validatedTagCache.hasOwnProperty(tag)) { + if (!VALID_TAG_REGEX.test(tag)) throw Error('Invalid tag: ' + tag); + validatedTagCache[tag] = !0; + } + })(tag); + var props = element.props; + if ('input' === tag) + ReactControlledValuePropTypes.checkPropTypes('input', props), + void 0 === props.checked || + void 0 === props.defaultChecked || + didWarnDefaultChecked || + (error( + '%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components', + 'A component', + props.type, + ), + (didWarnDefaultChecked = !0)), + void 0 === props.value || + void 0 === props.defaultValue || + didWarnDefaultInputValue || + (error( + '%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components', + 'A component', + props.type, + ), + (didWarnDefaultInputValue = !0)), + (props = _assign({ type: void 0 }, props, { + defaultChecked: void 0, + defaultValue: void 0, + value: null != props.value ? props.value : props.defaultValue, + checked: null != props.checked ? props.checked : props.defaultChecked, + })); + else if ('textarea' === tag) { + ReactControlledValuePropTypes.checkPropTypes('textarea', props), + void 0 === props.value || + void 0 === props.defaultValue || + didWarnDefaultTextareaValue || + (error( + 'Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components', + ), + (didWarnDefaultTextareaValue = !0)); + var initialValue = props.value; + if (null == initialValue) { + var defaultValue = props.defaultValue, + textareaChildren = props.children; + if (null != textareaChildren) { + if ( + (error('Use the `defaultValue` or `value` props instead of setting children on