diff --git a/dist/index.umd.js b/dist/index.umd.js index 5809327..644d6c9 100644 --- a/dist/index.umd.js +++ b/dist/index.umd.js @@ -1,16779 +1,205 @@ -var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; -}; -(function(factory) { - typeof define === "function" && define.amd ? define(factory) : factory(); -})(function() { - "use strict"; - var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; - function getAugmentedNamespace(n) { - var f = n.default; - if (typeof f == "function") { - var a = function() { - return f.apply(this, arguments); - }; - a.prototype = f.prototype; - } else - a = {}; - Object.defineProperty(a, "__esModule", { value: true }); - Object.keys(n).forEach(function(k2) { - var d = Object.getOwnPropertyDescriptor(n, k2); - Object.defineProperty(a, k2, d.get ? d : { - enumerable: true, - get: function() { - return n[k2]; - } - }); - }); - return a; - } - var jsxRuntime = { exports: {} }; - var reactJsxRuntime_development = {}; - /** - * @license React - * react-jsx-runtime.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - { - (function() { - var React2 = window["React"]; - var REACT_ELEMENT_TYPE = Symbol.for("react.element"); - var REACT_PORTAL_TYPE = Symbol.for("react.portal"); - var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); - var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); - var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); - var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); - var REACT_CONTEXT_TYPE = Symbol.for("react.context"); - var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); - var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); - var REACT_MEMO_TYPE = Symbol.for("react.memo"); - var REACT_LAZY_TYPE = Symbol.for("react.lazy"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== "object") { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === "function") { - return maybeIterator; - } - return null; - } - var ReactSharedInternals = React2.__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]; - } - printWarning2("error", format, args); - } - } - } - function printWarning2(level, format, args) { - { - var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame2.getStackAddendum(); - if (stack !== "") { - format += "%s"; - args = args.concat([stack]); - } - var argsWithFormat = args.map(function(item) { - return String(item); - }); - argsWithFormat.unshift("Warning: " + format); - Function.prototype.apply.call(console[level], console, argsWithFormat); - } - } - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - var enableLegacyHidden = false; - var enableDebugTracing = false; - var REACT_MODULE_REFERENCE; - { - REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); - } - function isValidElementType(type) { - if (typeof type === "string" || typeof type === "function") { - return true; - } - if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { - return true; - } - if (typeof type === "object" && type !== null) { - if (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_MODULE_REFERENCE || type.getModuleId !== void 0) { - return true; - } - } - return false; - } - function getWrappedName2(outerType, innerType, wrapperName) { - var displayName = outerType.displayName; - if (displayName) { - return displayName; - } - var functionName = innerType.displayName || innerType.name || ""; - return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; - } - function getContextName(type) { - return type.displayName || "Context"; - } - function getComponentNameFromType(type) { - if (type == null) { - return null; - } - { - if (typeof type.tag === "number") { - error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); - } - } - if (typeof type === "function") { - return type.displayName || type.name || null; - } - if (typeof type === "string") { - 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 (typeof type === "object") { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName2(type, type.render, "ForwardRef"); - case REACT_MEMO_TYPE: - var outerName = type.displayName || null; - if (outerName !== null) { - return outerName; - } - return getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return getComponentNameFromType(init(payload)); - } catch (x2) { - return null; - } - } - } - } - return null; - } - var assign2 = Object.assign; - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() { - } - disabledLog.__reactDisabledLog = true; - function disableLogs() { - { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - } - function reenableLogs() { - { - disabledDepth--; - if (disabledDepth === 0) { - var props = { - configurable: true, - enumerable: true, - writable: true - }; - Object.defineProperties(console, { - log: assign2({}, props, { - value: prevLog - }), - info: assign2({}, props, { - value: prevInfo - }), - warn: assign2({}, props, { - value: prevWarn - }), - error: assign2({}, props, { - value: prevError - }), - group: assign2({}, props, { - value: prevGroup - }), - groupCollapsed: assign2({}, props, { - value: prevGroupCollapsed - }), - groupEnd: assign2({}, props, { - value: prevGroupEnd - }) - }); - } - if (disabledDepth < 0) { - error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - } - var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; - var prefix2; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - if (prefix2 === void 0) { - try { - throw Error(); - } catch (x2) { - var match2 = x2.stack.trim().match(/\n( *(at )?)/); - prefix2 = match2 && match2[1] || ""; - } - } - return "\n" + prefix2 + name; - } - } - var reentry = false; - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) { - return ""; - } - { - var frame = componentFrameCache.get(fn); - if (frame !== void 0) { - return frame; - } - } - var control; - reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher; - { - previousDispatcher = ReactCurrentDispatcher.current; - ReactCurrentDispatcher.current = null; - disableLogs(); - } - try { - if (construct) { - var Fake = function() { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function() { - throw Error(); - } - }); - if (typeof Reflect === "object" && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x2) { - control = x2; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x2) { - control = x2; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x2) { - control = x2; - } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === "string") { - var sampleLines = sample.stack.split("\n"); - var controlLines = control.stack.split("\n"); - var s2 = sampleLines.length - 1; - var c2 = controlLines.length - 1; - while (s2 >= 1 && c2 >= 0 && sampleLines[s2] !== controlLines[c2]) { - c2--; - } - for (; s2 >= 1 && c2 >= 0; s2--, c2--) { - if (sampleLines[s2] !== controlLines[c2]) { - if (s2 !== 1 || c2 !== 1) { - do { - s2--; - c2--; - if (c2 < 0 || sampleLines[s2] !== controlLines[c2]) { - var _frame = "\n" + sampleLines[s2].replace(" at new ", " at "); - if (fn.displayName && _frame.includes("")) { - _frame = _frame.replace("", fn.displayName); - } - { - if (typeof fn === "function") { - componentFrameCache.set(fn, _frame); - } - } - return _frame; - } - } while (s2 >= 1 && c2 >= 0); - } - break; - } - } - } - } finally { - reentry = false; - { - ReactCurrentDispatcher.current = previousDispatcher; - reenableLogs(); - } - Error.prepareStackTrace = previousPrepareStackTrace; - } - var name = fn ? fn.displayName || fn.name : ""; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; - { - if (typeof fn === "function") { - componentFrameCache.set(fn, syntheticFrame); - } - } - return syntheticFrame; - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - return describeNativeComponentFrame(fn, false); - } - } - function shouldConstruct(Component) { - var prototype = Component.prototype; - return !!(prototype && prototype.isReactComponent); - } - function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { - if (type == null) { - return ""; - } - if (typeof type === "function") { - { - return describeNativeComponentFrame(type, shouldConstruct(type)); - } - } - if (typeof type === "string") { - return describeBuiltInComponentFrame(type); - } - switch (type) { - case REACT_SUSPENSE_TYPE: - return describeBuiltInComponentFrame("Suspense"); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList"); - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type.render); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x2) { - } - } - } - } - return ""; - } - var hasOwnProperty2 = Object.prototype.hasOwnProperty; - var loggedTypeFailures2 = {}; - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); - } - } - } - function checkPropTypes2(typeSpecs, values2, location, componentName, element) { - { - var has2 = Function.call.bind(hasOwnProperty2); - for (var typeSpecName in typeSpecs) { - if (has2(typeSpecs, typeSpecName)) { - var error$1 = void 0; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - 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] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex) { - error$1 = ex; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures2)) { - loggedTypeFailures2[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } - } - } - var isArrayImpl = Array.isArray; - function isArray(a) { - return isArrayImpl(a); - } - function typeName(value) { - { - var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; - var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; - return type; - } - } - function willCoercionThrow(value) { - { - try { - testStringCoercion(value); - return false; - } catch (e) { - return true; - } - } - } - function testStringCoercion(value) { - return "" + value; - } - function checkKeyStringCoercion(value) { - { - if (willCoercionThrow(value)) { - error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); - return testStringCoercion(value); - } - } - } - var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true - }; - var specialPropKeyWarningShown; - var specialPropRefWarningShown; - var didWarnAboutStringRefs; - { - didWarnAboutStringRefs = {}; - } - function hasValidRef(config) { - { - if (hasOwnProperty2.call(config, "ref")) { - var getter = Object.getOwnPropertyDescriptor(config, "ref").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.ref !== void 0; - } - function hasValidKey(config) { - { - if (hasOwnProperty2.call(config, "key")) { - var getter = Object.getOwnPropertyDescriptor(config, "key").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.key !== void 0; - } - function warnIfStringRefCannotBeAutoConverted(config, self2) { - { - if (typeof config.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) { - var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); - if (!didWarnAboutStringRefs[componentName]) { - error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); - didWarnAboutStringRefs[componentName] = true; - } - } - } - } - function defineKeyPropWarningGetter(props, displayName) { - { - var warnAboutAccessingKey = function() { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - }; - warnAboutAccessingKey.isReactWarning = true; - Object.defineProperty(props, "key", { - get: warnAboutAccessingKey, - configurable: true - }); - } - } - function defineRefPropWarningGetter(props, displayName) { - { - var warnAboutAccessingRef = function() { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - }; - warnAboutAccessingRef.isReactWarning = true; - Object.defineProperty(props, "ref", { - get: warnAboutAccessingRef, - configurable: true - }); - } - } - var ReactElement = function(type, key, ref, self2, source, owner, props) { - var element = { - $$typeof: REACT_ELEMENT_TYPE, - type, - key, - ref, - props, - _owner: owner - }; - { - element._store = {}; - Object.defineProperty(element._store, "validated", { - configurable: false, - enumerable: false, - writable: true, - value: false - }); - Object.defineProperty(element, "_self", { - configurable: false, - enumerable: false, - writable: false, - value: self2 - }); - Object.defineProperty(element, "_source", { - configurable: false, - enumerable: false, - writable: false, - value: source - }); - if (Object.freeze) { - Object.freeze(element.props); - Object.freeze(element); - } - } - return element; - }; - function jsxDEV(type, config, maybeKey, source, self2) { - { - var propName; - var props = {}; - var key = null; - var ref = null; - if (maybeKey !== void 0) { - { - checkKeyStringCoercion(maybeKey); - } - key = "" + maybeKey; - } - if (hasValidKey(config)) { - { - checkKeyStringCoercion(config.key); - } - key = "" + config.key; - } - if (hasValidRef(config)) { - ref = config.ref; - warnIfStringRefCannotBeAutoConverted(config, self2); - } - for (propName in config) { - if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props[propName] = config[propName]; - } - } - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - for (propName in defaultProps) { - if (props[propName] === void 0) { - props[propName] = defaultProps[propName]; - } - } - } - if (key || ref) { - var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; - if (key) { - defineKeyPropWarningGetter(props, displayName); - } - if (ref) { - defineRefPropWarningGetter(props, displayName); - } - } - return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props); - } - } - var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; - var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement$1(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); - } - } - } - var propTypesMisspellWarningShown; - { - propTypesMisspellWarningShown = false; - } - function isValidElement(object) { - { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - } - function getDeclarationErrorAddendum() { - { - if (ReactCurrentOwner$1.current) { - var name = getComponentNameFromType(ReactCurrentOwner$1.current.type); - if (name) { - return "\n\nCheck the render method of `" + name + "`."; - } - } - return ""; - } - } - function getSourceInfoErrorAddendum(source) { - { - if (source !== void 0) { - var fileName = source.fileName.replace(/^.*[\\\/]/, ""); - var lineNumber = source.lineNumber; - return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; - } - return ""; - } - } - var ownerHasKeyUseWarning = {}; - function getCurrentComponentErrorInfo(parentType) { - { - var info = getDeclarationErrorAddendum(); - if (!info) { - var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; - if (parentName) { - info = "\n\nCheck the top-level render call using <" + parentName + ">."; - } - } - return info; - } - } - function validateExplicitKey(element, parentType) { - { - if (!element._store || element._store.validated || element.key != null) { - return; - } - element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - var childOwner = ""; - if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) { - childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; - } - setCurrentlyValidatingElement$1(element); - error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); - setCurrentlyValidatingElement$1(null); - } - } - function validateChildKeys(node2, parentType) { - { - if (typeof node2 !== "object") { - return; - } - if (isArray(node2)) { - for (var i = 0; i < node2.length; i++) { - var child = node2[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); - } - } - } else if (isValidElement(node2)) { - if (node2._store) { - node2._store.validated = true; - } - } else if (node2) { - var iteratorFn = getIteratorFn(node2); - if (typeof iteratorFn === "function") { - if (iteratorFn !== node2.entries) { - var iterator = iteratorFn.call(node2); - var step; - while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); - } - } - } - } - } - } - } - function validatePropTypes(element) { - { - var type = element.type; - if (type === null || type === void 0 || typeof type === "string") { - return; - } - var propTypes2; - if (typeof type === "function") { - propTypes2 = type.propTypes; - } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) { - propTypes2 = type.propTypes; - } else { - return; - } - if (propTypes2) { - var name = getComponentNameFromType(type); - checkPropTypes2(propTypes2, element.props, "prop", name, element); - } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - var _name = getComponentNameFromType(type); - error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); - } - if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { - error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } - } - } - function validateFragmentProps(fragment) { - { - var keys = Object.keys(fragment.props); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); - error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); - setCurrentlyValidatingElement$1(null); - break; - } - } - if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); - error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); - } - } - } - function jsxWithValidation(type, props, key, isStaticChildren, source, self2) { - { - var validType = isValidElementType(type); - if (!validType) { - var info = ""; - if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - 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 sourceInfo = getSourceInfoErrorAddendum(source); - if (sourceInfo) { - info += sourceInfo; - } else { - info += getDeclarationErrorAddendum(); - } - var typeString; - if (type === null) { - typeString = "null"; - } else if (isArray(type)) { - typeString = "array"; - } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { - typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; - info = " Did you accidentally export a JSX literal instead of a component?"; - } else { - typeString = typeof type; - } - error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); - } - var element = jsxDEV(type, props, key, source, self2); - if (element == null) { - return element; - } - if (validType) { - var children = props.children; - if (children !== void 0) { - if (isStaticChildren) { - if (isArray(children)) { - for (var i = 0; i < children.length; i++) { - validateChildKeys(children[i], type); - } - if (Object.freeze) { - Object.freeze(children); - } - } else { - error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); - } - } else { - validateChildKeys(children, type); - } - } - } - if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); - } else { - validatePropTypes(element); - } - return element; - } - } - function jsxWithValidationStatic(type, props, key) { - { - return jsxWithValidation(type, props, key, true); - } - } - function jsxWithValidationDynamic(type, props, key) { - { - return jsxWithValidation(type, props, key, false); - } - } - var jsx = jsxWithValidationDynamic; - var jsxs = jsxWithValidationStatic; - reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE; - reactJsxRuntime_development.jsx = jsx; - reactJsxRuntime_development.jsxs = jsxs; - })(); - } - (function(module) { - { - module.exports = reactJsxRuntime_development; - } - })(jsxRuntime); - var lodash$1 = { exports: {} }; - /** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - (function(module, exports) { - (function() { - var undefined$1; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\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", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - 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 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = exports && !exports.nodeType && exports; - var freeModule = freeExports && true && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types2 = freeModule && freeModule.require && freeModule.require("util").types; - if (types2) { - return types2; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - 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); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - var value = array[index]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length2 = array == null ? 0 : array.length; - while (length2--) { - if (iteratee(array[length2], length2, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (!predicate(array[index], index, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index < length2) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length2 = array == null ? 0 : array.length; - return !!length2 && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (comparator(value, array[index])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index = -1, length2 = array == null ? 0 : array.length, result = Array(length2); - while (++index < length2) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - function arrayPush(array, values2) { - var index = -1, length2 = values2.length, offset = array.length; - while (++index < length2) { - array[offset + index] = values2[index]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length2 = array == null ? 0 : array.length; - if (initAccum && length2) { - accumulator = array[++index]; - } - while (++index < length2) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length2 = array == null ? 0 : array.length; - if (initAccum && length2) { - accumulator = array[--length2]; - } - while (length2--) { - accumulator = iteratee(accumulator, array[length2], length2, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length2 = array.length, index = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index-- : ++index < length2) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index = fromIndex - 1, length2 = array.length; - while (++index < length2) { - if (comparator(array[index], value)) { - return index; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSum(array, iteratee) / length2 : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined$1 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined$1 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length2 = array.length; - array.sort(comparer); - while (length2--) { - array[length2] = array[length2].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index = -1, length2 = array.length; - while (++index < length2) { - var current = iteratee(array[index]); - if (current !== undefined$1) { - result = result === undefined$1 ? current : result + current; - } - } - return result; - } - function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, length2 = strSymbols.length; - while (++index < length2 && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function countHolders(array, placeholder) { - var length2 = array.length, result = 0; - while (length2--) { - if (array[length2] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue2(object, key) { - return object == null ? undefined$1 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - function replaceHolders(array, placeholder) { - var index = -1, length2 = array.length, resIndex = 0, result = []; - while (++index < length2) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; - } - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - function setToPairs(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length2 = array.length; - while (++index < length2) { - if (array[index] === value) { - return index; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index = string.length; - while (index-- && reWhitespace.test(string.charAt(index))) { - } - return index; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty2 = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2( - "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ); - var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1; - var defineProperty2 = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap2 && new WeakMap2(); - var realNames = {}; - var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1; - function lodash2(value) { - if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty2.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined$1; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined$1; - } - lodash2.templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": lodash2 - } - }; - lodash2.prototype = baseLodash.prototype; - lodash2.prototype.constructor = lodash2; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length2 = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length2, this.__takeCount__); - if (!isArr || !isRight && arrLength == length2 && takeCount == length2) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length2-- && resIndex < takeCount) { - index += dir; - var iterIndex = -1, value = array[index]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - function Hash(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined$1 : result2; - } - return hasOwnProperty2.call(data, key) ? data[key] : undefined$1; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - function ListCache(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? undefined$1 : data[index][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - function listCacheSet(key, value) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - function MapCache(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values3) { - var index = -1, length2 = values3 == null ? 0 : values3.length; - this.__data__ = new MapCache(); - while (++index < length2) { - this.add(values3[index]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - 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, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length2 = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length2)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length2 = array.length; - return length2 ? array[baseRandom(0, length2 - 1)] : undefined$1; - } - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined$1 && !eq(object[key], value) || value === undefined$1 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === undefined$1 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length2 = array.length; - while (length2--) { - if (eq(array[length2][0], key)) { - return length2; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty2) { - defineProperty2(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index = -1, length2 = paths.length, result2 = Array2(length2), skip = object == null; - while (++index < length2) { - result2[index] = skip ? undefined$1 : get(object, paths[index]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined$1) { - number = number <= upper ? number : upper; - } - if (lower !== undefined$1) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined$1) { - return result2; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined$1 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length2 = props.length; - if (object == null) { - return !length2; - } - object = Object2(object); - while (length2--) { - var key = props[length2], predicate = source[key], value = object[key]; - if (value === undefined$1 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined$1, args); - }, wait); - } - function baseDifference(array, values3, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, isCommon = true, length2 = array.length, result2 = [], valuesLength = values3.length; - if (!length2) { - return result2; - } - if (iteratee2) { - values3 = arrayMap(values3, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values3.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values3 = new SetCache(values3); - } - outer: - while (++index < length2) { - var value = array[index], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values3[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values3, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index, collection2) { - result2 = !!predicate(value, index, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index = -1, length2 = array.length; - while (++index < length2) { - var value = array[index], current = iteratee2(value); - if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length2 = array.length; - start = toInteger(start); - if (start < 0) { - start = -start > length2 ? 0 : length2 + start; - } - end = end === undefined$1 || end > length2 ? length2 : toInteger(end); - if (end < 0) { - end += length2; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index, collection2) { - if (predicate(value, index, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index = -1, length2 = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index < length2) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - function baseGet(object, path) { - path = castPath(path, object); - var index = 0, length2 = path.length; - while (object != null && index < length2) { - object = object[toKey(path[index++])]; - } - return index && index == length2 ? object : undefined$1; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined$1 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty2.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length2 = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length2 >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1; - } - array = arrays[0]; - var index = -1, seen = caches[0]; - outer: - while (++index < length2 && result2.length < maxLength) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - function baseInvoke(object, path, args) { - path = castPath(path, object); - object = parent(object, path); - var func = object == null ? object : object[toKey(last(path))]; - return func == null ? undefined$1 : apply(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, length2 = index, noCustomizer = !customizer; - if (object == null) { - return !length2; - } - object = Object2(object); - while (index--) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index < length2) { - data = matchData[index]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === undefined$1 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined$1 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == "object") { - return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty2.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index] = iteratee2(value, key, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack()); - if (isObject(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1; - if (newValue === undefined$1) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - 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); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1; - var isCommon = newValue === undefined$1; - if (isCommon) { - var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject2(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject(objValue) || isFunction(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n) { - var length2 = array.length; - if (!length2) { - return; - } - n += n < 0 ? length2 : 0; - return isIndex(n, length2) ? array[n] : undefined$1; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity]; - } - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return { "criteria": criteria, "index": ++index, "value": value }; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path) { - return hasIn(object, path); - }); - } - function basePickBy(object, paths, predicate) { - var index = -1, length2 = paths.length, result2 = {}; - while (++index < length2) { - var path = paths[index], value = baseGet(object, path); - if (predicate(value, path)) { - baseSet(result2, castPath(path, object), value); - } - } - return result2; - } - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - function basePullAll(array, values3, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length2 = values3.length, seen = array; - if (array === values3) { - values3 = copyArray(values3); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index < length2) { - var fromIndex = 0, value = values3[index], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length2 = array ? indexes.length : 0, lastIndex = length2 - 1; - while (length2--) { - var index = indexes[length2]; - if (length2 == lastIndex || index !== previous) { - var previous = index; - if (isIndex(index)) { - splice.call(array, index, 1); - } else { - baseUnset(array, index); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index = -1, length2 = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length2); - while (length2--) { - result2[fromRight ? length2 : ++index] = start; - start += step; - } - return result2; - } - function baseRepeat(string, n) { - var result2 = ""; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n % 2) { - result2 += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - function baseSample(collection) { - return arraySample(values2(collection)); - } - function baseSampleSize(collection, n) { - var array = values2(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = castPath(path, object); - var index = -1, length2 = path.length, lastIndex = length2 - 1, nested = object; - while (nested != null && ++index < length2) { - var key = toKey(path[index]), newValue = value; - if (key === "__proto__" || key === "constructor" || key === "prototype") { - return object; - } - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined$1; - if (newValue === undefined$1) { - newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - var baseSetToString = !defineProperty2 ? identity : function(func, string) { - return defineProperty2(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values2(collection)); - } - function baseSlice(array, start, end) { - var index = -1, length2 = array.length; - if (start < 0) { - start = -start > length2 ? 0 : length2 + start; - } - end = end > length2 ? length2 : end; - if (end < 0) { - end += length2; - } - length2 = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result2 = Array2(length2); - while (++index < length2) { - result2[index] = array[index + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index, collection2) { - result2 = predicate(value, index, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined$1; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined$1, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index = -1, length2 = array.length, resIndex = 0, result2 = []; - while (++index < length2) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - if (!index || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, length2 = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length2 >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index < length2) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length2 = array.length, index = fromRight ? length2 : -1; - while ((fromRight ? index-- : ++index < length2) && predicate(array[index], index, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length2) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length2 : index); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length2 = arrays.length; - if (length2 < 2) { - return length2 ? baseUniq(arrays[0]) : []; - } - var index = -1, result2 = Array2(length2); - while (++index < length2) { - var array = arrays[index], othIndex = -1; - while (++othIndex < length2) { - if (othIndex != index) { - result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values3, assignFunc) { - var index = -1, length2 = props.length, valsLength = values3.length, result2 = {}; - while (++index < length2) { - var value = index < valsLength ? values3[index] : undefined$1; - assignFunc(result2, props[index], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity; - } - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length2 = array.length; - end = end === undefined$1 ? length2 : end; - return !start && end >= length2 ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length2 = buffer.length, result2 = allocUnsafe ? allocUnsafe(length2) : new buffer.constructor(length2); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined$1, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined$1, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length2 = objCriteria.length, ordersLength = orders.length; - while (++index < length2) { - var result2 = compareAscending(objCriteria[index], othCriteria[index]); - if (result2) { - if (index >= ordersLength) { - return result2; - } - var order = orders[index]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index = -1, length2 = source.length; - array || (array = Array2(length2)); - while (++index < length2) { - array[index] = source[index]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index = -1, length2 = props.length; - while (++index < length2) { - var key = props[index]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1; - if (newValue === undefined$1) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : undefined$1, guard = length2 > 2 ? sources[2] : undefined$1; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : undefined$1; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length2 < 3 ? undefined$1 : customizer; - length2 = 1; - } - object = Object2(object); - while (++index < length2) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length2 = collection.length, index = fromRight ? length2 : -1, iterable = Object2(collection); - while (fromRight ? index-- : ++index < length2) { - if (iteratee2(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index = -1, iterable = Object2(object), props = keysFunc(object), length2 = props.length; - while (length2--) { - var key = props[fromRight ? length2 : ++index]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined$1; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args = arguments; - switch (args.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args[0]); - case 2: - return new Ctor(args[0], args[1]); - case 3: - return new Ctor(args[0], args[1], args[2]); - case 4: - return new Ctor(args[0], args[1], args[2], args[3]); - case 5: - return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args); - return isObject(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length2 = arguments.length, args = Array2(length2), index = length2, placeholder = getHolder(wrapper); - while (index--) { - args[index] = arguments[index]; - } - var holders = length2 < 3 && args[0] !== placeholder && args[length2 - 1] !== placeholder ? [] : replaceHolders(args, placeholder); - length2 -= holders.length; - if (length2 < arity) { - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - undefined$1, - args, - holders, - undefined$1, - undefined$1, - arity - length2 - ); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length2 = funcs.length, index = length2, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index--) { - var func = funcs[index]; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index = wrapper ? index : length2; - while (++index < length2) { - func = funcs[index]; - var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1; - if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); - } - } - return function() { - var args = arguments, value = args[0]; - if (wrapper && args.length == 1 && isArray(value)) { - return wrapper.plant(value).value(); - } - var index2 = 0, result2 = length2 ? funcs[index2].apply(this, args) : value; - while (++index2 < length2) { - result2 = funcs[index2].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func); - function wrapper() { - var length2 = arguments.length, args = Array2(length2), index = length2; - while (index--) { - args[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length2 -= holdersCount; - if (isCurried && length2 < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - thisArg, - args, - newHolders, - argPos, - ary2, - arity - length2 - ); - } - var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; - length2 = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length2 > 1) { - args.reverse(); - } - if (isAry && ary2 < length2) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined$1 && other === undefined$1) { - return defaultValue; - } - if (value !== undefined$1) { - result2 = value; - } - if (other !== undefined$1) { - if (result2 === undefined$1) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length2, chars) { - chars = chars === undefined$1 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length2) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length2 / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length2).join("") : result2.slice(0, length2); - } - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func; - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args); - } - return wrapper; - } - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined$1; - } - start = toFinite(start); - if (end === undefined$1) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined$1 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined$1, newHoldersRight = isCurry ? undefined$1 : holders, newPartials = isCurry ? partials : undefined$1, newPartialsRight = isCurry ? undefined$1 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined$1, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func, bitmask); - } - function createRound(methodName) { - var func = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - var pair = (toString(number) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision)); - pair = (toString(value) + "e").split("e"); - return +(pair[0] + "e" + (+pair[1] - precision)); - } - return func(number); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values3) { - return new Set2(values3); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length2 = partials ? partials.length : 0; - if (!length2) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined$1; - } - ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0); - arity = arity === undefined$1 ? arity : toInteger(arity); - length2 -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined$1; - } - var data = isBindKey ? undefined$1 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity - ]; - if (data) { - mergeData(newData, data); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length2, 0); - if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined$1, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject(objValue) && isObject(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject2(value) ? undefined$1 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1; - stack.set(array, other); - stack.set(other, array); - while (++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 (compared !== undefined$1) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === undefined$1 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined$1, flatten), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length2 = hasOwnProperty2.call(realNames, result2) ? array.length : 0; - while (length2--) { - var data = array[length2], otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash2.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length2 = result2.length; - while (length2--) { - var key = result2[length2], value = object[key]; - result2[length2] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue2(object, key); - return baseIsNative(value) ? value : undefined$1; - } - function getRawTag(value) { - var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined$1; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start, end, transforms) { - var index = -1, length2 = transforms.length; - while (++index < length2) { - var data = transforms[index], size2 = data.size; - switch (data.type) { - case "drop": - start += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start + size2); - break; - case "takeRight": - start = nativeMax(start, end - size2); - break; - } - } - return { "start": start, "end": end }; - } - function getWrapDetails(source) { - var match2 = source.match(reWrapDetails); - return match2 ? match2[1].split(reSplitDetails) : []; - } - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index = -1, length2 = path.length, result2 = false; - while (++index < length2) { - var key = toKey(path[index]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index != length2) { - return result2; - } - length2 = object == null ? 0 : object.length; - return !!length2 && isLength(length2) && isIndex(key, length2) && (isArray(object) || isArguments(object)); - } - function initCloneArray(array) { - var length2 = array.length, result2 = new array.constructor(length2); - if (length2 && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length2 = details.length; - if (!length2) { - return source; - } - var lastIndex = length2 - 1; - details[lastIndex] = (length2 > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length2 > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex(value, length2) { - var type = typeof value; - length2 = length2 == null ? MAX_SAFE_INTEGER : length2; - return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2); - } - function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index; - if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { - return eq(object[index], value); - } - return false; - } - function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func) { - var funcName = getFuncName(func), other = lodash2[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data = getData(other); - return !!data && func === data[0]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined$1 || key in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize2(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - function mergeData(data, source) { - var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index = -1, length2 = nativeMax(args.length - start, 0), array = Array2(length2); - while (++index < length2) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array2(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform2(array); - return apply(func, this, otherArgs); - }; - } - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length2 = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length2--) { - var index = indexes[length2]; - array[length2] = isIndex(index, arrLength) ? oldArray[index] : undefined$1; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined$1, arguments); - }; - } - function shuffleSelf(array, size2) { - var index = -1, length2 = array.length, lastIndex = length2 - 1; - size2 = size2 === undefined$1 ? length2 : size2; - while (++index < size2) { - var rand = baseRandom(index, lastIndex), value = array[rand]; - array[rand] = array[index]; - array[index] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match2, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match2); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = "_." + pair[0]; - if (bitmask & pair[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined$1) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length2 = array == null ? 0 : array.length; - if (!length2 || size2 < 1) { - return []; - } - var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length2 / size2)); - while (index < length2) { - result2[resIndex++] = baseSlice(array, index, index += size2); - } - return result2; - } - function compact(array) { - var index = -1, length2 = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index < length2) { - var value = array[index]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length2 = arguments.length; - if (!length2) { - return []; - } - var args = Array2(length2 - 1), array = arguments[0], index = length2; - while (index--) { - args[index - 1] = arguments[index]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values3) { - var iteratee2 = last(values3); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values3) { - var comparator = last(values3); - if (isArrayLikeObject(comparator)) { - comparator = undefined$1; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), undefined$1, comparator) : []; - }); - function drop(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length2); - } - function dropRight(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - n = length2 - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start, end) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - if (start && typeof start != "number" && isIterateeCall(array, value, start)) { - start = 0; - end = length2; - } - return baseFill(array, value, start, end); - } - function findIndex(array, predicate, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length2 + index, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index); - } - function findLastIndex(array, predicate, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = length2 - 1; - if (fromIndex !== undefined$1) { - index = toInteger(fromIndex); - index = fromIndex < 0 ? nativeMax(length2 + index, 0) : nativeMin(index, length2 - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - function flatten(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - depth = depth === undefined$1 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index = -1, length2 = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index < length2) { - var pair = pairs[index]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined$1; - } - function indexOf(array, value, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length2 + index, 0); - } - return baseIndexOf(array, value, index); - } - function initial(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined$1; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined$1; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined$1, comparator) : []; - }); - function join(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? array[length2 - 1] : undefined$1; - } - function lastIndexOf(array, value, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = length2; - if (fromIndex !== undefined$1) { - index = toInteger(fromIndex); - index = index < 0 ? nativeMax(length2 + index, 0) : nativeMin(index, length2 - 1); - } - return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); - } - function nth(array, n) { - return array && array.length ? baseNth(array, toInteger(n)) : undefined$1; - } - var pull = baseRest(pullAll); - function pullAll(array, values3) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3) : array; - } - function pullAllBy(array, values3, iteratee2) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values3, comparator) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, undefined$1, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length2 = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length2) ? +index : index; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index = -1, indexes = [], length2 = array.length; - predicate = getIteratee(predicate, 3); - while (++index < length2) { - var value = array[index]; - if (predicate(value, index, array)) { - result2.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice2(array, start, end) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start, end)) { - start = 0; - end = length2; - } else { - start = start == null ? 0 : toInteger(start); - end = end === undefined$1 ? length2 : toInteger(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length2 = array == null ? 0 : array.length; - if (length2) { - var index = baseSortedIndex(array, value); - if (index < length2 && eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length2 = array == null ? 0 : array.length; - if (length2) { - var index = baseSortedIndex(array, value, true) - 1; - if (eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSlice(array, 1, length2) : []; - } - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function takeRight(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - n = length2 - n; - return baseSlice(array, n < 0 ? 0 : n, length2); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined$1; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined$1; - return array && array.length ? baseUniq(array, undefined$1, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length2 = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length2 = nativeMax(group.length, length2); - return true; - } - }); - return baseTimes(length2, function(index) { - return arrayMap(array, baseProperty(index)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined$1, group); - }); - } - var without = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, values3) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined$1; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values3) { - return baseZipObject(props || [], values3 || [], assignValue); - } - function zipObjectDeep(props, values3) { - return baseZipObject(props || [], values3 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length2 = arrays.length, iteratee2 = length2 > 1 ? arrays[length2 - 1] : undefined$1; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined$1; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash2(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length2 = paths.length, start = length2 ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length2 > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length2 ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined$1 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length2 && !array.length) { - array.push(undefined$1); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined$1) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined$1 : this.__values__[this.__index__++]; - return { "done": done, "value": value }; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone2 = wrapperClone(parent2); - clone2.__index__ = 0; - clone2.__values__ = undefined$1; - if (result2) { - previous.__wrapped__ = clone2; - } else { - result2 = clone2; - } - var previous = clone2; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined$1 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined$1; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined$1 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach(collection, iteratee2) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values2(collection); - fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; - var length2 = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length2 + fromIndex, 0); - } - return isString(collection) ? fromIndex <= length2 && collection.indexOf(value, fromIndex) > -1 : !!length2 && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path, args) { - var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined$1 : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n, guard) { - if (guard ? isIterateeCall(collection, n, guard) : n === undefined$1) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); - } - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined$1; - } - return func(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length2 = iteratees.length; - if (length2 > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length2 > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n, guard) { - n = guard ? undefined$1 : n; - n = func && n == null ? func.length : n; - return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n); - } - function before(n, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result2 = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined$1; - } - return result2; - }; - } - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - function curry(func, arity, guard) { - arity = guard ? undefined$1 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined$1 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce2(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = "maxWait" in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - function invokeFunc(time) { - var args = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined$1; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined$1 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined$1; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined$1; - return result2; - } - function cancel() { - if (timerId !== undefined$1) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined$1; - } - function flush() { - return timerId === undefined$1 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined$1) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined$1) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize2(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - 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 result2 = func.apply(this, args); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize2.Cache || MapCache)(); - return memoized; - } - memoize2.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args[0]); - case 2: - return !predicate.call(this, args[0], args[1]); - case 3: - return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - function once(func) { - return before(2, func); - } - var overArgs = castRest(function(func, transforms) { - transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args) { - var index = -1, length2 = nativeMin(args.length, funcsLength); - while (++index < length2) { - args[index] = transforms[index].call(this, args[index]); - } - return apply(func, this, args); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined$1 ? start : toInteger(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start == null ? 0 : nativeMax(toInteger(start), 0); - return baseRest(function(args) { - var array = args[start], otherArgs = castSlice(args, 0, start); - if (array) { - arrayPush(otherArgs, array); - } - return apply(func, this, otherArgs); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject(options)) { - leading = "leading" in options ? !!options.leading : leading; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - return debounce2(func, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - function clone(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject2(value); - } - function isEmpty2(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty2.call(value, key)) { - return false; - } - } - return true; - } - function isEqual(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - var result2 = customizer ? customizer(value, other) : undefined$1; - return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2; - } - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject2(value); - } - function isFinite(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - function isPlainObject2(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString(value) { - return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined(value) { - return value === undefined$1; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag = getTag(value), func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values2; - return func(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? 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; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString(value) { - return value == null ? "" : baseToString(value); - } - var assign2 = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty2.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at = flatRest(baseAt); - function create(prototype, properties2) { - var result2 = baseCreate(prototype); - return properties2 == null ? result2 : baseAssign(result2, properties2); - } - var defaults = baseRest(function(object, sources) { - object = Object2(object); - var index = -1; - var length2 = sources.length; - var guard = length2 > 2 ? sources[2] : undefined$1; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length2 = 1; - } - while (++index < length2) { - var source = sources[index]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key = props[propsIndex]; - var value = object[key]; - if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined$1, customDefaultsMerge); - return apply(mergeWith, undefined$1, args); - }); - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path, defaultValue) { - var result2 = object == null ? undefined$1 : baseGet(object, path); - return result2 === undefined$1 ? defaultValue : result2; - } - function has2(object, path) { - return object != null && hasPath(object, path, baseHas); - } - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty2.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge2 = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length2 = paths.length; - while (length2--) { - baseUnset(result2, paths[length2]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path) { - return predicate(value, path[0]); - }); - } - function result(object, path, defaultValue) { - path = castPath(path, object); - var index = -1, length2 = path.length; - if (!length2) { - length2 = 1; - object = undefined$1; - } - while (++index < length2) { - var value = object == null ? undefined$1 : object[toKey(path[index])]; - if (value === undefined$1) { - index = length2; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - function setWith(object, path, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return object == null ? object : baseSet(object, path, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject(object)) { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) { - return iteratee2(accumulator, value, index, object2); - }); - return accumulator; - } - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - function values2(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp2(number, lower, upper) { - if (upper === undefined$1) { - upper = lower; - lower = undefined$1; - } - if (upper !== undefined$1) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined$1) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined$1) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined$1; - } - if (floating === undefined$1) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined$1; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined$1; - } - } - if (lower === undefined$1 && upper === undefined$1) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined$1) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase = createCompounder(function(result2, word, index) { - word = word.toLowerCase(); - return result2 + (index ? capitalize2(word) : word); - }); - function capitalize2(string) { - return upperFirst(toString(string).toLowerCase()); - } - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith(string, target, position2) { - string = toString(string); - target = baseToString(target); - var length2 = string.length; - position2 = position2 === undefined$1 ? length2 : baseClamp(toInteger(position2), 0, length2); - var end = position2; - position2 -= target.length; - return position2 >= 0 && string.slice(position2, end) == target; - } - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - if (!length2 || strLength >= length2) { - return string; - } - var mid = (length2 - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars); - } - function padEnd(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - return length2 && strLength < length2 ? string + createPadding(length2 - strLength, chars) : string; - } - function padStart(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - return length2 && strLength < length2 ? createPadding(length2 - strLength, chars) + string : string; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n, guard) { - if (guard ? isIterateeCall(string, n, guard) : n === undefined$1) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString(string), n); - } - function replace2() { - var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined$1; - } - limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString(string); - if (string && (typeof separator == "string" || separator != null && !isRegExp(separator))) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + upperFirst(word); - }); - function startsWith(string, target, position2) { - string = toString(string); - position2 = position2 == null ? 0 : baseClamp(toInteger(position2), 0, string.length); - target = baseToString(target); - return string.slice(position2, position2 + target.length) == target; - } - function template(string, options, guard) { - var settings = lodash2.templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = undefined$1; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2( - (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", - "g" - ); - var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match2.length; - return match2; - }); - source += "';\n"; - var variable = hasOwnProperty2.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined$1, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString(value).toLowerCase(); - } - function toUpper(value) { - return toString(value).toUpperCase(); - } - function trim2(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return baseTrim(string); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start, end).join(""); - } - function trimEnd(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate(string, options) { - var length2 = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject(options)) { - var separator = "separator" in options ? options.separator : separator; - length2 = "length" in options ? toInteger(options.length) : length2; - omission = "omission" in options ? baseToString(options.omission) : omission; - } - string = toString(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length2 >= strLength) { - return string; - } - var end = length2 - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined$1) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp(separator)) { - if (string.slice(end).search(separator)) { - var match2, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match2 = separator.exec(substring)) { - var newEnd = match2.index; - } - result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index = result2.lastIndexOf(separator); - if (index > -1) { - result2 = result2.slice(0, index); - } - } - return result2 + omission; - } - function unescape(string) { - string = toString(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined$1 : pattern; - if (pattern === undefined$1) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply(func, undefined$1, args); - } catch (e) { - return isError(e) ? e : new Error2(e); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length2 = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length2 ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair[0]), pair[1]]; - }); - return baseRest(function(args) { - var index = -1; - while (++index < length2) { - var pair = pairs[index]; - if (apply(pair[0], this, args)) { - return apply(pair[1], this, args); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path, args) { - return function(object) { - return baseInvoke(object, path, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path) { - return baseInvoke(object, path, args); - }; - }); - function mixin(object, source, options) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options == null && !(isObject(source) && (methodNames.length || !props.length))) { - options = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({ "func": func, "args": arguments, "thisArg": object }); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop() { - } - function nthArg(n) { - n = toInteger(n); - return baseRest(function(args) { - return baseNth(args, n); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - function propertyOf(object) { - return function(path) { - return object == null ? undefined$1 : baseGet(object, path); - }; - } - var range = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n, iteratee2) { - n = toInteger(n); - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - var index = MAX_ARRAY_LENGTH, length2 = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length2, iteratee2); - while (++index < n) { - iteratee2(index); - } - return result2; - } - function toPath(value) { - if (isArray(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); - } - function uniqueId(prefix2) { - var id = ++idCounter; - return toString(prefix2) + id; - } - var add = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity, baseGt) : undefined$1; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined$1; - } - function mean(array) { - return baseMean(array, identity); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity, baseLt) : undefined$1; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined$1; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round2 = createRound("round"); - var subtract = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash2.after = after; - lodash2.ary = ary; - lodash2.assign = assign2; - lodash2.assignIn = assignIn; - lodash2.assignInWith = assignInWith; - lodash2.assignWith = assignWith; - lodash2.at = at; - lodash2.before = before; - lodash2.bind = bind; - lodash2.bindAll = bindAll; - lodash2.bindKey = bindKey; - lodash2.castArray = castArray; - lodash2.chain = chain; - lodash2.chunk = chunk; - lodash2.compact = compact; - lodash2.concat = concat; - lodash2.cond = cond; - lodash2.conforms = conforms; - lodash2.constant = constant; - lodash2.countBy = countBy; - lodash2.create = create; - lodash2.curry = curry; - lodash2.curryRight = curryRight; - lodash2.debounce = debounce2; - lodash2.defaults = defaults; - lodash2.defaultsDeep = defaultsDeep; - lodash2.defer = defer; - lodash2.delay = delay; - lodash2.difference = difference; - lodash2.differenceBy = differenceBy; - lodash2.differenceWith = differenceWith; - lodash2.drop = drop; - lodash2.dropRight = dropRight; - lodash2.dropRightWhile = dropRightWhile; - lodash2.dropWhile = dropWhile; - lodash2.fill = fill; - lodash2.filter = filter; - lodash2.flatMap = flatMap; - lodash2.flatMapDeep = flatMapDeep; - lodash2.flatMapDepth = flatMapDepth; - lodash2.flatten = flatten; - lodash2.flattenDeep = flattenDeep; - lodash2.flattenDepth = flattenDepth; - lodash2.flip = flip; - lodash2.flow = flow; - lodash2.flowRight = flowRight; - lodash2.fromPairs = fromPairs; - lodash2.functions = functions; - lodash2.functionsIn = functionsIn; - lodash2.groupBy = groupBy; - lodash2.initial = initial; - lodash2.intersection = intersection; - lodash2.intersectionBy = intersectionBy; - lodash2.intersectionWith = intersectionWith; - lodash2.invert = invert; - lodash2.invertBy = invertBy; - lodash2.invokeMap = invokeMap; - lodash2.iteratee = iteratee; - lodash2.keyBy = keyBy; - lodash2.keys = keys; - lodash2.keysIn = keysIn; - lodash2.map = map; - lodash2.mapKeys = mapKeys; - lodash2.mapValues = mapValues; - lodash2.matches = matches; - lodash2.matchesProperty = matchesProperty; - lodash2.memoize = memoize2; - lodash2.merge = merge2; - lodash2.mergeWith = mergeWith; - lodash2.method = method; - lodash2.methodOf = methodOf; - lodash2.mixin = mixin; - lodash2.negate = negate; - lodash2.nthArg = nthArg; - lodash2.omit = omit; - lodash2.omitBy = omitBy; - lodash2.once = once; - lodash2.orderBy = orderBy; - lodash2.over = over; - lodash2.overArgs = overArgs; - lodash2.overEvery = overEvery; - lodash2.overSome = overSome; - lodash2.partial = partial; - lodash2.partialRight = partialRight; - lodash2.partition = partition; - lodash2.pick = pick; - lodash2.pickBy = pickBy; - lodash2.property = property; - lodash2.propertyOf = propertyOf; - lodash2.pull = pull; - lodash2.pullAll = pullAll; - lodash2.pullAllBy = pullAllBy; - lodash2.pullAllWith = pullAllWith; - lodash2.pullAt = pullAt; - lodash2.range = range; - lodash2.rangeRight = rangeRight; - lodash2.rearg = rearg; - lodash2.reject = reject; - lodash2.remove = remove; - lodash2.rest = rest; - lodash2.reverse = reverse; - lodash2.sampleSize = sampleSize; - lodash2.set = set; - lodash2.setWith = setWith; - lodash2.shuffle = shuffle; - lodash2.slice = slice2; - lodash2.sortBy = sortBy; - lodash2.sortedUniq = sortedUniq; - lodash2.sortedUniqBy = sortedUniqBy; - lodash2.split = split; - lodash2.spread = spread; - lodash2.tail = tail; - lodash2.take = take; - lodash2.takeRight = takeRight; - lodash2.takeRightWhile = takeRightWhile; - lodash2.takeWhile = takeWhile; - lodash2.tap = tap; - lodash2.throttle = throttle; - lodash2.thru = thru; - lodash2.toArray = toArray; - lodash2.toPairs = toPairs; - lodash2.toPairsIn = toPairsIn; - lodash2.toPath = toPath; - lodash2.toPlainObject = toPlainObject; - lodash2.transform = transform; - lodash2.unary = unary; - lodash2.union = union; - lodash2.unionBy = unionBy; - lodash2.unionWith = unionWith; - lodash2.uniq = uniq; - lodash2.uniqBy = uniqBy; - lodash2.uniqWith = uniqWith; - lodash2.unset = unset; - lodash2.unzip = unzip; - lodash2.unzipWith = unzipWith; - lodash2.update = update; - lodash2.updateWith = updateWith; - lodash2.values = values2; - lodash2.valuesIn = valuesIn; - lodash2.without = without; - lodash2.words = words; - lodash2.wrap = wrap; - lodash2.xor = xor; - lodash2.xorBy = xorBy; - lodash2.xorWith = xorWith; - lodash2.zip = zip; - lodash2.zipObject = zipObject; - lodash2.zipObjectDeep = zipObjectDeep; - lodash2.zipWith = zipWith; - lodash2.entries = toPairs; - lodash2.entriesIn = toPairsIn; - lodash2.extend = assignIn; - lodash2.extendWith = assignInWith; - mixin(lodash2, lodash2); - lodash2.add = add; - lodash2.attempt = attempt; - lodash2.camelCase = camelCase; - lodash2.capitalize = capitalize2; - lodash2.ceil = ceil; - lodash2.clamp = clamp2; - lodash2.clone = clone; - lodash2.cloneDeep = cloneDeep; - lodash2.cloneDeepWith = cloneDeepWith; - lodash2.cloneWith = cloneWith; - lodash2.conformsTo = conformsTo; - lodash2.deburr = deburr; - lodash2.defaultTo = defaultTo; - lodash2.divide = divide; - lodash2.endsWith = endsWith; - lodash2.eq = eq; - lodash2.escape = escape; - lodash2.escapeRegExp = escapeRegExp; - lodash2.every = every; - lodash2.find = find; - lodash2.findIndex = findIndex; - lodash2.findKey = findKey; - lodash2.findLast = findLast; - lodash2.findLastIndex = findLastIndex; - lodash2.findLastKey = findLastKey; - lodash2.floor = floor; - lodash2.forEach = forEach; - lodash2.forEachRight = forEachRight; - lodash2.forIn = forIn; - lodash2.forInRight = forInRight; - lodash2.forOwn = forOwn; - lodash2.forOwnRight = forOwnRight; - lodash2.get = get; - lodash2.gt = gt; - lodash2.gte = gte; - lodash2.has = has2; - lodash2.hasIn = hasIn; - lodash2.head = head; - lodash2.identity = identity; - lodash2.includes = includes; - lodash2.indexOf = indexOf; - lodash2.inRange = inRange; - lodash2.invoke = invoke; - lodash2.isArguments = isArguments; - lodash2.isArray = isArray; - lodash2.isArrayBuffer = isArrayBuffer; - lodash2.isArrayLike = isArrayLike; - lodash2.isArrayLikeObject = isArrayLikeObject; - lodash2.isBoolean = isBoolean; - lodash2.isBuffer = isBuffer; - lodash2.isDate = isDate; - lodash2.isElement = isElement; - lodash2.isEmpty = isEmpty2; - lodash2.isEqual = isEqual; - lodash2.isEqualWith = isEqualWith; - lodash2.isError = isError; - lodash2.isFinite = isFinite; - lodash2.isFunction = isFunction; - lodash2.isInteger = isInteger; - lodash2.isLength = isLength; - lodash2.isMap = isMap; - lodash2.isMatch = isMatch; - lodash2.isMatchWith = isMatchWith; - lodash2.isNaN = isNaN2; - lodash2.isNative = isNative; - lodash2.isNil = isNil; - lodash2.isNull = isNull; - lodash2.isNumber = isNumber; - lodash2.isObject = isObject; - lodash2.isObjectLike = isObjectLike; - lodash2.isPlainObject = isPlainObject2; - lodash2.isRegExp = isRegExp; - lodash2.isSafeInteger = isSafeInteger; - lodash2.isSet = isSet; - lodash2.isString = isString; - lodash2.isSymbol = isSymbol; - lodash2.isTypedArray = isTypedArray; - lodash2.isUndefined = isUndefined; - lodash2.isWeakMap = isWeakMap; - lodash2.isWeakSet = isWeakSet; - lodash2.join = join; - lodash2.kebabCase = kebabCase; - lodash2.last = last; - lodash2.lastIndexOf = lastIndexOf; - lodash2.lowerCase = lowerCase; - lodash2.lowerFirst = lowerFirst; - lodash2.lt = lt; - lodash2.lte = lte; - lodash2.max = max; - lodash2.maxBy = maxBy; - lodash2.mean = mean; - lodash2.meanBy = meanBy; - lodash2.min = min; - lodash2.minBy = minBy; - lodash2.stubArray = stubArray; - lodash2.stubFalse = stubFalse; - lodash2.stubObject = stubObject; - lodash2.stubString = stubString; - lodash2.stubTrue = stubTrue; - lodash2.multiply = multiply; - lodash2.nth = nth; - lodash2.noConflict = noConflict; - lodash2.noop = noop; - lodash2.now = now; - lodash2.pad = pad; - lodash2.padEnd = padEnd; - lodash2.padStart = padStart; - lodash2.parseInt = parseInt2; - lodash2.random = random; - lodash2.reduce = reduce; - lodash2.reduceRight = reduceRight; - lodash2.repeat = repeat; - lodash2.replace = replace2; - lodash2.result = result; - lodash2.round = round2; - lodash2.runInContext = runInContext2; - lodash2.sample = sample; - lodash2.size = size; - lodash2.snakeCase = snakeCase; - lodash2.some = some; - lodash2.sortedIndex = sortedIndex; - lodash2.sortedIndexBy = sortedIndexBy; - lodash2.sortedIndexOf = sortedIndexOf; - lodash2.sortedLastIndex = sortedLastIndex; - lodash2.sortedLastIndexBy = sortedLastIndexBy; - lodash2.sortedLastIndexOf = sortedLastIndexOf; - lodash2.startCase = startCase; - lodash2.startsWith = startsWith; - lodash2.subtract = subtract; - lodash2.sum = sum; - lodash2.sumBy = sumBy; - lodash2.template = template; - lodash2.times = times; - lodash2.toFinite = toFinite; - lodash2.toInteger = toInteger; - lodash2.toLength = toLength; - lodash2.toLower = toLower; - lodash2.toNumber = toNumber; - lodash2.toSafeInteger = toSafeInteger; - lodash2.toString = toString; - lodash2.toUpper = toUpper; - lodash2.trim = trim2; - lodash2.trimEnd = trimEnd; - lodash2.trimStart = trimStart; - lodash2.truncate = truncate; - lodash2.unescape = unescape; - lodash2.uniqueId = uniqueId; - lodash2.upperCase = upperCase; - lodash2.upperFirst = upperFirst; - lodash2.each = forEach; - lodash2.eachRight = forEachRight; - lodash2.first = head; - mixin(lodash2, function() { - var source = {}; - baseForOwn(lodash2, function(func, methodName) { - if (!hasOwnProperty2.call(lodash2.prototype, methodName)) { - source[methodName] = func; - } - }); - return source; - }(), { "chain": false }); - lodash2.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash2[methodName].placeholder = lodash2; - }); - arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n) { - n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0); - var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n) { - return this.reverse()[methodName](n).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { - var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index) { - var takeName = "take" + (index ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index) { - var dropName = "drop" + (index ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { - if (typeof path == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined$1) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash2[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash2.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash2, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined$1 }); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash2.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash2[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty2.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({ "name": methodName, "func": lodashFunc }); - } - }); - realNames[createHybrid(undefined$1, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined$1 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash2.prototype.at = wrapperAt; - lodash2.prototype.chain = wrapperChain; - lodash2.prototype.commit = wrapperCommit; - lodash2.prototype.next = wrapperNext; - lodash2.prototype.plant = wrapperPlant; - lodash2.prototype.reverse = wrapperReverse; - lodash2.prototype.toJSON = lodash2.prototype.valueOf = lodash2.prototype.value = wrapperValue; - lodash2.prototype.first = lodash2.prototype.head; - if (symIterator) { - lodash2.prototype[symIterator] = wrapperToIterator; - } - return lodash2; - }; - var _2 = runInContext(); - if (freeModule) { - (freeModule.exports = _2)._ = _2; - freeExports._ = _2; - } else { - root._ = _2; - } - }).call(commonjsGlobal); - })(lodash$1, lodash$1.exports); - const React$g = window["React"]; - window["React"].Component; - const ErrorBoundary = window["__foc__"].ErrorBoundary; - function PluginWrapper({ component, props }) { - return /* @__PURE__ */ jsxRuntime.exports.jsx(ErrorBoundary, { disableReset: true, children: React$g.createElement(component, props) }); - } - function wrapCustomComponent(customComponent) { - return (props) => /* @__PURE__ */ jsxRuntime.exports.jsx(PluginWrapper, { component: customComponent, props }); - } - const foc = window["__foc__"]; - const foo = window["__foo__"]; - const fos = window["__fos__"]; - const fou = window["__fou__"]; - window["__fou__"].getFetchFunction; - window["__fou__"].getFetchOrigin; - const mui = window["__mui__"]; - const React$f = window["React"]; - window["React"].useEffect; - window["React"].useMemo; - window["React"].useState; - const ReactDOM = window["ReactDOM"]; - const recoil = window["recoil"]; - if (typeof window !== "undefined") { - window.React = React$f; - window.ReactDOM = ReactDOM; - window.recoil = recoil; - window.__fos__ = fos; - window.__foc__ = foc; - window.__fou__ = fou; - window.__foo__ = foo; - window.__mui__ = mui; - } - function usingRegistry() { - if (!window.__fo_plugin_registry__) { - window.__fo_plugin_registry__ = new PluginComponentRegistry(); - } - return window.__fo_plugin_registry__; - } - function registerComponent(registration) { - if (!registration.activator) { - registration.activator = () => true; - } - usingRegistry().register(registration); - } - var PluginComponentType = /* @__PURE__ */ ((PluginComponentType2) => { - PluginComponentType2[PluginComponentType2["Visualizer"] = 0] = "Visualizer"; - PluginComponentType2[PluginComponentType2["Plot"] = 1] = "Plot"; - PluginComponentType2[PluginComponentType2["Panel"] = 2] = "Panel"; - PluginComponentType2[PluginComponentType2["Component"] = 3] = "Component"; - return PluginComponentType2; - })(PluginComponentType || {}); - const DEFAULT_ACTIVATOR = () => true; - function assert(ok, msg, printWarningOnly = false) { - const failed = ok === false || ok === null || ok === void 0; - if (failed && printWarningOnly) - console.warn(msg); - else if (failed) - throw new Error(msg); - } - function warn(ok, msg) { - assert(ok, msg, true); - } - const REQUIRED = ["name", "type", "component"]; - class PluginComponentRegistry { - constructor() { - __publicField(this, "data", /* @__PURE__ */ new Map()); - __publicField(this, "pluginDefinitions", /* @__PURE__ */ new Map()); - __publicField(this, "scripts", /* @__PURE__ */ new Set()); - } - registerScript(name) { - this.scripts.add(name); - } - registerPluginDefinition(pluginDefinition) { - this.pluginDefinitions.set(pluginDefinition.name, pluginDefinition); - } - getPluginDefinition(name) { - return this.pluginDefinitions.get(name); - } - hasScript(name) { - return this.scripts.has(name); - } - register(registration) { - const { name } = registration; - if (typeof registration.activator !== "function") { - registration.activator = DEFAULT_ACTIVATOR; - } - for (let fieldName of REQUIRED) { - assert( - registration[fieldName], - `${fieldName} is required to register a Plugin Component` - ); - } - warn( - !this.data.has(name), - `${name} is already a registered Plugin Component` - ); - warn( - registration.type === 1, - `${name} is a Plot Plugin Component. This is deprecated. Please use "Panel" instead.` - ); - const wrappedRegistration = { - ...registration, - component: wrapCustomComponent(registration.component) - }; - this.data.set(name, wrappedRegistration); - } - unregister(name) { - return this.data.delete(name); - } - getByType(type) { - const results = []; - for (const registration of this.data.values()) { - if (registration.type === type) { - results.push(registration); - } - } - return results; - } - clear() { - this.data.clear(); - } - } - var lodash = { exports: {} }; - /** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - (function(module, exports) { - (function() { - var undefined$1; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\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", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - 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 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = exports && !exports.nodeType && exports; - var freeModule = freeExports && true && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types2 = freeModule && freeModule.require && freeModule.require("util").types; - if (types2) { - return types2; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - 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); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - var value = array[index]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length2 = array == null ? 0 : array.length; - while (length2--) { - if (iteratee(array[length2], length2, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (!predicate(array[index], index, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index < length2) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length2 = array == null ? 0 : array.length; - return !!length2 && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (comparator(value, array[index])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index = -1, length2 = array == null ? 0 : array.length, result = Array(length2); - while (++index < length2) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - function arrayPush(array, values2) { - var index = -1, length2 = values2.length, offset = array.length; - while (++index < length2) { - array[offset + index] = values2[index]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length2 = array == null ? 0 : array.length; - if (initAccum && length2) { - accumulator = array[++index]; - } - while (++index < length2) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length2 = array == null ? 0 : array.length; - if (initAccum && length2) { - accumulator = array[--length2]; - } - while (length2--) { - accumulator = iteratee(accumulator, array[length2], length2, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index = -1, length2 = array == null ? 0 : array.length; - while (++index < length2) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length2 = array.length, index = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index-- : ++index < length2) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index = fromIndex - 1, length2 = array.length; - while (++index < length2) { - if (comparator(array[index], value)) { - return index; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSum(array, iteratee) / length2 : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined$1 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined$1 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length2 = array.length; - array.sort(comparer); - while (length2--) { - array[length2] = array[length2].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index = -1, length2 = array.length; - while (++index < length2) { - var current = iteratee(array[index]); - if (current !== undefined$1) { - result = result === undefined$1 ? current : result + current; - } - } - return result; - } - function baseTimes(n, iteratee) { - var index = -1, result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, length2 = strSymbols.length; - while (++index < length2 && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function countHolders(array, placeholder) { - var length2 = array.length, result = 0; - while (length2--) { - if (array[length2] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue2(object, key) { - return object == null ? undefined$1 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - function replaceHolders(array, placeholder) { - var index = -1, length2 = array.length, resIndex = 0, result = []; - while (++index < length2) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; - } - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - function setToPairs(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length2 = array.length; - while (++index < length2) { - if (array[index] === value) { - return index; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index = string.length; - while (index-- && reWhitespace.test(string.charAt(index))) { - } - return index; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty2 = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2( - "^" + funcToString.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ); - var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1; - var defineProperty2 = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap2 && new WeakMap2(); - var realNames = {}; - var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1; - function lodash2(value) { - if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty2.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined$1; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined$1; - } - lodash2.templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": lodash2 - } - }; - lodash2.prototype = baseLodash.prototype; - lodash2.prototype.constructor = lodash2; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length2 = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length2, this.__takeCount__); - if (!isArr || !isRight && arrLength == length2 && takeCount == length2) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length2-- && resIndex < takeCount) { - index += dir; - var iterIndex = -1, value = array[index]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - function Hash(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined$1 : result2; - } - return hasOwnProperty2.call(data, key) ? data[key] : undefined$1; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - function ListCache(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? undefined$1 : data[index][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - function listCacheSet(key, value) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - function MapCache(entries) { - var index = -1, length2 = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length2) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values3) { - var index = -1, length2 = values3 == null ? 0 : values3.length; - this.__data__ = new MapCache(); - while (++index < length2) { - this.add(values3[index]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - 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, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length2 = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length2)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length2 = array.length; - return length2 ? array[baseRandom(0, length2 - 1)] : undefined$1; - } - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined$1 && !eq(object[key], value) || value === undefined$1 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === undefined$1 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length2 = array.length; - while (length2--) { - if (eq(array[length2][0], key)) { - return length2; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty2) { - defineProperty2(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index = -1, length2 = paths.length, result2 = Array2(length2), skip = object == null; - while (++index < length2) { - result2[index] = skip ? undefined$1 : get(object, paths[index]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined$1) { - number = number <= upper ? number : upper; - } - if (lower !== undefined$1) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined$1) { - return result2; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined$1 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length2 = props.length; - if (object == null) { - return !length2; - } - object = Object2(object); - while (length2--) { - var key = props[length2], predicate = source[key], value = object[key]; - if (value === undefined$1 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined$1, args); - }, wait); - } - function baseDifference(array, values3, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, isCommon = true, length2 = array.length, result2 = [], valuesLength = values3.length; - if (!length2) { - return result2; - } - if (iteratee2) { - values3 = arrayMap(values3, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values3.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values3 = new SetCache(values3); - } - outer: - while (++index < length2) { - var value = array[index], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values3[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values3, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index, collection2) { - result2 = !!predicate(value, index, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index = -1, length2 = array.length; - while (++index < length2) { - var value = array[index], current = iteratee2(value); - if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length2 = array.length; - start = toInteger(start); - if (start < 0) { - start = -start > length2 ? 0 : length2 + start; - } - end = end === undefined$1 || end > length2 ? length2 : toInteger(end); - if (end < 0) { - end += length2; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index, collection2) { - if (predicate(value, index, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index = -1, length2 = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index < length2) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - function baseGet(object, path) { - path = castPath(path, object); - var index = 0, length2 = path.length; - while (object != null && index < length2) { - object = object[toKey(path[index++])]; - } - return index && index == length2 ? object : undefined$1; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined$1 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty2.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length2 = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length2 >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1; - } - array = arrays[0]; - var index = -1, seen = caches[0]; - outer: - while (++index < length2 && result2.length < maxLength) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - function baseInvoke(object, path, args) { - path = castPath(path, object); - object = parent(object, path); - var func = object == null ? object : object[toKey(last(path))]; - return func == null ? undefined$1 : apply(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, length2 = index, noCustomizer = !customizer; - if (object == null) { - return !length2; - } - object = Object2(object); - while (index--) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index < length2) { - data = matchData[index]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === undefined$1 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined$1 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == "object") { - return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty2.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index] = iteratee2(value, key, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack()); - if (isObject(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1; - if (newValue === undefined$1) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - 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); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1; - var isCommon = newValue === undefined$1; - if (isCommon) { - var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject2(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject(objValue) || isFunction(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n) { - var length2 = array.length; - if (!length2) { - return; - } - n += n < 0 ? length2 : 0; - return isIndex(n, length2) ? array[n] : undefined$1; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity]; - } - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return { "criteria": criteria, "index": ++index, "value": value }; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path) { - return hasIn(object, path); - }); - } - function basePickBy(object, paths, predicate) { - var index = -1, length2 = paths.length, result2 = {}; - while (++index < length2) { - var path = paths[index], value = baseGet(object, path); - if (predicate(value, path)) { - baseSet(result2, castPath(path, object), value); - } - } - return result2; - } - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - function basePullAll(array, values3, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length2 = values3.length, seen = array; - if (array === values3) { - values3 = copyArray(values3); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index < length2) { - var fromIndex = 0, value = values3[index], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length2 = array ? indexes.length : 0, lastIndex = length2 - 1; - while (length2--) { - var index = indexes[length2]; - if (length2 == lastIndex || index !== previous) { - var previous = index; - if (isIndex(index)) { - splice.call(array, index, 1); - } else { - baseUnset(array, index); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index = -1, length2 = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length2); - while (length2--) { - result2[fromRight ? length2 : ++index] = start; - start += step; - } - return result2; - } - function baseRepeat(string, n) { - var result2 = ""; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n % 2) { - result2 += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - function baseSample(collection) { - return arraySample(values2(collection)); - } - function baseSampleSize(collection, n) { - var array = values2(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = castPath(path, object); - var index = -1, length2 = path.length, lastIndex = length2 - 1, nested = object; - while (nested != null && ++index < length2) { - var key = toKey(path[index]), newValue = value; - if (key === "__proto__" || key === "constructor" || key === "prototype") { - return object; - } - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined$1; - if (newValue === undefined$1) { - newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - var baseSetToString = !defineProperty2 ? identity : function(func, string) { - return defineProperty2(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values2(collection)); - } - function baseSlice(array, start, end) { - var index = -1, length2 = array.length; - if (start < 0) { - start = -start > length2 ? 0 : length2 + start; - } - end = end > length2 ? length2 : end; - if (end < 0) { - end += length2; - } - length2 = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result2 = Array2(length2); - while (++index < length2) { - result2[index] = array[index + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index, collection2) { - result2 = predicate(value, index, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined$1; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined$1, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index = -1, length2 = array.length, resIndex = 0, result2 = []; - while (++index < length2) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - if (!index || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, length2 = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length2 >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index < length2) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length2 = array.length, index = fromRight ? length2 : -1; - while ((fromRight ? index-- : ++index < length2) && predicate(array[index], index, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length2) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length2 : index); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length2 = arrays.length; - if (length2 < 2) { - return length2 ? baseUniq(arrays[0]) : []; - } - var index = -1, result2 = Array2(length2); - while (++index < length2) { - var array = arrays[index], othIndex = -1; - while (++othIndex < length2) { - if (othIndex != index) { - result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values3, assignFunc) { - var index = -1, length2 = props.length, valsLength = values3.length, result2 = {}; - while (++index < length2) { - var value = index < valsLength ? values3[index] : undefined$1; - assignFunc(result2, props[index], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity; - } - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length2 = array.length; - end = end === undefined$1 ? length2 : end; - return !start && end >= length2 ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length2 = buffer.length, result2 = allocUnsafe ? allocUnsafe(length2) : new buffer.constructor(length2); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined$1, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined$1, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length2 = objCriteria.length, ordersLength = orders.length; - while (++index < length2) { - var result2 = compareAscending(objCriteria[index], othCriteria[index]); - if (result2) { - if (index >= ordersLength) { - return result2; - } - var order = orders[index]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index = -1, length2 = source.length; - array || (array = Array2(length2)); - while (++index < length2) { - array[index] = source[index]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index = -1, length2 = props.length; - while (++index < length2) { - var key = props[index]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1; - if (newValue === undefined$1) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length2 = sources.length, customizer = length2 > 1 ? sources[length2 - 1] : undefined$1, guard = length2 > 2 ? sources[2] : undefined$1; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length2--, customizer) : undefined$1; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length2 < 3 ? undefined$1 : customizer; - length2 = 1; - } - object = Object2(object); - while (++index < length2) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length2 = collection.length, index = fromRight ? length2 : -1, iterable = Object2(collection); - while (fromRight ? index-- : ++index < length2) { - if (iteratee2(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index = -1, iterable = Object2(object), props = keysFunc(object), length2 = props.length; - while (length2--) { - var key = props[fromRight ? length2 : ++index]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined$1; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args = arguments; - switch (args.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args[0]); - case 2: - return new Ctor(args[0], args[1]); - case 3: - return new Ctor(args[0], args[1], args[2]); - case 4: - return new Ctor(args[0], args[1], args[2], args[3]); - case 5: - return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args); - return isObject(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length2 = arguments.length, args = Array2(length2), index = length2, placeholder = getHolder(wrapper); - while (index--) { - args[index] = arguments[index]; - } - var holders = length2 < 3 && args[0] !== placeholder && args[length2 - 1] !== placeholder ? [] : replaceHolders(args, placeholder); - length2 -= holders.length; - if (length2 < arity) { - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - undefined$1, - args, - holders, - undefined$1, - undefined$1, - arity - length2 - ); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length2 = funcs.length, index = length2, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index--) { - var func = funcs[index]; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index = wrapper ? index : length2; - while (++index < length2) { - func = funcs[index]; - var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1; - if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); - } - } - return function() { - var args = arguments, value = args[0]; - if (wrapper && args.length == 1 && isArray(value)) { - return wrapper.plant(value).value(); - } - var index2 = 0, result2 = length2 ? funcs[index2].apply(this, args) : value; - while (++index2 < length2) { - result2 = funcs[index2].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func); - function wrapper() { - var length2 = arguments.length, args = Array2(length2), index = length2; - while (index--) { - args[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length2 -= holdersCount; - if (isCurried && length2 < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - thisArg, - args, - newHolders, - argPos, - ary2, - arity - length2 - ); - } - var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; - length2 = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length2 > 1) { - args.reverse(); - } - if (isAry && ary2 < length2) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined$1 && other === undefined$1) { - return defaultValue; - } - if (value !== undefined$1) { - result2 = value; - } - if (other !== undefined$1) { - if (result2 === undefined$1) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length2, chars) { - chars = chars === undefined$1 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length2) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length2 / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length2).join("") : result2.slice(0, length2); - } - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func; - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args); - } - return wrapper; - } - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined$1; - } - start = toFinite(start); - if (end === undefined$1) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined$1 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined$1, newHoldersRight = isCurry ? undefined$1 : holders, newPartials = isCurry ? partials : undefined$1, newPartialsRight = isCurry ? undefined$1 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined$1, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func, bitmask); - } - function createRound(methodName) { - var func = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - var pair = (toString(number) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision)); - pair = (toString(value) + "e").split("e"); - return +(pair[0] + "e" + (+pair[1] - precision)); - } - return func(number); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values3) { - return new Set2(values3); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length2 = partials ? partials.length : 0; - if (!length2) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined$1; - } - ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0); - arity = arity === undefined$1 ? arity : toInteger(arity); - length2 -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined$1; - } - var data = isBindKey ? undefined$1 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity - ]; - if (data) { - mergeData(newData, data); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length2, 0); - if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined$1, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject(objValue) && isObject(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject2(value) ? undefined$1 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1; - stack.set(array, other); - stack.set(other, array); - while (++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 (compared !== undefined$1) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === undefined$1 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined$1, flatten), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length2 = hasOwnProperty2.call(realNames, result2) ? array.length : 0; - while (length2--) { - var data = array[length2], otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash2.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length2 = result2.length; - while (length2--) { - var key = result2[length2], value = object[key]; - result2[length2] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue2(object, key); - return baseIsNative(value) ? value : undefined$1; - } - function getRawTag(value) { - var isOwn = hasOwnProperty2.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined$1; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start, end, transforms) { - var index = -1, length2 = transforms.length; - while (++index < length2) { - var data = transforms[index], size2 = data.size; - switch (data.type) { - case "drop": - start += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start + size2); - break; - case "takeRight": - start = nativeMax(start, end - size2); - break; - } - } - return { "start": start, "end": end }; - } - function getWrapDetails(source) { - var match2 = source.match(reWrapDetails); - return match2 ? match2[1].split(reSplitDetails) : []; - } - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index = -1, length2 = path.length, result2 = false; - while (++index < length2) { - var key = toKey(path[index]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index != length2) { - return result2; - } - length2 = object == null ? 0 : object.length; - return !!length2 && isLength(length2) && isIndex(key, length2) && (isArray(object) || isArguments(object)); - } - function initCloneArray(array) { - var length2 = array.length, result2 = new array.constructor(length2); - if (length2 && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length2 = details.length; - if (!length2) { - return source; - } - var lastIndex = length2 - 1; - details[lastIndex] = (length2 > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length2 > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex(value, length2) { - var type = typeof value; - length2 = length2 == null ? MAX_SAFE_INTEGER : length2; - return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2); - } - function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index; - if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { - return eq(object[index], value); - } - return false; - } - function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func) { - var funcName = getFuncName(func), other = lodash2[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data = getData(other); - return !!data && func === data[0]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined$1 || key in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize2(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - function mergeData(data, source) { - var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index = -1, length2 = nativeMax(args.length - start, 0), array = Array2(length2); - while (++index < length2) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array2(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform2(array); - return apply(func, this, otherArgs); - }; - } - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length2 = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length2--) { - var index = indexes[length2]; - array[length2] = isIndex(index, arrLength) ? oldArray[index] : undefined$1; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined$1, arguments); - }; - } - function shuffleSelf(array, size2) { - var index = -1, length2 = array.length, lastIndex = length2 - 1; - size2 = size2 === undefined$1 ? length2 : size2; - while (++index < size2) { - var rand = baseRandom(index, lastIndex), value = array[rand]; - array[rand] = array[index]; - array[index] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match2, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match2); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = "_." + pair[0]; - if (bitmask & pair[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined$1) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length2 = array == null ? 0 : array.length; - if (!length2 || size2 < 1) { - return []; - } - var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length2 / size2)); - while (index < length2) { - result2[resIndex++] = baseSlice(array, index, index += size2); - } - return result2; - } - function compact(array) { - var index = -1, length2 = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index < length2) { - var value = array[index]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length2 = arguments.length; - if (!length2) { - return []; - } - var args = Array2(length2 - 1), array = arguments[0], index = length2; - while (index--) { - args[index - 1] = arguments[index]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values3) { - var iteratee2 = last(values3); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values3) { - var comparator = last(values3); - if (isArrayLikeObject(comparator)) { - comparator = undefined$1; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values3, 1, isArrayLikeObject, true), undefined$1, comparator) : []; - }); - function drop(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length2); - } - function dropRight(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - n = length2 - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start, end) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - if (start && typeof start != "number" && isIterateeCall(array, value, start)) { - start = 0; - end = length2; - } - return baseFill(array, value, start, end); - } - function findIndex(array, predicate, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length2 + index, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index); - } - function findLastIndex(array, predicate, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = length2 - 1; - if (fromIndex !== undefined$1) { - index = toInteger(fromIndex); - index = fromIndex < 0 ? nativeMax(length2 + index, 0) : nativeMin(index, length2 - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - function flatten(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - depth = depth === undefined$1 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index = -1, length2 = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index < length2) { - var pair = pairs[index]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined$1; - } - function indexOf(array, value, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length2 + index, 0); - } - return baseIndexOf(array, value, index); - } - function initial(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined$1; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined$1; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined$1, comparator) : []; - }); - function join(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? array[length2 - 1] : undefined$1; - } - function lastIndexOf(array, value, fromIndex) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return -1; - } - var index = length2; - if (fromIndex !== undefined$1) { - index = toInteger(fromIndex); - index = index < 0 ? nativeMax(length2 + index, 0) : nativeMin(index, length2 - 1); - } - return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); - } - function nth(array, n) { - return array && array.length ? baseNth(array, toInteger(n)) : undefined$1; - } - var pull = baseRest(pullAll); - function pullAll(array, values3) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3) : array; - } - function pullAllBy(array, values3, iteratee2) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values3, comparator) { - return array && array.length && values3 && values3.length ? basePullAll(array, values3, undefined$1, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length2 = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length2) ? +index : index; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index = -1, indexes = [], length2 = array.length; - predicate = getIteratee(predicate, 3); - while (++index < length2) { - var value = array[index]; - if (predicate(value, index, array)) { - result2.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice2(array, start, end) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start, end)) { - start = 0; - end = length2; - } else { - start = start == null ? 0 : toInteger(start); - end = end === undefined$1 ? length2 : toInteger(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length2 = array == null ? 0 : array.length; - if (length2) { - var index = baseSortedIndex(array, value); - if (index < length2 && eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length2 = array == null ? 0 : array.length; - if (length2) { - var index = baseSortedIndex(array, value, true) - 1; - if (eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length2 = array == null ? 0 : array.length; - return length2 ? baseSlice(array, 1, length2) : []; - } - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function takeRight(array, n, guard) { - var length2 = array == null ? 0 : array.length; - if (!length2) { - return []; - } - n = guard || n === undefined$1 ? 1 : toInteger(n); - n = length2 - n; - return baseSlice(array, n < 0 ? 0 : n, length2); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined$1; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined$1; - return array && array.length ? baseUniq(array, undefined$1, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length2 = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length2 = nativeMax(group.length, length2); - return true; - } - }); - return baseTimes(length2, function(index) { - return arrayMap(array, baseProperty(index)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined$1, group); - }); - } - var without = baseRest(function(array, values3) { - return isArrayLikeObject(array) ? baseDifference(array, values3) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined$1; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined$1; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values3) { - return baseZipObject(props || [], values3 || [], assignValue); - } - function zipObjectDeep(props, values3) { - return baseZipObject(props || [], values3 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length2 = arrays.length, iteratee2 = length2 > 1 ? arrays[length2 - 1] : undefined$1; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined$1; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash2(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length2 = paths.length, start = length2 ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length2 > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length2 ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined$1 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length2 && !array.length) { - array.push(undefined$1); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined$1) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined$1 : this.__values__[this.__index__++]; - return { "done": done, "value": value }; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone2 = wrapperClone(parent2); - clone2.__index__ = 0; - clone2.__values__ = undefined$1; - if (result2) { - previous.__wrapped__ = clone2; - } else { - result2 = clone2; - } - var previous = clone2; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined$1 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined$1; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined$1 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach(collection, iteratee2) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty2.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values2(collection); - fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; - var length2 = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length2 + fromIndex, 0); - } - return isString(collection) ? fromIndex <= length2 && collection.indexOf(value, fromIndex) > -1 : !!length2 && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path, args) { - var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined$1 : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n, guard) { - if (guard ? isIterateeCall(collection, n, guard) : n === undefined$1) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); - } - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined$1; - } - return func(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length2 = iteratees.length; - if (length2 > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length2 > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n, guard) { - n = guard ? undefined$1 : n; - n = func && n == null ? func.length : n; - return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n); - } - function before(n, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result2 = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined$1; - } - return result2; - }; - } - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - function curry(func, arity, guard) { - arity = guard ? undefined$1 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined$1 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce2(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = "maxWait" in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - function invokeFunc(time) { - var args = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined$1; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined$1 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined$1; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined$1; - return result2; - } - function cancel() { - if (timerId !== undefined$1) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined$1; - } - function flush() { - return timerId === undefined$1 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined$1) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined$1) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize2(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - 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 result2 = func.apply(this, args); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize2.Cache || MapCache)(); - return memoized; - } - memoize2.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args[0]); - case 2: - return !predicate.call(this, args[0], args[1]); - case 3: - return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - function once(func) { - return before(2, func); - } - var overArgs = castRest(function(func, transforms) { - transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args) { - var index = -1, length2 = nativeMin(args.length, funcsLength); - while (++index < length2) { - args[index] = transforms[index].call(this, args[index]); - } - return apply(func, this, args); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined$1 ? start : toInteger(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start == null ? 0 : nativeMax(toInteger(start), 0); - return baseRest(function(args) { - var array = args[start], otherArgs = castSlice(args, 0, start); - if (array) { - arrayPush(otherArgs, array); - } - return apply(func, this, otherArgs); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject(options)) { - leading = "leading" in options ? !!options.leading : leading; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - return debounce2(func, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - function clone(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject2(value); - } - function isEmpty2(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty2.call(value, key)) { - return false; - } - } - return true; - } - function isEqual(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - var result2 = customizer ? customizer(value, other) : undefined$1; - return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2; - } - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject2(value); - } - function isFinite(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - function isPlainObject2(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString(value) { - return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined(value) { - return value === undefined$1; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag = getTag(value), func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values2; - return func(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? 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; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString(value) { - return value == null ? "" : baseToString(value); - } - var assign2 = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty2.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at = flatRest(baseAt); - function create(prototype, properties2) { - var result2 = baseCreate(prototype); - return properties2 == null ? result2 : baseAssign(result2, properties2); - } - var defaults = baseRest(function(object, sources) { - object = Object2(object); - var index = -1; - var length2 = sources.length; - var guard = length2 > 2 ? sources[2] : undefined$1; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length2 = 1; - } - while (++index < length2) { - var source = sources[index]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key = props[propsIndex]; - var value = object[key]; - if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty2.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined$1, customDefaultsMerge); - return apply(mergeWith, undefined$1, args); - }); - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path, defaultValue) { - var result2 = object == null ? undefined$1 : baseGet(object, path); - return result2 === undefined$1 ? defaultValue : result2; - } - function has2(object, path) { - return object != null && hasPath(object, path, baseHas); - } - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty2.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge2 = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length2 = paths.length; - while (length2--) { - baseUnset(result2, paths[length2]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path) { - return predicate(value, path[0]); - }); - } - function result(object, path, defaultValue) { - path = castPath(path, object); - var index = -1, length2 = path.length; - if (!length2) { - length2 = 1; - object = undefined$1; - } - while (++index < length2) { - var value = object == null ? undefined$1 : object[toKey(path[index])]; - if (value === undefined$1) { - index = length2; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - function setWith(object, path, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return object == null ? object : baseSet(object, path, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject(object)) { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) { - return iteratee2(accumulator, value, index, object2); - }); - return accumulator; - } - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined$1; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - function values2(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp2(number, lower, upper) { - if (upper === undefined$1) { - upper = lower; - lower = undefined$1; - } - if (upper !== undefined$1) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined$1) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined$1) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined$1; - } - if (floating === undefined$1) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined$1; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined$1; - } - } - if (lower === undefined$1 && upper === undefined$1) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined$1) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase = createCompounder(function(result2, word, index) { - word = word.toLowerCase(); - return result2 + (index ? capitalize2(word) : word); - }); - function capitalize2(string) { - return upperFirst(toString(string).toLowerCase()); - } - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith(string, target, position2) { - string = toString(string); - target = baseToString(target); - var length2 = string.length; - position2 = position2 === undefined$1 ? length2 : baseClamp(toInteger(position2), 0, length2); - var end = position2; - position2 -= target.length; - return position2 >= 0 && string.slice(position2, end) == target; - } - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - if (!length2 || strLength >= length2) { - return string; - } - var mid = (length2 - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars); - } - function padEnd(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - return length2 && strLength < length2 ? string + createPadding(length2 - strLength, chars) : string; - } - function padStart(string, length2, chars) { - string = toString(string); - length2 = toInteger(length2); - var strLength = length2 ? stringSize(string) : 0; - return length2 && strLength < length2 ? createPadding(length2 - strLength, chars) + string : string; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n, guard) { - if (guard ? isIterateeCall(string, n, guard) : n === undefined$1) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString(string), n); - } - function replace2() { - var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined$1; - } - limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString(string); - if (string && (typeof separator == "string" || separator != null && !isRegExp(separator))) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + upperFirst(word); - }); - function startsWith(string, target, position2) { - string = toString(string); - position2 = position2 == null ? 0 : baseClamp(toInteger(position2), 0, string.length); - target = baseToString(target); - return string.slice(position2, position2 + target.length) == target; - } - function template(string, options, guard) { - var settings = lodash2.templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = undefined$1; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2( - (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", - "g" - ); - var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match2, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match2.length; - return match2; - }); - source += "';\n"; - var variable = hasOwnProperty2.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined$1, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString(value).toLowerCase(); - } - function toUpper(value) { - return toString(value).toUpperCase(); - } - function trim2(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return baseTrim(string); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start, end).join(""); - } - function trimEnd(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined$1)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate(string, options) { - var length2 = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject(options)) { - var separator = "separator" in options ? options.separator : separator; - length2 = "length" in options ? toInteger(options.length) : length2; - omission = "omission" in options ? baseToString(options.omission) : omission; - } - string = toString(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length2 >= strLength) { - return string; - } - var end = length2 - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined$1) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp(separator)) { - if (string.slice(end).search(separator)) { - var match2, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match2 = separator.exec(substring)) { - var newEnd = match2.index; - } - result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index = result2.lastIndexOf(separator); - if (index > -1) { - result2 = result2.slice(0, index); - } - } - return result2 + omission; - } - function unescape(string) { - string = toString(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined$1 : pattern; - if (pattern === undefined$1) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply(func, undefined$1, args); - } catch (e) { - return isError(e) ? e : new Error2(e); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length2 = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length2 ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair[0]), pair[1]]; - }); - return baseRest(function(args) { - var index = -1; - while (++index < length2) { - var pair = pairs[index]; - if (apply(pair[0], this, args)) { - return apply(pair[1], this, args); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path, args) { - return function(object) { - return baseInvoke(object, path, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path) { - return baseInvoke(object, path, args); - }; - }); - function mixin(object, source, options) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options == null && !(isObject(source) && (methodNames.length || !props.length))) { - options = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({ "func": func, "args": arguments, "thisArg": object }); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop() { - } - function nthArg(n) { - n = toInteger(n); - return baseRest(function(args) { - return baseNth(args, n); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - function propertyOf(object) { - return function(path) { - return object == null ? undefined$1 : baseGet(object, path); - }; - } - var range = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n, iteratee2) { - n = toInteger(n); - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - var index = MAX_ARRAY_LENGTH, length2 = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length2, iteratee2); - while (++index < n) { - iteratee2(index); - } - return result2; - } - function toPath(value) { - if (isArray(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); - } - function uniqueId(prefix2) { - var id = ++idCounter; - return toString(prefix2) + id; - } - var add = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity, baseGt) : undefined$1; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined$1; - } - function mean(array) { - return baseMean(array, identity); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity, baseLt) : undefined$1; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined$1; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round2 = createRound("round"); - var subtract = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash2.after = after; - lodash2.ary = ary; - lodash2.assign = assign2; - lodash2.assignIn = assignIn; - lodash2.assignInWith = assignInWith; - lodash2.assignWith = assignWith; - lodash2.at = at; - lodash2.before = before; - lodash2.bind = bind; - lodash2.bindAll = bindAll; - lodash2.bindKey = bindKey; - lodash2.castArray = castArray; - lodash2.chain = chain; - lodash2.chunk = chunk; - lodash2.compact = compact; - lodash2.concat = concat; - lodash2.cond = cond; - lodash2.conforms = conforms; - lodash2.constant = constant; - lodash2.countBy = countBy; - lodash2.create = create; - lodash2.curry = curry; - lodash2.curryRight = curryRight; - lodash2.debounce = debounce2; - lodash2.defaults = defaults; - lodash2.defaultsDeep = defaultsDeep; - lodash2.defer = defer; - lodash2.delay = delay; - lodash2.difference = difference; - lodash2.differenceBy = differenceBy; - lodash2.differenceWith = differenceWith; - lodash2.drop = drop; - lodash2.dropRight = dropRight; - lodash2.dropRightWhile = dropRightWhile; - lodash2.dropWhile = dropWhile; - lodash2.fill = fill; - lodash2.filter = filter; - lodash2.flatMap = flatMap; - lodash2.flatMapDeep = flatMapDeep; - lodash2.flatMapDepth = flatMapDepth; - lodash2.flatten = flatten; - lodash2.flattenDeep = flattenDeep; - lodash2.flattenDepth = flattenDepth; - lodash2.flip = flip; - lodash2.flow = flow; - lodash2.flowRight = flowRight; - lodash2.fromPairs = fromPairs; - lodash2.functions = functions; - lodash2.functionsIn = functionsIn; - lodash2.groupBy = groupBy; - lodash2.initial = initial; - lodash2.intersection = intersection; - lodash2.intersectionBy = intersectionBy; - lodash2.intersectionWith = intersectionWith; - lodash2.invert = invert; - lodash2.invertBy = invertBy; - lodash2.invokeMap = invokeMap; - lodash2.iteratee = iteratee; - lodash2.keyBy = keyBy; - lodash2.keys = keys; - lodash2.keysIn = keysIn; - lodash2.map = map; - lodash2.mapKeys = mapKeys; - lodash2.mapValues = mapValues; - lodash2.matches = matches; - lodash2.matchesProperty = matchesProperty; - lodash2.memoize = memoize2; - lodash2.merge = merge2; - lodash2.mergeWith = mergeWith; - lodash2.method = method; - lodash2.methodOf = methodOf; - lodash2.mixin = mixin; - lodash2.negate = negate; - lodash2.nthArg = nthArg; - lodash2.omit = omit; - lodash2.omitBy = omitBy; - lodash2.once = once; - lodash2.orderBy = orderBy; - lodash2.over = over; - lodash2.overArgs = overArgs; - lodash2.overEvery = overEvery; - lodash2.overSome = overSome; - lodash2.partial = partial; - lodash2.partialRight = partialRight; - lodash2.partition = partition; - lodash2.pick = pick; - lodash2.pickBy = pickBy; - lodash2.property = property; - lodash2.propertyOf = propertyOf; - lodash2.pull = pull; - lodash2.pullAll = pullAll; - lodash2.pullAllBy = pullAllBy; - lodash2.pullAllWith = pullAllWith; - lodash2.pullAt = pullAt; - lodash2.range = range; - lodash2.rangeRight = rangeRight; - lodash2.rearg = rearg; - lodash2.reject = reject; - lodash2.remove = remove; - lodash2.rest = rest; - lodash2.reverse = reverse; - lodash2.sampleSize = sampleSize; - lodash2.set = set; - lodash2.setWith = setWith; - lodash2.shuffle = shuffle; - lodash2.slice = slice2; - lodash2.sortBy = sortBy; - lodash2.sortedUniq = sortedUniq; - lodash2.sortedUniqBy = sortedUniqBy; - lodash2.split = split; - lodash2.spread = spread; - lodash2.tail = tail; - lodash2.take = take; - lodash2.takeRight = takeRight; - lodash2.takeRightWhile = takeRightWhile; - lodash2.takeWhile = takeWhile; - lodash2.tap = tap; - lodash2.throttle = throttle; - lodash2.thru = thru; - lodash2.toArray = toArray; - lodash2.toPairs = toPairs; - lodash2.toPairsIn = toPairsIn; - lodash2.toPath = toPath; - lodash2.toPlainObject = toPlainObject; - lodash2.transform = transform; - lodash2.unary = unary; - lodash2.union = union; - lodash2.unionBy = unionBy; - lodash2.unionWith = unionWith; - lodash2.uniq = uniq; - lodash2.uniqBy = uniqBy; - lodash2.uniqWith = uniqWith; - lodash2.unset = unset; - lodash2.unzip = unzip; - lodash2.unzipWith = unzipWith; - lodash2.update = update; - lodash2.updateWith = updateWith; - lodash2.values = values2; - lodash2.valuesIn = valuesIn; - lodash2.without = without; - lodash2.words = words; - lodash2.wrap = wrap; - lodash2.xor = xor; - lodash2.xorBy = xorBy; - lodash2.xorWith = xorWith; - lodash2.zip = zip; - lodash2.zipObject = zipObject; - lodash2.zipObjectDeep = zipObjectDeep; - lodash2.zipWith = zipWith; - lodash2.entries = toPairs; - lodash2.entriesIn = toPairsIn; - lodash2.extend = assignIn; - lodash2.extendWith = assignInWith; - mixin(lodash2, lodash2); - lodash2.add = add; - lodash2.attempt = attempt; - lodash2.camelCase = camelCase; - lodash2.capitalize = capitalize2; - lodash2.ceil = ceil; - lodash2.clamp = clamp2; - lodash2.clone = clone; - lodash2.cloneDeep = cloneDeep; - lodash2.cloneDeepWith = cloneDeepWith; - lodash2.cloneWith = cloneWith; - lodash2.conformsTo = conformsTo; - lodash2.deburr = deburr; - lodash2.defaultTo = defaultTo; - lodash2.divide = divide; - lodash2.endsWith = endsWith; - lodash2.eq = eq; - lodash2.escape = escape; - lodash2.escapeRegExp = escapeRegExp; - lodash2.every = every; - lodash2.find = find; - lodash2.findIndex = findIndex; - lodash2.findKey = findKey; - lodash2.findLast = findLast; - lodash2.findLastIndex = findLastIndex; - lodash2.findLastKey = findLastKey; - lodash2.floor = floor; - lodash2.forEach = forEach; - lodash2.forEachRight = forEachRight; - lodash2.forIn = forIn; - lodash2.forInRight = forInRight; - lodash2.forOwn = forOwn; - lodash2.forOwnRight = forOwnRight; - lodash2.get = get; - lodash2.gt = gt; - lodash2.gte = gte; - lodash2.has = has2; - lodash2.hasIn = hasIn; - lodash2.head = head; - lodash2.identity = identity; - lodash2.includes = includes; - lodash2.indexOf = indexOf; - lodash2.inRange = inRange; - lodash2.invoke = invoke; - lodash2.isArguments = isArguments; - lodash2.isArray = isArray; - lodash2.isArrayBuffer = isArrayBuffer; - lodash2.isArrayLike = isArrayLike; - lodash2.isArrayLikeObject = isArrayLikeObject; - lodash2.isBoolean = isBoolean; - lodash2.isBuffer = isBuffer; - lodash2.isDate = isDate; - lodash2.isElement = isElement; - lodash2.isEmpty = isEmpty2; - lodash2.isEqual = isEqual; - lodash2.isEqualWith = isEqualWith; - lodash2.isError = isError; - lodash2.isFinite = isFinite; - lodash2.isFunction = isFunction; - lodash2.isInteger = isInteger; - lodash2.isLength = isLength; - lodash2.isMap = isMap; - lodash2.isMatch = isMatch; - lodash2.isMatchWith = isMatchWith; - lodash2.isNaN = isNaN2; - lodash2.isNative = isNative; - lodash2.isNil = isNil; - lodash2.isNull = isNull; - lodash2.isNumber = isNumber; - lodash2.isObject = isObject; - lodash2.isObjectLike = isObjectLike; - lodash2.isPlainObject = isPlainObject2; - lodash2.isRegExp = isRegExp; - lodash2.isSafeInteger = isSafeInteger; - lodash2.isSet = isSet; - lodash2.isString = isString; - lodash2.isSymbol = isSymbol; - lodash2.isTypedArray = isTypedArray; - lodash2.isUndefined = isUndefined; - lodash2.isWeakMap = isWeakMap; - lodash2.isWeakSet = isWeakSet; - lodash2.join = join; - lodash2.kebabCase = kebabCase; - lodash2.last = last; - lodash2.lastIndexOf = lastIndexOf; - lodash2.lowerCase = lowerCase; - lodash2.lowerFirst = lowerFirst; - lodash2.lt = lt; - lodash2.lte = lte; - lodash2.max = max; - lodash2.maxBy = maxBy; - lodash2.mean = mean; - lodash2.meanBy = meanBy; - lodash2.min = min; - lodash2.minBy = minBy; - lodash2.stubArray = stubArray; - lodash2.stubFalse = stubFalse; - lodash2.stubObject = stubObject; - lodash2.stubString = stubString; - lodash2.stubTrue = stubTrue; - lodash2.multiply = multiply; - lodash2.nth = nth; - lodash2.noConflict = noConflict; - lodash2.noop = noop; - lodash2.now = now; - lodash2.pad = pad; - lodash2.padEnd = padEnd; - lodash2.padStart = padStart; - lodash2.parseInt = parseInt2; - lodash2.random = random; - lodash2.reduce = reduce; - lodash2.reduceRight = reduceRight; - lodash2.repeat = repeat; - lodash2.replace = replace2; - lodash2.result = result; - lodash2.round = round2; - lodash2.runInContext = runInContext2; - lodash2.sample = sample; - lodash2.size = size; - lodash2.snakeCase = snakeCase; - lodash2.some = some; - lodash2.sortedIndex = sortedIndex; - lodash2.sortedIndexBy = sortedIndexBy; - lodash2.sortedIndexOf = sortedIndexOf; - lodash2.sortedLastIndex = sortedLastIndex; - lodash2.sortedLastIndexBy = sortedLastIndexBy; - lodash2.sortedLastIndexOf = sortedLastIndexOf; - lodash2.startCase = startCase; - lodash2.startsWith = startsWith; - lodash2.subtract = subtract; - lodash2.sum = sum; - lodash2.sumBy = sumBy; - lodash2.template = template; - lodash2.times = times; - lodash2.toFinite = toFinite; - lodash2.toInteger = toInteger; - lodash2.toLength = toLength; - lodash2.toLower = toLower; - lodash2.toNumber = toNumber; - lodash2.toSafeInteger = toSafeInteger; - lodash2.toString = toString; - lodash2.toUpper = toUpper; - lodash2.trim = trim2; - lodash2.trimEnd = trimEnd; - lodash2.trimStart = trimStart; - lodash2.truncate = truncate; - lodash2.unescape = unescape; - lodash2.uniqueId = uniqueId; - lodash2.upperCase = upperCase; - lodash2.upperFirst = upperFirst; - lodash2.each = forEach; - lodash2.eachRight = forEachRight; - lodash2.first = head; - mixin(lodash2, function() { - var source = {}; - baseForOwn(lodash2, function(func, methodName) { - if (!hasOwnProperty2.call(lodash2.prototype, methodName)) { - source[methodName] = func; - } - }); - return source; - }(), { "chain": false }); - lodash2.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash2[methodName].placeholder = lodash2; - }); - arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n) { - n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0); - var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n) { - return this.reverse()[methodName](n).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { - var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index) { - var takeName = "take" + (index ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index) { - var dropName = "drop" + (index ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { - if (typeof path == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined$1) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash2[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash2.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash2, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined$1 }); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash2.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash2[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty2.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({ "name": methodName, "func": lodashFunc }); - } - }); - realNames[createHybrid(undefined$1, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined$1 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash2.prototype.at = wrapperAt; - lodash2.prototype.chain = wrapperChain; - lodash2.prototype.commit = wrapperCommit; - lodash2.prototype.next = wrapperNext; - lodash2.prototype.plant = wrapperPlant; - lodash2.prototype.reverse = wrapperReverse; - lodash2.prototype.toJSON = lodash2.prototype.valueOf = lodash2.prototype.value = wrapperValue; - lodash2.prototype.first = lodash2.prototype.head; - if (symIterator) { - lodash2.prototype[symIterator] = wrapperToIterator; - } - return lodash2; - }; - var _2 = runInContext(); - if (freeModule) { - (freeModule.exports = _2)._ = _2; - freeExports._ = _2; - } else { - root._ = _2; - } - }).call(commonjsGlobal); - })(lodash, lodash.exports); - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) - return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) - continue; - target[key] = source[key]; - } - return target; - } - function _extends() { - _extends = Object.assign ? Object.assign.bind() : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return _extends.apply(this, arguments); - } - var propTypes = { exports: {} }; - var reactIs$3 = { exports: {} }; - var reactIs_development$2 = {}; - /** @license React v16.13.1 - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - { - (function() { - var hasSymbol = typeof Symbol === "function" && Symbol.for; - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; - function isValidElementType(type) { - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); - } - function typeOf(object) { - if (typeof object === "object" && object !== null) { - var $$typeof = object.$$typeof; - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_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; - } - } - return void 0; - } - var AsyncMode = REACT_ASYNC_MODE_TYPE; - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef = REACT_FORWARD_REF_TYPE; - var Fragment = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."); - } - } - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; - } - function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - 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; - } - reactIs_development$2.AsyncMode = AsyncMode; - reactIs_development$2.ConcurrentMode = ConcurrentMode; - reactIs_development$2.ContextConsumer = ContextConsumer; - reactIs_development$2.ContextProvider = ContextProvider; - reactIs_development$2.Element = Element; - reactIs_development$2.ForwardRef = ForwardRef; - reactIs_development$2.Fragment = Fragment; - reactIs_development$2.Lazy = Lazy; - reactIs_development$2.Memo = Memo; - reactIs_development$2.Portal = Portal; - reactIs_development$2.Profiler = Profiler; - reactIs_development$2.StrictMode = StrictMode; - reactIs_development$2.Suspense = Suspense; - reactIs_development$2.isAsyncMode = isAsyncMode; - reactIs_development$2.isConcurrentMode = isConcurrentMode; - reactIs_development$2.isContextConsumer = isContextConsumer; - reactIs_development$2.isContextProvider = isContextProvider; - reactIs_development$2.isElement = isElement; - reactIs_development$2.isForwardRef = isForwardRef; - reactIs_development$2.isFragment = isFragment; - reactIs_development$2.isLazy = isLazy; - reactIs_development$2.isMemo = isMemo; - reactIs_development$2.isPortal = isPortal; - reactIs_development$2.isProfiler = isProfiler; - reactIs_development$2.isStrictMode = isStrictMode; - reactIs_development$2.isSuspense = isSuspense; - reactIs_development$2.isValidElementType = isValidElementType; - reactIs_development$2.typeOf = typeOf; - })(); - } - (function(module) { - { - module.exports = reactIs_development$2; - } - })(reactIs$3); - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols; - var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - function toObject(val) { - if (val === null || val === void 0) { - throw new TypeError("Object.assign cannot be called with null or undefined"); - } - return Object(val); - } - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - var test1 = new String("abc"); - test1[5] = "de"; - if (Object.getOwnPropertyNames(test1)[0] === "5") { - return false; - } - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2["_" + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function(n) { - return test2[n]; - }); - if (order2.join("") !== "0123456789") { - return false; - } - var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function(letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { - return false; - } - return true; - } catch (err) { - return false; - } - } - var objectAssign = shouldUseNative() ? Object.assign : function(target, source) { - var from2; - var to = toObject(target); - var symbols; - for (var s2 = 1; s2 < arguments.length; s2++) { - from2 = Object(arguments[s2]); - for (var key in from2) { - if (hasOwnProperty$1.call(from2, key)) { - to[key] = from2[key]; - } - } - if (getOwnPropertySymbols$1) { - symbols = getOwnPropertySymbols$1(from2); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from2, symbols[i])) { - to[symbols[i]] = from2[symbols[i]]; - } - } - } - } - return to; - }; - var ReactPropTypesSecret$2 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - var ReactPropTypesSecret_1 = ReactPropTypesSecret$2; - var has$2 = Function.call.bind(Object.prototype.hasOwnProperty); - var printWarning$1 = function() { - }; - { - var ReactPropTypesSecret$1 = ReactPropTypesSecret_1; - var loggedTypeFailures = {}; - var has$1 = has$2; - printWarning$1 = function(text) { - var message = "Warning: " + text; - if (typeof console !== "undefined") { - console.error(message); - } - try { - throw new Error(message); - } catch (x2) { - } - }; - } - function checkPropTypes$1(typeSpecs, values2, location, componentName, getStack) { - { - for (var typeSpecName in typeSpecs) { - if (has$1(typeSpecs, typeSpecName)) { - var error; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - 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] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." - ); - err.name = "Invariant Violation"; - throw err; - } - error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret$1); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning$1( - (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)." - ); - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - loggedTypeFailures[error.message] = true; - var stack = getStack ? getStack() : ""; - printWarning$1( - "Failed " + location + " type: " + error.message + (stack != null ? stack : "") - ); - } - } - } - } - } - checkPropTypes$1.resetWarningCache = function() { - { - loggedTypeFailures = {}; - } - }; - var checkPropTypes_1 = checkPropTypes$1; - var ReactIs$1 = reactIs$3.exports; - var assign$1 = objectAssign; - var ReactPropTypesSecret = ReactPropTypesSecret_1; - var has = has$2; - var checkPropTypes = checkPropTypes_1; - var printWarning = function() { - }; - { - printWarning = function(text) { - var message = "Warning: " + text; - if (typeof console !== "undefined") { - console.error(message); - } - try { - throw new Error(message); - } catch (x2) { - } - }; - } - function emptyFunctionThatReturnsNull() { - return null; - } - var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess2) { - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === "function") { - return iteratorFn; - } - } - var ANONYMOUS = "<>"; - var ReactPropTypes = { - array: createPrimitiveTypeChecker("array"), - bigint: createPrimitiveTypeChecker("bigint"), - bool: createPrimitiveTypeChecker("boolean"), - func: createPrimitiveTypeChecker("function"), - number: createPrimitiveTypeChecker("number"), - object: createPrimitiveTypeChecker("object"), - string: createPrimitiveTypeChecker("string"), - symbol: createPrimitiveTypeChecker("symbol"), - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - elementType: createElementTypeTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker - }; - function is(x2, y) { - if (x2 === y) { - return x2 !== 0 || 1 / x2 === 1 / y; - } else { - return x2 !== x2 && y !== y; - } - } - function PropTypeError(message, data) { - this.message = message; - this.data = data && typeof data === "object" ? data : {}; - this.stack = ""; - } - PropTypeError.prototype = Error.prototype; - function createChainableTypeChecker(validate) { - { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess2) { - 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" - ); - err.name = "Invariant Violation"; - throw err; - } else if (typeof console !== "undefined") { - var cacheKey = componentName + ":" + propName; - if (!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] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); - } - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - return chainedCheckType; - } - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - var preciseType = getPreciseType(propValue); - return new PropTypeError( - "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), - { expectedType } - ); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== "function") { - return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` 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; - } - return createChainableTypeChecker(validate); - } - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createElementTypeTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!ReactIs$1.isValidElementType(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - { - if (arguments.length > 1) { - printWarning( - "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])." - ); - } else { - printWarning("Invalid argument supplied to oneOf, expected an array."); - } - } - return emptyFunctionThatReturnsNull; - } - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { - var type = getPreciseType(value); - if (type === "symbol") { - return String(value); - } - return value; - }); - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); - } - return createChainableTypeChecker(validate); - } - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== "function") { - return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - 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; - } - return createChainableTypeChecker(validate); - } - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); - return emptyFunctionThatReturnsNull; - } - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== "function") { - printWarning( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "." - ); - return emptyFunctionThatReturnsNull; - } - } - function validate(props, propName, componentName, location, propFullName) { - var expectedTypes = []; - for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) { - var checker2 = arrayOfTypeCheckers[i2]; - var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret); - if (checkerResult == null) { - return null; - } - if (checkerResult.data && has(checkerResult.data, "expectedType")) { - expectedTypes.push(checkerResult.data.expectedType); - } - } - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); - } - return createChainableTypeChecker(validate); - } - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); - } - return null; - } - return createChainableTypeChecker(validate); - } - function invalidValidatorError(componentName, location, propFullName, key, type) { - return new PropTypeError( - (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`." - ); - } - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (typeof checker !== "function") { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== "object") { - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); - } - var allKeys = assign$1({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (has(shapeTypes, key) && typeof checker !== "function") { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - 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; - } - return createChainableTypeChecker(validate); - } - function isNode(propValue) { - switch (typeof propValue) { - case "number": - case "string": - case "undefined": - return true; - case "boolean": - return !propValue; - case "object": - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - return true; - default: - return false; - } - } - function isSymbol(propType, propValue) { - if (propType === "symbol") { - return true; - } - if (!propValue) { - return false; - } - if (propValue["@@toStringTag"] === "Symbol") { - return true; - } - if (typeof Symbol === "function" && propValue instanceof Symbol) { - return true; - } - return false; - } - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return "array"; - } - if (propValue instanceof RegExp) { - return "object"; - } - if (isSymbol(propType, propValue)) { - return "symbol"; - } - return propType; - } - function getPreciseType(propValue) { - if (typeof propValue === "undefined" || propValue === null) { - return "" + propValue; - } - var propType = getPropType(propValue); - if (propType === "object") { - if (propValue instanceof Date) { - return "date"; - } else 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; - } - } - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; - ReactPropTypes.PropTypes = ReactPropTypes; - return ReactPropTypes; - }; - { - var ReactIs = reactIs$3.exports; - var throwOnDirectAccess = true; - propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess); - } - function r$1(e) { - var t, f, n = ""; - if ("string" == typeof e || "number" == typeof e) - n += e; - else if ("object" == typeof e) - if (Array.isArray(e)) - for (t = 0; t < e.length; t++) - e[t] && (f = r$1(e[t])) && (n && (n += " "), n += f); - else - for (t in e) - e[t] && (n && (n += " "), n += t); - return n; - } - function clsx() { - for (var e, t, f = 0, n = ""; f < arguments.length; ) - (e = arguments[f++]) && (t = r$1(e)) && (n && (n += " "), n += t); - return n; - } - function isPlainObject(item) { - return item !== null && typeof item === "object" && item.constructor === Object; - } - function deepClone(source) { - if (!isPlainObject(source)) { - return source; - } - const output = {}; - Object.keys(source).forEach((key) => { - output[key] = deepClone(source[key]); - }); - return output; - } - function deepmerge(target, source, options = { - clone: true - }) { - const output = options.clone ? _extends({}, target) : target; - if (isPlainObject(target) && isPlainObject(source)) { - Object.keys(source).forEach((key) => { - if (key === "__proto__") { - return; - } - if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) { - output[key] = deepmerge(target[key], source[key], options); - } else if (options.clone) { - output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key]; - } else { - output[key] = source[key]; - } - }); - } - return output; - } - var reactIs$2 = { exports: {} }; - var reactIs_development$1 = {}; - /** - * @license React - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - { - (function() { - var REACT_ELEMENT_TYPE = Symbol.for("react.element"); - var REACT_PORTAL_TYPE = Symbol.for("react.portal"); - var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); - var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); - var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); - var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); - var REACT_CONTEXT_TYPE = Symbol.for("react.context"); - var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"); - var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); - var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); - var REACT_MEMO_TYPE = Symbol.for("react.memo"); - var REACT_LAZY_TYPE = Symbol.for("react.lazy"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - var enableLegacyHidden = false; - var enableDebugTracing = false; - var REACT_MODULE_REFERENCE; - { - REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); - } - function isValidElementType(type) { - if (typeof type === "string" || typeof type === "function") { - return true; - } - if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { - return true; - } - if (typeof type === "object" && type !== null) { - if (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_MODULE_REFERENCE || type.getModuleId !== void 0) { - return true; - } - } - return false; - } - function typeOf(object) { - if (typeof object === "object" && object !== null) { - 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_SERVER_CONTEXT_TYPE: - 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; - } - } - return void 0; - } - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef = REACT_FORWARD_REF_TYPE; - var Fragment = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var SuspenseList = REACT_SUSPENSE_LIST_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - var hasWarnedAboutDeprecatedIsConcurrentMode = false; - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+."); - } - } - return false; - } - function isConcurrentMode(object) { - { - if (!hasWarnedAboutDeprecatedIsConcurrentMode) { - hasWarnedAboutDeprecatedIsConcurrentMode = true; - console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+."); - } - } - return false; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - 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 isSuspenseList(object) { - return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; - } - reactIs_development$1.ContextConsumer = ContextConsumer; - reactIs_development$1.ContextProvider = ContextProvider; - reactIs_development$1.Element = Element; - reactIs_development$1.ForwardRef = ForwardRef; - reactIs_development$1.Fragment = Fragment; - reactIs_development$1.Lazy = Lazy; - reactIs_development$1.Memo = Memo; - reactIs_development$1.Portal = Portal; - reactIs_development$1.Profiler = Profiler; - reactIs_development$1.StrictMode = StrictMode; - reactIs_development$1.Suspense = Suspense; - reactIs_development$1.SuspenseList = SuspenseList; - reactIs_development$1.isAsyncMode = isAsyncMode; - reactIs_development$1.isConcurrentMode = isConcurrentMode; - reactIs_development$1.isContextConsumer = isContextConsumer; - reactIs_development$1.isContextProvider = isContextProvider; - reactIs_development$1.isElement = isElement; - reactIs_development$1.isForwardRef = isForwardRef; - reactIs_development$1.isFragment = isFragment; - reactIs_development$1.isLazy = isLazy; - reactIs_development$1.isMemo = isMemo; - reactIs_development$1.isPortal = isPortal; - reactIs_development$1.isProfiler = isProfiler; - reactIs_development$1.isStrictMode = isStrictMode; - reactIs_development$1.isSuspense = isSuspense; - reactIs_development$1.isSuspenseList = isSuspenseList; - reactIs_development$1.isValidElementType = isValidElementType; - reactIs_development$1.typeOf = typeOf; - })(); - } - (function(module) { - { - module.exports = reactIs_development$1; - } - })(reactIs$2); - const fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; - function getFunctionName(fn) { - const match2 = `${fn}`.match(fnNameMatchRegex); - const name = match2 && match2[1]; - return name || ""; - } - function getFunctionComponentName(Component, fallback = "") { - return Component.displayName || Component.name || getFunctionName(Component) || fallback; - } - function getWrappedName(outerType, innerType, wrapperName) { - const functionName = getFunctionComponentName(innerType); - return outerType.displayName || (functionName !== "" ? `${wrapperName}(${functionName})` : wrapperName); - } - function getDisplayName(Component) { - if (Component == null) { - return void 0; - } - if (typeof Component === "string") { - return Component; - } - if (typeof Component === "function") { - return getFunctionComponentName(Component, "Component"); - } - if (typeof Component === "object") { - switch (Component.$$typeof) { - case reactIs$2.exports.ForwardRef: - return getWrappedName(Component, Component.render, "ForwardRef"); - case reactIs$2.exports.Memo: - return getWrappedName(Component, Component.type, "memo"); - default: - return void 0; - } - } - return void 0; - } - function capitalize(string) { - if (typeof string !== "string") { - throw new Error(`MUI: \`capitalize(string)\` expects a string argument.`); - } - return string.charAt(0).toUpperCase() + string.slice(1); - } - function createChainedFunction(...funcs) { - return funcs.reduce((acc, func) => { - if (func == null) { - return acc; - } - return function chainedFunction(...args) { - acc.apply(this, args); - func.apply(this, args); - }; - }, () => { - }); - } - function debounce(func, wait = 166) { - let timeout; - function debounced(...args) { - const later = () => { - func.apply(this, args); - }; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - } - debounced.clear = () => { - clearTimeout(timeout); - }; - return debounced; - } - function deprecatedPropType(validator, reason) { - return (props, propName, componentName, location, propFullName) => { - const componentNameSafe = componentName || "<>"; - const propFullNameSafe = propFullName || propName; - if (typeof props[propName] !== "undefined") { - return new Error(`The ${location} \`${propFullNameSafe}\` of \`${componentNameSafe}\` is deprecated. ${reason}`); - } - return null; - }; - } - const React$e = window["React"]; - function isMuiElement(element, muiNames) { - return /* @__PURE__ */ React$e.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1; - } - function ownerDocument(node2) { - return node2 && node2.ownerDocument || document; - } - function ownerWindow(node2) { - const doc = ownerDocument(node2); - return doc.defaultView || window; - } - function requirePropFactory(componentNameInError, Component) { - const prevPropTypes = Component ? _extends({}, Component.propTypes) : null; - const requireProp = (requiredProp) => (props, propName, componentName, location, propFullName, ...args) => { - const propFullNameSafe = propFullName || propName; - const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe]; - if (defaultTypeChecker) { - const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args); - if (typeCheckerResult) { - return typeCheckerResult; - } - } - if (typeof props[propName] !== "undefined" && !props[requiredProp]) { - return new Error(`The prop \`${propFullNameSafe}\` of \`${componentNameInError}\` can only be used together with the \`${requiredProp}\` prop.`); - } - return null; - }; - return requireProp; - } - function setRef(ref, value) { - if (typeof ref === "function") { - ref(value); - } else if (ref) { - ref.current = value; - } - } - const React$d = window["React"]; - const useEnhancedEffect = typeof window !== "undefined" ? React$d.useLayoutEffect : React$d.useEffect; - const useEnhancedEffect$1 = useEnhancedEffect; - const React$c = window["React"]; - let globalId = 0; - function useGlobalId(idOverride) { - const [defaultId, setDefaultId] = React$c.useState(idOverride); - const id = idOverride || defaultId; - React$c.useEffect(() => { - if (defaultId == null) { - globalId += 1; - setDefaultId(`mui-${globalId}`); - } - }, [defaultId]); - return id; - } - const maybeReactUseId = React$c["useId"]; - function useId(idOverride) { - if (maybeReactUseId !== void 0) { - const reactId = maybeReactUseId(); - return idOverride != null ? idOverride : reactId; - } - return useGlobalId(idOverride); - } - function unsupportedProp(props, propName, componentName, location, propFullName) { - const propFullNameSafe = propFullName || propName; - if (typeof props[propName] !== "undefined") { - return new Error(`The prop \`${propFullNameSafe}\` is not supported. Please remove it.`); - } - return null; - } - const React$b = window["React"]; - function useControlled({ - controlled, - default: defaultProp, - name, - state = "value" - }) { - const { - current: isControlled - } = React$b.useRef(controlled !== void 0); - const [valueState, setValue] = React$b.useState(defaultProp); - const value = isControlled ? controlled : valueState; - { - React$b.useEffect(() => { - if (isControlled !== (controlled !== void 0)) { - console.error([`MUI: A component is changing the ${isControlled ? "" : "un"}controlled ${state} state of ${name} to be ${isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${name} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n")); - } - }, [state, name, controlled]); - const { - current: defaultValue - } = React$b.useRef(defaultProp); - React$b.useEffect(() => { - if (!isControlled && defaultValue !== defaultProp) { - console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. To suppress this warning opt to use a controlled ${name}.`].join("\n")); - } - }, [JSON.stringify(defaultProp)]); - } - const setValueIfUncontrolled = React$b.useCallback((newValue) => { - if (!isControlled) { - setValue(newValue); - } - }, []); - return [value, setValueIfUncontrolled]; - } - const React$a = window["React"]; - function useEventCallback(fn) { - const ref = React$a.useRef(fn); - useEnhancedEffect$1(() => { - ref.current = fn; - }); - return React$a.useCallback((...args) => (0, ref.current)(...args), []); - } - const React$9 = window["React"]; - function useForkRef(...refs) { - return React$9.useMemo(() => { - if (refs.every((ref) => ref == null)) { - return null; - } - return (instance) => { - refs.forEach((ref) => { - setRef(ref, instance); - }); - }; - }, refs); - } - const React$8 = window["React"]; - let hadKeyboardEvent = true; - let hadFocusVisibleRecently = false; - let hadFocusVisibleRecentlyTimeout; - const inputTypesWhitelist = { - text: true, - search: true, - url: true, - tel: true, - email: true, - password: true, - number: true, - date: true, - month: true, - week: true, - time: true, - datetime: true, - "datetime-local": true - }; - function focusTriggersKeyboardModality(node2) { - const { - type, - tagName - } = node2; - if (tagName === "INPUT" && inputTypesWhitelist[type] && !node2.readOnly) { - return true; - } - if (tagName === "TEXTAREA" && !node2.readOnly) { - return true; - } - if (node2.isContentEditable) { - return true; - } - return false; - } - function handleKeyDown(event) { - if (event.metaKey || event.altKey || event.ctrlKey) { - return; - } - hadKeyboardEvent = true; - } - function handlePointerDown() { - hadKeyboardEvent = false; - } - function handleVisibilityChange() { - if (this.visibilityState === "hidden") { - if (hadFocusVisibleRecently) { - hadKeyboardEvent = true; - } - } - } - function prepare(doc) { - doc.addEventListener("keydown", handleKeyDown, true); - doc.addEventListener("mousedown", handlePointerDown, true); - doc.addEventListener("pointerdown", handlePointerDown, true); - doc.addEventListener("touchstart", handlePointerDown, true); - doc.addEventListener("visibilitychange", handleVisibilityChange, true); - } - function isFocusVisible(event) { - const { - target - } = event; - try { - return target.matches(":focus-visible"); - } catch (error) { - } - return hadKeyboardEvent || focusTriggersKeyboardModality(target); - } - function useIsFocusVisible() { - const ref = React$8.useCallback((node2) => { - if (node2 != null) { - prepare(node2.ownerDocument); - } - }, []); - const isFocusVisibleRef = React$8.useRef(false); - function handleBlurVisible() { - if (isFocusVisibleRef.current) { - hadFocusVisibleRecently = true; - window.clearTimeout(hadFocusVisibleRecentlyTimeout); - hadFocusVisibleRecentlyTimeout = window.setTimeout(() => { - hadFocusVisibleRecently = false; - }, 100); - isFocusVisibleRef.current = false; - return true; - } - return false; - } - function handleFocusVisible(event) { - if (isFocusVisible(event)) { - isFocusVisibleRef.current = true; - return true; - } - return false; - } - return { - isFocusVisibleRef, - onFocus: handleFocusVisible, - onBlur: handleBlurVisible, - ref - }; - } - function resolveProps(defaultProps, props) { - const output = _extends({}, props); - Object.keys(defaultProps).forEach((propName) => { - if (propName.toString().match(/^(components|slots)$/)) { - output[propName] = _extends({}, defaultProps[propName], output[propName]); - } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) { - const defaultSlotProps = defaultProps[propName] || {}; - const slotProps = props[propName]; - output[propName] = {}; - if (!slotProps || !Object.keys(slotProps)) { - output[propName] = defaultSlotProps; - } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) { - output[propName] = slotProps; - } else { - output[propName] = _extends({}, slotProps); - Object.keys(defaultSlotProps).forEach((slotPropName) => { - output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]); - }); - } - } else if (output[propName] === void 0) { - output[propName] = defaultProps[propName]; - } - }); - return output; - } - function composeClasses(slots, getUtilityClass, classes = void 0) { - const output = {}; - Object.keys(slots).forEach( - (slot) => { - output[slot] = slots[slot].reduce((acc, key) => { - if (key) { - const utilityClass = getUtilityClass(key); - if (utilityClass !== "") { - acc.push(utilityClass); - } - if (classes && classes[key]) { - acc.push(classes[key]); - } - } - return acc; - }, []).join(" "); - } - ); - return output; - } - const defaultGenerator = (componentName) => componentName; - const createClassNameGenerator = () => { - let generate = defaultGenerator; - return { - configure(generator) { - generate = generator; - }, - generate(componentName) { - return generate(componentName); - }, - reset() { - generate = defaultGenerator; - } - }; - }; - const ClassNameGenerator = createClassNameGenerator(); - const ClassNameGenerator$1 = ClassNameGenerator; - const globalStateClassesMapping = { - active: "active", - checked: "checked", - completed: "completed", - disabled: "disabled", - readOnly: "readOnly", - error: "error", - expanded: "expanded", - focused: "focused", - focusVisible: "focusVisible", - required: "required", - selected: "selected" - }; - function generateUtilityClass(componentName, slot, globalStatePrefix = "Mui") { - const globalStateClass = globalStateClassesMapping[slot]; - return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator$1.generate(componentName)}-${slot}`; - } - function generateUtilityClasses(componentName, slots, globalStatePrefix = "Mui") { - const result = {}; - slots.forEach((slot) => { - result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix); - }); - return result; - } - function memoize$2(fn) { - var cache = /* @__PURE__ */ Object.create(null); - return function(arg) { - if (cache[arg] === void 0) - cache[arg] = fn(arg); - return cache[arg]; - }; - } - var reactPropsRegex$1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/; - var isPropValid$1 = /* @__PURE__ */ memoize$2( - function(prop) { - return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; - } - ); - 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]; - } - } - } - function createStyleElement(options) { - var tag = document.createElement("style"); - tag.setAttribute("data-emotion", options.key); - if (options.nonce !== void 0) { - tag.setAttribute("nonce", options.nonce); - } - tag.appendChild(document.createTextNode("")); - tag.setAttribute("data-s", ""); - return tag; - } - var StyleSheet = /* @__PURE__ */ function() { - function StyleSheet2(options) { - var _this = this; - this._insertTag = function(tag) { - var before; - if (_this.tags.length === 0) { - if (_this.insertionPoint) { - before = _this.insertionPoint.nextSibling; - } else if (_this.prepend) { - before = _this.container.firstChild; - } else { - before = _this.before; - } - } else { - before = _this.tags[_this.tags.length - 1].nextSibling; - } - _this.container.insertBefore(tag, before); - _this.tags.push(tag); - }; - this.isSpeedy = options.speedy === void 0 ? false : options.speedy; - this.tags = []; - this.ctr = 0; - this.nonce = options.nonce; - this.key = options.key; - this.container = options.container; - this.prepend = options.prepend; - this.insertionPoint = options.insertionPoint; - this.before = null; - } - var _proto = StyleSheet2.prototype; - _proto.hydrate = function hydrate(nodes) { - nodes.forEach(this._insertTag); - }; - _proto.insert = function insert(rule) { - if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { - this._insertTag(createStyleElement(this)); - } - var tag = this.tags[this.tags.length - 1]; - { - var isImportRule2 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; - if (isImportRule2 && this._alreadyInsertedOrderInsensitiveRule) { - console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."); - } - this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule2; - } - if (this.isSpeedy) { - var sheet = sheetForTag(tag); - try { - sheet.insertRule(rule, sheet.cssRules.length); - } catch (e) { - if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) { - console.error('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 && tag.parentNode.removeChild(tag); - }); - this.tags = []; - this.ctr = 0; - { - this._alreadyInsertedOrderInsensitiveRule = false; - } - }; - return StyleSheet2; - }(); - var MS = "-ms-"; - var MOZ = "-moz-"; - var WEBKIT = "-webkit-"; - var COMMENT = "comm"; - var RULESET = "rule"; - var DECLARATION = "decl"; - var IMPORT = "@import"; - var KEYFRAMES = "@keyframes"; - var LAYER = "@layer"; - var abs = Math.abs; - var from = String.fromCharCode; - var assign = Object.assign; - function hash(value, length2) { - return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; - } - function trim(value) { - return value.trim(); - } - function match(value, pattern) { - return (value = pattern.exec(value)) ? value[0] : value; - } - function replace(value, pattern, replacement) { - return value.replace(pattern, replacement); - } - function indexof(value, search) { - return value.indexOf(search); - } - function charat(value, index) { - return value.charCodeAt(index) | 0; - } - function substr(value, begin, end) { - return value.slice(begin, end); - } - function strlen(value) { - return value.length; - } - function sizeof(value) { - return value.length; - } - function append(value, array) { - return array.push(value), value; - } - function combine(array, callback) { - return array.map(callback).join(""); - } - var line = 1; - var column = 1; - var length = 0; - var position = 0; - var character = 0; - var characters = ""; - function node(value, root, parent, type, props, children, length2) { - return { value, root, parent, type, props, children, line, column, length: length2, return: "" }; - } - function copy(root, props) { - return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props); - } - function char() { - return character; - } - function prev() { - character = position > 0 ? charat(characters, --position) : 0; - if (column--, character === 10) - column = 1, line--; - return character; - } - function next() { - character = position < length ? charat(characters, position++) : 0; - if (column++, character === 10) - column = 1, line++; - return character; - } - function peek() { - return charat(characters, position); - } - function caret() { - return position; - } - function slice(begin, end) { - return substr(characters, begin, end); - } - function token(type) { - switch (type) { - case 0: - case 9: - case 10: - case 13: - case 32: - return 5; - case 33: - case 43: - case 44: - case 47: - case 62: - case 64: - case 126: - case 59: - case 123: - case 125: - return 4; - case 58: - return 3; - case 34: - case 39: - case 40: - case 91: - return 2; - case 41: - case 93: - return 1; - } - return 0; - } - function alloc(value) { - return line = column = 1, length = strlen(characters = value), position = 0, []; - } - function dealloc(value) { - return characters = "", value; - } - function delimit(type) { - return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); - } - function whitespace(type) { - while (character = peek()) - if (character < 33) - next(); - else - break; - return token(type) > 2 || token(character) > 3 ? "" : " "; - } - function escaping(index, count) { - while (--count && next()) - if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) - break; - return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32)); - } - function delimiter(type) { - while (next()) - switch (character) { - case type: - return position; - case 34: - case 39: - if (type !== 34 && type !== 39) - delimiter(character); - break; - case 40: - if (type === 41) - delimiter(type); - break; - case 92: - next(); - break; - } - return position; - } - function commenter(type, index) { - while (next()) - if (type + character === 47 + 10) - break; - else if (type + character === 42 + 42 && peek() === 47) - break; - return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next()); - } - function identifier(index) { - while (!token(peek())) - next(); - return slice(index, position); - } - function compile(value) { - return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); - } - function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { - var index = 0; - var offset = 0; - var length2 = pseudo; - var atrule = 0; - var property = 0; - var previous = 0; - var variable = 1; - var scanning = 1; - var ampersand = 1; - var character2 = 0; - var type = ""; - var props = rules; - var children = rulesets; - var reference = rule; - var characters2 = type; - while (scanning) - switch (previous = character2, character2 = next()) { - case 40: - if (previous != 108 && charat(characters2, length2 - 1) == 58) { - if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1) - ampersand = -1; - break; - } - case 34: - case 39: - case 91: - characters2 += delimit(character2); - break; - case 9: - case 10: - case 13: - case 32: - characters2 += whitespace(previous); - break; - case 92: - characters2 += escaping(caret() - 1, 7); - continue; - case 47: - switch (peek()) { - case 42: - case 47: - append(comment(commenter(next(), caret()), root, parent), declarations); - break; - default: - characters2 += "/"; - } - break; - case 123 * variable: - points[index++] = strlen(characters2) * ampersand; - case 125 * variable: - case 59: - case 0: - switch (character2) { - case 0: - case 125: - scanning = 0; - case 59 + offset: - if (ampersand == -1) - characters2 = replace(characters2, /\f/g, ""); - if (property > 0 && strlen(characters2) - length2) - append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations); - break; - case 59: - characters2 += ";"; - default: - append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets); - if (character2 === 123) - if (offset === 0) - parse(characters2, root, reference, reference, props, rulesets, length2, points, children); - else - switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) { - case 100: - case 108: - case 109: - case 115: - parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children); - break; - default: - parse(characters2, reference, reference, reference, [""], children, 0, points, children); - } - } - index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo; - break; - case 58: - length2 = 1 + strlen(characters2), property = previous; - default: - if (variable < 1) { - if (character2 == 123) - --variable; - else if (character2 == 125 && variable++ == 0 && prev() == 125) - continue; - } - switch (characters2 += from(character2), character2 * variable) { - case 38: - ampersand = offset > 0 ? 1 : (characters2 += "\f", -1); - break; - case 44: - points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; - break; - case 64: - if (peek() === 45) - characters2 += delimit(next()); - atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++; - break; - case 45: - if (previous === 45 && strlen(characters2) == 2) - variable = 0; - } - } - return rulesets; - } - function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) { - var post = offset - 1; - var rule = offset === 0 ? rules : [""]; - var size = sizeof(rule); - for (var i = 0, j2 = 0, k2 = 0; i < index; ++i) - for (var x2 = 0, y = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2) - if (z2 = trim(j2 > 0 ? rule[x2] + " " + y : replace(y, /&\f/g, rule[x2]))) - props[k2++] = z2; - return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2); - } - function comment(value, root, parent) { - return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0); - } - function declaration(value, root, parent, length2) { - return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2); - } - function serialize(children, callback) { - var output = ""; - var length2 = sizeof(children); - for (var i = 0; i < length2; i++) - output += callback(children[i], i, children, callback) || ""; - return output; - } - function stringify(element, index, children, callback) { - switch (element.type) { - case LAYER: - if (element.children.length) - break; - case IMPORT: - case DECLARATION: - return element.return = element.return || element.value; - case COMMENT: - return ""; - case KEYFRAMES: - return element.return = element.value + "{" + serialize(element.children, callback) + "}"; - case RULESET: - element.value = element.props.join(","); - } - return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; - } - function middleware(collection) { - var length2 = sizeof(collection); - return function(element, index, children, callback) { - var output = ""; - for (var i = 0; i < length2; i++) - output += collection[i](element, index, children, callback) || ""; - return output; - }; - } - var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) { - var previous = 0; - var character2 = 0; - while (true) { - previous = character2; - character2 = peek(); - if (previous === 38 && character2 === 12) { - points[index] = 1; - } - if (token(character2)) { - break; - } - next(); - } - return slice(begin, position); - }; - var toRules = function toRules2(parsed, points) { - var index = -1; - var character2 = 44; - do { - switch (token(character2)) { - case 0: - if (character2 === 38 && peek() === 12) { - points[index] = 1; - } - parsed[index] += identifierWithPointTracking(position - 1, points, index); - break; - case 2: - parsed[index] += delimit(character2); - break; - case 4: - if (character2 === 44) { - parsed[++index] = peek() === 58 ? "&\f" : ""; - points[index] = parsed[index].length; - break; - } - default: - parsed[index] += from(character2); - } - } while (character2 = next()); - return parsed; - }; - var getRules = function getRules2(value, points) { - return dealloc(toRules(alloc(value), points)); - }; - var fixedElements = /* @__PURE__ */ new WeakMap(); - var compat = function compat2(element) { - if (element.type !== "rule" || !element.parent || element.length < 1) { - return; - } - var value = element.value, parent = element.parent; - var isImplicitRule = element.column === parent.column && element.line === parent.line; - while (parent.type !== "rule") { - parent = parent.parent; - if (!parent) - return; - } - if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) { - return; - } - if (isImplicitRule) { - return; - } - fixedElements.set(element, true); - var points = []; - var rules = getRules(value, points); - var parentRules = parent.props; - for (var i = 0, k2 = 0; i < rules.length; i++) { - for (var j2 = 0; j2 < parentRules.length; j2++, k2++) { - element.props[k2] = points[i] ? rules[i].replace(/&\f/g, parentRules[j2]) : parentRules[j2] + " " + rules[i]; - } - } - }; - var removeLabel = function removeLabel2(element) { - if (element.type === "decl") { - var value = element.value; - if (value.charCodeAt(0) === 108 && value.charCodeAt(2) === 98) { - element["return"] = ""; - element.value = ""; - } - } - }; - var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason"; - var isIgnoringComment = function isIgnoringComment2(element) { - return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1; - }; - var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache) { - return function(element, index, children) { - if (element.type !== "rule" || cache.compat) - return; - var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); - if (unsafePseudoClasses) { - var isNested = !!element.parent; - var commentContainer = isNested ? element.parent.children : children; - for (var i = commentContainer.length - 1; i >= 0; i--) { - var node2 = commentContainer[i]; - if (node2.line < element.line) { - break; - } - if (node2.column < element.column) { - if (isIgnoringComment(node2)) { - return; - } - break; - } - } - unsafePseudoClasses.forEach(function(unsafePseudoClass) { - 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 isImportRule = function isImportRule2(element) { - return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; - }; - var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children) { - for (var i = index - 1; i >= 0; i--) { - if (!isImportRule(children[i])) { - return true; - } - } - return false; - }; - var nullifyElement = function nullifyElement2(element) { - element.type = ""; - element.value = ""; - element["return"] = ""; - element.children = ""; - element.props = ""; - }; - var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children) { - if (!isImportRule(element)) { - return; - } - if (element.parent) { - console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); - nullifyElement(element); - } else if (isPrependedWithRegularRules(index, children)) { - console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); - nullifyElement(element); - } - }; - function prefix(value, length2) { - switch (hash(value, length2)) { - case 5103: - return WEBKIT + "print-" + value + value; - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return WEBKIT + value + value; - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return WEBKIT + value + MOZ + value + MS + value + value; - case 6828: - case 4268: - return WEBKIT + value + MS + value + value; - case 6165: - return WEBKIT + value + MS + "flex-" + value + value; - case 5187: - return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; - case 5443: - return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value; - case 4675: - return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value; - case 5548: - return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; - case 5292: - return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; - case 6060: - return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; - case 4554: - return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; - case 6187: - return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; - case 5495: - case 3959: - return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); - case 4968: - return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value; - case 4095: - case 3583: - case 4068: - case 2532: - return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - if (strlen(value) - 1 - length2 > 6) - switch (charat(value, length2 + 1)) { - case 109: - if (charat(value, length2 + 4) !== 45) - break; - case 102: - return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; - case 115: - return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value; - } - break; - case 4949: - if (charat(value, length2 + 1) !== 115) - break; - case 6444: - switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) { - case 107: - return replace(value, ":", ":" + WEBKIT) + value; - case 101: - return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; - } - break; - case 5936: - switch (charat(value, length2 + 11)) { - case 114: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; - case 108: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; - case 45: - return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; - } - return WEBKIT + value + MS + value + value; - } - return value; - } - var prefixer = function prefixer2(element, index, children, callback) { - if (element.length > -1) { - if (!element["return"]) - switch (element.type) { - case DECLARATION: - element["return"] = prefix(element.value, element.length); - break; - case KEYFRAMES: - return serialize([copy(element, { - value: replace(element.value, "@", "@" + WEBKIT) - })], callback); - case RULESET: - if (element.length) - return combine(element.props, function(value) { - switch (match(value, /(::plac\w+|:read-\w+)/)) { - case ":read-only": - case ":read-write": - return serialize([copy(element, { - props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] - })], callback); - case "::placeholder": - return serialize([copy(element, { - props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] - }), copy(element, { - props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] - }), copy(element, { - props: [replace(value, /:(plac\w+)/, MS + "input-$1")] - })], callback); - } - return ""; - }); - } - } - }; - var defaultStylisPlugins = [prefixer]; - var createCache = function createCache2(options) { - var key = options.key; - if (!key) { - throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements."); - } - if (key === "css") { - var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); - Array.prototype.forEach.call(ssrStyles, function(node2) { - var dataEmotionAttribute = node2.getAttribute("data-emotion"); - if (dataEmotionAttribute.indexOf(" ") === -1) { - return; - } - document.head.appendChild(node2); - node2.setAttribute("data-s", ""); - }); - } - var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; - { - if (/[^a-z-]/.test(key)) { - throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed'); - } - } - var inserted = {}; - var container; - var nodesToHydrate = []; - { - container = options.container || document.head; - Array.prototype.forEach.call( - document.querySelectorAll('style[data-emotion^="' + key + ' "]'), - function(node2) { - var attrib = node2.getAttribute("data-emotion").split(" "); - for (var i = 1; i < attrib.length; i++) { - inserted[attrib[i]] = true; - } - nodesToHydrate.push(node2); - } - ); - } - var _insert; - var omnipresentPlugins = [compat, removeLabel]; - { - omnipresentPlugins.push(createUnsafeSelectorsAlarm({ - get compat() { - return cache.compat; - } - }), incorrectImportAlarm); - } - { - var currentSheet; - var finalizingPlugins = [stringify, function(element) { - if (!element.root) { - if (element["return"]) { - currentSheet.insert(element["return"]); - } else if (element.value && element.type !== COMMENT) { - currentSheet.insert(element.value + "{}"); - } - } - }]; - var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); - var stylis = function stylis2(styles) { - return serialize(compile(styles), serializer); - }; - _insert = function insert(selector, serialized, sheet, shouldCache) { - currentSheet = sheet; - if (serialized.map !== void 0) { - currentSheet = { - insert: function insert2(rule) { - sheet.insert(rule + serialized.map); - } - }; - } - stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); - if (shouldCache) { - cache.inserted[serialized.name] = true; - } - }; - } - var cache = { - key, - sheet: new StyleSheet({ - key, - container, - nonce: options.nonce, - speedy: options.speedy, - prepend: options.prepend, - insertionPoint: options.insertionPoint - }), - nonce: options.nonce, - inserted, - registered: {}, - insert: _insert - }; - cache.sheet.hydrate(nodesToHydrate); - return cache; - }; - var reactIs$1 = { exports: {} }; - var reactIs_development = {}; - /** @license React v16.13.1 - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - { - (function() { - var hasSymbol = typeof Symbol === "function" && Symbol.for; - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; - function isValidElementType(type) { - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); - } - function typeOf(object) { - if (typeof object === "object" && object !== null) { - var $$typeof = object.$$typeof; - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - switch (type) { - case REACT_ASYNC_MODE_TYPE: - case REACT_CONCURRENT_MODE_TYPE: - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_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; - } - } - return void 0; - } - var AsyncMode = REACT_ASYNC_MODE_TYPE; - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef = REACT_FORWARD_REF_TYPE; - var Fragment = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; - console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API."); - } - } - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; - } - function isConcurrentMode(object) { - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - 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; - } - reactIs_development.AsyncMode = AsyncMode; - reactIs_development.ConcurrentMode = ConcurrentMode; - reactIs_development.ContextConsumer = ContextConsumer; - reactIs_development.ContextProvider = ContextProvider; - reactIs_development.Element = Element; - reactIs_development.ForwardRef = ForwardRef; - reactIs_development.Fragment = Fragment; - reactIs_development.Lazy = Lazy; - reactIs_development.Memo = Memo; - reactIs_development.Portal = Portal; - reactIs_development.Profiler = Profiler; - reactIs_development.StrictMode = StrictMode; - reactIs_development.Suspense = Suspense; - reactIs_development.isAsyncMode = isAsyncMode; - reactIs_development.isConcurrentMode = isConcurrentMode; - reactIs_development.isContextConsumer = isContextConsumer; - reactIs_development.isContextProvider = isContextProvider; - reactIs_development.isElement = isElement; - reactIs_development.isForwardRef = isForwardRef; - reactIs_development.isFragment = isFragment; - reactIs_development.isLazy = isLazy; - reactIs_development.isMemo = isMemo; - reactIs_development.isPortal = isPortal; - reactIs_development.isProfiler = isProfiler; - reactIs_development.isStrictMode = isStrictMode; - reactIs_development.isSuspense = isSuspense; - reactIs_development.isValidElementType = isValidElementType; - reactIs_development.typeOf = typeOf; - })(); - } - (function(module) { - { - module.exports = reactIs_development; - } - })(reactIs$1); - var reactIs = reactIs$1.exports; - var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true - }; - var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true - }; - var FORWARD_REF_STATICS = { - "$$typeof": true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true - }; - var MEMO_STATICS = { - "$$typeof": true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true - }; - var TYPE_STATICS = {}; - TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; - TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - function getStatics(component) { - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } - return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS; - } - var defineProperty = Object.defineProperty; - var getOwnPropertyNames = Object.getOwnPropertyNames; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var getPrototypeOf = Object.getPrototypeOf; - var objectPrototype = Object.prototype; - function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== "string") { - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - var keys = getOwnPropertyNames(sourceComponent); - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - for (var 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; - } - var hoistNonReactStatics_cjs = hoistNonReactStatics; - var isBrowser = true; - function getRegisteredStyles(registered, registeredStyles, classNames) { - var rawClassName = ""; - classNames.split(" ").forEach(function(className) { - if (registered[className] !== void 0) { - registeredStyles.push(registered[className] + ";"); - } else { - rawClassName += className + " "; - } - }); - return rawClassName; - } - var registerStyles = function registerStyles2(cache, serialized, isStringTag2) { - var className = cache.key + "-" + serialized.name; - if ((isStringTag2 === false || isBrowser === false) && cache.registered[className] === void 0) { - cache.registered[className] = serialized.styles; - } - }; - var insertStyles = function insertStyles2(cache, serialized, isStringTag2) { - registerStyles(cache, serialized, isStringTag2); - var className = cache.key + "-" + serialized.name; - if (cache.inserted[serialized.name] === void 0) { - var current = serialized; - do { - cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true); - current = current.next; - } while (current !== void 0); - } - }; - function murmur2(str) { - var h = 0; - var k2, i = 0, len = str.length; - for (; len >= 4; ++i, len -= 4) { - k2 = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24; - k2 = (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16); - k2 ^= k2 >>> 24; - h = (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - } - switch (len) { - case 3: - h ^= (str.charCodeAt(i + 2) & 255) << 16; - case 2: - h ^= (str.charCodeAt(i + 1) & 255) << 8; - case 1: - h ^= str.charCodeAt(i) & 255; - h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - } - h ^= h >>> 13; - h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); - return ((h ^ h >>> 15) >>> 0).toString(36); - } - var unitlessKeys$1 = { - animationIterationCount: 1, - aspectRatio: 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 ILLEGAL_ESCAPE_SEQUENCE_ERROR$1 = `You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`; - var 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)."; - var hyphenateRegex = /[A-Z]|^ms/g; - var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; - var isCustomProperty = function isCustomProperty2(property) { - return property.charCodeAt(1) === 45; - }; - var isProcessableValue = function isProcessableValue2(value) { - return value != null && typeof value !== "boolean"; - }; - var processStyleName = /* @__PURE__ */ memoize$2(function(styleName) { - return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase(); - }); - var processStyleValue = function processStyleValue2(key, value) { - switch (key) { - case "animation": - case "animationName": { - if (typeof value === "string") { - return value.replace(animationRegex, function(match2, p1, p2) { - cursor = { - name: p1, - styles: p2, - next: cursor - }; - return p1; - }); - } - } - } - if (unitlessKeys$1[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) { - return value + "px"; - } - return value; - }; - { - var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; - var contentValues = ["normal", "none", "initial", "inherit", "unset"]; - var oldProcessStyleValue = processStyleValue; - var msPattern = /^-ms-/; - var hyphenPattern = /-(.)/g; - var hyphenatedCache = {}; - processStyleValue = function processStyleValue2(key, value) { - if (key === "content") { - if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { - throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); - } - } - var processed = oldProcessStyleValue(key, value); - if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) { - hyphenatedCache[key] = true; - 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(); - }) + "?"); - } - return processed; - }; - } - var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; - function handleInterpolation(mergedProps, registered, interpolation) { - if (interpolation == null) { - return ""; - } - if (interpolation.__emotion_styles !== void 0) { - if (interpolation.toString() === "NO_COMPONENT_SELECTOR") { - throw new Error(noComponentSelectorMessage); - } - return interpolation; - } - switch (typeof interpolation) { - case "boolean": { - return ""; - } - case "object": { - if (interpolation.anim === 1) { - cursor = { - name: interpolation.name, - styles: interpolation.styles, - next: cursor - }; - return interpolation.name; - } - if (interpolation.styles !== void 0) { - var next2 = interpolation.next; - if (next2 !== void 0) { - while (next2 !== void 0) { - cursor = { - name: next2.name, - styles: next2.styles, - next: cursor - }; - next2 = next2.next; - } - } - var styles = interpolation.styles + ";"; - if (interpolation.map !== void 0) { - styles += interpolation.map; - } - return styles; - } - return createStringFromObject(mergedProps, registered, interpolation); - } - case "function": { - if (mergedProps !== void 0) { - var previousCursor = cursor; - var result = interpolation(mergedProps); - cursor = previousCursor; - return handleInterpolation(mergedProps, registered, result); - } else { - 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 = []; - var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) { - var fakeVarName = "animation" + matched.length; - matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`"); - return "${" + fakeVarName + "}"; - }); - if (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\n" + ("css`" + replaced + "`")); - } - } - break; - } - if (registered == null) { - return interpolation; - } - var cached = registered[interpolation]; - return cached !== void 0 ? cached : interpolation; - } - 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]) + ";"; - } - } else { - for (var _key in obj) { - var value = obj[_key]; - if (typeof value !== "object") { - if (registered != null && registered[value] !== void 0) { - string += _key + "{" + registered[value] + "}"; - } else if (isProcessableValue(value)) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; - } - } else { - if (_key === "NO_COMPONENT_SELECTOR" && true) { - throw new Error(noComponentSelectorMessage); - } - if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) { - for (var _i = 0; _i < value.length; _i++) { - if (isProcessableValue(value[_i])) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; - } - } - } else { - var interpolated = handleInterpolation(mergedProps, registered, value); - switch (_key) { - case "animation": - case "animationName": { - string += processStyleName(_key) + ":" + interpolated + ";"; - break; - } - default: { - if (_key === "undefined") { - console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); - } - string += _key + "{" + interpolated + "}"; - } - } - } - } - } - } - return string; - } - var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; - var sourceMapPattern; - { - sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; - } - var cursor; - var serializeStyles = function serializeStyles2(args, registered, mergedProps) { - if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) { - return args[0]; - } - var stringMode = true; - var styles = ""; - cursor = void 0; - var strings = args[0]; - if (strings == null || strings.raw === void 0) { - stringMode = false; - styles += handleInterpolation(mergedProps, registered, strings); - } else { - if (strings[0] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1); - } - styles += strings[0]; - } - for (var i = 1; i < args.length; i++) { - styles += handleInterpolation(mergedProps, registered, args[i]); - if (stringMode) { - if (strings[i] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR$1); - } - styles += strings[i]; - } - } - var sourceMap; - { - styles = styles.replace(sourceMapPattern, function(match3) { - sourceMap = match3; - return ""; - }); - } - labelPattern.lastIndex = 0; - var identifierName = ""; - var match2; - while ((match2 = labelPattern.exec(styles)) !== null) { - identifierName += "-" + match2[1]; - } - var name = murmur2(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)."; - } - }; - } - }; - const React$7 = window["React"]; - var syncFallback = function syncFallback2(create) { - return create(); - }; - var useInsertionEffect = React$7["useInsertionEffect"] ? React$7["useInsertionEffect"] : false; - var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; - useInsertionEffect || React$7.useLayoutEffect; - const React$6 = window["React"]; - const useContext = window["React"].useContext; - const forwardRef = window["React"].forwardRef; - var hasOwnProperty = {}.hasOwnProperty; - var EmotionCacheContext = /* @__PURE__ */ React$6.createContext( - typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({ - key: "css" - }) : null - ); - { - EmotionCacheContext.displayName = "EmotionCacheContext"; - } - EmotionCacheContext.Provider; - var withEmotionCache = function withEmotionCache2(func) { - return /* @__PURE__ */ forwardRef(function(props, ref) { - var cache = useContext(EmotionCacheContext); - return func(props, cache, ref); - }); - }; - var ThemeContext = /* @__PURE__ */ React$6.createContext({}); - { - ThemeContext.displayName = "EmotionThemeContext"; - } - var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__"; - var labelPropName = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__"; - var Insertion$1 = function Insertion2(_ref) { - var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag; - registerStyles(cache, serialized, isStringTag2); - useInsertionEffectAlwaysWithSyncFallback(function() { - return insertStyles(cache, serialized, isStringTag2); - }); - return null; - }; - var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) { - var cssProp = props.css; - if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) { - cssProp = cache.registered[cssProp]; - } - var WrappedComponent = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ""; - if (typeof props.className === "string") { - className = getRegisteredStyles(cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - var serialized = serializeStyles(registeredStyles, void 0, React$6.useContext(ThemeContext)); - if (serialized.name.indexOf("-") === -1) { - var labelFromStack = props[labelPropName]; - if (labelFromStack) { - serialized = serializeStyles([serialized, "label:" + labelFromStack + ";"]); - } - } - className += cache.key + "-" + serialized.name; - var newProps = {}; - for (var key in props) { - if (hasOwnProperty.call(props, key) && key !== "css" && key !== typePropName && key !== labelPropName) { - newProps[key] = props[key]; - } - } - newProps.ref = ref; - newProps.className = className; - return /* @__PURE__ */ React$6.createElement(React$6.Fragment, null, /* @__PURE__ */ React$6.createElement(Insertion$1, { - cache, - serialized, - isStringTag: typeof WrappedComponent === "string" - }), /* @__PURE__ */ React$6.createElement(WrappedComponent, newProps)); - }); - { - Emotion.displayName = "EmotionCssPropInternal"; - } - const React$5 = window["React"]; - var testOmitPropsOnStringTag = isPropValid$1; - var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) { - return key !== "theme"; - }; - var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) { - return typeof tag === "string" && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; - }; - var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) { - var shouldForwardProp2; - if (options) { - var optionsShouldForwardProp = options.shouldForwardProp; - shouldForwardProp2 = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) { - return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); - } : optionsShouldForwardProp; - } - if (typeof shouldForwardProp2 !== "function" && isReal) { - shouldForwardProp2 = tag.__emotion_forwardProp; - } - return shouldForwardProp2; - }; - var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`; - var Insertion = function Insertion2(_ref) { - var cache = _ref.cache, serialized = _ref.serialized, isStringTag2 = _ref.isStringTag; - registerStyles(cache, serialized, isStringTag2); - useInsertionEffectAlwaysWithSyncFallback(function() { - return insertStyles(cache, serialized, isStringTag2); - }); - return null; - }; - var createStyled$1 = function createStyled2(tag, options) { - { - if (tag === void 0) { - throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it."); - } - } - var isReal = tag.__emotion_real === tag; - var baseTag = isReal && tag.__emotion_base || tag; - var identifierName; - var targetClassName; - if (options !== void 0) { - identifierName = options.label; - targetClassName = options.target; - } - var shouldForwardProp2 = composeShouldForwardProps(tag, options, isReal); - var defaultShouldForwardProp = shouldForwardProp2 || getDefaultShouldForwardProp(baseTag); - var shouldUseAs = !defaultShouldForwardProp("as"); - return function() { - var args = arguments; - var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : []; - if (identifierName !== void 0) { - styles.push("label:" + identifierName + ";"); - } - if (args[0] == null || args[0].raw === void 0) { - styles.push.apply(styles, args); - } else { - if (args[0][0] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - styles.push(args[0][0]); - var len = args.length; - var i = 1; - for (; i < len; i++) { - if (args[0][i] === void 0) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - styles.push(args[i], args[0][i]); - } - } - var Styled = withEmotionCache(function(props, cache, ref) { - var FinalTag = shouldUseAs && props.as || baseTag; - var className = ""; - var classInterpolations = []; - var mergedProps = props; - if (props.theme == null) { - mergedProps = {}; - for (var key in props) { - mergedProps[key] = props[key]; - } - mergedProps.theme = React$5.useContext(ThemeContext); - } - if (typeof props.className === "string") { - className = getRegisteredStyles(cache.registered, classInterpolations, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps); - className += cache.key + "-" + serialized.name; - if (targetClassName !== void 0) { - className += " " + targetClassName; - } - var finalShouldForwardProp = shouldUseAs && shouldForwardProp2 === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp; - var newProps = {}; - for (var _key in props) { - if (shouldUseAs && _key === "as") - continue; - if (finalShouldForwardProp(_key)) { - newProps[_key] = props[_key]; - } - } - newProps.className = className; - newProps.ref = ref; - return /* @__PURE__ */ React$5.createElement(React$5.Fragment, null, /* @__PURE__ */ React$5.createElement(Insertion, { - cache, - serialized, - isStringTag: typeof FinalTag === "string" - }), /* @__PURE__ */ React$5.createElement(FinalTag, newProps)); - }); - Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? 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 = shouldForwardProp2; - Object.defineProperty(Styled, "toString", { - value: function value() { - if (targetClassName === void 0 && true) { - return "NO_COMPONENT_SELECTOR"; - } - return "." + targetClassName; - } - }); - Styled.withComponent = function(nextTag, nextOptions) { - return createStyled2(nextTag, _extends({}, options, nextOptions, { - shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) - })).apply(void 0, styles); - }; - return Styled; - }; - }; - var tags = [ - "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" - ]; - var newStyled = createStyled$1.bind(); - tags.forEach(function(tagName) { - newStyled[tagName] = newStyled(tagName); - }); - /** - * @mui/styled-engine v5.12.3 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - function styled$3(tag, options) { - const stylesFactory = newStyled(tag, options); - { - return (...styles) => { - const component = typeof tag === "string" ? `"${tag}"` : "component"; - if (styles.length === 0) { - console.error([`MUI: Seems like you called \`styled(${component})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")); - } else if (styles.some((style2) => style2 === void 0)) { - console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`); - } - return stylesFactory(...styles); - }; - } - } - const internal_processStyles = (tag, processor) => { - if (Array.isArray(tag.__emotion_styles)) { - tag.__emotion_styles = processor(tag.__emotion_styles); - } - }; - const _excluded$9 = ["values", "unit", "step"]; - const sortBreakpointsValues = (values2) => { - const breakpointsAsArray = Object.keys(values2).map((key) => ({ - key, - val: values2[key] - })) || []; - breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val); - return breakpointsAsArray.reduce((acc, obj) => { - return _extends({}, acc, { - [obj.key]: obj.val - }); - }, {}); - }; - function createBreakpoints(breakpoints) { - const { - values: values2 = { - xs: 0, - sm: 600, - md: 900, - lg: 1200, - xl: 1536 - }, - unit = "px", - step = 5 - } = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded$9); - const sortedValues = sortBreakpointsValues(values2); - const keys = Object.keys(sortedValues); - function up(key) { - const value = typeof values2[key] === "number" ? values2[key] : key; - return `@media (min-width:${value}${unit})`; - } - function down(key) { - const value = typeof values2[key] === "number" ? values2[key] : key; - return `@media (max-width:${value - step / 100}${unit})`; - } - function between(start, end) { - const endIndex = keys.indexOf(end); - return `@media (min-width:${typeof values2[start] === "number" ? values2[start] : start}${unit}) and (max-width:${(endIndex !== -1 && typeof values2[keys[endIndex]] === "number" ? values2[keys[endIndex]] : end) - step / 100}${unit})`; - } - function only(key) { - if (keys.indexOf(key) + 1 < keys.length) { - return between(key, keys[keys.indexOf(key) + 1]); - } - return up(key); - } - function not(key) { - const keyIndex = keys.indexOf(key); - if (keyIndex === 0) { - return up(keys[1]); - } - if (keyIndex === keys.length - 1) { - return down(keys[keyIndex]); - } - return between(key, keys[keys.indexOf(key) + 1]).replace("@media", "@media not all and"); - } - return _extends({ - keys, - values: sortedValues, - up, - down, - between, - only, - not, - unit - }, other); - } - const shape = { - borderRadius: 4 - }; - const shape$1 = shape; - const responsivePropType = propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.string, propTypes.exports.object, propTypes.exports.array]); - const responsivePropType$1 = responsivePropType; - function merge(acc, item) { - if (!item) { - return acc; - } - return deepmerge(acc, item, { - clone: false - }); - } - const values = { - xs: 0, - sm: 600, - md: 900, - lg: 1200, - xl: 1536 - }; - const defaultBreakpoints = { - keys: ["xs", "sm", "md", "lg", "xl"], - up: (key) => `@media (min-width:${values[key]}px)` - }; - function handleBreakpoints(props, propValue, styleFromPropValue) { - const theme = props.theme || {}; - if (Array.isArray(propValue)) { - const themeBreakpoints = theme.breakpoints || defaultBreakpoints; - return propValue.reduce((acc, item, index) => { - acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]); - return acc; - }, {}); - } - if (typeof propValue === "object") { - const themeBreakpoints = theme.breakpoints || defaultBreakpoints; - return Object.keys(propValue).reduce((acc, breakpoint) => { - if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) { - const mediaKey = themeBreakpoints.up(breakpoint); - acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint); - } else { - const cssKey = breakpoint; - acc[cssKey] = propValue[cssKey]; - } - return acc; - }, {}); - } - const output = styleFromPropValue(propValue); - return output; - } - function createEmptyBreakpointObject(breakpointsInput = {}) { - var _breakpointsInput$key; - const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => { - const breakpointStyleKey = breakpointsInput.up(key); - acc[breakpointStyleKey] = {}; - return acc; - }, {}); - return breakpointsInOrder || {}; - } - function removeUnusedBreakpoints(breakpointKeys, style2) { - return breakpointKeys.reduce((acc, key) => { - const breakpointOutput = acc[key]; - const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0; - if (isBreakpointUnused) { - delete acc[key]; - } - return acc; - }, style2); - } - function getPath(obj, path, checkVars = true) { - if (!path || typeof path !== "string") { - return null; - } - if (obj && obj.vars && checkVars) { - const val = `vars.${path}`.split(".").reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj); - if (val != null) { - return val; - } - } - return path.split(".").reduce((acc, item) => { - if (acc && acc[item] != null) { - return acc[item]; - } - return null; - }, obj); - } - function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) { - let value; - if (typeof themeMapping === "function") { - value = themeMapping(propValueFinal); - } else if (Array.isArray(themeMapping)) { - value = themeMapping[propValueFinal] || userValue; - } else { - value = getPath(themeMapping, propValueFinal) || userValue; - } - if (transform) { - value = transform(value, userValue, themeMapping); - } - return value; - } - function style$1(options) { - const { - prop, - cssProperty = options.prop, - themeKey, - transform - } = options; - const fn = (props) => { - if (props[prop] == null) { - return null; - } - const propValue = props[prop]; - const theme = props.theme; - const themeMapping = getPath(theme, themeKey) || {}; - const styleFromPropValue = (propValueFinal) => { - let value = getStyleValue(themeMapping, transform, propValueFinal); - if (propValueFinal === value && typeof propValueFinal === "string") { - value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal); - } - if (cssProperty === false) { - return value; - } - return { - [cssProperty]: value - }; - }; - return handleBreakpoints(props, propValue, styleFromPropValue); - }; - fn.propTypes = { - [prop]: responsivePropType$1 - }; - fn.filterProps = [prop]; - return fn; - } - function memoize$1(fn) { - const cache = {}; - return (arg) => { - if (cache[arg] === void 0) { - cache[arg] = fn(arg); - } - return cache[arg]; - }; - } - const properties = { - m: "margin", - p: "padding" - }; - const directions = { - t: "Top", - r: "Right", - b: "Bottom", - l: "Left", - x: ["Left", "Right"], - y: ["Top", "Bottom"] - }; - const aliases = { - marginX: "mx", - marginY: "my", - paddingX: "px", - paddingY: "py" - }; - const getCssProperties = memoize$1((prop) => { - if (prop.length > 2) { - if (aliases[prop]) { - prop = aliases[prop]; - } else { - return [prop]; - } - } - const [a, b2] = prop.split(""); - const property = properties[a]; - const direction = directions[b2] || ""; - return Array.isArray(direction) ? direction.map((dir) => property + dir) : [property + direction]; - }); - const marginKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"]; - const paddingKeys = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"]; - const spacingKeys = [...marginKeys, ...paddingKeys]; - function createUnaryUnit(theme, themeKey, defaultValue, propName) { - var _getPath; - const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue; - if (typeof themeSpacing === "number") { - return (abs2) => { - if (typeof abs2 === "string") { - return abs2; - } - { - if (typeof abs2 !== "number") { - console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs2}.`); - } - } - return themeSpacing * abs2; - }; - } - if (Array.isArray(themeSpacing)) { - return (abs2) => { - if (typeof abs2 === "string") { - return abs2; - } - { - if (!Number.isInteger(abs2)) { - console.error([`MUI: The \`theme.${themeKey}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${themeKey}\` as a number.`].join("\n")); - } else if (abs2 > themeSpacing.length - 1) { - console.error([`MUI: The value provided (${abs2}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs2} > ${themeSpacing.length - 1}, you need to add the missing values.`].join("\n")); - } - } - return themeSpacing[abs2]; - }; - } - if (typeof themeSpacing === "function") { - return themeSpacing; - } - { - console.error([`MUI: The \`theme.${themeKey}\` value (${themeSpacing}) is invalid.`, "It should be a number, an array or a function."].join("\n")); - } - return () => void 0; - } - function createUnarySpacing(theme) { - return createUnaryUnit(theme, "spacing", 8, "spacing"); - } - function getValue(transformer, propValue) { - if (typeof propValue === "string" || propValue == null) { - return propValue; - } - const abs2 = Math.abs(propValue); - const transformed = transformer(abs2); - if (propValue >= 0) { - return transformed; - } - if (typeof transformed === "number") { - return -transformed; - } - return `-${transformed}`; - } - function getStyleFromPropValue(cssProperties, transformer) { - return (propValue) => cssProperties.reduce((acc, cssProperty) => { - acc[cssProperty] = getValue(transformer, propValue); - return acc; - }, {}); - } - function resolveCssProperty(props, keys, prop, transformer) { - if (keys.indexOf(prop) === -1) { - return null; - } - const cssProperties = getCssProperties(prop); - const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer); - const propValue = props[prop]; - return handleBreakpoints(props, propValue, styleFromPropValue); - } - function style(props, keys) { - const transformer = createUnarySpacing(props.theme); - return Object.keys(props).map((prop) => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {}); - } - function margin(props) { - return style(props, marginKeys); - } - margin.propTypes = marginKeys.reduce((obj, key) => { - obj[key] = responsivePropType$1; - return obj; - }, {}); - margin.filterProps = marginKeys; - function padding(props) { - return style(props, paddingKeys); - } - padding.propTypes = paddingKeys.reduce((obj, key) => { - obj[key] = responsivePropType$1; - return obj; - }, {}); - padding.filterProps = paddingKeys; - spacingKeys.reduce((obj, key) => { - obj[key] = responsivePropType$1; - return obj; - }, {}); - function createSpacing(spacingInput = 8) { - if (spacingInput.mui) { - return spacingInput; - } - const transform = createUnarySpacing({ - spacing: spacingInput - }); - const spacing = (...argsInput) => { - { - if (!(argsInput.length <= 4)) { - console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`); - } - } - const args = argsInput.length === 0 ? [1] : argsInput; - return args.map((argument) => { - const output = transform(argument); - return typeof output === "number" ? `${output}px` : output; - }).join(" "); - }; - spacing.mui = true; - return spacing; - } - function compose(...styles) { - const handlers = styles.reduce((acc, style2) => { - style2.filterProps.forEach((prop) => { - acc[prop] = style2; - }); - return acc; - }, {}); - const fn = (props) => { - return Object.keys(props).reduce((acc, prop) => { - if (handlers[prop]) { - return merge(acc, handlers[prop](props)); - } - return acc; - }, {}); - }; - fn.propTypes = styles.reduce((acc, style2) => Object.assign(acc, style2.propTypes), {}); - fn.filterProps = styles.reduce((acc, style2) => acc.concat(style2.filterProps), []); - return fn; - } - function borderTransform(value) { - if (typeof value !== "number") { - return value; - } - return `${value}px solid`; - } - const border = style$1({ - prop: "border", - themeKey: "borders", - transform: borderTransform - }); - const borderTop = style$1({ - prop: "borderTop", - themeKey: "borders", - transform: borderTransform - }); - const borderRight = style$1({ - prop: "borderRight", - themeKey: "borders", - transform: borderTransform - }); - const borderBottom = style$1({ - prop: "borderBottom", - themeKey: "borders", - transform: borderTransform - }); - const borderLeft = style$1({ - prop: "borderLeft", - themeKey: "borders", - transform: borderTransform - }); - const borderColor = style$1({ - prop: "borderColor", - themeKey: "palette" - }); - const borderTopColor = style$1({ - prop: "borderTopColor", - themeKey: "palette" - }); - const borderRightColor = style$1({ - prop: "borderRightColor", - themeKey: "palette" - }); - const borderBottomColor = style$1({ - prop: "borderBottomColor", - themeKey: "palette" - }); - const borderLeftColor = style$1({ - prop: "borderLeftColor", - themeKey: "palette" - }); - const borderRadius = (props) => { - if (props.borderRadius !== void 0 && props.borderRadius !== null) { - const transformer = createUnaryUnit(props.theme, "shape.borderRadius", 4, "borderRadius"); - const styleFromPropValue = (propValue) => ({ - borderRadius: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.borderRadius, styleFromPropValue); - } - return null; - }; - borderRadius.propTypes = { - borderRadius: responsivePropType$1 - }; - borderRadius.filterProps = ["borderRadius"]; - compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius); - const gap = (props) => { - if (props.gap !== void 0 && props.gap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "gap"); - const styleFromPropValue = (propValue) => ({ - gap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.gap, styleFromPropValue); - } - return null; - }; - gap.propTypes = { - gap: responsivePropType$1 - }; - gap.filterProps = ["gap"]; - const columnGap = (props) => { - if (props.columnGap !== void 0 && props.columnGap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "columnGap"); - const styleFromPropValue = (propValue) => ({ - columnGap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.columnGap, styleFromPropValue); - } - return null; - }; - columnGap.propTypes = { - columnGap: responsivePropType$1 - }; - columnGap.filterProps = ["columnGap"]; - const rowGap = (props) => { - if (props.rowGap !== void 0 && props.rowGap !== null) { - const transformer = createUnaryUnit(props.theme, "spacing", 8, "rowGap"); - const styleFromPropValue = (propValue) => ({ - rowGap: getValue(transformer, propValue) - }); - return handleBreakpoints(props, props.rowGap, styleFromPropValue); - } - return null; - }; - rowGap.propTypes = { - rowGap: responsivePropType$1 - }; - rowGap.filterProps = ["rowGap"]; - const gridColumn = style$1({ - prop: "gridColumn" - }); - const gridRow = style$1({ - prop: "gridRow" - }); - const gridAutoFlow = style$1({ - prop: "gridAutoFlow" - }); - const gridAutoColumns = style$1({ - prop: "gridAutoColumns" - }); - const gridAutoRows = style$1({ - prop: "gridAutoRows" - }); - const gridTemplateColumns = style$1({ - prop: "gridTemplateColumns" - }); - const gridTemplateRows = style$1({ - prop: "gridTemplateRows" - }); - const gridTemplateAreas = style$1({ - prop: "gridTemplateAreas" - }); - const gridArea = style$1({ - prop: "gridArea" - }); - compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea); - function paletteTransform(value, userValue) { - if (userValue === "grey") { - return userValue; - } - return value; - } - const color = style$1({ - prop: "color", - themeKey: "palette", - transform: paletteTransform - }); - const bgcolor = style$1({ - prop: "bgcolor", - cssProperty: "backgroundColor", - themeKey: "palette", - transform: paletteTransform - }); - const backgroundColor = style$1({ - prop: "backgroundColor", - themeKey: "palette", - transform: paletteTransform - }); - compose(color, bgcolor, backgroundColor); - function sizingTransform(value) { - return value <= 1 && value !== 0 ? `${value * 100}%` : value; - } - const width = style$1({ - prop: "width", - transform: sizingTransform - }); - const maxWidth = (props) => { - if (props.maxWidth !== void 0 && props.maxWidth !== null) { - const styleFromPropValue = (propValue) => { - var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2; - const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || values[propValue]; - return { - maxWidth: breakpoint || sizingTransform(propValue) - }; - }; - return handleBreakpoints(props, props.maxWidth, styleFromPropValue); - } - return null; - }; - maxWidth.filterProps = ["maxWidth"]; - const minWidth = style$1({ - prop: "minWidth", - transform: sizingTransform - }); - const height = style$1({ - prop: "height", - transform: sizingTransform - }); - const maxHeight = style$1({ - prop: "maxHeight", - transform: sizingTransform - }); - const minHeight = style$1({ - prop: "minHeight", - transform: sizingTransform - }); - style$1({ - prop: "size", - cssProperty: "width", - transform: sizingTransform - }); - style$1({ - prop: "size", - cssProperty: "height", - transform: sizingTransform - }); - const boxSizing = style$1({ - prop: "boxSizing" - }); - compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing); - const defaultSxConfig = { - border: { - themeKey: "borders", - transform: borderTransform - }, - borderTop: { - themeKey: "borders", - transform: borderTransform - }, - borderRight: { - themeKey: "borders", - transform: borderTransform - }, - borderBottom: { - themeKey: "borders", - transform: borderTransform - }, - borderLeft: { - themeKey: "borders", - transform: borderTransform - }, - borderColor: { - themeKey: "palette" - }, - borderTopColor: { - themeKey: "palette" - }, - borderRightColor: { - themeKey: "palette" - }, - borderBottomColor: { - themeKey: "palette" - }, - borderLeftColor: { - themeKey: "palette" - }, - borderRadius: { - themeKey: "shape.borderRadius", - style: borderRadius - }, - color: { - themeKey: "palette", - transform: paletteTransform - }, - bgcolor: { - themeKey: "palette", - cssProperty: "backgroundColor", - transform: paletteTransform - }, - backgroundColor: { - themeKey: "palette", - transform: paletteTransform - }, - p: { - style: padding - }, - pt: { - style: padding - }, - pr: { - style: padding - }, - pb: { - style: padding - }, - pl: { - style: padding - }, - px: { - style: padding - }, - py: { - style: padding - }, - padding: { - style: padding - }, - paddingTop: { - style: padding - }, - paddingRight: { - style: padding - }, - paddingBottom: { - style: padding - }, - paddingLeft: { - style: padding - }, - paddingX: { - style: padding - }, - paddingY: { - style: padding - }, - paddingInline: { - style: padding - }, - paddingInlineStart: { - style: padding - }, - paddingInlineEnd: { - style: padding - }, - paddingBlock: { - style: padding - }, - paddingBlockStart: { - style: padding - }, - paddingBlockEnd: { - style: padding - }, - m: { - style: margin - }, - mt: { - style: margin - }, - mr: { - style: margin - }, - mb: { - style: margin - }, - ml: { - style: margin - }, - mx: { - style: margin - }, - my: { - style: margin - }, - margin: { - style: margin - }, - marginTop: { - style: margin - }, - marginRight: { - style: margin - }, - marginBottom: { - style: margin - }, - marginLeft: { - style: margin - }, - marginX: { - style: margin - }, - marginY: { - style: margin - }, - marginInline: { - style: margin - }, - marginInlineStart: { - style: margin - }, - marginInlineEnd: { - style: margin - }, - marginBlock: { - style: margin - }, - marginBlockStart: { - style: margin - }, - marginBlockEnd: { - style: margin - }, - displayPrint: { - cssProperty: false, - transform: (value) => ({ - "@media print": { - display: value - } - }) - }, - display: {}, - overflow: {}, - textOverflow: {}, - visibility: {}, - whiteSpace: {}, - flexBasis: {}, - flexDirection: {}, - flexWrap: {}, - justifyContent: {}, - alignItems: {}, - alignContent: {}, - order: {}, - flex: {}, - flexGrow: {}, - flexShrink: {}, - alignSelf: {}, - justifyItems: {}, - justifySelf: {}, - gap: { - style: gap - }, - rowGap: { - style: rowGap - }, - columnGap: { - style: columnGap - }, - gridColumn: {}, - gridRow: {}, - gridAutoFlow: {}, - gridAutoColumns: {}, - gridAutoRows: {}, - gridTemplateColumns: {}, - gridTemplateRows: {}, - gridTemplateAreas: {}, - gridArea: {}, - position: {}, - zIndex: { - themeKey: "zIndex" - }, - top: {}, - right: {}, - bottom: {}, - left: {}, - boxShadow: { - themeKey: "shadows" - }, - width: { - transform: sizingTransform - }, - maxWidth: { - style: maxWidth - }, - minWidth: { - transform: sizingTransform - }, - height: { - transform: sizingTransform - }, - maxHeight: { - transform: sizingTransform - }, - minHeight: { - transform: sizingTransform - }, - boxSizing: {}, - fontFamily: { - themeKey: "typography" - }, - fontSize: { - themeKey: "typography" - }, - fontStyle: { - themeKey: "typography" - }, - fontWeight: { - themeKey: "typography" - }, - letterSpacing: {}, - textTransform: {}, - lineHeight: {}, - textAlign: {}, - typography: { - cssProperty: false, - themeKey: "typography" - } - }; - const defaultSxConfig$1 = defaultSxConfig; - function objectsHaveSameKeys(...objects) { - const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []); - const union = new Set(allKeys); - return objects.every((object) => union.size === Object.keys(object).length); - } - function callIfFn(maybeFn, arg) { - return typeof maybeFn === "function" ? maybeFn(arg) : maybeFn; - } - function unstable_createStyleFunctionSx() { - function getThemeValue(prop, val, theme, config) { - const props = { - [prop]: val, - theme - }; - const options = config[prop]; - if (!options) { - return { - [prop]: val - }; - } - const { - cssProperty = prop, - themeKey, - transform, - style: style2 - } = options; - if (val == null) { - return null; - } - if (themeKey === "typography" && val === "inherit") { - return { - [prop]: val - }; - } - const themeMapping = getPath(theme, themeKey) || {}; - if (style2) { - return style2(props); - } - const styleFromPropValue = (propValueFinal) => { - let value = getStyleValue(themeMapping, transform, propValueFinal); - if (propValueFinal === value && typeof propValueFinal === "string") { - value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === "default" ? "" : capitalize(propValueFinal)}`, propValueFinal); - } - if (cssProperty === false) { - return value; - } - return { - [cssProperty]: value - }; - }; - return handleBreakpoints(props, val, styleFromPropValue); - } - function styleFunctionSx2(props) { - var _theme$unstable_sxCon; - const { - sx, - theme = {} - } = props || {}; - if (!sx) { - return null; - } - const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig$1; - function traverse(sxInput) { - let sxObject = sxInput; - if (typeof sxInput === "function") { - sxObject = sxInput(theme); - } else if (typeof sxInput !== "object") { - return sxInput; - } - if (!sxObject) { - return null; - } - const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints); - const breakpointsKeys = Object.keys(emptyBreakpoints); - let css = emptyBreakpoints; - Object.keys(sxObject).forEach((styleKey) => { - const value = callIfFn(sxObject[styleKey], theme); - if (value !== null && value !== void 0) { - if (typeof value === "object") { - if (config[styleKey]) { - css = merge(css, getThemeValue(styleKey, value, theme, config)); - } else { - const breakpointsValues = handleBreakpoints({ - theme - }, value, (x2) => ({ - [styleKey]: x2 - })); - if (objectsHaveSameKeys(breakpointsValues, value)) { - css[styleKey] = styleFunctionSx2({ - sx: value, - theme - }); - } else { - css = merge(css, breakpointsValues); - } - } - } else { - css = merge(css, getThemeValue(styleKey, value, theme, config)); - } - } - }); - return removeUnusedBreakpoints(breakpointsKeys, css); - } - return Array.isArray(sx) ? sx.map(traverse) : traverse(sx); - } - return styleFunctionSx2; - } - const styleFunctionSx = unstable_createStyleFunctionSx(); - styleFunctionSx.filterProps = ["sx"]; - const styleFunctionSx$1 = styleFunctionSx; - const _excluded$8 = ["breakpoints", "palette", "spacing", "shape"]; - function createTheme$1(options = {}, ...args) { - const { - breakpoints: breakpointsInput = {}, - palette: paletteInput = {}, - spacing: spacingInput, - shape: shapeInput = {} - } = options, other = _objectWithoutPropertiesLoose(options, _excluded$8); - const breakpoints = createBreakpoints(breakpointsInput); - const spacing = createSpacing(spacingInput); - let muiTheme = deepmerge({ - breakpoints, - direction: "ltr", - components: {}, - palette: _extends({ - mode: "light" - }, paletteInput), - spacing, - shape: _extends({}, shape$1, shapeInput) - }, other); - muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme); - muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig); - muiTheme.unstable_sx = function sx(props) { - return styleFunctionSx$1({ - sx: props, - theme: this - }); - }; - return muiTheme; - } - const React$4 = window["React"]; - function isObjectEmpty(obj) { - return Object.keys(obj).length === 0; - } - function useTheme$2(defaultTheme2 = null) { - const contextTheme = React$4.useContext(ThemeContext); - return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme2 : contextTheme; - } - const systemDefaultTheme$1 = createTheme$1(); - function useTheme$1(defaultTheme2 = systemDefaultTheme$1) { - return useTheme$2(defaultTheme2); - } - const _excluded$7 = ["variant"]; - function isEmpty$1(string) { - return string.length === 0; - } - function propsToClassKey(props) { - const { - variant - } = props, other = _objectWithoutPropertiesLoose(props, _excluded$7); - let classKey = variant || ""; - Object.keys(other).sort().forEach((key) => { - if (key === "color") { - classKey += isEmpty$1(classKey) ? props[key] : capitalize(props[key]); - } else { - classKey += `${isEmpty$1(classKey) ? key : capitalize(key)}${capitalize(props[key].toString())}`; - } - }); - return classKey; - } - const _excluded$6 = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; - function isEmpty(obj) { - return Object.keys(obj).length === 0; - } - function isStringTag(tag) { - return typeof tag === "string" && tag.charCodeAt(0) > 96; - } - const getStyleOverrides = (name, theme) => { - if (theme.components && theme.components[name] && theme.components[name].styleOverrides) { - return theme.components[name].styleOverrides; - } - return null; - }; - const getVariantStyles = (name, theme) => { - let variants = []; - if (theme && theme.components && theme.components[name] && theme.components[name].variants) { - variants = theme.components[name].variants; - } - const variantsStyles = {}; - variants.forEach((definition) => { - const key = propsToClassKey(definition.props); - variantsStyles[key] = definition.style; - }); - return variantsStyles; - }; - const variantsResolver = (props, styles, theme, name) => { - var _theme$components, _theme$components$nam; - const { - ownerState = {} - } = props; - const variantsStyles = []; - const themeVariants = theme == null ? void 0 : (_theme$components = theme.components) == null ? void 0 : (_theme$components$nam = _theme$components[name]) == null ? void 0 : _theme$components$nam.variants; - if (themeVariants) { - themeVariants.forEach((themeVariant) => { - let isMatch = true; - Object.keys(themeVariant.props).forEach((key) => { - if (ownerState[key] !== themeVariant.props[key] && props[key] !== themeVariant.props[key]) { - isMatch = false; - } - }); - if (isMatch) { - variantsStyles.push(styles[propsToClassKey(themeVariant.props)]); - } - }); - } - return variantsStyles; - }; - function shouldForwardProp(prop) { - return prop !== "ownerState" && prop !== "theme" && prop !== "sx" && prop !== "as"; - } - const systemDefaultTheme = createTheme$1(); - const lowercaseFirstLetter = (string) => { - return string.charAt(0).toLowerCase() + string.slice(1); - }; - function resolveTheme({ - defaultTheme: defaultTheme2, - theme, - themeId - }) { - return isEmpty(theme) ? defaultTheme2 : theme[themeId] || theme; - } - function createStyled(input = {}) { - const { - themeId, - defaultTheme: defaultTheme2 = systemDefaultTheme, - rootShouldForwardProp: rootShouldForwardProp2 = shouldForwardProp, - slotShouldForwardProp = shouldForwardProp - } = input; - const systemSx = (props) => { - return styleFunctionSx$1(_extends({}, props, { - theme: resolveTheme(_extends({}, props, { - defaultTheme: defaultTheme2, - themeId - })) - })); - }; - systemSx.__mui_systemSx = true; - return (tag, inputOptions = {}) => { - internal_processStyles(tag, (styles) => styles.filter((style2) => !(style2 != null && style2.__mui_systemSx))); - const { - name: componentName, - slot: componentSlot, - skipVariantsResolver: inputSkipVariantsResolver, - skipSx: inputSkipSx, - overridesResolver - } = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded$6); - const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : componentSlot && componentSlot !== "Root" || false; - const skipSx = inputSkipSx || false; - let label; - { - if (componentName) { - label = `${componentName}-${lowercaseFirstLetter(componentSlot || "Root")}`; - } - } - let shouldForwardPropOption = shouldForwardProp; - if (componentSlot === "Root") { - shouldForwardPropOption = rootShouldForwardProp2; - } else if (componentSlot) { - shouldForwardPropOption = slotShouldForwardProp; - } else if (isStringTag(tag)) { - shouldForwardPropOption = void 0; - } - const defaultStyledResolver = styled$3(tag, _extends({ - shouldForwardProp: shouldForwardPropOption, - label - }, options)); - const muiStyledResolver = (styleArg, ...expressions) => { - const expressionsWithDefaultTheme = expressions ? expressions.map((stylesArg) => { - return typeof stylesArg === "function" && stylesArg.__emotion_real !== stylesArg ? (props) => { - return stylesArg(_extends({}, props, { - theme: resolveTheme(_extends({}, props, { - defaultTheme: defaultTheme2, - themeId - })) - })); - } : stylesArg; - }) : []; - let transformedStyleArg = styleArg; - if (componentName && overridesResolver) { - expressionsWithDefaultTheme.push((props) => { - const theme = resolveTheme(_extends({}, props, { - defaultTheme: defaultTheme2, - themeId - })); - const styleOverrides = getStyleOverrides(componentName, theme); - if (styleOverrides) { - const resolvedStyleOverrides = {}; - Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => { - resolvedStyleOverrides[slotKey] = typeof slotStyle === "function" ? slotStyle(_extends({}, props, { - theme - })) : slotStyle; - }); - return overridesResolver(props, resolvedStyleOverrides); - } - return null; - }); - } - if (componentName && !skipVariantsResolver) { - expressionsWithDefaultTheme.push((props) => { - const theme = resolveTheme(_extends({}, props, { - defaultTheme: defaultTheme2, - themeId - })); - return variantsResolver(props, getVariantStyles(componentName, theme), theme, componentName); - }); - } - if (!skipSx) { - expressionsWithDefaultTheme.push(systemSx); - } - const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length; - if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) { - const placeholders = new Array(numOfCustomFnsApplied).fill(""); - transformedStyleArg = [...styleArg, ...placeholders]; - transformedStyleArg.raw = [...styleArg.raw, ...placeholders]; - } else if (typeof styleArg === "function" && styleArg.__emotion_real !== styleArg) { - transformedStyleArg = (props) => styleArg(_extends({}, props, { - theme: resolveTheme(_extends({}, props, { - defaultTheme: defaultTheme2, - themeId - })) - })); - } - const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme); - { - let displayName; - if (componentName) { - displayName = `${componentName}${componentSlot || ""}`; - } - if (displayName === void 0) { - displayName = `Styled(${getDisplayName(tag)})`; - } - Component.displayName = displayName; - } - if (tag.muiName) { - Component.muiName = tag.muiName; - } - return Component; - }; - if (defaultStyledResolver.withConfig) { - muiStyledResolver.withConfig = defaultStyledResolver.withConfig; - } - return muiStyledResolver; - }; - } - function getThemeProps(params) { - const { - theme, - name, - props - } = params; - if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) { - return props; - } - return resolveProps(theme.components[name].defaultProps, props); - } - function useThemeProps$1({ - props, - name, - defaultTheme: defaultTheme2, - themeId - }) { - let theme = useTheme$1(defaultTheme2); - if (themeId) { - theme = theme[themeId] || theme; - } - const mergedProps = getThemeProps({ - theme, - name, - props - }); - return mergedProps; - } - function clamp(value, min = 0, max = 1) { - { - if (value < min || value > max) { - console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`); - } - } - return Math.min(Math.max(min, value), max); - } - function hexToRgb(color2) { - color2 = color2.slice(1); - const re = new RegExp(`.{1,${color2.length >= 6 ? 2 : 1}}`, "g"); - let colors = color2.match(re); - if (colors && colors[0].length === 1) { - colors = colors.map((n) => n + n); - } - return colors ? `rgb${colors.length === 4 ? "a" : ""}(${colors.map((n, index) => { - return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3; - }).join(", ")})` : ""; - } - function decomposeColor(color2) { - if (color2.type) { - return color2; - } - if (color2.charAt(0) === "#") { - return decomposeColor(hexToRgb(color2)); - } - const marker = color2.indexOf("("); - const type = color2.substring(0, marker); - if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(type) === -1) { - throw new Error(`MUI: Unsupported \`${color2}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`); - } - let values2 = color2.substring(marker + 1, color2.length - 1); - let colorSpace; - if (type === "color") { - values2 = values2.split(" "); - colorSpace = values2.shift(); - if (values2.length === 4 && values2[3].charAt(0) === "/") { - values2[3] = values2[3].slice(1); - } - if (["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(colorSpace) === -1) { - throw new Error(`MUI: unsupported \`${colorSpace}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`); - } - } else { - values2 = values2.split(","); - } - values2 = values2.map((value) => parseFloat(value)); - return { - type, - values: values2, - colorSpace - }; - } - function recomposeColor(color2) { - const { - type, - colorSpace - } = color2; - let { - values: values2 - } = color2; - if (type.indexOf("rgb") !== -1) { - values2 = values2.map((n, i) => i < 3 ? parseInt(n, 10) : n); - } else if (type.indexOf("hsl") !== -1) { - values2[1] = `${values2[1]}%`; - values2[2] = `${values2[2]}%`; - } - if (type.indexOf("color") !== -1) { - values2 = `${colorSpace} ${values2.join(" ")}`; - } else { - values2 = `${values2.join(", ")}`; - } - return `${type}(${values2})`; - } - function hslToRgb(color2) { - color2 = decomposeColor(color2); - const { - values: values2 - } = color2; - const h = values2[0]; - const s2 = values2[1] / 100; - const l2 = values2[2] / 100; - const a = s2 * Math.min(l2, 1 - l2); - const f = (n, k2 = (n + h / 30) % 12) => l2 - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1); - let type = "rgb"; - const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)]; - if (color2.type === "hsla") { - type += "a"; - rgb.push(values2[3]); - } - return recomposeColor({ - type, - values: rgb - }); - } - function getLuminance(color2) { - color2 = decomposeColor(color2); - let rgb = color2.type === "hsl" || color2.type === "hsla" ? decomposeColor(hslToRgb(color2)).values : color2.values; - rgb = rgb.map((val) => { - if (color2.type !== "color") { - val /= 255; - } - return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4; - }); - return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3)); - } - function getContrastRatio(foreground, background) { - const lumA = getLuminance(foreground); - const lumB = getLuminance(background); - return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05); - } - function darken(color2, coefficient) { - color2 = decomposeColor(color2); - coefficient = clamp(coefficient); - if (color2.type.indexOf("hsl") !== -1) { - color2.values[2] *= 1 - coefficient; - } else if (color2.type.indexOf("rgb") !== -1 || color2.type.indexOf("color") !== -1) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] *= 1 - coefficient; - } - } - return recomposeColor(color2); - } - function lighten(color2, coefficient) { - color2 = decomposeColor(color2); - coefficient = clamp(coefficient); - if (color2.type.indexOf("hsl") !== -1) { - color2.values[2] += (100 - color2.values[2]) * coefficient; - } else if (color2.type.indexOf("rgb") !== -1) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] += (255 - color2.values[i]) * coefficient; - } - } else if (color2.type.indexOf("color") !== -1) { - for (let i = 0; i < 3; i += 1) { - color2.values[i] += (1 - color2.values[i]) * coefficient; - } - } - return recomposeColor(color2); - } - function createMixins(breakpoints, mixins) { - return _extends({ - toolbar: { - minHeight: 56, - [breakpoints.up("xs")]: { - "@media (orientation: landscape)": { - minHeight: 48 - } - }, - [breakpoints.up("sm")]: { - minHeight: 64 - } - } - }, mixins); - } - const common = { - black: "#000", - white: "#fff" - }; - const common$1 = common; - const grey = { - 50: "#fafafa", - 100: "#f5f5f5", - 200: "#eeeeee", - 300: "#e0e0e0", - 400: "#bdbdbd", - 500: "#9e9e9e", - 600: "#757575", - 700: "#616161", - 800: "#424242", - 900: "#212121", - A100: "#f5f5f5", - A200: "#eeeeee", - A400: "#bdbdbd", - A700: "#616161" - }; - const grey$1 = grey; - const purple = { - 50: "#f3e5f5", - 100: "#e1bee7", - 200: "#ce93d8", - 300: "#ba68c8", - 400: "#ab47bc", - 500: "#9c27b0", - 600: "#8e24aa", - 700: "#7b1fa2", - 800: "#6a1b9a", - 900: "#4a148c", - A100: "#ea80fc", - A200: "#e040fb", - A400: "#d500f9", - A700: "#aa00ff" - }; - const purple$1 = purple; - const red = { - 50: "#ffebee", - 100: "#ffcdd2", - 200: "#ef9a9a", - 300: "#e57373", - 400: "#ef5350", - 500: "#f44336", - 600: "#e53935", - 700: "#d32f2f", - 800: "#c62828", - 900: "#b71c1c", - A100: "#ff8a80", - A200: "#ff5252", - A400: "#ff1744", - A700: "#d50000" - }; - const red$1 = red; - const orange = { - 50: "#fff3e0", - 100: "#ffe0b2", - 200: "#ffcc80", - 300: "#ffb74d", - 400: "#ffa726", - 500: "#ff9800", - 600: "#fb8c00", - 700: "#f57c00", - 800: "#ef6c00", - 900: "#e65100", - A100: "#ffd180", - A200: "#ffab40", - A400: "#ff9100", - A700: "#ff6d00" - }; - const orange$1 = orange; - const blue = { - 50: "#e3f2fd", - 100: "#bbdefb", - 200: "#90caf9", - 300: "#64b5f6", - 400: "#42a5f5", - 500: "#2196f3", - 600: "#1e88e5", - 700: "#1976d2", - 800: "#1565c0", - 900: "#0d47a1", - A100: "#82b1ff", - A200: "#448aff", - A400: "#2979ff", - A700: "#2962ff" - }; - const blue$1 = blue; - const lightBlue = { - 50: "#e1f5fe", - 100: "#b3e5fc", - 200: "#81d4fa", - 300: "#4fc3f7", - 400: "#29b6f6", - 500: "#03a9f4", - 600: "#039be5", - 700: "#0288d1", - 800: "#0277bd", - 900: "#01579b", - A100: "#80d8ff", - A200: "#40c4ff", - A400: "#00b0ff", - A700: "#0091ea" - }; - const lightBlue$1 = lightBlue; - const green = { - 50: "#e8f5e9", - 100: "#c8e6c9", - 200: "#a5d6a7", - 300: "#81c784", - 400: "#66bb6a", - 500: "#4caf50", - 600: "#43a047", - 700: "#388e3c", - 800: "#2e7d32", - 900: "#1b5e20", - A100: "#b9f6ca", - A200: "#69f0ae", - A400: "#00e676", - A700: "#00c853" - }; - const green$1 = green; - const _excluded$5 = ["mode", "contrastThreshold", "tonalOffset"]; - const light = { - text: { - primary: "rgba(0, 0, 0, 0.87)", - secondary: "rgba(0, 0, 0, 0.6)", - disabled: "rgba(0, 0, 0, 0.38)" - }, - divider: "rgba(0, 0, 0, 0.12)", - background: { - paper: common$1.white, - default: common$1.white - }, - action: { - active: "rgba(0, 0, 0, 0.54)", - hover: "rgba(0, 0, 0, 0.04)", - hoverOpacity: 0.04, - selected: "rgba(0, 0, 0, 0.08)", - selectedOpacity: 0.08, - disabled: "rgba(0, 0, 0, 0.26)", - disabledBackground: "rgba(0, 0, 0, 0.12)", - disabledOpacity: 0.38, - focus: "rgba(0, 0, 0, 0.12)", - focusOpacity: 0.12, - activatedOpacity: 0.12 - } - }; - const dark = { - text: { - primary: common$1.white, - secondary: "rgba(255, 255, 255, 0.7)", - disabled: "rgba(255, 255, 255, 0.5)", - icon: "rgba(255, 255, 255, 0.5)" - }, - divider: "rgba(255, 255, 255, 0.12)", - background: { - paper: "#121212", - default: "#121212" - }, - action: { - active: common$1.white, - hover: "rgba(255, 255, 255, 0.08)", - hoverOpacity: 0.08, - selected: "rgba(255, 255, 255, 0.16)", - selectedOpacity: 0.16, - disabled: "rgba(255, 255, 255, 0.3)", - disabledBackground: "rgba(255, 255, 255, 0.12)", - disabledOpacity: 0.38, - focus: "rgba(255, 255, 255, 0.12)", - focusOpacity: 0.12, - activatedOpacity: 0.24 - } - }; - function addLightOrDark(intent, direction, shade, tonalOffset) { - const tonalOffsetLight = tonalOffset.light || tonalOffset; - const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5; - if (!intent[direction]) { - if (intent.hasOwnProperty(shade)) { - intent[direction] = intent[shade]; - } else if (direction === "light") { - intent.light = lighten(intent.main, tonalOffsetLight); - } else if (direction === "dark") { - intent.dark = darken(intent.main, tonalOffsetDark); - } - } - } - function getDefaultPrimary(mode = "light") { - if (mode === "dark") { - return { - main: blue$1[200], - light: blue$1[50], - dark: blue$1[400] - }; - } - return { - main: blue$1[700], - light: blue$1[400], - dark: blue$1[800] - }; - } - function getDefaultSecondary(mode = "light") { - if (mode === "dark") { - return { - main: purple$1[200], - light: purple$1[50], - dark: purple$1[400] - }; - } - return { - main: purple$1[500], - light: purple$1[300], - dark: purple$1[700] - }; - } - function getDefaultError(mode = "light") { - if (mode === "dark") { - return { - main: red$1[500], - light: red$1[300], - dark: red$1[700] - }; - } - return { - main: red$1[700], - light: red$1[400], - dark: red$1[800] - }; - } - function getDefaultInfo(mode = "light") { - if (mode === "dark") { - return { - main: lightBlue$1[400], - light: lightBlue$1[300], - dark: lightBlue$1[700] - }; - } - return { - main: lightBlue$1[700], - light: lightBlue$1[500], - dark: lightBlue$1[900] - }; - } - function getDefaultSuccess(mode = "light") { - if (mode === "dark") { - return { - main: green$1[400], - light: green$1[300], - dark: green$1[700] - }; - } - return { - main: green$1[800], - light: green$1[500], - dark: green$1[900] - }; - } - function getDefaultWarning(mode = "light") { - if (mode === "dark") { - return { - main: orange$1[400], - light: orange$1[300], - dark: orange$1[700] - }; - } - return { - main: "#ed6c02", - light: orange$1[500], - dark: orange$1[900] - }; - } - function createPalette(palette) { - const { - mode = "light", - contrastThreshold = 3, - tonalOffset = 0.2 - } = palette, other = _objectWithoutPropertiesLoose(palette, _excluded$5); - const primary = palette.primary || getDefaultPrimary(mode); - const secondary = palette.secondary || getDefaultSecondary(mode); - const error = palette.error || getDefaultError(mode); - const info = palette.info || getDefaultInfo(mode); - const success = palette.success || getDefaultSuccess(mode); - const warning = palette.warning || getDefaultWarning(mode); - function getContrastText(background) { - const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; - { - const contrast = getContrastRatio(background, contrastText); - if (contrast < 3) { - console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n")); - } - } - return contrastText; - } - const augmentColor = ({ - color: color2, - name, - mainShade = 500, - lightShade = 300, - darkShade = 700 - }) => { - color2 = _extends({}, color2); - if (!color2.main && color2[mainShade]) { - color2.main = color2[mainShade]; - } - if (!color2.hasOwnProperty("main")) { - throw new Error(`MUI: The color${name ? ` (${name})` : ""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${mainShade}\` property.`); - } - if (typeof color2.main !== "string") { - throw new Error(`MUI: The color${name ? ` (${name})` : ""} provided to augmentColor(color) is invalid. -\`color.main\` should be a string, but \`${JSON.stringify(color2.main)}\` was provided instead. +(function(on){typeof define=="function"&&define.amd?define(on):on()})(function(){"use strict";var lE=Object.defineProperty;var dE=(on,Ir,Q)=>Ir in on?lE(on,Ir,{enumerable:!0,configurable:!0,writable:!0,value:Q}):on[Ir]=Q;var vc=(on,Ir,Q)=>(dE(on,typeof Ir!="symbol"?Ir+"":Ir,Q),Q);var on=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ir(i){var a=i.default;if(typeof a=="function"){var r=function(){return a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(u){var l=Object.getOwnPropertyDescriptor(i,u);Object.defineProperty(r,u,l.get?l:{enumerable:!0,get:function(){return i[u]}})}),r}var Q={exports:{}},mc={};/** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){var i=window.React,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),M=Symbol.iterator,I="@@iterator";function D(R){if(R===null||typeof R!="object")return null;var re=M&&R[M]||R[I];return typeof re=="function"?re:null}var B=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(R){{for(var re=arguments.length,ye=new Array(re>1?re-1:0),Be=1;Be=1&&Ht>=0&&Je[kt]!==an[Ht];)Ht--;for(;kt>=1&&Ht>=0;kt--,Ht--)if(Je[kt]!==an[Ht]){if(kt!==1||Ht!==1)do if(kt--,Ht--,Ht<0||Je[kt]!==an[Ht]){var Tn=` +`+Je[kt].replace(" at new "," at ");return R.displayName&&Tn.includes("")&&(Tn=Tn.replace("",R.displayName)),typeof R=="function"&&ge.set(R,Tn),Tn}while(kt>=1&&Ht>=0);break}}}finally{Se=!1,_.current=ct,K(),Error.prepareStackTrace=ot}var On=R?R.displayName||R.name:"",Ca=On?$(On):"";return typeof R=="function"&&ge.set(R,Ca),Ca}function Pe(R,re,ye){return b(R,!1)}function q(R){var re=R.prototype;return!!(re&&re.isReactComponent)}function ie(R,re,ye){if(R==null)return"";if(typeof R=="function")return b(R,q(R));if(typeof R=="string")return $(R);switch(R){case C:return $("Suspense");case T:return $("SuspenseList")}if(typeof R=="object")switch(R.$$typeof){case x:return Pe(R.render);case P:return ie(R.type,re,ye);case k:{var Be=R,ot=Be._payload,ct=Be._init;try{return ie(ct(ot),re,ye)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,le={},Ke=B.ReactDebugCurrentFrame;function rn(R){if(R){var re=R._owner,ye=ie(R.type,R._source,re?re.type:null);Ke.setExtraStackFrame(ye)}else Ke.setExtraStackFrame(null)}function ze(R,re,ye,Be,ot){{var ct=Function.call.bind(Ge);for(var tt in R)if(ct(R,tt)){var Je=void 0;try{if(typeof R[tt]!="function"){var an=Error((Be||"React class")+": "+ye+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof R[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw an.name="Invariant Violation",an}Je=R[tt](re,tt,Be,ye,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(kt){Je=kt}Je&&!(Je instanceof Error)&&(rn(ot),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Be||"React class",ye,tt,typeof Je),rn(null)),Je instanceof Error&&!(Je.message in le)&&(le[Je.message]=!0,rn(ot),z("Failed %s type: %s",ye,Je.message),rn(null))}}}var rt=Array.isArray;function Rt(R){return rt(R)}function it(R){{var re=typeof Symbol=="function"&&Symbol.toStringTag,ye=re&&R[Symbol.toStringTag]||R.constructor.name||"Object";return ye}}function oe(R){try{return Le(R),!1}catch{return!0}}function Le(R){return""+R}function Wn(R){if(oe(R))return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",it(R)),Le(R)}var Lt=B.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},Or,Pr,ar;ar={};function Dr(R){if(Ge.call(R,"ref")){var re=Object.getOwnPropertyDescriptor(R,"ref").get;if(re&&re.isReactWarning)return!1}return R.ref!==void 0}function Fr(R){if(Ge.call(R,"key")){var re=Object.getOwnPropertyDescriptor(R,"key").get;if(re&&re.isReactWarning)return!1}return R.key!==void 0}function Nr(R,re){if(typeof R.ref=="string"&&Lt.current&&re&&Lt.current.stateNode!==re){var ye=Y(Lt.current.type);ar[ye]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(Lt.current.type),R.ref),ar[ye]=!0)}}function Br(R,re){{var ye=function(){Or||(Or=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",re))};ye.isReactWarning=!0,Object.defineProperty(R,"key",{get:ye,configurable:!0})}}function Wr(R,re){{var ye=function(){Pr||(Pr=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",re))};ye.isReactWarning=!0,Object.defineProperty(R,"ref",{get:ye,configurable:!0})}}var Ur=function(R,re,ye,Be,ot,ct,tt){var Je={$$typeof:a,type:R,key:re,ref:ye,props:tt,_owner:ct};return Je._store={},Object.defineProperty(Je._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Je,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.defineProperty(Je,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ot}),Object.freeze&&(Object.freeze(Je.props),Object.freeze(Je)),Je};function Ba(R,re,ye,Be,ot){{var ct,tt={},Je=null,an=null;ye!==void 0&&(Wn(ye),Je=""+ye),Fr(re)&&(Wn(re.key),Je=""+re.key),Dr(re)&&(an=re.ref,Nr(re,ot));for(ct in re)Ge.call(re,ct)&&!ut.hasOwnProperty(ct)&&(tt[ct]=re[ct]);if(R&&R.defaultProps){var kt=R.defaultProps;for(ct in kt)tt[ct]===void 0&&(tt[ct]=kt[ct])}if(Je||an){var Ht=typeof R=="function"?R.displayName||R.name||"Unknown":R;Je&&Br(tt,Ht),an&&Wr(tt,Ht)}return Ur(R,Je,an,ot,Be,Lt.current,tt)}}var Fi=B.ReactCurrentOwner,_a=B.ReactDebugCurrentFrame;function rr(R){if(R){var re=R._owner,ye=ie(R.type,R._source,re?re.type:null);_a.setExtraStackFrame(ye)}else _a.setExtraStackFrame(null)}var zr;zr=!1;function Ni(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function ya(){{if(Fi.current){var R=Y(Fi.current.type);if(R)return` + +Check the render method of \``+R+"`."}return""}}function Wa(R){{if(R!==void 0){var re=R.fileName.replace(/^.*[\\\/]/,""),ye=R.lineNumber;return` + +Check your code at `+re+":"+ye+"."}return""}}var wa={};function Bi(R){{var re=ya();if(!re){var ye=typeof R=="string"?R:R.displayName||R.name;ye&&(re=` + +Check the top-level render call using <`+ye+">.")}return re}}function xa(R,re){{if(!R._store||R._store.validated||R.key!=null)return;R._store.validated=!0;var ye=Bi(re);if(wa[ye])return;wa[ye]=!0;var Be="";R&&R._owner&&R._owner!==Fi.current&&(Be=" It was passed a child from "+Y(R._owner.type)+"."),rr(R),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ye,Be),rr(null)}}function ba(R,re){{if(typeof R!="object")return;if(Rt(R))for(var ye=0;ye",Je=" Did you accidentally export a JSX literal instead of a component?"):kt=typeof R,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",kt,Je)}var Ht=Ba(R,re,ye,ot,ct);if(Ht==null)return Ht;if(tt){var Tn=re.children;if(Tn!==void 0)if(Be)if(Rt(Tn)){for(var On=0;On + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(i,a){(function(){var r,u="4.17.21",l=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",y="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",C=500,T="__lodash_placeholder__",P=1,k=2,H=4,M=1,I=2,D=1,B=2,z=4,Z=8,N=16,X=32,Ae=64,ce=128,ke=256,$e=512,Ee=30,Ze="...",Ue=800,Y=16,J=1,fe=2,Te=3,ae=1/0,se=9007199254740991,Re=17976931348623157e292,xe=0/0,_e=4294967295,F=_e-1,L=_e>>>1,U=[["ary",ce],["bind",D],["bindKey",B],["curry",Z],["curryRight",N],["flip",$e],["partial",X],["partialRight",Ae],["rearg",ke]],K="[object Arguments]",_="[object Array]",ve="[object AsyncFunction]",$="[object Boolean]",Se="[object Date]",ge="[object DOMException]",j="[object Error]",b="[object Function]",Pe="[object GeneratorFunction]",q="[object Map]",ie="[object Number]",Ge="[object Null]",le="[object Object]",Ke="[object Promise]",rn="[object Proxy]",ze="[object RegExp]",rt="[object Set]",Rt="[object String]",it="[object Symbol]",oe="[object Undefined]",Le="[object WeakMap]",Wn="[object WeakSet]",Lt="[object ArrayBuffer]",ut="[object DataView]",Or="[object Float32Array]",Pr="[object Float64Array]",ar="[object Int8Array]",Dr="[object Int16Array]",Fr="[object Int32Array]",Nr="[object Uint8Array]",Br="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Ur="[object Uint32Array]",Ba=/\b__p \+= '';/g,Fi=/\b(__p \+=) '' \+/g,_a=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,zr=/[&<>"']/g,Ni=RegExp(rr.source),ya=RegExp(zr.source),Wa=/<%-([\s\S]+?)%>/g,wa=/<%([\s\S]+?)%>/g,Bi=/<%=([\s\S]+?)%>/g,xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ba=/^\w*$/,Ua=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,Sa=RegExp(Yr.source),Gr=/^\s+/,za=/\s/,Ya=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ga=/\{\n\/\* \[wrapped with (.+)\] \*/,R=/,? & /,re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,Be=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,an=/^\[object .+?Constructor\]$/,kt=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,Tn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,On=/($^)/,Ca=/['\n\r\u2028\u2029\\]/g,sn="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Tl="\\ufe20-\\ufe2f",Ol="\\u20d0-\\u20ff",Ha=Rl+Tl+Ol,ja="\\u2700-\\u27bf",Ka="a-z\\xdf-\\xf6\\xf8-\\xff",Pl="\\xac\\xb1\\xd7\\xf7",Il="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$l="\\u2000-\\u206f",Ml=" \\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",qa="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",Xa=Pl+Il+$l+Ml,Wi="['\u2019]",Ll="["+sn+"]",Za="["+Xa+"]",Hr="["+Ha+"]",Ja="\\d+",kl="["+ja+"]",Qa="["+Ka+"]",es="[^"+sn+Xa+Ja+ja+Ka+qa+"]",Ui="\\ud83c[\\udffb-\\udfff]",Dl="(?:"+Hr+"|"+Ui+")",ts="[^"+sn+"]",zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Yn="["+qa+"]",ns="\\u200d",rs="(?:"+Qa+"|"+es+")",Fl="(?:"+Yn+"|"+es+")",is="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",os="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",as=Dl+"?",ss="["+Va+"]?",Nl="(?:"+ns+"(?:"+[ts,zi,Yi].join("|")+")"+ss+as+")*",Bl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",us=ss+as+Nl,Ul="(?:"+[kl,zi,Yi].join("|")+")"+us,zl="(?:"+[ts+Hr+"?",Hr,zi,Yi,Ll].join("|")+")",Yl=RegExp(Wi,"g"),Gl=RegExp(Hr,"g"),Gi=RegExp(Ui+"(?="+Ui+")|"+zl+us,"g"),Hl=RegExp([Yn+"?"+Qa+"+"+is+"(?="+[Za,Yn,"$"].join("|")+")",Fl+"+"+os+"(?="+[Za,Yn+rs,"$"].join("|")+")",Yn+"?"+rs+"+"+is,Yn+"+"+os,Wl,Bl,Ja,Ul].join("|"),"g"),jl=RegExp("["+ns+sn+Ha+Va+"]"),Kl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ql=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vl=-1,Ne={};Ne[Or]=Ne[Pr]=Ne[ar]=Ne[Dr]=Ne[Fr]=Ne[Nr]=Ne[Br]=Ne[Wr]=Ne[Ur]=!0,Ne[K]=Ne[_]=Ne[Lt]=Ne[$]=Ne[ut]=Ne[Se]=Ne[j]=Ne[b]=Ne[q]=Ne[ie]=Ne[le]=Ne[ze]=Ne[rt]=Ne[Rt]=Ne[Le]=!1;var Fe={};Fe[K]=Fe[_]=Fe[Lt]=Fe[ut]=Fe[$]=Fe[Se]=Fe[Or]=Fe[Pr]=Fe[ar]=Fe[Dr]=Fe[Fr]=Fe[q]=Fe[ie]=Fe[le]=Fe[ze]=Fe[rt]=Fe[Rt]=Fe[it]=Fe[Nr]=Fe[Br]=Fe[Wr]=Fe[Ur]=!0,Fe[j]=Fe[b]=Fe[Le]=!1;var Xl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Jl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ql={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ed=parseFloat,td=parseInt,cs=typeof on=="object"&&on&&on.Object===Object&&on,nd=typeof self=="object"&&self&&self.Object===Object&&self,at=cs||nd||Function("return this")(),Hi=a&&!a.nodeType&&a,Pn=Hi&&!0&&i&&!i.nodeType&&i,fs=Pn&&Pn.exports===Hi,ji=fs&&cs.process,Dt=function(){try{var v=Pn&&Pn.require&&Pn.require("util").types;return v||ji&&ji.binding&&ji.binding("util")}catch{}}(),ls=Dt&&Dt.isArrayBuffer,ds=Dt&&Dt.isDate,hs=Dt&&Dt.isMap,ps=Dt&&Dt.isRegExp,gs=Dt&&Dt.isSet,vs=Dt&&Dt.isTypedArray;function Tt(v,S,w){switch(w.length){case 0:return v.call(S);case 1:return v.call(S,w[0]);case 2:return v.call(S,w[0],w[1]);case 3:return v.call(S,w[0],w[1],w[2])}return v.apply(S,w)}function rd(v,S,w,G){for(var ue=-1,Oe=v==null?0:v.length;++ue-1}function Ki(v,S,w){for(var G=-1,ue=v==null?0:v.length;++G-1;);return w}function Cs(v,S){for(var w=v.length;w--&&Gn(S,v[w],0)>-1;);return w}function dd(v,S){for(var w=v.length,G=0;w--;)v[w]===S&&++G;return G}var hd=Zi(Xl),pd=Zi(Zl);function gd(v){return"\\"+Ql[v]}function vd(v,S){return v==null?r:v[S]}function Hn(v){return jl.test(v)}function md(v){return Kl.test(v)}function _d(v){for(var S,w=[];!(S=v.next()).done;)w.push(S.value);return w}function to(v){var S=-1,w=Array(v.size);return v.forEach(function(G,ue){w[++S]=[ue,G]}),w}function As(v,S){return function(w){return v(S(w))}}function wn(v,S){for(var w=-1,G=v.length,ue=0,Oe=[];++w-1}function oh(e,t){var n=this.__data__,o=ci(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}un.prototype.clear=th,un.prototype.delete=nh,un.prototype.get=rh,un.prototype.has=ih,un.prototype.set=oh;function cn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Wt(e,t,n,o,s,f){var d,g=t&P,m=t&k,A=t&H;if(n&&(d=s?n(e,o,s,f):n(e)),d!==r)return d;if(!He(e))return e;var E=de(e);if(E){if(d=cp(e),!g)return bt(e,d)}else{var O=lt(e),W=O==b||O==Pe;if(En(e))return su(e,g);if(O==le||O==K||W&&!s){if(d=m||W?{}:Eu(e),!g)return m?Jh(e,xh(d,e)):Zh(e,Fs(d,e))}else{if(!Fe[O])return s?e:{};d=fp(e,O,g)}}f||(f=new Kt);var V=f.get(e);if(V)return V;f.set(e,d),tc(e)?e.forEach(function(ne){d.add(Wt(ne,t,n,ne,e,f))}):Qu(e)&&e.forEach(function(ne,we){d.set(we,Wt(ne,t,n,we,e,f))});var te=A?m?To:Ro:m?Ct:nt,pe=E?r:te(e);return Ft(pe||e,function(ne,we){pe&&(we=ne,ne=e[we]),hr(d,we,Wt(ne,t,n,we,e,f))}),d}function bh(e){var t=nt(e);return function(n){return Ns(n,e,t)}}function Ns(e,t,n){var o=n.length;if(e==null)return!o;for(e=De(e);o--;){var s=n[o],f=t[s],d=e[s];if(d===r&&!(s in e)||!f(d))return!1}return!0}function Bs(e,t,n){if(typeof e!="function")throw new Nt(p);return wr(function(){e.apply(r,n)},t)}function pr(e,t,n,o){var s=-1,f=jr,d=!0,g=e.length,m=[],A=t.length;if(!g)return m;n&&(t=Ye(t,Ot(n))),o?(f=Ki,d=!1):t.length>=l&&(f=sr,d=!1,t=new Mn(t));e:for(;++ss?0:s+n),o=o===r||o>s?s:he(o),o<0&&(o+=s),o=n>o?0:rc(o);n0&&n(g)?t>1?st(g,t-1,n,o,s):yn(s,g):o||(s[s.length]=g)}return s}var uo=hu(),zs=hu(!0);function Qt(e,t){return e&&uo(e,t,nt)}function co(e,t){return e&&zs(e,t,nt)}function li(e,t){return _n(t,function(n){return pn(e[n])})}function kn(e,t){t=Cn(t,e);for(var n=0,o=t.length;e!=null&&nt}function Ah(e,t){return e!=null&&Me.call(e,t)}function Eh(e,t){return e!=null&&t in De(e)}function Rh(e,t,n){return e>=ft(t,n)&&e=120&&E.length>=120)?new Mn(d&&E):r}E=e[0];var O=-1,W=g[0];e:for(;++O-1;)g!==e&&ni.call(g,m,1),ni.call(e,m,1);return e}function Qs(e,t){for(var n=e?t.length:0,o=n-1;n--;){var s=t[n];if(n==o||s!==f){var f=s;hn(s)?ni.call(e,s,1):wo(e,s)}}return e}function mo(e,t){return e+oi(Ms()*(t-e+1))}function Wh(e,t,n,o){for(var s=-1,f=et(ii((t-e)/(n||1)),0),d=w(f);f--;)d[o?f:++s]=e,e+=n;return d}function _o(e,t){var n="";if(!e||t<1||t>se)return n;do t%2&&(n+=e),t=oi(t/2),t&&(e+=e);while(t);return n}function me(e,t){return ko(Ou(e,t,At),e+"")}function Uh(e){return Ds(nr(e))}function zh(e,t){var n=nr(e);return bi(n,Ln(t,0,n.length))}function mr(e,t,n,o){if(!He(e))return e;t=Cn(t,e);for(var s=-1,f=t.length,d=f-1,g=e;g!=null&&++ss?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var f=w(s);++o>>1,d=e[f];d!==null&&!It(d)&&(n?d<=t:d=l){var A=t?null:np(e);if(A)return qr(A);d=!1,s=sr,m=new Mn}else m=t?[]:g;e:for(;++o=o?e:Ut(e,t,n)}var au=Md||function(e){return at.clearTimeout(e)};function su(e,t){if(t)return e.slice();var n=e.length,o=Ts?Ts(n):new e.constructor(n);return e.copy(o),o}function Co(e){var t=new e.constructor(e.byteLength);return new ei(t).set(new ei(e)),t}function Kh(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qh(e){var t=new e.constructor(e.source,ct.exec(e));return t.lastIndex=e.lastIndex,t}function Vh(e){return dr?De(dr.call(e)):{}}function uu(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function cu(e,t){if(e!==t){var n=e!==r,o=e===null,s=e===e,f=It(e),d=t!==r,g=t===null,m=t===t,A=It(t);if(!g&&!A&&!f&&e>t||f&&d&&m&&!g&&!A||o&&d&&m||!n&&m||!s)return 1;if(!o&&!f&&!A&&e=g)return m;var A=n[o];return m*(A=="desc"?-1:1)}}return e.index-t.index}function fu(e,t,n,o){for(var s=-1,f=e.length,d=n.length,g=-1,m=t.length,A=et(f-d,0),E=w(m+A),O=!o;++g1?n[s-1]:r,d=s>2?n[2]:r;for(f=e.length>3&&typeof f=="function"?(s--,f):r,d&>(n[0],n[1],d)&&(f=s<3?r:f,s=1),t=De(t);++o-1?s[f?t[d]:d]:r}}function vu(e){return dn(function(t){var n=t.length,o=n,s=Bt.prototype.thru;for(e&&t.reverse();o--;){var f=t[o];if(typeof f!="function")throw new Nt(p);if(s&&!d&&wi(f)=="wrapper")var d=new Bt([],!0)}for(o=d?o:n;++o1&&Ce.reverse(),E&&mg))return!1;var A=f.get(e),E=f.get(t);if(A&&E)return A==t&&E==e;var O=-1,W=!0,V=n&I?new Mn:r;for(f.set(e,t),f.set(t,e);++O1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Ya,`{ +/* [wrapped with `+t+`] */ +`)}function dp(e){return de(e)||Nn(e)||!!(Is&&e&&e[Is])}function hn(e,t){var n=typeof e;return t=t==null?se:t,!!t&&(n=="number"||n!="symbol"&&Ht.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Ue)return arguments[0]}else t=0;return e.apply(r,arguments)}}function bi(e,t){var n=-1,o=e.length,s=o-1;for(t=t===r?o:t;++n1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Uu(e,n)});function zu(e){var t=c(e);return t.__chain__=!0,t}function Sg(e,t){return t(e),e}function Si(e,t){return t(e)}var Cg=dn(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,s=function(f){return so(f,e)};return t>1||this.__actions__.length||!(o instanceof be)||!hn(n)?this.thru(s):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Si,args:[s],thisArg:r}),new Bt(o,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function Ag(){return zu(this)}function Eg(){return new Bt(this.value(),this.__chain__)}function Rg(){this.__values__===r&&(this.__values__=nc(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Tg(){return this}function Og(e){for(var t,n=this;n instanceof ui;){var o=ku(n);o.__index__=0,o.__values__=r,t?s.__wrapped__=o:t=o;var s=o;n=n.__wrapped__}return s.__wrapped__=e,t}function Pg(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),t=t.reverse(),t.__actions__.push({func:Si,args:[Do],thisArg:r}),new Bt(t,this.__chain__)}return this.thru(Do)}function Ig(){return iu(this.__wrapped__,this.__actions__)}var $g=gi(function(e,t,n){Me.call(e,n)?++e[n]:fn(e,n,1)});function Mg(e,t,n){var o=de(e)?ms:Sh;return n&>(e,t,n)&&(t=r),o(e,ee(t,3))}function Lg(e,t){var n=de(e)?_n:Us;return n(e,ee(t,3))}var kg=gu(Du),Dg=gu(Fu);function Fg(e,t){return st(Ci(e,t),1)}function Ng(e,t){return st(Ci(e,t),ae)}function Bg(e,t,n){return n=n===r?1:he(n),st(Ci(e,t),n)}function Yu(e,t){var n=de(e)?Ft:bn;return n(e,ee(t,3))}function Gu(e,t){var n=de(e)?id:Ws;return n(e,ee(t,3))}var Wg=gi(function(e,t,n){Me.call(e,n)?e[n].push(t):fn(e,n,[t])});function Ug(e,t,n,o){e=St(e)?e:nr(e),n=n&&!o?he(n):0;var s=e.length;return n<0&&(n=et(s+n,0)),Oi(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&Gn(e,t,n)>-1}var zg=me(function(e,t,n){var o=-1,s=typeof t=="function",f=St(e)?w(e.length):[];return bn(e,function(d){f[++o]=s?Tt(t,d,n):gr(d,t,n)}),f}),Yg=gi(function(e,t,n){fn(e,n,t)});function Ci(e,t){var n=de(e)?Ye:Ks;return n(e,ee(t,3))}function Gg(e,t,n,o){return e==null?[]:(de(t)||(t=t==null?[]:[t]),n=o?r:n,de(n)||(n=n==null?[]:[n]),Zs(e,t,n))}var Hg=gi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function jg(e,t,n){var o=de(e)?qi:xs,s=arguments.length<3;return o(e,ee(t,4),n,s,bn)}function Kg(e,t,n){var o=de(e)?od:xs,s=arguments.length<3;return o(e,ee(t,4),n,s,Ws)}function qg(e,t){var n=de(e)?_n:Us;return n(e,Ri(ee(t,3)))}function Vg(e){var t=de(e)?Ds:Uh;return t(e)}function Xg(e,t,n){(n?gt(e,t,n):t===r)?t=1:t=he(t);var o=de(e)?_h:zh;return o(e,t)}function Zg(e){var t=de(e)?yh:Gh;return t(e)}function Jg(e){if(e==null)return 0;if(St(e))return Oi(e)?jn(e):e.length;var t=lt(e);return t==q||t==rt?e.size:po(e).length}function Qg(e,t,n){var o=de(e)?Vi:Hh;return n&>(e,t,n)&&(t=r),o(e,ee(t,3))}var e0=me(function(e,t){if(e==null)return[];var n=t.length;return n>1&>(e,t[0],t[1])?t=[]:n>2&>(t[0],t[1],t[2])&&(t=[t[0]]),Zs(e,st(t,1),[])}),Ai=Ld||function(){return at.Date.now()};function t0(e,t){if(typeof t!="function")throw new Nt(p);return e=he(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hu(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,ln(e,ce,r,r,r,r,t)}function ju(e,t){var n;if(typeof t!="function")throw new Nt(p);return e=he(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var No=me(function(e,t,n){var o=D;if(n.length){var s=wn(n,er(No));o|=X}return ln(e,o,t,n,s)}),Ku=me(function(e,t,n){var o=D|B;if(n.length){var s=wn(n,er(Ku));o|=X}return ln(t,o,e,n,s)});function qu(e,t,n){t=n?r:t;var o=ln(e,Z,r,r,r,r,r,t);return o.placeholder=qu.placeholder,o}function Vu(e,t,n){t=n?r:t;var o=ln(e,N,r,r,r,r,r,t);return o.placeholder=Vu.placeholder,o}function Xu(e,t,n){var o,s,f,d,g,m,A=0,E=!1,O=!1,W=!0;if(typeof e!="function")throw new Nt(p);t=Yt(t)||0,He(n)&&(E=!!n.leading,O="maxWait"in n,f=O?et(Yt(n.maxWait)||0,t):f,W="trailing"in n?!!n.trailing:W);function V(Xe){var Vt=o,vn=s;return o=s=r,A=Xe,d=e.apply(vn,Vt),d}function te(Xe){return A=Xe,g=wr(we,t),E?V(Xe):d}function pe(Xe){var Vt=Xe-m,vn=Xe-A,gc=t-Vt;return O?ft(gc,f-vn):gc}function ne(Xe){var Vt=Xe-m,vn=Xe-A;return m===r||Vt>=t||Vt<0||O&&vn>=f}function we(){var Xe=Ai();if(ne(Xe))return Ce(Xe);g=wr(we,pe(Xe))}function Ce(Xe){return g=r,W&&o?V(Xe):(o=s=r,d)}function $t(){g!==r&&au(g),A=0,o=m=s=g=r}function vt(){return g===r?d:Ce(Ai())}function Mt(){var Xe=Ai(),Vt=ne(Xe);if(o=arguments,s=this,m=Xe,Vt){if(g===r)return te(m);if(O)return au(g),g=wr(we,t),V(m)}return g===r&&(g=wr(we,t)),d}return Mt.cancel=$t,Mt.flush=vt,Mt}var n0=me(function(e,t){return Bs(e,1,t)}),r0=me(function(e,t,n){return Bs(e,Yt(t)||0,n)});function i0(e){return ln(e,$e)}function Ei(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Nt(p);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],f=n.cache;if(f.has(s))return f.get(s);var d=e.apply(this,o);return n.cache=f.set(s,d)||f,d};return n.cache=new(Ei.Cache||cn),n}Ei.Cache=cn;function Ri(e){if(typeof e!="function")throw new Nt(p);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function o0(e){return ju(2,e)}var a0=jh(function(e,t){t=t.length==1&&de(t[0])?Ye(t[0],Ot(ee())):Ye(st(t,1),Ot(ee()));var n=t.length;return me(function(o){for(var s=-1,f=ft(o.length,n);++s=t}),Nn=Gs(function(){return arguments}())?Gs:function(e){return je(e)&&Me.call(e,"callee")&&!Ps.call(e,"callee")},de=w.isArray,x0=ls?Ot(ls):Oh;function St(e){return e!=null&&Ti(e.length)&&!pn(e)}function Ve(e){return je(e)&&St(e)}function b0(e){return e===!0||e===!1||je(e)&&pt(e)==$}var En=Dd||Xo,S0=ds?Ot(ds):Ph;function C0(e){return je(e)&&e.nodeType===1&&!xr(e)}function A0(e){if(e==null)return!0;if(St(e)&&(de(e)||typeof e=="string"||typeof e.splice=="function"||En(e)||tr(e)||Nn(e)))return!e.length;var t=lt(e);if(t==q||t==rt)return!e.size;if(yr(e))return!po(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0}function E0(e,t){return vr(e,t)}function R0(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?vr(e,t,r,n):!!o}function Wo(e){if(!je(e))return!1;var t=pt(e);return t==j||t==ge||typeof e.message=="string"&&typeof e.name=="string"&&!xr(e)}function T0(e){return typeof e=="number"&&$s(e)}function pn(e){if(!He(e))return!1;var t=pt(e);return t==b||t==Pe||t==ve||t==rn}function Ju(e){return typeof e=="number"&&e==he(e)}function Ti(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=se}function He(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function je(e){return e!=null&&typeof e=="object"}var Qu=hs?Ot(hs):$h;function O0(e,t){return e===t||ho(e,t,Po(t))}function P0(e,t,n){return n=typeof n=="function"?n:r,ho(e,t,Po(t),n)}function I0(e){return ec(e)&&e!=+e}function $0(e){if(gp(e))throw new ue(h);return Hs(e)}function M0(e){return e===null}function L0(e){return e==null}function ec(e){return typeof e=="number"||je(e)&&pt(e)==ie}function xr(e){if(!je(e)||pt(e)!=le)return!1;var t=ti(e);if(t===null)return!0;var n=Me.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zr.call(n)==Pd}var Uo=ps?Ot(ps):Mh;function k0(e){return Ju(e)&&e>=-se&&e<=se}var tc=gs?Ot(gs):Lh;function Oi(e){return typeof e=="string"||!de(e)&&je(e)&&pt(e)==Rt}function It(e){return typeof e=="symbol"||je(e)&&pt(e)==it}var tr=vs?Ot(vs):kh;function D0(e){return e===r}function F0(e){return je(e)&<(e)==Le}function N0(e){return je(e)&&pt(e)==Wn}var B0=yi(go),W0=yi(function(e,t){return e<=t});function nc(e){if(!e)return[];if(St(e))return Oi(e)?jt(e):bt(e);if(ur&&e[ur])return _d(e[ur]());var t=lt(e),n=t==q?to:t==rt?qr:nr;return n(e)}function gn(e){if(!e)return e===0?e:0;if(e=Yt(e),e===ae||e===-ae){var t=e<0?-1:1;return t*Re}return e===e?e:0}function he(e){var t=gn(e),n=t%1;return t===t?n?t-n:t:0}function rc(e){return e?Ln(he(e),0,_e):0}function Yt(e){if(typeof e=="number")return e;if(It(e))return xe;if(He(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=He(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bs(e);var n=Je.test(e);return n||kt.test(e)?td(e.slice(2),n?2:8):tt.test(e)?xe:+e}function ic(e){return en(e,Ct(e))}function U0(e){return e?Ln(he(e),-se,se):e===0?e:0}function Ie(e){return e==null?"":Pt(e)}var z0=Jn(function(e,t){if(yr(t)||St(t)){en(t,nt(t),e);return}for(var n in t)Me.call(t,n)&&hr(e,n,t[n])}),oc=Jn(function(e,t){en(t,Ct(t),e)}),Pi=Jn(function(e,t,n,o){en(t,Ct(t),e,o)}),Y0=Jn(function(e,t,n,o){en(t,nt(t),e,o)}),G0=dn(so);function H0(e,t){var n=Zn(e);return t==null?n:Fs(n,t)}var j0=me(function(e,t){e=De(e);var n=-1,o=t.length,s=o>2?t[2]:r;for(s&>(t[0],t[1],s)&&(o=1);++n1),f}),en(e,To(e),n),o&&(n=Wt(n,P|k|H,rp));for(var s=t.length;s--;)wo(n,t[s]);return n});function f1(e,t){return sc(e,Ri(ee(t)))}var l1=dn(function(e,t){return e==null?{}:Nh(e,t)});function sc(e,t){if(e==null)return{};var n=Ye(To(e),function(o){return[o]});return t=ee(t),Js(e,n,function(o,s){return t(o,s[0])})}function d1(e,t,n){t=Cn(t,e);var o=-1,s=t.length;for(s||(s=1,e=r);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var s=Ms();return ft(e+s*(t-e+ed("1e-"+((s+"").length-1))),t)}return mo(e,t)}var S1=Qn(function(e,t,n){return t=t.toLowerCase(),e+(n?fc(t):t)});function fc(e){return Go(Ie(e).toLowerCase())}function lc(e){return e=Ie(e),e&&e.replace(Tn,hd).replace(Gl,"")}function C1(e,t,n){e=Ie(e),t=Pt(t);var o=e.length;n=n===r?o:Ln(he(n),0,o);var s=n;return n-=t.length,n>=0&&e.slice(n,s)==t}function A1(e){return e=Ie(e),e&&ya.test(e)?e.replace(zr,pd):e}function E1(e){return e=Ie(e),e&&Sa.test(e)?e.replace(Yr,"\\$&"):e}var R1=Qn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),T1=Qn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),O1=pu("toLowerCase");function P1(e,t,n){e=Ie(e),t=he(t);var o=t?jn(e):0;if(!t||o>=t)return e;var s=(t-o)/2;return _i(oi(s),n)+e+_i(ii(s),n)}function I1(e,t,n){e=Ie(e),t=he(t);var o=t?jn(e):0;return t&&o>>0,n?(e=Ie(e),e&&(typeof t=="string"||t!=null&&!Uo(t))&&(t=Pt(t),!t&&Hn(e))?An(jt(e),0,n):e.split(t,n)):[]}var N1=Qn(function(e,t,n){return e+(n?" ":"")+Go(t)});function B1(e,t,n){return e=Ie(e),n=n==null?0:Ln(he(n),0,e.length),t=Pt(t),e.slice(n,n+t.length)==t}function W1(e,t,n){var o=c.templateSettings;n&>(e,t,n)&&(t=r),e=Ie(e),t=Pi({},t,o,xu);var s=Pi({},t.imports,o.imports,xu),f=nt(s),d=eo(s,f),g,m,A=0,E=t.interpolate||On,O="__p += '",W=no((t.escape||On).source+"|"+E.source+"|"+(E===Bi?ot:On).source+"|"+(t.evaluate||On).source+"|$","g"),V="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vl+"]")+` +`;e.replace(W,function(ne,we,Ce,$t,vt,Mt){return Ce||(Ce=$t),O+=e.slice(A,Mt).replace(Ca,gd),we&&(g=!0,O+=`' + +__e(`+we+`) + +'`),vt&&(m=!0,O+=`'; +`+vt+`; +__p += '`),Ce&&(O+=`' + +((__t = (`+Ce+`)) == null ? '' : __t) + +'`),A=Mt+ne.length,ne}),O+=`'; +`;var te=Me.call(t,"variable")&&t.variable;if(!te)O=`with (obj) { +`+O+` +} +`;else if(ye.test(te))throw new ue(y);O=(m?O.replace(Ba,""):O).replace(Fi,"$1").replace(_a,"$1;"),O="function("+(te||"obj")+`) { +`+(te?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(m?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+O+`return __p +}`;var pe=hc(function(){return Oe(f,V+"return "+O).apply(r,d)});if(pe.source=O,Wo(pe))throw pe;return pe}function U1(e){return Ie(e).toLowerCase()}function z1(e){return Ie(e).toUpperCase()}function Y1(e,t,n){if(e=Ie(e),e&&(n||t===r))return bs(e);if(!e||!(t=Pt(t)))return e;var o=jt(e),s=jt(t),f=Ss(o,s),d=Cs(o,s)+1;return An(o,f,d).join("")}function G1(e,t,n){if(e=Ie(e),e&&(n||t===r))return e.slice(0,Es(e)+1);if(!e||!(t=Pt(t)))return e;var o=jt(e),s=Cs(o,jt(t))+1;return An(o,0,s).join("")}function H1(e,t,n){if(e=Ie(e),e&&(n||t===r))return e.replace(Gr,"");if(!e||!(t=Pt(t)))return e;var o=jt(e),s=Ss(o,jt(t));return An(o,s).join("")}function j1(e,t){var n=Ee,o=Ze;if(He(t)){var s="separator"in t?t.separator:s;n="length"in t?he(t.length):n,o="omission"in t?Pt(t.omission):o}e=Ie(e);var f=e.length;if(Hn(e)){var d=jt(e);f=d.length}if(n>=f)return e;var g=n-jn(o);if(g<1)return o;var m=d?An(d,0,g).join(""):e.slice(0,g);if(s===r)return m+o;if(d&&(g+=m.length-g),Uo(s)){if(e.slice(g).search(s)){var A,E=m;for(s.global||(s=no(s.source,Ie(ct.exec(s))+"g")),s.lastIndex=0;A=s.exec(E);)var O=A.index;m=m.slice(0,O===r?g:O)}}else if(e.indexOf(Pt(s),g)!=g){var W=m.lastIndexOf(s);W>-1&&(m=m.slice(0,W))}return m+o}function K1(e){return e=Ie(e),e&&Ni.test(e)?e.replace(rr,bd):e}var q1=Qn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Go=pu("toUpperCase");function dc(e,t,n){return e=Ie(e),t=n?r:t,t===r?md(e)?Ad(e):ud(e):e.match(t)||[]}var hc=me(function(e,t){try{return Tt(e,r,t)}catch(n){return Wo(n)?n:new ue(n)}}),V1=dn(function(e,t){return Ft(t,function(n){n=tn(n),fn(e,n,No(e[n],e))}),e});function X1(e){var t=e==null?0:e.length,n=ee();return e=t?Ye(e,function(o){if(typeof o[1]!="function")throw new Nt(p);return[n(o[0]),o[1]]}):[],me(function(o){for(var s=-1;++sse)return[];var n=_e,o=ft(e,_e);t=ee(t),e-=_e;for(var s=Qi(o,t);++n0||t<0)?new be(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=he(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(_e)},Qt(be.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),s=c[o?"take"+(t=="last"?"Right":""):t],f=o||/^find/.test(t);!s||(c.prototype[t]=function(){var d=this.__wrapped__,g=o?[1]:arguments,m=d instanceof be,A=g[0],E=m||de(d),O=function(we){var Ce=s.apply(c,yn([we],g));return o&&W?Ce[0]:Ce};E&&n&&typeof A=="function"&&A.length!=1&&(m=E=!1);var W=this.__chain__,V=!!this.__actions__.length,te=f&&!W,pe=m&&!V;if(!f&&E){d=pe?d:new be(this);var ne=e.apply(d,g);return ne.__actions__.push({func:Si,args:[O],thisArg:r}),new Bt(ne,W)}return te&&pe?e.apply(this,g):(ne=this.thru(O),te?o?ne.value()[0]:ne.value():ne)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var s=arguments;if(o&&!this.__chain__){var f=this.value();return t.apply(de(f)?f:[],s)}return this[n](function(d){return t.apply(de(d)?d:[],s)})}}),Qt(be.prototype,function(e,t){var n=c[t];if(n){var o=n.name+"";Me.call(Xn,o)||(Xn[o]=[]),Xn[o].push({name:t,func:n})}}),Xn[vi(r,B).name]=[{name:"wrapper",func:r}],be.prototype.clone=Kd,be.prototype.reverse=qd,be.prototype.value=Vd,c.prototype.at=Cg,c.prototype.chain=Ag,c.prototype.commit=Eg,c.prototype.next=Rg,c.prototype.plant=Og,c.prototype.reverse=Pg,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Ig,c.prototype.first=c.prototype.head,ur&&(c.prototype[ur]=Tg),c},Kn=Ed();Pn?((Pn.exports=Kn)._=Kn,Hi._=Kn):at._=Kn}).call(on)})(Lv,Lv.exports);const Ey=window.React;window.React.Component;const Ry=window.__foc__.ErrorBoundary;function Ty({component:i,props:a}){return Q.exports.jsx(Ry,{disableReset:!0,children:Ey.createElement(i,a)})}function Oy(i){return a=>Q.exports.jsx(Ty,{component:i,props:a})}var _c={exports:{}},Et={};/** @license React v17.0.2 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){var i=60103,a=60106,r=60107,u=60108,l=60114,h=60109,p=60110,y=60112,x=60113,C=60120,T=60115,P=60116,k=60121,H=60122,M=60117,I=60129,D=60131;if(typeof Symbol=="function"&&Symbol.for){var B=Symbol.for;i=B("react.element"),a=B("react.portal"),r=B("react.fragment"),u=B("react.strict_mode"),l=B("react.profiler"),h=B("react.provider"),p=B("react.context"),y=B("react.forward_ref"),x=B("react.suspense"),C=B("react.suspense_list"),T=B("react.memo"),P=B("react.lazy"),k=B("react.block"),H=B("react.server.block"),M=B("react.fundamental"),B("react.scope"),B("react.opaque.id"),I=B("react.debug_trace_mode"),B("react.offscreen"),D=B("react.legacy_hidden")}var z=!1;function Z(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===l||j===I||j===u||j===x||j===C||j===D||z||typeof j=="object"&&j!==null&&(j.$$typeof===P||j.$$typeof===T||j.$$typeof===h||j.$$typeof===p||j.$$typeof===y||j.$$typeof===M||j.$$typeof===k||j[0]===H))}function N(j){if(typeof j=="object"&&j!==null){var b=j.$$typeof;switch(b){case i:var Pe=j.type;switch(Pe){case r:case l:case u:case x:case C:return Pe;default:var q=Pe&&Pe.$$typeof;switch(q){case p:case y:case P:case T:case h:return q;default:return b}}case a:return b}}}var X=p,Ae=h,ce=i,ke=y,$e=r,Ee=P,Ze=T,Ue=a,Y=l,J=u,fe=x,Te=!1,ae=!1;function se(j){return Te||(Te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Re(j){return ae||(ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function xe(j){return N(j)===p}function _e(j){return N(j)===h}function F(j){return typeof j=="object"&&j!==null&&j.$$typeof===i}function L(j){return N(j)===y}function U(j){return N(j)===r}function K(j){return N(j)===P}function _(j){return N(j)===T}function ve(j){return N(j)===a}function $(j){return N(j)===l}function Se(j){return N(j)===u}function ge(j){return N(j)===x}Et.ContextConsumer=X,Et.ContextProvider=Ae,Et.Element=ce,Et.ForwardRef=ke,Et.Fragment=$e,Et.Lazy=Ee,Et.Memo=Ze,Et.Portal=Ue,Et.Profiler=Y,Et.StrictMode=J,Et.Suspense=fe,Et.isAsyncMode=se,Et.isConcurrentMode=Re,Et.isContextConsumer=xe,Et.isContextProvider=_e,Et.isElement=F,Et.isForwardRef=L,Et.isFragment=U,Et.isLazy=K,Et.isMemo=_,Et.isPortal=ve,Et.isProfiler=$,Et.isStrictMode=Se,Et.isSuspense=ge,Et.isValidElementType=Z,Et.typeOf=N})(),function(i){i.exports=Et}(_c);function Py(i){function a(F,L,U,K,_){for(var ve=0,$=0,Se=0,ge=0,j,b,Pe=0,q=0,ie,Ge=ie=j=0,le=0,Ke=0,rn=0,ze=0,rt=U.length,Rt=rt-1,it,oe="",Le="",Wn="",Lt="",ut;lej)&&(ze=(oe=oe.replace(" ",":")).length),0K&&(K=(L=L.trim()).charCodeAt(0)),K){case 38:return L.replace(B,"$1"+F.trim());case 58:return F.trim()+L.replace(B,"$1"+F.trim());default:if(0<1*U&&0$.charCodeAt(8))break;case 115:_=_.replace($,"-webkit-"+$)+";"+_;break;case 207:case 102:_=_.replace($,"-webkit-"+(102U.charCodeAt(0)&&(U=U.trim()),_e=U,U=[_e],0 ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object. + +`,9:"Missing document ``\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 + +`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. + +`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. + +`,14:`ThemeProvider: "theme" prop is required. + +`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to ``, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s. +You may only create up to 1,073,741,824 components. If you're creating components dynamically, +as for instance in your render method then you may be running into this limitation. + +`,17:`CSSStyleSheet could not be found on HTMLStyleElement. +Has styled-components' style tag been unmounted or altered by another script? +`};function jy(){for(var i=arguments.length<=0?void 0:arguments[0],a=[],r=1,u=arguments.length;r1?a-1:0),u=1;u=this.groupSizes.length){for(var l=this.groupSizes,h=l.length,p=h;r>=p;)(p<<=1)<0&&Jo(16,""+r);this.groupSizes=new Uint32Array(p),this.groupSizes.set(l),this.length=p;for(var y=h;y=this.length||this.groupSizes[r]===0)return u;for(var l=this.groupSizes[r],h=this.indexOfGroup(r),p=h+l,y=h;y1<<30)&&Jo(16,""+a),bc.set(i,a),Sc.set(a,i),a},qy=function(i){return Sc.get(i)},Vy=function(i,a){a>=Aa&&(Aa=a+1),bc.set(i,a),Sc.set(a,i)},Xy="style["+Zo+'][data-styled-version="5.3.5"]',Zy=new RegExp("^"+Zo+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Jy=function(i,a,r){for(var u,l=r.split(","),h=0,p=l.length;h=0;C--){var T=x[C];if(T&&T.nodeType===1&&T.hasAttribute(Zo))return T}}(r),h=l!==void 0?l.nextSibling:null;u.setAttribute(Zo,"active"),u.setAttribute("data-styled-version","5.3.5");var p=ew();return p&&u.setAttribute("nonce",p),r.insertBefore(u,h),u},tw=function(){function i(r){var u=this.element=Hv(r);u.appendChild(document.createTextNode("")),this.sheet=function(l){if(l.sheet)return l.sheet;for(var h=document.styleSheets,p=0,y=h.length;p=0){var l=document.createTextNode(u),h=this.nodes[r];return this.element.insertBefore(l,h||null),this.length++,!0}return!1},a.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},a.getRule=function(r){return r0&&(P+=k+",")}),h+=""+C+T+'{content:"'+P+`"}/*!sc*/ +`}}}return h}(this)},i}(),ow=/(a)(d)/gi,qv=function(i){return String.fromCharCode(i+(i>25?39:97))};function vf(i){var a,r="";for(a=Math.abs(i);a>52;a=a/52|0)r=qv(a%52)+r;return(qv(a%52)+r).replace(ow,"$1-$2")}var Li=function(i,a){for(var r=a.length;r;)i=33*i^a.charCodeAt(--r);return i},Vv=function(i){return Li(5381,i)},aw=Vv("5.3.5"),sw=function(){function i(a,r,u){this.rules=a,this.staticRulesId="",this.isStatic=!1,this.componentId=r,this.baseHash=Li(aw,r),this.baseStyle=u,Kv.registerId(r)}return i.prototype.generateAndInjectStyles=function(a,r,u){var l=this.componentId,h=[];if(this.baseStyle&&h.push(this.baseStyle.generateAndInjectStyles(a,r,u)),this.isStatic&&!u.hash)if(this.staticRulesId&&r.hasNameForId(l,this.staticRulesId))h.push(this.staticRulesId);else{var p=Qo(this.rules,a,r,u).join(""),y=vf(Li(this.baseHash,p)>>>0);if(!r.hasNameForId(l,y)){var x=u(p,"."+y,void 0,l);r.insertRules(l,y,x)}h.push(y),this.staticRulesId=y}else{for(var C=this.rules.length,T=Li(this.baseHash,u.hash),P="",k=0;k>>0);if(!r.hasNameForId(l,D)){var B=u(P,"."+D,void 0,l);r.insertRules(l,D,B)}h.push(D)}}return h.join(" ")},i}(),uw=/^\s*\/\/.*$/gm,cw=[":","[",".","#"];function fw(i){var a,r,u,l,h=i===void 0?Ii:i,p=h.options,y=p===void 0?Ii:p,x=h.plugins,C=x===void 0?wc:x,T=new Py(y),P=[],k=function(I){function D(B){if(B)try{I(B+"}")}catch{}}return function(B,z,Z,N,X,Ae,ce,ke,$e,Ee){switch(B){case 1:if($e===0&&z.charCodeAt(0)===64)return I(z+";"),"";break;case 2:if(ke===0)return z+"/*|*/";break;case 3:switch(ke){case 102:case 112:return I(Z[0]+z),"";default:return z+(Ee===0?"/*|*/":"")}case-2:z.split("/*|*/}").forEach(D)}}}(function(I){P.push(I)}),H=function(I,D,B){return D===0&&cw.indexOf(B[r.length])!==-1||B.match(l)?I:"."+a};function M(I,D,B,z){z===void 0&&(z="&");var Z=I.replace(uw,""),N=D&&B?B+" "+D+" { "+Z+" }":Z;return a=z,r=D,u=new RegExp("\\"+r+"\\b","g"),l=new RegExp("(\\"+r+"\\b){2,}"),T(B||!D?"":D,N)}return T.use([].concat(C,[function(I,D,B){I===2&&B.length&&B[0].lastIndexOf(r)>0&&(B[0]=B[0].replace(u,H))},k,function(I){if(I===-2){var D=P;return P=[],D}}])),M.hash=C.length?C.reduce(function(I,D){return D.name||Jo(15),Li(I,D.name)},5381).toString():"",M}var Xv=yc.createContext();Xv.Consumer;var Zv=yc.createContext(),lw=(Zv.Consumer,new Kv),mf=fw();function dw(){return df(Xv)||lw}function hw(){return df(Zv)||mf}var pw=function(){function i(a,r){var u=this;this.inject=function(l,h){h===void 0&&(h=mf);var p=u.name+h.hash;l.hasNameForId(u.id,p)||l.insertRules(u.id,p,h(u.rules,p,"@keyframes"))},this.toString=function(){return Jo(12,String(u.name))},this.name=a,this.id="sc-keyframes-"+a,this.rules=r}return i.prototype.getName=function(a){return a===void 0&&(a=mf),this.name+a.hash},i}(),gw=/([A-Z])/,vw=/([A-Z])/g,mw=/^ms-/,_w=function(i){return"-"+i.toLowerCase()};function Jv(i){return gw.test(i)?i.replace(vw,_w).replace(mw,"-ms-"):i}var Qv=function(i){return i==null||i===!1||i===""};function Qo(i,a,r,u){if(Array.isArray(i)){for(var l,h=[],p=0,y=i.length;p1?a-1:0),u=1;u1?p-1:0),x=1;x?@[\\\]^`{|}~-]+/g,Sw=/(^-|-$)/g;function _f(i){return i.replace(bw,"-").replace(Sw,"")}var Cw=function(i){return vf(Vv(i)>>>0)};function Ec(i){return typeof i=="string"&&i.charAt(0)===i.charAt(0).toLowerCase()}var yf=function(i){return typeof i=="function"||typeof i=="object"&&i!==null&&!Array.isArray(i)},Aw=function(i){return i!=="__proto__"&&i!=="constructor"&&i!=="prototype"};function Ew(i,a,r){var u=i[r];yf(a)&&yf(u)?nm(u,a):i[r]=a}function nm(i){for(var a=arguments.length,r=new Array(a>1?a-1:0),u=1;u=0||(Ee[ke]=Ae[ke]);return Ee}(a,["componentId"]),X=Z&&Z+"-"+(Ec(z)?z:_f(pf(z)));return im(z,$r({},N,{attrs:k,componentId:X}),r)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=u?nm({},i.defaultProps,z):z}}),ww(T,P),M.warnTooManyClasses=function(z,Z){var N={},X=!1;return function(Ae){if(!X&&(N[Ae]=!0,Object.keys(N).length>=200)){var ce=Z?' with the id of "'+Z+'"':"";console.warn("Over 200 classes were generated for component "+z+ce+`. +Consider using the attrs method, together with a style object for frequently changed styles. +Example: + const Component = styled.div.attrs(props => ({ + style: { + background: props.background, + }, + }))\`width: 100%;\` + + `),X=!0,N={}}}}(T,P),M.toString=function(){return"."+M.styledComponentId},l&&Uy(M,i,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var xf=function(i){return function a(r,u,l){if(l===void 0&&(l=Ii),!_c.exports.isValidElementType(u))return Jo(1,String(u));var h=function(){return r(u,l,yw.apply(void 0,arguments))};return h.withConfig=function(p){return a(r,u,$r({},l,{},p))},h.attrs=function(p){return a(r,u,$r({},l,{attrs:Array.prototype.concat(l.attrs,p).filter(Boolean)}))},h}(im,i)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(i){xf[i]=xf(i)}),typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. +Perhaps you're looking to import 'styled-components/native'? +Read more about this at https://www.styled-components.com/docs/basics#react-native`),typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason. + +See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const Rw=xf,Tw=window.__foc__,Ow=window.__foo__,Pw=window.__fos__,Iw=window.__fou__,$w=window.__mui__,Mw=window.React,Lw=window.ReactDOM,kw=window.recoil;typeof window<"u"&&(window.React=Mw,window.ReactDOM=Lw,window.recoil=kw,window.__fos__=Pw,window.__foc__=Tw,window.__fou__=Iw,window.__foo__=Ow,window.__mui__=$w,window.__styled__=Rw),window.__fou__.getFetchFunction,window.__fou__.getFetchOrigin,window.React.useEffect,window.React.useMemo,window.React.useState;function Dw(){return window.__fo_plugin_registry__||(window.__fo_plugin_registry__=new Ww),window.__fo_plugin_registry__}function Fw(i){i.activator||(i.activator=()=>!0),Dw().register(i)}var om=(i=>(i[i.Visualizer=0]="Visualizer",i[i.Plot=1]="Plot",i[i.Panel=2]="Panel",i[i.Component=3]="Component",i))(om||{});const Nw=()=>!0;function am(i,a,r=!1){const u=i===!1||i===null||i===void 0;if(u&&r)console.warn(a);else if(u)throw new Error(a)}function sm(i,a){am(i,a,!0)}const Bw=["name","type","component"];class Ww{constructor(){vc(this,"data",new Map);vc(this,"pluginDefinitions",new Map);vc(this,"scripts",new Set)}registerScript(a){this.scripts.add(a)}registerPluginDefinition(a){this.pluginDefinitions.set(a.name,a)}getPluginDefinition(a){return this.pluginDefinitions.get(a)}hasScript(a){return this.scripts.has(a)}register(a){const{name:r}=a;typeof a.activator!="function"&&(a.activator=Nw);for(let l of Bw)am(a[l],`${l} is required to register a Plugin Component`);sm(!this.data.has(r),`${r} is already a registered Plugin Component`),sm(a.type!==1,`${r} is a Plot Plugin Component. This is deprecated. Please use "Panel" instead.`);const u={...a,component:Oy(a.component)};this.data.set(r,u)}unregister(a){return this.data.delete(a)}getByType(a){const r=[];for(const u of this.data.values())u.type===a&&r.push(u);return r}clear(){this.data.clear()}}var Rc={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(i,a){(function(){var r,u="4.17.21",l=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",y="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",C=500,T="__lodash_placeholder__",P=1,k=2,H=4,M=1,I=2,D=1,B=2,z=4,Z=8,N=16,X=32,Ae=64,ce=128,ke=256,$e=512,Ee=30,Ze="...",Ue=800,Y=16,J=1,fe=2,Te=3,ae=1/0,se=9007199254740991,Re=17976931348623157e292,xe=0/0,_e=4294967295,F=_e-1,L=_e>>>1,U=[["ary",ce],["bind",D],["bindKey",B],["curry",Z],["curryRight",N],["flip",$e],["partial",X],["partialRight",Ae],["rearg",ke]],K="[object Arguments]",_="[object Array]",ve="[object AsyncFunction]",$="[object Boolean]",Se="[object Date]",ge="[object DOMException]",j="[object Error]",b="[object Function]",Pe="[object GeneratorFunction]",q="[object Map]",ie="[object Number]",Ge="[object Null]",le="[object Object]",Ke="[object Promise]",rn="[object Proxy]",ze="[object RegExp]",rt="[object Set]",Rt="[object String]",it="[object Symbol]",oe="[object Undefined]",Le="[object WeakMap]",Wn="[object WeakSet]",Lt="[object ArrayBuffer]",ut="[object DataView]",Or="[object Float32Array]",Pr="[object Float64Array]",ar="[object Int8Array]",Dr="[object Int16Array]",Fr="[object Int32Array]",Nr="[object Uint8Array]",Br="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Ur="[object Uint32Array]",Ba=/\b__p \+= '';/g,Fi=/\b(__p \+=) '' \+/g,_a=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,zr=/[&<>"']/g,Ni=RegExp(rr.source),ya=RegExp(zr.source),Wa=/<%-([\s\S]+?)%>/g,wa=/<%([\s\S]+?)%>/g,Bi=/<%=([\s\S]+?)%>/g,xa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ba=/^\w*$/,Ua=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yr=/[\\^$.*+?()[\]{}|]/g,Sa=RegExp(Yr.source),Gr=/^\s+/,za=/\s/,Ya=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ga=/\{\n\/\* \[wrapped with (.+)\] \*/,R=/,? & /,re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,Be=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,an=/^\[object .+?Constructor\]$/,kt=/^0o[0-7]+$/i,Ht=/^(?:0|[1-9]\d*)$/,Tn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,On=/($^)/,Ca=/['\n\r\u2028\u2029\\]/g,sn="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Tl="\\ufe20-\\ufe2f",Ol="\\u20d0-\\u20ff",Ha=Rl+Tl+Ol,ja="\\u2700-\\u27bf",Ka="a-z\\xdf-\\xf6\\xf8-\\xff",Pl="\\xac\\xb1\\xd7\\xf7",Il="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$l="\\u2000-\\u206f",Ml=" \\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",qa="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",Xa=Pl+Il+$l+Ml,Wi="['\u2019]",Ll="["+sn+"]",Za="["+Xa+"]",Hr="["+Ha+"]",Ja="\\d+",kl="["+ja+"]",Qa="["+Ka+"]",es="[^"+sn+Xa+Ja+ja+Ka+qa+"]",Ui="\\ud83c[\\udffb-\\udfff]",Dl="(?:"+Hr+"|"+Ui+")",ts="[^"+sn+"]",zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",Yn="["+qa+"]",ns="\\u200d",rs="(?:"+Qa+"|"+es+")",Fl="(?:"+Yn+"|"+es+")",is="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",os="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",as=Dl+"?",ss="["+Va+"]?",Nl="(?:"+ns+"(?:"+[ts,zi,Yi].join("|")+")"+ss+as+")*",Bl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",us=ss+as+Nl,Ul="(?:"+[kl,zi,Yi].join("|")+")"+us,zl="(?:"+[ts+Hr+"?",Hr,zi,Yi,Ll].join("|")+")",Yl=RegExp(Wi,"g"),Gl=RegExp(Hr,"g"),Gi=RegExp(Ui+"(?="+Ui+")|"+zl+us,"g"),Hl=RegExp([Yn+"?"+Qa+"+"+is+"(?="+[Za,Yn,"$"].join("|")+")",Fl+"+"+os+"(?="+[Za,Yn+rs,"$"].join("|")+")",Yn+"?"+rs+"+"+is,Yn+"+"+os,Wl,Bl,Ja,Ul].join("|"),"g"),jl=RegExp("["+ns+sn+Ha+Va+"]"),Kl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ql=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vl=-1,Ne={};Ne[Or]=Ne[Pr]=Ne[ar]=Ne[Dr]=Ne[Fr]=Ne[Nr]=Ne[Br]=Ne[Wr]=Ne[Ur]=!0,Ne[K]=Ne[_]=Ne[Lt]=Ne[$]=Ne[ut]=Ne[Se]=Ne[j]=Ne[b]=Ne[q]=Ne[ie]=Ne[le]=Ne[ze]=Ne[rt]=Ne[Rt]=Ne[Le]=!1;var Fe={};Fe[K]=Fe[_]=Fe[Lt]=Fe[ut]=Fe[$]=Fe[Se]=Fe[Or]=Fe[Pr]=Fe[ar]=Fe[Dr]=Fe[Fr]=Fe[q]=Fe[ie]=Fe[le]=Fe[ze]=Fe[rt]=Fe[Rt]=Fe[it]=Fe[Nr]=Fe[Br]=Fe[Wr]=Fe[Ur]=!0,Fe[j]=Fe[b]=Fe[Le]=!1;var Xl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Jl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ql={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ed=parseFloat,td=parseInt,cs=typeof on=="object"&&on&&on.Object===Object&&on,nd=typeof self=="object"&&self&&self.Object===Object&&self,at=cs||nd||Function("return this")(),Hi=a&&!a.nodeType&&a,Pn=Hi&&!0&&i&&!i.nodeType&&i,fs=Pn&&Pn.exports===Hi,ji=fs&&cs.process,Dt=function(){try{var v=Pn&&Pn.require&&Pn.require("util").types;return v||ji&&ji.binding&&ji.binding("util")}catch{}}(),ls=Dt&&Dt.isArrayBuffer,ds=Dt&&Dt.isDate,hs=Dt&&Dt.isMap,ps=Dt&&Dt.isRegExp,gs=Dt&&Dt.isSet,vs=Dt&&Dt.isTypedArray;function Tt(v,S,w){switch(w.length){case 0:return v.call(S);case 1:return v.call(S,w[0]);case 2:return v.call(S,w[0],w[1]);case 3:return v.call(S,w[0],w[1],w[2])}return v.apply(S,w)}function rd(v,S,w,G){for(var ue=-1,Oe=v==null?0:v.length;++ue-1}function Ki(v,S,w){for(var G=-1,ue=v==null?0:v.length;++G-1;);return w}function Cs(v,S){for(var w=v.length;w--&&Gn(S,v[w],0)>-1;);return w}function dd(v,S){for(var w=v.length,G=0;w--;)v[w]===S&&++G;return G}var hd=Zi(Xl),pd=Zi(Zl);function gd(v){return"\\"+Ql[v]}function vd(v,S){return v==null?r:v[S]}function Hn(v){return jl.test(v)}function md(v){return Kl.test(v)}function _d(v){for(var S,w=[];!(S=v.next()).done;)w.push(S.value);return w}function to(v){var S=-1,w=Array(v.size);return v.forEach(function(G,ue){w[++S]=[ue,G]}),w}function As(v,S){return function(w){return v(S(w))}}function wn(v,S){for(var w=-1,G=v.length,ue=0,Oe=[];++w-1}function oh(e,t){var n=this.__data__,o=ci(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}un.prototype.clear=th,un.prototype.delete=nh,un.prototype.get=rh,un.prototype.has=ih,un.prototype.set=oh;function cn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Wt(e,t,n,o,s,f){var d,g=t&P,m=t&k,A=t&H;if(n&&(d=s?n(e,o,s,f):n(e)),d!==r)return d;if(!He(e))return e;var E=de(e);if(E){if(d=cp(e),!g)return bt(e,d)}else{var O=lt(e),W=O==b||O==Pe;if(En(e))return su(e,g);if(O==le||O==K||W&&!s){if(d=m||W?{}:Eu(e),!g)return m?Jh(e,xh(d,e)):Zh(e,Fs(d,e))}else{if(!Fe[O])return s?e:{};d=fp(e,O,g)}}f||(f=new Kt);var V=f.get(e);if(V)return V;f.set(e,d),tc(e)?e.forEach(function(ne){d.add(Wt(ne,t,n,ne,e,f))}):Qu(e)&&e.forEach(function(ne,we){d.set(we,Wt(ne,t,n,we,e,f))});var te=A?m?To:Ro:m?Ct:nt,pe=E?r:te(e);return Ft(pe||e,function(ne,we){pe&&(we=ne,ne=e[we]),hr(d,we,Wt(ne,t,n,we,e,f))}),d}function bh(e){var t=nt(e);return function(n){return Ns(n,e,t)}}function Ns(e,t,n){var o=n.length;if(e==null)return!o;for(e=De(e);o--;){var s=n[o],f=t[s],d=e[s];if(d===r&&!(s in e)||!f(d))return!1}return!0}function Bs(e,t,n){if(typeof e!="function")throw new Nt(p);return wr(function(){e.apply(r,n)},t)}function pr(e,t,n,o){var s=-1,f=jr,d=!0,g=e.length,m=[],A=t.length;if(!g)return m;n&&(t=Ye(t,Ot(n))),o?(f=Ki,d=!1):t.length>=l&&(f=sr,d=!1,t=new Mn(t));e:for(;++ss?0:s+n),o=o===r||o>s?s:he(o),o<0&&(o+=s),o=n>o?0:rc(o);n0&&n(g)?t>1?st(g,t-1,n,o,s):yn(s,g):o||(s[s.length]=g)}return s}var uo=hu(),zs=hu(!0);function Qt(e,t){return e&&uo(e,t,nt)}function co(e,t){return e&&zs(e,t,nt)}function li(e,t){return _n(t,function(n){return pn(e[n])})}function kn(e,t){t=Cn(t,e);for(var n=0,o=t.length;e!=null&&nt}function Ah(e,t){return e!=null&&Me.call(e,t)}function Eh(e,t){return e!=null&&t in De(e)}function Rh(e,t,n){return e>=ft(t,n)&&e=120&&E.length>=120)?new Mn(d&&E):r}E=e[0];var O=-1,W=g[0];e:for(;++O-1;)g!==e&&ni.call(g,m,1),ni.call(e,m,1);return e}function Qs(e,t){for(var n=e?t.length:0,o=n-1;n--;){var s=t[n];if(n==o||s!==f){var f=s;hn(s)?ni.call(e,s,1):wo(e,s)}}return e}function mo(e,t){return e+oi(Ms()*(t-e+1))}function Wh(e,t,n,o){for(var s=-1,f=et(ii((t-e)/(n||1)),0),d=w(f);f--;)d[o?f:++s]=e,e+=n;return d}function _o(e,t){var n="";if(!e||t<1||t>se)return n;do t%2&&(n+=e),t=oi(t/2),t&&(e+=e);while(t);return n}function me(e,t){return ko(Ou(e,t,At),e+"")}function Uh(e){return Ds(nr(e))}function zh(e,t){var n=nr(e);return bi(n,Ln(t,0,n.length))}function mr(e,t,n,o){if(!He(e))return e;t=Cn(t,e);for(var s=-1,f=t.length,d=f-1,g=e;g!=null&&++ss?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var f=w(s);++o>>1,d=e[f];d!==null&&!It(d)&&(n?d<=t:d=l){var A=t?null:np(e);if(A)return qr(A);d=!1,s=sr,m=new Mn}else m=t?[]:g;e:for(;++o=o?e:Ut(e,t,n)}var au=Md||function(e){return at.clearTimeout(e)};function su(e,t){if(t)return e.slice();var n=e.length,o=Ts?Ts(n):new e.constructor(n);return e.copy(o),o}function Co(e){var t=new e.constructor(e.byteLength);return new ei(t).set(new ei(e)),t}function Kh(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qh(e){var t=new e.constructor(e.source,ct.exec(e));return t.lastIndex=e.lastIndex,t}function Vh(e){return dr?De(dr.call(e)):{}}function uu(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function cu(e,t){if(e!==t){var n=e!==r,o=e===null,s=e===e,f=It(e),d=t!==r,g=t===null,m=t===t,A=It(t);if(!g&&!A&&!f&&e>t||f&&d&&m&&!g&&!A||o&&d&&m||!n&&m||!s)return 1;if(!o&&!f&&!A&&e=g)return m;var A=n[o];return m*(A=="desc"?-1:1)}}return e.index-t.index}function fu(e,t,n,o){for(var s=-1,f=e.length,d=n.length,g=-1,m=t.length,A=et(f-d,0),E=w(m+A),O=!o;++g1?n[s-1]:r,d=s>2?n[2]:r;for(f=e.length>3&&typeof f=="function"?(s--,f):r,d&>(n[0],n[1],d)&&(f=s<3?r:f,s=1),t=De(t);++o-1?s[f?t[d]:d]:r}}function vu(e){return dn(function(t){var n=t.length,o=n,s=Bt.prototype.thru;for(e&&t.reverse();o--;){var f=t[o];if(typeof f!="function")throw new Nt(p);if(s&&!d&&wi(f)=="wrapper")var d=new Bt([],!0)}for(o=d?o:n;++o1&&Ce.reverse(),E&&mg))return!1;var A=f.get(e),E=f.get(t);if(A&&E)return A==t&&E==e;var O=-1,W=!0,V=n&I?new Mn:r;for(f.set(e,t),f.set(t,e);++O1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Ya,`{ +/* [wrapped with `+t+`] */ +`)}function dp(e){return de(e)||Nn(e)||!!(Is&&e&&e[Is])}function hn(e,t){var n=typeof e;return t=t==null?se:t,!!t&&(n=="number"||n!="symbol"&&Ht.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Ue)return arguments[0]}else t=0;return e.apply(r,arguments)}}function bi(e,t){var n=-1,o=e.length,s=o-1;for(t=t===r?o:t;++n1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Uu(e,n)});function zu(e){var t=c(e);return t.__chain__=!0,t}function Sg(e,t){return t(e),e}function Si(e,t){return t(e)}var Cg=dn(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,s=function(f){return so(f,e)};return t>1||this.__actions__.length||!(o instanceof be)||!hn(n)?this.thru(s):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Si,args:[s],thisArg:r}),new Bt(o,this.__chain__).thru(function(f){return t&&!f.length&&f.push(r),f}))});function Ag(){return zu(this)}function Eg(){return new Bt(this.value(),this.__chain__)}function Rg(){this.__values__===r&&(this.__values__=nc(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Tg(){return this}function Og(e){for(var t,n=this;n instanceof ui;){var o=ku(n);o.__index__=0,o.__values__=r,t?s.__wrapped__=o:t=o;var s=o;n=n.__wrapped__}return s.__wrapped__=e,t}function Pg(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),t=t.reverse(),t.__actions__.push({func:Si,args:[Do],thisArg:r}),new Bt(t,this.__chain__)}return this.thru(Do)}function Ig(){return iu(this.__wrapped__,this.__actions__)}var $g=gi(function(e,t,n){Me.call(e,n)?++e[n]:fn(e,n,1)});function Mg(e,t,n){var o=de(e)?ms:Sh;return n&>(e,t,n)&&(t=r),o(e,ee(t,3))}function Lg(e,t){var n=de(e)?_n:Us;return n(e,ee(t,3))}var kg=gu(Du),Dg=gu(Fu);function Fg(e,t){return st(Ci(e,t),1)}function Ng(e,t){return st(Ci(e,t),ae)}function Bg(e,t,n){return n=n===r?1:he(n),st(Ci(e,t),n)}function Yu(e,t){var n=de(e)?Ft:bn;return n(e,ee(t,3))}function Gu(e,t){var n=de(e)?id:Ws;return n(e,ee(t,3))}var Wg=gi(function(e,t,n){Me.call(e,n)?e[n].push(t):fn(e,n,[t])});function Ug(e,t,n,o){e=St(e)?e:nr(e),n=n&&!o?he(n):0;var s=e.length;return n<0&&(n=et(s+n,0)),Oi(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&Gn(e,t,n)>-1}var zg=me(function(e,t,n){var o=-1,s=typeof t=="function",f=St(e)?w(e.length):[];return bn(e,function(d){f[++o]=s?Tt(t,d,n):gr(d,t,n)}),f}),Yg=gi(function(e,t,n){fn(e,n,t)});function Ci(e,t){var n=de(e)?Ye:Ks;return n(e,ee(t,3))}function Gg(e,t,n,o){return e==null?[]:(de(t)||(t=t==null?[]:[t]),n=o?r:n,de(n)||(n=n==null?[]:[n]),Zs(e,t,n))}var Hg=gi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function jg(e,t,n){var o=de(e)?qi:xs,s=arguments.length<3;return o(e,ee(t,4),n,s,bn)}function Kg(e,t,n){var o=de(e)?od:xs,s=arguments.length<3;return o(e,ee(t,4),n,s,Ws)}function qg(e,t){var n=de(e)?_n:Us;return n(e,Ri(ee(t,3)))}function Vg(e){var t=de(e)?Ds:Uh;return t(e)}function Xg(e,t,n){(n?gt(e,t,n):t===r)?t=1:t=he(t);var o=de(e)?_h:zh;return o(e,t)}function Zg(e){var t=de(e)?yh:Gh;return t(e)}function Jg(e){if(e==null)return 0;if(St(e))return Oi(e)?jn(e):e.length;var t=lt(e);return t==q||t==rt?e.size:po(e).length}function Qg(e,t,n){var o=de(e)?Vi:Hh;return n&>(e,t,n)&&(t=r),o(e,ee(t,3))}var e0=me(function(e,t){if(e==null)return[];var n=t.length;return n>1&>(e,t[0],t[1])?t=[]:n>2&>(t[0],t[1],t[2])&&(t=[t[0]]),Zs(e,st(t,1),[])}),Ai=Ld||function(){return at.Date.now()};function t0(e,t){if(typeof t!="function")throw new Nt(p);return e=he(e),function(){if(--e<1)return t.apply(this,arguments)}}function Hu(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,ln(e,ce,r,r,r,r,t)}function ju(e,t){var n;if(typeof t!="function")throw new Nt(p);return e=he(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var No=me(function(e,t,n){var o=D;if(n.length){var s=wn(n,er(No));o|=X}return ln(e,o,t,n,s)}),Ku=me(function(e,t,n){var o=D|B;if(n.length){var s=wn(n,er(Ku));o|=X}return ln(t,o,e,n,s)});function qu(e,t,n){t=n?r:t;var o=ln(e,Z,r,r,r,r,r,t);return o.placeholder=qu.placeholder,o}function Vu(e,t,n){t=n?r:t;var o=ln(e,N,r,r,r,r,r,t);return o.placeholder=Vu.placeholder,o}function Xu(e,t,n){var o,s,f,d,g,m,A=0,E=!1,O=!1,W=!0;if(typeof e!="function")throw new Nt(p);t=Yt(t)||0,He(n)&&(E=!!n.leading,O="maxWait"in n,f=O?et(Yt(n.maxWait)||0,t):f,W="trailing"in n?!!n.trailing:W);function V(Xe){var Vt=o,vn=s;return o=s=r,A=Xe,d=e.apply(vn,Vt),d}function te(Xe){return A=Xe,g=wr(we,t),E?V(Xe):d}function pe(Xe){var Vt=Xe-m,vn=Xe-A,gc=t-Vt;return O?ft(gc,f-vn):gc}function ne(Xe){var Vt=Xe-m,vn=Xe-A;return m===r||Vt>=t||Vt<0||O&&vn>=f}function we(){var Xe=Ai();if(ne(Xe))return Ce(Xe);g=wr(we,pe(Xe))}function Ce(Xe){return g=r,W&&o?V(Xe):(o=s=r,d)}function $t(){g!==r&&au(g),A=0,o=m=s=g=r}function vt(){return g===r?d:Ce(Ai())}function Mt(){var Xe=Ai(),Vt=ne(Xe);if(o=arguments,s=this,m=Xe,Vt){if(g===r)return te(m);if(O)return au(g),g=wr(we,t),V(m)}return g===r&&(g=wr(we,t)),d}return Mt.cancel=$t,Mt.flush=vt,Mt}var n0=me(function(e,t){return Bs(e,1,t)}),r0=me(function(e,t,n){return Bs(e,Yt(t)||0,n)});function i0(e){return ln(e,$e)}function Ei(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Nt(p);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],f=n.cache;if(f.has(s))return f.get(s);var d=e.apply(this,o);return n.cache=f.set(s,d)||f,d};return n.cache=new(Ei.Cache||cn),n}Ei.Cache=cn;function Ri(e){if(typeof e!="function")throw new Nt(p);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function o0(e){return ju(2,e)}var a0=jh(function(e,t){t=t.length==1&&de(t[0])?Ye(t[0],Ot(ee())):Ye(st(t,1),Ot(ee()));var n=t.length;return me(function(o){for(var s=-1,f=ft(o.length,n);++s=t}),Nn=Gs(function(){return arguments}())?Gs:function(e){return je(e)&&Me.call(e,"callee")&&!Ps.call(e,"callee")},de=w.isArray,x0=ls?Ot(ls):Oh;function St(e){return e!=null&&Ti(e.length)&&!pn(e)}function Ve(e){return je(e)&&St(e)}function b0(e){return e===!0||e===!1||je(e)&&pt(e)==$}var En=Dd||Xo,S0=ds?Ot(ds):Ph;function C0(e){return je(e)&&e.nodeType===1&&!xr(e)}function A0(e){if(e==null)return!0;if(St(e)&&(de(e)||typeof e=="string"||typeof e.splice=="function"||En(e)||tr(e)||Nn(e)))return!e.length;var t=lt(e);if(t==q||t==rt)return!e.size;if(yr(e))return!po(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0}function E0(e,t){return vr(e,t)}function R0(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?vr(e,t,r,n):!!o}function Wo(e){if(!je(e))return!1;var t=pt(e);return t==j||t==ge||typeof e.message=="string"&&typeof e.name=="string"&&!xr(e)}function T0(e){return typeof e=="number"&&$s(e)}function pn(e){if(!He(e))return!1;var t=pt(e);return t==b||t==Pe||t==ve||t==rn}function Ju(e){return typeof e=="number"&&e==he(e)}function Ti(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=se}function He(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function je(e){return e!=null&&typeof e=="object"}var Qu=hs?Ot(hs):$h;function O0(e,t){return e===t||ho(e,t,Po(t))}function P0(e,t,n){return n=typeof n=="function"?n:r,ho(e,t,Po(t),n)}function I0(e){return ec(e)&&e!=+e}function $0(e){if(gp(e))throw new ue(h);return Hs(e)}function M0(e){return e===null}function L0(e){return e==null}function ec(e){return typeof e=="number"||je(e)&&pt(e)==ie}function xr(e){if(!je(e)||pt(e)!=le)return!1;var t=ti(e);if(t===null)return!0;var n=Me.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zr.call(n)==Pd}var Uo=ps?Ot(ps):Mh;function k0(e){return Ju(e)&&e>=-se&&e<=se}var tc=gs?Ot(gs):Lh;function Oi(e){return typeof e=="string"||!de(e)&&je(e)&&pt(e)==Rt}function It(e){return typeof e=="symbol"||je(e)&&pt(e)==it}var tr=vs?Ot(vs):kh;function D0(e){return e===r}function F0(e){return je(e)&<(e)==Le}function N0(e){return je(e)&&pt(e)==Wn}var B0=yi(go),W0=yi(function(e,t){return e<=t});function nc(e){if(!e)return[];if(St(e))return Oi(e)?jt(e):bt(e);if(ur&&e[ur])return _d(e[ur]());var t=lt(e),n=t==q?to:t==rt?qr:nr;return n(e)}function gn(e){if(!e)return e===0?e:0;if(e=Yt(e),e===ae||e===-ae){var t=e<0?-1:1;return t*Re}return e===e?e:0}function he(e){var t=gn(e),n=t%1;return t===t?n?t-n:t:0}function rc(e){return e?Ln(he(e),0,_e):0}function Yt(e){if(typeof e=="number")return e;if(It(e))return xe;if(He(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=He(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bs(e);var n=Je.test(e);return n||kt.test(e)?td(e.slice(2),n?2:8):tt.test(e)?xe:+e}function ic(e){return en(e,Ct(e))}function U0(e){return e?Ln(he(e),-se,se):e===0?e:0}function Ie(e){return e==null?"":Pt(e)}var z0=Jn(function(e,t){if(yr(t)||St(t)){en(t,nt(t),e);return}for(var n in t)Me.call(t,n)&&hr(e,n,t[n])}),oc=Jn(function(e,t){en(t,Ct(t),e)}),Pi=Jn(function(e,t,n,o){en(t,Ct(t),e,o)}),Y0=Jn(function(e,t,n,o){en(t,nt(t),e,o)}),G0=dn(so);function H0(e,t){var n=Zn(e);return t==null?n:Fs(n,t)}var j0=me(function(e,t){e=De(e);var n=-1,o=t.length,s=o>2?t[2]:r;for(s&>(t[0],t[1],s)&&(o=1);++n1),f}),en(e,To(e),n),o&&(n=Wt(n,P|k|H,rp));for(var s=t.length;s--;)wo(n,t[s]);return n});function f1(e,t){return sc(e,Ri(ee(t)))}var l1=dn(function(e,t){return e==null?{}:Nh(e,t)});function sc(e,t){if(e==null)return{};var n=Ye(To(e),function(o){return[o]});return t=ee(t),Js(e,n,function(o,s){return t(o,s[0])})}function d1(e,t,n){t=Cn(t,e);var o=-1,s=t.length;for(s||(s=1,e=r);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var s=Ms();return ft(e+s*(t-e+ed("1e-"+((s+"").length-1))),t)}return mo(e,t)}var S1=Qn(function(e,t,n){return t=t.toLowerCase(),e+(n?fc(t):t)});function fc(e){return Go(Ie(e).toLowerCase())}function lc(e){return e=Ie(e),e&&e.replace(Tn,hd).replace(Gl,"")}function C1(e,t,n){e=Ie(e),t=Pt(t);var o=e.length;n=n===r?o:Ln(he(n),0,o);var s=n;return n-=t.length,n>=0&&e.slice(n,s)==t}function A1(e){return e=Ie(e),e&&ya.test(e)?e.replace(zr,pd):e}function E1(e){return e=Ie(e),e&&Sa.test(e)?e.replace(Yr,"\\$&"):e}var R1=Qn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),T1=Qn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),O1=pu("toLowerCase");function P1(e,t,n){e=Ie(e),t=he(t);var o=t?jn(e):0;if(!t||o>=t)return e;var s=(t-o)/2;return _i(oi(s),n)+e+_i(ii(s),n)}function I1(e,t,n){e=Ie(e),t=he(t);var o=t?jn(e):0;return t&&o>>0,n?(e=Ie(e),e&&(typeof t=="string"||t!=null&&!Uo(t))&&(t=Pt(t),!t&&Hn(e))?An(jt(e),0,n):e.split(t,n)):[]}var N1=Qn(function(e,t,n){return e+(n?" ":"")+Go(t)});function B1(e,t,n){return e=Ie(e),n=n==null?0:Ln(he(n),0,e.length),t=Pt(t),e.slice(n,n+t.length)==t}function W1(e,t,n){var o=c.templateSettings;n&>(e,t,n)&&(t=r),e=Ie(e),t=Pi({},t,o,xu);var s=Pi({},t.imports,o.imports,xu),f=nt(s),d=eo(s,f),g,m,A=0,E=t.interpolate||On,O="__p += '",W=no((t.escape||On).source+"|"+E.source+"|"+(E===Bi?ot:On).source+"|"+(t.evaluate||On).source+"|$","g"),V="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vl+"]")+` +`;e.replace(W,function(ne,we,Ce,$t,vt,Mt){return Ce||(Ce=$t),O+=e.slice(A,Mt).replace(Ca,gd),we&&(g=!0,O+=`' + +__e(`+we+`) + +'`),vt&&(m=!0,O+=`'; +`+vt+`; +__p += '`),Ce&&(O+=`' + +((__t = (`+Ce+`)) == null ? '' : __t) + +'`),A=Mt+ne.length,ne}),O+=`'; +`;var te=Me.call(t,"variable")&&t.variable;if(!te)O=`with (obj) { +`+O+` +} +`;else if(ye.test(te))throw new ue(y);O=(m?O.replace(Ba,""):O).replace(Fi,"$1").replace(_a,"$1;"),O="function("+(te||"obj")+`) { +`+(te?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(m?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+O+`return __p +}`;var pe=hc(function(){return Oe(f,V+"return "+O).apply(r,d)});if(pe.source=O,Wo(pe))throw pe;return pe}function U1(e){return Ie(e).toLowerCase()}function z1(e){return Ie(e).toUpperCase()}function Y1(e,t,n){if(e=Ie(e),e&&(n||t===r))return bs(e);if(!e||!(t=Pt(t)))return e;var o=jt(e),s=jt(t),f=Ss(o,s),d=Cs(o,s)+1;return An(o,f,d).join("")}function G1(e,t,n){if(e=Ie(e),e&&(n||t===r))return e.slice(0,Es(e)+1);if(!e||!(t=Pt(t)))return e;var o=jt(e),s=Cs(o,jt(t))+1;return An(o,0,s).join("")}function H1(e,t,n){if(e=Ie(e),e&&(n||t===r))return e.replace(Gr,"");if(!e||!(t=Pt(t)))return e;var o=jt(e),s=Ss(o,jt(t));return An(o,s).join("")}function j1(e,t){var n=Ee,o=Ze;if(He(t)){var s="separator"in t?t.separator:s;n="length"in t?he(t.length):n,o="omission"in t?Pt(t.omission):o}e=Ie(e);var f=e.length;if(Hn(e)){var d=jt(e);f=d.length}if(n>=f)return e;var g=n-jn(o);if(g<1)return o;var m=d?An(d,0,g).join(""):e.slice(0,g);if(s===r)return m+o;if(d&&(g+=m.length-g),Uo(s)){if(e.slice(g).search(s)){var A,E=m;for(s.global||(s=no(s.source,Ie(ct.exec(s))+"g")),s.lastIndex=0;A=s.exec(E);)var O=A.index;m=m.slice(0,O===r?g:O)}}else if(e.indexOf(Pt(s),g)!=g){var W=m.lastIndexOf(s);W>-1&&(m=m.slice(0,W))}return m+o}function K1(e){return e=Ie(e),e&&Ni.test(e)?e.replace(rr,bd):e}var q1=Qn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Go=pu("toUpperCase");function dc(e,t,n){return e=Ie(e),t=n?r:t,t===r?md(e)?Ad(e):ud(e):e.match(t)||[]}var hc=me(function(e,t){try{return Tt(e,r,t)}catch(n){return Wo(n)?n:new ue(n)}}),V1=dn(function(e,t){return Ft(t,function(n){n=tn(n),fn(e,n,No(e[n],e))}),e});function X1(e){var t=e==null?0:e.length,n=ee();return e=t?Ye(e,function(o){if(typeof o[1]!="function")throw new Nt(p);return[n(o[0]),o[1]]}):[],me(function(o){for(var s=-1;++sse)return[];var n=_e,o=ft(e,_e);t=ee(t),e-=_e;for(var s=Qi(o,t);++n0||t<0)?new be(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=he(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(_e)},Qt(be.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),s=c[o?"take"+(t=="last"?"Right":""):t],f=o||/^find/.test(t);!s||(c.prototype[t]=function(){var d=this.__wrapped__,g=o?[1]:arguments,m=d instanceof be,A=g[0],E=m||de(d),O=function(we){var Ce=s.apply(c,yn([we],g));return o&&W?Ce[0]:Ce};E&&n&&typeof A=="function"&&A.length!=1&&(m=E=!1);var W=this.__chain__,V=!!this.__actions__.length,te=f&&!W,pe=m&&!V;if(!f&&E){d=pe?d:new be(this);var ne=e.apply(d,g);return ne.__actions__.push({func:Si,args:[O],thisArg:r}),new Bt(ne,W)}return te&&pe?e.apply(this,g):(ne=this.thru(O),te?o?ne.value()[0]:ne.value():ne)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(e){var t=Vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var s=arguments;if(o&&!this.__chain__){var f=this.value();return t.apply(de(f)?f:[],s)}return this[n](function(d){return t.apply(de(d)?d:[],s)})}}),Qt(be.prototype,function(e,t){var n=c[t];if(n){var o=n.name+"";Me.call(Xn,o)||(Xn[o]=[]),Xn[o].push({name:t,func:n})}}),Xn[vi(r,B).name]=[{name:"wrapper",func:r}],be.prototype.clone=Kd,be.prototype.reverse=qd,be.prototype.value=Vd,c.prototype.at=Cg,c.prototype.chain=Ag,c.prototype.commit=Eg,c.prototype.next=Rg,c.prototype.plant=Og,c.prototype.reverse=Pg,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=Ig,c.prototype.first=c.prototype.head,ur&&(c.prototype[ur]=Tg),c},Kn=Ed();Pn?((Pn.exports=Kn)._=Kn,Hi._=Kn):at._=Kn}).call(on)})(Rc,Rc.exports);function br(i,a){if(i==null)return{};var r={},u=Object.keys(i),l,h;for(h=0;h=0)&&(r[l]=i[l]);return r}function qe(){return qe=Object.assign?Object.assign.bind():function(i){for(var a=1;a1?ta("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])."):ta("Invalid argument supplied to oneOf, expected an array."),Tc;function J(fe,Te,ae,se,Re){for(var xe=fe[Te],_e=0;_e0?", expected one of type ["+F.join(", ")+"]":"";return new x("Invalid "+xe+" `"+_e+"` supplied to "+("`"+Re+"`"+_+"."))}return C(Te)}function Z(){function Y(J,fe,Te,ae,se){return ce(J[fe])?null:new x("Invalid "+ae+" `"+se+"` supplied to "+("`"+Te+"`, expected a ReactNode."))}return C(Y)}function N(Y,J,fe,Te,ae){return new x((Y||"React class")+": "+J+" type `"+fe+"."+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function X(Y){function J(fe,Te,ae,se,Re){var xe=fe[Te],_e=$e(xe);if(_e!=="object")return new x("Invalid "+se+" `"+Re+"` of type `"+_e+"` "+("supplied to `"+ae+"`, expected `object`."));for(var F in Y){var L=Y[F];if(typeof L!="function")return N(ae,se,Re,F,Ee(L));var U=L(xe,F,ae,se,Re+"."+F,ea);if(U)return U}return null}return C(J)}function Ae(Y){function J(fe,Te,ae,se,Re){var xe=fe[Te],_e=$e(xe);if(_e!=="object")return new x("Invalid "+se+" `"+Re+"` of type `"+_e+"` "+("supplied to `"+ae+"`, expected `object`."));var F=Zw({},fe[Te],Y);for(var L in F){var U=Y[L];if(Af(Y,L)&&typeof U!="function")return N(ae,se,Re,L,Ee(U));if(!U)return new x("Invalid "+se+" `"+Re+"` key `"+L+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(fe[Te],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var K=U(xe,L,ae,se,Re+"."+L,ea);if(K)return K}return null}return C(J)}function ce(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(ce);if(Y===null||i(Y))return!0;var J=l(Y);if(J){var fe=J.call(Y),Te;if(J!==Y.entries){for(;!(Te=fe.next()).done;)if(!ce(Te.value))return!1}else for(;!(Te=fe.next()).done;){var ae=Te.value;if(ae&&!ce(ae[1]))return!1}}else return!1;return!0;default:return!1}}function ke(Y,J){return Y==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function $e(Y){var J=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":ke(J,Y)?"symbol":J}function Ee(Y){if(typeof Y>"u"||Y===null)return""+Y;var J=$e(Y);if(J==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return J}function Ze(Y){var J=Ee(Y);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function Ue(Y){return!Y.constructor||!Y.constructor.name?h:Y.constructor.name}return p.checkPropTypes=dm,p.resetWarningCache=dm.resetWarningCache,p.PropTypes=p,p};{var Qw=bf.exports,ex=!0;We.exports=Jw(Qw.isElement,ex)}function hm(i){var a,r,u="";if(typeof i=="string"||typeof i=="number")u+=i;else if(typeof i=="object")if(Array.isArray(i))for(a=0;a{a[r]=gm(i[r])}),a}function Mr(i,a,r={clone:!0}){const u=r.clone?qe({},i):i;return na(i)&&na(a)&&Object.keys(a).forEach(l=>{l!=="__proto__"&&(na(a[l])&&l in i&&na(i[l])?u[l]=Mr(i[l],a[l],r):r.clone?u[l]=na(a[l])?gm(a[l]):a[l]:u[l]=a[l])}),u}var ra={exports:{}},wt={};/** + * @license React + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){var i=Symbol.for("react.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),y=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),M=!1,I=!1,D=!1,B=!1,z=!1,Z;Z=Symbol.for("react.module.reference");function N(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===l||z||q===u||q===C||q===T||B||q===H||M||I||D||typeof q=="object"&&q!==null&&(q.$$typeof===k||q.$$typeof===P||q.$$typeof===h||q.$$typeof===p||q.$$typeof===x||q.$$typeof===Z||q.getModuleId!==void 0))}function X(q){if(typeof q=="object"&&q!==null){var ie=q.$$typeof;switch(ie){case i:var Ge=q.type;switch(Ge){case r:case l:case u:case C:case T:return Ge;default:var le=Ge&&Ge.$$typeof;switch(le){case y:case p:case x:case k:case P:case h:return le;default:return ie}}case a:return ie}}}var Ae=p,ce=h,ke=i,$e=x,Ee=r,Ze=k,Ue=P,Y=a,J=l,fe=u,Te=C,ae=T,se=!1,Re=!1;function xe(q){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _e(q){return Re||(Re=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(q){return X(q)===p}function L(q){return X(q)===h}function U(q){return typeof q=="object"&&q!==null&&q.$$typeof===i}function K(q){return X(q)===x}function _(q){return X(q)===r}function ve(q){return X(q)===k}function $(q){return X(q)===P}function Se(q){return X(q)===a}function ge(q){return X(q)===l}function j(q){return X(q)===u}function b(q){return X(q)===C}function Pe(q){return X(q)===T}wt.ContextConsumer=Ae,wt.ContextProvider=ce,wt.Element=ke,wt.ForwardRef=$e,wt.Fragment=Ee,wt.Lazy=Ze,wt.Memo=Ue,wt.Portal=Y,wt.Profiler=J,wt.StrictMode=fe,wt.Suspense=Te,wt.SuspenseList=ae,wt.isAsyncMode=xe,wt.isConcurrentMode=_e,wt.isContextConsumer=F,wt.isContextProvider=L,wt.isElement=U,wt.isForwardRef=K,wt.isFragment=_,wt.isLazy=ve,wt.isMemo=$,wt.isPortal=Se,wt.isProfiler=ge,wt.isStrictMode=j,wt.isSuspense=b,wt.isSuspenseList=Pe,wt.isValidElementType=N,wt.typeOf=X})(),function(i){i.exports=wt}(ra);const tx=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nx(i){const a=`${i}`.match(tx);return a&&a[1]||""}function vm(i,a=""){return i.displayName||i.name||nx(i)||a}function mm(i,a,r){const u=vm(a);return i.displayName||(u!==""?`${r}(${u})`:r)}function rx(i){if(i!=null){if(typeof i=="string")return i;if(typeof i=="function")return vm(i,"Component");if(typeof i=="object")switch(i.$$typeof){case ra.exports.ForwardRef:return mm(i,i.render,"ForwardRef");case ra.exports.Memo:return mm(i,i.type,"memo");default:return}}}function Sr(i){if(typeof i!="string")throw new Error("MUI: `capitalize(string)` expects a string argument.");return i.charAt(0).toUpperCase()+i.slice(1)}function ix(...i){return i.reduce((a,r)=>r==null?a:function(...l){a.apply(this,l),r.apply(this,l)},()=>{})}function ox(i,a=166){let r;function u(...l){const h=()=>{i.apply(this,l)};clearTimeout(r),r=setTimeout(h,a)}return u.clear=()=>{clearTimeout(r)},u}function ax(i,a){return(r,u,l,h,p)=>{const y=l||"<>",x=p||u;return typeof r[u]<"u"?new Error(`The ${h} \`${x}\` of \`${y}\` is deprecated. ${a}`):null}}const sx=window.React;function ux(i,a){return sx.isValidElement(i)&&a.indexOf(i.type.muiName)!==-1}function _m(i){return i&&i.ownerDocument||document}function cx(i){return _m(i).defaultView||window}function fx(i,a){const r=a?qe({},a.propTypes):null;return l=>(h,p,y,x,C,...T)=>{const P=C||p,k=r==null?void 0:r[P];if(k){const H=k(h,p,y,x,C,...T);if(H)return H}return typeof h[p]<"u"&&!h[l]?new Error(`The prop \`${P}\` of \`${i}\` can only be used together with the \`${l}\` prop.`):null}}function ym(i,a){typeof i=="function"?i(a):i&&(i.current=a)}const wm=window.React,xm=typeof window<"u"?wm.useLayoutEffect:wm.useEffect,Ef=window.React;let bm=0;function lx(i){const[a,r]=Ef.useState(i),u=i||a;return Ef.useEffect(()=>{a==null&&(bm+=1,r(`mui-${bm}`))},[a]),u}const Sm=Ef["useId"];function dx(i){if(Sm!==void 0){const a=Sm();return i!=null?i:a}return lx(i)}function hx(i,a,r,u,l){const h=l||a;return typeof i[a]<"u"?new Error(`The prop \`${h}\` is not supported. Please remove it.`):null}const ia=window.React;function px({controlled:i,default:a,name:r,state:u="value"}){const{current:l}=ia.useRef(i!==void 0),[h,p]=ia.useState(a),y=l?i:h;{ia.useEffect(()=>{l!==(i!==void 0)&&console.error([`MUI: A component is changing the ${l?"":"un"}controlled ${u} state of ${r} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` +`))},[u,r,i]);const{current:C}=ia.useRef(a);ia.useEffect(()=>{!l&&C!==a&&console.error([`MUI: A component is changing the default ${u} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` +`))},[JSON.stringify(a)])}const x=ia.useCallback(C=>{l||p(C)},[]);return[y,x]}const Cm=window.React;function gx(i){const a=Cm.useRef(i);return xm(()=>{a.current=i}),Cm.useCallback((...r)=>(0,a.current)(...r),[])}const vx=window.React;function mx(...i){return vx.useMemo(()=>i.every(a=>a==null)?null:a=>{i.forEach(r=>{ym(r,a)})},i)}const Am=window.React;let Oc=!0,Rf=!1,Em;const _x={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yx(i){const{type:a,tagName:r}=i;return!!(r==="INPUT"&&_x[a]&&!i.readOnly||r==="TEXTAREA"&&!i.readOnly||i.isContentEditable)}function wx(i){i.metaKey||i.altKey||i.ctrlKey||(Oc=!0)}function Tf(){Oc=!1}function xx(){this.visibilityState==="hidden"&&Rf&&(Oc=!0)}function bx(i){i.addEventListener("keydown",wx,!0),i.addEventListener("mousedown",Tf,!0),i.addEventListener("pointerdown",Tf,!0),i.addEventListener("touchstart",Tf,!0),i.addEventListener("visibilitychange",xx,!0)}function Sx(i){const{target:a}=i;try{return a.matches(":focus-visible")}catch{}return Oc||yx(a)}function Cx(){const i=Am.useCallback(l=>{l!=null&&bx(l.ownerDocument)},[]),a=Am.useRef(!1);function r(){return a.current?(Rf=!0,window.clearTimeout(Em),Em=window.setTimeout(()=>{Rf=!1},100),a.current=!1,!0):!1}function u(l){return Sx(l)?(a.current=!0,!0):!1}return{isFocusVisibleRef:a,onFocus:u,onBlur:r,ref:i}}function Rm(i,a){const r=qe({},a);return Object.keys(i).forEach(u=>{if(u.toString().match(/^(components|slots)$/))r[u]=qe({},i[u],r[u]);else if(u.toString().match(/^(componentsProps|slotProps)$/)){const l=i[u]||{},h=a[u];r[u]={},!h||!Object.keys(h)?r[u]=l:!l||!Object.keys(l)?r[u]=h:(r[u]=qe({},h),Object.keys(l).forEach(p=>{r[u][p]=Rm(l[p],h[p])}))}else r[u]===void 0&&(r[u]=i[u])}),r}function Tm(i,a,r=void 0){const u={};return Object.keys(i).forEach(l=>{u[l]=i[l].reduce((h,p)=>{if(p){const y=a(p);y!==""&&h.push(y),r&&r[p]&&h.push(r[p])}return h},[]).join(" ")}),u}const Om=i=>i,Pm=(()=>{let i=Om;return{configure(a){i=a},generate(a){return i(a)},reset(){i=Om}}})(),Ax={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Pc(i,a,r="Mui"){const u=Ax[a];return u?`${r}-${u}`:`${Pm.generate(i)}-${a}`}function Im(i,a,r="Mui"){const u={};return a.forEach(l=>{u[l]=Pc(i,l,r)}),u}function $m(i){var a=Object.create(null);return function(r){return a[r]===void 0&&(a[r]=i(r)),a[r]}}var Ex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/,Rx=$m(function(i){return Ex.test(i)||i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&i.charCodeAt(2)<91});function Tx(i){if(i.sheet)return i.sheet;for(var a=0;a0?mn(aa,--Bn):0,oa--,nn===10&&(oa=1,Lc--),nn}function Un(){return nn=Bn2||Oa(nn)>3?"":" "}function Ux(i,a){for(;--a&&Un()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return Ta(i,Dc()+(a<6&&Ar()==32&&Un()==32))}function Lf(i){for(;Un();)switch(nn){case i:return Bn;case 34:case 39:i!==34&&i!==39&&Lf(nn);break;case 40:i===41&&Lf(i);break;case 92:Un();break}return Bn}function zx(i,a){for(;Un()&&i+nn!==47+10;)if(i+nn===42+42&&Ar()===47)break;return"/*"+Ta(a,Bn-1)+"*"+$c(i===47?i:Un())}function Yx(i){for(;!Oa(Ar());)Un();return Ta(i,Bn)}function Gx(i){return Fm(Nc("",null,null,null,[""],i=Dm(i),0,[0],i))}function Nc(i,a,r,u,l,h,p,y,x){for(var C=0,T=0,P=p,k=0,H=0,M=0,I=1,D=1,B=1,z=0,Z="",N=l,X=h,Ae=u,ce=Z;D;)switch(M=z,z=Un()){case 40:if(M!=108&&mn(ce,P-1)==58){$f(ce+=ht(Fc(z),"&","&\f"),"&\f")!=-1&&(B=-1);break}case 34:case 39:case 91:ce+=Fc(z);break;case 9:case 10:case 13:case 32:ce+=Wx(M);break;case 92:ce+=Ux(Dc()-1,7);continue;case 47:switch(Ar()){case 42:case 47:Mc(Hx(zx(Un(),Dc()),a,r),x);break;default:ce+="/"}break;case 123*I:y[C++]=Cr(ce)*B;case 125*I:case 59:case 0:switch(z){case 0:case 125:D=0;case 59+T:B==-1&&(ce=ht(ce,/\f/g,"")),H>0&&Cr(ce)-P&&Mc(H>32?Bm(ce+";",u,r,P-1):Bm(ht(ce," ","")+";",u,r,P-2),x);break;case 59:ce+=";";default:if(Mc(Ae=Nm(ce,a,r,C,T,l,y,Z,N=[],X=[],P),h),z===123)if(T===0)Nc(ce,a,Ae,Ae,N,h,P,y,X);else switch(k===99&&mn(ce,3)===110?100:k){case 100:case 108:case 109:case 115:Nc(i,Ae,Ae,u&&Mc(Nm(i,Ae,Ae,0,0,l,y,Z,l,N=[],P),X),l,X,P,y,u?N:X);break;default:Nc(ce,Ae,Ae,Ae,[""],X,0,y,X)}}C=T=H=0,I=B=1,Z=ce="",P=p;break;case 58:P=1+Cr(ce),H=M;default:if(I<1){if(z==123)--I;else if(z==125&&I++==0&&Bx()==125)continue}switch(ce+=$c(z),z*I){case 38:B=T>0?1:(ce+="\f",-1);break;case 44:y[C++]=(Cr(ce)-1)*B,B=1;break;case 64:Ar()===45&&(ce+=Fc(Un())),k=Ar(),T=P=Cr(Z=ce+=Yx(Dc())),z++;break;case 45:M===45&&Cr(ce)==2&&(I=0)}}return h}function Nm(i,a,r,u,l,h,p,y,x,C,T){for(var P=l-1,k=l===0?h:[""],H=Mf(k),M=0,I=0,D=0;M0?k[B]+" "+z:ht(z,/&\f/g,k[B])))&&(x[D++]=Z);return kc(i,a,r,l===0?Pf:y,x,C,T)}function Hx(i,a,r){return kc(i,a,r,Of,$c(Nx()),Ea(i,2,-2),0)}function Bm(i,a,r,u){return kc(i,a,r,If,Ea(i,0,u),Ea(i,u+1,-1),u)}function sa(i,a){for(var r="",u=Mf(i),l=0;l-1},tb=function(a){return function(r,u,l){if(!(r.type!=="rule"||a.compat)){var h=r.value.match(/(:first|:nth|:nth-last)-child/g);if(h){for(var p=!!r.parent,y=p?r.parent.children:l,x=y.length-1;x>=0;x--){var C=y[x];if(C.line=0;u--)if(!Um(r[u]))return!0;return!1},zm=function(a){a.type="",a.value="",a.return="",a.children="",a.props=""},rb=function(a,r,u){!Um(a)||(a.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),zm(a)):nb(r,u)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),zm(a)))};function Ym(i,a){switch(kx(i,a)){case 5103:return dt+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+i+Ic+i+Rn+i+i;case 6828:case 4268:return dt+i+Rn+i+i;case 6165:return dt+i+Rn+"flex-"+i+i;case 5187:return dt+i+ht(i,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Rn+"flex-$1$2")+i;case 5443:return dt+i+Rn+"flex-item-"+ht(i,/flex-|-self/,"")+i;case 4675:return dt+i+Rn+"flex-line-pack"+ht(i,/align-content|flex-|-self/,"")+i;case 5548:return dt+i+Rn+ht(i,"shrink","negative")+i;case 5292:return dt+i+Rn+ht(i,"basis","preferred-size")+i;case 6060:return dt+"box-"+ht(i,"-grow","")+dt+i+Rn+ht(i,"grow","positive")+i;case 4554:return dt+ht(i,/([^-])(transform)/g,"$1"+dt+"$2")+i;case 6187:return ht(ht(ht(i,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),i,"")+i;case 5495:case 3959:return ht(i,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return ht(ht(i,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+i+i;case 4095:case 3583:case 4068:case 2532:return ht(i,/(.+)-inline(.+)/,dt+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(i)-1-a>6)switch(mn(i,a+1)){case 109:if(mn(i,a+4)!==45)break;case 102:return ht(i,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Ic+(mn(i,a+3)==108?"$3":"$2-$3"))+i;case 115:return~$f(i,"stretch")?Ym(ht(i,"stretch","fill-available"),a)+i:i}break;case 4949:if(mn(i,a+1)!==115)break;case 6444:switch(mn(i,Cr(i)-3-(~$f(i,"!important")&&10))){case 107:return ht(i,":",":"+dt)+i;case 101:return ht(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(mn(i,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Rn+"$2box$3")+i}break;case 5936:switch(mn(i,a+11)){case 114:return dt+i+Rn+ht(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return dt+i+Rn+ht(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return dt+i+Rn+ht(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return dt+i+Rn+i+i}return i}var ib=function(a,r,u,l){if(a.length>-1&&!a.return)switch(a.type){case If:a.return=Ym(a.value,a.length);break;case Mm:return sa([Ra(a,{value:ht(a.value,"@","@"+dt)})],l);case Pf:if(a.length)return Fx(a.props,function(h){switch(Dx(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sa([Ra(a,{props:[ht(h,/:(read-\w+)/,":"+Ic+"$1")]})],l);case"::placeholder":return sa([Ra(a,{props:[ht(h,/:(plac\w+)/,":"+dt+"input-$1")]}),Ra(a,{props:[ht(h,/:(plac\w+)/,":"+Ic+"$1")]}),Ra(a,{props:[ht(h,/:(plac\w+)/,Rn+"input-$1")]})],l)}return""})}},ob=[ib],ab=function(a){var r=a.key;if(!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(I){var D=I.getAttribute("data-emotion");D.indexOf(" ")!==-1&&(document.head.appendChild(I),I.setAttribute("data-s",""))})}var l=a.stylisPlugins||ob;if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var h={},p,y=[];p=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(I){for(var D=I.getAttribute("data-emotion").split(" "),B=1;B=4;++u,l-=4)r=i.charCodeAt(u)&255|(i.charCodeAt(++u)&255)<<8|(i.charCodeAt(++u)&255)<<16|(i.charCodeAt(++u)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,a=(r&65535)*1540483477+((r>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(l){case 3:a^=(i.charCodeAt(u+2)&255)<<16;case 2:a^=(i.charCodeAt(u+1)&255)<<8;case 1:a^=i.charCodeAt(u)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var mb={animationIterationCount:1,aspectRatio: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},Jm=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,_b="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",yb=/[A-Z]|^ms/g,Qm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nf=function(a){return a.charCodeAt(1)===45},e_=function(a){return a!=null&&typeof a!="boolean"},Bf=$m(function(i){return Nf(i)?i:i.replace(yb,"-$&").toLowerCase()}),Bc=function(a,r){switch(a){case"animation":case"animationName":if(typeof r=="string")return r.replace(Qm,function(u,l,h){return Er={name:l,styles:h,next:Er},l})}return mb[a]!==1&&!Nf(a)&&typeof r=="number"&&r!==0?r+"px":r};{var wb=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,xb=["normal","none","initial","inherit","unset"],bb=Bc,Sb=/^-ms-/,Cb=/-(.)/g,t_={};Bc=function(a,r){if(a==="content"&&(typeof r!="string"||xb.indexOf(r)===-1&&!wb.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var u=bb(a,r);return u!==""&&!Nf(a)&&a.indexOf("-")!==-1&&t_[a]===void 0&&(t_[a]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+a.replace(Sb,"ms-").replace(Cb,function(l,h){return h.toUpperCase()})+"?")),u}}var n_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Pa(i,a,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(n_);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Er={name:r.name,styles:r.styles,next:Er},r.name;if(r.styles!==void 0){var u=r.next;if(u!==void 0)for(;u!==void 0;)Er={name:u.name,styles:u.styles,next:Er},u=u.next;var l=r.styles+";";return r.map!==void 0&&(l+=r.map),l}return Ab(i,a,r)}case"function":{if(i!==void 0){var h=Er,p=r(i);return Er=h,Pa(i,a,p)}else 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 y=[],x=r.replace(Qm,function(T,P,k){var H="animation"+y.length;return y.push("const "+H+" = keyframes`"+k.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+H+"}"});y.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(y,["`"+x+"`"]).join(` +`)+` + +You should wrap it with \`css\` like this: + +`+("css`"+x+"`"))}break}if(a==null)return r;var C=a[r];return C!==void 0?C:r}function Ab(i,a,r){var u="";if(Array.isArray(r))for(var l=0;l96?$b:Mb},l_=function(a,r,u){var l;if(r){var h=r.shouldForwardProp;l=a.__emotion_forwardProp&&h?function(p){return a.__emotion_forwardProp(p)&&h(p)}:h}return typeof l!="function"&&u&&(l=a.__emotion_forwardProp),l},d_=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Lb=function(a){var r=a.cache,u=a.serialized,l=a.isStringTag;return Ff(r,u,l),a_(function(){return Zm(r,u,l)}),null},kb=function i(a,r){if(a===void 0)throw new Error(`You are trying to create a styled element with an undefined component. +You may have forgotten to import it.`);var u=a.__emotion_real===a,l=u&&a.__emotion_base||a,h,p;r!==void 0&&(h=r.label,p=r.target);var y=l_(a,r,u),x=y||f_(l),C=!x("as");return function(){var T=arguments,P=u&&a.__emotion_styles!==void 0?a.__emotion_styles.slice(0):[];if(h!==void 0&&P.push("label:"+h+";"),T[0]==null||T[0].raw===void 0)P.push.apply(P,T);else{T[0][0]===void 0&&console.error(d_),P.push(T[0][0]);for(var k=T.length,H=1;H{const l=typeof i=="string"?`"${i}"`:"component";return u.length===0?console.error([`MUI: Seems like you called \`styled(${l})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` +`)):u.some(h=>h===void 0)&&console.error(`MUI: the styled(${l})(...args) API requires all its args to be defined.`),r(...u)}}const Nb=(i,a)=>{Array.isArray(i.__emotion_styles)&&(i.__emotion_styles=a(i.__emotion_styles))},Bb=["values","unit","step"],Wb=i=>{const a=Object.keys(i).map(r=>({key:r,val:i[r]}))||[];return a.sort((r,u)=>r.val-u.val),a.reduce((r,u)=>qe({},r,{[u.key]:u.val}),{})};function Ub(i){const{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:u=5}=i,l=br(i,Bb),h=Wb(a),p=Object.keys(h);function y(k){return`@media (min-width:${typeof a[k]=="number"?a[k]:k}${r})`}function x(k){return`@media (max-width:${(typeof a[k]=="number"?a[k]:k)-u/100}${r})`}function C(k,H){const M=p.indexOf(H);return`@media (min-width:${typeof a[k]=="number"?a[k]:k}${r}) and (max-width:${(M!==-1&&typeof a[p[M]]=="number"?a[p[M]]:H)-u/100}${r})`}function T(k){return p.indexOf(k)+1`@media (min-width:${Gf[i]}px)`};function Lr(i,a,r){const u=i.theme||{};if(Array.isArray(a)){const h=u.breakpoints||h_;return a.reduce((p,y,x)=>(p[h.up(h.keys[x])]=r(a[x]),p),{})}if(typeof a=="object"){const h=u.breakpoints||h_;return Object.keys(a).reduce((p,y)=>{if(Object.keys(h.values||Gf).indexOf(y)!==-1){const x=h.up(y);p[x]=r(a[y],y)}else{const x=y;p[x]=a[x]}return p},{})}return r(a)}function Yb(i={}){var a;return((a=i.keys)==null?void 0:a.reduce((u,l)=>{const h=i.up(l);return u[h]={},u},{}))||{}}function Gb(i,a){return i.reduce((r,u)=>{const l=r[u];return(!l||Object.keys(l).length===0)&&delete r[u],r},a)}function Uc(i,a,r=!0){if(!a||typeof a!="string")return null;if(i&&i.vars&&r){const u=`vars.${a}`.split(".").reduce((l,h)=>l&&l[h]?l[h]:null,i);if(u!=null)return u}return a.split(".").reduce((u,l)=>u&&u[l]!=null?u[l]:null,i)}function zc(i,a,r,u=r){let l;return typeof i=="function"?l=i(r):Array.isArray(i)?l=i[r]||u:l=Uc(i,r)||u,a&&(l=a(l,u,i)),l}function mt(i){const{prop:a,cssProperty:r=i.prop,themeKey:u,transform:l}=i,h=p=>{if(p[a]==null)return null;const y=p[a],x=p.theme,C=Uc(x,u)||{};return Lr(p,y,P=>{let k=zc(C,l,P);return P===k&&typeof P=="string"&&(k=zc(C,l,`${a}${P==="default"?"":Sr(P)}`,P)),r===!1?k:{[r]:k}})};return h.propTypes={[a]:$i},h.filterProps=[a],h}function Hb(i){const a={};return r=>(a[r]===void 0&&(a[r]=i(r)),a[r])}const jb={m:"margin",p:"padding"},Kb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},p_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qb=Hb(i=>{if(i.length>2)if(p_[i])i=p_[i];else return[i];const[a,r]=i.split(""),u=jb[a],l=Kb[r]||"";return Array.isArray(l)?l.map(h=>u+h):[u+l]}),Yc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vb=[...Yc,...Gc];function Ma(i,a,r,u){var l;const h=(l=Uc(i,a,!1))!=null?l:r;return typeof h=="number"?p=>typeof p=="string"?p:(typeof p!="number"&&console.error(`MUI: Expected ${u} argument to be a number or a string, got ${p}.`),h*p):Array.isArray(h)?p=>typeof p=="string"?p:(Number.isInteger(p)?p>h.length-1&&console.error([`MUI: The value provided (${p}) overflows.`,`The supported values are: ${JSON.stringify(h)}.`,`${p} > ${h.length-1}, you need to add the missing values.`].join(` +`)):console.error([`MUI: The \`theme.${a}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${a}\` as a number.`].join(` +`)),h[p]):typeof h=="function"?h:(console.error([`MUI: The \`theme.${a}\` value (${h}) is invalid.`,"It should be a number, an array or a function."].join(` +`)),()=>{})}function g_(i){return Ma(i,"spacing",8,"spacing")}function La(i,a){if(typeof a=="string"||a==null)return a;const r=Math.abs(a),u=i(r);return a>=0?u:typeof u=="number"?-u:`-${u}`}function Xb(i,a){return r=>i.reduce((u,l)=>(u[l]=La(a,r),u),{})}function Zb(i,a,r,u){if(a.indexOf(r)===-1)return null;const l=qb(r),h=Xb(l,u),p=i[r];return Lr(i,p,h)}function v_(i,a){const r=g_(i.theme);return Object.keys(i).map(u=>Zb(i,a,u,r)).reduce($a,{})}function Xt(i){return v_(i,Yc)}Xt.propTypes=Yc.reduce((i,a)=>(i[a]=$i,i),{}),Xt.filterProps=Yc;function Zt(i){return v_(i,Gc)}Zt.propTypes=Gc.reduce((i,a)=>(i[a]=$i,i),{}),Zt.filterProps=Gc,Vb.reduce((i,a)=>(i[a]=$i,i),{});function Jb(i=8){if(i.mui)return i;const a=g_({spacing:i}),r=(...u)=>(u.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${u.length}`),(u.length===0?[1]:u).map(h=>{const p=a(h);return typeof p=="number"?`${p}px`:p}).join(" "));return r.mui=!0,r}function Hc(...i){const a=i.reduce((u,l)=>(l.filterProps.forEach(h=>{u[h]=l}),u),{}),r=u=>Object.keys(u).reduce((l,h)=>a[h]?$a(l,a[h](u)):l,{});return r.propTypes=i.reduce((u,l)=>Object.assign(u,l.propTypes),{}),r.filterProps=i.reduce((u,l)=>u.concat(l.filterProps),[]),r}function Rr(i){return typeof i!="number"?i:`${i}px solid`}const Qb=mt({prop:"border",themeKey:"borders",transform:Rr}),e2=mt({prop:"borderTop",themeKey:"borders",transform:Rr}),t2=mt({prop:"borderRight",themeKey:"borders",transform:Rr}),n2=mt({prop:"borderBottom",themeKey:"borders",transform:Rr}),r2=mt({prop:"borderLeft",themeKey:"borders",transform:Rr}),i2=mt({prop:"borderColor",themeKey:"palette"}),o2=mt({prop:"borderTopColor",themeKey:"palette"}),a2=mt({prop:"borderRightColor",themeKey:"palette"}),s2=mt({prop:"borderBottomColor",themeKey:"palette"}),u2=mt({prop:"borderLeftColor",themeKey:"palette"}),jc=i=>{if(i.borderRadius!==void 0&&i.borderRadius!==null){const a=Ma(i.theme,"shape.borderRadius",4,"borderRadius"),r=u=>({borderRadius:La(a,u)});return Lr(i,i.borderRadius,r)}return null};jc.propTypes={borderRadius:$i},jc.filterProps=["borderRadius"],Hc(Qb,e2,t2,n2,r2,i2,o2,a2,s2,u2,jc);const Kc=i=>{if(i.gap!==void 0&&i.gap!==null){const a=Ma(i.theme,"spacing",8,"gap"),r=u=>({gap:La(a,u)});return Lr(i,i.gap,r)}return null};Kc.propTypes={gap:$i},Kc.filterProps=["gap"];const qc=i=>{if(i.columnGap!==void 0&&i.columnGap!==null){const a=Ma(i.theme,"spacing",8,"columnGap"),r=u=>({columnGap:La(a,u)});return Lr(i,i.columnGap,r)}return null};qc.propTypes={columnGap:$i},qc.filterProps=["columnGap"];const Vc=i=>{if(i.rowGap!==void 0&&i.rowGap!==null){const a=Ma(i.theme,"spacing",8,"rowGap"),r=u=>({rowGap:La(a,u)});return Lr(i,i.rowGap,r)}return null};Vc.propTypes={rowGap:$i},Vc.filterProps=["rowGap"];const c2=mt({prop:"gridColumn"}),f2=mt({prop:"gridRow"}),l2=mt({prop:"gridAutoFlow"}),d2=mt({prop:"gridAutoColumns"}),h2=mt({prop:"gridAutoRows"}),p2=mt({prop:"gridTemplateColumns"}),g2=mt({prop:"gridTemplateRows"}),v2=mt({prop:"gridTemplateAreas"}),m2=mt({prop:"gridArea"});Hc(Kc,qc,Vc,c2,f2,l2,d2,h2,p2,g2,v2,m2);function ua(i,a){return a==="grey"?a:i}const _2=mt({prop:"color",themeKey:"palette",transform:ua}),y2=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ua}),w2=mt({prop:"backgroundColor",themeKey:"palette",transform:ua});Hc(_2,y2,w2);function zn(i){return i<=1&&i!==0?`${i*100}%`:i}const x2=mt({prop:"width",transform:zn}),Hf=i=>{if(i.maxWidth!==void 0&&i.maxWidth!==null){const a=r=>{var u,l,h;return{maxWidth:((u=i.theme)==null||(l=u.breakpoints)==null||(h=l.values)==null?void 0:h[r])||Gf[r]||zn(r)}};return Lr(i,i.maxWidth,a)}return null};Hf.filterProps=["maxWidth"];const b2=mt({prop:"minWidth",transform:zn}),S2=mt({prop:"height",transform:zn}),C2=mt({prop:"maxHeight",transform:zn}),A2=mt({prop:"minHeight",transform:zn});mt({prop:"size",cssProperty:"width",transform:zn}),mt({prop:"size",cssProperty:"height",transform:zn});const E2=mt({prop:"boxSizing"});Hc(x2,Hf,b2,S2,C2,A2,E2);const jf={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jc},color:{themeKey:"palette",transform:ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ua},backgroundColor:{themeKey:"palette",transform:ua},p:{style:Zt},pt:{style:Zt},pr:{style:Zt},pb:{style:Zt},pl:{style:Zt},px:{style:Zt},py:{style:Zt},padding:{style:Zt},paddingTop:{style:Zt},paddingRight:{style:Zt},paddingBottom:{style:Zt},paddingLeft:{style:Zt},paddingX:{style:Zt},paddingY:{style:Zt},paddingInline:{style:Zt},paddingInlineStart:{style:Zt},paddingInlineEnd:{style:Zt},paddingBlock:{style:Zt},paddingBlockStart:{style:Zt},paddingBlockEnd:{style:Zt},m:{style:Xt},mt:{style:Xt},mr:{style:Xt},mb:{style:Xt},ml:{style:Xt},mx:{style:Xt},my:{style:Xt},margin:{style:Xt},marginTop:{style:Xt},marginRight:{style:Xt},marginBottom:{style:Xt},marginLeft:{style:Xt},marginX:{style:Xt},marginY:{style:Xt},marginInline:{style:Xt},marginInlineStart:{style:Xt},marginInlineEnd:{style:Xt},marginBlock:{style:Xt},marginBlockStart:{style:Xt},marginBlockEnd:{style:Xt},displayPrint:{cssProperty:!1,transform:i=>({"@media print":{display:i}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kc},rowGap:{style:Vc},columnGap:{style:qc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:Hf},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function R2(...i){const a=i.reduce((u,l)=>u.concat(Object.keys(l)),[]),r=new Set(a);return i.every(u=>r.size===Object.keys(u).length)}function T2(i,a){return typeof i=="function"?i(a):i}function O2(){function i(r,u,l,h){const p={[r]:u,theme:l},y=h[r];if(!y)return{[r]:u};const{cssProperty:x=r,themeKey:C,transform:T,style:P}=y;if(u==null)return null;if(C==="typography"&&u==="inherit")return{[r]:u};const k=Uc(l,C)||{};return P?P(p):Lr(p,u,M=>{let I=zc(k,T,M);return M===I&&typeof M=="string"&&(I=zc(k,T,`${r}${M==="default"?"":Sr(M)}`,M)),x===!1?I:{[x]:I}})}function a(r){var u;const{sx:l,theme:h={}}=r||{};if(!l)return null;const p=(u=h.unstable_sxConfig)!=null?u:jf;function y(x){let C=x;if(typeof x=="function")C=x(h);else if(typeof x!="object")return x;if(!C)return null;const T=Yb(h.breakpoints),P=Object.keys(T);let k=T;return Object.keys(C).forEach(H=>{const M=T2(C[H],h);if(M!=null)if(typeof M=="object")if(p[H])k=$a(k,i(H,M,h,p));else{const I=Lr({theme:h},M,D=>({[H]:D}));R2(I,M)?k[H]=a({sx:M,theme:h}):k=$a(k,I)}else k=$a(k,i(H,M,h,p))}),Gb(P,k)}return Array.isArray(l)?l.map(y):y(l)}return a}const m_=O2();m_.filterProps=["sx"];const Kf=m_,P2=["breakpoints","palette","spacing","shape"];function qf(i={},...a){const{breakpoints:r={},palette:u={},spacing:l,shape:h={}}=i,p=br(i,P2),y=Ub(r),x=Jb(l);let C=Mr({breakpoints:y,direction:"ltr",components:{},palette:qe({mode:"light"},u),spacing:x,shape:qe({},zb,h)},p);return C=a.reduce((T,P)=>Mr(T,P),C),C.unstable_sxConfig=qe({},jf,p==null?void 0:p.unstable_sxConfig),C.unstable_sx=function(P){return Kf({sx:P,theme:this})},C}const I2=window.React;function $2(i){return Object.keys(i).length===0}function M2(i=null){const a=I2.useContext(Wc);return!a||$2(a)?i:a}const L2=qf();function k2(i=L2){return M2(i)}const D2=["variant"];function __(i){return i.length===0}function y_(i){const{variant:a}=i,r=br(i,D2);let u=a||"";return Object.keys(r).sort().forEach(l=>{l==="color"?u+=__(u)?i[l]:Sr(i[l]):u+=`${__(u)?l:Sr(l)}${Sr(i[l].toString())}`}),u}const F2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function N2(i){return Object.keys(i).length===0}function B2(i){return typeof i=="string"&&i.charCodeAt(0)>96}const W2=(i,a)=>a.components&&a.components[i]&&a.components[i].styleOverrides?a.components[i].styleOverrides:null,U2=(i,a)=>{let r=[];a&&a.components&&a.components[i]&&a.components[i].variants&&(r=a.components[i].variants);const u={};return r.forEach(l=>{const h=y_(l.props);u[h]=l.style}),u},z2=(i,a,r,u)=>{var l,h;const{ownerState:p={}}=i,y=[],x=r==null||(l=r.components)==null||(h=l[u])==null?void 0:h.variants;return x&&x.forEach(C=>{let T=!0;Object.keys(C.props).forEach(P=>{p[P]!==C.props[P]&&i[P]!==C.props[P]&&(T=!1)}),T&&y.push(a[y_(C.props)])}),y};function Xc(i){return i!=="ownerState"&&i!=="theme"&&i!=="sx"&&i!=="as"}const Y2=qf(),G2=i=>i.charAt(0).toLowerCase()+i.slice(1);function ka({defaultTheme:i,theme:a,themeId:r}){return N2(a)?i:a[r]||a}function H2(i={}){const{themeId:a,defaultTheme:r=Y2,rootShouldForwardProp:u=Xc,slotShouldForwardProp:l=Xc}=i,h=p=>Kf(qe({},p,{theme:ka(qe({},p,{defaultTheme:r,themeId:a}))}));return h.__mui_systemSx=!0,(p,y={})=>{Nb(p,N=>N.filter(X=>!(X!=null&&X.__mui_systemSx)));const{name:x,slot:C,skipVariantsResolver:T,skipSx:P,overridesResolver:k}=y,H=br(y,F2),M=T!==void 0?T:C&&C!=="Root"||!1,I=P||!1;let D;x&&(D=`${x}-${G2(C||"Root")}`);let B=Xc;C==="Root"?B=u:C?B=l:B2(p)&&(B=void 0);const z=Fb(p,qe({shouldForwardProp:B,label:D},H)),Z=(N,...X)=>{const Ae=X?X.map(Ee=>typeof Ee=="function"&&Ee.__emotion_real!==Ee?Ze=>Ee(qe({},Ze,{theme:ka(qe({},Ze,{defaultTheme:r,themeId:a}))})):Ee):[];let ce=N;x&&k&&Ae.push(Ee=>{const Ze=ka(qe({},Ee,{defaultTheme:r,themeId:a})),Ue=W2(x,Ze);if(Ue){const Y={};return Object.entries(Ue).forEach(([J,fe])=>{Y[J]=typeof fe=="function"?fe(qe({},Ee,{theme:Ze})):fe}),k(Ee,Y)}return null}),x&&!M&&Ae.push(Ee=>{const Ze=ka(qe({},Ee,{defaultTheme:r,themeId:a}));return z2(Ee,U2(x,Ze),Ze,x)}),I||Ae.push(h);const ke=Ae.length-X.length;if(Array.isArray(N)&&ke>0){const Ee=new Array(ke).fill("");ce=[...N,...Ee],ce.raw=[...N.raw,...Ee]}else typeof N=="function"&&N.__emotion_real!==N&&(ce=Ee=>N(qe({},Ee,{theme:ka(qe({},Ee,{defaultTheme:r,themeId:a}))})));const $e=z(ce,...Ae);{let Ee;x&&(Ee=`${x}${C||""}`),Ee===void 0&&(Ee=`Styled(${rx(p)})`),$e.displayName=Ee}return p.muiName&&($e.muiName=p.muiName),$e};return z.withConfig&&(Z.withConfig=z.withConfig),Z}}function j2(i){const{theme:a,name:r,props:u}=i;return!a||!a.components||!a.components[r]||!a.components[r].defaultProps?u:Rm(a.components[r].defaultProps,u)}function K2({props:i,name:a,defaultTheme:r,themeId:u}){let l=k2(r);return u&&(l=l[u]||l),j2({theme:l,name:a,props:i})}function w_(i,a=0,r=1){return(ir)&&console.error(`MUI: The value provided ${i} is out of range [${a}, ${r}].`),Math.min(Math.max(a,i),r)}function q2(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let r=i.match(a);return r&&r[0].length===1&&(r=r.map(u=>u+u)),r?`rgb${r.length===4?"a":""}(${r.map((u,l)=>l<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}function ca(i){if(i.type)return i;if(i.charAt(0)==="#")return ca(q2(i));const a=i.indexOf("("),r=i.substring(0,a);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(`MUI: Unsupported \`${i}\` color. +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);let u=i.substring(a+1,i.length-1),l;if(r==="color"){if(u=u.split(" "),l=u.shift(),u.length===4&&u[3].charAt(0)==="/"&&(u[3]=u[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(`MUI: unsupported \`${l}\` color space. +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`)}else u=u.split(",");return u=u.map(h=>parseFloat(h)),{type:r,values:u,colorSpace:l}}function Vf(i){const{type:a,colorSpace:r}=i;let{values:u}=i;return a.indexOf("rgb")!==-1?u=u.map((l,h)=>h<3?parseInt(l,10):l):a.indexOf("hsl")!==-1&&(u[1]=`${u[1]}%`,u[2]=`${u[2]}%`),a.indexOf("color")!==-1?u=`${r} ${u.join(" ")}`:u=`${u.join(", ")}`,`${a}(${u})`}function V2(i){i=ca(i);const{values:a}=i,r=a[0],u=a[1]/100,l=a[2]/100,h=u*Math.min(l,1-l),p=(C,T=(C+r/30)%12)=>l-h*Math.max(Math.min(T-3,9-T,1),-1);let y="rgb";const x=[Math.round(p(0)*255),Math.round(p(8)*255),Math.round(p(4)*255)];return i.type==="hsla"&&(y+="a",x.push(a[3])),Vf({type:y,values:x})}function x_(i){i=ca(i);let a=i.type==="hsl"||i.type==="hsla"?ca(V2(i)).values:i.values;return a=a.map(r=>(i.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function b_(i,a){const r=x_(i),u=x_(a);return(Math.max(r,u)+.05)/(Math.min(r,u)+.05)}function X2(i,a){if(i=ca(i),a=w_(a),i.type.indexOf("hsl")!==-1)i.values[2]*=1-a;else if(i.type.indexOf("rgb")!==-1||i.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)i.values[r]*=1-a;return Vf(i)}function Z2(i,a){if(i=ca(i),a=w_(a),i.type.indexOf("hsl")!==-1)i.values[2]+=(100-i.values[2])*a;else if(i.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)i.values[r]+=(255-i.values[r])*a;else if(i.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)i.values[r]+=(1-i.values[r])*a;return Vf(i)}function J2(i,a){return qe({toolbar:{minHeight:56,[i.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[i.up("sm")]:{minHeight:64}}},a)}const Da={black:"#000",white:"#fff"},Q2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},fa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},la={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fa={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},da={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ha={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},pa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},eS=["mode","contrastThreshold","tonalOffset"],S_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Da.white,default:Da.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Xf={text:{primary:Da.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Da.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C_(i,a,r,u){const l=u.light||u,h=u.dark||u*1.5;i[a]||(i.hasOwnProperty(r)?i[a]=i[r]:a==="light"?i.light=Z2(i.main,l):a==="dark"&&(i.dark=X2(i.main,h)))}function tS(i="light"){return i==="dark"?{main:da[200],light:da[50],dark:da[400]}:{main:da[700],light:da[400],dark:da[800]}}function nS(i="light"){return i==="dark"?{main:fa[200],light:fa[50],dark:fa[400]}:{main:fa[500],light:fa[300],dark:fa[700]}}function rS(i="light"){return i==="dark"?{main:la[500],light:la[300],dark:la[700]}:{main:la[700],light:la[400],dark:la[800]}}function iS(i="light"){return i==="dark"?{main:ha[400],light:ha[300],dark:ha[700]}:{main:ha[700],light:ha[500],dark:ha[900]}}function oS(i="light"){return i==="dark"?{main:pa[400],light:pa[300],dark:pa[700]}:{main:pa[800],light:pa[500],dark:pa[900]}}function aS(i="light"){return i==="dark"?{main:Fa[400],light:Fa[300],dark:Fa[700]}:{main:"#ed6c02",light:Fa[500],dark:Fa[900]}}function sS(i){const{mode:a="light",contrastThreshold:r=3,tonalOffset:u=.2}=i,l=br(i,eS),h=i.primary||tS(a),p=i.secondary||nS(a),y=i.error||rS(a),x=i.info||iS(a),C=i.success||oS(a),T=i.warning||aS(a);function P(I){const D=b_(I,Xf.text.primary)>=r?Xf.text.primary:S_.text.primary;{const B=b_(I,D);B<3&&console.error([`MUI: The contrast ratio of ${B}:1 for ${D} on ${I}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` +`))}return D}const k=({color:I,name:D,mainShade:B=500,lightShade:z=300,darkShade:Z=700})=>{if(I=qe({},I),!I.main&&I[B]&&(I.main=I[B]),!I.hasOwnProperty("main"))throw new Error(`MUI: The color${D?` (${D})`:""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${B}\` property.`);if(typeof I.main!="string")throw new Error(`MUI: The color${D?` (${D})`:""} provided to augmentColor(color) is invalid. +\`color.main\` should be a string, but \`${JSON.stringify(I.main)}\` was provided instead. Did you intend to use one of the following approaches? @@ -16785,1699 +211,67 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`); - } - addLightOrDark(color2, "light", lightShade, tonalOffset); - addLightOrDark(color2, "dark", darkShade, tonalOffset); - if (!color2.contrastText) { - color2.contrastText = getContrastText(color2.main); - } - return color2; - }; - const modes = { - dark, - light - }; - { - if (!modes[mode]) { - console.error(`MUI: The palette mode \`${mode}\` is not supported.`); - } - } - const paletteOutput = deepmerge(_extends({ - common: _extends({}, common$1), - mode, - primary: augmentColor({ - color: primary, - name: "primary" - }), - secondary: augmentColor({ - color: secondary, - name: "secondary", - mainShade: "A400", - lightShade: "A200", - darkShade: "A700" - }), - error: augmentColor({ - color: error, - name: "error" - }), - warning: augmentColor({ - color: warning, - name: "warning" - }), - info: augmentColor({ - color: info, - name: "info" - }), - success: augmentColor({ - color: success, - name: "success" - }), - grey: grey$1, - contrastThreshold, - getContrastText, - augmentColor, - tonalOffset - }, modes[mode]), other); - return paletteOutput; - } - const _excluded$4 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; - function round(value) { - return Math.round(value * 1e5) / 1e5; - } - const caseAllCaps = { - textTransform: "uppercase" - }; - const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; - function createTypography(palette, typography) { - const _ref = typeof typography === "function" ? typography(palette) : typography, { - fontFamily = defaultFontFamily, - fontSize = 14, - fontWeightLight = 300, - fontWeightRegular = 400, - fontWeightMedium = 500, - fontWeightBold = 700, - htmlFontSize = 16, - allVariants, - pxToRem: pxToRem2 - } = _ref, other = _objectWithoutPropertiesLoose(_ref, _excluded$4); - { - if (typeof fontSize !== "number") { - console.error("MUI: `fontSize` is required to be a number."); - } - if (typeof htmlFontSize !== "number") { - console.error("MUI: `htmlFontSize` is required to be a number."); - } - } - const coef = fontSize / 14; - const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`); - const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({ - fontFamily, - fontWeight, - fontSize: pxToRem(size), - lineHeight - }, fontFamily === defaultFontFamily ? { - letterSpacing: `${round(letterSpacing / size)}em` - } : {}, casing, allVariants); - const variants = { - h1: buildVariant(fontWeightLight, 96, 1.167, -1.5), - h2: buildVariant(fontWeightLight, 60, 1.2, -0.5), - h3: buildVariant(fontWeightRegular, 48, 1.167, 0), - h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25), - h5: buildVariant(fontWeightRegular, 24, 1.334, 0), - h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15), - subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15), - subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1), - body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15), - body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15), - button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps), - caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4), - overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps), - inherit: { - fontFamily: "inherit", - fontWeight: "inherit", - fontSize: "inherit", - lineHeight: "inherit", - letterSpacing: "inherit" - } - }; - return deepmerge(_extends({ - htmlFontSize, - pxToRem, - fontFamily, - fontSize, - fontWeightLight, - fontWeightRegular, - fontWeightMedium, - fontWeightBold - }, variants), other, { - clone: false - }); - } - const shadowKeyUmbraOpacity = 0.2; - const shadowKeyPenumbraOpacity = 0.14; - const shadowAmbientShadowOpacity = 0.12; - function createShadow(...px) { - return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(","); - } - const shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)]; - const shadows$1 = shadows; - const _excluded$3 = ["duration", "easing", "delay"]; - const easing = { - easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", - easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", - easeIn: "cubic-bezier(0.4, 0, 1, 1)", - sharp: "cubic-bezier(0.4, 0, 0.6, 1)" - }; - const duration = { - shortest: 150, - shorter: 200, - short: 250, - standard: 300, - complex: 375, - enteringScreen: 225, - leavingScreen: 195 - }; - function formatMs(milliseconds) { - return `${Math.round(milliseconds)}ms`; - } - function getAutoHeightDuration(height2) { - if (!height2) { - return 0; - } - const constant = height2 / 36; - return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10); - } - function createTransitions(inputTransitions) { - const mergedEasing = _extends({}, easing, inputTransitions.easing); - const mergedDuration = _extends({}, duration, inputTransitions.duration); - const create = (props = ["all"], options = {}) => { - const { - duration: durationOption = mergedDuration.standard, - easing: easingOption = mergedEasing.easeInOut, - delay = 0 - } = options, other = _objectWithoutPropertiesLoose(options, _excluded$3); - { - const isString = (value) => typeof value === "string"; - const isNumber = (value) => !isNaN(parseFloat(value)); - if (!isString(props) && !Array.isArray(props)) { - console.error('MUI: Argument "props" must be a string or Array.'); - } - if (!isNumber(durationOption) && !isString(durationOption)) { - console.error(`MUI: Argument "duration" must be a number or a string but found ${durationOption}.`); - } - if (!isString(easingOption)) { - console.error('MUI: Argument "easing" must be a string.'); - } - if (!isNumber(delay) && !isString(delay)) { - console.error('MUI: Argument "delay" must be a number or a string.'); - } - if (Object.keys(other).length !== 0) { - console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(",")}].`); - } - } - return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(","); - }; - return _extends({ - getAutoHeightDuration, - create - }, inputTransitions, { - easing: mergedEasing, - duration: mergedDuration - }); - } - const zIndex = { - mobileStepper: 1e3, - fab: 1050, - speedDial: 1050, - appBar: 1100, - drawer: 1200, - modal: 1300, - snackbar: 1400, - tooltip: 1500 - }; - const zIndex$1 = zIndex; - const _excluded$2 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; - function createTheme(options = {}, ...args) { - const { - mixins: mixinsInput = {}, - palette: paletteInput = {}, - transitions: transitionsInput = {}, - typography: typographyInput = {} - } = options, other = _objectWithoutPropertiesLoose(options, _excluded$2); - if (options.vars) { - throw new Error(`MUI: \`vars\` is a private field used for CSS variables support. -Please use another name.`); - } - const palette = createPalette(paletteInput); - const systemTheme = createTheme$1(options); - let muiTheme = deepmerge(systemTheme, { - mixins: createMixins(systemTheme.breakpoints, mixinsInput), - palette, - shadows: shadows$1.slice(), - typography: createTypography(palette, typographyInput), - transitions: createTransitions(transitionsInput), - zIndex: _extends({}, zIndex$1) - }); - muiTheme = deepmerge(muiTheme, other); - muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme); - { - const stateClasses = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"]; - const traverse = (node2, component) => { - let key; - for (key in node2) { - const child = node2[key]; - if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) { - { - const stateClass = generateUtilityClass("", key); - console.error([`MUI: The \`${component}\` component increases the CSS specificity of the \`${key}\` internal state.`, "You can not override it like this: ", JSON.stringify(node2, null, 2), "", `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({ - root: { - [`&.${stateClass}`]: child - } - }, null, 2), "", "https://mui.com/r/state-classes-guide"].join("\n")); - } - node2[key] = {}; - } - } - }; - Object.keys(muiTheme.components).forEach((component) => { - const styleOverrides = muiTheme.components[component].styleOverrides; - if (styleOverrides && component.indexOf("Mui") === 0) { - traverse(styleOverrides, component); - } - }); - } - muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig); - muiTheme.unstable_sx = function sx(props) { - return styleFunctionSx$1({ - sx: props, - theme: this - }); - }; - return muiTheme; - } - const defaultTheme = createTheme(); - const defaultTheme$1 = defaultTheme; - const THEME_ID = "$$material"; - const rootShouldForwardProp = (prop) => shouldForwardProp(prop) && prop !== "classes"; - const styled$1 = createStyled({ - themeId: THEME_ID, - defaultTheme: defaultTheme$1, - rootShouldForwardProp - }); - const styled$2 = styled$1; - function useThemeProps({ - props, - name - }) { - return useThemeProps$1({ - props, - name, - defaultTheme: defaultTheme$1, - themeId: THEME_ID - }); - } - function getSvgIconUtilityClass(slot) { - return generateUtilityClass("MuiSvgIcon", slot); - } - generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); - const _excluded$1 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"]; - const React$3 = window["React"]; - const useUtilityClasses$1 = (ownerState) => { - const { - color: color2, - fontSize, - classes - } = ownerState; - const slots = { - root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`] - }; - return composeClasses(slots, getSvgIconUtilityClass, classes); - }; - const SvgIconRoot = styled$2("svg", { - name: "MuiSvgIcon", - slot: "Root", - overridesResolver: (props, styles) => { - const { - ownerState - } = props; - return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]]; - } - })(({ - theme, - ownerState - }) => { - var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action; - return { - userSelect: "none", - width: "1em", - height: "1em", - display: "inline-block", - fill: "currentColor", - flexShrink: 0, - transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, "fill", { - duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter - }), - fontSize: { - inherit: "inherit", - small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || "1.25rem", - medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || "1.5rem", - large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || "2.1875rem" - }[ownerState.fontSize], - color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : { - action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active, - disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled, - inherit: void 0 - }[ownerState.color] - }; - }); - const SvgIcon = /* @__PURE__ */ React$3.forwardRef(function SvgIcon2(inProps, ref) { - const props = useThemeProps({ - props: inProps, - name: "MuiSvgIcon" - }); - const { - children, - className, - color: color2 = "inherit", - component = "svg", - fontSize = "medium", - htmlColor, - inheritViewBox = false, - titleAccess, - viewBox = "0 0 24 24" - } = props, other = _objectWithoutPropertiesLoose(props, _excluded$1); - const ownerState = _extends({}, props, { - color: color2, - component, - fontSize, - instanceFontSize: inProps.fontSize, - inheritViewBox, - viewBox - }); - const more = {}; - if (!inheritViewBox) { - more.viewBox = viewBox; - } - const classes = useUtilityClasses$1(ownerState); - return /* @__PURE__ */ jsxRuntime.exports.jsxs(SvgIconRoot, _extends({ - as: component, - className: clsx(classes.root, className), - focusable: "false", - color: htmlColor, - "aria-hidden": titleAccess ? void 0 : true, - role: titleAccess ? "img" : void 0, - ref - }, more, other, { - ownerState, - children: [children, titleAccess ? /* @__PURE__ */ jsxRuntime.exports.jsx("title", { - children: titleAccess - }) : null] - })); - }); - SvgIcon.propTypes = { - children: propTypes.exports.node, - classes: propTypes.exports.object, - className: propTypes.exports.string, - color: propTypes.exports.oneOfType([propTypes.exports.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), propTypes.exports.string]), - component: propTypes.exports.elementType, - fontSize: propTypes.exports.oneOfType([propTypes.exports.oneOf(["inherit", "large", "medium", "small"]), propTypes.exports.string]), - htmlColor: propTypes.exports.string, - inheritViewBox: propTypes.exports.bool, - shapeRendering: propTypes.exports.string, - sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object]), - titleAccess: propTypes.exports.string, - viewBox: propTypes.exports.string - }; - SvgIcon.muiName = "SvgIcon"; - const SvgIcon$1 = SvgIcon; - const React$2 = window["React"]; - function createSvgIcon$1(path, displayName) { - function Component(props, ref) { - return /* @__PURE__ */ jsxRuntime.exports.jsx(SvgIcon$1, _extends({ - "data-testid": `${displayName}Icon`, - ref - }, props, { - children: path - })); - } - { - Component.displayName = `${displayName}Icon`; - } - Component.muiName = SvgIcon$1.muiName; - return /* @__PURE__ */ React$2.memo(/* @__PURE__ */ React$2.forwardRef(Component)); - } - const Person = createSvgIcon$1(/* @__PURE__ */ jsxRuntime.exports.jsx("path", { - d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" - }), "Person"); - function getAvatarUtilityClass(slot) { - return generateUtilityClass("MuiAvatar", slot); - } - generateUtilityClasses("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]); - const _excluded = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"]; - const React$1 = window["React"]; - const useUtilityClasses = (ownerState) => { - const { - classes, - variant, - colorDefault - } = ownerState; - const slots = { - root: ["root", variant, colorDefault && "colorDefault"], - img: ["img"], - fallback: ["fallback"] - }; - return composeClasses(slots, getAvatarUtilityClass, classes); - }; - const AvatarRoot = styled$2("div", { - name: "MuiAvatar", - slot: "Root", - overridesResolver: (props, styles) => { - const { - ownerState - } = props; - return [styles.root, styles[ownerState.variant], ownerState.colorDefault && styles.colorDefault]; - } - })(({ - theme, - ownerState - }) => _extends({ - position: "relative", - display: "flex", - alignItems: "center", - justifyContent: "center", - flexShrink: 0, - width: 40, - height: 40, - fontFamily: theme.typography.fontFamily, - fontSize: theme.typography.pxToRem(20), - lineHeight: 1, - borderRadius: "50%", - overflow: "hidden", - userSelect: "none" - }, ownerState.variant === "rounded" && { - borderRadius: (theme.vars || theme).shape.borderRadius - }, ownerState.variant === "square" && { - borderRadius: 0 - }, ownerState.colorDefault && _extends({ - color: (theme.vars || theme).palette.background.default - }, theme.vars ? { - backgroundColor: theme.vars.palette.Avatar.defaultBg - } : { - backgroundColor: theme.palette.mode === "light" ? theme.palette.grey[400] : theme.palette.grey[600] - }))); - const AvatarImg = styled$2("img", { - name: "MuiAvatar", - slot: "Img", - overridesResolver: (props, styles) => styles.img - })({ - width: "100%", - height: "100%", - textAlign: "center", - objectFit: "cover", - color: "transparent", - textIndent: 1e4 - }); - const AvatarFallback = styled$2(Person, { - name: "MuiAvatar", - slot: "Fallback", - overridesResolver: (props, styles) => styles.fallback - })({ - width: "75%", - height: "75%" - }); - function useLoaded({ - crossOrigin, - referrerPolicy, - src, - srcSet - }) { - const [loaded, setLoaded] = React$1.useState(false); - React$1.useEffect(() => { - if (!src && !srcSet) { - return void 0; - } - setLoaded(false); - let active = true; - const image = new Image(); - image.onload = () => { - if (!active) { - return; - } - setLoaded("loaded"); - }; - image.onerror = () => { - if (!active) { - return; - } - setLoaded("error"); - }; - image.crossOrigin = crossOrigin; - image.referrerPolicy = referrerPolicy; - image.src = src; - if (srcSet) { - image.srcset = srcSet; - } - return () => { - active = false; - }; - }, [crossOrigin, referrerPolicy, src, srcSet]); - return loaded; - } - const Avatar$1 = /* @__PURE__ */ React$1.forwardRef(function Avatar2(inProps, ref) { - const props = useThemeProps({ - props: inProps, - name: "MuiAvatar" - }); - const { - alt, - children: childrenProp, - className, - component = "div", - imgProps, - sizes, - src, - srcSet, - variant = "circular" - } = props, other = _objectWithoutPropertiesLoose(props, _excluded); - let children = null; - const loaded = useLoaded(_extends({}, imgProps, { - src, - srcSet - })); - const hasImg = src || srcSet; - const hasImgNotFailing = hasImg && loaded !== "error"; - const ownerState = _extends({}, props, { - colorDefault: !hasImgNotFailing, - component, - variant - }); - const classes = useUtilityClasses(ownerState); - if (hasImgNotFailing) { - children = /* @__PURE__ */ jsxRuntime.exports.jsx(AvatarImg, _extends({ - alt, - src, - srcSet, - sizes, - ownerState, - className: classes.img - }, imgProps)); - } else if (childrenProp != null) { - children = childrenProp; - } else if (hasImg && alt) { - children = alt[0]; - } else { - children = /* @__PURE__ */ jsxRuntime.exports.jsx(AvatarFallback, { - ownerState, - className: classes.fallback - }); - } - return /* @__PURE__ */ jsxRuntime.exports.jsx(AvatarRoot, _extends({ - as: component, - ownerState, - className: clsx(classes.root, className), - ref - }, other, { - children - })); - }); - Avatar$1.propTypes = { - alt: propTypes.exports.string, - children: propTypes.exports.node, - classes: propTypes.exports.object, - className: propTypes.exports.string, - component: propTypes.exports.elementType, - imgProps: propTypes.exports.object, - sizes: propTypes.exports.string, - src: propTypes.exports.string, - srcSet: propTypes.exports.string, - sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object]), - variant: propTypes.exports.oneOfType([propTypes.exports.oneOf(["circular", "rounded", "square"]), propTypes.exports.string]) - }; - const Avatar$2 = Avatar$1; - function stylis_min(W2) { - function M2(d, c2, e, h, a) { - for (var m = 0, b2 = 0, v2 = 0, n = 0, q2, g2, x2 = 0, K2 = 0, k2, u2 = k2 = q2 = 0, l2 = 0, r2 = 0, I2 = 0, t = 0, B3 = e.length, J2 = B3 - 1, y, f = "", p = "", F3 = "", G3 = "", C; l2 < B3; ) { - g2 = e.charCodeAt(l2); - l2 === J2 && 0 !== b2 + n + v2 + m && (0 !== b2 && (g2 = 47 === b2 ? 10 : 47), n = v2 = m = 0, B3++, J2++); - if (0 === b2 + n + v2 + m) { - if (l2 === J2 && (0 < r2 && (f = f.replace(N2, "")), 0 < f.trim().length)) { - switch (g2) { - case 32: - case 9: - case 59: - case 13: - case 10: - break; - default: - f += e.charAt(l2); - } - g2 = 59; - } - switch (g2) { - case 123: - f = f.trim(); - q2 = f.charCodeAt(0); - k2 = 1; - for (t = ++l2; l2 < B3; ) { - switch (g2 = e.charCodeAt(l2)) { - case 123: - k2++; - break; - case 125: - k2--; - break; - case 47: - switch (g2 = e.charCodeAt(l2 + 1)) { - case 42: - case 47: - a: { - for (u2 = l2 + 1; u2 < J2; ++u2) { - switch (e.charCodeAt(u2)) { - case 47: - if (42 === g2 && 42 === e.charCodeAt(u2 - 1) && l2 + 2 !== u2) { - l2 = u2 + 1; - break a; - } - break; - case 10: - if (47 === g2) { - l2 = u2 + 1; - break a; - } - } - } - l2 = u2; - } - } - break; - case 91: - g2++; - case 40: - g2++; - case 34: - case 39: - for (; l2++ < J2 && e.charCodeAt(l2) !== g2; ) { - } - } - if (0 === k2) - break; - l2++; - } - k2 = e.substring(t, l2); - 0 === q2 && (q2 = (f = f.replace(ca, "").trim()).charCodeAt(0)); - switch (q2) { - case 64: - 0 < r2 && (f = f.replace(N2, "")); - g2 = f.charCodeAt(1); - switch (g2) { - case 100: - case 109: - case 115: - case 45: - r2 = c2; - break; - default: - r2 = O; - } - k2 = M2(c2, r2, k2, g2, a + 1); - t = k2.length; - 0 < A2 && (r2 = X2(O, f, I2), C = H2(3, k2, r2, c2, D2, z2, t, g2, a, h), f = r2.join(""), void 0 !== C && 0 === (t = (k2 = C.trim()).length) && (g2 = 0, k2 = "")); - if (0 < t) - switch (g2) { - case 115: - f = f.replace(da, ea); - case 100: - case 109: - case 45: - k2 = f + "{" + k2 + "}"; - break; - case 107: - f = f.replace(fa, "$1 $2"); - k2 = f + "{" + k2 + "}"; - k2 = 1 === w2 || 2 === w2 && L2("@" + k2, 3) ? "@-webkit-" + k2 + "@" + k2 : "@" + k2; - break; - default: - k2 = f + k2, 112 === h && (k2 = (p += k2, "")); - } - else - k2 = ""; - break; - default: - k2 = M2(c2, X2(c2, f, I2), k2, h, a + 1); - } - F3 += k2; - k2 = I2 = r2 = u2 = q2 = 0; - f = ""; - g2 = e.charCodeAt(++l2); - break; - case 125: - case 59: - f = (0 < r2 ? f.replace(N2, "") : f).trim(); - if (1 < (t = f.length)) - switch (0 === u2 && (q2 = f.charCodeAt(0), 45 === q2 || 96 < q2 && 123 > q2) && (t = (f = f.replace(" ", ":")).length), 0 < A2 && void 0 !== (C = H2(1, f, c2, d, D2, z2, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = "\0\0"), q2 = f.charCodeAt(0), g2 = f.charCodeAt(1), q2) { - case 0: - break; - case 64: - if (105 === g2 || 99 === g2) { - G3 += f + e.charAt(l2); - break; - } - default: - 58 !== f.charCodeAt(t - 1) && (p += P2(f, q2, g2, f.charCodeAt(2))); - } - I2 = r2 = u2 = q2 = 0; - f = ""; - g2 = e.charCodeAt(++l2); - } - } - switch (g2) { - case 13: - case 10: - 47 === b2 ? b2 = 0 : 0 === 1 + q2 && 107 !== h && 0 < f.length && (r2 = 1, f += "\0"); - 0 < A2 * Y2 && H2(0, f, c2, d, D2, z2, p.length, h, a, h); - z2 = 1; - D2++; - break; - case 59: - case 125: - if (0 === b2 + n + v2 + m) { - z2++; - break; - } - default: - z2++; - y = e.charAt(l2); - switch (g2) { - case 9: - case 32: - if (0 === n + m + b2) - switch (x2) { - case 44: - case 58: - case 9: - case 32: - y = ""; - break; - default: - 32 !== g2 && (y = " "); - } - break; - case 0: - y = "\\0"; - break; - case 12: - y = "\\f"; - break; - case 11: - y = "\\v"; - break; - case 38: - 0 === n + b2 + m && (r2 = I2 = 1, y = "\f" + y); - break; - case 108: - if (0 === n + b2 + m + E2 && 0 < u2) - switch (l2 - u2) { - case 2: - 112 === x2 && 58 === e.charCodeAt(l2 - 3) && (E2 = x2); - case 8: - 111 === K2 && (E2 = K2); - } - break; - case 58: - 0 === n + b2 + m && (u2 = l2); - break; - case 44: - 0 === b2 + v2 + n + m && (r2 = 1, y += "\r"); - break; - case 34: - case 39: - 0 === b2 && (n = n === g2 ? 0 : 0 === n ? g2 : n); - break; - case 91: - 0 === n + b2 + v2 && m++; - break; - case 93: - 0 === n + b2 + v2 && m--; - break; - case 41: - 0 === n + b2 + m && v2--; - break; - case 40: - if (0 === n + b2 + m) { - if (0 === q2) - switch (2 * x2 + 3 * K2) { - case 533: - break; - default: - q2 = 1; - } - v2++; - } - break; - case 64: - 0 === b2 + v2 + n + m + u2 + k2 && (k2 = 1); - break; - case 42: - case 47: - if (!(0 < n + m + v2)) - switch (b2) { - case 0: - switch (2 * g2 + 3 * e.charCodeAt(l2 + 1)) { - case 235: - b2 = 47; - break; - case 220: - t = l2, b2 = 42; - } - break; - case 42: - 47 === g2 && 42 === x2 && t + 2 !== l2 && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l2 + 1)), y = "", b2 = 0); - } - } - 0 === b2 && (f += y); - } - K2 = x2; - x2 = g2; - l2++; - } - t = p.length; - if (0 < t) { - r2 = c2; - if (0 < A2 && (C = H2(2, p, r2, d, D2, z2, t, h, a, h), void 0 !== C && 0 === (p = C).length)) - return G3 + p + F3; - p = r2.join(",") + "{" + p + "}"; - if (0 !== w2 * E2) { - 2 !== w2 || L2(p, 2) || (E2 = 0); - switch (E2) { - case 111: - p = p.replace(ha, ":-moz-$1") + p; - break; - case 112: - p = p.replace(Q2, "::-webkit-input-$1") + p.replace(Q2, "::-moz-$1") + p.replace(Q2, ":-ms-input-$1") + p; - } - E2 = 0; - } - } - return G3 + p + F3; - } - function X2(d, c2, e) { - var h = c2.trim().split(ia); - c2 = h; - var a = h.length, m = d.length; - switch (m) { - case 0: - case 1: - var b2 = 0; - for (d = 0 === m ? "" : d[0] + " "; b2 < a; ++b2) { - c2[b2] = Z2(d, c2[b2], e).trim(); - } - break; - default: - var v2 = b2 = 0; - for (c2 = []; b2 < a; ++b2) { - for (var n = 0; n < m; ++n) { - c2[v2++] = Z2(d[n] + " ", h[b2], e).trim(); - } - } - } - return c2; - } - function Z2(d, c2, e) { - var h = c2.charCodeAt(0); - 33 > h && (h = (c2 = c2.trim()).charCodeAt(0)); - switch (h) { - case 38: - return c2.replace(F2, "$1" + d.trim()); - case 58: - return d.trim() + c2.replace(F2, "$1" + d.trim()); - default: - if (0 < 1 * e && 0 < c2.indexOf("\f")) - return c2.replace(F2, (58 === d.charCodeAt(0) ? "" : "$1") + d.trim()); - } - return d + c2; - } - function P2(d, c2, e, h) { - var a = d + ";", m = 2 * c2 + 3 * e + 4 * h; - if (944 === m) { - d = a.indexOf(":", 9) + 1; - var b2 = a.substring(d, a.length - 1).trim(); - b2 = a.substring(0, d).trim() + b2 + ";"; - return 1 === w2 || 2 === w2 && L2(b2, 1) ? "-webkit-" + b2 + b2 : b2; - } - if (0 === w2 || 2 === w2 && !L2(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; - b2 = a.substring(a.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"); - return "-webkit-box-pack" + b2 + "-webkit-" + a + "-ms-flex-pack" + b2 + a; - case 1005: - return ka.test(a) ? a.replace(aa, ":-webkit-") + a.replace(aa, ":-moz-") + a : a; - case 1e3: - b2 = a.substring(13).trim(); - c2 = b2.indexOf("-") + 1; - switch (b2.charCodeAt(0) + b2.charCodeAt(c2)) { - case 226: - b2 = a.replace(G2, "tb"); - break; - case 232: - b2 = a.replace(G2, "tb-rl"); - break; - case 220: - b2 = a.replace(G2, "lr"); - break; - default: - return a; - } - return "-webkit-" + a + "-ms-" + b2 + a; - case 1017: - if (-1 === a.indexOf("sticky", 9)) - break; - case 975: - c2 = (a = d).length - 10; - b2 = (33 === a.charCodeAt(c2) ? a.substring(0, c2) : a).substring(d.indexOf(":", 7) + 1).trim(); - switch (m = b2.charCodeAt(0) + (b2.charCodeAt(7) | 0)) { - case 203: - if (111 > b2.charCodeAt(8)) - break; - case 115: - a = a.replace(b2, "-webkit-" + b2) + ";" + a; - break; - case 207: - case 102: - a = a.replace(b2, "-webkit-" + (102 < m ? "inline-" : "") + "box") + ";" + a.replace(b2, "-webkit-" + b2) + ";" + a.replace(b2, "-ms-" + b2 + "box") + ";" + a; - } - return a + ";"; - case 938: - if (45 === a.charCodeAt(5)) - switch (a.charCodeAt(6)) { - case 105: - return b2 = a.replace("-items", ""), "-webkit-" + a + "-webkit-box-" + b2 + "-ms-flex-" + b2 + 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 (true === la.test(d)) - return 115 === (b2 = d.substring(d.indexOf(":") + 1)).charCodeAt(0) ? P2(d.replace("stretch", "fill-available"), c2, e, h).replace(":fill-available", ":stretch") : a.replace(b2, "-webkit-" + b2) + a.replace(b2, "-moz-" + b2.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 L2(d, c2) { - var e = d.indexOf(1 === c2 ? ":" : "{"), h = d.substring(0, 3 !== c2 ? e : 10); - e = d.substring(e + 1, d.length - 1); - return R2(2 !== c2 ? h : h.replace(na, "$1"), e, c2); - } - function ea(d, c2) { - var e = P2(c2, c2.charCodeAt(0), c2.charCodeAt(1), c2.charCodeAt(2)); - return e !== c2 + ";" ? e.replace(oa, " or ($1)").substring(4) : "(" + c2 + ")"; - } - function H2(d, c2, e, h, a, m, b2, v2, n, q2) { - for (var g2 = 0, x2 = c2, w3; g2 < A2; ++g2) { - switch (w3 = S2[g2].call(B2, d, x2, e, h, a, m, b2, v2, n, q2)) { - case void 0: - case false: - case true: - case null: - break; - default: - x2 = w3; - } - } - if (x2 !== c2) - return x2; - } - function T2(d) { - switch (d) { - case void 0: - case null: - A2 = S2.length = 0; - break; - default: - if ("function" === typeof d) - S2[A2++] = d; - else if ("object" === typeof d) - for (var c2 = 0, e = d.length; c2 < e; ++c2) { - T2(d[c2]); - } - else - Y2 = !!d | 0; - } - return T2; - } - function U2(d) { - d = d.prefix; - void 0 !== d && (R2 = null, d ? "function" !== typeof d ? w2 = 1 : (w2 = 2, R2 = d) : w2 = 0); - return U2; - } - function B2(d, c2) { - var e = d; - 33 > e.charCodeAt(0) && (e = e.trim()); - V2 = e; - e = [V2]; - if (0 < A2) { - var h = H2(-1, c2, e, e, D2, z2, 0, 0, 0, 0); - void 0 !== h && "string" === typeof h && (c2 = h); - } - var a = M2(O, e, c2, 0, 0); - 0 < A2 && (h = H2(-2, a, e, e, D2, z2, a.length, 0, 0, 0), void 0 !== h && (a = h)); - V2 = ""; - E2 = 0; - z2 = D2 = 1; - return a; - } - var ca = /^\0+/g, N2 = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F2 = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q2 = /::(place)/g, ha = /:(read-only)/g, G2 = /[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\()/, z2 = 1, D2 = 1, E2 = 0, w2 = 1, O = [], S2 = [], A2 = 0, R2 = null, Y2 = 0, V2 = ""; - B2.use = T2; - B2.set = U2; - void 0 !== W2 && U2(W2); - return B2; - } - var unitlessKeys = { - 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 - }; - function memoize(fn) { - var cache = /* @__PURE__ */ Object.create(null); - return function(arg) { - if (cache[arg] === void 0) - cache[arg] = fn(arg); - return cache[arg]; - }; - } - var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|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)-.*))$/; - var isPropValid = /* @__PURE__ */ memoize( - function(prop) { - return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; - } - ); - const r = window["React"]; - window["React"].useState; - const s = window["React"].useContext; - window["React"].useMemo; - window["React"].useEffect; - const c = window["React"].useRef; - const u = window["React"].createElement; - const l = window["React"].useDebugValue; - window["React"].useLayoutEffect; - function v() { - return (v = Object.assign || function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r2 in n) - Object.prototype.hasOwnProperty.call(n, r2) && (e[r2] = n[r2]); - } - return e; - }).apply(this, arguments); - } - var g = function(e, t) { - for (var n = [e[0]], r2 = 0, o = t.length; r2 < o; r2 += 1) - n.push(t[r2], e[r2 + 1]); - return n; - }, S = function(t) { - return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIs$2.exports.typeOf(t); - }, w = Object.freeze([]), E = Object.freeze({}); - function b(e) { - return "function" == typeof e; - } - function _(e) { - return "string" == typeof e && e || e.displayName || e.name || "Component"; - } - function N(e) { - return e && "string" == typeof e.styledComponentId; - } - var A = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", I = "undefined" != typeof window && "HTMLElement" in window, P = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && (void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true)), R = { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document ``\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to ``, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n" }; - function D() { - for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r2 = arguments.length; n < r2; n += 1) - t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]); - return t.forEach(function(t2) { - e = e.replace(/%[a-z]/, t2); - }), e; - } - function j(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r2 = 1; r2 < t; r2++) - n[r2 - 1] = arguments[r2]; - throw new Error(D.apply(void 0, [R[e]].concat(n)).trim()); - } - var T = function() { - function e(e2) { - this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2; - } - var t = e.prototype; - return t.indexOfGroup = function(e2) { - for (var t2 = 0, n = 0; n < e2; n++) - t2 += this.groupSizes[n]; - return t2; - }, t.insertRules = function(e2, t2) { - if (e2 >= this.groupSizes.length) { - for (var n = this.groupSizes, r2 = n.length, o = r2; e2 >= o; ) - (o <<= 1) < 0 && j(16, "" + e2); - this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o; - for (var s2 = r2; s2 < o; s2++) - this.groupSizes[s2] = 0; - } - for (var i = this.indexOfGroup(e2 + 1), a = 0, c2 = t2.length; a < c2; a++) - this.tag.insertRule(i, t2[a]) && (this.groupSizes[e2]++, i++); - }, t.clearGroup = function(e2) { - if (e2 < this.length) { - var t2 = this.groupSizes[e2], n = this.indexOfGroup(e2), r2 = n + t2; - this.groupSizes[e2] = 0; - for (var o = n; o < r2; o++) - this.tag.deleteRule(n); - } - }, t.getGroup = function(e2) { - var t2 = ""; - if (e2 >= this.length || 0 === this.groupSizes[e2]) - return t2; - for (var n = this.groupSizes[e2], r2 = this.indexOfGroup(e2), o = r2 + n, s2 = r2; s2 < o; s2++) - t2 += this.tag.getRule(s2) + "/*!sc*/\n"; - return t2; - }, e; - }(), x = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), V = 1, B = function(e) { - if (x.has(e)) - return x.get(e); - for (; k.has(V); ) - V++; - var t = V++; - return ((0 | t) < 0 || t > 1 << 30) && j(16, "" + t), x.set(e, t), k.set(t, e), t; - }, z = function(e) { - return k.get(e); - }, M = function(e, t) { - t >= V && (V = t + 1), x.set(e, t), k.set(t, e); - }, G = "style[" + A + '][data-styled-version="5.3.10"]', L = new RegExp("^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F = function(e, t, n) { - for (var r2, o = n.split(","), s2 = 0, i = o.length; s2 < i; s2++) - (r2 = o[s2]) && e.registerName(t, r2); - }, Y = function(e, t) { - for (var n = (t.textContent || "").split("/*!sc*/\n"), r2 = [], o = 0, s2 = n.length; o < s2; o++) { - var i = n[o].trim(); - if (i) { - var a = i.match(L); - if (a) { - var c2 = 0 | parseInt(a[1], 10), u2 = a[2]; - 0 !== c2 && (M(u2, c2), F(e, u2, a[3]), e.getTag().insertRules(c2, r2)), r2.length = 0; - } else - r2.push(i); - } - } - }, q = function() { - return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null; - }, H = function(e) { - var t = document.head, n = e || t, r2 = document.createElement("style"), o = function(e2) { - for (var t2 = e2.childNodes, n2 = t2.length; n2 >= 0; n2--) { - var r3 = t2[n2]; - if (r3 && 1 === r3.nodeType && r3.hasAttribute(A)) - return r3; - } - }(n), s2 = void 0 !== o ? o.nextSibling : null; - r2.setAttribute(A, "active"), r2.setAttribute("data-styled-version", "5.3.10"); - var i = q(); - return i && r2.setAttribute("nonce", i), n.insertBefore(r2, s2), r2; - }, $ = function() { - function e(e2) { - var t2 = this.element = H(e2); - t2.appendChild(document.createTextNode("")), this.sheet = function(e3) { - if (e3.sheet) - return e3.sheet; - for (var t3 = document.styleSheets, n = 0, r2 = t3.length; n < r2; n++) { - var o = t3[n]; - if (o.ownerNode === e3) - return o; - } - j(17); - }(t2), this.length = 0; - } - var t = e.prototype; - return t.insertRule = function(e2, t2) { - try { - return this.sheet.insertRule(t2, e2), this.length++, true; - } catch (e3) { - return false; - } - }, t.deleteRule = function(e2) { - this.sheet.deleteRule(e2), this.length--; - }, t.getRule = function(e2) { - var t2 = this.sheet.cssRules[e2]; - return void 0 !== t2 && "string" == typeof t2.cssText ? t2.cssText : ""; - }, e; - }(), W = function() { - function e(e2) { - var t2 = this.element = H(e2); - this.nodes = t2.childNodes, this.length = 0; - } - var t = e.prototype; - return t.insertRule = function(e2, t2) { - if (e2 <= this.length && e2 >= 0) { - var n = document.createTextNode(t2), r2 = this.nodes[e2]; - return this.element.insertBefore(n, r2 || null), this.length++, true; - } - return false; - }, t.deleteRule = function(e2) { - this.element.removeChild(this.nodes[e2]), this.length--; - }, t.getRule = function(e2) { - return e2 < this.length ? this.nodes[e2].textContent : ""; - }, e; - }(), U = function() { - function e(e2) { - this.rules = [], this.length = 0; - } - var t = e.prototype; - return t.insertRule = function(e2, t2) { - return e2 <= this.length && (this.rules.splice(e2, 0, t2), this.length++, true); - }, t.deleteRule = function(e2) { - this.rules.splice(e2, 1), this.length--; - }, t.getRule = function(e2) { - return e2 < this.length ? this.rules[e2] : ""; - }, e; - }(), J = I, X = { isServer: !I, useCSSOMInjection: !P }, Z = function() { - function e(e2, t2, n) { - void 0 === e2 && (e2 = E), void 0 === t2 && (t2 = {}), this.options = v({}, X, {}, e2), this.gs = t2, this.names = new Map(n), this.server = !!e2.isServer, !this.server && I && J && (J = false, function(e3) { - for (var t3 = document.querySelectorAll(G), n2 = 0, r2 = t3.length; n2 < r2; n2++) { - var o = t3[n2]; - o && "active" !== o.getAttribute(A) && (Y(e3, o), o.parentNode && o.parentNode.removeChild(o)); - } - }(this)); - } - e.registerId = function(e2) { - return B(e2); - }; - var t = e.prototype; - return t.reconstructWithOptions = function(t2, n) { - return void 0 === n && (n = true), new e(v({}, this.options, {}, t2), this.gs, n && this.names || void 0); - }, t.allocateGSInstance = function(e2) { - return this.gs[e2] = (this.gs[e2] || 0) + 1; - }, t.getTag = function() { - return this.tag || (this.tag = (n = (t2 = this.options).isServer, r2 = t2.useCSSOMInjection, o = t2.target, e2 = n ? new U(o) : r2 ? new $(o) : new W(o), new T(e2))); - var e2, t2, n, r2, o; - }, t.hasNameForId = function(e2, t2) { - return this.names.has(e2) && this.names.get(e2).has(t2); - }, t.registerName = function(e2, t2) { - if (B(e2), this.names.has(e2)) - this.names.get(e2).add(t2); - else { - var n = /* @__PURE__ */ new Set(); - n.add(t2), this.names.set(e2, n); - } - }, t.insertRules = function(e2, t2, n) { - this.registerName(e2, t2), this.getTag().insertRules(B(e2), n); - }, t.clearNames = function(e2) { - this.names.has(e2) && this.names.get(e2).clear(); - }, t.clearRules = function(e2) { - this.getTag().clearGroup(B(e2)), this.clearNames(e2); - }, t.clearTag = function() { - this.tag = void 0; - }, t.toString = function() { - return function(e2) { - for (var t2 = e2.getTag(), n = t2.length, r2 = "", o = 0; o < n; o++) { - var s2 = z(o); - if (void 0 !== s2) { - var i = e2.names.get(s2), a = t2.getGroup(o); - if (i && a && i.size) { - var c2 = A + ".g" + o + '[id="' + s2 + '"]', u2 = ""; - void 0 !== i && i.forEach(function(e3) { - e3.length > 0 && (u2 += e3 + ","); - }), r2 += "" + a + c2 + '{content:"' + u2 + '"}/*!sc*/\n'; - } - } - } - return r2; - }(this); - }, e; - }(), K = /(a)(d)/gi, Q = function(e) { - return String.fromCharCode(e + (e > 25 ? 39 : 97)); - }; - function ee(e) { - var t, n = ""; - for (t = Math.abs(e); t > 52; t = t / 52 | 0) - n = Q(t % 52) + n; - return (Q(t % 52) + n).replace(K, "$1-$2"); - } - var te = function(e, t) { - for (var n = t.length; n; ) - e = 33 * e ^ t.charCodeAt(--n); - return e; - }, ne = function(e) { - return te(5381, e); - }; - var oe = ne("5.3.10"), se = function() { - function e(e2, t, n) { - this.rules = e2, this.staticRulesId = "", this.isStatic = false, this.componentId = t, this.baseHash = te(oe, t), this.baseStyle = n, Z.registerId(t); - } - return e.prototype.generateAndInjectStyles = function(e2, t, n) { - var r2 = this.componentId, o = []; - if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e2, t, n)), this.isStatic && !n.hash) - if (this.staticRulesId && t.hasNameForId(r2, this.staticRulesId)) - o.push(this.staticRulesId); - else { - var s2 = Ne(this.rules, e2, t, n).join(""), i = ee(te(this.baseHash, s2) >>> 0); - if (!t.hasNameForId(r2, i)) { - var a = n(s2, "." + i, void 0, r2); - t.insertRules(r2, i, a); - } - o.push(i), this.staticRulesId = i; - } - else { - for (var c2 = this.rules.length, u2 = te(this.baseHash, n.hash), l2 = "", d = 0; d < c2; d++) { - var h = this.rules[d]; - if ("string" == typeof h) - l2 += h, u2 = te(u2, h + d); - else if (h) { - var p = Ne(h, e2, t, n), f = Array.isArray(p) ? p.join("") : p; - u2 = te(u2, f + d), l2 += f; - } - } - if (l2) { - var m = ee(u2 >>> 0); - if (!t.hasNameForId(r2, m)) { - var y = n(l2, "." + m, void 0, r2); - t.insertRules(r2, m, y); - } - o.push(m); - } - } - return o.join(" "); - }, e; - }(), ie = /^\s*\/\/.*$/gm, ae = [":", "[", ".", "#"]; - function ce(e) { - var t, n, r2, o, s2 = void 0 === e ? E : e, i = s2.options, a = void 0 === i ? E : i, c2 = s2.plugins, u2 = void 0 === c2 ? w : c2, l2 = new stylis_min(a), d = [], h = function(e2) { - function t2(t3) { - if (t3) - try { - e2(t3 + "}"); - } catch (e3) { - } - } - return function(n2, r3, o2, s3, i2, a2, c3, u3, l3, d2) { - switch (n2) { - case 1: - if (0 === l3 && 64 === r3.charCodeAt(0)) - return e2(r3 + ";"), ""; - break; - case 2: - if (0 === u3) - return r3 + "/*|*/"; - break; - case 3: - switch (u3) { - case 102: - case 112: - return e2(o2[0] + r3), ""; - default: - return r3 + (0 === d2 ? "/*|*/" : ""); - } - case -2: - r3.split("/*|*/}").forEach(t2); - } - }; - }(function(e2) { - d.push(e2); - }), f = function(e2, r3, s3) { - return 0 === r3 && -1 !== ae.indexOf(s3[n.length]) || s3.match(o) ? e2 : "." + t; - }; - function m(e2, s3, i2, a2) { - void 0 === a2 && (a2 = "&"); - var c3 = e2.replace(ie, ""), u3 = s3 && i2 ? i2 + " " + s3 + " { " + c3 + " }" : c3; - return t = a2, n = s3, r2 = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l2(i2 || !s3 ? "" : s3, u3); - } - return l2.use([].concat(u2, [function(e2, t2, o2) { - 2 === e2 && o2.length && o2[0].lastIndexOf(n) > 0 && (o2[0] = o2[0].replace(r2, f)); - }, h, function(e2) { - if (-2 === e2) { - var t2 = d; - return d = [], t2; - } - }])), m.hash = u2.length ? u2.reduce(function(e2, t2) { - return t2.name || j(15), te(e2, t2.name); - }, 5381).toString() : "", m; - } - var ue = r.createContext(); - ue.Consumer; - var de = r.createContext(), he = (de.Consumer, new Z()), pe = ce(); - function fe() { - return s(ue) || he; - } - function me() { - return s(de) || pe; - } - var ve = function() { - function e(e2, t) { - var n = this; - this.inject = function(e3, t2) { - void 0 === t2 && (t2 = pe); - var r2 = n.name + t2.hash; - e3.hasNameForId(n.id, r2) || e3.insertRules(n.id, r2, t2(n.rules, r2, "@keyframes")); - }, this.toString = function() { - return j(12, String(n.name)); - }, this.name = e2, this.id = "sc-keyframes-" + e2, this.rules = t; - } - return e.prototype.getName = function(e2) { - return void 0 === e2 && (e2 = pe), this.name + e2.hash; - }, e; - }(), ge = /([A-Z])/, Se = /([A-Z])/g, we = /^ms-/, Ee = function(e) { - return "-" + e.toLowerCase(); - }; - function be(e) { - return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e; - } - var _e = function(e) { - return null == e || false === e || "" === e; - }; - function Ne(e, n, r2, o) { - if (Array.isArray(e)) { - for (var s2, i = [], a = 0, c2 = e.length; a < c2; a += 1) - "" !== (s2 = Ne(e[a], n, r2, o)) && (Array.isArray(s2) ? i.push.apply(i, s2) : i.push(s2)); - return i; - } - if (_e(e)) - return ""; - if (N(e)) - return "." + e.styledComponentId; - if (b(e)) { - if ("function" != typeof (l2 = e) || l2.prototype && l2.prototype.isReactComponent || !n) - return e; - var u2 = e(n); - return reactIs$2.exports.isElement(u2) && console.warn(_(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), Ne(u2, n, r2, o); - } - var l2; - return e instanceof ve ? r2 ? (e.inject(r2, o), e.getName(o)) : e : S(e) ? function e2(t, n2) { - var r3, o2, s3 = []; - for (var i2 in t) - t.hasOwnProperty(i2) && !_e(t[i2]) && (Array.isArray(t[i2]) && t[i2].isCss || b(t[i2]) ? s3.push(be(i2) + ":", t[i2], ";") : S(t[i2]) ? s3.push.apply(s3, e2(t[i2], i2)) : s3.push(be(i2) + ": " + (r3 = i2, null == (o2 = t[i2]) || "boolean" == typeof o2 || "" === o2 ? "" : "number" != typeof o2 || 0 === o2 || r3 in unitlessKeys || r3.startsWith("--") ? String(o2).trim() : o2 + "px") + ";")); - return n2 ? [n2 + " {"].concat(s3, ["}"]) : s3; - }(e) : e.toString(); - } - var Ae = function(e) { - return Array.isArray(e) && (e.isCss = true), e; - }; - function Ce(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r2 = 1; r2 < t; r2++) - n[r2 - 1] = arguments[r2]; - return b(e) || S(e) ? Ae(Ne(g(w, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ae(Ne(g(e, n))); - } - var Ie = /invalid hook call/i, Pe = /* @__PURE__ */ new Set(), Oe = function(e, t) { - { - var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.", r2 = console.error; - try { - var o = true; - console.error = function(e2) { - if (Ie.test(e2)) - o = false, Pe.delete(n); - else { - for (var t2 = arguments.length, s2 = new Array(t2 > 1 ? t2 - 1 : 0), i = 1; i < t2; i++) - s2[i - 1] = arguments[i]; - r2.apply(void 0, [e2].concat(s2)); - } - }, c(), o && !Pe.has(n) && (console.warn(n), Pe.add(n)); - } catch (e2) { - Ie.test(e2.message) && Pe.delete(n); - } finally { - console.error = r2; - } - } - }, Re = function(e, t, n) { - return void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme; - }, De = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, je = /(^-|-$)/g; - function Te(e) { - return e.replace(De, "-").replace(je, ""); - } - var xe = function(e) { - return ee(ne(e) >>> 0); - }; - function ke(e) { - return "string" == typeof e && e.charAt(0) === e.charAt(0).toLowerCase(); - } - var Ve = function(e) { - return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e); - }, Be = function(e) { - return "__proto__" !== e && "constructor" !== e && "prototype" !== e; - }; - function ze(e, t, n) { - var r2 = e[n]; - Ve(t) && Ve(r2) ? Me(r2, t) : e[n] = t; - } - function Me(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r2 = 1; r2 < t; r2++) - n[r2 - 1] = arguments[r2]; - for (var o = 0, s2 = n; o < s2.length; o++) { - var i = s2[o]; - if (Ve(i)) - for (var a in i) - Be(a) && ze(e, i[a], a); - } - return e; - } - var Ge = r.createContext(); - Ge.Consumer; - var Ye = {}; - function qe(e, t, n) { - var o = N(e), i = !ke(e), a = t.attrs, c2 = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? function(e2, t2) { - var n2 = "string" != typeof e2 ? "sc" : Te(e2); - Ye[n2] = (Ye[n2] || 0) + 1; - var r2 = n2 + "-" + xe("5.3.10" + n2 + Ye[n2]); - return t2 ? t2 + "-" + r2 : r2; - }(t.displayName, t.parentComponentId) : d, p = t.displayName, f = void 0 === p ? function(e2) { - return ke(e2) ? "styled." + e2 : "Styled(" + _(e2) + ")"; - }(e) : p, g2 = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h, S2 = o && e.attrs ? Array.prototype.concat(e.attrs, c2).filter(Boolean) : c2, A2 = t.shouldForwardProp; - o && e.shouldForwardProp && (A2 = t.shouldForwardProp ? function(n2, r2, o2) { - return e.shouldForwardProp(n2, r2, o2) && t.shouldForwardProp(n2, r2, o2); - } : e.shouldForwardProp); - var C, I2 = new se(n, g2, o ? e.componentStyle : void 0), P2 = I2.isStatic && 0 === c2.length, O = function(e2, t2) { - return function(e3, t3, n2, r2) { - var o2 = e3.attrs, i2 = e3.componentStyle, a2 = e3.defaultProps, c3 = e3.foldedComponentIds, d2 = e3.shouldForwardProp, h2 = e3.styledComponentId, p2 = e3.target; - l(h2); - var f2 = function(e4, t4, n3) { - void 0 === e4 && (e4 = E); - var r3 = v({}, t4, { theme: e4 }), o3 = {}; - return n3.forEach(function(e5) { - var t5, n4, s2, i3 = e5; - for (t5 in b(i3) && (i3 = i3(r3)), i3) - r3[t5] = o3[t5] = "className" === t5 ? (n4 = o3[t5], s2 = i3[t5], n4 && s2 ? n4 + " " + s2 : n4 || s2) : i3[t5]; - }), [r3, o3]; - }(Re(t3, s(Ge), a2) || E, t3, o2), y = f2[0], g3 = f2[1], S3 = function(e4, t4, n3, r3) { - var o3 = fe(), s2 = me(), i3 = t4 ? e4.generateAndInjectStyles(E, o3, s2) : e4.generateAndInjectStyles(n3, o3, s2); - return l(i3), !t4 && r3 && r3(i3), i3; - }(i2, r2, y, e3.warnTooManyClasses), w2 = n2, _2 = g3.$as || t3.$as || g3.as || t3.as || p2, N2 = ke(_2), A3 = g3 !== t3 ? v({}, t3, {}, g3) : t3, C2 = {}; - for (var I3 in A3) - "$" !== I3[0] && "as" !== I3 && ("forwardedAs" === I3 ? C2.as = A3[I3] : (d2 ? d2(I3, isPropValid, _2) : !N2 || isPropValid(I3)) && (C2[I3] = A3[I3])); - return t3.style && g3.style !== t3.style && (C2.style = v({}, t3.style, {}, g3.style)), C2.className = Array.prototype.concat(c3, h2, S3 !== h2 ? S3 : null, t3.className, g3.className).filter(Boolean).join(" "), C2.ref = w2, u(_2, C2); - }(C, e2, t2, P2); - }; - return O.displayName = f, (C = r.forwardRef(O)).attrs = S2, C.componentStyle = I2, C.displayName = f, C.shouldForwardProp = A2, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : w, C.styledComponentId = g2, C.target = o ? e.target : e, C.withComponent = function(e2) { - var r2 = t.componentId, o2 = function(e3, t2) { - if (null == e3) - return {}; - var n2, r3, o3 = {}, s3 = Object.keys(e3); - for (r3 = 0; r3 < s3.length; r3++) - n2 = s3[r3], t2.indexOf(n2) >= 0 || (o3[n2] = e3[n2]); - return o3; - }(t, ["componentId"]), s2 = r2 && r2 + "-" + (ke(e2) ? e2 : Te(_(e2))); - return qe(e2, v({}, o2, { attrs: S2, componentId: s2 }), n); - }, Object.defineProperty(C, "defaultProps", { get: function() { - return this._foldedDefaultProps; - }, set: function(t2) { - this._foldedDefaultProps = o ? Me({}, e.defaultProps, t2) : t2; - } }), Oe(f, g2), C.warnTooManyClasses = function(e2, t2) { - var n2 = {}, r2 = false; - return function(o2) { - if (!r2 && (n2[o2] = true, Object.keys(n2).length >= 200)) { - var s2 = t2 ? ' with the id of "' + t2 + '"' : ""; - console.warn("Over 200 classes were generated for component " + e2 + s2 + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n "), r2 = true, n2 = {}; - } - }; - }(f, g2), Object.defineProperty(C, "toString", { value: function() { - return "." + C.styledComponentId; - } }), i && hoistNonReactStatics_cjs(C, e, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true, withComponent: true }), C; - } - var He = function(e) { - return function e2(t, r2, o) { - if (void 0 === o && (o = E), !reactIs$2.exports.isValidElementType(r2)) - return j(1, String(r2)); - var s2 = function() { - return t(r2, o, Ce.apply(void 0, arguments)); - }; - return s2.withConfig = function(n) { - return e2(t, r2, v({}, o, {}, n)); - }, s2.attrs = function(n) { - return e2(t, r2, v({}, o, { attrs: Array.prototype.concat(o.attrs, n).filter(Boolean) })); - }, s2; - }(qe, e); - }; - ["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", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function(e) { - He[e] = He(e); - }); - "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1); - const styled = He; - const Animation = styled.div` +} });`);return C_(I,"light",z,u),C_(I,"dark",Z,u),I.contrastText||(I.contrastText=P(I.main)),I},H={dark:Xf,light:S_};return H[a]||console.error(`MUI: The palette mode \`${a}\` is not supported.`),Mr(qe({common:qe({},Da),mode:a,primary:k({color:h,name:"primary"}),secondary:k({color:p,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:k({color:y,name:"error"}),warning:k({color:T,name:"warning"}),info:k({color:x,name:"info"}),success:k({color:C,name:"success"}),grey:Q2,contrastThreshold:r,getContrastText:P,augmentColor:k,tonalOffset:u},H[a]),l)}const uS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function cS(i){return Math.round(i*1e5)/1e5}const A_={textTransform:"uppercase"},E_='"Roboto", "Helvetica", "Arial", sans-serif';function fS(i,a){const r=typeof a=="function"?a(i):a,{fontFamily:u=E_,fontSize:l=14,fontWeightLight:h=300,fontWeightRegular:p=400,fontWeightMedium:y=500,fontWeightBold:x=700,htmlFontSize:C=16,allVariants:T,pxToRem:P}=r,k=br(r,uS);typeof l!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof C!="number"&&console.error("MUI: `htmlFontSize` is required to be a number.");const H=l/14,M=P||(B=>`${B/C*H}rem`),I=(B,z,Z,N,X)=>qe({fontFamily:u,fontWeight:B,fontSize:M(z),lineHeight:Z},u===E_?{letterSpacing:`${cS(N/z)}em`}:{},X,T),D={h1:I(h,96,1.167,-1.5),h2:I(h,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(y,14,1.75,.4,A_),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,A_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mr(qe({htmlFontSize:C,pxToRem:M,fontFamily:u,fontSize:l,fontWeightLight:h,fontWeightRegular:p,fontWeightMedium:y,fontWeightBold:x},D),k,{clone:!1})}const lS=.2,dS=.14,hS=.12;function Gt(...i){return[`${i[0]}px ${i[1]}px ${i[2]}px ${i[3]}px rgba(0,0,0,${lS})`,`${i[4]}px ${i[5]}px ${i[6]}px ${i[7]}px rgba(0,0,0,${dS})`,`${i[8]}px ${i[9]}px ${i[10]}px ${i[11]}px rgba(0,0,0,${hS})`].join(",")}const pS=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],gS=["duration","easing","delay"],vS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R_(i){return`${Math.round(i)}ms`}function _S(i){if(!i)return 0;const a=i/36;return Math.round((4+15*a**.25+a/5)*10)}function yS(i){const a=qe({},vS,i.easing),r=qe({},mS,i.duration);return qe({getAutoHeightDuration:_S,create:(l=["all"],h={})=>{const{duration:p=r.standard,easing:y=a.easeInOut,delay:x=0}=h,C=br(h,gS);{const T=k=>typeof k=="string",P=k=>!isNaN(parseFloat(k));!T(l)&&!Array.isArray(l)&&console.error('MUI: Argument "props" must be a string or Array.'),!P(p)&&!T(p)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${p}.`),T(y)||console.error('MUI: Argument "easing" must be a string.'),!P(x)&&!T(x)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(C).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(C).join(",")}].`)}return(Array.isArray(l)?l:[l]).map(T=>`${T} ${typeof p=="string"?p:R_(p)} ${y} ${typeof x=="string"?x:R_(x)}`).join(",")}},i,{easing:a,duration:r})}const wS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bS(i={},...a){const{mixins:r={},palette:u={},transitions:l={},typography:h={}}=i,p=br(i,xS);if(i.vars)throw new Error("MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.");const y=sS(u),x=qf(i);let C=Mr(x,{mixins:J2(x.breakpoints,r),palette:y,shadows:pS.slice(),typography:fS(y,h),transitions:yS(l),zIndex:qe({},wS)});C=Mr(C,p),C=a.reduce((T,P)=>Mr(T,P),C);{const T=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],P=(k,H)=>{let M;for(M in k){const I=k[M];if(T.indexOf(M)!==-1&&Object.keys(I).length>0){{const D=Pc("",M);console.error([`MUI: The \`${H}\` component increases the CSS specificity of the \`${M}\` internal state.`,"You can not override it like this: ",JSON.stringify(k,null,2),"",`Instead, you need to use the '&.${D}' syntax:`,JSON.stringify({root:{[`&.${D}`]:I}},null,2),"","https://mui.com/r/state-classes-guide"].join(` +`))}k[M]={}}}};Object.keys(C.components).forEach(k=>{const H=C.components[k].styleOverrides;H&&k.indexOf("Mui")===0&&P(H,k)})}return C.unstable_sxConfig=qe({},jf,p==null?void 0:p.unstable_sxConfig),C.unstable_sx=function(P){return Kf({sx:P,theme:this})},C}const T_=bS(),O_="$$material",Zc=H2({themeId:O_,defaultTheme:T_,rootShouldForwardProp:i=>Xc(i)&&i!=="classes"});function P_({props:i,name:a}){return K2({props:i,name:a,defaultTheme:T_,themeId:O_})}function SS(i){return Pc("MuiSvgIcon",i)}Im("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],AS=window.React,ES=i=>{const{color:a,fontSize:r,classes:u}=i,l={root:["root",a!=="inherit"&&`color${Sr(a)}`,`fontSize${Sr(r)}`]};return Tm(l,SS,u)},RS=Zc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(i,a)=>{const{ownerState:r}=i;return[a.root,r.color!=="inherit"&&a[`color${Sr(r.color)}`],a[`fontSize${Sr(r.fontSize)}`]]}})(({theme:i,ownerState:a})=>{var r,u,l,h,p,y,x,C,T,P,k,H,M,I,D,B,z;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(r=i.transitions)==null||(u=r.create)==null?void 0:u.call(r,"fill",{duration:(l=i.transitions)==null||(h=l.duration)==null?void 0:h.shorter}),fontSize:{inherit:"inherit",small:((p=i.typography)==null||(y=p.pxToRem)==null?void 0:y.call(p,20))||"1.25rem",medium:((x=i.typography)==null||(C=x.pxToRem)==null?void 0:C.call(x,24))||"1.5rem",large:((T=i.typography)==null||(P=T.pxToRem)==null?void 0:P.call(T,35))||"2.1875rem"}[a.fontSize],color:(k=(H=(i.vars||i).palette)==null||(M=H[a.color])==null?void 0:M.main)!=null?k:{action:(I=(i.vars||i).palette)==null||(D=I.action)==null?void 0:D.active,disabled:(B=(i.vars||i).palette)==null||(z=B.action)==null?void 0:z.disabled,inherit:void 0}[a.color]}}),Zf=AS.forwardRef(function(a,r){const u=P_({props:a,name:"MuiSvgIcon"}),{children:l,className:h,color:p="inherit",component:y="svg",fontSize:x="medium",htmlColor:C,inheritViewBox:T=!1,titleAccess:P,viewBox:k="0 0 24 24"}=u,H=br(u,CS),M=qe({},u,{color:p,component:y,fontSize:x,instanceFontSize:a.fontSize,inheritViewBox:T,viewBox:k}),I={};T||(I.viewBox=k);const D=ES(M);return Q.exports.jsxs(RS,qe({as:y,className:pm(D.root,h),focusable:"false",color:C,"aria-hidden":P?void 0:!0,role:P?"img":void 0,ref:r},I,H,{ownerState:M,children:[l,P?Q.exports.jsx("title",{children:P}):null]}))});Zf.propTypes={children:We.exports.node,classes:We.exports.object,className:We.exports.string,color:We.exports.oneOfType([We.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),We.exports.string]),component:We.exports.elementType,fontSize:We.exports.oneOfType([We.exports.oneOf(["inherit","large","medium","small"]),We.exports.string]),htmlColor:We.exports.string,inheritViewBox:We.exports.bool,shapeRendering:We.exports.string,sx:We.exports.oneOfType([We.exports.arrayOf(We.exports.oneOfType([We.exports.func,We.exports.object,We.exports.bool])),We.exports.func,We.exports.object]),titleAccess:We.exports.string,viewBox:We.exports.string},Zf.muiName="SvgIcon";const I_=Zf,$_=window.React;function M_(i,a){function r(u,l){return Q.exports.jsx(I_,qe({"data-testid":`${a}Icon`,ref:l},u,{children:i}))}return r.displayName=`${a}Icon`,r.muiName=I_.muiName,$_.memo($_.forwardRef(r))}const TS=M_(Q.exports.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function OS(i){return Pc("MuiAvatar",i)}Im("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const PS=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Jf=window.React,IS=i=>{const{classes:a,variant:r,colorDefault:u}=i;return Tm({root:["root",r,u&&"colorDefault"],img:["img"],fallback:["fallback"]},OS,a)},$S=Zc("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(i,a)=>{const{ownerState:r}=i;return[a.root,a[r.variant],r.colorDefault&&a.colorDefault]}})(({theme:i,ownerState:a})=>qe({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:i.typography.fontFamily,fontSize:i.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},a.variant==="rounded"&&{borderRadius:(i.vars||i).shape.borderRadius},a.variant==="square"&&{borderRadius:0},a.colorDefault&&qe({color:(i.vars||i).palette.background.default},i.vars?{backgroundColor:i.vars.palette.Avatar.defaultBg}:{backgroundColor:i.palette.mode==="light"?i.palette.grey[400]:i.palette.grey[600]}))),MS=Zc("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(i,a)=>a.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),LS=Zc(TS,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(i,a)=>a.fallback})({width:"75%",height:"75%"});function kS({crossOrigin:i,referrerPolicy:a,src:r,srcSet:u}){const[l,h]=Jf.useState(!1);return Jf.useEffect(()=>{if(!r&&!u)return;h(!1);let p=!0;const y=new Image;return y.onload=()=>{!p||h("loaded")},y.onerror=()=>{!p||h("error")},y.crossOrigin=i,y.referrerPolicy=a,y.src=r,u&&(y.srcset=u),()=>{p=!1}},[i,a,r,u]),l}const L_=Jf.forwardRef(function(a,r){const u=P_({props:a,name:"MuiAvatar"}),{alt:l,children:h,className:p,component:y="div",imgProps:x,sizes:C,src:T,srcSet:P,variant:k="circular"}=u,H=br(u,PS);let M=null;const I=kS(qe({},x,{src:T,srcSet:P})),D=T||P,B=D&&I!=="error",z=qe({},u,{colorDefault:!B,component:y,variant:k}),Z=IS(z);return B?M=Q.exports.jsx(MS,qe({alt:l,src:T,srcSet:P,sizes:C,ownerState:z,className:Z.img},x)):h!=null?M=h:D&&l?M=l[0]:M=Q.exports.jsx(LS,{ownerState:z,className:Z.fallback}),Q.exports.jsx($S,qe({as:y,ownerState:z,className:pm(Z.root,p),ref:r},H,{children:M}))});L_.propTypes={alt:We.exports.string,children:We.exports.node,classes:We.exports.object,className:We.exports.string,component:We.exports.elementType,imgProps:We.exports.object,sizes:We.exports.string,src:We.exports.string,srcSet:We.exports.string,sx:We.exports.oneOfType([We.exports.arrayOf(We.exports.oneOfType([We.exports.func,We.exports.object,We.exports.bool])),We.exports.func,We.exports.object]),variant:We.exports.oneOfType([We.exports.oneOf(["circular","rounded","square"]),We.exports.string])};const DS=L_;function FS(i){function a(F,L,U,K,_){for(var ve=0,$=0,Se=0,ge=0,j,b,Pe=0,q=0,ie,Ge=ie=j=0,le=0,Ke=0,rn=0,ze=0,rt=U.length,Rt=rt-1,it,oe="",Le="",Wn="",Lt="",ut;lej)&&(ze=(oe=oe.replace(" ",":")).length),0K&&(K=(L=L.trim()).charCodeAt(0)),K){case 38:return L.replace(B,"$1"+F.trim());case 58:return F.trim()+L.replace(B,"$1"+F.trim());default:if(0<1*U&&0$.charCodeAt(8))break;case 115:_=_.replace($,"-webkit-"+$)+";"+_;break;case 207:case 102:_=_.replace($,"-webkit-"+(102U.charCodeAt(0)&&(U=U.trim()),_e=U,U=[_e],0 ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object. + +`,9:"Missing document ``\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 + +`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. + +`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. + +`,14:`ThemeProvider: "theme" prop is required. + +`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to ``, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s. +You may only create up to 1,073,741,824 components. If you're creating components dynamically, +as for instance in your render method then you may be running into this limitation. + +`,17:`CSSStyleSheet could not be found on HTMLStyleElement. +Has styled-components' style tag been unmounted or altered by another script? +`};function HS(){for(var i=arguments.length<=0?void 0:arguments[0],a=[],r=1,u=arguments.length;r1?a-1:0),u=1;u=this.groupSizes.length){for(var l=this.groupSizes,h=l.length,p=h;r>=p;)(p<<=1)<0&&va(16,""+r);this.groupSizes=new Uint32Array(p),this.groupSizes.set(l),this.length=p;for(var y=h;y=this.length||this.groupSizes[r]===0)return u;for(var l=this.groupSizes[r],h=this.indexOfGroup(r),p=h+l,y=h;y1<<30)&&va(16,""+a),tf.set(i,a),nf.set(a,i),a},KS=function(i){return nf.get(i)},qS=function(i,a){a>=Na&&(Na=a+1),tf.set(i,a),nf.set(a,i)},VS="style["+ga+'][data-styled-version="5.3.10"]',XS=new RegExp("^"+ga+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),ZS=function(i,a,r){for(var u,l=r.split(","),h=0,p=l.length;h=0;C--){var T=x[C];if(T&&T.nodeType===1&&T.hasAttribute(ga))return T}}(r),h=l!==void 0?l.nextSibling:null;u.setAttribute(ga,"active"),u.setAttribute("data-styled-version","5.3.10");var p=QS();return p&&u.setAttribute("nonce",p),r.insertBefore(u,h),u},eC=function(){function i(r){var u=this.element=B_(r);u.appendChild(document.createTextNode("")),this.sheet=function(l){if(l.sheet)return l.sheet;for(var h=document.styleSheets,p=0,y=h.length;p=0){var l=document.createTextNode(u),h=this.nodes[r];return this.element.insertBefore(l,h||null),this.length++,!0}return!1},a.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},a.getRule=function(r){return r0&&(P+=k+",")}),h+=""+C+T+'{content:"'+P+`"}/*!sc*/ +`}}}return h}(this)},i}(),iC=/(a)(d)/gi,z_=function(i){return String.fromCharCode(i+(i>25?39:97))};function rl(i){var a,r="";for(a=Math.abs(i);a>52;a=a/52|0)r=z_(a%52)+r;return(z_(a%52)+r).replace(iC,"$1-$2")}var Di=function(i,a){for(var r=a.length;r;)i=33*i^a.charCodeAt(--r);return i},Y_=function(i){return Di(5381,i)},oC=Y_("5.3.10"),aC=function(){function i(a,r,u){this.rules=a,this.staticRulesId="",this.isStatic=!1,this.componentId=r,this.baseHash=Di(oC,r),this.baseStyle=u,U_.registerId(r)}return i.prototype.generateAndInjectStyles=function(a,r,u){var l=this.componentId,h=[];if(this.baseStyle&&h.push(this.baseStyle.generateAndInjectStyles(a,r,u)),this.isStatic&&!u.hash)if(this.staticRulesId&&r.hasNameForId(l,this.staticRulesId))h.push(this.staticRulesId);else{var p=ma(this.rules,a,r,u).join(""),y=rl(Di(this.baseHash,p)>>>0);if(!r.hasNameForId(l,y)){var x=u(p,"."+y,void 0,l);r.insertRules(l,y,x)}h.push(y),this.staticRulesId=y}else{for(var C=this.rules.length,T=Di(this.baseHash,u.hash),P="",k=0;k>>0);if(!r.hasNameForId(l,D)){var B=u(P,"."+D,void 0,l);r.insertRules(l,D,B)}h.push(D)}}return h.join(" ")},i}(),sC=/^\s*\/\/.*$/gm,uC=[":","[",".","#"];function cC(i){var a,r,u,l,h=i===void 0?Mi:i,p=h.options,y=p===void 0?Mi:p,x=h.plugins,C=x===void 0?Qc:x,T=new FS(y),P=[],k=function(I){function D(B){if(B)try{I(B+"}")}catch{}}return function(B,z,Z,N,X,Ae,ce,ke,$e,Ee){switch(B){case 1:if($e===0&&z.charCodeAt(0)===64)return I(z+";"),"";break;case 2:if(ke===0)return z+"/*|*/";break;case 3:switch(ke){case 102:case 112:return I(Z[0]+z),"";default:return z+(Ee===0?"/*|*/":"")}case-2:z.split("/*|*/}").forEach(D)}}}(function(I){P.push(I)}),H=function(I,D,B){return D===0&&uC.indexOf(B[r.length])!==-1||B.match(l)?I:"."+a};function M(I,D,B,z){z===void 0&&(z="&");var Z=I.replace(sC,""),N=D&&B?B+" "+D+" { "+Z+" }":Z;return a=z,r=D,u=new RegExp("\\"+r+"\\b","g"),l=new RegExp("(\\"+r+"\\b){2,}"),T(B||!D?"":D,N)}return T.use([].concat(C,[function(I,D,B){I===2&&B.length&&B[0].lastIndexOf(r)>0&&(B[0]=B[0].replace(u,H))},k,function(I){if(I===-2){var D=P;return P=[],D}}])),M.hash=C.length?C.reduce(function(I,D){return D.name||va(15),Di(I,D.name)},5381).toString():"",M}var G_=Jc.createContext();G_.Consumer;var H_=Jc.createContext(),fC=(H_.Consumer,new U_),il=cC();function lC(){return Qf(G_)||fC}function dC(){return Qf(H_)||il}var hC=function(){function i(a,r){var u=this;this.inject=function(l,h){h===void 0&&(h=il);var p=u.name+h.hash;l.hasNameForId(u.id,p)||l.insertRules(u.id,p,h(u.rules,p,"@keyframes"))},this.toString=function(){return va(12,String(u.name))},this.name=a,this.id="sc-keyframes-"+a,this.rules=r}return i.prototype.getName=function(a){return a===void 0&&(a=il),this.name+a.hash},i}(),pC=/([A-Z])/,gC=/([A-Z])/g,vC=/^ms-/,mC=function(i){return"-"+i.toLowerCase()};function j_(i){return pC.test(i)?i.replace(gC,mC).replace(vC,"-ms-"):i}var K_=function(i){return i==null||i===!1||i===""};function ma(i,a,r,u){if(Array.isArray(i)){for(var l,h=[],p=0,y=i.length;p1?a-1:0),u=1;u1?p-1:0),x=1;x?@[\\\]^`{|}~-]+/g,bC=/(^-|-$)/g;function ol(i){return i.replace(xC,"-").replace(bC,"")}var SC=function(i){return rl(Y_(i)>>>0)};function af(i){return typeof i=="string"&&i.charAt(0)===i.charAt(0).toLowerCase()}var al=function(i){return typeof i=="function"||typeof i=="object"&&i!==null&&!Array.isArray(i)},CC=function(i){return i!=="__proto__"&&i!=="constructor"&&i!=="prototype"};function AC(i,a,r){var u=i[r];al(a)&&al(u)?X_(u,a):i[r]=a}function X_(i){for(var a=arguments.length,r=new Array(a>1?a-1:0),u=1;u=0||(Ee[ke]=Ae[ke]);return Ee}(a,["componentId"]),X=Z&&Z+"-"+(af(z)?z:ol(tl(z)));return J_(z,kr({},N,{attrs:k,componentId:X}),r)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(z){this._foldedDefaultProps=u?X_({},i.defaultProps,z):z}}),yC(T,P),M.warnTooManyClasses=function(z,Z){var N={},X=!1;return function(Ae){if(!X&&(N[Ae]=!0,Object.keys(N).length>=200)){var ce=Z?' with the id of "'+Z+'"':"";console.warn("Over 200 classes were generated for component "+z+ce+`. +Consider using the attrs method, together with a style object for frequently changed styles. +Example: + const Component = styled.div.attrs(props => ({ + style: { + background: props.background, + }, + }))\`width: 100%;\` + + `),X=!0,N={}}}}(T,P),Object.defineProperty(M,"toString",{value:function(){return"."+M.styledComponentId}}),l&&pb(M,i,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var ul=function(i){return function a(r,u,l){if(l===void 0&&(l=Mi),!ra.exports.isValidElementType(u))return va(1,String(u));var h=function(){return r(u,l,_C.apply(void 0,arguments))};return h.withConfig=function(p){return a(r,u,kr({},l,{},p))},h.attrs=function(p){return a(r,u,kr({},l,{attrs:Array.prototype.concat(l.attrs,p).filter(Boolean)}))},h}(J_,i)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(i){ul[i]=ul(i)}),typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. +Perhaps you're looking to import 'styled-components/native'? +Read more about this at https://www.styled-components.com/docs/basics#react-native`),typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason. + +See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const cl=ul,EC=cl.div` font-weight: bold; font-family: monospace; font-size: 1.5rem; @@ -18489,778 +283,16 @@ Please use another name.`); } } margin-top: -10px; -`; - const Container = styled.div` +`,RC=cl.div` border-radius: 3px; border: 1px solid #ccc; padding: 0.5rem; opacity: 0.5; -`; - function LoadingIndicator() { - return /* @__PURE__ */ jsxRuntime.exports.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(Animation, { children: "..." }) }); - } - const ChatGPTAvatar = ({ size = 41, style: style2 = {} }) => { - return /* @__PURE__ */ jsxRuntime.exports.jsx("svg", { style: style2, width: size, height: size, viewBox: `0 0 41 41`, fill: "none", xmlns: "http://www.w3.org/2000/svg", "stroke-width": "1.5", class: "h-6 w-6", role: "img", children: /* @__PURE__ */ jsxRuntime.exports.jsx("g", { height: size, width: size, children: /* @__PURE__ */ jsxRuntime.exports.jsx("path", { d: "M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z", fill: "currentColor" }) }) }); - }; - var ThumbDown = {}; - var interopRequireDefault = { exports: {} }; - (function(module) { - function _interopRequireDefault2(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; - } - module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports; - })(interopRequireDefault); - var createSvgIcon = {}; - const unstable_ClassNameGenerator = { - configure: (generator) => { - { - console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")); - } - ClassNameGenerator$1.configure(generator); - } - }; - const utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ - __proto__: null, - unstable_ClassNameGenerator, - capitalize, - createChainedFunction, - createSvgIcon: createSvgIcon$1, - debounce, - deprecatedPropType, - isMuiElement, - ownerDocument, - ownerWindow, - requirePropFactory, - setRef, - unstable_useEnhancedEffect: useEnhancedEffect$1, - unstable_useId: useId, - unsupportedProp, - useControlled, - useEventCallback, - useForkRef, - useIsFocusVisible - }, Symbol.toStringTag, { value: "Module" })); - const require$$0 = /* @__PURE__ */ getAugmentedNamespace(utils); - var hasRequiredCreateSvgIcon; - function requireCreateSvgIcon() { - if (hasRequiredCreateSvgIcon) - return createSvgIcon; - hasRequiredCreateSvgIcon = 1; - (function(exports) { - Object.defineProperty(exports, "__esModule", { - value: true - }); - Object.defineProperty(exports, "default", { - enumerable: true, - get: function() { - return _utils.createSvgIcon; - } - }); - var _utils = require$$0; - })(createSvgIcon); - return createSvgIcon; - } - var _interopRequireDefault$9 = interopRequireDefault.exports; - Object.defineProperty(ThumbDown, "__esModule", { - value: true - }); - var default_1$9 = ThumbDown.default = void 0; - var _createSvgIcon$9 = _interopRequireDefault$9(requireCreateSvgIcon()); - var _jsxRuntime$9 = jsxRuntime.exports; - var _default$9 = (0, _createSvgIcon$9.default)(/* @__PURE__ */ (0, _jsxRuntime$9.jsx)("path", { - d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z" - }), "ThumbDown"); - default_1$9 = ThumbDown.default = _default$9; - var ThumbUp = {}; - var _interopRequireDefault$8 = interopRequireDefault.exports; - Object.defineProperty(ThumbUp, "__esModule", { - value: true - }); - var default_1$8 = ThumbUp.default = void 0; - var _createSvgIcon$8 = _interopRequireDefault$8(requireCreateSvgIcon()); - var _jsxRuntime$8 = jsxRuntime.exports; - var _default$8 = (0, _createSvgIcon$8.default)(/* @__PURE__ */ (0, _jsxRuntime$8.jsx)("path", { - d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z" - }), "ThumbUp"); - default_1$8 = ThumbUp.default = _default$8; - const atom = window["recoil"].atom; - const atomFamily = window["recoil"].atomFamily; - const getBrowserStorageEffectForKey = window["__fos__"].getBrowserStorageEffectForKey; - const PLUGIN_NAME$1 = "@voxel51/voxelgpt"; - const atoms = { - messages: atom({ - key: "messages", - default: [], - effects: [ - getBrowserStorageEffectForKey(`${PLUGIN_NAME$1}/messages`, { - prependDatasetNameInKey: true, - useJsonSerialization: true - }) - ] - }), - receiving: atom({ - key: "receiving", - default: false - }), - waiting: atom({ - key: "waiting", - default: false - }), - input: atom({ - key: "voxel-gpt-input", - default: "" - }), - votes: atomFamily({ - key: "voxel-gpt-votes", - default: {} - }) - }; - const React = window["React"]; - const useEffect$2 = window["React"].useEffect; - const useRef$2 = window["React"].useRef; - const useState = window["React"].useState; - const useTheme = window["__foc__"].useTheme; - const Grid$4 = window["__mui__"].Grid; - const Box = window["__mui__"].Box; - const Typography$2 = window["__mui__"].Typography; - const IconButton$1 = window["__mui__"].IconButton; - const OperatorIO = window["__foo__"].OperatorIO; - const types$1 = window["__foo__"].types; - const executeOperator$1 = window["__foo__"].executeOperator; - const useRecoilState$3 = window["recoil"].useRecoilState; - const Message = ({ type, avatar, content = "", outputs, data }) => { - if (outputs) { - const schema = types$1.Property.fromJSON(outputs); - return /* @__PURE__ */ jsxRuntime.exports.jsx( - OperatorIO, - { - schema: { - ...schema, - view: { - ...schema.view, - componentsProps: { - gridContainer: { - item: true, - spacing: 0, - sx: { pl: 0 } - } - } - } - }, - data, - type: "output" - } - ); - } - if (content) - return /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { spacing: 2, container: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { item: true, style: { paddingLeft: "1rem" }, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Typography$2, { component: "p", my: 1.5, children: content }) }) }); - return null; - }; - function useHover() { - const ref = useRef$2(null); - const [hovered, setHovered] = React.useState(false); - useEffect$2(() => { - const onMouseOver = () => setHovered(true); - const onMouseOut = () => setHovered(false); - const elem = ref.current; - if (elem) { - elem.addEventListener("mouseover", onMouseOver); - elem.addEventListener("mouseout", onMouseOut); - return () => { - elem.removeEventListener("mouseover", onMouseOver); - elem.removeEventListener("mouseout", onMouseOut); - }; - } - }, [ref.current]); - return { - ref, - hovered - }; - } - function MessageWrapper({ type, messages, receiving, waiting, last }) { - var _a; - const theme = useTheme(); - const { ref, hovered } = useHover(); - const isIncoming = type === "incoming"; - const background = isIncoming ? theme.background.header : theme.background.level1; - const showLoading = waiting || receiving; - const queryId = (_a = messages[0]) == null ? void 0 : _a.response_to; - return /* @__PURE__ */ jsxRuntime.exports.jsx( - Grid$4, - { - ref, - container: true, - sx: { background, padding: "1rem", "& p": { m: 0, mt: 1 } }, - justifyContent: "center", - children: /* @__PURE__ */ jsxRuntime.exports.jsxs(Grid$4, { container: true, item: true, xs: 10, spacing: 2, style: { minWidth: "500px" }, children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { item: true, container: true, xs: 0.5, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { item: true, justifyContent: "center", children: isIncoming ? /* @__PURE__ */ jsxRuntime.exports.jsx(ChatGPTAvatar, { size: 28 }) : /* @__PURE__ */ jsxRuntime.exports.jsx(Avatar$2, { sx: { width: 28, height: 28 }, alt: "you" }) }) }), - /* @__PURE__ */ jsxRuntime.exports.jsxs(Grid$4, { container: true, item: true, xs: 10.5, style: { marginTop: isIncoming ? "-7px" : "-5px" }, children: [ - messages.map((message, index) => /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { item: true, xs: 12, style: { paddingLeft: "1rem" }, children: /* @__PURE__ */ jsxRuntime.exports.jsx( - Message, - { - type: message.type, - ...message - }, - index - ) })), - showLoading && /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { container: true, item: true, xs: 12, sx: { paddingLeft: "1rem" }, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { item: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Box, { my: 1.5, children: /* @__PURE__ */ jsxRuntime.exports.jsx(LoadingIndicator, {}) }) }) }) - ] }), - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$4, { container: true, item: true, xs: 1, children: isIncoming && /* @__PURE__ */ jsxRuntime.exports.jsx(Vote, { queryId, hidden: !hovered }) }) - ] }) - } - ); - } - function Vote({ queryId, hidden }) { - const [vote, setVote] = useRecoilState$3(atoms.votes(queryId)); - useState(null); - const [isLoading, setIsLoading] = useState(false); - const hasVoted = vote && vote.direction; - if (!queryId || hidden) - return null; - const showVoteUp = !hasVoted || vote.direction === "upvote"; - const showVoteDown = !hasVoted || vote.direction === "downvote"; - const handleVote = async (direction) => { - setIsLoading(true); - try { - await executeOperator$1("@voxel51/voxelgpt/vote_for_query", { query_id: queryId, vote: direction }); - setVote({ direction }); - } catch (e) { - console.error(e); - } - setIsLoading(false); - }; - const noPadding = { padding: 0 }; - const ThumbsContainer = styled.div` +`;function TC(){return Q.exports.jsx(RC,{children:Q.exports.jsx(EC,{children:"..."})})}const Q_=({size:i=41,style:a={}})=>Q.exports.jsx("svg",{style:a,width:i,height:i,viewBox:"0 0 41 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"1.5",className:"h-6 w-6",role:"img",children:Q.exports.jsx("g",{height:i,width:i,children:Q.exports.jsx("path",{d:"M37.5324 16.8707C37.9808 15.5241 38.1363 14.0974 37.9886 12.6859C37.8409 11.2744 37.3934 9.91076 36.676 8.68622C35.6126 6.83404 33.9882 5.3676 32.0373 4.4985C30.0864 3.62941 27.9098 3.40259 25.8215 3.85078C24.8796 2.7893 23.7219 1.94125 22.4257 1.36341C21.1295 0.785575 19.7249 0.491269 18.3058 0.500197C16.1708 0.495044 14.0893 1.16803 12.3614 2.42214C10.6335 3.67624 9.34853 5.44666 8.6917 7.47815C7.30085 7.76286 5.98686 8.3414 4.8377 9.17505C3.68854 10.0087 2.73073 11.0782 2.02839 12.312C0.956464 14.1591 0.498905 16.2988 0.721698 18.4228C0.944492 20.5467 1.83612 22.5449 3.268 24.1293C2.81966 25.4759 2.66413 26.9026 2.81182 28.3141C2.95951 29.7256 3.40701 31.0892 4.12437 32.3138C5.18791 34.1659 6.8123 35.6322 8.76321 36.5013C10.7141 37.3704 12.8907 37.5973 14.9789 37.1492C15.9208 38.2107 17.0786 39.0587 18.3747 39.6366C19.6709 40.2144 21.0755 40.5087 22.4946 40.4998C24.6307 40.5054 26.7133 39.8321 28.4418 38.5772C30.1704 37.3223 31.4556 35.5506 32.1119 33.5179C33.5027 33.2332 34.8167 32.6547 35.9659 31.821C37.115 30.9874 38.0728 29.9178 38.7752 28.684C39.8458 26.8371 40.3023 24.6979 40.0789 22.5748C39.8556 20.4517 38.9639 18.4544 37.5324 16.8707ZM22.4978 37.8849C20.7443 37.8874 19.0459 37.2733 17.6994 36.1501C17.7601 36.117 17.8666 36.0586 17.936 36.0161L25.9004 31.4156C26.1003 31.3019 26.2663 31.137 26.3813 30.9378C26.4964 30.7386 26.5563 30.5124 26.5549 30.2825V19.0542L29.9213 20.998C29.9389 21.0068 29.9541 21.0198 29.9656 21.0359C29.977 21.052 29.9842 21.0707 29.9867 21.0902V30.3889C29.9842 32.375 29.1946 34.2791 27.7909 35.6841C26.3872 37.0892 24.4838 37.8806 22.4978 37.8849ZM6.39227 31.0064C5.51397 29.4888 5.19742 27.7107 5.49804 25.9832C5.55718 26.0187 5.66048 26.0818 5.73461 26.1244L13.699 30.7248C13.8975 30.8408 14.1233 30.902 14.3532 30.902C14.583 30.902 14.8088 30.8408 15.0073 30.7248L24.731 25.1103V28.9979C24.7321 29.0177 24.7283 29.0376 24.7199 29.0556C24.7115 29.0736 24.6988 29.0893 24.6829 29.1012L16.6317 33.7497C14.9096 34.7416 12.8643 35.0097 10.9447 34.4954C9.02506 33.9811 7.38785 32.7263 6.39227 31.0064ZM4.29707 13.6194C5.17156 12.0998 6.55279 10.9364 8.19885 10.3327C8.19885 10.4013 8.19491 10.5228 8.19491 10.6071V19.808C8.19351 20.0378 8.25334 20.2638 8.36823 20.4629C8.48312 20.6619 8.64893 20.8267 8.84863 20.9404L18.5723 26.5542L15.206 28.4979C15.1894 28.5089 15.1703 28.5155 15.1505 28.5173C15.1307 28.5191 15.1107 28.516 15.0924 28.5082L7.04046 23.8557C5.32135 22.8601 4.06716 21.2235 3.55289 19.3046C3.03862 17.3858 3.30624 15.3413 4.29707 13.6194ZM31.955 20.0556L22.2312 14.4411L25.5976 12.4981C25.6142 12.4872 25.6333 12.4805 25.6531 12.4787C25.6729 12.4769 25.6928 12.4801 25.7111 12.4879L33.7631 17.1364C34.9967 17.849 36.0017 18.8982 36.6606 20.1613C37.3194 21.4244 37.6047 22.849 37.4832 24.2684C37.3617 25.6878 36.8382 27.0432 35.9743 28.1759C35.1103 29.3086 33.9415 30.1717 32.6047 30.6641C32.6047 30.5947 32.6047 30.4733 32.6047 30.3889V21.188C32.6066 20.9586 32.5474 20.7328 32.4332 20.5338C32.319 20.3348 32.154 20.1698 31.955 20.0556ZM35.3055 15.0128C35.2464 14.9765 35.1431 14.9142 35.069 14.8717L27.1045 10.2712C26.906 10.1554 26.6803 10.0943 26.4504 10.0943C26.2206 10.0943 25.9948 10.1554 25.7963 10.2712L16.0726 15.8858V11.9982C16.0715 11.9783 16.0753 11.9585 16.0837 11.9405C16.0921 11.9225 16.1048 11.9068 16.1207 11.8949L24.1719 7.25025C25.4053 6.53903 26.8158 6.19376 28.2383 6.25482C29.6608 6.31589 31.0364 6.78077 32.2044 7.59508C33.3723 8.40939 34.2842 9.53945 34.8334 10.8531C35.3826 12.1667 35.5464 13.6095 35.3055 15.0128ZM14.2424 21.9419L10.8752 19.9981C10.8576 19.9893 10.8423 19.9763 10.8309 19.9602C10.8195 19.9441 10.8122 19.9254 10.8098 19.9058V10.6071C10.8107 9.18295 11.2173 7.78848 11.9819 6.58696C12.7466 5.38544 13.8377 4.42659 15.1275 3.82264C16.4173 3.21869 17.8524 2.99464 19.2649 3.1767C20.6775 3.35876 22.0089 3.93941 23.1034 4.85067C23.0427 4.88379 22.937 4.94215 22.8668 4.98473L14.9024 9.58517C14.7025 9.69878 14.5366 9.86356 14.4215 10.0626C14.3065 10.2616 14.2466 10.4877 14.2479 10.7175L14.2424 21.9419ZM16.071 17.9991L20.4018 15.4978L24.7325 17.9975V22.9985L20.4018 25.4983L16.071 22.9985V17.9991Z",fill:"currentColor"})})});var fl={},ir={exports:{}};(function(i){function a(r){return r&&r.__esModule?r:{default:r}}i.exports=a,i.exports.__esModule=!0,i.exports.default=i.exports})(ir);var ll={};const OC=Ir(Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:{configure:i=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` +`)),Pm.configure(i)}},capitalize:Sr,createChainedFunction:ix,createSvgIcon:M_,debounce:ox,deprecatedPropType:ax,isMuiElement:ux,ownerDocument:_m,ownerWindow:cx,requirePropFactory:fx,setRef:ym,unstable_useEnhancedEffect:xm,unstable_useId:dx,unsupportedProp:hx,useControlled:px,useEventCallback:gx,useForkRef:mx,useIsFocusVisible:Cx},Symbol.toStringTag,{value:"Module"})));var ey;function Tr(){return ey||(ey=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a.createSvgIcon}});var a=OC}(ll)),ll}var PC=ir.exports;Object.defineProperty(fl,"__esModule",{value:!0});var ty=fl.default=void 0,IC=PC(Tr()),$C=Q.exports,MC=(0,IC.default)((0,$C.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"}),"ThumbDown");ty=fl.default=MC;var dl={},LC=ir.exports;Object.defineProperty(dl,"__esModule",{value:!0});var ny=dl.default=void 0,kC=LC(Tr()),DC=Q.exports,FC=(0,kC.default)((0,DC.jsx)("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"}),"ThumbUp");ny=dl.default=FC;const sf=window.recoil.atom,NC=window.recoil.atomFamily,BC=window.__fos__.getBrowserStorageEffectForKey,Jt={messages:sf({key:"messages",default:[],effects:[BC("@voxel51/voxelgpt/messages",{prependDatasetNameInKey:!0,useJsonSerialization:!0})]}),receiving:sf({key:"receiving",default:!1}),waiting:sf({key:"waiting",default:!1}),input:sf({key:"voxel-gpt-input",default:""}),votes:NC({key:"voxel-gpt-votes",default:{}})},WC=window.React,UC=window.React.useEffect,zC=window.React.useRef,ry=window.React.useState,YC=window.__foc__.useTheme,or=window.__mui__.Grid,GC=window.__mui__.Box,HC=window.__mui__.Typography,iy=window.__mui__.IconButton,jC=window.__foo__.OperatorIO,KC=window.__foo__.types,qC=window.__foo__.executeOperator,VC=window.recoil.useRecoilState,XC=({type:i,avatar:a,content:r="",outputs:u,data:l})=>{if(u){const h=KC.Property.fromJSON(u);return Q.exports.jsx(jC,{schema:{...h,view:{...h.view,componentsProps:{gridContainer:{item:!0,spacing:0,sx:{pl:0}}}}},data:l,type:"output"})}return r?Q.exports.jsx(or,{spacing:2,container:!0,children:Q.exports.jsx(or,{item:!0,style:{paddingLeft:"1rem"},children:Q.exports.jsx(HC,{component:"p",my:1.5,children:r})})}):null};function ZC(){const i=zC(null),[a,r]=WC.useState(!1);return UC(()=>{const u=()=>r(!0),l=()=>r(!1),h=i.current;if(h)return h.addEventListener("mouseover",u),h.addEventListener("mouseout",l),()=>{h.removeEventListener("mouseover",u),h.removeEventListener("mouseout",l)}},[i.current]),{ref:i,hovered:a}}function JC({type:i,messages:a,receiving:r,waiting:u,last:l}){var k;const h=YC(),{ref:p,hovered:y}=ZC(),x=i==="incoming",C=x?h.background.header:h.background.level1,T=u||r,P=(k=a[0])==null?void 0:k.response_to;return Q.exports.jsx(or,{ref:p,container:!0,sx:{background:C,padding:"1rem","& p":{m:0,mt:1}},justifyContent:"center",children:Q.exports.jsxs(or,{container:!0,item:!0,xs:10,spacing:2,style:{minWidth:"500px"},children:[Q.exports.jsx(or,{item:!0,container:!0,xs:.5,children:Q.exports.jsx(or,{item:!0,justifyContent:"center",children:x?Q.exports.jsx(Q_,{size:28}):Q.exports.jsx(DS,{sx:{width:28,height:28},alt:"you"})})}),Q.exports.jsxs(or,{container:!0,item:!0,xs:10.5,style:{marginTop:x?"-7px":"-5px"},children:[a.map((H,M)=>Q.exports.jsx(or,{item:!0,xs:12,style:{paddingLeft:"1rem"},children:Q.exports.jsx(XC,{type:H.type,...H},M)})),T&&Q.exports.jsx(or,{container:!0,item:!0,xs:12,sx:{paddingLeft:"1rem"},children:Q.exports.jsx(or,{item:!0,children:Q.exports.jsx(GC,{my:1.5,children:Q.exports.jsx(TC,{})})})})]}),Q.exports.jsx(or,{container:!0,item:!0,xs:1,children:x&&Q.exports.jsx(QC,{queryId:P,hidden:!y})})]})})}function QC({queryId:i,hidden:a}){const[r,u]=VC(Jt.votes(i));ry(null);const[l,h]=ry(!1),p=r&&r.direction;if(!i||a)return null;const y=!p||r.direction==="upvote",x=!p||r.direction==="downvote",C=async k=>{h(!0);try{await qC("@voxel51/voxelgpt/vote_for_query",{query_id:i,vote:k}),u({direction:k})}catch(H){console.error(H)}h(!1)},T={padding:0},P=cl.div` margin-top: 3px; opacity: 1; width: 45px; display: flex; justify-content: space-between; - `; - return /* @__PURE__ */ jsxRuntime.exports.jsx("div", { children: /* @__PURE__ */ jsxRuntime.exports.jsxs(ThumbsContainer, { style: { opacity: hasVoted ? 0.5 : 1 }, children: [ - showVoteUp && /* @__PURE__ */ jsxRuntime.exports.jsx(IconButton$1, { style: noPadding, disabled: hasVoted, onClick: () => handleVote("upvote"), children: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$8, { style: { width: "18px" } }) }), - showVoteDown && /* @__PURE__ */ jsxRuntime.exports.jsx(IconButton$1, { style: noPadding, disabled: hasVoted, onClick: () => handleVote("downvote"), children: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$9, { style: { width: "18px" } }) }) - ] }) }); - } - const SCROLL_TO_BOTTOM_THROTTLE = 1500; - const Grid$3 = window["__mui__"].Grid; - const useCallback = window["React"].useCallback; - const useEffect$1 = window["React"].useEffect; - const useRef$1 = window["React"].useRef; - const useRecoilValue$2 = window["recoil"].useRecoilValue; - const Chat = () => { - const ref = useRef$1(null); - const bottomRef = useRef$1(null); - const messages = useRecoilValue$2(atoms.messages); - const receiving = useRecoilValue$2(atoms.receiving); - const waiting = useRecoilValue$2(atoms.waiting); - const scrollToBottom = useCallback( - lodash.exports.throttle(() => { - if (bottomRef.current && messages.length > 0) { - bottomRef.current.scrollIntoView({ behavior: "smooth" }); - } - }, SCROLL_TO_BOTTOM_THROTTLE), - [lodash.exports.throttle] - ); - useEffect$1(() => { - const refElem = ref.current; - if (refElem) { - const refResizeObserver = new ResizeObserver(scrollToBottom); - refResizeObserver.observe( - refElem - ); - return () => { - var _a; - (_a = refResizeObserver == null ? void 0 : refResizeObserver.disconnect) == null ? void 0 : _a.call(refResizeObserver); - }; - } - }, []); - const groupedMessages = groupConsecutiveMessages(messages, receiving, waiting); - return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", { style: { overflow: "auto" }, ref, children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$3, { container: true, direction: "row", children: groupedMessages.map((group) => /* @__PURE__ */ jsxRuntime.exports.jsx(MessageWrapper, { ...group })) }), - /* @__PURE__ */ jsxRuntime.exports.jsx("div", { ref: bottomRef }) - ] }); - }; - function groupConsecutiveMessages(messages, receiving, waiting) { - const groups = []; - let currentGroup = []; - for (const message of messages) { - if (currentGroup.length > 0 && currentGroup[0].type !== message.type) { - groups.push({ type: currentGroup[0].type, messages: currentGroup }); - currentGroup = [message]; - } else { - currentGroup.push(message); - } - } - if (currentGroup.length > 0) { - groups.push({ type: currentGroup[0].type, messages: currentGroup }); - } - if (groups.length > 0) { - const lastGroup = groups[groups.length - 1]; - lastGroup.last = true; - if (lastGroup.type === "incoming") { - lastGroup.receiving = receiving; - lastGroup.waiting = waiting; - } else { - groups.push({ type: "incoming", messages: [], receiving: true }); - } - } - return groups; - } - var Send = {}; - var _interopRequireDefault$7 = interopRequireDefault.exports; - Object.defineProperty(Send, "__esModule", { - value: true - }); - var default_1$7 = Send.default = void 0; - var _createSvgIcon$7 = _interopRequireDefault$7(requireCreateSvgIcon()); - var _jsxRuntime$7 = jsxRuntime.exports; - var _default$7 = (0, _createSvgIcon$7.default)(/* @__PURE__ */ (0, _jsxRuntime$7.jsx)("path", { - d: "M2.01 21 23 12 2.01 3 2 10l15 2-15 2z" - }), "Send"); - default_1$7 = Send.default = _default$7; - const useRef = window["React"].useRef; - const useEffect = window["React"].useEffect; - const OutlinedInput = window["__mui__"].OutlinedInput; - const IconButton = window["__mui__"].IconButton; - const useRecoilState$2 = window["recoil"].useRecoilState; - const InputBar = ({ hasMessages, disabled, onMessageSend, bottomRef }) => { - const [waiting, setWaiting] = useRecoilState$2(atoms.waiting); - const [message, setMessage] = useRecoilState$2(atoms.input); - const inputRef = useRef(null); - function sendMessage() { - if (message.trim()) { - setWaiting(true); - onMessageSend(message); - setMessage(""); - } - } - const handleKeyPress = (event) => { - if (event.key === "Enter") { - sendMessage(); - } - }; - useEffect(() => { - if (!disabled && inputRef.current) { - inputRef.current.focus(); - } - }, [disabled]); - const showAdornment = !disabled && message.trim().length > 0; - return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", { style: { padding: "0.5rem" }, children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx( - OutlinedInput, - { - ref: inputRef, - autofocus: true, - fullWidth: true, - value: message, - onChange: (e) => setMessage(e.target.value), - onKeyPress: handleKeyPress, - variant: "outlined", - disabled, - size: "large", - placeholder: 'Send a message or type "help"', - endAdornment: /* @__PURE__ */ jsxRuntime.exports.jsx(IconButton, { disabled: !showAdornment, onClick: sendMessage, children: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$7, { style: { opacity: showAdornment ? 1 : 0.2 } }) }) - } - ), - /* @__PURE__ */ jsxRuntime.exports.jsx("div", { ref: bottomRef }) - ] }); - }; - const Operator$1 = window["__foo__"].Operator; - const OperatorConfig$1 = window["__foo__"].OperatorConfig; - const useRecoilState$1 = window["recoil"].useRecoilState; - class ShowMessage extends Operator$1 { - get config() { - return new OperatorConfig$1({ - name: "show_message", - label: "Show Message" - }); - } - useHooks() { - const [messages, setMessages] = useRecoilState$1(atoms.messages); - return { - addMessage: (message) => { - setMessages((current) => [...current, message]); - }, - updateLastIncomingMessage: (message) => { - setMessages((current) => { - const lastIncomingMessage = current.filter((m) => m.type === "incoming").pop(); - if (lastIncomingMessage) { - return [ - ...current.filter((m) => m !== lastIncomingMessage), - { - type: "incoming", - ...lastIncomingMessage, - ...message - } - ]; - } - return current; - }); - } - }; - } - async execute(ctx) { - if (ctx.params.message || ctx.params.outputs) { - ctx.state.set(atoms.receiving, true); - ctx.state.set(atoms.waiting, false); - const { overwrite_last } = ctx.params.data || {}; - if (overwrite_last) { - ctx.hooks.updateLastIncomingMessage({ - response_to: ctx.params.query_id, - ...ctx.params - }); - } else { - ctx.hooks.addMessage({ - response_to: ctx.params.query_id, - type: "incoming", - ...ctx.params - }); - } - } - if (ctx.params.done) { - ctx.state.set(atoms.receiving, false); - ctx.state.set(atoms.waiting, false); - } - } - } - function uuid() { - return Math.random().toString().split(".")[1]; - } - var GPTMessageType = /* @__PURE__ */ ((GPTMessageType2) => { - GPTMessageType2["SUCCESS"] = "success"; - GPTMessageType2["ERROR"] = "error"; - return GPTMessageType2; - })(GPTMessageType || {}); - class GPTMessage { - constructor(type, content) { - __publicField(this, "id", uuid()); - this.type = type; - this.content = content; - } - } - const Operator = window["__foo__"].Operator; - const OperatorConfig = window["__foo__"].OperatorConfig; - const types = window["__foo__"].types; - const executeOperator = window["__foo__"].executeOperator; - const useRecoilState = window["recoil"].useRecoilState; - class SendMessageToVoxelGPT extends Operator { - get config() { - return new OperatorConfig({ - name: "send_message_to_voxelgpt", - label: "Send Message to VoxelGPT" - }); - } - useHooks() { - const [messages, setMessages] = useRecoilState(atoms.messages); - return { - messages, - addMessage: (message) => { - setMessages((current) => [...current, message]); - } - }; - } - async execute(ctx) { - new GPTMessage(GPTMessageType.SUCCESS, [ - new types.Property(new types.String(), { - default: ctx.params.message, - readOnly: true - }) - ]); - ctx.hooks.addMessage({ - type: "outgoing", - content: ctx.params.message - }); - await executeOperator(`${this.pluginName}/ask_voxelgpt_panel`, { - query: ctx.params.message, - history: ctx.hooks.messages - }); - } - } - var Replay = {}; - var _interopRequireDefault$6 = interopRequireDefault.exports; - Object.defineProperty(Replay, "__esModule", { - value: true - }); - var default_1$6 = Replay.default = void 0; - var _createSvgIcon$6 = _interopRequireDefault$6(requireCreateSvgIcon()); - var _jsxRuntime$6 = jsxRuntime.exports; - var _default$6 = (0, _createSvgIcon$6.default)(/* @__PURE__ */ (0, _jsxRuntime$6.jsx)("path", { - d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" - }), "Replay"); - default_1$6 = Replay.default = _default$6; - var StopCircle = {}; - var _interopRequireDefault$5 = interopRequireDefault.exports; - Object.defineProperty(StopCircle, "__esModule", { - value: true - }); - var default_1$5 = StopCircle.default = void 0; - var _createSvgIcon$5 = _interopRequireDefault$5(requireCreateSvgIcon()); - var _jsxRuntime$5 = jsxRuntime.exports; - var _default$5 = (0, _createSvgIcon$5.default)(/* @__PURE__ */ (0, _jsxRuntime$5.jsx)("path", { - d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z" - }), "StopCircle"); - default_1$5 = StopCircle.default = _default$5; - const Grid$2 = window["__mui__"].Grid; - const Button = window["__mui__"].Button; - const useRecoilValue$1 = window["recoil"].useRecoilValue; - const useResetRecoilState = window["recoil"].useResetRecoilState; - const abortOperationsByURI = window["__foo__"].abortOperationsByURI; - const ASK_VOXELGPT_URI = "@voxel51/voxelgpt/ask_voxelgpt_panel"; - function Actions() { - const receiving = useRecoilValue$1(atoms.receiving); - const waiting = useRecoilValue$1(atoms.waiting); - const resetReceiving = useResetRecoilState(atoms.receiving); - const reset = useResetRecoilState(atoms.messages); - const messages = useRecoilValue$1(atoms.messages); - const handleStop = () => { - resetReceiving(); - abortOperationsByURI(ASK_VOXELGPT_URI); - }; - return /* @__PURE__ */ jsxRuntime.exports.jsxs(Grid$2, { container: true, justifyContent: "center", children: [ - messages.length > 0 && !receiving && !waiting && /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$2, { item: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button, { color: "secondary", variant: "contained", startIcon: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$6, {}), onClick: () => reset(), children: "Start Over" }) }), - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$2, { item: true, children: receiving && /* @__PURE__ */ jsxRuntime.exports.jsx(Button, { onClick: handleStop, color: "secondary", variant: "contained", startIcon: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$5, {}), children: "Stop" }) }) - ] }); - } - var Dataset = {}; - var _interopRequireDefault$4 = interopRequireDefault.exports; - Object.defineProperty(Dataset, "__esModule", { - value: true - }); - var default_1$4 = Dataset.default = void 0; - var _createSvgIcon$4 = _interopRequireDefault$4(requireCreateSvgIcon()); - var _jsxRuntime$4 = jsxRuntime.exports; - var _default$4 = (0, _createSvgIcon$4.default)(/* @__PURE__ */ (0, _jsxRuntime$4.jsx)("path", { - d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z" - }), "Dataset"); - default_1$4 = Dataset.default = _default$4; - var Psychology = {}; - var _interopRequireDefault$3 = interopRequireDefault.exports; - Object.defineProperty(Psychology, "__esModule", { - value: true - }); - var default_1$3 = Psychology.default = void 0; - var _createSvgIcon$3 = _interopRequireDefault$3(requireCreateSvgIcon()); - var _jsxRuntime$3 = jsxRuntime.exports; - var _default$3 = (0, _createSvgIcon$3.default)([/* @__PURE__ */ (0, _jsxRuntime$3.jsx)("path", { - d: "M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43z" - }, "0"), /* @__PURE__ */ (0, _jsxRuntime$3.jsx)("path", { - d: "M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7zm3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39z" - }, "1")], "Psychology"); - default_1$3 = Psychology.default = _default$3; - var QuestionAnswer = {}; - var _interopRequireDefault$2 = interopRequireDefault.exports; - Object.defineProperty(QuestionAnswer, "__esModule", { - value: true - }); - var default_1$2 = QuestionAnswer.default = void 0; - var _createSvgIcon$2 = _interopRequireDefault$2(requireCreateSvgIcon()); - var _jsxRuntime$2 = jsxRuntime.exports; - var _default$2 = (0, _createSvgIcon$2.default)(/* @__PURE__ */ (0, _jsxRuntime$2.jsx)("path", { - d: "M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" - }), "QuestionAnswer"); - default_1$2 = QuestionAnswer.default = _default$2; - var Schema = {}; - var _interopRequireDefault$1 = interopRequireDefault.exports; - Object.defineProperty(Schema, "__esModule", { - value: true - }); - var default_1$1 = Schema.default = void 0; - var _createSvgIcon$1 = _interopRequireDefault$1(requireCreateSvgIcon()); - var _jsxRuntime$1 = jsxRuntime.exports; - var _default$1 = (0, _createSvgIcon$1.default)(/* @__PURE__ */ (0, _jsxRuntime$1.jsx)("path", { - d: "M14 9v2h-3V9H8.5V7H11V1H4v6h2.5v2H4v6h2.5v2H4v6h7v-6H8.5v-2H11v-2h3v2h7V9h-7z" - }), "Schema"); - default_1$1 = Schema.default = _default$1; - var ManageSearch = {}; - var _interopRequireDefault = interopRequireDefault.exports; - Object.defineProperty(ManageSearch, "__esModule", { - value: true - }); - var default_1 = ManageSearch.default = void 0; - var _createSvgIcon = _interopRequireDefault(requireCreateSvgIcon()); - var _jsxRuntime = jsxRuntime.exports; - var _default = (0, _createSvgIcon.default)(/* @__PURE__ */ (0, _jsxRuntime.jsx)("path", { - d: "M7 9H2V7h5v2zm0 3H2v2h5v-2zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59 20.59 19zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zM2 19h10v-2H2v2z" - }), "ManageSearch"); - default_1 = ManageSearch.default = _default; - const Avatar = window["__mui__"].Avatar; - const Grid$1 = window["__mui__"].Grid; - const List = window["__mui__"].List; - const ListItem = window["__mui__"].ListItem; - const ListItemAvatar = window["__mui__"].ListItemAvatar; - const ListItemButton = window["__mui__"].ListItemButton; - const ListItemText = window["__mui__"].ListItemText; - const Paper = window["__mui__"].Paper; - const Typography$1 = window["__mui__"].Typography; - const useSetRecoilState = window["recoil"].useSetRecoilState; - const examples = [ - { id: "example-1", label: "How do I export in COCO format?" }, - { - id: "example-2", - label: "What does the match() stage do?" - }, - { - id: "example-3", - label: "Show me samples with a high confidence prediction evaluated as a false positive" - }, - { - id: "example-4", - label: "Show me 10 images that contain dogs using text similarity" - } - ]; - const capabilities = [ - { - id: "capability-1", - label: "Can search the FiftyOne docs for answers and link to its sources", - Icon: default_1 - }, - { - id: "capability-2", - label: "Understands the schema of your dataset", - Icon: default_1$1 - }, - { - id: "capability-3", - label: "Can automatically load views that contain the content you specify", - Icon: default_1$4 - }, - { - id: "capability-4", - label: "Knows how to use brain methods, evaluations, similarity indexes, and more", - Icon: default_1$3 - } - ]; - const Intro = () => { - const setInput = useSetRecoilState(atoms.input); - return /* @__PURE__ */ jsxRuntime.exports.jsxs( - Grid$1, - { - container: true, - item: true, - direction: "row", - sx: { margin: "auto" }, - spacing: 2, - justifyContent: "center", - alignItems: "start", - children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$1, { item: true, xs: 12, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Typography$1, { variant: "h2", style: { textAlign: "center" }, children: "VoxelGPT" }) }), - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$1, { item: true, sm: 12, lg: 4, sx: { alignSelf: "stretch", minWidth: 300 }, children: /* @__PURE__ */ jsxRuntime.exports.jsxs( - Paper, - { - elevation: 3, - sx: { height: "100%", padding: "20px", marginBottom: "16px" }, - children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Typography$1, { variant: "h4", gutterBottom: true, style: { textAlign: "center" }, children: "Examples" }), - /* @__PURE__ */ jsxRuntime.exports.jsx(List, { children: examples.map(({ label, id }) => /* @__PURE__ */ jsxRuntime.exports.jsxs( - ListItemButton, - { - onClick: () => { - setInput(label); - }, - children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(ListItemAvatar, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(Avatar, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(default_1$2, {}) }) }), - /* @__PURE__ */ jsxRuntime.exports.jsx(ListItemText, { primary: label }) - ] - }, - id - )) }) - ] - } - ) }), - /* @__PURE__ */ jsxRuntime.exports.jsx(Grid$1, { item: true, sm: 12, lg: 4, sx: { alignSelf: "stretch", minWidth: 300 }, children: /* @__PURE__ */ jsxRuntime.exports.jsxs( - Paper, - { - elevation: 3, - sx: { height: "100%", padding: "20px", marginBottom: "16px" }, - children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Typography$1, { variant: "h4", gutterBottom: true, style: { textAlign: "center" }, children: "Capabilities" }), - /* @__PURE__ */ jsxRuntime.exports.jsx(List, { children: capabilities.map(({ id, label, Icon }) => /* @__PURE__ */ jsxRuntime.exports.jsxs(ListItem, { children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(ListItemAvatar, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(Avatar, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {}) }) }), - /* @__PURE__ */ jsxRuntime.exports.jsx(ListItemText, { primary: label }) - ] }, id)) }) - ] - } - ) }) - ] - } - ); - }; - const registerOperator = window["__foo__"].registerOperator; - const useOperatorExecutor = window["__foo__"].useOperatorExecutor; - const Grid = window["__mui__"].Grid; - const Typography = window["__mui__"].Typography; - const Link = window["__mui__"].Link; - const useRecoilValue = window["recoil"].useRecoilValue; - const PLUGIN_NAME = "@voxel51/voxelgpt"; - const ChatPanel = () => { - const executor = useOperatorExecutor( - `${PLUGIN_NAME}/send_message_to_voxelgpt` - ); - const messages = useRecoilValue(atoms.messages); - const handleMessageSend = (message) => { - executor.execute({ message }); - }; - const receiving = useRecoilValue(atoms.receiving); - const waiting = useRecoilValue(atoms.waiting); - const hasMessages = messages.length > 0; - return /* @__PURE__ */ jsxRuntime.exports.jsxs( - Grid, - { - container: true, - direction: "row", - spacing: 2, - sx: { height: "100%" }, - justifyContent: "center", - children: [ - !hasMessages && /* @__PURE__ */ jsxRuntime.exports.jsx(Intro, {}), - hasMessages && /* @__PURE__ */ jsxRuntime.exports.jsx(Grid, { item: true, lg: 12, children: /* @__PURE__ */ jsxRuntime.exports.jsx(Chat, {}) }), - /* @__PURE__ */ jsxRuntime.exports.jsx( - Grid, - { - item: true, - container: true, - sx: { marginTop: hasMessages ? "auto" : void 0 }, - justifyContent: "center", - children: /* @__PURE__ */ jsxRuntime.exports.jsxs(Grid, { item: true, sm: 12, md: 6, lg: 8, children: [ - /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {}), - /* @__PURE__ */ jsxRuntime.exports.jsx( - InputBar, - { - hasMessages, - disabled: receiving || waiting, - onMessageSend: handleMessageSend - } - ), - /* @__PURE__ */ jsxRuntime.exports.jsxs( - Typography, - { - variant: "caption", - sx: { marginTop: "8px", display: "block", textAlign: "center" }, - children: [ - "VoxelGPT is in beta and may not understand certain queries.", - " ", - /* @__PURE__ */ jsxRuntime.exports.jsx(Link, { href: "https://github.com/voxel51/voxelgpt", target: "_blank", children: "Learn more" }) - ] - } - ) - ] }) - } - ) - ] - } - ); - }; - registerComponent({ - name: "voxelgpt", - label: "VoxelGPT", - component: ChatPanel, - type: PluginComponentType.Panel, - activator: () => true, - Icon: () => /* @__PURE__ */ jsxRuntime.exports.jsx(ChatGPTAvatar, { size: "1rem", style: { marginRight: "0.5rem" } }) - }); - registerOperator(ShowMessage, PLUGIN_NAME); - registerOperator(SendMessageToVoxelGPT, PLUGIN_NAME); -}); + `;return Q.exports.jsx("div",{children:Q.exports.jsxs(P,{style:{opacity:p?.5:1},children:[y&&Q.exports.jsx(iy,{style:T,disabled:p,onClick:()=>C("upvote"),children:Q.exports.jsx(ny,{style:{width:"18px"}})}),x&&Q.exports.jsx(iy,{style:T,disabled:p,onClick:()=>C("downvote"),children:Q.exports.jsx(ty,{style:{width:"18px"}})})]})})}const eA=1500,tA=window.__mui__.Grid,nA=window.React.useCallback,rA=window.React.useEffect,oy=window.React.useRef,hl=window.recoil.useRecoilValue,iA=()=>{const i=oy(null),a=oy(null),r=hl(Jt.messages),u=hl(Jt.receiving),l=hl(Jt.waiting),h=nA(Rc.exports.throttle(()=>{a.current&&r.length>0&&a.current.scrollIntoView({behavior:"smooth"})},eA),[Rc.exports.throttle]);rA(()=>{const y=i.current;if(y){const x=new ResizeObserver(h);return x.observe(y),()=>{var C;(C=x==null?void 0:x.disconnect)==null||C.call(x)}}},[]);const p=oA(r,u,l);return Q.exports.jsxs("div",{style:{overflow:"auto"},ref:i,children:[Q.exports.jsx(tA,{container:!0,direction:"row",children:p.map(y=>Q.exports.jsx(JC,{...y}))}),Q.exports.jsx("div",{ref:a})]})};function oA(i,a,r){const u=[];let l=[];for(const h of i)l.length>0&&l[0].type!==h.type?(u.push({type:l[0].type,messages:l}),l=[h]):l.push(h);if(l.length>0&&u.push({type:l[0].type,messages:l}),u.length>0){const h=u[u.length-1];h.last=!0,h.type==="incoming"?(h.receiving=a,h.waiting=r):u.push({type:"incoming",messages:[],receiving:!0})}return u}var pl={},aA=ir.exports;Object.defineProperty(pl,"__esModule",{value:!0});var ay=pl.default=void 0,sA=aA(Tr()),uA=Q.exports,cA=(0,sA.default)((0,uA.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");ay=pl.default=cA;const fA=window.React.useRef,lA=window.React.useEffect,dA=window.__mui__.OutlinedInput,hA=window.__mui__.IconButton,sy=window.recoil.useRecoilState,pA=({hasMessages:i,disabled:a,onMessageSend:r,bottomRef:u})=>{const[l,h]=sy(Jt.waiting),[p,y]=sy(Jt.input),x=fA(null);function C(){p.trim()&&(h(!0),r(p),y(""))}const T=k=>{k.key==="Enter"&&C()};lA(()=>{!a&&x.current&&x.current.focus()},[a]);const P=!a&&p.trim().length>0;return Q.exports.jsxs("div",{style:{padding:"0.5rem"},children:[Q.exports.jsx(dA,{ref:x,autofocus:!0,fullWidth:!0,value:p,onChange:k=>y(k.target.value),onKeyPress:T,variant:"outlined",disabled:a,size:"large",placeholder:'Send a message or type "help"',endAdornment:Q.exports.jsx(hA,{disabled:!P,onClick:C,children:Q.exports.jsx(ay,{style:{opacity:P?1:.2}})})}),Q.exports.jsx("div",{ref:u})]})},gA=window.__foo__.Operator,vA=window.__foo__.OperatorConfig,mA=window.recoil.useRecoilState;class _A extends gA{get config(){return new vA({name:"show_message",label:"Show Message"})}useHooks(){const[a,r]=mA(Jt.messages);return{addMessage:u=>{r(l=>[...l,u])},updateLastIncomingMessage:u=>{r(l=>{const h=l.filter(p=>p.type==="incoming").pop();return h?[...l.filter(p=>p!==h),{type:"incoming",...h,...u}]:l})}}}async execute(a){if(a.params.message||a.params.outputs){a.state.set(Jt.receiving,!0),a.state.set(Jt.waiting,!1);const{overwrite_last:r}=a.params.data||{};r?a.hooks.updateLastIncomingMessage({response_to:a.params.query_id,...a.params}):a.hooks.addMessage({response_to:a.params.query_id,type:"incoming",...a.params})}a.params.done&&(a.state.set(Jt.receiving,!1),a.state.set(Jt.waiting,!1))}}function yA(){return Math.random().toString().split(".")[1]}var uy=(i=>(i.SUCCESS="success",i.ERROR="error",i))(uy||{});class wA{constructor(a,r){vc(this,"id",yA());this.type=a,this.content=r}}const xA=window.__foo__.Operator,bA=window.__foo__.OperatorConfig,cy=window.__foo__.types,SA=window.__foo__.executeOperator,CA=window.recoil.useRecoilState;class AA extends xA{get config(){return new bA({name:"send_message_to_voxelgpt",label:"Send Message to VoxelGPT",unlisted:!0})}useHooks(){const[a,r]=CA(Jt.messages);return{messages:a,addMessage:u=>{r(l=>[...l,u])}}}async execute(a){new wA(uy.SUCCESS,[new cy.Property(new cy.String,{default:a.params.message,readOnly:!0})]),a.hooks.addMessage({type:"outgoing",content:a.params.message}),await SA(`${this.pluginName}/ask_voxelgpt_panel`,{query:a.params.message,history:a.hooks.messages})}}var gl={},EA=ir.exports;Object.defineProperty(gl,"__esModule",{value:!0});var fy=gl.default=void 0,RA=EA(Tr()),TA=Q.exports,OA=(0,RA.default)((0,TA.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");fy=gl.default=OA;var vl={},PA=ir.exports;Object.defineProperty(vl,"__esModule",{value:!0});var ly=vl.default=void 0,IA=PA(Tr()),$A=Q.exports,MA=(0,IA.default)((0,$A.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"}),"StopCircle");ly=vl.default=MA;const ml=window.__mui__.Grid,dy=window.__mui__.Button,_l=window.recoil.useRecoilValue,hy=window.recoil.useResetRecoilState,LA=window.__foo__.abortOperationsByURI,kA="@voxel51/voxelgpt/ask_voxelgpt_panel";function DA(){const i=_l(Jt.receiving),a=_l(Jt.waiting),r=hy(Jt.receiving),u=hy(Jt.messages),l=_l(Jt.messages),h=()=>{r(),LA(kA)};return Q.exports.jsxs(ml,{container:!0,justifyContent:"center",children:[l.length>0&&!i&&!a&&Q.exports.jsx(ml,{item:!0,children:Q.exports.jsx(dy,{color:"secondary",variant:"contained",startIcon:Q.exports.jsx(fy,{}),onClick:()=>u(),children:"Start Over"})}),Q.exports.jsx(ml,{item:!0,children:i&&Q.exports.jsx(dy,{onClick:h,color:"secondary",variant:"contained",startIcon:Q.exports.jsx(ly,{}),children:"Stop"})})]})}var yl={},FA=ir.exports;Object.defineProperty(yl,"__esModule",{value:!0});var py=yl.default=void 0,NA=FA(Tr()),BA=Q.exports,WA=(0,NA.default)((0,BA.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z"}),"Dataset");py=yl.default=WA;var wl={},UA=ir.exports;Object.defineProperty(wl,"__esModule",{value:!0});var gy=wl.default=void 0,zA=UA(Tr()),vy=Q.exports,YA=(0,zA.default)([(0,vy.jsx)("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43z"},"0"),(0,vy.jsx)("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7zm3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39z"},"1")],"Psychology");gy=wl.default=YA;var xl={},GA=ir.exports;Object.defineProperty(xl,"__esModule",{value:!0});var my=xl.default=void 0,HA=GA(Tr()),jA=Q.exports,KA=(0,HA.default)((0,jA.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"QuestionAnswer");my=xl.default=KA;var bl={},qA=ir.exports;Object.defineProperty(bl,"__esModule",{value:!0});var _y=bl.default=void 0,VA=qA(Tr()),XA=Q.exports,ZA=(0,VA.default)((0,XA.jsx)("path",{d:"M14 9v2h-3V9H8.5V7H11V1H4v6h2.5v2H4v6h2.5v2H4v6h7v-6H8.5v-2H11v-2h3v2h7V9h-7z"}),"Schema");_y=bl.default=ZA;var Sl={},JA=ir.exports;Object.defineProperty(Sl,"__esModule",{value:!0});var yy=Sl.default=void 0,QA=JA(Tr()),eE=Q.exports,tE=(0,QA.default)((0,eE.jsx)("path",{d:"M7 9H2V7h5v2zm0 3H2v2h5v-2zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59 20.59 19zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zM2 19h10v-2H2v2z"}),"ManageSearch");yy=Sl.default=tE;const wy=window.__mui__.Avatar,uf=window.__mui__.Grid,xy=window.__mui__.List,nE=window.__mui__.ListItem,by=window.__mui__.ListItemAvatar,rE=window.__mui__.ListItemButton,Sy=window.__mui__.ListItemText,Cy=window.__mui__.Paper,Cl=window.__mui__.Typography,iE=window.recoil.useSetRecoilState,oE=[{id:"example-1",label:"How do I export in COCO format?"},{id:"example-2",label:"What does the match() stage do?"},{id:"example-3",label:"Show me samples with a high confidence prediction evaluated as a false positive"},{id:"example-4",label:"Show me 10 images that contain dogs using text similarity"}],aE=[{id:"capability-1",label:"Can search the FiftyOne docs for answers and link to its sources",Icon:yy},{id:"capability-2",label:"Understands the schema of your dataset",Icon:_y},{id:"capability-3",label:"Can automatically load views that contain the content you specify",Icon:py},{id:"capability-4",label:"Knows how to use brain methods, evaluations, similarity indexes, and more",Icon:gy}],sE=()=>{const i=iE(Jt.input);return Q.exports.jsxs(uf,{container:!0,item:!0,direction:"row",sx:{margin:"auto"},spacing:2,justifyContent:"center",alignItems:"start",children:[Q.exports.jsx(uf,{item:!0,xs:12,children:Q.exports.jsx(Cl,{variant:"h2",style:{textAlign:"center"},children:"VoxelGPT"})}),Q.exports.jsx(uf,{item:!0,sm:12,lg:4,sx:{alignSelf:"stretch",minWidth:300},children:Q.exports.jsxs(Cy,{elevation:3,sx:{height:"100%",padding:"20px",marginBottom:"16px"},children:[Q.exports.jsx(Cl,{variant:"h4",gutterBottom:!0,style:{textAlign:"center"},children:"Examples"}),Q.exports.jsx(xy,{children:oE.map(({label:a,id:r})=>Q.exports.jsxs(rE,{onClick:()=>{i(a)},children:[Q.exports.jsx(by,{children:Q.exports.jsx(wy,{children:Q.exports.jsx(my,{})})}),Q.exports.jsx(Sy,{primary:a})]},r))})]})}),Q.exports.jsx(uf,{item:!0,sm:12,lg:4,sx:{alignSelf:"stretch",minWidth:300},children:Q.exports.jsxs(Cy,{elevation:3,sx:{height:"100%",padding:"20px",marginBottom:"16px"},children:[Q.exports.jsx(Cl,{variant:"h4",gutterBottom:!0,style:{textAlign:"center"},children:"Capabilities"}),Q.exports.jsx(xy,{children:aE.map(({id:a,label:r,Icon:u})=>Q.exports.jsxs(nE,{children:[Q.exports.jsx(by,{children:Q.exports.jsx(wy,{children:Q.exports.jsx(u,{})})}),Q.exports.jsx(Sy,{primary:r})]},a))})]})})]})},Ay=window.__foo__.registerOperator,uE=window.__foo__.useOperatorExecutor,cf=window.__mui__.Grid,cE=window.__mui__.Typography,fE=window.__mui__.Link,Al=window.recoil.useRecoilValue,El="@voxel51/voxelgpt";Fw({name:"voxelgpt",label:"VoxelGPT",component:()=>{const i=uE(`${El}/send_message_to_voxelgpt`),a=Al(Jt.messages),r=p=>{i.execute({message:p})},u=Al(Jt.receiving),l=Al(Jt.waiting),h=a.length>0;return Q.exports.jsxs(cf,{container:!0,direction:"row",spacing:2,sx:{height:"100%"},justifyContent:"center",children:[!h&&Q.exports.jsx(sE,{}),h&&Q.exports.jsx(cf,{item:!0,lg:12,children:Q.exports.jsx(iA,{})}),Q.exports.jsx(cf,{item:!0,container:!0,sx:{marginTop:h?"auto":void 0},justifyContent:"center",children:Q.exports.jsxs(cf,{item:!0,sm:12,md:6,lg:8,children:[Q.exports.jsx(DA,{}),Q.exports.jsx(pA,{hasMessages:h,disabled:u||l,onMessageSend:r}),Q.exports.jsxs(cE,{variant:"caption",sx:{marginTop:"8px",display:"block",textAlign:"center"},children:["VoxelGPT is in beta and may not understand certain queries."," ",Q.exports.jsx(fE,{href:"https://github.com/voxel51/voxelgpt",target:"_blank",children:"Learn more"})]})]})})]})},type:om.Panel,activator:()=>!0,Icon:()=>Q.exports.jsx(Q_,{size:"1rem",style:{marginRight:"0.5rem"}})}),Ay(_A,El),Ay(AA,El)}); diff --git a/src/avatars.tsx b/src/avatars.tsx index 6e86803..94f199a 100644 --- a/src/avatars.tsx +++ b/src/avatars.tsx @@ -1,10 +1,24 @@ +import React from "react"; export const ChatGPTAvatar = ({ size = 41, style = {} }) => { return ( - + - + - ) -} \ No newline at end of file + ); +};