(function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-jss"), require("@true-engineering/true-react-platform-helpers"), require("react-transition-group"), require("clsx"), require("hex-to-rgba"), require("@floating-ui/react"), require("react-input-mask"), require("date-fns"), require("react-overlays"), require("ts-debounce"), require("scroll-into-view-if-needed"), require("react-datepicker"), require("filesize"), require("country-flag-icons"), require("react-remove-scroll")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-jss", "@true-engineering/true-react-platform-helpers", "react-transition-group", "clsx", "hex-to-rgba", "@floating-ui/react", "react-input-mask", "date-fns", "react-overlays", "ts-debounce", "scroll-into-view-if-needed", "react-datepicker", "filesize", "country-flag-icons", "react-remove-scroll"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.TrueReactKitUiKit = {}, global2.React, global2.reactJss, global2.trueReactPlatformHelpers, global2.reactTransitionGroup, global2.clsx, global2.hexToRgba, global2.react, global2.InputMask, global2.dateFns, global2.reactOverlays, global2.tsDebounce, global2.scrollIntoViewIfNeeded, global2.ReactDatePicker, global2.filesize, global2.countryFlagIcons, global2.reactRemoveScroll)); })(this, function(exports2, React, reactJss, trueReactPlatformHelpers, reactTransitionGroup, clsx, hexToRgba, react, InputMask, dateFns, reactOverlays, tsDebounce, scrollIntoViewIfNeeded, ReactDatePicker, filesize, countryFlagIcons, reactRemoveScroll) { "use strict"; var jsxRuntime = { exports: {} }; var reactJsxRuntime_production_min = {}; /** * @license React * react-jsx-runtime.production.min.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. */ var hasRequiredReactJsxRuntime_production_min; function requireReactJsxRuntime_production_min() { if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min; hasRequiredReactJsxRuntime_production_min = 1; var f = React, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true }; function q(c, a, g) { var b, d = {}, e = null, h = null; void 0 !== g && (e = "" + g); void 0 !== a.key && (e = "" + a.key); void 0 !== a.ref && (h = a.ref); for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]); return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current }; } reactJsxRuntime_production_min.Fragment = l; reactJsxRuntime_production_min.jsx = q; reactJsxRuntime_production_min.jsxs = q; return reactJsxRuntime_production_min; } 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. */ var hasRequiredReactJsxRuntime_development; function requireReactJsxRuntime_development() { if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development; hasRequiredReactJsxRuntime_development = 1; if (process.env.NODE_ENV !== "production") { (function() { var React$1 = 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 = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function error(format) { { { for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } printWarning("error", format, args); } } } function printWarning(level, format, args) { { 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 || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { return true; } } return false; } function getWrappedName(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 getWrappedName(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 (x) { return null; } } } } return null; } var assign = 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: assign({}, props, { value: prevLog }), info: assign({}, props, { value: prevInfo }), warn: assign({}, props, { value: prevWarn }), error: assign({}, props, { value: prevError }), group: assign({}, props, { value: prevGroup }), groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), groupEnd: assign({}, 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 prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === void 0) { try { throw Error(); } catch (x) { var match2 = x.stack.trim().match(/\n( *(at )?)/); prefix = match2 && match2[1] || ""; } } return "\n" + prefix + 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 (x) { control = x; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); } catch (x) { control = x; } fn.call(Fake.prototype); } } else { try { throw Error(); } catch (x) { control = x; } fn(); } } catch (sample) { if (sample && control && typeof sample.stack === "string") { var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { c--; } for (; s >= 1 && c >= 0; s--, c--) { if (sampleLines[s] !== controlLines[c]) { if (s !== 1 || c !== 1) { do { s--; c--; if (c < 0 || sampleLines[s] !== controlLines[c]) { var _frame = "\n" + sampleLines[s].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 (s >= 1 && c >= 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 (x) { } } } } return ""; } var hasOwnProperty2 = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; 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 checkPropTypes(typeSpecs, values, location, componentName, element) { { var has = Function.call.bind(hasOwnProperty2); for (var typeSpecName in typeSpecs) { if (has(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](values, 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 loggedTypeFailures)) { loggedTypeFailures[error$1.message] = true; setCurrentlyValidatingElement(element); error("Failed %s type: %s", location, error$1.message); setCurrentlyValidatingElement(null); } } } } } var isArrayImpl = Array.isArray; function isArray2(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 = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, // Built-in properties that belong on the element type, key, ref, props, // Record the component responsible for creating this element. _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(node, parentType) { { if (typeof node !== "object") { return; } if (isArray2(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; if (isValidElement(child)) { validateExplicitKey(child, parentType); } } } else if (isValidElement(node)) { if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); if (typeof iteratorFn === "function") { if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); 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 propTypes; if (typeof type === "function") { propTypes = type.propTypes; } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. type.$$typeof === REACT_MEMO_TYPE)) { propTypes = type.propTypes; } else { return; } if (propTypes) { var name = getComponentNameFromType(type); checkPropTypes(propTypes, 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 keys2 = Object.keys(fragment.props); for (var i = 0; i < keys2.length; i++) { var key = keys2[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 (isArray2(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 (isArray2(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 jsx2 = jsxWithValidationDynamic; var jsxs2 = jsxWithValidationStatic; reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE; reactJsxRuntime_development.jsx = jsx2; reactJsxRuntime_development.jsxs = jsxs2; })(); } return reactJsxRuntime_development; } (function(module2) { if (process.env.NODE_ENV === "production") { module2.exports = requireReactJsxRuntime_production_min(); } else { module2.exports = requireReactJsxRuntime_development(); } })(jsxRuntime); const Fragment = jsxRuntime.exports.Fragment; const jsx = jsxRuntime.exports.jsx; const jsxs = jsxRuntime.exports.jsxs; var colors = { FONT_MAIN: "#222a37", FONT_MEDIUM: "#505f79", FONT_LABEL: "#7a869a", FONT_DISABLED: "#95a0b3", GREY_ACTIVE: "#95a0b3", BORDER_MAIN: "#d0d6e1", BORDER_LIGHT: "#dde3ed", GREY_HOVER: "#dde3ed", GREY_FOCUS: "#eceff5", GREY_DISABLED: "#eceff5", GREY_BACKGROUND: "#f6f8fc", CLASSIC_WHITE: "#ffffff", RED_ACTIVE: "#912e34", RED_HOVER: "#c13e45", RED_WARNING: "#f14d56", RED_WARNING_LIGHT: "#ff6261", RED_BACKGROUND: "#feedee", ORANGE_BACKGROUND: "#fff4e9", GREEN_BACKGROUND: "#f4f9e6", BLUE_BACKGROUND: "#ebf1ff", // временные константы пока не будет полной темизации GREEN_FOCUS: "#97ba1e", ORANGE_FOCUS: "#ff991f" }; var dimensions = { BORDER_RADIUS_LARGE: 16, BORDER_RADIUS_MEDIUM: 12, BORDER_RADIUS_STD: 8, BORDER_RADIUS_SMALL: 6, BORDER_RADIUS_EXTRA_SMALL: 4, CONTROL_HEIGHT: 48 }; var helpers = { withAngle: function() { var angleSize = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 6, position = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "left", distance = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 100; return { display: "inline-block", position: "relative", marginTop: angleSize * 2 - 1, boxShadow: "0 8px 20px 0 rgba(0, 0, 0, 0.04)", border: [ "solid", 1, colors.BORDER_MAIN ], borderRadius: dimensions.BORDER_RADIUS_EXTRA_SMALL, "&:before": { content: '""', position: "absolute", top: -angleSize, left: position === "left" && distance, right: position === "right" && distance, width: 0, height: 0, borderLeft: [ angleSize, "solid", "transparent" ], borderRight: [ angleSize, "solid", "transparent" ], borderBottom: [ angleSize, "solid", colors.BORDER_MAIN ] }, "&:after": { content: '""', position: "absolute", top: -angleSize + 1, left: position === "left" && distance + 1, right: position === "right" && distance + 1, width: 0, height: 0, borderLeft: [ angleSize - 1, "solid", "transparent" ], borderRight: [ angleSize - 1, "solid", "transparent" ], borderBottom: [ angleSize - 1, "solid", colors.CLASSIC_WHITE ] } }; }, withScrollBar: { boxSizing: "border-box", overflow: "auto", // Chromium "@supports selector(::-webkit-scrollbar)": { "&::-webkit-scrollbar": { height: 10, width: 10, "&-thumb": { width: 6, minHeight: 30, border: [ 2, "solid", "transparent" ], borderRadius: 5, backgroundColor: colors.BORDER_MAIN, backgroundClip: "padding-box", "&:hover": { backgroundColor: colors.GREY_ACTIVE } }, "&-track-piece": { backgroundColor: "transparent" }, "&-corner": { backgroundColor: "transparent" } } }, // Firefox "@supports not selector(::-webkit-scrollbar)": { scrollbarWidth: "thin", scrollbarColor: "".concat(colors.BORDER_MAIN, " transparent") } } }; var SLIDE_UP_ANIMATION_DURATION = 150; var SLIDE_UP_POSITION_START = 15; var SLIDE_UP_POSITION_END = 0; var animations = { defaultTransition: "0.25s ease-in-out", // Если понадобится, сюда можно пробросить параметры через useTheme props slideUp: { "slide-up-enter": { opacity: 0, transform: "translateY(".concat(SLIDE_UP_POSITION_START, "px)") }, "slide-up-enter-active": { opacity: 1, transform: "translateY(".concat(SLIDE_UP_POSITION_END, "px)"), transition: "".concat(SLIDE_UP_ANIMATION_DURATION, "ms ease-in-out"), transitionProperty: "opacity, transform" }, "slide-up-exit-active": { opacity: 1, transform: "translateY(".concat(SLIDE_UP_POSITION_END, "px)") }, "slide-up-exit": { opacity: 0, transform: "translateY(".concat(SLIDE_UP_POSITION_START, "px)"), transition: "".concat(SLIDE_UP_ANIMATION_DURATION, "ms ease-in-out"), transitionProperty: "opacity, transform" } } }; var common = { animations, colors, dimensions, helpers }; var globalTheme; var getTheme = function() { return globalTheme; }; var ThemeContext = /* @__PURE__ */ React.createContext({ theme: common }); var ThemeProvider = function(param) { var theme = param.theme, children = param.children; globalTheme = theme; return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: { theme }, children }); }; function listCacheClear() { this.__data__ = []; this.size = 0; } function eq(value, other) { return value === other || value !== value && other !== other; } function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } var arrayProto = Array.prototype; var splice = arrayProto.splice; 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 ? void 0 : 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; } function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } ListCache.prototype.clear = listCacheClear; ListCache.prototype["delete"] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; function stackClear() { this.__data__ = new ListCache(); this.size = 0; } function stackDelete(key) { var data = this.__data__, result = data["delete"](key); this.size = data.size; return result; } function stackGet(key) { return this.__data__.get(key); } function stackHas(key) { return this.__data__.has(key); } var freeGlobal = typeof global == "object" && global && global.Object === Object && global; const freeGlobal$1 = freeGlobal; var freeSelf = typeof self == "object" && self && self.Object === Object && self; var root = freeGlobal$1 || freeSelf || Function("return this")(); const root$1 = root; var Symbol$1 = root$1.Symbol; const Symbol$2 = Symbol$1; var objectProto$d = Object.prototype; var hasOwnProperty$a = objectProto$d.hasOwnProperty; var nativeObjectToString$1 = objectProto$d.toString; var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0; function getRawTag(value) { var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { value[symToStringTag$1] = void 0; var unmasked = true; } catch (e) { } var result = nativeObjectToString$1.call(value); if (unmasked) { if (isOwn) { value[symToStringTag$1] = tag; } else { delete value[symToStringTag$1]; } } return result; } var objectProto$c = Object.prototype; var nativeObjectToString = objectProto$c.toString; function objectToString(value) { return nativeObjectToString.call(value); } var nullTag = "[object Null]", undefinedTag = "[object Undefined]"; var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0; function baseGetTag(value) { if (value == null) { return value === void 0 ? undefinedTag : nullTag; } return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); } function isObject(value) { var type = typeof value; return value != null && (type == "object" || type == "function"); } var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; function isFunction(value) { if (!isObject(value)) { return false; } var tag = baseGetTag(value); return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } var coreJsData = root$1["__core-js_shared__"]; const coreJsData$1 = coreJsData; var maskSrcKey = function() { var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); function isMasked(func) { return !!maskSrcKey && maskSrcKey in func; } var funcProto$2 = Function.prototype; var funcToString$2 = funcProto$2.toString; function toSource(func) { if (func != null) { try { return funcToString$2.call(func); } catch (e) { } try { return func + ""; } catch (e) { } } return ""; } var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; var funcProto$1 = Function.prototype, objectProto$b = Object.prototype; var funcToString$1 = funcProto$1.toString; var hasOwnProperty$9 = objectProto$b.hasOwnProperty; var reIsNative = RegExp( "^" + funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } function getValue(object, key) { return object == null ? void 0 : object[key]; } function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : void 0; } var Map$1 = getNative(root$1, "Map"); const Map$2 = Map$1; var nativeCreate = getNative(Object, "create"); const nativeCreate$1 = nativeCreate; function hashClear() { this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {}; this.size = 0; } function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; var objectProto$a = Object.prototype; var hasOwnProperty$8 = objectProto$a.hasOwnProperty; function hashGet(key) { var data = this.__data__; if (nativeCreate$1) { var result = data[key]; return result === HASH_UNDEFINED$1 ? void 0 : result; } return hasOwnProperty$8.call(data, key) ? data[key] : void 0; } var objectProto$9 = Object.prototype; var hasOwnProperty$7 = objectProto$9.hasOwnProperty; function hashHas(key) { var data = this.__data__; return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$7.call(data, key); } var HASH_UNDEFINED = "__lodash_hash_undefined__"; function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED : value; return this; } function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } Hash.prototype.clear = hashClear; Hash.prototype["delete"] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; function mapCacheClear() { this.size = 0; this.__data__ = { "hash": new Hash(), "map": new (Map$2 || ListCache)(), "string": new Hash() }; } function isKeyable(value) { var type = typeof value; return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; } function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } function mapCacheDelete(key) { var result = getMapData(this, key)["delete"](key); this.size -= result ? 1 : 0; return result; } 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), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } MapCache.prototype.clear = mapCacheClear; MapCache.prototype["delete"] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; var LARGE_ARRAY_SIZE = 200; function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map$2 || 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; } function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } Stack.prototype.clear = stackClear; Stack.prototype["delete"] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; var defineProperty = function() { try { var func = getNative(Object, "defineProperty"); func({}, "", {}); return func; } catch (e) { } }(); const defineProperty$1 = defineProperty; function baseAssignValue(object, key, value) { if (key == "__proto__" && defineProperty$1) { defineProperty$1(object, key, { "configurable": true, "enumerable": true, "value": value, "writable": true }); } else { object[key] = value; } } function assignMergeValue(object, key, value) { if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) { baseAssignValue(object, key, value); } } function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } var baseFor = createBaseFor(); const baseFor$1 = baseFor; var freeExports$2 = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2; var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module; var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2; var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0, allocUnsafe = Buffer$1 ? Buffer$1.allocUnsafe : void 0; function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } var Uint8Array = root$1.Uint8Array; const Uint8Array$1 = Uint8Array; function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer)); return result; } function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } var objectCreate = Object.create; var baseCreate = function() { function object() { } return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object(); object.prototype = void 0; return result; }; }(); const baseCreate$1 = baseCreate; function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } var getPrototype = overArg(Object.getPrototypeOf, Object); const getPrototype$1 = getPrototype; var objectProto$8 = Object.prototype; function isPrototype(value) { var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$8; return value === proto; } function initCloneObject(object) { return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate$1(getPrototype$1(object)) : {}; } function isObjectLike(value) { return value != null && typeof value == "object"; } var argsTag$2 = "[object Arguments]"; function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag$2; } var objectProto$7 = Object.prototype; var hasOwnProperty$6 = objectProto$7.hasOwnProperty; var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable; var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee"); }; const isArguments$1 = isArguments; var isArray = Array.isArray; const isArray$1 = isArray; var MAX_SAFE_INTEGER$1 = 9007199254740991; function isLength(value) { return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1; } function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } function stubFalse() { return false; } var freeExports$1 = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2; var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module; var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1; var Buffer = moduleExports$1 ? root$1.Buffer : void 0; var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0; var isBuffer = nativeIsBuffer || stubFalse; const isBuffer$1 = isBuffer; var objectTag$3 = "[object Object]"; var funcProto = Function.prototype, objectProto$6 = Object.prototype; var funcToString = funcProto.toString; var hasOwnProperty$5 = objectProto$6.hasOwnProperty; var objectCtorString = funcToString.call(Object); function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) { return false; } var proto = getPrototype$1(value); if (proto === null) { return true; } var Ctor = hasOwnProperty$5.call(proto, "constructor") && proto.constructor; return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]"; var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]"; var typedArrayTags = {}; typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true; typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false; function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } function baseUnary(func) { return function(value) { return func(value); }; } var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2; var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; var moduleExports = freeModule && freeModule.exports === freeExports; var freeProcess = moduleExports && freeGlobal$1.process; var nodeUtil = function() { try { var types = freeModule && freeModule.require && freeModule.require("util").types; if (types) { return types; } return freeProcess && freeProcess.binding && freeProcess.binding("util"); } catch (e) { } }(); const nodeUtil$1 = nodeUtil; var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray; var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; const isTypedArray$1 = isTypedArray; function safeGet(object, key) { if (key === "constructor" && typeof object[key] === "function") { return; } if (key == "__proto__") { return; } return object[key]; } var objectProto$5 = Object.prototype; var hasOwnProperty$4 = objectProto$5.hasOwnProperty; function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty$4.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { baseAssignValue(object, key, value); } } function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; if (newValue === void 0) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } var objectProto$4 = Object.prototype; var hasOwnProperty$3 = objectProto$4.hasOwnProperty; function arrayLikeKeys(value, inherited) { var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. isIndex(key, length)))) { result.push(key); } } return result; } function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } var objectProto$3 = Object.prototype; var hasOwnProperty$2 = objectProto$3.hasOwnProperty; function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) { result.push(key); } } return result; } function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } function toPlainObject(value) { return copyObject(value, keysIn(value)); } 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) : void 0; var isCommon = newValue === void 0; if (isCommon) { var isArr = isArray$1(srcValue), isBuff = !isArr && isBuffer$1(srcValue), isTyped = !isArr && !isBuff && isTypedArray$1(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray$1(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 (isPlainObject(srcValue) || isArguments$1(srcValue)) { newValue = objValue; if (isArguments$1(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 baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor$1(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) : void 0; if (newValue === void 0) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } function identity(value) { return value; } 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); } var nativeMax = Math.max; function overRest(func, start2, transform) { start2 = nativeMax(start2 === void 0 ? func.length - 1 : start2, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start2, 0), array = Array(length); while (++index < length) { array[index] = args[start2 + index]; } index = -1; var otherArgs = Array(start2 + 1); while (++index < start2) { otherArgs[index] = args[index]; } otherArgs[start2] = transform(array); return apply(func, this, otherArgs); }; } function constant(value) { return function() { return value; }; } var baseSetToString = !defineProperty$1 ? identity : function(func, string) { return defineProperty$1(func, "toString", { "configurable": true, "enumerable": false, "value": constant(string), "writable": true }); }; const baseSetToString$1 = baseSetToString; var HOT_COUNT = 800, HOT_SPAN = 16; var nativeNow = Date.now; 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(void 0, arguments); }; } var setToString = shortOut(baseSetToString$1); const setToString$1 = setToString; function baseRest(func, start2) { return setToString$1(overRest(func, start2, identity), func + ""); } 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 createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? void 0 : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } var merge = createAssigner(function(object, source, srcIndex) { baseMerge(object, source, srcIndex); }); const merge$1 = merge; function _define_property$13(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$11(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$13(target, key, source[key]); }); } return target; } function ownKeys$S(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$S(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$S(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var EMPTY_STYLES = {}; var isTweakStyle = function(key) { return key.startsWith("tweak"); }; var cleanStyles = function(tweakStyles) { return trueReactPlatformHelpers.isNotEmpty(tweakStyles) && Object.keys(tweakStyles).some(function(key) { return !isTweakStyle(key); }) ? tweakStyles : EMPTY_STYLES; }; var checkStyles = function(componentName, styles) { var invalidClasses = Object.keys(styles).reduce(function(acc, key) { if (isTweakStyle(key)) { acc.push(key); } return acc; }, []); if (trueReactPlatformHelpers.isArrayNotEmpty(invalidClasses)) { console.error("".concat(componentName, ': Названия классов не должны начинаться со слова "tweak": ').concat(invalidClasses)); } }; var areStylesThemed = function(styles) { return ( // eslint-disable-next-line no-underscore-dangle styles.__themed === true ); }; var themedStyles = function(styles, themeComponentStyles) { merge$1(styles, themeComponentStyles); Object.defineProperty(styles, "__themed", { value: true }); return styles; }; function createThemedStyles() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var shouldUseTheme = args.length > 1; var styles = shouldUseTheme ? args[1] : args[0]; var componentName = shouldUseTheme ? args[0] : void 0; if (process.env.NODE_ENV !== "production") { checkStyles(componentName !== null && componentName !== void 0 ? componentName : "LocalComponent", styles); } var useStyles2 = reactJss.createUseStyles(function(tweakStyles) { var _theme_components; var theme = getTheme(); return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles); }); return function(data) { return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$S(_object_spread$11({}, data), { theme: cleanStyles(data.theme) }) : data); }; } var minWidthModifier = { name: "minWidth", enabled: true, phase: "beforeWrite", requires: [ "computeStyles" ], fn: function(param) { var state = param.state; state.styles.popper.minWidth = "".concat(state.rects.reference.width, "px"); }, effect: function(param) { var state = param.state; state.elements.popper.style.minWidth = "".concat(state.elements.reference.offsetWidth, "px"); } }; var phoneInfo = [ { countryEn: "Afghanistan", countryRu: "Афганистан", countryCode: "AF", dialCode: "93", fullCodes: [ "93" ] }, { countryEn: "Albania", countryRu: "Албания", countryCode: "AL", dialCode: "355", fullCodes: [ "355" ] }, { countryEn: "Algeria", countryRu: "Алжир", countryCode: "DZ", dialCode: "213", fullCodes: [ "213" ] }, { countryEn: "Andorra", countryRu: "Андорра", countryCode: "AD", dialCode: "376", fullCodes: [ "376" ] }, { countryEn: "Angola", countryRu: "Ангола", countryCode: "AO", dialCode: "244", fullCodes: [ "244" ] }, { countryEn: "Antigua and Barbuda", countryRu: "Антигуа и Барбуда", countryCode: "AG", dialCode: "1268", fullCodes: [ "1268" ] }, { countryEn: "Argentina", countryRu: "Аргентина", countryCode: "AR", dialCode: "54", phoneMask: "(99) 99999999", fullCodes: [ "54" ] }, { countryEn: "Armenia", countryRu: "Армения", countryCode: "AM", dialCode: "374", fullCodes: [ "374" ] }, { countryEn: "Aruba", countryRu: "Аруба", countryCode: "AW", dialCode: "297", fullCodes: [ "297" ] }, { countryEn: "Australia", countryRu: "Австралия", countryCode: "AU", dialCode: "61", phoneMask: "(99) 9999 9999", dialCodePriority: 0, areaCodes: [ "2", "3", "4", "7", "8", "02", "03", "04", "07", "08" ], fullCodes: [ "612", "613", "614", "617", "618", "6102", "6103", "6104", "6107", "6108" ] }, { countryEn: "Austria", countryRu: "Австрия", countryCode: "AT", dialCode: "43", fullCodes: [ "43" ] }, { countryEn: "Azerbaijan", countryRu: "Азербайджан", countryCode: "AZ", dialCode: "994", fullCodes: [ "994" ] }, { countryEn: "Bahamas", countryRu: "Багамы", countryCode: "BS", dialCode: "1242", fullCodes: [ "1242" ] }, { countryEn: "Bahrain", countryRu: "Бахрейн", countryCode: "BH", dialCode: "973", fullCodes: [ "973" ] }, { countryEn: "Bangladesh", countryRu: "Бангладеш", countryCode: "BD", dialCode: "880", fullCodes: [ "880" ] }, { countryEn: "Barbados", countryRu: "Барбадос", countryCode: "BB", dialCode: "1246", fullCodes: [ "1246" ] }, { countryEn: "Belarus", countryRu: "Беларусь", countryCode: "BY", dialCode: "375", phoneMask: "(99) 999 99 99", fullCodes: [ "375" ] }, { countryEn: "Belgium", countryRu: "Бельгия", countryCode: "BE", dialCode: "32", phoneMask: "999 99 99 99", fullCodes: [ "32" ] }, { countryEn: "Belize", countryRu: "Белиз", countryCode: "BZ", dialCode: "501", fullCodes: [ "501" ] }, { countryEn: "Benin", countryRu: "Бенин", countryCode: "BJ", dialCode: "229", fullCodes: [ "229" ] }, { countryEn: "Bhutan", countryRu: "Бутан", countryCode: "BT", dialCode: "975", fullCodes: [ "975" ] }, { countryEn: "Bolivia", countryRu: "Боливия", countryCode: "BO", dialCode: "591", fullCodes: [ "591" ] }, { countryEn: "Bosnia and Herzegovina", countryRu: "Босния и Герцеговина", countryCode: "BA", dialCode: "387", fullCodes: [ "387" ] }, { countryEn: "Botswana", countryRu: "Ботсвана", countryCode: "BW", dialCode: "267", fullCodes: [ "267" ] }, { countryEn: "Brazil", countryRu: "Бразилия", countryCode: "BR", dialCode: "55", phoneMask: "(99) 999999999", fullCodes: [ "55" ] }, { countryEn: "British Indian Ocean Territory", countryRu: "Британская территория в Индийском океане", countryCode: "IO", dialCode: "246", fullCodes: [ "246" ] }, { countryEn: "Brunei", countryRu: "Бруней-Даруссалам", countryCode: "BN", dialCode: "673", fullCodes: [ "673" ] }, { countryEn: "Bulgaria", countryRu: "Болгария", countryCode: "BG", dialCode: "359", fullCodes: [ "359" ] }, { countryEn: "Burkina Faso", countryRu: "Буркина-Фасо", countryCode: "BF", dialCode: "226", fullCodes: [ "226" ] }, { countryEn: "Burundi", countryRu: "Бурунди", countryCode: "BI", dialCode: "257", fullCodes: [ "257" ] }, { countryEn: "Cambodia", countryRu: "Камбоджа", countryCode: "KH", dialCode: "855", fullCodes: [ "855" ] }, { countryEn: "Cameroon", countryRu: "Камерун", countryCode: "CM", dialCode: "237", fullCodes: [ "237" ] }, { countryEn: "Canada", countryRu: "Канада", countryCode: "CA", dialCode: "1", phoneMask: "(999) 999-9999", dialCodePriority: 1, areaCodes: [ "204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905" ], fullCodes: [ "1204", "1226", "1236", "1249", "1250", "1289", "1306", "1343", "1365", "1387", "1403", "1416", "1418", "1431", "1437", "1438", "1450", "1506", "1514", "1519", "1548", "1579", "1581", "1587", "1604", "1613", "1639", "1647", "1672", "1705", "1709", "1742", "1778", "1780", "1782", "1807", "1819", "1825", "1867", "1873", "1902", "1905" ] }, { countryEn: "Cape Verde", countryRu: "Кабо-Верде", countryCode: "CV", dialCode: "238", fullCodes: [ "238" ] }, { countryEn: "Caribbean Netherlands", countryRu: "Бонайре, Саба и Синт-Эстатиус", countryCode: "BQ", dialCode: "599", dialCodePriority: 1, fullCodes: [ "599" ] }, { countryEn: "Central African Republic", countryRu: "Центрально-Африканская Республика", countryCode: "CF", dialCode: "236", fullCodes: [ "236" ] }, { countryEn: "Chad", countryRu: "Чад", countryCode: "TD", dialCode: "235", fullCodes: [ "235" ] }, { countryEn: "Chile", countryRu: "Чили", countryCode: "CL", dialCode: "56", fullCodes: [ "56" ] }, { countryEn: "China", countryRu: "Китай", countryCode: "CN", dialCode: "86", phoneMask: "99-999999999", fullCodes: [ "86" ] }, { countryEn: "Colombia", countryRu: "Колумбия", countryCode: "CO", dialCode: "57", fullCodes: [ "57" ] }, { countryEn: "Comoros", countryRu: "Коморы", countryCode: "KM", dialCode: "269", fullCodes: [ "269" ] }, { countryEn: "DR Congo", countryRu: "ДР Конго", countryCode: "CD", dialCode: "243", fullCodes: [ "243" ] }, { countryEn: "Republic of the Congo", countryRu: "Республика Конго", countryCode: "CG", dialCode: "242", fullCodes: [ "242" ] }, { countryEn: "Costa Rica", countryRu: "Коста-Рика", countryCode: "CR", dialCode: "506", phoneMask: "9999-9999", fullCodes: [ "506" ] }, { countryEn: "Côte d’Ivoire", countryRu: "Кот д’Ивуар", countryCode: "CI", dialCode: "225", phoneMask: "99 99 99 99", fullCodes: [ "225" ] }, { countryEn: "Croatia", countryRu: "Хорватия", countryCode: "HR", dialCode: "385", fullCodes: [ "385" ] }, { countryEn: "Cuba", countryRu: "Куба", countryCode: "CU", dialCode: "53", fullCodes: [ "53" ] }, { countryEn: "Curaçao", countryRu: "Кюрасао", countryCode: "CW", dialCode: "599", dialCodePriority: 0, fullCodes: [ "599" ] }, { countryEn: "Cyprus", countryRu: "Кипр", countryCode: "CY", dialCode: "357", phoneMask: "99 999999", fullCodes: [ "357" ] }, { countryEn: "Czech Republic", countryRu: "Чешская Республика", countryCode: "CZ", dialCode: "420", fullCodes: [ "420" ] }, { countryEn: "Denmark", countryRu: "Дания", countryCode: "DK", dialCode: "45", phoneMask: "99 99 99 99", fullCodes: [ "45" ] }, { countryEn: "Djibouti", countryRu: "Джибути", countryCode: "DJ", dialCode: "253", fullCodes: [ "253" ] }, { countryEn: "Dominica", countryRu: "Доминика", countryCode: "DM", dialCode: "1767", fullCodes: [ "1767" ] }, { countryEn: "Dominican Republic", countryRu: "Доминиканская Республика", countryCode: "DO", dialCode: "1", dialCodePriority: 2, areaCodes: [ "809", "829", "849" ], fullCodes: [ "1809", "1829", "1849" ] }, { countryEn: "Ecuador", countryRu: "Эквадор", countryCode: "EC", dialCode: "593", fullCodes: [ "593" ] }, { countryEn: "Egypt", countryRu: "Египет", countryCode: "EG", dialCode: "20", fullCodes: [ "20" ] }, { countryEn: "El Salvador", countryRu: "Эль-Сальвадор", countryCode: "SV", dialCode: "503", phoneMask: "9999-9999", fullCodes: [ "503" ] }, { countryEn: "Equatorial Guinea", countryRu: "Экваториальная Гвинея", countryCode: "GQ", dialCode: "240", fullCodes: [ "240" ] }, { countryEn: "Eritrea", countryRu: "Эритрея", countryCode: "ER", dialCode: "291", fullCodes: [ "291" ] }, { countryEn: "Estonia", countryRu: "Эстония", countryCode: "EE", dialCode: "372", phoneMask: "9999 999999", fullCodes: [ "372" ] }, { countryEn: "Ethiopia", countryRu: "Эфиопия", countryCode: "ET", dialCode: "251", fullCodes: [ "251" ] }, { countryEn: "Fiji", countryRu: "Фиджи", countryCode: "FJ", dialCode: "679", fullCodes: [ "679" ] }, { countryEn: "Finland", countryRu: "Финляндия", countryCode: "FI", dialCode: "358", phoneMask: "99 999 99 99", fullCodes: [ "358" ] }, { countryEn: "France", countryRu: "Франция", countryCode: "FR", dialCode: "33", phoneMask: "9 99 99 99 99", fullCodes: [ "33" ] }, { countryEn: "French Guiana", countryRu: "Французская Гвиана", countryCode: "GF", dialCode: "594", fullCodes: [ "594" ] }, { countryEn: "French Polynesia", countryRu: "Французская Полинезия", countryCode: "PF", dialCode: "689", fullCodes: [ "689" ] }, { countryEn: "Gabon", countryRu: "Габон", countryCode: "GA", dialCode: "241", fullCodes: [ "241" ] }, { countryEn: "Gambia", countryRu: "Гамбия", countryCode: "GM", dialCode: "220", fullCodes: [ "220" ] }, { countryEn: "Georgia", countryRu: "Грузия", countryCode: "GE", dialCode: "995", fullCodes: [ "995" ] }, { countryEn: "Germany", countryRu: "Германия", countryCode: "DE", dialCode: "49", phoneMask: "9999 99999999", fullCodes: [ "49" ] }, { countryEn: "Ghana", countryRu: "Гана", countryCode: "GH", dialCode: "233", fullCodes: [ "233" ] }, { countryEn: "Greece", countryRu: "Греция", countryCode: "GR", dialCode: "30", fullCodes: [ "30" ] }, { countryEn: "Grenada", countryRu: "Гренада", countryCode: "GD", dialCode: "1473", fullCodes: [ "1473" ] }, { countryEn: "Guadeloupe", countryRu: "Гваделупа", countryCode: "GP", dialCode: "590", dialCodePriority: 0, fullCodes: [ "590" ] }, { countryEn: "Guam", countryRu: "Гуам", countryCode: "GU", dialCode: "1671", fullCodes: [ "1671" ] }, { countryEn: "Guatemala", countryRu: "Гватемала", countryCode: "GT", dialCode: "502", phoneMask: "9999-9999", fullCodes: [ "502" ] }, { countryEn: "Guinea", countryRu: "Гвинея", countryCode: "GN", dialCode: "224", fullCodes: [ "224" ] }, { countryEn: "Guinea-Bissau", countryRu: "Гвинея-Бисау", countryCode: "GW", dialCode: "245", fullCodes: [ "245" ] }, { countryEn: "Guyana", countryRu: "Гайана", countryCode: "GY", dialCode: "592", fullCodes: [ "592" ] }, { countryEn: "Haiti", countryRu: "Гаити", countryCode: "HT", dialCode: "509", phoneMask: "9999-9999", fullCodes: [ "509" ] }, { countryEn: "Honduras", countryRu: "Гондурас", countryCode: "HN", dialCode: "504", fullCodes: [ "504" ] }, { countryEn: "Hong Kong", countryRu: "Гонконг", countryCode: "HK", dialCode: "852", phoneMask: "9999 9999", fullCodes: [ "852" ] }, { countryEn: "Hungary", countryRu: "Венгрия", countryCode: "HU", dialCode: "36", fullCodes: [ "36" ] }, { countryEn: "Iceland", countryRu: "Исландия", countryCode: "IS", dialCode: "354", phoneMask: "999 9999", fullCodes: [ "354" ] }, { countryEn: "India", countryRu: "Индия", countryCode: "IN", dialCode: "91", phoneMask: "99999-99999", fullCodes: [ "91" ] }, { countryEn: "Indonesia", countryRu: "Индонезия", countryCode: "ID", dialCode: "62", fullCodes: [ "62" ] }, { countryEn: "Iran", countryRu: "Иран", countryCode: "IR", dialCode: "98", fullCodes: [ "98" ] }, { countryEn: "Iraq", countryRu: "Ирак", countryCode: "IQ", dialCode: "964", fullCodes: [ "964" ] }, { countryEn: "Ireland", countryRu: "Ирландия", countryCode: "IE", dialCode: "353", phoneMask: "99 9999999", fullCodes: [ "353" ] }, { countryEn: "Israel", countryRu: "Израиль", countryCode: "IL", dialCode: "972", phoneMask: "999 999 9999", fullCodes: [ "972" ] }, { countryEn: "Italy", countryRu: "Италия", countryCode: "IT", dialCode: "39", phoneMask: "999 9999999", dialCodePriority: 0, fullCodes: [ "39" ] }, { countryEn: "Jamaica", countryRu: "Ямайка", countryCode: "JM", dialCode: "1876", fullCodes: [ "1876" ] }, { countryEn: "Japan", countryRu: "Япония", countryCode: "JP", dialCode: "81", phoneMask: "99 9999 9999", fullCodes: [ "81" ] }, { countryEn: "Jordan", countryRu: "Иордания", countryCode: "JO", dialCode: "962", fullCodes: [ "962" ] }, { countryEn: "Kazakhstan", countryRu: "Казахстан", countryCode: "KZ", dialCode: "7", phoneMask: "999 999-99-99", dialCodePriority: 1, areaCodes: [ "310", "311", "312", "313", "315", "318", "321", "324", "325", "326", "327", "336", "7172", "73622" ], fullCodes: [ "7310", "7311", "7312", "7313", "7315", "7318", "7321", "7324", "7325", "7326", "7327", "7336", "77172", "773622" ] }, { countryEn: "Kenya", countryRu: "Кения", countryCode: "KE", dialCode: "254", fullCodes: [ "254" ] }, { countryEn: "Kiribati", countryRu: "Кирибати", countryCode: "KI", dialCode: "686", fullCodes: [ "686" ] }, { countryEn: "Kosovo", countryRu: "Косово", countryCode: "XK", dialCode: "383", fullCodes: [ "383" ] }, { countryEn: "Kuwait", countryRu: "Кувейт", countryCode: "KW", dialCode: "965", fullCodes: [ "965" ] }, { countryEn: "Kyrgyzstan", countryRu: "Киргизия", countryCode: "KG", dialCode: "996", fullCodes: [ "996" ] }, { countryEn: "Laos", countryRu: "Лаос", countryCode: "LA", dialCode: "856", fullCodes: [ "856" ] }, { countryEn: "Latvia", countryRu: "Латвия", countryCode: "LV", dialCode: "371", fullCodes: [ "371" ] }, { countryEn: "Lebanon", countryRu: "Ливан", countryCode: "LB", dialCode: "961", fullCodes: [ "961" ] }, { countryEn: "Lesotho", countryRu: "Лесото", countryCode: "LS", dialCode: "266", fullCodes: [ "266" ] }, { countryEn: "Liberia", countryRu: "Либерия", countryCode: "LR", dialCode: "231", fullCodes: [ "231" ] }, { countryEn: "Libya", countryRu: "Ливийская Арабская Джамахирия", countryCode: "LY", dialCode: "218", fullCodes: [ "218" ] }, { countryEn: "Liechtenstein", countryRu: "Лихтенштейн", countryCode: "LI", dialCode: "423", fullCodes: [ "423" ] }, { countryEn: "Lithuania", countryRu: "Литва", countryCode: "LT", dialCode: "370", fullCodes: [ "370" ] }, { countryEn: "Luxembourg", countryRu: "Люксембург", countryCode: "LU", dialCode: "352", fullCodes: [ "352" ] }, { countryEn: "Macau", countryRu: "Макао", countryCode: "MO", dialCode: "853", fullCodes: [ "853" ] }, { countryEn: "Macedonia", countryRu: "Республика Македония", countryCode: "MK", dialCode: "389", fullCodes: [ "389" ] }, { countryEn: "Madagascar", countryRu: "Мадагаскар", countryCode: "MG", dialCode: "261", fullCodes: [ "261" ] }, { countryEn: "Malawi", countryRu: "Малави", countryCode: "MW", dialCode: "265", fullCodes: [ "265" ] }, { countryEn: "Malaysia", countryRu: "Малайзия", countryCode: "MY", dialCode: "60", phoneMask: "99-9999-9999", fullCodes: [ "60" ] }, { countryEn: "Maldives", countryRu: "Мальдивы", countryCode: "MV", dialCode: "960", fullCodes: [ "960" ] }, { countryEn: "Mali", countryRu: "Мали", countryCode: "ML", dialCode: "223", fullCodes: [ "223" ] }, { countryEn: "Malta", countryRu: "Мальта", countryCode: "MT", dialCode: "356", fullCodes: [ "356" ] }, { countryEn: "Marshall Islands", countryRu: "Маршалловы острова", countryCode: "MH", dialCode: "692", fullCodes: [ "692" ] }, { countryEn: "Martinique", countryRu: "Мартиника", countryCode: "MQ", dialCode: "596", fullCodes: [ "596" ] }, { countryEn: "Mauritania", countryRu: "Мавритания", countryCode: "MR", dialCode: "222", fullCodes: [ "222" ] }, { countryEn: "Mauritius", countryRu: "Маврикий", countryCode: "MU", dialCode: "230", fullCodes: [ "230" ] }, { countryEn: "Mexico", countryRu: "Мексика", countryCode: "MX", dialCode: "52", phoneMask: "999 999 9999", dialCodePriority: 0, areaCodes: [ "55", "81", "33", "656", "664", "998", "774", "229" ], fullCodes: [ "5255", "5281", "5233", "52656", "52664", "52998", "52774", "52229" ] }, { countryEn: "Micronesia", countryRu: "Микронезия, Федеративные Штаты", countryCode: "FM", dialCode: "691", fullCodes: [ "691" ] }, { countryEn: "Moldova", countryRu: "Молдова, Республика", countryCode: "MD", dialCode: "373", phoneMask: "(99) 99-99-99", fullCodes: [ "373" ] }, { countryEn: "Monaco", countryRu: "Монако", countryCode: "MC", dialCode: "377", fullCodes: [ "377" ] }, { countryEn: "Mongolia", countryRu: "Монголия", countryCode: "MN", dialCode: "976", fullCodes: [ "976" ] }, { countryEn: "Montenegro", countryRu: "Черногория", countryCode: "ME", dialCode: "382", fullCodes: [ "382" ] }, { countryEn: "Morocco", countryRu: "Марокко", countryCode: "MA", dialCode: "212", fullCodes: [ "212" ] }, { countryEn: "Mozambique", countryRu: "Мозамбик", countryCode: "MZ", dialCode: "258", fullCodes: [ "258" ] }, { countryEn: "Myanmar", countryRu: "Мьянма", countryCode: "MM", dialCode: "95", fullCodes: [ "95" ] }, { countryEn: "Namibia", countryRu: "Намибия", countryCode: "NA", dialCode: "264", fullCodes: [ "264" ] }, { countryEn: "Nauru", countryRu: "Науру", countryCode: "NR", dialCode: "674", fullCodes: [ "674" ] }, { countryEn: "Nepal", countryRu: "Непал", countryCode: "NP", dialCode: "977", fullCodes: [ "977" ] }, { countryEn: "Netherlands", countryRu: "Нидерланды", countryCode: "NL", dialCode: "31", phoneMask: "99 99999999", fullCodes: [ "31" ] }, { countryEn: "New Caledonia", countryRu: "Новая Каледония", countryCode: "NC", dialCode: "687", fullCodes: [ "687" ] }, { countryEn: "New Zealand", countryRu: "Новая Зеландия", countryCode: "NZ", dialCode: "64", phoneMask: "999-999-9999", fullCodes: [ "64" ] }, { countryEn: "Nicaragua", countryRu: "Никарагуа", countryCode: "NI", dialCode: "505", fullCodes: [ "505" ] }, { countryEn: "Niger", countryRu: "Нигер", countryCode: "NE", dialCode: "227", fullCodes: [ "227" ] }, { countryEn: "Nigeria", countryRu: "Нигерия", countryCode: "NG", dialCode: "234", fullCodes: [ "234" ] }, { countryEn: "North Korea", countryRu: "Северная Корея", countryCode: "KP", dialCode: "850", fullCodes: [ "850" ] }, { countryEn: "Norway", countryRu: "Норвегия", countryCode: "NO", dialCode: "47", phoneMask: "999 99 999", fullCodes: [ "47" ] }, { countryEn: "Oman", countryRu: "Оман", countryCode: "OM", dialCode: "968", fullCodes: [ "968" ] }, { countryEn: "Pakistan", countryRu: "Пакистан", countryCode: "PK", dialCode: "92", phoneMask: "999-9999999", fullCodes: [ "92" ] }, { countryEn: "Palau", countryRu: "Палау", countryCode: "PW", dialCode: "680", fullCodes: [ "680" ] }, { countryEn: "Palestine", countryRu: "Палестинская территория", countryCode: "PS", dialCode: "970", fullCodes: [ "970" ] }, { countryEn: "Panama", countryRu: "Панама", countryCode: "PA", dialCode: "507", fullCodes: [ "507" ] }, { countryEn: "Papua New Guinea", countryRu: "Папуа-Новая Гвинея", countryCode: "PG", dialCode: "675", fullCodes: [ "675" ] }, { countryEn: "Paraguay", countryRu: "Парагвай", countryCode: "PY", dialCode: "595", fullCodes: [ "595" ] }, { countryEn: "Peru", countryRu: "Перу", countryCode: "PE", dialCode: "51", fullCodes: [ "51" ] }, { countryEn: "Philippines", countryRu: "Филиппины", countryCode: "PH", dialCode: "63", phoneMask: "9999 9999999", fullCodes: [ "63" ] }, { countryEn: "Poland", countryRu: "Польша", countryCode: "PL", dialCode: "48", phoneMask: "999-999-999", fullCodes: [ "48" ] }, { countryEn: "Portugal", countryRu: "Португалия", countryCode: "PT", dialCode: "351", fullCodes: [ "351" ] }, { countryEn: "Puerto Rico", countryRu: "Пуэрто-Рико", countryCode: "PR", dialCode: "1", dialCodePriority: 3, areaCodes: [ "787", "939" ], fullCodes: [ "1787", "1939" ] }, { countryEn: "Qatar", countryRu: "Катар", countryCode: "QA", dialCode: "974", fullCodes: [ "974" ] }, { countryEn: "Réunion", countryRu: "Реюньон", countryCode: "RE", dialCode: "262", fullCodes: [ "262" ] }, { countryEn: "Romania", countryRu: "Румыния", countryCode: "RO", dialCode: "40", fullCodes: [ "40" ] }, { countryEn: "Russia", countryRu: "Россия", countryCode: "RU", dialCode: "7", phoneMask: "(999) 999-99-99", dialCodePriority: 0, fullCodes: [ "7" ] }, { countryEn: "Rwanda", countryRu: "Руанда", countryCode: "RW", dialCode: "250", fullCodes: [ "250" ] }, { countryEn: "Saint Kitts and Nevis", countryRu: "Сент-Китс и Невис", countryCode: "KN", dialCode: "1869", fullCodes: [ "1869" ] }, { countryEn: "Saint Lucia", countryRu: "Сент-Люсия", countryCode: "LC", dialCode: "1758", fullCodes: [ "1758" ] }, { countryEn: "Saint Vincent and the Grenadines", countryRu: "Сент-Винсент и Гренадины", countryCode: "VC", dialCode: "1784", fullCodes: [ "1784" ] }, { countryEn: "Samoa", countryRu: "Самоа", countryCode: "WS", dialCode: "685", fullCodes: [ "685" ] }, { countryEn: "San Marino", countryRu: "Сан-Марино", countryCode: "SM", dialCode: "378", fullCodes: [ "378" ] }, { countryEn: "São Tomé and Príncipe", countryRu: "Сан-Томе и Принсипи", countryCode: "ST", dialCode: "239", fullCodes: [ "239" ] }, { countryEn: "Saudi Arabia", countryRu: "Саудовская Аравия", countryCode: "SA", dialCode: "966", fullCodes: [ "966" ] }, { countryEn: "Senegal", countryRu: "Сенегал", countryCode: "SN", dialCode: "221", fullCodes: [ "221" ] }, { countryEn: "Serbia", countryRu: "Сербия", countryCode: "RS", dialCode: "381", fullCodes: [ "381" ] }, { countryEn: "Seychelles", countryRu: "Сейшелы", countryCode: "SC", dialCode: "248", fullCodes: [ "248" ] }, { countryEn: "Sierra Leone", countryRu: "Сьерра-Леоне", countryCode: "SL", dialCode: "232", fullCodes: [ "232" ] }, { countryEn: "Singapore", countryRu: "Сингапур", countryCode: "SG", dialCode: "65", phoneMask: "9999-9999", fullCodes: [ "65" ] }, { countryEn: "Slovakia", countryRu: "Словакия", countryCode: "SK", dialCode: "421", fullCodes: [ "421" ] }, { countryEn: "Slovenia", countryRu: "Словения", countryCode: "SI", dialCode: "386", fullCodes: [ "386" ] }, { countryEn: "Solomon Islands", countryRu: "Соломоновы острова", countryCode: "SB", dialCode: "677", fullCodes: [ "677" ] }, { countryEn: "Somalia", countryRu: "Сомали", countryCode: "SO", dialCode: "252", fullCodes: [ "252" ] }, { countryEn: "South Africa", countryRu: "Южная Африка", countryCode: "ZA", dialCode: "27", fullCodes: [ "27" ] }, { countryEn: "South Korea", countryRu: "Южная Корея", countryCode: "KR", dialCode: "82", phoneMask: "999 9999 9999", fullCodes: [ "82" ] }, { countryEn: "South Sudan", countryRu: "Южный Судан", countryCode: "SS", dialCode: "211", fullCodes: [ "211" ] }, { countryEn: "Spain", countryRu: "Испания", countryCode: "ES", dialCode: "34", phoneMask: "999 999 999", fullCodes: [ "34" ] }, { countryEn: "Sri Lanka", countryRu: "Шри-Ланка", countryCode: "LK", dialCode: "94", fullCodes: [ "94" ] }, { countryEn: "Sudan", countryRu: "Судан", countryCode: "SD", dialCode: "249", fullCodes: [ "249" ] }, { countryEn: "Suriname", countryRu: "Суринам", countryCode: "SR", dialCode: "597", fullCodes: [ "597" ] }, { countryEn: "Swaziland", countryRu: "Свазиленд", countryCode: "SZ", dialCode: "268", fullCodes: [ "268" ] }, { countryEn: "Sweden", countryRu: "Швеция", countryCode: "SE", dialCode: "46", phoneMask: "(999) 999-999", fullCodes: [ "46" ] }, { countryEn: "Switzerland", countryRu: "Швейцария", countryCode: "CH", dialCode: "41", phoneMask: "99 999 99 99", fullCodes: [ "41" ] }, { countryEn: "Syria", countryRu: "Сирийская Арабская Республика", countryCode: "SY", dialCode: "963", fullCodes: [ "963" ] }, { countryEn: "Taiwan", countryRu: "Тайвань", countryCode: "TW", dialCode: "886", fullCodes: [ "886" ] }, { countryEn: "Tajikistan", countryRu: "Таджикистан", countryCode: "TJ", dialCode: "992", fullCodes: [ "992" ] }, { countryEn: "Tanzania", countryRu: "Танзания", countryCode: "TZ", dialCode: "255", fullCodes: [ "255" ] }, { countryEn: "Thailand", countryRu: "Таиланд", countryCode: "TH", dialCode: "66", fullCodes: [ "66" ] }, { countryEn: "Timor-Leste", countryRu: "Тимор-Лесте", countryCode: "TL", dialCode: "670", fullCodes: [ "670" ] }, { countryEn: "Togo", countryRu: "Того", countryCode: "TG", dialCode: "228", fullCodes: [ "228" ] }, { countryEn: "Tonga", countryRu: "Тонга", countryCode: "TO", dialCode: "676", fullCodes: [ "676" ] }, { countryEn: "Trinidad and Tobago", countryRu: "Тринидад и Тобаго", countryCode: "TT", dialCode: "1868", fullCodes: [ "1868" ] }, { countryEn: "Tunisia", countryRu: "Тунис", countryCode: "TN", dialCode: "216", fullCodes: [ "216" ] }, { countryEn: "Turkey", countryRu: "Турция", countryCode: "TR", dialCode: "90", phoneMask: "999 999 99 99", fullCodes: [ "90" ] }, { countryEn: "Turkmenistan", countryRu: "Туркмения", countryCode: "TM", dialCode: "993", fullCodes: [ "993" ] }, { countryEn: "Tuvalu", countryRu: "Тувалу", countryCode: "TV", dialCode: "688", fullCodes: [ "688" ] }, { countryEn: "Uganda", countryRu: "Уганда", countryCode: "UG", dialCode: "256", fullCodes: [ "256" ] }, { countryEn: "Ukraine", countryRu: "Украина", countryCode: "UA", dialCode: "380", phoneMask: "(99) 999 99 99", fullCodes: [ "380" ] }, { countryEn: "United Arab Emirates", countryRu: "Объединенные Арабские Эмираты", countryCode: "AE", dialCode: "971", fullCodes: [ "971" ] }, { countryEn: "United Kingdom", countryRu: "Соединенное Королевство", countryCode: "GB", dialCode: "44", phoneMask: "9999 999999", fullCodes: [ "44" ] }, { countryEn: "United States", countryRu: "Соединенные Штаты", countryCode: "US", dialCode: "1", phoneMask: "(999) 999-9999", dialCodePriority: 0, areaCodes: [ "907", "205", "251", "256", "334", "479", "501", "870", "480", "520", "602", "623", "928", "209", "213", "310", "323", "408", "415", "510", "530", "559", "562", "619", "626", "650", "661", "707", "714", "760", "805", "818", "831", "858", "909", "916", "925", "949", "951", "303", "719", "970", "203", "860", "202", "302", "239", "305", "321", "352", "386", "407", "561", "727", "772", "813", "850", "863", "904", "941", "954", "229", "404", "478", "706", "770", "912", "808", "319", "515", "563", "641", "712", "208", "217", "309", "312", "618", "630", "708", "773", "815", "847", "219", "260", "317", "574", "765", "812", "316", "620", "785", "913", "270", "502", "606", "859", "225", "318", "337", "504", "985", "413", "508", "617", "781", "978", "301", "410", "207", "231", "248", "269", "313", "517", "586", "616", "734", "810", "906", "989", "218", "320", "507", "612", "651", "763", "952", "314", "417", "573", "636", "660", "816", "228", "601", "662", "406", "252", "336", "704", "828", "910", "919", "701", "308", "402", "603", "201", "609", "732", "856", "908", "973", "505", "575", "702", "775", "212", "315", "516", "518", "585", "607", "631", "716", "718", "845", "914", "216", "330", "419", "440", "513", "614", "740", "937", "405", "580", "918", "503", "541", "215", "412", "570", "610", "717", "724", "814", "401", "803", "843", "864", "605", "423", "615", "731", "865", "901", "931", "210", "214", "254", "281", "325", "361", "409", "432", "512", "713", "806", "817", "830", "903", "915", "936", "940", "956", "972", "979", "435", "801", "276", "434", "540", "703", "757", "804", "802", "206", "253", "360", "425", "509", "262", "414", "608", "715", "920", "304", "307" ], fullCodes: [ "1907", "1205", "1251", "1256", "1334", "1479", "1501", "1870", "1480", "1520", "1602", "1623", "1928", "1209", "1213", "1310", "1323", "1408", "1415", "1510", "1530", "1559", "1562", "1619", "1626", "1650", "1661", "1707", "1714", "1760", "1805", "1818", "1831", "1858", "1909", "1916", "1925", "1949", "1951", "1303", "1719", "1970", "1203", "1860", "1202", "1302", "1239", "1305", "1321", "1352", "1386", "1407", "1561", "1727", "1772", "1813", "1850", "1863", "1904", "1941", "1954", "1229", "1404", "1478", "1706", "1770", "1912", "1808", "1319", "1515", "1563", "1641", "1712", "1208", "1217", "1309", "1312", "1618", "1630", "1708", "1773", "1815", "1847", "1219", "1260", "1317", "1574", "1765", "1812", "1316", "1620", "1785", "1913", "1270", "1502", "1606", "1859", "1225", "1318", "1337", "1504", "1985", "1413", "1508", "1617", "1781", "1978", "1301", "1410", "1207", "1231", "1248", "1269", "1313", "1517", "1586", "1616", "1734", "1810", "1906", "1989", "1218", "1320", "1507", "1612", "1651", "1763", "1952", "1314", "1417", "1573", "1636", "1660", "1816", "1228", "1601", "1662", "1406", "1252", "1336", "1704", "1828", "1910", "1919", "1701", "1308", "1402", "1603", "1201", "1609", "1732", "1856", "1908", "1973", "1505", "1575", "1702", "1775", "1212", "1315", "1516", "1518", "1585", "1607", "1631", "1716", "1718", "1845", "1914", "1216", "1330", "1419", "1440", "1513", "1614", "1740", "1937", "1405", "1580", "1918", "1503", "1541", "1215", "1412", "1570", "1610", "1717", "1724", "1814", "1401", "1803", "1843", "1864", "1605", "1423", "1615", "1731", "1865", "1901", "1931", "1210", "1214", "1254", "1281", "1325", "1361", "1409", "1432", "1512", "1713", "1806", "1817", "1830", "1903", "1915", "1936", "1940", "1956", "1972", "1979", "1435", "1801", "1276", "1434", "1540", "1703", "1757", "1804", "1802", "1206", "1253", "1360", "1425", "1509", "1262", "1414", "1608", "1715", "1920", "1304", "1307" ] }, { countryEn: "Uruguay", countryRu: "Уругвай", countryCode: "UY", dialCode: "598", fullCodes: [ "598" ] }, { countryEn: "Uzbekistan", countryRu: "Узбекистан", countryCode: "UZ", dialCode: "998", fullCodes: [ "998" ] }, { countryEn: "Vanuatu", countryRu: "Вануату", countryCode: "VU", dialCode: "678", fullCodes: [ "678" ] }, { countryEn: "Vatican City", countryRu: "Ватикан", countryCode: "VA", dialCode: "39", phoneMask: "99 9999 9999", dialCodePriority: 1, fullCodes: [ "39" ] }, { countryEn: "Venezuela", countryRu: "Венесуэла", countryCode: "VE", dialCode: "58", fullCodes: [ "58" ] }, { countryEn: "Vietnam", countryRu: "Вьетнам", countryCode: "VN", dialCode: "84", fullCodes: [ "84" ] }, { countryEn: "Yemen", countryRu: "Йемен", countryCode: "YE", dialCode: "967", fullCodes: [ "967" ] }, { countryEn: "Zambia", countryRu: "Замбия", countryCode: "ZM", dialCode: "260", fullCodes: [ "260" ] }, { countryEn: "Zimbabwe", countryRu: "Зимбабве", countryCode: "ZW", dialCode: "263", fullCodes: [ "263" ] } ]; var mimeTypes = { aac: "audio/aac", abw: "application/x-abiword", arc: "application/x-freearc", avi: "video/x-msvideo", azw: "application/vnd.amazon.ebook", bin: "application/octet-stream", bmp: "image/bmp", bz: "application/x-bzip", bz2: "application/x-bzip2", csh: "application/x-csh", css: "text/css", csv: "text/csv", doc: "application/msword", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", eot: "application/vnd.ms-fontobject", epub: "application/epub+zip", gz: "application/gzip", gif: "image/gif", htm: "text/html", html: "text/html", ico: "image/vnd.microsoft.icon", ics: "text/calendar", jar: "application/java-archive", jpeg: "image/jpeg", jpg: "image/jpeg", js: "text/javascript", json: "application/json", jsonld: "application/ld+json", mid: ".midi", mjs: "text/javascript", mp3: "audio/mpeg", mpeg: "video/mpeg", mpkg: "application/vnd.apple.installer+xml", odp: "application/vnd.oasis.opendocument.presentation", ods: "application/vnd.oasis.opendocument.spreadsheet", odt: "application/vnd.oasis.opendocument.text", oga: "audio/ogg", ogv: "video/ogg", ogx: "application/ogg", opus: "audio/opus", otf: "font/otf", png: "image/png", pdf: "application/pdf", php: "application/php", ppt: "application/vnd.ms-powerpoint", pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation", rar: "application/vnd.rar", rtf: "application/rtf", sh: "application/x-sh", svg: "image/svg+xml", swf: "application/x-shockwave-flash", tar: "application/x-tar", tif: "image/tiff", tiff: "image/tiff", ts: "video/mp2t", ttf: "font/ttf", txt: "text/plain", vsd: "application/vnd.visio", wav: "audio/wav", weba: "audio/webm", webm: "video/webm", webp: "image/webp", woff: "font/woff", woff2: "font/woff2", xhtml: "application/xhtml+xml", xls: "application/vnd.ms-excel", xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xml: "XML", xul: "application/vnd.mozilla.xul+xml", zip: "application/zip", "3gp": "video/3gpp", "3g2": "video/3gpp2", "7z": "application/x-7z-compressed" }; function _array_like_to_array$q(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_without_holes$9(arr) { if (Array.isArray(arr)) return _array_like_to_array$q(arr); } function _iterable_to_array$9(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _non_iterable_spread$9() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _to_consumable_array$9(arr) { return _array_without_holes$9(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$9(); } function _unsupported_iterable_to_array$q(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$q(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen); } var findCountryByCode = function(countryCode) { var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo; return trueReactPlatformHelpers.isNotEmpty(countryCode) ? countriesList.find(function(info) { return info.countryCode === countryCode; }) : void 0; }; var findCountryIndexByCode = function(countryCode) { var countriesList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : phoneInfo; return trueReactPlatformHelpers.isNotEmpty(countryCode) ? countriesList.findIndex(function(info) { return info.countryCode === countryCode; }) : -1; }; var getCountryTextByLocale = function(country, locale2) { return locale2.toLowerCase() === "ru" ? country.countryRu : country.countryEn; }; var sortCountriesByLocale = function(countriesList, locale2) { return countriesList.sort(function(countryA, countryB) { return getCountryTextByLocale(countryA, locale2).localeCompare(getCountryTextByLocale(countryB, locale2)); }); }; var checkSearchStringInCountry = function(country, searchString) { var checkValue = searchString.toLowerCase().trim().replace("+", ""); var possibleValues = [ country.countryRu, country.countryEn ].concat(_to_consumable_array$9(country.countryRu.split(" ")), _to_consumable_array$9(country.countryEn.split(" ")), [ country.dialCode ]).map(function(part) { return part.toLowerCase(); }); return possibleValues.some(function(v) { return v.startsWith(checkValue); }); }; var getFullPhone = function(phone) { var _phone_dialCode, _phone_phoneNumber; return ((_phone_dialCode = phone === null || phone === void 0 ? void 0 : phone.dialCode) !== null && _phone_dialCode !== void 0 ? _phone_dialCode : "") + ((_phone_phoneNumber = phone === null || phone === void 0 ? void 0 : phone.phoneNumber) !== null && _phone_phoneNumber !== void 0 ? _phone_phoneNumber : ""); }; var getCountryCodeFromPhone = function(phoneWithCode) { var _phoneInfo_find; var countryCode = (_phoneInfo_find = phoneInfo.find(function(info) { return info.fullCodes.some(function(code) { return phoneWithCode.startsWith(code); }); })) === null || _phoneInfo_find === void 0 ? void 0 : _phoneInfo_find.countryCode; if (trueReactPlatformHelpers.isEmpty(countryCode) && trueReactPlatformHelpers.isNotEmpty(phoneWithCode)) { var _phoneInfo_filter_sort_; countryCode = (_phoneInfo_filter_sort_ = phoneInfo.filter(function(info) { return phoneWithCode.startsWith(info.dialCode); }).sort(function(infoA, infoB) { var _infoA_dialCodePriority, _infoB_dialCodePriority; return ((_infoA_dialCodePriority = infoA.dialCodePriority) !== null && _infoA_dialCodePriority !== void 0 ? _infoA_dialCodePriority : 1e3) - ((_infoB_dialCodePriority = infoB.dialCodePriority) !== null && _infoB_dialCodePriority !== void 0 ? _infoB_dialCodePriority : 1e3); })[0]) === null || _phoneInfo_filter_sort_ === void 0 ? void 0 : _phoneInfo_filter_sort_.countryCode; } return countryCode; }; var getPhoneObjFromString = function(fullPhone, countryCode) { var _findCountryByCode; var newCountryCode = countryCode !== null && countryCode !== void 0 ? countryCode : getCountryCodeFromPhone(fullPhone); var dialCode = (_findCountryByCode = findCountryByCode(newCountryCode)) === null || _findCountryByCode === void 0 ? void 0 : _findCountryByCode.dialCode; var phoneNumber = fullPhone.slice(dialCode === null || dialCode === void 0 ? void 0 : dialCode.length); return { dialCode, phoneNumber, countryCode: newCountryCode }; }; var DEFAULT_PHONE_MASK = "+ 9 999 999 999 999 99"; var getPhoneMask = function(countryCode) { var mask = DEFAULT_PHONE_MASK; if (trueReactPlatformHelpers.isNotEmpty(countryCode)) { var countrySettings = findCountryByCode(countryCode); if (countrySettings !== void 0) { var dialCodeLength = countrySettings.dialCode.length; var _countrySettings_phoneMask; var areaAndPhoneMask = (_countrySettings_phoneMask = countrySettings.phoneMask) !== null && _countrySettings_phoneMask !== void 0 ? _countrySettings_phoneMask : mask.substring(2, mask.length - dialCodeLength); mask = "+ ".concat("9".repeat(dialCodeLength), " ").concat(areaAndPhoneMask); } } return mask; }; function _array_like_to_array$p(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$o(arr) { if (Array.isArray(arr)) return arr; } function _iterable_to_array_limit$o(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$o() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _sliced_to_array$o(arr, i) { return _array_with_holes$o(arr) || _iterable_to_array_limit$o(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$o(); } function _unsupported_iterable_to_array$p(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$p(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen); } var rgba = hexToRgba; var transformToKebab = function(string) { var result = ""; string.split("").forEach(function(char) { if (char.toLowerCase() === char) { result += char; } else { result += "-".concat(char.toLowerCase()); } }); return result; }; var hasExactParent = function(element, parent) { if (element === parent) { return true; } var parentNode = getParentNode$1(element); if (parentNode === element) { return false; } return hasExactParent(parentNode, parent); }; var getParentNode$1 = function(element) { var _element_parentNode; return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host; }; var getStyleComputedProperty = function(element) { return element.nodeType !== 1 ? {} : getComputedStyle(element, null); }; var getScrollParent$1 = function(element) { if (!element) { return document.body; } switch (element.nodeName) { case "HTML": case "BODY": return element.ownerDocument.body; case "#document": return element.body; } var _getStyleComputedProperty; var _ref = (_getStyleComputedProperty = getStyleComputedProperty(element)) !== null && _getStyleComputedProperty !== void 0 ? _getStyleComputedProperty : {}, overflow = _ref.overflow, overflowX = _ref.overflowX, overflowY = _ref.overflowY; if (/(auto|scroll|overlay)/.test((overflow !== null && overflow !== void 0 ? overflow : "") + (overflowY !== null && overflowY !== void 0 ? overflowY : "") + (overflowX !== null && overflowX !== void 0 ? overflowX : ""))) { return element; } return getScrollParent$1(getParentNode$1(element)); }; var isElementOffScreen = function(element, input) { var el = element; var scrollParent = getScrollParent$1(element); var scrollHeightWithElement = scrollParent.scrollHeight; el.hidden = true; var scrollHeightWithoutElement = scrollParent.scrollHeight; el.hidden = false; var isOffscreen = scrollHeightWithElement !== scrollHeightWithoutElement; if (isOffscreen && input !== void 0) { var elRect = el.getBoundingClientRect(); var scrollParentRect = scrollParent.getBoundingClientRect(); var topOffset = elRect.top - scrollParentRect.top; if (input.clientHeight + el.clientHeight > topOffset) { return false; } } return isOffscreen; }; var getNumberInRange = function(value) { var min2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -Infinity, max2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Infinity; return Math.min(max2, Math.max(min2, value)); }; var DEFAULT_THOUSANDS_SEPARATOR = " "; var formatStringNumber = function(val) { var separator = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_THOUSANDS_SEPARATOR; if (val === void 0) { return ""; } var parts = val.split("."); parts[0] = parts[0].replace(/^0+(?=\d)/, "").replace(/\B(?=(\d{3})+(?!\d))/g, separator); var _parts_; return ((_parts_ = parts[1]) !== null && _parts_ !== void 0 ? _parts_ : "").length > 0 ? parts.join(".") : parts[0]; }; var formatNumber = function(val) { var separator = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : DEFAULT_THOUSANDS_SEPARATOR; if (val === void 0 || isNaN(val)) { return ""; } return formatStringNumber(String(val), separator); }; var removeStringFormat = function(val) { return (val !== null && val !== void 0 ? val : "").replace(",", ".").replace(/\s/g, ""); }; var stringToNumber = function(val) { var trimmed = removeStringFormat(val); if (trimmed === "") { return void 0; } var num = Number(trimmed); return isNaN(num) ? void 0 : num; }; var setCaretPosition = function(elem, caretPos) { if (caretPos === null || elem === null) { return; } if (elem.selectionStart) { elem.focus(); elem.setSelectionRange(caretPos, caretPos); } else { elem.focus(); } }; var isSpaceChar = function(char) { return char !== void 0 && char.match(/\s/) !== null; }; var getNumberLength = function(n) { return n === void 0 || isNaN(n) ? 0 : n.toString().length; }; var trimStringToMaxLength = function(val, maxLength) { return val.length > maxLength ? val.slice(0, maxLength) : val; }; var addDataAttributes = function() { var data = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return Object.fromEntries(Object.entries(data).map(function(param) { var _param = _sliced_to_array$o(param, 2), key = _param[0], value = _param[1]; return trueReactPlatformHelpers.isString(value) && trueReactPlatformHelpers.isStringNotEmpty(value) || trueReactPlatformHelpers.isNotEmpty(value) ? [ "data-".concat(transformToKebab(key)), value ] : []; })); }; var useIsMounted = function() { var isMounted = React.useRef(false); React.useEffect(function() { isMounted.current = true; return function() { isMounted.current = false; }; }, []); return React.useCallback(function() { return isMounted.current; }, []); }; var checkElementParentsClassNames = function(element, className) { if (element.classList.contains(className)) { return true; } if (element === document.body) { return false; } if (element.parentElement) { return checkElementParentsClassNames(element.parentElement, className); } return false; }; var isElementOneOfParents = function(element, elToSearch) { if (element === elToSearch) { return true; } if (element === document.body) { return false; } if (element.parentElement) { return isElementOneOfParents(element.parentElement, elToSearch); } return false; }; function useOnClickOutsideWithRef(ref, handler, ignoreRef) { useOnClickOutside(ref, handler, void 0, ignoreRef); } function useOnClickOutside(ref, handler, ignoreClassName, ignoreRef) { React.useEffect(function() { var listener = function(event) { if (!ref.current || ref.current.contains(event.target)) { return; } if (ignoreClassName !== void 0 && checkElementParentsClassNames(event.target, ignoreClassName) || ignoreRef !== void 0 && ignoreRef.current !== null && isElementOneOfParents(event.target, ignoreRef.current)) { return; } handler(event); }; document.addEventListener("mousedown", listener); document.addEventListener("touchstart", listener); return function() { document.removeEventListener("mousedown", listener); document.removeEventListener("touchstart", listener); }; }, [ ref, handler, ignoreClassName ]); } function _extends$1() { _extends$1 = 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$1.apply(this, arguments); } function _objectWithoutPropertiesLoose$1(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 useMounted() { const mounted = React.useRef(true); const isMounted = React.useRef(() => mounted.current); React.useEffect(() => { mounted.current = true; return () => { mounted.current = false; }; }, []); return isMounted.current; } function useSafeState(state) { const isMounted = useMounted(); return [state[0], React.useCallback((nextState) => { if (!isMounted()) return; return state[1](nextState); }, [isMounted, state[1]])]; } var top = "top"; var bottom = "bottom"; var right = "right"; var left = "left"; var auto = "auto"; var basePlacements = [top, bottom, right, left]; var start = "start"; var end = "end"; var clippingParents = "clippingParents"; var viewport = "viewport"; var popper = "popper"; var reference = "reference"; var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) { return acc.concat([placement + "-" + start, placement + "-" + end]); }, []); var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) { return acc.concat([placement, placement + "-" + start, placement + "-" + end]); }, []); var beforeRead = "beforeRead"; var read = "read"; var afterRead = "afterRead"; var beforeMain = "beforeMain"; var main = "main"; var afterMain = "afterMain"; var beforeWrite = "beforeWrite"; var write = "write"; var afterWrite = "afterWrite"; var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite]; function getBasePlacement(placement) { return placement.split("-")[0]; } function getWindow(node) { if (node == null) { return window; } if (node.toString() !== "[object Window]") { var ownerDocument = node.ownerDocument; return ownerDocument ? ownerDocument.defaultView || window : window; } return node; } function isElement(node) { var OwnElement = getWindow(node).Element; return node instanceof OwnElement || node instanceof Element; } function isHTMLElement(node) { var OwnElement = getWindow(node).HTMLElement; return node instanceof OwnElement || node instanceof HTMLElement; } function isShadowRoot(node) { if (typeof ShadowRoot === "undefined") { return false; } var OwnElement = getWindow(node).ShadowRoot; return node instanceof OwnElement || node instanceof ShadowRoot; } var max = Math.max; var min = Math.min; var round = Math.round; function getUAString() { var uaData = navigator.userAgentData; if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) { return uaData.brands.map(function(item) { return item.brand + "/" + item.version; }).join(" "); } return navigator.userAgent; } function isLayoutViewport() { return !/^((?!chrome|android).)*safari/i.test(getUAString()); } function getBoundingClientRect(element, includeScale, isFixedStrategy) { if (includeScale === void 0) { includeScale = false; } if (isFixedStrategy === void 0) { isFixedStrategy = false; } var clientRect = element.getBoundingClientRect(); var scaleX = 1; var scaleY = 1; if (includeScale && isHTMLElement(element)) { scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1; scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1; } var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport; var addVisualOffsets = !isLayoutViewport() && isFixedStrategy; var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX; var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY; var width = clientRect.width / scaleX; var height = clientRect.height / scaleY; return { width, height, top: y, right: x + width, bottom: y + height, left: x, x, y }; } function getLayoutRect(element) { var clientRect = getBoundingClientRect(element); var width = element.offsetWidth; var height = element.offsetHeight; if (Math.abs(clientRect.width - width) <= 1) { width = clientRect.width; } if (Math.abs(clientRect.height - height) <= 1) { height = clientRect.height; } return { x: element.offsetLeft, y: element.offsetTop, width, height }; } function contains(parent, child) { var rootNode = child.getRootNode && child.getRootNode(); if (parent.contains(child)) { return true; } else if (rootNode && isShadowRoot(rootNode)) { var next = child; do { if (next && parent.isSameNode(next)) { return true; } next = next.parentNode || next.host; } while (next); } return false; } function getNodeName(element) { return element ? (element.nodeName || "").toLowerCase() : null; } function getComputedStyle$1(element) { return getWindow(element).getComputedStyle(element); } function isTableElement(element) { return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0; } function getDocumentElement(element) { return ((isElement(element) ? element.ownerDocument : ( // $FlowFixMe[prop-missing] element.document )) || window.document).documentElement; } function getParentNode(element) { if (getNodeName(element) === "html") { return element; } return ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] element.assignedSlot || // step into the shadow DOM of the parent of a slotted node element.parentNode || // DOM Element detected (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node getDocumentElement(element) ); } function getTrueOffsetParent(element) { if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837 getComputedStyle$1(element).position === "fixed") { return null; } return element.offsetParent; } function getContainingBlock(element) { var isFirefox = /firefox/i.test(getUAString()); var isIE = /Trident/i.test(getUAString()); if (isIE && isHTMLElement(element)) { var elementCss = getComputedStyle$1(element); if (elementCss.position === "fixed") { return null; } } var currentNode = getParentNode(element); if (isShadowRoot(currentNode)) { currentNode = currentNode.host; } while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) { var css = getComputedStyle$1(currentNode); if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") { return currentNode; } else { currentNode = currentNode.parentNode; } } return null; } function getOffsetParent(element) { var window2 = getWindow(element); var offsetParent = getTrueOffsetParent(element); while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === "static") { offsetParent = getTrueOffsetParent(offsetParent); } if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle$1(offsetParent).position === "static")) { return window2; } return offsetParent || getContainingBlock(element) || window2; } function getMainAxisFromPlacement(placement) { return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y"; } function within(min$1, value, max$1) { return max(min$1, min(value, max$1)); } function withinMaxClamp(min2, value, max2) { var v = within(min2, value, max2); return v > max2 ? max2 : v; } function getFreshSideObject() { return { top: 0, right: 0, bottom: 0, left: 0 }; } function mergePaddingObject(paddingObject) { return Object.assign({}, getFreshSideObject(), paddingObject); } function expandToHashMap(value, keys2) { return keys2.reduce(function(hashMap, key) { hashMap[key] = value; return hashMap; }, {}); } var toPaddingObject = function toPaddingObject2(padding, state) { padding = typeof padding === "function" ? padding(Object.assign({}, state.rects, { placement: state.placement })) : padding; return mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements)); }; function arrow(_ref) { var _state$modifiersData$; var state = _ref.state, name = _ref.name, options = _ref.options; var arrowElement = state.elements.arrow; var popperOffsets2 = state.modifiersData.popperOffsets; var basePlacement = getBasePlacement(state.placement); var axis = getMainAxisFromPlacement(basePlacement); var isVertical = [left, right].indexOf(basePlacement) >= 0; var len = isVertical ? "height" : "width"; if (!arrowElement || !popperOffsets2) { return; } var paddingObject = toPaddingObject(options.padding, state); var arrowRect = getLayoutRect(arrowElement); var minProp = axis === "y" ? top : left; var maxProp = axis === "y" ? bottom : right; var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len]; var startDiff = popperOffsets2[axis] - state.rects.reference[axis]; var arrowOffsetParent = getOffsetParent(arrowElement); var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0; var centerToReference = endDiff / 2 - startDiff / 2; var min2 = paddingObject[minProp]; var max2 = clientSize - arrowRect[len] - paddingObject[maxProp]; var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference; var offset2 = within(min2, center, max2); var axisProp = axis; state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$); } function effect$1(_ref2) { var state = _ref2.state, options = _ref2.options; var _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element; if (arrowElement == null) { return; } if (typeof arrowElement === "string") { arrowElement = state.elements.popper.querySelector(arrowElement); if (!arrowElement) { return; } } if (!contains(state.elements.popper, arrowElement)) { return; } state.elements.arrow = arrowElement; } const arrow$1 = { name: "arrow", enabled: true, phase: "main", fn: arrow, effect: effect$1, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function getVariation(placement) { return placement.split("-")[1]; } var unsetSides = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function roundOffsetsByDPR(_ref, win) { var x = _ref.x, y = _ref.y; var dpr = win.devicePixelRatio || 1; return { x: round(x * dpr) / dpr || 0, y: round(y * dpr) / dpr || 0 }; } function mapToStyles(_ref2) { var _Object$assign2; var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed; var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y = _offsets$y === void 0 ? 0 : _offsets$y; var _ref3 = typeof roundOffsets === "function" ? roundOffsets({ x, y }) : { x, y }; x = _ref3.x; y = _ref3.y; var hasX = offsets.hasOwnProperty("x"); var hasY = offsets.hasOwnProperty("y"); var sideX = left; var sideY = top; var win = window; if (adaptive) { var offsetParent = getOffsetParent(popper2); var heightProp = "clientHeight"; var widthProp = "clientWidth"; if (offsetParent === getWindow(popper2)) { offsetParent = getDocumentElement(popper2); if (getComputedStyle$1(offsetParent).position !== "static" && position === "absolute") { heightProp = "scrollHeight"; widthProp = "scrollWidth"; } } offsetParent = offsetParent; if (placement === top || (placement === left || placement === right) && variation === end) { sideY = bottom; var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : ( // $FlowFixMe[prop-missing] offsetParent[heightProp] ); y -= offsetY - popperRect.height; y *= gpuAcceleration ? 1 : -1; } if (placement === left || (placement === top || placement === bottom) && variation === end) { sideX = right; var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : ( // $FlowFixMe[prop-missing] offsetParent[widthProp] ); x -= offsetX - popperRect.width; x *= gpuAcceleration ? 1 : -1; } } var commonStyles = Object.assign({ position }, adaptive && unsetSides); var _ref4 = roundOffsets === true ? roundOffsetsByDPR({ x, y }, getWindow(popper2)) : { x, y }; x = _ref4.x; y = _ref4.y; if (gpuAcceleration) { var _Object$assign; return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign)); } return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2)); } function computeStyles(_ref5) { var state = _ref5.state, options = _ref5.options; var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets; var commonStyles = { placement: getBasePlacement(state.placement), variation: getVariation(state.placement), popper: state.elements.popper, popperRect: state.rects.popper, gpuAcceleration, isFixed: state.options.strategy === "fixed" }; if (state.modifiersData.popperOffsets != null) { state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, { offsets: state.modifiersData.popperOffsets, position: state.options.strategy, adaptive, roundOffsets }))); } if (state.modifiersData.arrow != null) { state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, { offsets: state.modifiersData.arrow, position: "absolute", adaptive: false, roundOffsets }))); } state.attributes.popper = Object.assign({}, state.attributes.popper, { "data-popper-placement": state.placement }); } const computeStyles$1 = { name: "computeStyles", enabled: true, phase: "beforeWrite", fn: computeStyles, data: {} }; var passive = { passive: true }; function effect(_ref) { var state = _ref.state, instance = _ref.instance, options = _ref.options; var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize; var window2 = getWindow(state.elements.popper); var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper); if (scroll) { scrollParents.forEach(function(scrollParent) { scrollParent.addEventListener("scroll", instance.update, passive); }); } if (resize) { window2.addEventListener("resize", instance.update, passive); } return function() { if (scroll) { scrollParents.forEach(function(scrollParent) { scrollParent.removeEventListener("scroll", instance.update, passive); }); } if (resize) { window2.removeEventListener("resize", instance.update, passive); } }; } const eventListeners = { name: "eventListeners", enabled: true, phase: "write", fn: function fn() { }, effect, data: {} }; var hash$1 = { left: "right", right: "left", bottom: "top", top: "bottom" }; function getOppositePlacement(placement) { return placement.replace(/left|right|bottom|top/g, function(matched) { return hash$1[matched]; }); } var hash = { start: "end", end: "start" }; function getOppositeVariationPlacement(placement) { return placement.replace(/start|end/g, function(matched) { return hash[matched]; }); } function getWindowScroll(node) { var win = getWindow(node); var scrollLeft = win.pageXOffset; var scrollTop = win.pageYOffset; return { scrollLeft, scrollTop }; } function getWindowScrollBarX(element) { return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; } function getViewportRect(element, strategy) { var win = getWindow(element); var html = getDocumentElement(element); var visualViewport = win.visualViewport; var width = html.clientWidth; var height = html.clientHeight; var x = 0; var y = 0; if (visualViewport) { width = visualViewport.width; height = visualViewport.height; var layoutViewport = isLayoutViewport(); if (layoutViewport || !layoutViewport && strategy === "fixed") { x = visualViewport.offsetLeft; y = visualViewport.offsetTop; } } return { width, height, x: x + getWindowScrollBarX(element), y }; } function getDocumentRect(element) { var _element$ownerDocumen; var html = getDocumentElement(element); var winScroll = getWindowScroll(element); var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body; var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0); var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0); var x = -winScroll.scrollLeft + getWindowScrollBarX(element); var y = -winScroll.scrollTop; if (getComputedStyle$1(body || html).direction === "rtl") { x += max(html.clientWidth, body ? body.clientWidth : 0) - width; } return { width, height, x, y }; } function isScrollParent(element) { var _getComputedStyle = getComputedStyle$1(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY; return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); } function getScrollParent(node) { if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) { return node.ownerDocument.body; } if (isHTMLElement(node) && isScrollParent(node)) { return node; } return getScrollParent(getParentNode(node)); } function listScrollParents(element, list) { var _element$ownerDocumen; if (list === void 0) { list = []; } var scrollParent = getScrollParent(element); var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body); var win = getWindow(scrollParent); var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent; var updatedList = list.concat(target); return isBody ? updatedList : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here updatedList.concat(listScrollParents(getParentNode(target))) ); } function rectToClientRect(rect) { return Object.assign({}, rect, { left: rect.x, top: rect.y, right: rect.x + rect.width, bottom: rect.y + rect.height }); } function getInnerBoundingClientRect(element, strategy) { var rect = getBoundingClientRect(element, false, strategy === "fixed"); rect.top = rect.top + element.clientTop; rect.left = rect.left + element.clientLeft; rect.bottom = rect.top + element.clientHeight; rect.right = rect.left + element.clientWidth; rect.width = element.clientWidth; rect.height = element.clientHeight; rect.x = rect.left; rect.y = rect.top; return rect; } function getClientRectFromMixedType(element, clippingParent, strategy) { return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element))); } function getClippingParents(element) { var clippingParents2 = listScrollParents(getParentNode(element)); var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle$1(element).position) >= 0; var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element; if (!isElement(clipperElement)) { return []; } return clippingParents2.filter(function(clippingParent) { return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body"; }); } function getClippingRect(element, boundary, rootBoundary, strategy) { var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary); var clippingParents2 = [].concat(mainClippingParents, [rootBoundary]); var firstClippingParent = clippingParents2[0]; var clippingRect = clippingParents2.reduce(function(accRect, clippingParent) { var rect = getClientRectFromMixedType(element, clippingParent, strategy); accRect.top = max(rect.top, accRect.top); accRect.right = min(rect.right, accRect.right); accRect.bottom = min(rect.bottom, accRect.bottom); accRect.left = max(rect.left, accRect.left); return accRect; }, getClientRectFromMixedType(element, firstClippingParent, strategy)); clippingRect.width = clippingRect.right - clippingRect.left; clippingRect.height = clippingRect.bottom - clippingRect.top; clippingRect.x = clippingRect.left; clippingRect.y = clippingRect.top; return clippingRect; } function computeOffsets(_ref) { var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement; var basePlacement = placement ? getBasePlacement(placement) : null; var variation = placement ? getVariation(placement) : null; var commonX = reference2.x + reference2.width / 2 - element.width / 2; var commonY = reference2.y + reference2.height / 2 - element.height / 2; var offsets; switch (basePlacement) { case top: offsets = { x: commonX, y: reference2.y - element.height }; break; case bottom: offsets = { x: commonX, y: reference2.y + reference2.height }; break; case right: offsets = { x: reference2.x + reference2.width, y: commonY }; break; case left: offsets = { x: reference2.x - element.width, y: commonY }; break; default: offsets = { x: reference2.x, y: reference2.y }; } var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null; if (mainAxis != null) { var len = mainAxis === "y" ? "height" : "width"; switch (variation) { case start: offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2); break; case end: offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2); break; } } return offsets; } function detectOverflow(state, options) { if (options === void 0) { options = {}; } var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$strategy = _options.strategy, strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding; var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements)); var altContext = elementContext === popper ? reference : popper; var popperRect = state.rects.popper; var element = state.elements[altBoundary ? altContext : elementContext]; var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy); var referenceClientRect = getBoundingClientRect(state.elements.reference); var popperOffsets2 = computeOffsets({ reference: referenceClientRect, element: popperRect, strategy: "absolute", placement }); var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2)); var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; var overflowOffsets = { top: clippingClientRect.top - elementClientRect.top + paddingObject.top, bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom, left: clippingClientRect.left - elementClientRect.left + paddingObject.left, right: elementClientRect.right - clippingClientRect.right + paddingObject.right }; var offsetData = state.modifiersData.offset; if (elementContext === popper && offsetData) { var offset2 = offsetData[placement]; Object.keys(overflowOffsets).forEach(function(key) { var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1; var axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x"; overflowOffsets[key] += offset2[axis] * multiply; }); } return overflowOffsets; } function computeAutoPlacement(state, options) { if (options === void 0) { options = {}; } var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP; var variation = getVariation(placement); var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) { return getVariation(placement2) === variation; }) : basePlacements; var allowedPlacements = placements$1.filter(function(placement2) { return allowedAutoPlacements.indexOf(placement2) >= 0; }); if (allowedPlacements.length === 0) { allowedPlacements = placements$1; } var overflows = allowedPlacements.reduce(function(acc, placement2) { acc[placement2] = detectOverflow(state, { placement: placement2, boundary, rootBoundary, padding })[getBasePlacement(placement2)]; return acc; }, {}); return Object.keys(overflows).sort(function(a, b) { return overflows[a] - overflows[b]; }); } function getExpandedFallbackPlacements(placement) { if (getBasePlacement(placement) === auto) { return []; } var oppositePlacement = getOppositePlacement(placement); return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)]; } function flip(_ref) { var state = _ref.state, options = _ref.options, name = _ref.name; if (state.modifiersData[name]._skip) { return; } var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements; var preferredPlacement = state.options.placement; var basePlacement = getBasePlacement(preferredPlacement); var isBasePlacement = basePlacement === preferredPlacement; var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement)); var placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) { return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state, { placement: placement2, boundary, rootBoundary, padding, flipVariations, allowedAutoPlacements }) : placement2); }, []); var referenceRect = state.rects.reference; var popperRect = state.rects.popper; var checksMap = /* @__PURE__ */ new Map(); var makeFallbackChecks = true; var firstFittingPlacement = placements2[0]; for (var i = 0; i < placements2.length; i++) { var placement = placements2[i]; var _basePlacement = getBasePlacement(placement); var isStartVariation = getVariation(placement) === start; var isVertical = [top, bottom].indexOf(_basePlacement) >= 0; var len = isVertical ? "width" : "height"; var overflow = detectOverflow(state, { placement, boundary, rootBoundary, altBoundary, padding }); var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top; if (referenceRect[len] > popperRect[len]) { mainVariationSide = getOppositePlacement(mainVariationSide); } var altVariationSide = getOppositePlacement(mainVariationSide); var checks = []; if (checkMainAxis) { checks.push(overflow[_basePlacement] <= 0); } if (checkAltAxis) { checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0); } if (checks.every(function(check) { return check; })) { firstFittingPlacement = placement; makeFallbackChecks = false; break; } checksMap.set(placement, checks); } if (makeFallbackChecks) { var numberOfChecks = flipVariations ? 3 : 1; var _loop = function _loop2(_i2) { var fittingPlacement = placements2.find(function(placement2) { var checks2 = checksMap.get(placement2); if (checks2) { return checks2.slice(0, _i2).every(function(check) { return check; }); } }); if (fittingPlacement) { firstFittingPlacement = fittingPlacement; return "break"; } }; for (var _i = numberOfChecks; _i > 0; _i--) { var _ret = _loop(_i); if (_ret === "break") break; } } if (state.placement !== firstFittingPlacement) { state.modifiersData[name]._skip = true; state.placement = firstFittingPlacement; state.reset = true; } } const flip$1 = { name: "flip", enabled: true, phase: "main", fn: flip, requiresIfExists: ["offset"], data: { _skip: false } }; function getSideOffsets(overflow, rect, preventedOffsets) { if (preventedOffsets === void 0) { preventedOffsets = { x: 0, y: 0 }; } return { top: overflow.top - rect.height - preventedOffsets.y, right: overflow.right - rect.width + preventedOffsets.x, bottom: overflow.bottom - rect.height + preventedOffsets.y, left: overflow.left - rect.width - preventedOffsets.x }; } function isAnySideFullyClipped(overflow) { return [top, right, bottom, left].some(function(side) { return overflow[side] >= 0; }); } function hide(_ref) { var state = _ref.state, name = _ref.name; var referenceRect = state.rects.reference; var popperRect = state.rects.popper; var preventedOffsets = state.modifiersData.preventOverflow; var referenceOverflow = detectOverflow(state, { elementContext: "reference" }); var popperAltOverflow = detectOverflow(state, { altBoundary: true }); var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect); var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets); var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets); var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); state.modifiersData[name] = { referenceClippingOffsets, popperEscapeOffsets, isReferenceHidden, hasPopperEscaped }; state.attributes.popper = Object.assign({}, state.attributes.popper, { "data-popper-reference-hidden": isReferenceHidden, "data-popper-escaped": hasPopperEscaped }); } const hide$1 = { name: "hide", enabled: true, phase: "main", requiresIfExists: ["preventOverflow"], fn: hide }; function distanceAndSkiddingToXY(placement, rects, offset2) { var basePlacement = getBasePlacement(placement); var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1; var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, { placement })) : offset2, skidding = _ref[0], distance = _ref[1]; skidding = skidding || 0; distance = (distance || 0) * invertDistance; return [left, right].indexOf(basePlacement) >= 0 ? { x: distance, y: skidding } : { x: skidding, y: distance }; } function offset(_ref2) { var state = _ref2.state, options = _ref2.options, name = _ref2.name; var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset; var data = placements.reduce(function(acc, placement) { acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2); return acc; }, {}); var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y; if (state.modifiersData.popperOffsets != null) { state.modifiersData.popperOffsets.x += x; state.modifiersData.popperOffsets.y += y; } state.modifiersData[name] = data; } const offset$1 = { name: "offset", enabled: true, phase: "main", requires: ["popperOffsets"], fn: offset }; function popperOffsets(_ref) { var state = _ref.state, name = _ref.name; state.modifiersData[name] = computeOffsets({ reference: state.rects.reference, element: state.rects.popper, strategy: "absolute", placement: state.placement }); } const popperOffsets$1 = { name: "popperOffsets", enabled: true, phase: "read", fn: popperOffsets, data: {} }; function getAltAxis(axis) { return axis === "x" ? "y" : "x"; } function preventOverflow(_ref) { var state = _ref.state, options = _ref.options, name = _ref.name; var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? true : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset; var overflow = detectOverflow(state, { boundary, rootBoundary, padding, altBoundary }); var basePlacement = getBasePlacement(state.placement); var variation = getVariation(state.placement); var isBasePlacement = !variation; var mainAxis = getMainAxisFromPlacement(basePlacement); var altAxis = getAltAxis(mainAxis); var popperOffsets2 = state.modifiersData.popperOffsets; var referenceRect = state.rects.reference; var popperRect = state.rects.popper; var tetherOffsetValue = typeof tetherOffset === "function" ? tetherOffset(Object.assign({}, state.rects, { placement: state.placement })) : tetherOffset; var normalizedTetherOffsetValue = typeof tetherOffsetValue === "number" ? { mainAxis: tetherOffsetValue, altAxis: tetherOffsetValue } : Object.assign({ mainAxis: 0, altAxis: 0 }, tetherOffsetValue); var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null; var data = { x: 0, y: 0 }; if (!popperOffsets2) { return; } if (checkMainAxis) { var _offsetModifierState$; var mainSide = mainAxis === "y" ? top : left; var altSide = mainAxis === "y" ? bottom : right; var len = mainAxis === "y" ? "height" : "width"; var offset2 = popperOffsets2[mainAxis]; var min$1 = offset2 + overflow[mainSide]; var max$1 = offset2 - overflow[altSide]; var additive = tether ? -popperRect[len] / 2 : 0; var minLen = variation === start ? referenceRect[len] : popperRect[len]; var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; var arrowElement = state.elements.arrow; var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : { width: 0, height: 0 }; var arrowPaddingObject = state.modifiersData["arrow#persistent"] ? state.modifiersData["arrow#persistent"].padding : getFreshSideObject(); var arrowPaddingMin = arrowPaddingObject[mainSide]; var arrowPaddingMax = arrowPaddingObject[altSide]; var arrowLen = within(0, referenceRect[len], arrowRect[len]); var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis; var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis; var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow); var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0; var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0; var tetherMin = offset2 + minOffset - offsetModifierValue - clientOffset; var tetherMax = offset2 + maxOffset - offsetModifierValue; var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset2, tether ? max(max$1, tetherMax) : max$1); popperOffsets2[mainAxis] = preventedOffset; data[mainAxis] = preventedOffset - offset2; } if (checkAltAxis) { var _offsetModifierState$2; var _mainSide = mainAxis === "x" ? top : left; var _altSide = mainAxis === "x" ? bottom : right; var _offset = popperOffsets2[altAxis]; var _len = altAxis === "y" ? "height" : "width"; var _min = _offset + overflow[_mainSide]; var _max = _offset - overflow[_altSide]; var isOriginSide = [top, left].indexOf(basePlacement) !== -1; var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0; var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis; var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max; var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max); popperOffsets2[altAxis] = _preventedOffset; data[altAxis] = _preventedOffset - _offset; } state.modifiersData[name] = data; } const preventOverflow$1 = { name: "preventOverflow", enabled: true, phase: "main", fn: preventOverflow, requiresIfExists: ["offset"] }; function getHTMLElementScroll(element) { return { scrollLeft: element.scrollLeft, scrollTop: element.scrollTop }; } function getNodeScroll(node) { if (node === getWindow(node) || !isHTMLElement(node)) { return getWindowScroll(node); } else { return getHTMLElementScroll(node); } } function isElementScaled(element) { var rect = element.getBoundingClientRect(); var scaleX = round(rect.width) / element.offsetWidth || 1; var scaleY = round(rect.height) / element.offsetHeight || 1; return scaleX !== 1 || scaleY !== 1; } function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) { if (isFixed === void 0) { isFixed = false; } var isOffsetParentAnElement = isHTMLElement(offsetParent); var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent); var documentElement = getDocumentElement(offsetParent); var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed); var scroll = { scrollLeft: 0, scrollTop: 0 }; var offsets = { x: 0, y: 0 }; if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) { if (getNodeName(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 isScrollParent(documentElement)) { scroll = getNodeScroll(offsetParent); } if (isHTMLElement(offsetParent)) { offsets = getBoundingClientRect(offsetParent, true); offsets.x += offsetParent.clientLeft; offsets.y += offsetParent.clientTop; } else if (documentElement) { offsets.x = getWindowScrollBarX(documentElement); } } return { x: rect.left + scroll.scrollLeft - offsets.x, y: rect.top + scroll.scrollTop - offsets.y, width: rect.width, height: rect.height }; } function order(modifiers) { var map = /* @__PURE__ */ new Map(); var visited = /* @__PURE__ */ new Set(); var result = []; modifiers.forEach(function(modifier) { map.set(modifier.name, modifier); }); function sort(modifier) { visited.add(modifier.name); var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []); requires.forEach(function(dep) { if (!visited.has(dep)) { var depModifier = map.get(dep); if (depModifier) { sort(depModifier); } } }); result.push(modifier); } modifiers.forEach(function(modifier) { if (!visited.has(modifier.name)) { sort(modifier); } }); return result; } function orderModifiers(modifiers) { var orderedModifiers = order(modifiers); return modifierPhases.reduce(function(acc, phase) { return acc.concat(orderedModifiers.filter(function(modifier) { return modifier.phase === phase; })); }, []); } function debounce(fn) { var pending; return function() { if (!pending) { pending = new Promise(function(resolve) { Promise.resolve().then(function() { pending = void 0; resolve(fn()); }); }); } return pending; }; } function mergeByName(modifiers) { var merged = modifiers.reduce(function(merged2, current) { var existing = merged2[current.name]; merged2[current.name] = existing ? Object.assign({}, existing, current, { options: Object.assign({}, existing.options, current.options), data: Object.assign({}, existing.data, current.data) }) : current; return merged2; }, {}); return Object.keys(merged).map(function(key) { return merged[key]; }); } var DEFAULT_OPTIONS = { placement: "bottom", modifiers: [], strategy: "absolute" }; function areValidElements() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return !args.some(function(element) { return !(element && typeof element.getBoundingClientRect === "function"); }); } function popperGenerator(generatorOptions) { if (generatorOptions === void 0) { generatorOptions = {}; } var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions2 = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2; return function createPopper2(reference2, popper2, options) { if (options === void 0) { options = defaultOptions2; } var state = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions2), modifiersData: {}, elements: { reference: reference2, popper: popper2 }, attributes: {}, styles: {} }; var effectCleanupFns = []; var isDestroyed = false; var instance = { state, setOptions: function setOptions(setOptionsAction) { var options2 = typeof setOptionsAction === "function" ? setOptionsAction(state.options) : setOptionsAction; cleanupModifierEffects(); state.options = Object.assign({}, defaultOptions2, state.options, options2); state.scrollParents = { reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [], popper: listScrollParents(popper2) }; var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); state.orderedModifiers = orderedModifiers.filter(function(m) { return m.enabled; }); runModifierEffects(); return instance.update(); }, // Sync update – it will always be executed, even if not necessary. This // is useful for low frequency updates where sync behavior simplifies the // logic. // For high frequency updates (e.g. `resize` and `scroll` events), always // prefer the async Popper#update method forceUpdate: function forceUpdate() { if (isDestroyed) { return; } var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper; if (!areValidElements(reference3, popper3)) { return; } state.rects = { reference: getCompositeRect(reference3, getOffsetParent(popper3), state.options.strategy === "fixed"), popper: getLayoutRect(popper3) }; state.reset = false; state.placement = state.options.placement; state.orderedModifiers.forEach(function(modifier) { return state.modifiersData[modifier.name] = Object.assign({}, modifier.data); }); for (var index = 0; index < state.orderedModifiers.length; index++) { if (state.reset === true) { state.reset = false; index = -1; continue; } var _state$orderedModifie = state.orderedModifiers[index], fn = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name; if (typeof fn === "function") { state = fn({ state, options: _options, name, instance }) || state; } } }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) update: debounce(function() { return new Promise(function(resolve) { instance.forceUpdate(); resolve(state); }); }), destroy: function destroy() { cleanupModifierEffects(); isDestroyed = true; } }; if (!areValidElements(reference2, popper2)) { return instance; } instance.setOptions(options).then(function(state2) { if (!isDestroyed && options.onFirstUpdate) { options.onFirstUpdate(state2); } }); function runModifierEffects() { state.orderedModifiers.forEach(function(_ref) { var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect2 = _ref.effect; if (typeof effect2 === "function") { var cleanupFn = effect2({ state, name, instance, options: options2 }); var noopFn = function noopFn2() { }; effectCleanupFns.push(cleanupFn || noopFn); } }); } function cleanupModifierEffects() { effectCleanupFns.forEach(function(fn) { return fn(); }); effectCleanupFns = []; } return instance; }; } var createPopper = popperGenerator({ defaultModifiers: [hide$1, popperOffsets$1, computeStyles$1, eventListeners, offset$1, flip$1, preventOverflow$1, arrow$1] }); var initialPopperStyles = function initialPopperStyles2(position) { return { position, top: "0", left: "0", opacity: "0", pointerEvents: "none" }; }; var disabledApplyStylesModifier = { name: "applyStyles", enabled: false }; var ariaDescribedByModifier = { name: "ariaDescribedBy", enabled: true, phase: "afterWrite", effect: function effect2(_ref) { var state = _ref.state; return function() { var _state$elements = state.elements, reference2 = _state$elements.reference, popper2 = _state$elements.popper; if ("removeAttribute" in reference2) { var ids = (reference2.getAttribute("aria-describedby") || "").split(",").filter(function(id) { return id.trim() !== popper2.id; }); if (!ids.length) reference2.removeAttribute("aria-describedby"); else reference2.setAttribute("aria-describedby", ids.join(",")); } }; }, fn: function fn(_ref2) { var _popper$getAttribute; var state = _ref2.state; var _state$elements2 = state.elements, popper2 = _state$elements2.popper, reference2 = _state$elements2.reference; var role = (_popper$getAttribute = popper2.getAttribute("role")) == null ? void 0 : _popper$getAttribute.toLowerCase(); if (popper2.id && role === "tooltip" && "setAttribute" in reference2) { var ids = reference2.getAttribute("aria-describedby"); if (ids && ids.split(",").indexOf(popper2.id) !== -1) { return; } reference2.setAttribute("aria-describedby", ids ? ids + "," + popper2.id : popper2.id); } } }; var EMPTY_MODIFIERS = []; function usePopper(referenceElement, popperElement, _temp) { var _ref3 = _temp === void 0 ? {} : _temp, _ref3$enabled = _ref3.enabled, enabled = _ref3$enabled === void 0 ? true : _ref3$enabled, _ref3$placement = _ref3.placement, placement = _ref3$placement === void 0 ? "bottom" : _ref3$placement, _ref3$strategy = _ref3.strategy, strategy = _ref3$strategy === void 0 ? "absolute" : _ref3$strategy, _ref3$modifiers = _ref3.modifiers, modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers, config = _objectWithoutPropertiesLoose$1(_ref3, ["enabled", "placement", "strategy", "modifiers"]); var popperInstanceRef = React.useRef(); var update = React.useCallback(function() { var _popperInstanceRef$cu; (_popperInstanceRef$cu = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu.update(); }, []); var forceUpdate = React.useCallback(function() { var _popperInstanceRef$cu2; (_popperInstanceRef$cu2 = popperInstanceRef.current) == null ? void 0 : _popperInstanceRef$cu2.forceUpdate(); }, []); var _useSafeState = useSafeState(React.useState({ placement, update, forceUpdate, attributes: {}, styles: { popper: initialPopperStyles(strategy), arrow: {} } })), popperState = _useSafeState[0], setState = _useSafeState[1]; var updateModifier = React.useMemo(function() { return { name: "updateStateModifier", enabled: true, phase: "write", requires: ["computeStyles"], fn: function fn(_ref4) { var state = _ref4.state; var styles = {}; var attributes = {}; Object.keys(state.elements).forEach(function(element) { styles[element] = state.styles[element]; attributes[element] = state.attributes[element]; }); setState({ state, styles, attributes, update, forceUpdate, placement: state.placement }); } }; }, [update, forceUpdate, setState]); React.useEffect(function() { if (!popperInstanceRef.current || !enabled) return; popperInstanceRef.current.setOptions({ placement, strategy, modifiers: [].concat(modifiers, [updateModifier, disabledApplyStylesModifier]) }); }, [strategy, placement, updateModifier, enabled]); React.useEffect(function() { if (!enabled || referenceElement == null || popperElement == null) { return void 0; } popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends$1({}, config, { placement, strategy, modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier]) })); return function() { if (popperInstanceRef.current != null) { popperInstanceRef.current.destroy(); popperInstanceRef.current = void 0; setState(function(s) { return _extends$1({}, s, { attributes: {}, styles: { popper: initialPopperStyles(strategy) } }); }); } }; }, [enabled, referenceElement, popperElement]); return popperState; } function _array_like_to_array$o(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_without_holes$8(arr) { if (Array.isArray(arr)) return _array_like_to_array$o(arr); } function _define_property$12(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$8(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _non_iterable_spread$8() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$10(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$12(target, key, source[key]); }); } return target; } function _to_consumable_array$8(arr) { return _array_without_holes$8(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$8(); } function _unsupported_iterable_to_array$o(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$o(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen); } var useDropdown = function(param) { var isOpen = param.isOpen, onDropdownClose = param.onDropdownClose, referenceElement = param.referenceElement, dropdownElement = param.dropdownElement, options = param.options, _param_dependenciesForPositionUpdating = param.dependenciesForPositionUpdating, dependenciesForPositionUpdating = _param_dependenciesForPositionUpdating === void 0 ? [] : _param_dependenciesForPositionUpdating; var _ref = options !== null && options !== void 0 ? options : {}, _ref_shouldUsePopper = _ref.shouldUsePopper, shouldUsePopper = _ref_shouldUsePopper === void 0 ? false : _ref_shouldUsePopper, _ref_shouldRenderInBody = _ref.shouldRenderInBody, shouldRenderInBody = _ref_shouldRenderInBody === void 0 ? false : _ref_shouldRenderInBody, _ref_shouldHideOnScroll = _ref.shouldHideOnScroll, shouldHideOnScroll = _ref_shouldHideOnScroll === void 0 ? false : _ref_shouldHideOnScroll, _ref_scrollParent = _ref.scrollParent, scrollParent = _ref_scrollParent === void 0 ? "document" : _ref_scrollParent, _ref_canBeFlipped = _ref.canBeFlipped, canBeFlipped = _ref_canBeFlipped === void 0 ? false : _ref_canBeFlipped, _ref_modifiers = _ref.modifiers, modifiers = _ref_modifiers === void 0 ? [] : _ref_modifiers, _ref_placement = _ref.placement, placement = _ref_placement === void 0 ? "bottom-start" : _ref_placement, flipOptions = _ref.flipOptions; React.useEffect(function() { if (!shouldHideOnScroll || !isOpen) { return; } var scrollParentEl = scrollParent === "auto" ? getScrollParent$1(referenceElement) : scrollParent === "document" ? document : scrollParent; scrollParentEl.addEventListener("scroll", onDropdownClose); return function() { scrollParentEl.removeEventListener("scroll", onDropdownClose); }; }, [ shouldHideOnScroll, isOpen ]); var popperData; if (shouldUsePopper) { popperData = usePopper(referenceElement, dropdownElement, { enabled: isOpen, placement, modifiers: _to_consumable_array$8(shouldRenderInBody ? [ minWidthModifier ] : []).concat([ { name: "offset", options: { offset: [ 0, 6 ] } }, { name: "flip", options: _object_spread$10({ fallbackPlacements: canBeFlipped ? [ "bottom-start", "top-start" ] : [ "bottom-start" ] }, flipOptions) } ], _to_consumable_array$8(modifiers)) }); } React.useEffect(function() { if (dependenciesForPositionUpdating.length !== 0) { popperData === null || popperData === void 0 ? void 0 : popperData.update(); } }, dependenciesForPositionUpdating); return popperData; }; var useTweakStyles = function(param) { var innerStyles = param.innerStyles, currentComponentTweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName; return React.useMemo(function() { var _theme_components_currentComponentName, _theme_components; var theme = getTheme(); var themeStyles = trueReactPlatformHelpers.isNotEmpty(currentComponentName) ? (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : (_theme_components_currentComponentName = _theme_components[currentComponentName]) === null || _theme_components_currentComponentName === void 0 ? void 0 : _theme_components_currentComponentName[className] : void 0; var tweakStyles = currentComponentTweakStyles === null || currentComponentTweakStyles === void 0 ? void 0 : currentComponentTweakStyles[className]; var styles = [ innerStyles, tweakStyles, themeStyles ].filter(trueReactPlatformHelpers.isNotEmpty); if (styles.length <= 1) { return styles[0]; } if (trueReactPlatformHelpers.isNotEmpty(innerStyles) && trueReactPlatformHelpers.isNotEmpty(themeStyles) && trueReactPlatformHelpers.isEmpty(tweakStyles)) { return areStylesThemed(innerStyles) ? innerStyles : themedStyles(innerStyles, themeStyles); } return trueReactPlatformHelpers.mergeStyles(innerStyles, themeStyles, tweakStyles); }, [ innerStyles, className, currentComponentName, currentComponentTweakStyles ]); }; var useDidMountEffect = function(effect2, dependencies) { var isMountedRef = React.useRef(false); React.useEffect(function() { var unmount; if (isMountedRef.current) { unmount = effect2(); } else { isMountedRef.current = true; } return function() { if (unmount !== void 0) { unmount(); } }; }, dependencies); }; var useMixedStyles = function(baseStyles, tweakStyles) { return React.useMemo(function() { return trueReactPlatformHelpers.isNotEmpty(baseStyles) && trueReactPlatformHelpers.isNotEmpty(tweakStyles) ? trueReactPlatformHelpers.mergeStyles(baseStyles, tweakStyles) : baseStyles !== null && baseStyles !== void 0 ? baseStyles : tweakStyles; }, [ baseStyles, tweakStyles ]); }; var useMergedRefs = function(refs) { return React.useMemo(function() { return trueReactPlatformHelpers.mergeRefs(refs); }, refs); }; const avatarGreen = ` `; const fileExcel = '\n \n \n \n \n \n \n \n \n \n'; const fileImage = '\n \n \n \n \n \n \n \n \n \n \n \n'; const fileOther = '\n \n \n \n \n \n \n \n \n'; const filePdf = '\n \n \n \n \n \n \n \n \n \n'; const fileWord = '\n \n \n \n \n \n \n \n \n \n'; const fileXml = '\n \n \n \n \n \n \n \n \n \n \n \n'; const fileZip = '\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'; var complexIcons = { avatar: avatarGreen, "file-excel": fileExcel, "file-image": fileImage, "file-other": fileOther, "file-pdf": filePdf, "file-word": fileWord, "file-xml": fileXml, "file-zip": fileZip }; function _define_property$11(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$$(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$11(target, key, source[key]); }); } return target; } var ComplexIconBoilerplate = function(param) { var type = param.type; var theme = React.useContext(ThemeContext).theme; var icons = React.useMemo(function() { return _object_spread$$({}, complexIcons, theme.complexIcons); }, []); var ComplexIcon = icons[type]; return /* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: ComplexIcon } }); }; var isComplexIcon = function(type) { return type in complexIcons; }; var checkIcons = function(ico) { return ico; }; var iconsList = checkIcons({ "vendor-service": { paths: [ { d: "M12.23 11.589l.273.376a.11.11 0 01-.023.155l-.22.159a.11.11 0 00-.024.156l1.547 2.12c.034.05.067.04.068-.022l-.013-2.558c0-.061.05-.1.11-.087l.921.306c.063.02.108.075.116.139l.196 4.036a.455.455 0 00.072.202l1.046 1.435a.625.625 0 01-.608.986.628.628 0 01-.41-.25l-1.046-1.436a.426.426 0 00-.173-.13l-3.788-1.435a.156.156 0 01-.097-.151l-.009-.966c0-.028.015-.053.037-.069a.089.089 0 01.078-.01l2.439.802c.059.018.077-.008.041-.058l-1.546-2.118a.112.112 0 00-.155-.025l-.22.158a.113.113 0 01-.156-.025l-.274-.374a.114.114 0 01.025-.157l1.636-1.183a.114.114 0 01.157.024zm-4.303-.025l1.636 1.185a.11.11 0 01.025.154l-.273.376a.113.113 0 01-.156.024l-.22-.158a.113.113 0 00-.156.026L7.236 15.29c-.036.05-.017.077.042.059l2.439-.804c.06-.017.111.02.115.079l-.006.966a.157.157 0 01-.097.15l-3.794 1.435a.452.452 0 00-.17.132L4.718 18.74a.632.632 0 01-.88.137.625.625 0 01-.136-.873l1.047-1.437a.47.47 0 00.072-.201l.198-4.035v.001a.16.16 0 01.113-.138l.92-.306c.062-.014.113.025.114.085l-.014 2.557c.001.062.032.07.07.02l1.544-2.118a.11.11 0 00-.026-.156l-.217-.157a.113.113 0 01-.025-.157l.274-.374a.112.112 0 01.156-.025zm-1.11-5.195l.575.777c.032.052.012.11-.046.132L4.9 8.054c-.057.021-.057.053 0 .072l2.502.81a.112.112 0 00.141-.072l.083-.257a.114.114 0 01.141-.071l.443.142c.06.02.092.083.073.142l-.625 1.915a.11.11 0 01-.056.065.112.112 0 01-.087.005l-.442-.14a.111.111 0 01-.07-.141l.082-.256a.112.112 0 00-.073-.141l-2.503-.81c-.06-.019-.077.007-.042.057l1.522 2.063c.035.05.016.111-.04.134l-.924.292a.16.16 0 01-.175-.045L2.307 8.669a.428.428 0 00-.178-.122L.435 8a.623.623 0 01-.403-.79.62.62 0 01.31-.363.635.635 0 01.48-.04l1.7.548a.391.391 0 00.212.006l3.914-1.057a.164.164 0 01.17.065zm6.534-.067l3.916 1.061a.423.423 0 00.217-.006l1.692-.548a.638.638 0 01.481.039.626.626 0 01-.092 1.153l-1.695.55a.457.457 0 00-.178.12l-2.54 3.147a.161.161 0 01-.175.045l-.924-.292a.087.087 0 01-.055-.056.086.086 0 01.013-.077l1.52-2.06c.035-.051.017-.077-.042-.057l-2.5.807a.117.117 0 00-.074.143l.085.253a.115.115 0 01-.07.143l-.444.143a.114.114 0 01-.141-.073l-.626-1.916a.111.111 0 01.072-.14l.443-.142a.114.114 0 01.142.07l.082.257a.113.113 0 00.142.072l2.503-.81c.06-.02.06-.05.001-.072l-2.45-.778c-.057-.02-.079-.08-.045-.132l.574-.776a.165.165 0 01.168-.068zM10.001 0c.346 0 .63.28.63.625v1.776c0 .062.026.155.061.207l2.22 3.377a.156.156 0 01-.012.179l-.563.785c-.041.047-.103.046-.142-.003l-1.497-2.075c-.038-.05-.068-.04-.068.02v2.62c0 .062.05.112.114.112h.268c.063 0 .113.05.113.111v.464c0 .062-.05.11-.113.11H8.99a.112.112 0 01-.112-.11v-.464c0-.061.05-.11.112-.111h.27c.062 0 .113-.05.113-.112V4.89c0-.06-.032-.071-.07-.024l-1.499 2.08c-.037.048-.1.05-.138.003L7.1 6.162a.157.157 0 01-.011-.177l2.222-3.381a.45.45 0 00.061-.207V.626c0-.345.28-.626.63-.626z" } ] }, "aircraft-takeoff": { paths: [ { d: "M17 15.033v.934H3v-.934h14zM7.31 4.668l4.678 4.165 3.59-.92c.54-.143 1.102.168 1.244.687.142.518-.176 1.049-.723 1.204l-3.59.914-2.942.751-3.59.927-1.082.272-.52-.862-1.23-2.047.98-.253 1.332.998 3.36-.861-2.8-4.645 1.292-.33z" } ] }, archive: { viewBox: "0 0 20 20", paths: [ { d: "M3 8h14v8c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V8zm5 2c-.552 0-1 .448-1 1s.448 1 1 1h4c.552 0 1-.448 1-1s-.448-1-1-1H8zM3 3h14c.552 0 1 .448 1 1v2c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1z" } ] }, arrow: { viewBox: "0 0 16 16", paths: [ { d: "M8.5 11.071l3.536-3.535L8.5 4M3 7.5l8.5.032", strokeLinecap: "round", strokeLinejoin: "round", stroke: "currentColor", fill: "none" } ] }, "arrow-right": { paths: [ { d: "M17.707 9.293l-5-5c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414L14.586 9H3c-.553 0-1 .448-1 1s.447 1 1 1h11.586l-3.293 3.293c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293.256 0 .512-.098.707-.293l5-5c.391-.391.391-1.023 0-1.414" } ] }, baggage: { viewBox: "0 0 24 24", paths: [ { d: "M16.8 3.6h.596c.996 0 1.804.805 1.804 1.795v8.41c0 .992-.807 1.795-1.804 1.795H16.8v-12zm-14.4 0v12h-.596C.808 15.6 0 14.795 0 13.805v-8.41C0 4.403.807 3.6 1.804 3.6H2.4zm13.2 12h-12v-12h12v12zM6 .908C6 .407 6.541 0 7.189 0h4.822c.657 0 1.189.399 1.189.908V3.6H6V.908zm1.2.292v2.4H12V1.2H7.2z" } ] }, balloon: { viewBox: "0 0 28 28", paths: [ { d: "M14.434 22.095c4.443-.28 7.966-4.8 7.966-10.335C22.4 6.047 18.647 1.4 14 1.4S5.6 6.047 5.6 11.76c0 5.535 3.498 10.03 7.915 10.335.102 0 .153.127.076.203l-1.727 2.14c-.28.28-.076.762.306.762h3.477c.409 0 .587-.482.306-.762l-1.621-2.14c-.051-.076 0-.203.102-.203zM9.787 9.652c0 .458-.357.813-.817.813-.46 0-.817-.355-.817-.813 0-3.402 2.783-6.17 6.204-6.17.46 0 .817.356.817.813 0 .457-.357.812-.817.812-2.502-.025-4.57 2.032-4.57 4.545z" } ] }, bluetooth: { paths: [ { d: "M0.364 4L8.364 12 4.364 16 4.364 0 8.364 4 0.364 12", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, stroke: "currentColor", fill: "none", transform: "translate(5 2)" } ] }, bonus: { viewBox: "0 0 26 26", paths: [ { d: "M17.936 4c.662 0 1.278.327 1.649.867l.087.14 1.579 2.757c.144.252.232.532.257.82l.007.174v10.757c0 .841-.644 1.532-1.466 1.606l-.147.007H6.612c-.84 0-1.531-.644-1.605-1.466L5 19.515V8.758c0-.29.063-.577.185-.84l.08-.154 1.578-2.758c.329-.574.919-.946 1.571-1L8.58 4h9.357zm-1.453 6.645c-.445 0-.806.36-.806.806 0 1.336-1.083 2.42-2.42 2.42-1.335 0-2.419-1.084-2.419-2.42 0-.445-.36-.806-.806-.806-.445 0-.806.36-.806.806 0 2.227 1.805 4.032 4.032 4.032 2.226 0 4.032-1.805 4.032-4.032 0-.445-.361-.806-.807-.806zm3.127-3.283H7.19l-.099.006c-.39.05-.691.389-.691.8 0 .445.354.806.79.806h12.42l.099-.006c.39-.05.691-.389.691-.8 0-.445-.354-.806-.79-.806z" } ] }, book: { viewBox: "0 0 26 26", paths: [ { d: "M21.366 6c.35 0 .634.284.634.634v11.944c0 .35-.284.633-.634.633h-4.895c-.728 0-1.393.417-1.71 1.073l-.121.249c-.081.167-.283.237-.45.156-.116-.056-.19-.174-.19-.303V9.168C14 7.418 15.418 6 17.168 6h4.198zM8.832 6C10.582 6 12 7.418 12 9.168h0v11.218c0 .129-.074.247-.19.303-.167.081-.369.011-.45-.156h0l-.12-.25c-.318-.655-.983-1.072-1.711-1.072h0-4.895c-.35 0-.634-.283-.634-.633h0V6.634c0-.35.284-.634.634-.634h0z", stroke: "currentColor", strokeWidth: 0.634 } ] }, box: { viewBox: "0 0 20 20", paths: [ { d: "M17.333 4.75c0-.167-.083-.25-.166-.333L10.417.5c-.084-.083-.25-.083-.417 0L3.167 4.417C3.083 4.5 3 4.583 3 4.75s.083.25.167.333L9.917 9c.083 0 .166.083.166.083s.167 0 .167-.083L17 5.083c.25-.083.333-.25.333-.333zM9 11L2.25 7.083c-.167-.083-.333-.083-.417 0-.083.084-.166.25-.166.334v7.833c0 .167.083.25.166.333l6.75 3.917c.084 0 .167.083.167.083s.167 0 .167-.083c.083-.083.166-.167.166-.333v-7.834c.167-.166.084-.25-.083-.333zm9.5-3.917c-.083-.083-.25-.083-.417 0L11.333 11c-.083.083-.166.167-.166.333v7.834c0 .166.083.25.166.333.084 0 .167.083.167.083s.167 0 .167-.083l6.75-3.917c.083-.083.166-.166.166-.333V7.417c.084-.084 0-.25-.083-.334z" } ] }, business: { viewBox: "0 0 24 24", paths: [ { d: "M16.545 16.547H13.8l-1.425-3.42c-.156-.376-.524-.622-.932-.622H9.05L6.362 6.053c-.157-.376-.525-.621-.933-.621h-2.02c-.337 0-.652.168-.84.45-.187.281-.221.637-.09.95l4.112 9.871c.386.926 1.192 1.575 2.142 1.786L7.955 21.6h5.053l.758-3.032h2.779c.557 0 1.01-.451 1.01-1.01 0-.559-.453-1.01-1.01-1.01m5.42 2.522l-2.948-5.053c-.18-.311-.513-.501-.873-.501h-3.368L12.51 8.074c-.157-.376-.525-.621-.933-.621H9.558c-.339 0-.654.168-.84.45-.189.281-.223.637-.093.95l1.102 2.642h1.717c.816 0 1.552.49 1.865 1.243l1.166 2.799h3.09l2.654 4.551c.188.322.526.501.874.501.173 0 .348-.044.508-.137.482-.28.645-.9.364-1.382M6.945 4.42c0-1.116.905-2.021 2.02-2.021 1.116 0 2.022.905 2.022 2.021 0 1.116-.906 2.021-2.021 2.021-1.116 0-2.021-.905-2.021-2.02" } ] }, calendar: { paths: [ { d: "M6 12h3V9H6v3zm-2 4V7h12l.002 9H4zM16 4h-1V3c0-.552-.448-1-1-1s-1 .448-1 1v1H7V3c0-.552-.448-1-1-1s-1 .448-1 1v1H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2z" } ] }, cancel: { viewBox: "0 0 20 20", paths: [ { d: "M10.5 2c2.254 0 4.416.843 6.01 2.343C18.104 5.843 19 7.878 19 10s-.896 4.157-2.49 5.657C14.916 17.157 12.754 18 10.5 18s-4.416-.843-6.01-2.343C2.896 14.157 2 12.122 2 10c0-4.418 3.806-8 8.5-8zm-6.375 8c0 3.307 2.86 6 6.375 6 1.375 0 2.65-.412 3.692-1.112L5.306 6.525A5.733 5.733 0 004.125 10zM10.5 4c-1.375 0-2.65.412-3.692 1.112l8.886 8.363A5.733 5.733 0 0016.875 10c0-3.308-2.86-6-6.375-6z" } ] }, check: { paths: [ { d: "m7.5 13.086 7.793-7.793a1 1 0 1 1 1.414 1.414l-8.5 8.5a1 1 0 0 1-1.414 0l-3.5-3.5a1 1 0 1 1 1.414-1.414L7.5 13.086Z" } ] }, /** @deprecated */ "check-big": { paths: [ { d: "M7.5 13.086l7.793-7.793c.39-.39 1.024-.39 1.414 0 .39.39.39 1.024 0 1.414l-8.5 8.5c-.39.39-1.024.39-1.414 0l-3.5-3.5c-.39-.39-.39-1.024 0-1.414.39-.39 1.024-.39 1.414 0L7.5 13.086z" } ] }, "check-all": { viewBox: "0 0 20 20", paths: [ { d: "M14.207 6.707a1 1 0 0 0-1.414-1.414L6 12.086 3.707 9.793a1 1 0 0 0-1.414 1.414l2.93 2.93a1.1 1.1 0 0 0 1.555 0l7.43-7.43Zm4 1a1 1 0 0 0-1.414-1.414L10 13.086l-.5-.5L8.086 14l1.136 1.136a1.1 1.1 0 0 0 1.556 0l7.43-7.429Z", fillRule: "evenodd" } ] }, "chevron-down": { paths: [ { d: "M10.0029 11.6053L5.71004 7.31242C5.31951 6.9219 4.68635 6.9219 4.29582 7.31242C3.9053 7.70295 3.9053 8.33611 4.29582 8.72664L9.29582 13.7266C9.68635 14.1172 10.3195 14.1172 10.71 13.7266L15.71 8.72664C16.1006 8.33611 16.1006 7.70295 15.71 7.31242C15.3195 6.9219 14.6863 6.9219 14.2958 7.31242L10.0029 11.6053Z" } ] }, "chevron-left": { paths: [ { d: "M8.41421 10L12.7071 5.70711C13.0976 5.31658 13.0976 4.68342 12.7071 4.29289C12.3166 3.90237 11.6834 3.90237 11.2929 4.29289L6.29289 9.29289C5.90237 9.68342 5.90237 10.3166 6.29289 10.7071L11.2929 15.7071C11.6834 16.0976 12.3166 16.0976 12.7071 15.7071C13.0976 15.3166 13.0976 14.6834 12.7071 14.2929L8.41421 10Z" } ] }, "chevron-right": { paths: [ { d: "M11.5858 10L7.29289 5.70711C6.90237 5.31658 6.90237 4.68342 7.29289 4.29289C7.68342 3.90237 8.31658 3.90237 8.70711 4.29289L13.7071 9.29289C14.0976 9.68342 14.0976 10.3166 13.7071 10.7071L8.70711 15.7071C8.31658 16.0976 7.68342 16.0976 7.29289 15.7071C6.90237 15.3166 6.90237 14.6834 7.29289 14.2929L11.5858 10Z" } ] }, "chevron-up": { paths: [ { d: "M10.0117 9.37857L14.3046 13.6715C14.6951 14.062 15.3283 14.062 15.7188 13.6715C16.1093 13.2809 16.1093 12.6478 15.7188 12.2572L10.7188 7.25725C10.3283 6.86672 9.69514 6.86672 9.30461 7.25725L4.30461 12.2572C3.91409 12.6478 3.91409 13.2809 4.30461 13.6715C4.69514 14.062 5.3283 14.062 5.71883 13.6715L10.0117 9.37857Z" } ] }, "chevron-down-small": { viewBox: "0 0 16 16", paths: [ { d: "M8.24512 8.84751L11.038 6.05461C11.4285 5.66409 12.0617 5.66409 12.4522 6.05461C12.8427 6.44514 12.8427 7.0783 12.4522 7.46883L8.95222 10.9688C8.5617 11.3593 7.92853 11.3593 7.53801 10.9688L4.03801 7.46883C3.64749 7.0783 3.64749 6.44514 4.03801 6.05461C4.42853 5.66409 5.0617 5.66409 5.45222 6.05461L8.24512 8.84751Z" } ] }, "chevron-left-small": { viewBox: "0 0 16 16", paths: [ { d: "M7.90933 7.51172L10.7022 10.3046C11.0927 10.6951 11.0927 11.3283 10.7022 11.7188C10.3117 12.1093 9.67853 12.1093 9.28801 11.7188L5.78801 8.21883C5.39749 7.8283 5.39749 7.19514 5.78801 6.80461L9.28801 3.30461C9.67853 2.91409 10.3117 2.91409 10.7022 3.30461C11.0927 3.69514 11.0927 4.3283 10.7022 4.71883L7.90933 7.51172Z" } ] }, "chevron-right-small": { viewBox: "0 0 16 16", paths: [ { d: "M8.5809 7.51172L5.78801 10.3046C5.39749 10.6951 5.39749 11.3283 5.78801 11.7188C6.17853 12.1093 6.8117 12.1093 7.20222 11.7188L10.7022 8.21883C11.0927 7.8283 11.0927 7.19514 10.7022 6.80461L7.20222 3.30461C6.8117 2.91409 6.17853 2.91409 5.78801 3.30461C5.39749 3.69514 5.39749 4.3283 5.78801 4.71883L8.5809 7.51172Z" } ] }, "chevron-up-small": { viewBox: "0 0 16 16", paths: [ { d: "M8.24512 8.17593L11.038 10.9688C11.4285 11.3593 12.0617 11.3593 12.4522 10.9688C12.8427 10.5783 12.8427 9.94514 12.4522 9.55461L8.95222 6.05461C8.5617 5.66409 7.92853 5.66409 7.53801 6.05461L4.03801 9.55461C3.64749 9.94514 3.64749 10.5783 4.03801 10.9688C4.42853 11.3593 5.0617 11.3593 5.45222 10.9688L8.24512 8.17593Z" } ] }, "circle-check": { paths: [ { d: "M8 14c-3.308 0-6-2.693-6-6 0-3.308 2.692-6 6-6 3.307 0 6 2.692 6 6 0 3.307-2.693 6-6 6zM8 0C3.582 0 0 3.58 0 8c0 2.121.843 4.156 2.343 5.657C3.843 15.157 5.878 16 8 16s4.157-.843 5.657-2.343S16 10.12 16 8c0-2.122-.843-4.157-2.343-5.657S10.122 0 8 0zm2.293 5.293L7 8.586 5.707 7.293c-.39-.391-1.023-.391-1.414 0-.39.391-.39 1.023 0 1.414l2 2c.195.195.451.293.707.293.256 0 .512-.098.707-.293l4-4c.391-.391.391-1.023 0-1.414-.39-.391-1.023-.391-1.414 0", transform: "translate(-1299 -510) translate(1299 510) translate(2 2)", fillRule: "nonzero" } ] }, close: { paths: [ { d: "M11.985 10l2.407-2.293c.41-.39.41-1.023 0-1.414-.41-.39-1.074-.39-1.485 0L10.5 8.586 8.093 6.293c-.411-.39-1.075-.39-1.485 0-.41.391-.41 1.023 0 1.414L9.015 10l-2.407 2.293c-.41.391-.41 1.023 0 1.414.205.195.473.293.742.293s.538-.098.743-.293l2.407-2.293 2.407 2.293c.205.195.474.293.743.293s.537-.098.742-.293c.41-.391.41-1.023 0-1.414L11.985 10z" } ] }, "close-large": { paths: [ { d: "M6.102 4.709c-.446-.36-1.055-.373-1.415-.012-.39.39-.342 1.072.108 1.523l3.783 3.782-3.783 3.782-.096.108c-.36.446-.373 1.055-.012 1.415.39.391 1.072.342 1.523-.108l3.782-3.783 3.782 3.783.108.097c.446.358 1.055.372 1.415.011.39-.39.342-1.072-.108-1.523l-3.783-3.782L15.19 6.22l.097-.108c.358-.446.372-1.055.011-1.415-.39-.39-1.072-.342-1.523.108L9.992 8.588 6.21 4.805l-.108-.096Z" } ] }, "close-window": { paths: [ { d: "M4.5 4.5l11 11m0-11l-11 11", strokeWidth: "2", strokeLinejoin: "round", strokeLinecap: "round", stroke: "currentColor" } ] }, copy: { viewBox: "0 0 20 20", rects: [ { width: 10, height: 8, x: 7, y: 4, strokeWidth: 2, rx: 1, stroke: "currentColor" }, { width: 12, height: 10, x: 2, y: 7, fill: "currentColor", rx: 1 } ] }, "copy-outline": { viewBox: "0 0 16 16", paths: [ { d: "M13 0C14.6569 0 16 1.34315 16 3V9C16 10.6569 14.6569 12 13 12H12V13C12 14.5977 10.7511 15.9037 9.17627 15.9949L9 16H3C1.40232 16 0.0963391 14.7511 0.00509262 13.1763L0 13V7C0 5.40232 1.24892 4.09634 2.82373 4.00509L3 4H4V3C4 1.40232 5.24892 0.0963391 6.82373 0.00509262L7 0H13ZM4 6H3C2.48716 6 2.06449 6.38604 2.00673 6.88338L2 7V13C2 13.5128 2.38604 13.9355 2.88338 13.9933L3 14H9C9.51284 14 9.93551 13.614 9.99327 13.1166L10 13V12H7C5.40232 12 4.09634 10.7511 4.00509 9.17627L4 9V6ZM6 9C6 9.55228 6.44772 10 7 10H13C13.5523 10 14 9.55228 14 9V3C14 2.44772 13.5523 2 13 2H7C6.44772 2 6 2.44772 6 3V9Z" } ] }, // строительный кран crane: { viewBox: "0 0 20 20", paths: [ { d: "M5 1v3.018c0 .595.48.992 1.2.992h2v2.975c0 .099 0 .297.12.396l2.76 5.256c.24.496.24 1.09-.12 1.586-.72.893-2.52.992-3.36 0-.36-.495-.48-.991-.24-1.487.48-.992.72-2.082.72-3.173 0-.595-.48-.992-1.2-.992s-1.2.397-1.2.992c0 .793-.24 1.686-.6 2.479-.6 1.09-.36 2.38.48 3.371C6.4 17.405 7.72 18 9.16 18s2.88-.595 3.72-1.686c.84-1.09.96-2.28.36-3.47L10.6 7.786V5.01h2.2c.72 0 1.2-.397 1.2-.992V1H5z" } ] }, danger: { viewBox: "0 0 20 20", paths: [ { d: "M9.576 3.085L6.472 8.98a.3.3 0 00.265.439h1.758a.3.3 0 01.287.389l-2.185 7.086a.3.3 0 00.498.3l7.774-7.778a.3.3 0 00-.213-.512h-1.42a.299.299 0 01-.265-.442l2.749-5.096a.3.3 0 00-.264-.443H9.84a.3.3 0 00-.265.16z" } ] }, direction: { paths: [ { d: "M15.708 7.59c.048-.055.132-.06.187-.013l3.059 2.662.01.01c.05.054.046.138-.007.187l-3.059 2.835c-.025.023-.057.035-.09.035-.073 0-.133-.059-.133-.132v-1.64H11.82c-.366 0-.663.297-.663.663v5.673c0 .624-.506 1.13-1.13 1.13-.623 0-1.13-.506-1.13-1.13v-5.906c0-1.463 1.187-2.65 2.65-2.65h4.13V7.677c0-.032.011-.063.032-.087zm-11.416 0c.021.024.033.055.033.087v1.637h4.859c.036 0 .066.03.066.067 0 .021-.01.041-.027.054-.259.187-.485.453-.678.797-.187.334-.305.673-.354 1.018-.023.163-.162.285-.328.285H4.325v1.639c0 .073-.06.132-.133.132-.033 0-.065-.012-.09-.035l-3.059-2.835c-.053-.05-.056-.133-.007-.187l.01-.01 3.06-2.662c.054-.048.138-.042.186.013zm5.645-6.558c.055-.05.138-.045.188.01l2.713 2.988c.022.025.035.056.035.09 0 .073-.06.132-.133.132h-1.584v3.48c0 .623-.506 1.13-1.13 1.13-.623 0-1.13-.507-1.13-1.13v-3.48H7.314c-.033 0-.065-.012-.09-.035-.053-.049-.057-.133-.008-.187l2.713-2.989.01-.009z" } ] }, document: { viewBox: "0 0 28 28", paths: [ { d: "M14.44 2.8l7.96 7.135v12.026c0 1.789-1.618 3.239-3.614 3.239H9.214c-1.996 0-3.614-1.45-3.614-3.24V6.04c0-1.789 1.618-3.24 3.614-3.24h5.225zm-1.678 1.08v5.63c0 1.066.863 1.929 1.928 1.929h6.505L12.762 3.88z" } ] }, download: { paths: [ { d: "M4.125 13v2h12.75v-2H19v2c0 1.112-.949 2-2.119 2H4.12C2.95 17 2 16.105 2 15v-2h2.125zM10.5 3c.587 0 1.063.447 1.063 1v5.586l1.373-1.293c.416-.391 1.087-.391 1.503 0 .207.195.311.45.311.707 0 .256-.104.512-.311.707l-3.188 3c-.415.39-1.087.39-1.502 0l-3.188-3c-.415-.391-.415-1.023 0-1.414.416-.391 1.087-.391 1.503 0l1.374 1.293V4c0-.553.476-1 1.062-1z" } ] }, email: { circles: [ { cx: 7, cy: 7, r: 2.8, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, stroke: "currentColor", fill: "none", transform: "translate(3 3)" } ], paths: [ { d: "M9.8 4.2v3.5c0 1.16.94 2.1 2.1 2.1 1.16 0 2.1-.94 2.1-2.1V7C14 3.747 11.759.923 8.59.184c-3.167-.74-6.427.8-7.867 3.718-1.44 2.916-.68 6.441 1.832 8.506 2.514 2.066 6.118 2.128 8.701.15", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, stroke: "currentColor", fill: "none", transform: "translate(3 3)" } ] }, eye: { paths: [ { d: "M9.99975 4.5C13.6093 4.5 16.9323 6.4095 18.8892 9.6085C19.0362 9.8485 19.0362 10.1515 18.8892 10.3915C16.9323 13.5905 13.6093 15.5 9.99975 15.5C6.39025 15.5 3.06725 13.5905 1.11025 10.3915C0.96325 10.1515 0.96325 9.8485 1.11025 9.6085C3.06725 6.4095 6.39025 4.5 9.99975 4.5ZM9.99975 14C7.06625 14 4.34775 12.513 2.64175 10C3.56625 8.6385 4.78825 7.582 6.17975 6.896C5.90675 7.457 5.74975 8.0845 5.74975 8.75C5.74975 11.097 7.65275 13 9.99975 13C12.3467 13 14.2498 11.097 14.2498 8.75C14.2498 8.0845 14.0928 7.457 13.8198 6.896C15.2113 7.582 16.4332 8.6385 17.3577 10C15.6517 12.513 12.9332 14 9.99975 14ZM8.49975 7.25C9.05175 7.25 9.49975 7.698 9.49975 8.25C9.49975 8.802 9.05175 9.25 8.49975 9.25C7.94775 9.25 7.49975 8.802 7.49975 8.25C7.49975 7.698 7.94775 7.25 8.49975 7.25Z" } ] }, "eye-closed": { paths: [ { d: "M18.6967 7.28265C18.3005 6.89786 17.6674 6.90711 17.2826 7.30329C15.0856 9.56545 12.5958 11 9.99988 11C7.4039 11 4.91398 9.56533 2.7174 7.30334C2.33265 6.90713 1.69955 6.89784 1.30334 7.2826C0.907132 7.66735 0.897843 8.30045 1.2826 8.69666C1.71899 9.14604 2.16716 9.56817 2.62668 9.95911L1.29289 11.2929C0.902369 11.6834 0.902369 12.3166 1.29289 12.7071C1.65338 13.0676 2.22061 13.0953 2.6129 12.7903L2.70711 12.7071L4.244 11.1702C4.73663 11.4899 5.24043 11.7728 5.75495 12.0148L4.63005 13.9632L4.57756 14.0675C4.37892 14.5271 4.55194 15.0728 4.99607 15.3292C5.47437 15.6054 6.08596 15.4415 6.3621 14.9632L7.66569 12.7053C8.10385 12.8166 8.54871 12.8977 9 12.9463V15L9.00673 15.1166C9.06449 15.614 9.48717 16 10 16C10.5523 16 11 15.5523 11 15V12.9462C11.4662 12.896 11.9255 12.8112 12.3777 12.6941L13.6878 14.9632C13.9639 15.4415 14.5755 15.6054 15.0538 15.3292C15.4979 15.0728 15.6709 14.5271 15.4723 14.0675L15.4198 13.9632L14.2842 11.9962C14.7851 11.7584 15.2758 11.4817 15.7559 11.1701L17.2929 12.7071L17.3871 12.7903C17.7794 13.0953 18.3466 13.0676 18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L17.3733 9.95905C17.8328 9.56814 18.2809 9.14606 18.7174 8.69671C19.1021 8.30052 19.0929 7.66743 18.6967 7.28265Z" } ] }, female: { paths: [ { d: "M14 15l-1.621-6.485C12.156 7.625 11.356 7 10.438 7h-.876c-.918 0-1.718.625-1.941 1.515L6 15h2.5v3h3v-3H14zM8 4c0-1.104.896-2 2-2s2 .896 2 2-.896 2-2 2-2-.896-2-2z" } ] }, filter: { viewBox: "0 0 20 20", paths: [ { d: "M12 11c1.306 0 2.417.834 2.829 2H17c.552 0 1 .448 1 1s-.448 1-1 1h-2.17c-.412 1.165-1.524 2-2.83 2s-2.418-.835-2.83-2H3c-.552 0-1-.448-1-1s.448-1 1-1h6.171c.412-1.166 1.523-2 2.829-2zM5 3c1.306 0 2.417.834 2.829 2H17c.552 0 1 .448 1 1s-.448 1-1 1H7.83C7.417 8.165 6.305 9 5 9 3.343 9 2 7.657 2 6s1.343-3 3-3z" } ] }, folder: { viewBox: "0 0 20 20", paths: [ { d: "M16.9 5H10.009L8.716 3.795C8.25211 3.34264 7.714 3 7.069 3H3.1C1.942 3 1 3.942 1 5.1V15.9C1 17.058 1.942 18 3.1 18H16.9C18.058 18 19 17.058 19 15.9V7.1C19 5.942 18.058 5 16.9 5Z" } ] }, "folder-add": { viewBox: "0 0 20 20", paths: [ { d: "M16.9 5H10.009C10.009 5 9.19158 4.23037 8.716 3.795C8.24042 3.35963 7.714 3 7.069 3H3.1C1.942 3 1 3.942 1 5.1V15.9C1 17.058 1.942 18 3.1 18H16.9C18.058 18 19 17.058 19 15.9V7.1C19 5.942 18.058 5 16.9 5Z" }, { d: "M13 13H11V15C11 15.5523 10.5523 16 10 16C9.44772 16 9 15.5523 9 15V13H7C6.44772 13 6 12.5523 6 12C6 11.4477 6.44772 11 7 11H9V9C9 8.44772 9.44772 8 10 8C10.5523 8 11 8.44772 11 9V11H13C13.5523 11 14 11.4477 14 12C14 12.5523 13.5523 13 13 13Z", fill: "white" } ] }, food: { viewBox: "0 0 28 28", paths: [ { d: "M17.57 9.6c.378-2.252.914-2.553 1.612-3.7.527-.833 1.064-1.4 1.612-1.7.89 0 1.611.761 1.611 1.7v17.6c0 .939-.721 1.7-1.611 1.7s-1.612-.761-1.612-1.7v-5.4l-1.611-1.7V9.6zM7.424 14.7h3.223v8.8c0 .939-.722 1.7-1.612 1.7-.89 0-1.611-.761-1.611-1.7v-8.8zM5.006 4.2c.445 0 .805.38.805.85v6.25H8.26c.008-4.92.011-6.07.01-6.25-.006-.47.34-.85.765-.85.427 0 .789.38.789.85 0 .185.008 1.335.024 6.25h2.41V5.05c0-.47.361-.85.806-.85.445 0 .806.38.806.85v6.25c0 1.878-1.443 3.4-3.223 3.4H7.423c-1.78 0-3.223-1.522-3.223-3.4V5.05c0-.47.36-.85.806-.85z" } ] }, import: { paths: [ { d: "M13 3h3c1.105 0 2 .895 2 2v10c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-3h2v3h10V5h-3V3zm-5.5 7C4.467 10 2 7.533 2 4.5c0-.232.16-.434.385-.487C2.423 4.004 2.462 4 2.5 4c.186 0 .361.104.447.276l.118.235C3.832 6.046 5.374 7 7.09 7H9V5.5c0-.189.107-.362.276-.447.169-.085.373-.067.524.047l4 3c.126.094.2.243.2.4 0 .157-.074.306-.2.4l-4 3c-.15.114-.354.132-.523.047-.17-.085-.277-.258-.277-.447V10H7.5z" } ] }, information: { paths: [ { d: "M10 8c-.552 0-1-.448-1-1s.448-1 1-1 1 .448 1 1-.448 1-1 1zm0 8c3.307 0 6-2.693 6-6 0-3.308-2.693-6-6-6-3.308 0-6 2.692-6 6 0 3.307 2.692 6 6 6zm0-14c2.122 0 4.157.843 5.657 2.343S18 7.878 18 10s-.843 4.157-2.343 5.657S12.122 18 10 18s-4.157-.843-5.657-2.343S2 12.122 2 10c0-4.418 3.582-8 8-8zm0 12c-.552 0-1-.448-1-1v-3c0-.552.448-1 1-1s1 .448 1 1v3c0 .552-.448 1-1 1z" } ] }, insurance: { paths: [ { d: "M9.883 9.16l.28.002c.31.001.559.252.559.56v4.827c0 .675-.282 1.292-.734 1.733-.452.443-1.083.718-1.773.718s-1.32-.275-1.772-.718c-.452-.441-.734-1.058-.734-1.733l.008-.08c.037-.178.195-.312.384-.312h.62c.216 0 .392.175.392.392 0 .3.122.565.323.762.201.197.473.316.78.317.307-.001.578-.12.78-.317.2-.197.322-.462.322-.762v-4.83c.002-.31.255-.56.565-.559zM10.02 2c.387 0 .701.314.701.702v.406c3.937.32 7.054 2.987 7.279 6.772-.463-.751-1.32-1.257-2.3-1.257-1.09 0-2.027.623-2.442 1.515l-.006-.012c-.556-1.186-1.8-2.013-3.252-2.013-1.454 0-2.7.83-3.256 2.025-.417-.892-1.352-1.516-2.442-1.516-.983 0-1.837.506-2.302 1.257.225-3.797 3.364-6.469 7.318-6.774v-.403c0-.388.314-.702.702-.702z" } ] }, link: { viewBox: "0 0 10 10", paths: [ { d: "M4.20342 6.50301C4.66953 6.96668 5.28934 7.22208 5.94843 7.22208C6.60772 7.22208 7.22733 6.96668 7.69363 6.50301L9.14549 5.05875C10.1078 4.10152 10.1078 2.54421 9.14549 1.58699C8.18324 0.629954 6.61774 0.629763 5.65548 1.58699L5.03375 2.20508C4.82073 2.41699 4.82073 2.76072 5.03375 2.97263C5.24677 3.18453 5.5923 3.18453 5.80533 2.97263L6.42686 2.35434C6.96366 1.82035 7.83693 1.82035 8.37372 2.35434C8.91051 2.88832 8.91051 3.75703 8.37372 4.29101L6.92186 5.73528C6.66184 5.99413 6.31612 6.13649 5.94843 6.13649C5.58075 6.13649 5.23502 5.99413 4.975 5.73547C4.76198 5.52356 4.41645 5.52356 4.20342 5.73547C3.9904 5.94738 3.9904 6.29111 4.20342 6.50301ZM1.5889 9.15006C2.05503 9.61374 2.67485 9.86914 3.33397 9.86914C3.99328 9.86914 4.61291 9.61374 5.07904 9.15026L5.70059 8.53196C5.91362 8.32005 5.91362 7.97632 5.70059 7.76441C5.48757 7.5525 5.14202 7.5525 4.92899 7.76441L4.30743 8.3827C4.04741 8.64137 3.70167 8.78372 3.33397 8.78372C2.96627 8.78372 2.62054 8.64117 2.36051 8.38251C1.8237 7.84852 1.8237 6.97981 2.36051 6.44582L3.81242 5.00153C4.34923 4.46754 5.22253 4.46754 5.75934 5.00153C5.97237 5.21344 6.31792 5.21344 6.53095 5.00153C6.74397 4.78962 6.74397 4.44589 6.53095 4.23398C5.56866 3.27694 4.0031 3.27694 3.04081 4.23398L1.5889 5.67827C0.626615 6.6355 0.626615 8.19283 1.5889 9.15006Z" } ] }, list: { paths: [ { d: "M4 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H5Z" } ] }, lock: { paths: [ { d: "M10 2C12.21 2 14 3.79 14 6V8H15C16.105 8 17 8.895 17 10V16C17 17.105 16.105 18 15 18H5C3.895 18 3 17.105 3 16V10C3 8.895 3.895 8 5 8H6V6C6 3.79 7.79 2 10 2ZM10 11C8.895 11 8 11.895 8 13C8 14.105 8.895 15 10 15C11.105 15 12 14.105 12 13C12 11.895 11.105 11 10 11ZM8 6C8 4.895 8.895 4 10 4C11.105 4 12 4.895 12 6V8H8V6Z" } ] }, "lock-open": { paths: [ { d: "M14 5C14 2.79 12.21 1 10 1C7.79 1 6 2.79 6 5V8H5C3.895 8 3 8.895 3 10V16C3 17.105 3.895 18 5 18H15C16.105 18 17 17.105 17 16V10C17 8.895 16.105 8 15 8H14H12H11H8V5C8 3.895 8.895 3 10 3C11.105 3 12 3.895 12 5H14ZM8 13C8 11.895 8.895 11 10 11C11.105 11 12 11.895 12 13C12 14.105 11.105 15 10 15C8.895 15 8 14.105 8 13Z" } ] }, male: { paths: [ { d: "M11.995 4c0 1.105-.895 2-2 2-1.104 0-2-.895-2-2s.896-2 2-2c1.105 0 2 .895 2 2zM8 7h3.992c1.105 0 2 .895 2 2v4h-1.997v5h-4L8 13H6.005L6 9c0-1.105.895-2 2-2z" } ] }, menu: { viewBox: "1 1 16 16", paths: [ { d: "M5.08154 9.02148C5.08154 8.77083 5.16211 8.55778 5.32324 8.38232C5.48438 8.20687 5.70817 8.11914 5.99463 8.11914C6.28109 8.11914 6.50667 8.20687 6.67139 8.38232C6.8361 8.55778 6.91846 8.77083 6.91846 9.02148C6.91846 9.27214 6.8361 9.47803 6.67139 9.63916C6.50667 9.80029 6.28109 9.88086 5.99463 9.88086C5.70817 9.88086 5.48438 9.80029 5.32324 9.63916C5.16211 9.47803 5.08154 9.27214 5.08154 9.02148ZM8.08154 9.02148C8.08154 8.77083 8.16211 8.55778 8.32324 8.38232C8.48438 8.20687 8.70817 8.11914 8.99463 8.11914C9.28109 8.11914 9.50667 8.20687 9.67139 8.38232C9.8361 8.55778 9.91846 8.77083 9.91846 9.02148C9.91846 9.27214 9.8361 9.47803 9.67139 9.63916C9.50667 9.80029 9.28109 9.88086 8.99463 9.88086C8.70817 9.88086 8.48438 9.80029 8.32324 9.63916C8.16211 9.47803 8.08154 9.27214 8.08154 9.02148ZM11.0815 9.02148C11.0815 8.77083 11.1621 8.55778 11.3232 8.38232C11.4844 8.20687 11.7082 8.11914 11.9946 8.11914C12.2811 8.11914 12.5067 8.20687 12.6714 8.38232C12.8361 8.55778 12.9185 8.77083 12.9185 9.02148C12.9185 9.27214 12.8361 9.47803 12.6714 9.63916C12.5067 9.80029 12.2811 9.88086 11.9946 9.88086C11.7082 9.88086 11.4844 9.80029 11.3232 9.63916C11.1621 9.47803 11.0815 9.27214 11.0815 9.02148Z" } ] }, minus: { paths: [ { d: "M16 11H4a1 1 0 1 1 0-2h12a1 1 0 1 1 0 2Z" } ] }, "burger-menu": { viewBox: "0 0 32 32", paths: [ { d: "M4 6H28V9H4V6ZM4 14H28V17H4V14ZM28 22H4V25H28V22Z" } ] }, pencil: { paths: [ { d: "M16.801105,6.75351213 C17.0662983,6.48786718 17.0662983,6.04512559 16.801105,5.79310345 L15.2099448,4.19923372 C14.958351,3.93358876 14.5163621,3.93358876 14.2511687,4.19923372 L13,5.44572158 L15.5499363,8 L16.801105,6.75351213 Z M5,13.4696356 L5,16 L7.53207292,16 L15,8.53036437 L12.4679271,6 L5,13.4696356 Z" } ] }, pin: { viewBox: "0 0 20 20", paths: [ { d: "M10 2a5.995 5.995 0 0 1 5.98 5.596c.012.122.02.255.02.404 0 3.534-3.7 7.684-5.289 9.303a.995.995 0 0 1-1.422 0C7.7 15.684 4 11.534 4 8c0-.15.008-.282.02-.404A5.995 5.995 0 0 1 10 2ZM7 8a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z" } ] }, plane: { paths: [ { d: "M19 10c0-.59-.53-1.105-1.137-1.105h-4.168L8.22 3H6.705l3.58 5.895h-4.17L4.138 7.42H3L4.6 10 3 12.579h1.137l1.979-1.474h4.168L6.705 17h1.516l5.474-5.895h4.168C18.47 11.105 19 10.59 19 10z" } ] }, "plane-circle": { viewBox: "0 0 30 30", paths: [ { d: "M15 0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0zm-3.125 5h-2.75l5.5 8.143H9.812l-2.75-2.714H5l2.578 4.068L5 18.571h2.063l2.75-2.714h4.812L9.125 24h2.75l8.25-8.143h5.5c.845 0 1.375-.548 1.375-1.356 0-.81-.53-1.358-1.375-1.358h-5.5L11.875 5z" } ] }, plus: { paths: [ { d: "M16 11h-5v5a1 1 0 1 1-2 0v-5H4a1 1 0 1 1 0-2h5V4a1 1 0 0 1 2 0v5h5a1 1 0 1 1 0 2Z" } ] }, presentation: { viewBox: "0 0 20 20", paths: [ { d: "M8 10H12V11H8V10Z" }, { d: "M14 8H6V9H14V8Z" }, { d: "M4 2C2.89543 2 2 2.89543 2 4V13C2 14.1046 2.89543 15 4 15H7.6906L5.76795 18.3301L7.5 19.3301L10 15L12.5004 19.3301L14.2324 18.3301L12.3098 15H16C17.1046 15 18 14.1046 18 13V4C18 2.89543 17.1046 2 16 2H4ZM16 6H4V13H16V6Z" } ] }, print: { paths: [ { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, stroke: "currentColor", fill: "none", transform: "translate(2 2)", d: "M3.2 5.6L3.2 0 12.8 0 12.8 5.6M3.2 12.8H1.6c-.884 0-1.6-.716-1.6-1.6v-4c0-.884.716-1.6 1.6-1.6h12.8c.884 0 1.6.716 1.6 1.6v4c0 .884-.716 1.6-1.6 1.6h-1.6" }, { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, stroke: "currentColor", fill: "none", transform: "translate(2 2)", d: "M3.2 9.6H12.8V16H3.2z" } ] }, question: { paths: [ { d: "M10 2c4.419 0 8 3.581 8 8 0 4.419-3.581 8-8 8-4.418 0-8-3.581-8-8 0-4.419 3.582-8 8-8zm0 12c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1zm0-9.6c-1.767 0-3.2 1.433-3.2 3.2h1.6c0-.884.716-1.6 1.6-1.6.884 0 1.6.716 1.6 1.6 0 .442-.18.842-.469 1.131l-.994 1.007C9.558 10.317 9.2 11.117 9.2 12v.4h1.6c0-1.2.358-1.684.937-2.263l.716-.734c.462-.461.747-1.099.747-1.803 0-1.767-1.433-3.2-3.2-3.2z", fillRule: "nonzero" } ] }, refresh: { viewBox: "0 0 20 20", paths: [ { d: "M17.071 10.001a1 1 0 0 0-1.13.85C15.522 13.786 12.968 16 10 16c-1.42 0-2.773-.51-3.839-1.398l1.68-1.678A.542.542 0 0 0 7.457 12H2.541a.54.54 0 0 0-.54.541v4.917a.54.54 0 0 0 .923.382l1.815-1.815A8.007 8.007 0 0 0 10 18c3.96 0 7.364-2.953 7.921-6.868a1.001 1.001 0 0 0-.85-1.131Zm.93-7.459v4.917a.542.542 0 0 1-.542.541h-4.917a.541.541 0 0 1-.383-.924l1.68-1.678A6.012 6.012 0 0 0 10 4C7.03 4 4.476 6.214 4.06 9.149a1.003 1.003 0 0 1-1.132.85 1 1 0 0 1-.848-1.131C2.635 4.953 6.041 2 10 2c1.954 0 3.818.717 5.26 1.975l1.816-1.816a.542.542 0 0 1 .924.383" } ] }, repeat: { viewBox: "0 0 20 20", paths: [ { d: "m17.146 2.854-1.5 1.5A7.991 7.991 0 0 0 10 1.998C5.589 2 2 5.59 2 10c0 4.413 3.588 8 8 8 3.543 0 6.704-2.373 7.687-5.774a.999.999 0 0 0-.684-1.237 1.002 1.002 0 0 0-1.239.683A6.023 6.023 0 0 1 10.002 16c-3.31 0-6-2.691-6-6s2.69-6 6-6c1.601 0 3.119.65 4.234 1.765l-1.631 1.631a.5.5 0 0 0 .354.854H17.5a.5.5 0 0 0 .5-.5V3.208a.501.501 0 0 0-.855-.354" } ] }, rocket: { paths: [ { d: "M7.55 16.096c.273.273.273.716 0 .99-.064.063-.14.114-.222.149-1.35.572-2.218.664-2.607.275-.388-.388-.297-1.257.276-2.607.15-.355.561-.521.917-.37.083.035.158.085.221.149l1.414 1.414zM16.742 5.49c2.828 2.828-2.121 7.778-2.121 7.778.435.436-.136 2.282-1.715 5.538-.12.249-.42.352-.668.232-.087-.043-.16-.11-.21-.193l-1.65-2.749c-.471.472-.943.472-1.414 0l-2.829-2.828c-.471-.472-.471-.943 0-1.414l-2.749-1.65c-.237-.142-.313-.45-.171-.686.05-.083.123-.15.21-.193 3.257-1.578 5.103-2.15 5.539-1.714l.022-.022c.363-.354 5.038-4.817 7.756-2.1z" }, { d: "M14.62 7.61c-.78-.78-2.047-.78-2.828 0-.78.782-.78 2.048 0 2.83.781.78 2.048.78 2.829 0 .78-.782.78-2.048 0-2.83z" } ] }, "round-trip": { paths: [ { d: "M5.234 10.3c.387-.395 1.02-.4 1.414-.013.394.387.4 1.02.013 1.414L5.383 13H17c.552 0 1 .448 1 1s-.448 1-1 1H5.415l1.292 1.293c.36.36.388.928.083 1.32l-.083.094c-.39.39-1.024.39-1.414 0l-3-3c-.388-.388-.391-1.016-.006-1.408l2.947-3zm9.532-8l2.947 3c.385.39.382 1.019-.006 1.407l-3 3c-.39.39-1.024.39-1.414 0-.39-.39-.39-1.024 0-1.414L14.584 7H3c-.552 0-1-.448-1-1s.448-1 1-1h11.616l-1.277-1.3c-.387-.393-.381-1.026.013-1.413.393-.387 1.027-.382 1.414.012z" } ] }, "vendor-logo": { viewBox: "0 0 30 30", paths: [] }, scan: { paths: [ { strokeLinecap: "round", strokeLinejoin: "round", d: "M6.5 4.5L6.5 15M16.5 4.5L16.5 15", strokeWidth: 2.5, stroke: "currentColor" }, { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M3 4L3 15.483M10 4L10 15.483M13 4L13 15.483", stroke: "currentColor" } ] }, search: { paths: [ { d: "M9 2c3.866 0 7 3.134 7 7 0 1.7-.606 3.259-1.614 4.472l2.589 2.59c.39.39.39 1.023 0 1.414-.39.39-1.024.39-1.414 0l-2.662-2.661C11.785 15.563 10.443 16 9 16c-3.866 0-7-3.134-7-7s3.134-7 7-7zm0 2C6.239 4 4 6.239 4 9s2.239 5 5 5 5-2.239 5-5-2.239-5-5-5z" } ] }, "send-email": { paths: [ { d: "M16.4 4c.884 0 1.6.672 1.6 1.5V10h-2V8l-5.102 2.55c-.504.253-1.3.249-1.796 0L4 8v6h6v2H3.6c-.884 0-1.6-.672-1.6-1.5v-9C2 4.672 2.716 4 3.6 4h12.8Zm0 12c.884 0 1.6-.672 1.6-1.5v.05c0 .8-.65 1.45-1.45 1.45h-.15ZM4 6h12l-5.102 2.55c-.496.249-1.292.253-1.796 0L4 6Z", fillRule: "evenodd", clipRule: "evenodd" }, { d: "m19.707 14.293-3-3a.999.999 0 1 0-1.414 1.414L16.586 14H12a1 1 0 1 0 0 2h4.586l-1.293 1.293a.999.999 0 1 0 1.414 1.414l3-3a.999.999 0 0 0 0-1.414Z" } ] }, settings: { paths: [ { d: "M13.227 9.987a3.234 3.234 0 10-3.231 3.235 3.249 3.249 0 003.23-3.235M10.192 18.8h-.394l-.201-.06a1.764 1.764 0 01-1.174-1.008 3.812 3.812 0 00-.45-.758 1.41 1.41 0 00-.994-.624 2.644 2.644 0 00-1.32.206 1.69 1.69 0 01-2.248-2.194c.156-.35.239-.725.243-1.107a1.335 1.335 0 00-.23-.825 2.564 2.564 0 00-1.148-.87 1.652 1.652 0 01-.68-.505 1.675 1.675 0 01.648-2.633c.313-.12.6-.3.844-.53a1.43 1.43 0 00.529-.855 2.585 2.585 0 00-.203-1.41 1.689 1.689 0 01-.037-1.235c.353-1.057 1.533-1.323 2.275-.981.344.158.72.237 1.098.23.283.013.563-.066.798-.225.398-.29.703-.69.88-1.15a1.697 1.697 0 013.144-.017c.12.312.3.599.528.844.228.29.56.48.927.53.455.045.914-.03 1.332-.214a1.679 1.679 0 011.25-.037c1.04.353 1.314 1.53.976 2.267a2.533 2.533 0 00-.245 1.093c-.013.282.064.562.22.798.302.41.718.724 1.196.9.319.122.585.35.752.648.113.228.21.463.293.705v.395c-.016.049-.033.096-.048.146a1.735 1.735 0 01-1.081 1.249 2.544 2.544 0 00-.881.59 1.34 1.34 0 00-.434.83c-.044.45.028.906.208 1.32.128.288.172.605.127.916-.176 1.316-1.506 1.715-2.347 1.334a2.6 2.6 0 00-1.095-.23 1.323 1.323 0 00-.847.253 2.7 2.7 0 00-.852 1.165c-.095.23-.243.436-.432.598a2.164 2.164 0 01-.927.45" } ] }, "sign-out": { paths: [ { d: "M3.66747 12.9846C3.16821 13.2199 2.94915 13.8197 3.24483 14.2858C4.03341 15.5287 5.15368 16.5359 6.48783 17.1878C8.12272 17.9867 9.98108 18.2043 11.7563 17.8048C13.5315 17.4054 15.1175 16.4126 16.2526 14.9905C17.3877 13.5683 18.0041 11.8017 18 9.98205C17.9959 8.16244 17.3716 6.39858 16.2302 4.98152C15.0887 3.56446 13.4983 2.57887 11.7213 2.18736C9.94426 1.79586 8.08689 2.02184 6.45561 2.82802C5.12439 3.48591 4.00866 4.49809 3.22566 5.74458C2.93208 6.21196 3.15383 6.81077 3.65414 7.04383C4.15445 7.2769 4.74257 7.05391 5.05534 6.59915C5.63276 5.75963 6.41786 5.07616 7.34114 4.61988C8.56486 4.01511 9.95819 3.84559 11.2912 4.13928C12.6242 4.43297 13.8173 5.17232 14.6736 6.23534C15.5299 7.29836 15.9982 8.62153 16.0013 9.98653C16.0043 11.3515 15.542 12.6768 14.6905 13.7436C13.839 14.8105 12.6492 15.5552 11.3175 15.8549C9.98581 16.1545 8.59174 15.9913 7.36532 15.392C6.44 14.9399 5.65184 14.2599 5.07066 13.423C4.75584 12.9697 4.16673 12.7493 3.66747 12.9846Z" }, { d: "M10.1505 9.04233L3 9.00006C2.44771 9.00006 2 9.44778 2 10.0001C2 10.5523 2.44771 11.0001 3 11.0001L10.1507 11.0423L8.3375 12.8555C7.94415 13.2489 7.94415 13.8866 8.3375 14.28C8.73085 14.6733 9.36859 14.6733 9.76194 14.28L13.2872 10.7547C13.6806 10.3613 13.6806 9.72357 13.2872 9.33022L9.76194 5.80491C9.36859 5.41156 8.73085 5.41156 8.3375 5.80491C7.94415 6.19826 7.94415 6.836 8.3375 7.22935L10.1505 9.04233Z" } ] }, size: { paths: [ { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, fill: "none", stroke: "currentColor", d: "M6.889 3H4.556C3.696 3 3 3.696 3 4.556v2.333m14 0V4.556C17 3.696 16.304 3 15.444 3h-2.333m0 14h2.333c.86 0 1.556-.696 1.556-1.556v-2.333m-14 0v2.333C3 16.304 3.696 17 4.556 17h2.333" } ] }, sort: { paths: [ { d: "M10 9h6v2h-6V9zm0 4h4v2h-4v-2zm0-8h8v2h-8V5zm-4 8h2l-3 3-3-3h2V7H2l3-3 3 3H6v6z" } ] }, "sort-asc": { viewBox: "0 0 16 16", paths: [ { d: "M7.478 3c.414 0 .749.335.749.748l-.001 6.937 2.61-2.609c.266-.266.683-.29.977-.073l.084.073.073.084c.218.294.194.711-.073.978L8.185 12.85c-.39.39-1.023.39-1.414 0l-3.71-3.71c-.294-.294-.294-.77 0-1.063.293-.294.77-.294 1.063 0l2.605 2.605V3.748c0-.378.282-.692.648-.741z" } ] }, "sort-desc": { viewBox: "0 0 16 16", paths: [ { transform: "rotate(180, 8, 8)", d: "M7.478 3c.414 0 .749.335.749.748l-.001 6.937 2.61-2.609c.266-.266.683-.29.977-.073l.084.073.073.084c.218.294.194.711-.073.978L8.185 12.85c-.39.39-1.023.39-1.414 0l-3.71-3.71c-.294-.294-.294-.77 0-1.063.293-.294.77-.294 1.063 0l2.605 2.605V3.748c0-.378.282-.692.648-.741z" } ] }, "sort-list-asc": { paths: [ { d: "M10 11h6V9h-6v2zm0-4h4V5h-4v2zm0 8h8v-2h-8v2zm-4-2h2l-3 3-3-3h2V4h2v9z" } ] }, "sort-list-desc": { paths: [ { d: "M10 9h6v2h-6V9zm0 4h4v2h-4v-2zm0-8h8v2h-8V5zM6 7h2L5 4 2 7h2v9h2V7z" } ] }, star: { viewBox: "0 0 26 26", paths: [ { d: "M13 5L15.472 10.047 21 10.861 17 14.787 17.944 20.333 13 17.713 8.056 20.333 9 14.787 5 10.861 10.528 10.047z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.536 } ] }, "status-error": { paths: [ { d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z" }, { d: "M14 11H6c-.552 0-1-.448-1-1s.448-1 1-1h8c.552 0 1 .448 1 1s-.448 1-1 1z", fill: "#FFF" } ] }, "status-info": { paths: [ { d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z" }, { d: "M10 15c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1s1 .448 1 1v4c0 .552-.448 1-1 1zM10 7c-.552 0-1-.448-1-1s.448-1 1-1 1 .448 1 1-.448 1-1 1z", fill: "#FFF" } ] }, "status-not-ok": { paths: [ { d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z" }, { d: "M11.414 10l2.293-2.293c.391-.391.391-1.023 0-1.414-.39-.391-1.023-.391-1.414 0L10 8.586 7.707 6.293c-.39-.391-1.023-.391-1.414 0-.39.391-.39 1.023 0 1.414L8.586 10l-2.293 2.293c-.39.391-.39 1.023 0 1.414.195.195.451.293.707.293.256 0 .512-.098.707-.293L10 11.414l2.293 2.293c.195.195.451.293.707.293.256 0 .512-.098.707-.293.391-.391.391-1.023 0-1.414L11.414 10z", fill: "#FFF" } ] }, "status-ok": { paths: [ { d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z" }, { d: "M8.333 11.252l4.96-4.96c.39-.39 1.024-.39 1.414 0 .39.391.39 1.025 0 1.415L9.04 13.374c-.39.39-1.023.39-1.414 0L5.293 11.04c-.39-.39-.39-1.023 0-1.414.39-.39 1.024-.39 1.414 0l1.626 1.626z", fill: "#FFF" } ] }, "status-warning": { paths: [ { d: "M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0z" }, { d: "M10 5c-.552 0-1 .448-1 1v4c0 .552.448 1 1 1s1-.448 1-1V6c0-.552-.448-1-1-1zM10 13c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1z", fill: "#FFF" } ] }, "three-circles": { viewBox: "0 0 14 13", paths: [ { d: "M7 6C8.65685 6 10 4.65685 10 3C10 1.34315 8.65685 0 7 0C5.34315 0 4 1.34315 4 3C4 4.65685 5.34315 6 7 6ZM6 9.5C6 11.1569 4.65685 12.5 3 12.5C1.34315 12.5 0 11.1569 0 9.5C0 7.84315 1.34315 6.5 3 6.5C4.65685 6.5 6 7.84315 6 9.5ZM14 9.5C14 11.1569 12.6569 12.5 11 12.5C9.34315 12.5 8 11.1569 8 9.5C8 7.84315 9.34315 6.5 11 6.5C12.6569 6.5 14 7.84315 14 9.5Z" } ] }, "ticket-revert": { paths: [ { d: "M18.498 4c.552 0 1 .448 1 1v2.626l-.63.424c-.535.36-.856.963-.856 1.608 0 .645.321 1.248.857 1.608l.63.424v2.803c0 .552-.449 1-1 1H3c-.552 0-1-.448-1-1V5c0-.552.448-1 1-1h15.498zm-4.123 5.8c-.345 0-.625.269-.625.6v.6c0 .33-.28.6-.625.6H7.134l.495-.476c.244-.234.244-.614 0-.848-.244-.235-.64-.235-.883 0l-1.563 1.5c-.244.234-.244.614 0 .848l1.563 1.5c.122.117.281.176.441.176.16 0 .32-.059.442-.176.244-.234.244-.614 0-.848l-.495-.476h5.991C14.159 12.8 15 11.993 15 11v-.6c0-.331-.28-.6-.625-.6zm-1.12-4.324c-.245-.235-.64-.235-.884 0-.244.234-.244.614 0 .848l.495.476H6.875C5.841 6.8 5 7.607 5 8.6v.6c0 .331.28.6.625.6s.625-.269.625-.6v-.6c0-.331.28-.6.625-.6h5.991l-.495.476c-.244.234-.244.614 0 .848.122.117.281.176.441.176.16 0 .32-.059.442-.176l1.563-1.5c.244-.234.244-.614 0-.848z" } ] }, ticket: { paths: [ { d: "M14 4v2h1V4h3.498c.552 0 1 .448 1 1v2.626l-.63.424c-.535.36-.856.963-.856 1.608 0 .645.321 1.248.857 1.608l.63.424v2.803c0 .552-.449 1-1 1H3c-.552 0-1-.448-1-1V5c0-.552.448-1 1-1h11zm1 9h-1v2h1v-2zm-3.318-7.182c-.24-.24-.557-.25-.802-.006l-1.59 1.59-4.812-.037-.795.795 4.015.834-1.392 1.392-1.604-.013-.596.597 1.957.466.467 1.958.597-.596-.013-1.604 1.392-1.392.834 4.015.795-.795-.038-4.811 1.591-1.591c.245-.245.235-.561-.006-.802zM15 10h-1v2h1v-2zm0-3h-1v2h1V7z" } ] }, time: { viewBox: "0 0 20 20", paths: [ { d: "M0 10C0 4.477 4.477 0 10 0A10 10 0 1 1 0 10Zm10.714-5H8.571v6.288l4.763 3.175 1.189-1.783-3.809-2.54V5Z" } ] }, "trash-can": { paths: [ { d: "M16 6v10c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2V6h12zM8 8c-.552 0-1 .448-1 1v6c0 .552.448 1 1 1s1-.448 1-1V9c0-.552-.448-1-1-1zm4 0c-.552 0-1 .448-1 1v6c0 .552.448 1 1 1s1-.448 1-1V9c0-.552-.448-1-1-1zm0-6l1 1h3c.552 0 1 .448 1 1s-.448 1-1 1H4c-.552 0-1-.448-1-1s.448-1 1-1h3l1-1h4z" } ] }, upgrade: { viewBox: "0 0 24 24", paths: [ { d: "M14.4 19.2v2.4H9.6v-2.4h4.8zm0-7.2v4.8H9.6V12h4.8zM12 2.37l8 9.6H4l8-9.6z" } ] }, user: { paths: [ { d: "M3 15.834c0-2.334 4.667-3.617 7-3.617 2.334 0 7 1.283 7 3.617V17H3v-1.166zM13.5 6.5c0 1.937-1.563 3.5-3.5 3.5-1.936 0-3.5-1.563-3.5-3.5S8.064 3 10 3c1.937 0 3.5 1.563 3.5 3.5z" } ] }, "user-group": { viewBox: "0 0 20 20", paths: [ { d: "M14 11.9003C16.0001 11.9003 19 13 19 15.0001V16H13V15.0001L12.9943 14.7788C12.9428 13.79 12.5472 12.9334 11.9235 12.2261C12.6305 12.0109 13.3655 11.9003 14 11.9003ZM6 11.9003C8.00014 11.9003 11 13 11 15.0001V16H1V15.0001C1 13 3.99986 11.9003 6 11.9003ZM14 4C15.6599 4 17 5.34014 17 7C17 8.66029 15.6599 10 14 10C12.3401 10 11 8.66029 11 7C11 5.34014 12.3401 4 14 4ZM6 4C7.65986 4 9 5.34014 9 7C9 8.66029 7.65986 10 6 10C4.34014 10 3 8.66029 3 7C3 5.34014 4.34014 4 6 4Z" } ] }, voucher: { viewBox: "0 0 24 24", paths: [ { d: "M18.882 4.8c1.516 0 2.744 1.229 2.744 2.744v1.052C20.214 9.082 19.2 10.423 19.2 12s1.014 2.918 2.426 3.404v1.057c0 1.516-1.228 2.744-2.744 2.744H5.144c-1.46 0-2.653-1.139-2.739-2.576L2.4 16.46V7.544c0-1.46 1.14-2.653 2.577-2.739l.167-.005h13.738z" } ], circles: [ { cx: 13.2, cy: 8.4, r: 1.2, fill: "#FFF" }, { cx: 13.2, cy: 12, r: 1.2, fill: "#FFF" }, { cx: 13.2, cy: 15.6, r: 1.2, fill: "#FFF" } ] }, upload: { viewBox: "0 0 20 20", paths: [ { d: "M9.29313 2.29326L6.29313 5.29326C5.90212 5.68426 5.90212 6.31626 6.29313 6.70726C6.68412 7.09826 7.31612 7.09826 7.70713 6.70726L9.00012 5.41426V13.0003C9.00012 13.5533 9.44812 14.0003 10.0001 14.0003C10.5521 14.0003 11.0001 13.5533 11.0001 13.0003V5.41426L12.2931 6.70726C12.6841 7.09826 13.3161 7.09826 13.7071 6.70726C13.9021 6.51226 14.0001 6.25626 14.0001 6.00026C14.0001 5.74426 13.9021 5.48826 13.7071 5.29326L10.7071 2.29326C10.3161 1.90226 9.68412 1.90226 9.29313 2.29326ZM18 14C17.4477 14 17 14.4477 17 15V15C17 15.5129 16.614 15.9356 16.1166 15.9933L16 16H4C3.48716 16 3.06449 15.614 3.00673 15.1167L3 15V15C3 14.4477 2.55228 14 2 14C1.44772 14 1 14.4477 1 15V15C1 16.5977 2.24892 17.9037 3.82373 17.995L4 18H16C17.5977 18 18.9037 16.7511 18.9949 15.1763L18.9983 15.0587C18.9994 15.0393 19 15.0197 19 15C19 14.4477 18.5523 14 18 14Z" } ] } }); function _define_property$10(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$_(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$10(target, key, source[key]); }); } return target; } function ownKeys$R(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$R(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$R(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var IconBoilerplate = function(param) { var type = param.type; var _icon_paths, _icon_rects, _icon_circles; var theme = React.useContext(ThemeContext).theme; var icons = React.useMemo(function() { return _object_spread$_({}, iconsList, theme.icons); }, []); var icon = icons[type]; var _icon_viewBox; return /* @__PURE__ */ jsxs("svg", { width: "100%", height: "100%", viewBox: (_icon_viewBox = icon.viewBox) !== null && _icon_viewBox !== void 0 ? _icon_viewBox : "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [ (_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) { var _path_fill, _path_stroke; return jsx("path", _object_spread$_({ fillRule: "evenodd", clipRule: "evenodd", fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor", stroke: (_path_stroke = path.stroke) !== null && _path_stroke !== void 0 ? _path_stroke : "none" }, path), index); }), (_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) { return /* @__PURE__ */ React.createElement("rect", _object_spread_props$R(_object_spread$_({}, rect), { key: index })); }), (_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) { return /* @__PURE__ */ React.createElement("circle", _object_spread_props$R(_object_spread$_({}, circle), { key: index })); }) ] }); }; var useStyles$V = createThemedStyles("Icon", { root: { display: "flex", alignItems: "center" } }); function _define_property$$(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$Z(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$$(target, key, source[key]); }); } return target; } function ownKeys$Q(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$Q(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$Q(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Icon = function(param) { var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles; var classes = useStyles$V({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread$Z({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, { type }) : /* @__PURE__ */ jsx(IconBoilerplate, { type }) })); }; var renderIcon = function(icon) { return typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { type: icon }) : icon; }; var DEFAULT_OFFSET = 6; var useStyles$U = createThemedStyles("WithPopup", { trigger: { width: "fit-content", cursor: "pointer" }, active: {}, disabled: { cursor: "default" }, popup: { zIndex: 5, outline: "none" }, animationEnd: {}, animationStart: {}, "dropdown-initial": { extend: "animationEnd" }, "dropdown-open": { extend: "animationStart" }, "dropdown-close": { visibility: "hidden", extend: "animationEnd" }, "dropdown-unmounted": { extend: "animationEnd" } }); function _array_like_to_array$n(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$n(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$7(arr) { if (Array.isArray(arr)) return _array_like_to_array$n(arr); } function _define_property$_(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$7(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$n(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$n() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$7() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$Y(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$_(target, key, source[key]); }); } return target; } function ownKeys$P(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$P(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$P(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$n(arr, i) { return _array_with_holes$n(arr) || _iterable_to_array_limit$n(arr, i) || _unsupported_iterable_to_array$n(arr, i) || _non_iterable_rest$n(); } function _to_consumable_array$7(arr) { return _array_without_holes$7(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$7(); } function _unsupported_iterable_to_array$n(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$n(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen); } var WithPopup = function(param) { var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? true : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle; var classes = useStyles$U({ theme: tweakStyles }); var _useState = _sliced_to_array$n(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1]; var handleToggle = function(isActive, event) { event === null || event === void 0 ? void 0 : event.stopPropagation(); if (!isDisabled) { onToggle === null || onToggle === void 0 ? void 0 : onToggle(isActive, event); setIsOpen(isActive); } }; var handleClose = function(event) { handleToggle(false, event); }; var _useFloating = react.useFloating({ open: isOpen, middleware: [ react.offset(popupOffset), canBeFlipped && react.flip({ fallbackAxisSideDirection: "start" }) ].concat(_to_consumable_array$7(middlewares)), whileElementsMounted: react.autoUpdate, placement, onOpenChange: handleToggle }), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context; var hover = react.useHover(context, { enabled: eventType === "hover", delay: typeof hoverDelay === "number" ? { open: hoverDelay, close: 0 } : hoverDelay, handleClose: react.safePolygon() }); var focus = react.useFocus(context, { enabled: eventType === "hover" }); var click = react.useClick(context, { enabled: eventType === "click" }); var dismiss = react.useDismiss(context, { enabled: eventType === "click", ancestorScroll: shouldHideOnScroll }); var _useInteractions = react.useInteractions([ hover, click, focus, dismiss ]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps; var _useTransitionStatus = react.useTransitionStatus(context, { duration: { close: 500 } }), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status; var referenceProps = getReferenceProps(_object_spread$Y({ ref: refs.setReference }, shouldStopPropagation && { onClick: trueReactPlatformHelpers.stopPropagation })); var triggerElement = trueReactPlatformHelpers.applyAction(trigger, { referenceProps: !isTriggerWrapped ? referenceProps : void 0, triggerProps: _object_spread$Y({ isActive: isOpen, isDisabled }, !isTriggerWrapped && _object_spread$Y({ data, testId }, referenceProps)) }); var _obj2; return /* @__PURE__ */ jsxs(Fragment, { children: [ isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({ className: clsx(classes.trigger, (_obj2 = {}, _define_property$_(_obj2, classes.disabled, isDisabled), _define_property$_(_obj2, classes.active, isOpen), _obj2)) }, referenceProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: triggerElement })) : triggerElement, isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, { root: !shouldRenderInBody ? refs.reference.current : void 0, children: /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({ style: floatingStyles, className: classes.popup, ref: refs.setFloating }, getFloatingProps()), { children: /* @__PURE__ */ jsx("div", { className: classes["dropdown-".concat(status)], children: trueReactPlatformHelpers.applyAction(children, { onClose: handleClose }) }) })) }) ] }); }; var ITEM_HORIZONTAL_PADDING = 16; var ICON_SIZE$1 = 20; var ICON_GAP = 12; var useStyles$T = createThemedStyles("ListItem", { root: { display: "flex", alignItems: "center", gap: ICON_GAP, boxSizing: "border-box", fontSize: 16, whiteSpace: "nowrap", minHeight: 40, padding: [ 0, ITEM_HORIZONTAL_PADDING ], transition: animations.defaultTransition, transitionProperty: "background-color", cursor: "pointer" }, default: {}, destructive: {}, focused: {}, disabledItem: { cursor: "default" }, spacer: { height: 1, backgroundColor: colors.BORDER_LIGHT }, withIconGap: { paddingLeft: ITEM_HORIZONTAL_PADDING + ICON_SIZE$1 + ICON_GAP }, icon: { width: ICON_SIZE$1, height: ICON_SIZE$1, flexShrink: 0 }, content: { flexGrow: 1 } }); function _define_property$Z(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$X(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$Z(target, key, source[key]); }); } return target; } function ownKeys$O(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$O(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$O(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var ListItem = function(param) { var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick; var classes = useStyles$T({ theme: tweakStyles }); var _obj2; return /* @__PURE__ */ jsxs(Fragment, { children: [ shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", { className: classes.spacer }), /* @__PURE__ */ jsxs("div", _object_spread_props$O(_object_spread$X({ className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$Z(_obj2, classes.disabledItem, isDisabled), _define_property$Z(_obj2, classes.withIconGap, withIconGap), _define_property$Z(_obj2, classes.focused, isFocused), _obj2)) }, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$O(_object_spread$X({}, data), { disabled: isDisabled ? true : void 0 }))), { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(icon) && /* @__PURE__ */ jsx("span", { className: classes.icon, children: renderIcon(icon) }), /* @__PURE__ */ jsx("span", { className: classes.content, children: item }), trueReactPlatformHelpers.isArrayNotEmpty(nestedItems) && /* @__PURE__ */ jsx("span", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "chevron-right" }) }) ] })), shouldDrawSpacerBelow && /* @__PURE__ */ jsx("div", { className: classes.spacer }) ] }); }; var useStyles$S = createThemedStyles("List", { root: { minWidth: 180, backgroundColor: colors.CLASSIC_WHITE, padding: [ 8, 0 ], listStyle: "none", margin: 0 }, nestedItems: { marginTop: -8, paddingLeft: 4 } }); var withPopupStyles = { trigger: { width: "100%" } }; function _define_property$Y(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$W(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$Y(target, key, source[key]); }); } return target; } function ownKeys$N(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$N(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$N(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var List = function(param) { var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick; var classes = useStyles$S({ theme: tweakStyles }); var handleItemClick = function(event, param2) { var itemOnClick = param2.onClick; if (trueReactPlatformHelpers.isNotEmpty(itemOnClick)) { itemOnClick(event); onClick === null || onClick === void 0 ? void 0 : onClick(event); } }; return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$W({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: items.map(function(item, i) { var itemProps = _object_spread_props$N(_object_spread$W({ testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i)) }, item), { shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0, shouldDrawSpacerBelow: item.shouldDrawSpacerBelow && i !== items.length - 1, onClick: function(event) { return handleItemClick(event, item); } }); return /* @__PURE__ */ jsx(React.Fragment, { children: trueReactPlatformHelpers.isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, { eventType: "hover", tweakStyles: withPopupStyles, placement: "right-start", popupOffset: 0, shouldRenderInBody: false, trigger: function(param2) { var triggerProps = param2.triggerProps; return /* @__PURE__ */ jsx(ListItem, _object_spread_props$N(_object_spread$W({}, itemProps), { isFocused: triggerProps.isActive })); }, children: /* @__PURE__ */ jsx("div", { className: classes.nestedItems, children: /* @__PURE__ */ jsx(List, { items: item.nestedItems, onClick }) }) }) : /* @__PURE__ */ jsx(ListItem, _object_spread$W({}, itemProps)) }, i); }) })); }; var ANIMATION_TIMEOUT = 150; function _define_property$X(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$V(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$X(target, key, source[key]); }); } return target; } var useStyles$R = createThemedStyles("AccountInfo", _object_spread$V({ root: { display: "flex" }, account: { display: "flex", position: "relative", alignItems: "center", cursor: "pointer" }, accountName: { margin: [ 0, 2, 0, 10 ], fontSize: 14, transition: animations.defaultTransition, transitionProperty: "color" }, accountNameOpened: {}, accountChevron: { width: 16, height: 16, transition: animations.defaultTransition, transitionProperty: "transform, color" }, accountChevronOpened: { transform: "rotate(180deg)" }, accountMenu: { position: "absolute", zIndex: 90, top: "100%", right: 0, marginTop: 8 }, avatarIcon: { width: 32, height: 32 } }, animations.slideUp)); function _array_like_to_array$m(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$m(arr) { if (Array.isArray(arr)) return arr; } function _define_property$W(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$m(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$m() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$U(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$W(target, key, source[key]); }); } return target; } function ownKeys$M(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$M(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$M(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$m(arr, i) { return _array_with_holes$m(arr) || _iterable_to_array_limit$m(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$m(); } function _unsupported_iterable_to_array$m(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$m(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen); } var AccountInfo = function(param) { var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options; var classes = useStyles$R({ theme: tweakStyles }); var tweakListStyles = useTweakStyles({ tweakStyles, className: "tweakList", currentComponentName: "AccountInfo" }); var nameRef = React.useRef(null); var dropdownRef = React.useRef(null); var _useState = _sliced_to_array$m(React.useState(false), 2), isMenuOpen = _useState[0], setIsMenuOpen = _useState[1]; var toggleMenu = function(event) { event.stopPropagation(); setIsMenuOpen(function(v) { return !v; }); }; useOnClickOutsideWithRef(dropdownRef, function() { return setIsMenuOpen(false); }, nameRef); return /* @__PURE__ */ jsxs("div", _object_spread_props$M(_object_spread$U({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ avatar !== null && avatar !== void 0 ? avatar : /* @__PURE__ */ jsx("div", { className: classes.avatarIcon, children: /* @__PURE__ */ jsx(Icon, { type: "avatar" }) }), /* @__PURE__ */ jsxs("div", { ref: nameRef, className: classes.account, onClick: toggleMenu, children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.accountName, isMenuOpen && classes.accountNameOpened), children: accountName }), /* @__PURE__ */ jsx("div", { className: clsx(classes.accountChevron, isMenuOpen && classes.accountChevronOpened), children: /* @__PURE__ */ jsx(Icon, { type: "chevron-down-small" }) }), /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, { in: isMenuOpen, timeout: ANIMATION_TIMEOUT, unmountOnExit: true, classNames: { enter: classes["slide-up-enter"], enterActive: classes["slide-up-enter-active"], exit: classes["slide-up-exit"], exitActive: classes["slide-up-exit-active"] }, children: /* @__PURE__ */ jsx("div", { ref: dropdownRef, className: classes.accountMenu, onClick: toggleMenu, children: /* @__PURE__ */ jsx(List, { items: options, tweakStyles: tweakListStyles }) }) }) ] }) ] })); }; var useStyles$Q = createThemedStyles("AddButton", { root: { display: "flex", alignItems: "center", padding: "0px 16px", height: 52, cursor: "pointer", outline: "none", transition: "border-color 0.1s ease-in, background-color 0.1s ease-in", fontSize: 14, "&:hover": { transition: "border-color 0.1s ease-in, background-color 0.1s ease-in" } }, disabled: { cursor: "default" }, icon: { width: 20, display: "inline-block", marginRight: 8 }, fullWidth: { width: "100%" } }); function _define_property$V(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$T(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$V(target, key, source[key]); }); } return target; } function ownKeys$L(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$L(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$L(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var AddButton = function(param) { var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles; var classes = useStyles$Q({ theme: tweakStyles }); return /* @__PURE__ */ jsxs("button", _object_spread_props$L(_object_spread$T({ type, className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth), onClick: !isDisabled ? onClick : void 0, disabled: isDisabled }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "plus" }) }), /* @__PURE__ */ jsx("div", { children: text }) ] })); }; var useStyles$P = createThemedStyles("DotsPreloader", { root: { display: "flex", gap: 4, "--dot-size": "8px", "&::before, &::after": { content: '""', extend: "fadedDot" }, "&::before": { animationDelay: "0" }, "&::after": { animationDelay: "360ms" } }, /* ----------- 3 DOTS ---------- */ "@keyframes FadedDots": { "0%": { opacity: 0.2 }, "30%": { opacity: 1 }, "100%": { opacity: 0.2 } }, // используется в .dot и в before и after элементах root fadedDot: { display: "block", animationDuration: 750, animationIterationCount: "infinite", animationName: "$FadedDots", borderRadius: "50%", width: "var(--dot-size)", height: "var(--dot-size)", backgroundColor: "currentColor" }, dot: { extend: "fadedDot", animationDelay: "180ms" } }); var DotsPreloader = function(param) { var tweakStyles = param.tweakStyles; var classes = useStyles$P({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", { className: classes.root, children: /* @__PURE__ */ jsx("span", { className: classes.dot }) }); }; var DefaultPreloader = function() { return /* @__PURE__ */ jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", children: [ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { x1: "8.042%", y1: "0%", x2: "65.682%", y2: "23.865%", id: "a", children: [ /* @__PURE__ */ jsx("stop", { stopColor: "currentColor", stopOpacity: "0", offset: "0%" }), /* @__PURE__ */ jsx("stop", { stopColor: "currentColor", stopOpacity: ".631", offset: "63.146%" }), /* @__PURE__ */ jsx("stop", { stopColor: "currentColor", offset: "100%" }) ] }) }), /* @__PURE__ */ jsx("g", { transform: "translate(2,2)", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M36 18c0-9.94-8.06-18-18-18", stroke: "url(#a)", strokeWidth: "3", children: /* @__PURE__ */ jsx("animateTransform", { xmlns: "http://www.w3.org/2000/svg", attributeName: "transform", attributeType: "XML", type: "rotate", from: "0 18 18", to: "360 18 18", dur: "1s", begin: "0s", repeatCount: "indefinite", fill: "freeze" }) }) }) ] }); }; var useStyles$O = createThemedStyles("SvgPreloader", { root: { display: "flex", width: "100%", height: "100%" } }); var SvgPreloader = function(param) { var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles; var _theme_preloaders; var classes = useStyles$O({ theme: tweakStyles }); var theme = React.useContext(ThemeContext).theme; var _theme_preloaders_type; var PreloaderIcon = (_theme_preloaders_type = (_theme_preloaders = theme.preloaders) === null || _theme_preloaders === void 0 ? void 0 : _theme_preloaders[type]) !== null && _theme_preloaders_type !== void 0 ? _theme_preloaders_type : DefaultPreloader; var isInlineSvg = typeof PreloaderIcon === "string"; return isInlineSvg ? /* @__PURE__ */ jsx("div", { className: classes.root, dangerouslySetInnerHTML: { __html: PreloaderIcon } }) : /* @__PURE__ */ jsx(PreloaderIcon, {}); }; var useStyles$N = createThemedStyles("ThemedPreloader", { root: { display: "flex" }, dots: {}, default: {}, logo: {}, currentColor: { color: "currentColor" } }); function _define_property$U(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$S(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$U(target, key, source[key]); }); } return target; } function ownKeys$K(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$K(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$K(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var ThemedPreloader = function(param) { var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles; var classes = useStyles$N({ theme: tweakStyles }); var tweakDotsPreloaderStyles = useTweakStyles({ tweakStyles, className: "tweakDotsPreloader", currentComponentName: "ThemedPreloader" }); var tweakSvgPreloaderStyles = useTweakStyles({ tweakStyles, className: "tweakSvgPreloader", currentComponentName: "ThemedPreloader" }); return /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$S({ className: clsx(classes.root, classes[type], _define_property$U({}, classes.currentColor, useCurrentColor)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, { tweakStyles: tweakDotsPreloaderStyles }) : /* @__PURE__ */ jsx(SvgPreloader, { type, tweakStyles: tweakSvgPreloaderStyles }) })); }; var useStyles$M = createThemedStyles("Button", { root: { display: "flex", justifyContent: "center", alignItems: "center", cursor: "pointer", outline: "none", boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "background-color, color, box-shadow, border-color", maxWidth: "100%", border: [ 1, "solid", "transparent" ], position: "relative", boxShadow: "none", "&[disabled]": { cursor: "default", pointerEvents: "none" } }, primary: {}, secondary: {}, outline: {}, warning: {}, destructive: {}, text: {}, custom: {}, children: {}, icon: { width: 20, height: 20, flexShrink: 0 }, iconFromLeft: { flexDirection: "row", gap: 6, "& $icon": { marginLeft: -4 } }, iconFromRight: { flexDirection: "row-reverse", gap: 6, "& $icon": { marginRight: -4 } }, onlyIcon: {}, withIcon: {}, s: { padding: [ 0, 12 ], height: 32, fontSize: 14, letterSpacing: 0.15, "&$onlyIcon": { padding: 0, width: 32 }, "& $icon": { width: 16, height: 16 }, "& $iconFromLeft": { gap: 4 }, "& $iconFromRight": { gap: 4 } }, m: { padding: [ 0, 12 ], height: 42, fontSize: 16, "& $iconFromLeft": { gap: 6 }, "& $iconFromRight": { gap: 6 }, "&$onlyIcon": { padding: 0, width: 42 } }, l: { padding: [ 0, 16 ], height: 48, fontSize: 16, "& $iconFromLeft": { gap: 6 }, "& $iconFromRight": { gap: 6 }, "&$onlyIcon": { padding: 0, width: 48 } }, xl: { padding: [ 0, 20 ], height: 56, fontSize: 16, "&$onlyIcon": { padding: 0, width: 56 }, "& $iconFromLeft": { gap: 8 }, "& $iconFromRight": { gap: 8 } }, fullWidth: { minWidth: "auto", width: "100%" }, inline: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 }, active: {}, content: { display: "flex", alignItems: "center", height: "100%" }, loader: { display: "none", position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }, loading: { "& $content": { visibility: "hidden" }, "& $loader": { display: "block" } }, disabled: {} }); var dotsPreloaderStyles = { tweakDotsPreloader: { fadedDot: { width: 6, height: 6 } } }; var getPreloaderStyles = function(size) { return size === "s" || size === "m" ? dotsPreloaderStyles : void 0; }; function _define_property$T(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$R(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$T(target, key, source[key]); }); } return target; } function ownKeys$J(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$J(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$J(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$g(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$g(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; } var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$g(_param, [ "type", "children", "size", "view", "isFullWidth", "isInline", "isDisabled", "isActive", "isLoading", "shouldSkipTabNavigation", "data", "testId", "tweakStyles", "icon", "iconPosition", "preloaderType" ]); var classes = useStyles$M({ theme: tweakStyles }); var tweakPreloaderStyles = useTweakStyles({ innerStyles: getPreloaderStyles(size), tweakStyles, className: "tweakPreloader", currentComponentName: "Button" }); var hasIcon = trueReactPlatformHelpers.isReactNodeNotEmpty(icon); var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children); var hasNoAction = isDisabled || isLoading; var _obj2, _obj1; return /* @__PURE__ */ jsxs("button", _object_spread_props$J(_object_spread$R({ ref, type, className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.fullWidth, isFullWidth), _define_property$T(_obj2, classes.inline, isInline), _define_property$T(_obj2, classes.active, isActive), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)), tabIndex: shouldSkipTabNavigation ? -1 : void 0, disabled: hasNoAction }, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("span", { className: clsx(classes.content, (_obj1 = {}, _define_property$T(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$T(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)), children: [ hasIcon && /* @__PURE__ */ jsx("span", { className: classes.icon, children: trueReactPlatformHelpers.isReactNodeNotEmpty(icon) && renderIcon(icon) }), hasChildren && /* @__PURE__ */ jsx("span", { className: clsx(classes.children, hasIcon && classes.withIcon), children }) ] }), isLoading && /* @__PURE__ */ jsx("span", { className: classes.loader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: preloaderType, useCurrentColor: true, tweakStyles: tweakPreloaderStyles }) }) ] })); }); var useStyles$L = createThemedStyles("Checkbox", { root: { cursor: "pointer", display: "flex", alignItems: "center", gap: 14, width: "fit-content" }, checked: {}, invalid: {}, disabled: { cursor: "default", pointerEvents: "none" }, input: { width: 1, height: 1, position: "absolute", opacity: 0 }, children: { display: "flex", alignItems: "center" }, check: { width: 18, height: 18, borderRadius: 2, flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", boxSizing: "border-box" }, labelPositionLeft: { flexDirection: "row-reverse" } }); function _define_property$S(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$Q(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$S(target, key, source[key]); }); } return target; } function ownKeys$I(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$I(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$I(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function Checkbox(param) { var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect; var classes = useStyles$L({ theme: tweakStyles }); var hasAction = !isDisabled && !isReadonly; var isSelected = isChecked || isSemiChecked; var onToggle = function(event) { return onSelect === null || onSelect === void 0 ? void 0 : onSelect({ value, isSelected: !isSelected }, event); }; var _obj2; return /* @__PURE__ */ jsxs("label", _object_spread_props$I(_object_spread$Q({ className: clsx(classes.root, (_obj2 = {}, _define_property$S(_obj2, classes.checked, isSelected), _define_property$S(_obj2, classes.invalid, isInvalid), _define_property$S(_obj2, classes.disabled, isDisabled), _define_property$S(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("input", _object_spread$Q({ className: classes.input, type: "checkbox", checked: isSelected, disabled: isDisabled, readOnly: isReadonly }, hasAction && { onChange: onToggle, onKeyDown: trueReactPlatformHelpers.getSelectKeyHandler(onToggle) })), /* @__PURE__ */ jsx("div", { className: classes.check, children: isSelected && /* @__PURE__ */ jsx(Icon, { type: isSemiChecked ? "minus" : "check" }) }), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", { className: classes.children, children }) ] })); } var useStyles$K = createThemedStyles("CloseButton", { root: { width: 40, height: 40, maxWidth: "100%", maxHeight: "100%", padding: 5, color: colors.FONT_MEDIUM, border: 0, borderRadius: "50%", appearance: "none", backgroundColor: "transparent", cursor: "pointer", transition: animations.defaultTransition, transitionProperty: "background-color", "&:hover": { backgroundColor: rgba(colors.BORDER_MAIN, 0.5) }, "&:focus": { backgroundColor: colors.GREY_FOCUS }, "&:active": { backgroundColor: rgba(colors.FONT_DISABLED, 0.5) } } }); function _define_property$R(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$P(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$R(target, key, source[key]); }); } return target; } function ownKeys$H(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$H(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$H(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var CloseButton = function(param) { var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_iconType = param.iconType, iconType = _param_iconType === void 0 ? "close" : _param_iconType, onClose = param.onClose; var classes = useStyles$K({ theme: tweakStyles }); return /* @__PURE__ */ jsx("button", _object_spread_props$H(_object_spread$P({ type: "button", className: classes.root, onClick: onClose }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: /* @__PURE__ */ jsx(Icon, { type: iconType }) })); }; var useStyles$J = createThemedStyles({ root: { display: "flex", flexWrap: "wrap" }, colorCard: { width: 120, border: "solid 1px #dde3ed", borderRadius: 8, color: "#222a37", fontSize: 14, margin: 6 }, color: { height: 120, borderTopLeftRadius: 8, borderTopRightRadius: 8 }, colorName: { marginBottom: 6, padding: 6, overflow: "hidden" }, hex: { marginTop: 6, textTransform: "uppercase", fontWeight: "bold", padding: [ 0, 6, 6 ] } }); function _array_like_to_array$l(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$l(arr) { if (Array.isArray(arr)) return arr; } function _iterable_to_array_limit$l(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$l() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _sliced_to_array$l(arr, i) { return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$l(); } function _unsupported_iterable_to_array$l(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$l(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen); } var Colors = function() { var classes = useStyles$J(); var theme = React.useContext(ThemeContext).theme; var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors; return /* @__PURE__ */ jsx("div", { className: classes.root, children: Object.entries(colors2).map(function(param) { var _param = _sliced_to_array$l(param, 2), colorName = _param[0], color = _param[1]; var name = colorName.split("_").join(" ").toLowerCase(); return /* @__PURE__ */ jsxs("div", { className: classes.colorCard, children: [ /* @__PURE__ */ jsx("div", { className: classes.color, style: { backgroundColor: color } }), /* @__PURE__ */ jsx("div", { className: classes.colorName, children: "".concat(name[0].toUpperCase()).concat(name.slice(1)) }), /* @__PURE__ */ jsx("div", { className: classes.hex, children: color }) ] }, colorName); }) }); }; var useStyles$I = createThemedStyles("CssBaseline", { "@global html, body": { fontFamily: "Arial, sans-serif", color: colors.FONT_MAIN, padding: 0, margin: 0 }, root: {} }); function _define_property$Q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$O(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$Q(target, key, source[key]); }); } return target; } var CssBaseline = function(param) { var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles; var classes = useStyles$I({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", _object_spread$O({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data))); }; var DEFAULT_SIZE = 6; var PADDING_X$1 = 12; var AUTOSIZE_MAX_WIDTH = 480; var useStyles$H = createThemedStyles("Input", { root: { width: "100%", boxSizing: "border-box", position: "relative" }, inputWrapper: { display: "flex", width: "100%", height: dimensions.CONTROL_HEIGHT, boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "border-color", backgroundColor: "white", position: "relative" }, inputContent: { fontSize: 16, fontFamily: "inherit", padding: [ 0, PADDING_X$1 ] }, input: { extend: "inputContent", width: "100%", height: "100%", outline: "none", boxSizing: "border-box", outlineStyle: "none", transition: animations.defaultTransition, transitionProperty: "background-color", border: "none", background: "none", "&::placeholder": { opacity: 1 }, MozAppearance: "textfield", "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": { WebkitAppearance: "none", margin: 0 } }, autosize: { display: "inline-grid", verticalAlign: "top", alignItems: "center", justifyContent: "start", "&::after, input": { width: "auto", minWidth: "1em", gridArea: "1 / 2", font: "inherit", justifySelf: "stretch" }, "&::after": { maxWidth: AUTOSIZE_MAX_WIDTH, content: 'attr(data-value) " "', visibility: "hidden", whiteSpace: "pre-wrap" } }, focused: { position: "relative", zIndex: 1 }, unitsWrapper: { extend: "inputContent", position: "absolute", left: 0, height: "100%", boxSizing: "border-box", display: "flex", alignItems: "center", pointerEvents: "none" }, fakeValue: { visibility: "hidden" }, units: { paddingLeft: 4 }, withFloatingLabel: { paddingTop: 18 }, floatingLabelWithoutPadding: { paddingTop: 18, paddingLeft: 0 }, floating: {}, activeLabel: { display: "none", "&$floating": { display: "block", transform: "scale(0.75) translateY(-120%)" } }, required: { "&:before": { content: '""', position: "absolute", left: -12, top: "50%", transform: "translate(0, -50%)", width: 6, height: 6, borderRadius: "50%" } }, label: { position: "absolute", pointerEvents: "none", left: PADDING_X$1, top: "50%", transformOrigin: "top left", transform: "translateY(-50%)", transition: animations.defaultTransition, transitionProperty: "transform, color", fontSize: 16 }, floatingWithoutPadding: { left: 0 }, requiredLabel: { "&:after": { content: '""', position: "absolute", right: -8, top: 4, transform: "translate(0, -50%)", width: 6, height: 6, borderRadius: "50%" } }, activeIcon: { cursor: "pointer" }, "border-top": { borderRadius: 0, borderWidth: [ 1, 0, 0, 0 ] }, "border-bottom": { borderRadius: 0, borderWidth: [ 0, 0, 1, 0 ] }, "border-left": { borderRadius: 0, borderWidth: [ 0, 0, 0, 1 ] }, "border-right": { borderRadius: 0, borderWidth: [ 0, 1, 0, 0 ] }, top: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }, bottom: { borderTopLeftRadius: 0, borderTopRightRadius: 0 }, "top-left": { borderTopRightRadius: 0, borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }, "top-right": { borderTopLeftRadius: 0, borderBottomLeftRadius: 0, borderBottomRightRadius: 0 }, "bottom-left": { borderTopLeftRadius: 0, borderTopRightRadius: 0, borderBottomRightRadius: 0 }, "bottom-right": { borderTopLeftRadius: 0, borderTopRightRadius: 0, borderBottomLeftRadius: 0 }, left: { borderTopRightRadius: 0, borderBottomRightRadius: 0 }, right: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 }, middle: { borderRadius: 0 }, controls: { display: "flex", gridArea: "1 / 3" }, icon: { display: "flex", alignItems: "center", padding: [ 0, 4 ], width: 20, transition: animations.defaultTransition, transitionProperty: "color", boxSizing: "content-box", "&:last-child": { paddingRight: 8 }, "& + $units": { marginLeft: 4 } }, clearIcon: { extend: "icon" }, inputIcon: { extend: "icon" }, withIcons: { paddingRight: 4 }, withControls: {}, invalid: {}, disabled: {}, invalidLabel: {}, error: { fontSize: 12 }, info: { fontSize: 12, paddingTop: 4, paddingLeft: 13 }, "error-top": { position: "absolute", top: -18, left: -1, padding: [ 4, 8 ], zIndex: 1 }, "error-bottom": { paddingTop: 4, paddingLeft: 13 }, loading: {}, withUnits: {} }); function _array_like_to_array$k(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$k(arr) { if (Array.isArray(arr)) return arr; } function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _async_to_generator$4(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } function _define_property$P(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$k(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$k() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$N(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$P(target, key, source[key]); }); } return target; } function ownKeys$G(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$G(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$G(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$f(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$f(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 _sliced_to_array$k(arr, i) { return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$k(); } function _unsupported_iterable_to_array$k(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$k(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen); } function _ts_generator$4(thisArg, body) { var f, y, t, g, _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function(v) { return step([ n, v ]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [ op[0] & 2, t.value ]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [ 0 ]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [ 6, e ]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$f(_param, [ "value", "label", "placeholder", "type", "isDisabled", "isReadonly", "hasFloatingLabel", "isInvalid", "isActive", "isClearable", "infoMessage", "errorMessage", "errorPosition", "inlineStyle", "border", "isRequired", "isLoading", "isAutoSizeable", "defaultSize", "iconType", "hasRequiredLabel", "data", "tweakStyles", "shouldFocusOnMount", "units", "testId", "onChange", "onFocus", "onBlur", "onIconClick", "mask", "maskPlaceholder", "alwaysShowMask", "shouldAlwaysShowPlaceholder", "beforeMaskedStateChange" ]); var classes = useStyles$H({ theme: tweakStyles }); var tweakPreloaderStyles = useTweakStyles({ tweakStyles, className: "tweakPreloader", currentComponentName: "Input" }); var _useState = _sliced_to_array$k(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1]; var inputRef = React.useRef(null); var handleChange = function(event) { onChange(event.currentTarget.value, event); }; var handleFocus = function(event) { setFocused(true); onFocus === null || onFocus === void 0 ? void 0 : onFocus(event); }; var handleBlur = function(event) { setFocused(false); onBlur === null || onBlur === void 0 ? void 0 : onBlur(event); }; var handleOnInputClear = function() { var _ref = _async_to_generator$4(function(event) { var _input_current, input; return _ts_generator$4(this, function(_state) { switch (_state.label) { case 0: return [ 4, onChange("", event) ]; case 1: _state.sent(); input = ref !== null && ref !== void 0 ? ref : inputRef; (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus(); return [ 2 ]; } }); }); return function handleOnInputClear2(event) { return _ref.apply(this, arguments); }; }(); var hasFocus = isFocused || isActive; var hasClearIcon = isClearable && value.length > 0; var hasControls = hasClearIcon || iconType !== void 0 || isLoading; var hasValue = value !== void 0 && value !== ""; var hasUnits = units !== void 0 && units !== ""; var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label); var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder; var hasPlaceholder = (!hasLabel || isLabelActive) && trueReactPlatformHelpers.isStringNotEmpty(placeholder); var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits; var _obj2; var props = _object_spread_props$G(_object_spread$N({}, inputProps, trueReactPlatformHelpers.addDataTestId(testId)), { className: clsx(classes.input, (_obj2 = {}, _define_property$P(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _define_property$P(_obj2, classes.withIcons, hasControls), _define_property$P(_obj2, classes.withControls, hasControls), _define_property$P(_obj2, classes.withUnits, shouldShowUnits), _define_property$P(_obj2, classes.floatingLabelWithoutPadding, hasFloatingLabel && hasLabel && border === "bottom"), _obj2)), onFocus: handleFocus, onBlur: handleBlur, onChange: handleChange, value, type, disabled: isDisabled, placeholder: hasPlaceholder ? placeholder : void 0, autoFocus: shouldFocusOnMount, readOnly: isReadonly, size: isAutoSizeable ? defaultSize : void 0 }); var _obj1, _obj22; return /* @__PURE__ */ jsxs("div", { className: classes.root, children: [ /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({ className: clsx(classes.inputWrapper, (_obj1 = {}, _define_property$P(_obj1, classes.required, isRequired && !hasRequiredLabel), _define_property$P(_obj1, classes.invalid, isInvalid), _define_property$P(_obj1, classes.focused, hasFocus), _define_property$P(_obj1, classes.disabled, isDisabled), _define_property$P(_obj1, classes.autosize, isAutoSizeable), _obj1), inlineStyle !== void 0 && classes[inlineStyle], border !== void 0 && classes["border-".concat(border)]), "data-value": isAutoSizeable ? value : void 0 }, addDataAttributes(data)), { children: [ mask === void 0 ? /* @__PURE__ */ jsx("input", _object_spread$N({ ref: ref !== null && ref !== void 0 ? ref : inputRef }, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$N({ ref: ref !== null && ref !== void 0 ? ref : inputRef, mask, maskPlaceholder, alwaysShowMask, beforeMaskedStateChange }, props)), hasLabel && /* @__PURE__ */ jsx("span", { className: clsx(classes.label, (_obj22 = {}, _define_property$P(_obj22, classes.invalidLabel, isInvalid), _define_property$P(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$P(_obj22, classes.activeLabel, isLabelActive), _define_property$P(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях _define_property$P(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)), children: label }), shouldShowUnits && /* @__PURE__ */ jsxs("div", { className: clsx(classes.unitsWrapper, _define_property$P({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)), children: [ /* @__PURE__ */ jsx("span", { className: classes.fakeValue, children: value }), /* @__PURE__ */ jsx("span", { className: classes.units, children: units }) ] }), hasControls && /* @__PURE__ */ jsxs("div", { className: classes.controls, children: [ isLoading && /* @__PURE__ */ jsx("div", { className: clsx(classes.inputIcon, classes.loading), children: /* @__PURE__ */ jsx(ThemedPreloader, { tweakStyles: tweakPreloaderStyles }) }), !isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", { className: clsx(classes.clearIcon, classes.activeIcon), onMouseDown: function(event) { return event.preventDefault(); }, onClick: handleOnInputClear, children: /* @__PURE__ */ jsx(Icon, { type: "close" }) }), trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", { className: clsx(classes.inputIcon, _define_property$P({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)), onClick: !isDisabled ? onIconClick : void 0, children: renderIcon(iconType) }) ] }) ] })), trueReactPlatformHelpers.isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", { className: classes.info, children: infoMessage }), trueReactPlatformHelpers.isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", { className: clsx(classes.error, classes["error-".concat(errorPosition)]), children: errorMessage }) ] }); }); var EMPTY_DATE_INPUT_VALUE = "__.__.____"; var EMPTY_DATE_RANGE_INPUT_VALUE = "".concat(EMPTY_DATE_INPUT_VALUE, " - ").concat(EMPTY_DATE_INPUT_VALUE); var useStyles$G = createThemedStyles("DateInput", { root: { width: "100%", height: "100%", cursor: "pointer", position: "relative" } }); function _define_property$O(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$M(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$O(target, key, source[key]); }); } return target; } function ownKeys$F(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$F(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$F(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$e(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$e(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; } var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$e(_param, [ "date", "startDate", "endDate", "mask", "className", "placeholder", "data", "isRange", "tweakStyles", "onClick", "onChange" ]); var classes = useStyles$G({ theme: tweakStyles }); var tweakInputStyles = useTweakStyles({ tweakStyles, className: "tweakInput", currentComponentName: "DateInput" }); var beforeMaskedStateChange = function(param) { var nextState = param.nextState; if (nextState.value === EMPTY_DATE_INPUT_VALUE || nextState.value === EMPTY_DATE_RANGE_INPUT_VALUE) { return { value: "", selection: { start: 0, end: 0 } }; } return nextState; }; var handleChange = function(value, event) { if (event.type === "click") { event.target.value = ""; } onChange === null || onChange === void 0 ? void 0 : onChange(event, value); }; return /* @__PURE__ */ jsx("div", _object_spread_props$F(_object_spread$M({ className: clsx(classes.root, className), onClick }, addDataAttributes(data)), { children: /* @__PURE__ */ jsx(Input, _object_spread_props$F(_object_spread$M({}, inputProps), { ref, value: isRange ? "".concat(startDate).concat(endDate) : date, mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999", placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : isRange ? EMPTY_DATE_RANGE_INPUT_VALUE : EMPTY_DATE_INPUT_VALUE, tweakStyles: tweakInputStyles, onChange: handleChange, beforeMaskedStateChange })) })); }); const reactDatepicker = ""; var LEFT_PADDING = 44; var useStyles$F = createThemedStyles("SearchInput", { root: { position: "relative" }, icon: { display: "flex", alignItems: "center", position: "absolute", left: 12, height: "100%", width: 20, zIndex: 2, color: colors.GREY_ACTIVE } }); var inputStyles$4 = { inputWrapper: { height: 35, borderColor: "transparent", backgroundColor: rgba(colors.BORDER_MAIN, 0.3), borderRadius: 18, paddingLeft: LEFT_PADDING, transitionProperty: "background-color, border-color" }, focused: { backgroundColor: colors.CLASSIC_WHITE, borderColor: colors.BORDER_MAIN }, input: { fontSize: 14, paddingLeft: 0 }, label: { left: LEFT_PADDING, fontSize: 14 } }; function _define_property$N(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$L(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$N(target, key, source[key]); }); } return target; } function ownKeys$E(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$E(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$E(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$d(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$d(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; } var SearchInput = function(_param) { var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, testId = _param.testId, data = _param.data, props = _object_without_properties$d(_param, [ "isClearable", "tweakStyles", "testId", "data" ]); var classes = useStyles$F({ theme: tweakStyles }); var tweakInputStyles = useTweakStyles({ innerStyles: inputStyles$4, tweakStyles, className: "tweakInput", currentComponentName: "SearchInput" }); return /* @__PURE__ */ jsxs("div", _object_spread_props$E(_object_spread$L({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "search" }) }), /* @__PURE__ */ jsx(Input, _object_spread$L({ isClearable, isActive: props.value !== "" && props.value !== void 0, testId: trueReactPlatformHelpers.getTestId(testId, "input"), tweakStyles: tweakInputStyles, hasFloatingLabel: false, label: props.placeholder }, props)) ] })); }; var ScrollIntoViewIfNeededDefaultElementType = "div"; var ScrollIntoViewIfNeededDefaultProps = { active: true, elementType: ScrollIntoViewIfNeededDefaultElementType, options: { behavior: "smooth", scrollMode: "if-needed" } }; function _assert_this_initialized(self2) { if (self2 === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self2; } function _class_call_check(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _create_class(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _define_property$M(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _get_prototype_of(o) { _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o2) { return o2.__proto__ || Object.getPrototypeOf(o2); }; return _get_prototype_of(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _set_prototype_of(subClass, superClass); } function _object_spread$K(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$M(target, key, source[key]); }); } return target; } function _object_without_properties$c(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$c(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 _possible_constructor_return(self2, call) { if (call && (_type_of(call) === "object" || typeof call === "function")) { return call; } return _assert_this_initialized(self2); } function _set_prototype_of(o, p) { _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o2, p2) { o2.__proto__ = p2; return o2; }; return _set_prototype_of(o, p); } function _type_of(obj) { "@swc/helpers - typeof"; return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } function _is_native_reflect_construct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); return true; } catch (e) { return false; } } function _create_super(Derived) { var hasNativeReflectConstruct = _is_native_reflect_construct(); return function _createSuperInternal() { var Super = _get_prototype_of(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _get_prototype_of(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possible_constructor_return(this, result); }; } var ScrollIntoViewIfNeeded = /* @__PURE__ */ function(PureComponent) { _inherits(ScrollIntoViewIfNeeded2, PureComponent); var _super = _create_super(ScrollIntoViewIfNeeded2); function ScrollIntoViewIfNeeded2() { _class_call_check(this, ScrollIntoViewIfNeeded2); var _this; _this = _super.apply(this, arguments); _define_property$M(_assert_this_initialized(_this), "node", React.createRef()); _define_property$M(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() { var options = _this.props.options; var _this_node = _this.node, node = _this_node.current; if (node) { scrollIntoViewIfNeeded(node, options); } }); return _this; } _create_class(ScrollIntoViewIfNeeded2, [ { key: "componentDidMount", value: function componentDidMount() { var active = this.props.active; if (active) { this.handleScrollIntoViewIfNeeded(); } } }, { key: "componentDidUpdate", value: function componentDidUpdate(param) { var active = param.active; var _this_props = this.props, isNowActive = _this_props.active; if (!active && isNowActive) { this.handleScrollIntoViewIfNeeded(); } } }, { key: "render", value: function render() { var _this_props = this.props; _this_props.active; var elementType = _this_props.elementType, children = _this_props.children; _this_props.options; var wrapperProps = _object_without_properties$c(_this_props, [ "active", "elementType", "children", "options" ]); return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$K({ ref: this.node }, wrapperProps), children); } } ]); return ScrollIntoViewIfNeeded2; }(React.PureComponent); _define_property$M(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps); var DEFAULT_OPTION_INDEX = -2; var ALL_OPTION_INDEX = -1; function _define_property$L(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$J(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$L(target, key, source[key]); }); } return target; } var ROW_HEIGHT$1 = 40; var CONTAINER_PADDING = 10; var CELL_PADDING = [ 10, 20 ]; var useStyles$E = createThemedStyles("SelectList", { root: { borderRadius: dimensions.BORDER_RADIUS_SMALL, boxShadow: "0 13px 74px -27px rgba(0, 0, 0, 0.11)", boxSizing: "border-box", padding: [ CONTAINER_PADDING, 0 ], fontSize: 16, overflow: "hidden" }, withListHeader: { paddingTop: 0 }, withListFooter: { paddingBottom: 0 }, listHeader: {}, listFooter: {}, list: _object_spread$J({ height: "100%", maxHeight: ROW_HEIGHT$1 * 6, cursor: "pointer", backgroundColor: colors.CLASSIC_WHITE }, helpers.withScrollBar), cell: { display: "flex", cursor: "pointer", minHeight: ROW_HEIGHT$1, width: "auto", padding: CELL_PADDING, alignItems: "center", boxSizing: "border-box", fontSize: 14 }, cellWithCheckbox: { padding: 0 }, noMatchesLabel: { pointerEvents: "none" }, focused: {}, active: {}, disabled: { cursor: "default" }, loading: { cursor: "default", pointerEvents: "none" }, defaultCell: {} }); var checkboxStyles$1 = { root: { padding: CELL_PADDING, width: "100%" }, input: { // иначе будет фокуситься и энтер будет вызывать изменение нескольких опций display: "none" } }; function _define_property$K(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$I(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$K(target, key, source[key]); }); } return target; } function ownKeys$D(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$D(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$D(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var SelectListItem = function(param) { var classes = param.classes, index = param.index, isSemiChecked = param.isSemiChecked, isDisabled = param.isDisabled, isActive = param.isActive, children = param.children, isFocused = param.isFocused, isMultiSelect = param.isMultiSelect, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox; var multiSelectContent = isMultiSelect && /* @__PURE__ */ jsx(Checkbox, { isChecked: isActive || isSemiChecked, isSemiChecked, isDisabled, tweakStyles: checkboxStyles$1, onSelect: function(param2, event) { var isSelected = param2.isSelected; return onToggleCheckbox(index, isSelected, event); }, children }); var _obj2; return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$D(_object_spread$I({ active: isFocused, options: { block: "nearest" }, className: clsx(classes.cell, (_obj2 = {}, _define_property$K(_obj2, classes.cellWithCheckbox, isMultiSelect), _define_property$K(_obj2, classes.focused, isFocused), _define_property$K(_obj2, classes.active, isActive && !isMultiSelect), _define_property$K(_obj2, classes.disabled, isDisabled), _obj2)) }, addDataAttributes({ disabled: isDisabled, active: isActive, focused: isFocused })), { onClick: !isDisabled && !isMultiSelect ? function(event) { return onOptionSelect(index, event); } : void 0, children: isMultiSelect ? multiSelectContent : children })); }; function _define_property$J(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$H(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$J(target, key, source[key]); }); } return target; } function ownKeys$C(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$C(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$C(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function SelectList(param) { var options = param.options, focusedIndex = param.focusedIndex, activeValue = param.activeValue, defaultOptionLabel = param.defaultOptionLabel, _param_noMatchesLabel = param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Совпадений не найдено" : _param_noMatchesLabel, isLoading = param.isLoading, _param_loadingLabel = param.loadingLabel, loadingLabel = _param_loadingLabel === void 0 ? "Загрузка..." : _param_loadingLabel, tweakStyles = param.tweakStyles, testId = param.testId, _param_shouldScrollToList = param.shouldScrollToList, shouldScrollToList = _param_shouldScrollToList === void 0 ? true : _param_shouldScrollToList, areAllOptionsSelected = param.areAllOptionsSelected, customListHeader = param.customListHeader, customListFooter = param.customListFooter, isMultiSelect = param.isMultiSelect, isOptionDisabled = param.isOptionDisabled, allOptionsLabel = param.allOptionsLabel, onOptionSelect = param.onOptionSelect, onToggleCheckbox = param.onToggleCheckbox, convertValueToString = param.convertValueToString, _param_convertValueToReactNode = param.convertValueToReactNode, convertValueToReactNode = _param_convertValueToReactNode === void 0 ? convertValueToString : _param_convertValueToReactNode, convertValueToId = param.convertValueToId; var classes = useStyles$E({ theme: tweakStyles }); var isHeaderNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListHeader); var isFooterNotEmpty = trueReactPlatformHelpers.isReactNodeNotEmpty(customListFooter); var optionsDisableMap = React.useMemo(function() { return options.map(isOptionDisabled); }, [ options, isOptionDisabled ]); var listOptions = React.useMemo(function() { return options.map(function(option, index) { return convertValueToReactNode(option, optionsDisableMap[index]); }); }, [ options, convertValueToReactNode, optionsDisableMap ]); var activeOptionsIds = React.useMemo(function() { return new Set(trueReactPlatformHelpers.getArray(activeValue).map(convertValueToId)); }, [ activeValue, convertValueToId ]); var _obj2; return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, { active: shouldScrollToList && !isMultiSelect, className: clsx(classes.root, (_obj2 = {}, _define_property$J(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$J(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)), children: [ isHeaderNotEmpty && /* @__PURE__ */ jsx("div", { className: classes.listHeader, children: customListHeader }), /* @__PURE__ */ jsx("div", _object_spread_props$C(_object_spread$H({ className: classes.list }, trueReactPlatformHelpers.addDataTestId(testId)), { children: isLoading ? /* @__PURE__ */ jsx("div", { className: clsx(classes.cell, classes.loading), children: loadingLabel }) : /* @__PURE__ */ jsxs(Fragment, { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(defaultOptionLabel) && /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, { active: focusedIndex === DEFAULT_OPTION_INDEX, options: { block: "nearest" }, className: clsx(classes.cell, classes.defaultCell, focusedIndex === DEFAULT_OPTION_INDEX && classes.focused), onClick: function(event) { return onOptionSelect(DEFAULT_OPTION_INDEX, event); }, children: defaultOptionLabel }), trueReactPlatformHelpers.isReactNodeNotEmpty(allOptionsLabel) && /* @__PURE__ */ jsx(SelectListItem, { classes, index: ALL_OPTION_INDEX, isSemiChecked: activeOptionsIds.size > 0 && !areAllOptionsSelected, isActive: areAllOptionsSelected, isFocused: focusedIndex === ALL_OPTION_INDEX, isMultiSelect, onOptionSelect, onToggleCheckbox, children: allOptionsLabel }), listOptions.map(function(opt, i) { var optionValue = options[i]; var isFocused = focusedIndex === i; var isActive = activeOptionsIds.has(convertValueToId(optionValue)); var isDisabled = optionsDisableMap[i]; return /* @__PURE__ */ jsx(SelectListItem, { classes, index: i, isDisabled, isActive, isFocused, isMultiSelect, onOptionSelect, onToggleCheckbox, children: opt }, i); }), listOptions.length === 0 && /* @__PURE__ */ jsx("div", { className: clsx(classes.cell, classes.noMatchesLabel), children: noMatchesLabel }) ] }) })), isFooterNotEmpty && /* @__PURE__ */ jsx("div", { className: classes.listFooter, children: customListFooter }) ] }); } var defaultIsOptionDisabled = function(option) { var _option_isDisabled; return typeof option === "object" && option !== null && ((_option_isDisabled = option === null || option === void 0 ? void 0 : option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : false); }; var defaultConvertFunction$2 = function(v) { return v === void 0 ? void 0 : String(v); }; var defaultCompareFunction = function(v1, v2) { return v1 === v2; }; var getDefaultConvertToIdFunction = function(convertValueToString) { return function(value) { return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value); }; }; var useStyles$D = createThemedStyles("Select", { root: { width: "100%", position: "relative", boxSizing: "border-box" }, inputWrapper: { width: "100%", cursor: "text", position: "relative" }, listWrapper: { left: -1, zIndex: 3, width: "fit-content", minWidth: "calc(100% + 1px)" }, withoutPopper: { position: "absolute", top: "calc(var(--dropdown-offset, 100%) + 6px)" }, listWrapperInBody: { minWidth: "auto", width: "auto", maxWidth: "min-content" }, arrow: { position: "absolute", right: 12, top: 14, width: 20, height: 20, cursor: "pointer", zIndex: 1, transition: animations.defaultTransition, transitionProperty: "transform" }, activeArrow: { transform: "rotate(180deg)" }, disabled: { "& $arrow": { cursor: "default" } }, counter: { "&:not(:last-child)": { paddingRight: 8 } }, icon: { width: 16, height: 16 } }); var baseInputStyles = { input: { paddingRight: 32 }, disabled: { "& $input": { cursor: "default" } }, controls: { paddingRight: 32 } }; var readonlyInputBaseStyles = { input: { cursor: "pointer" } }; var multiSelectInputBaseStyles = { inputIcon: { "&:not($loading)": { width: "auto" } } }; var readonlyInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles); var multiSelectInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, multiSelectInputBaseStyles); var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles); var getInputStyles = function(param) { var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect; if (hasReadonlyInput && isMultiSelect) { return readonlyMultiSelectStyles; } if (hasReadonlyInput && !isMultiSelect) { return readonlyInputStyles; } if (!hasReadonlyInput && isMultiSelect) { return multiSelectInputStyles; } return baseInputStyles; }; var searchInputStyles$3 = { tweakInput: { inputWrapper: { height: 48, borderRadius: 0, border: "none", backgroundColor: "transparent" } } }; function _array_like_to_array$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$j(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$6(arr) { if (Array.isArray(arr)) return _array_like_to_array$j(arr); } function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _async_to_generator$3(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } function _define_property$I(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$6(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$j(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$j() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$6() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$G(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$I(target, key, source[key]); }); } return target; } function ownKeys$B(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$B(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$B(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$b(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$b(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 _sliced_to_array$j(arr, i) { return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$j(); } function _to_consumable_array$6(arr) { return _array_without_holes$6(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$6(); } function _unsupported_iterable_to_array$j(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen); } function _ts_generator$3(thisArg, body) { var f, y, t, g, _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function(v) { return step([ n, v ]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [ op[0] & 2, t.value ]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [ 0 ]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [ 6, e ]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function Select(props) { var _input_current; var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, iconType = props.iconType, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, inputProps = _object_without_properties$b(props, [ "options", "isMultiSelect", "value", "header", "footer", "defaultOptionLabel", "allOptionsLabel", "debounceTime", "optionsMode", "noMatchesLabel", "loadingLabel", "tweakStyles", "testId", "isActive", "isReadonly", "isDisabled", "dropdownOptions", "minSymbolsCountToOpenList", "dropdownIcon", "shouldScrollToList", "searchInput", "iconType", "onChange", "onFocus", "onBlur", "onType", "onOpen", "isOptionDisabled", "compareValuesOnChange", "convertValueToString", "convertValueToId", "convertValueToReactNode", "optionsFilter" ]); var classes = useStyles$D({ theme: tweakStyles }); var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$b(_ref, [ "shouldRenderInList" ]); var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList; var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList; var tweakInputStyles = useTweakStyles({ innerStyles: getInputStyles({ hasReadonlyInput, isMultiSelect }), tweakStyles, className: "tweakInput", currentComponentName: "Select" }); var tweakSearchInputStyles = useTweakStyles({ innerStyles: searchInputStyles$3, tweakStyles, className: "tweakSearchInput", currentComponentName: "Select" }); var tweakSelectListStyles = useTweakStyles({ tweakStyles, className: "tweakSelectList", currentComponentName: "Select" }); var isMounted = useIsMounted(); var _useState = _sliced_to_array$j(React.useState(false), 2), isListOpen = _useState[0], setIsListOpen = _useState[1]; var _useState1 = _sliced_to_array$j(React.useState(false), 2), areOptionsLoading = _useState1[0], setAreOptionsLoading = _useState1[1]; var hasDefaultOption = trueReactPlatformHelpers.isReactNodeNotEmpty(defaultOptionLabel); var _useState2 = _sliced_to_array$j(React.useState(DEFAULT_OPTION_INDEX), 2), focusedListCellIndex = _useState2[0], setFocusedListCellIndex = _useState2[1]; var _useState3 = _sliced_to_array$j(React.useState(""), 2), searchValue = _useState3[0], setSearchValue = _useState3[1]; var _useState4 = _sliced_to_array$j(React.useState(true), 2), shouldShowDefaultOption = _useState4[0], setShouldShowDefaultOption = _useState4[1]; var root2 = React.useRef(null); var inputWrapper = React.useRef(null); var list = React.useRef(null); var input = React.useRef(null); var strValue = isMultiSelect ? value === null || value === void 0 ? void 0 : value[0] : value; var shouldShowAllOption = isMultiSelect && trueReactPlatformHelpers.isStringNotEmpty(allOptionsLabel) && searchValue === ""; var filteredOptions = React.useMemo(function() { if (optionsMode !== "search") { return options; } var filter = optionsFilter !== null && optionsFilter !== void 0 ? optionsFilter : trueReactPlatformHelpers.createFilter(function(option) { var _convertValueToString; return [ (_convertValueToString = convertValueToString(option)) !== null && _convertValueToString !== void 0 ? _convertValueToString : "" ]; }); return filter(options, searchValue); }, [ optionsFilter, options, convertValueToString, searchValue, optionsMode ]); var availableOptions = React.useMemo(function() { return options.filter(function(option) { return !isOptionDisabled(option); }); }, [ options, isOptionDisabled ]); var areAllOptionsSelected = isMultiSelect && (value === null || value === void 0 ? void 0 : value.length) === availableOptions.length; var shouldShowMultiSelectCounter = isMultiSelect && trueReactPlatformHelpers.isNotEmpty(value) && value.length > 1 && !areAllOptionsSelected; var optionsIndexesForNavigation = React.useMemo(function() { var result = []; if (shouldShowDefaultOption && hasDefaultOption) { result.push(DEFAULT_OPTION_INDEX); } if (shouldShowAllOption) { result.push(ALL_OPTION_INDEX); } return result.concat(filteredOptions.reduce(function(acc, cur, i) { if (!isOptionDisabled(cur)) { acc.push(i); } return acc; }, [])); }, [ filteredOptions, hasDefaultOption, isOptionDisabled, shouldShowAllOption, shouldShowDefaultOption ]); var stringValue = trueReactPlatformHelpers.isNotEmpty(strValue) ? convertValueToString(strValue) : void 0; var showedStringValue = areAllOptionsSelected && trueReactPlatformHelpers.isNotEmpty(allOptionsLabel) ? allOptionsLabel : stringValue; var convertToId = React.useCallback(function(v) { return (convertValueToId !== null && convertValueToId !== void 0 ? convertValueToId : getDefaultConvertToIdFunction(convertValueToString))(v); }, [ convertValueToId, convertValueToString ]); var getDropdownOffset = function() { var _input_current_parentElement2; if (trueReactPlatformHelpers.isEmpty(input.current) || inputProps.errorPosition === "top") { return 0; } var _input_current_parentElement_offsetHeight; return (_input_current_parentElement_offsetHeight = (_input_current_parentElement2 = input.current.parentElement) === null || _input_current_parentElement2 === void 0 ? void 0 : _input_current_parentElement2.offsetHeight) !== null && _input_current_parentElement_offsetHeight !== void 0 ? _input_current_parentElement_offsetHeight : 0; }; var closeList = React.useCallback(function() { setIsListOpen(false); setSearchValue(""); setShouldShowDefaultOption(true); if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) { var _root_current; (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset"); } }, [ dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper ]); var handleListClose = React.useCallback(function(event) { closeList(); onBlur === null || onBlur === void 0 ? void 0 : onBlur(event); }, [ closeList, onBlur ]); var handleListOpen = function() { if (isReadonly) { return; } if (!isListOpen) { setIsListOpen(true); if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) { var _root_current; (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px")); } } }; var handleFocus = function(event) { onFocus === null || onFocus === void 0 ? void 0 : onFocus(event); handleListOpen(); }; var handleOnClick = function() { handleListOpen(); }; var handleBlur = function(event) { if (isListOpen && !isOpen) { handleListClose(event); return; } if (!trueReactPlatformHelpers.isNotEmpty(event.relatedTarget) || !trueReactPlatformHelpers.isNotEmpty(list.current) || !trueReactPlatformHelpers.isNotEmpty(inputWrapper.current)) { return; } var isActionInsideSelect = hasExactParent(event.relatedTarget, list.current) || hasExactParent(event.relatedTarget, inputWrapper.current); if (!isActionInsideSelect) { handleListClose(event); } }; var handleChange = React.useCallback(function(newValue, event) { if (!compareValuesOnChange(value, newValue)) { onChange(newValue, event); } }, [ value, compareValuesOnChange, onChange ]); var handleOptionSelect = React.useCallback(function(index, event) { var _input_current2; handleChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event); handleListClose(event); (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur(); }, [ handleChange, handleListClose, filteredOptions ]); var handleToggleOptionCheckbox = React.useCallback(function(index, isSelected, event) { if (!isMultiSelect) { return; } if (index === DEFAULT_OPTION_INDEX || index === ALL_OPTION_INDEX && !isSelected) { handleChange(void 0, event); return; } if (index === ALL_OPTION_INDEX && isSelected) { handleChange(availableOptions, event); return; } var option = filteredOptions[index]; handleChange(isSelected ? ( // Добавляем _to_consumable_array$6(value !== null && value !== void 0 ? value : []).concat([ option ]) ) : ( // Убираем value === null || value === void 0 ? void 0 : value.filter(function(o) { return convertToId(o) !== convertToId(option); }) ), event); }, [ isMultiSelect, filteredOptions, handleChange, value, availableOptions, convertToId ]); var handleOnType = React.useCallback(function() { var _ref2 = _async_to_generator$3(function(v) { return _ts_generator$3(this, function(_state) { switch (_state.label) { case 0: if (onType === void 0) { return [ 2 ]; } if (isMounted()) { setAreOptionsLoading(true); } return [ 4, onType(v) ]; case 1: _state.sent(); if (isMounted()) { setAreOptionsLoading(false); } if (optionsMode === "dynamic") { setShouldShowDefaultOption(v === ""); } return [ 2 ]; } }); }); return function(v) { return _ref2.apply(this, arguments); }; }(), [ isMounted, onType, optionsMode ]); var debounceHandleOnType = React.useMemo(function() { return tsDebounce.debounce(handleOnType, debounceTime, { isImmediate: debounceTime === 0 }); }, [ handleOnType, debounceTime ]); var handleInputChange = function(v, event) { if (onType !== void 0) { debounceHandleOnType(v); } if (optionsMode !== "dynamic") { setShouldShowDefaultOption(v === ""); } if (v === "" && !hasSearchInputInList) { handleChange(void 0, event); } setSearchValue(v); }; var handleKeyDown = function(event) { if (!isListOpen) { return; } event.stopPropagation(); var curIndexInNavigation = optionsIndexesForNavigation.findIndex(function(index) { return index === focusedListCellIndex; }); switch (event.code) { case "Enter": case "NumpadEnter": { var indexToSelect = focusedListCellIndex; if (indexToSelect === DEFAULT_OPTION_INDEX && filteredOptions.length === 1) { indexToSelect = 0; } if (isMultiSelect) { var isThisValueAlreadySelected; if (indexToSelect === ALL_OPTION_INDEX) { isThisValueAlreadySelected = areAllOptionsSelected; } else { var option = filteredOptions[indexToSelect]; var valueIdToSelect = convertToId(option); var _value_some; isThisValueAlreadySelected = (_value_some = value === null || value === void 0 ? void 0 : value.some(function(opt) { return convertToId(opt) === valueIdToSelect; })) !== null && _value_some !== void 0 ? _value_some : false; } handleToggleOptionCheckbox(indexToSelect, !isThisValueAlreadySelected, event); } else { handleOptionSelect(indexToSelect, event); } break; } case "ArrowDown": { event.preventDefault(); var targetIndexInNavigation = (curIndexInNavigation + 1) % optionsIndexesForNavigation.length; setFocusedListCellIndex(optionsIndexesForNavigation[targetIndexInNavigation]); break; } case "ArrowUp": { event.preventDefault(); var targetIndexInNavigation1 = (curIndexInNavigation - 1 + optionsIndexesForNavigation.length) % optionsIndexesForNavigation.length; setFocusedListCellIndex(optionsIndexesForNavigation[targetIndexInNavigation1]); break; } } }; var onArrowClick = function() { if (isListOpen) { var _input_current2; (_input_current2 = input.current) === null || _input_current2 === void 0 ? void 0 : _input_current2.blur(); closeList(); } else { var _input_current1; (_input_current1 = input.current) === null || _input_current1 === void 0 ? void 0 : _input_current1.focus(); } }; useOnClickOutsideWithRef(list, handleListClose, inputWrapper); var hasEnoughSymbolsToSearch = searchValue.trim().length >= minSymbolsCountToOpenList; var isOpen = ( // Пользователь пытается открыть лист isListOpen && // Нам есть что показать: // Есть опции (filteredOptions.length > 0 || // Дефолтная опция defaultOptionLabel !== void 0 && !hasEnoughSymbolsToSearch || // Текст "Загрузка..." inputProps.isLoading || // Текст "Совпадений не найдено" noMatchesLabel !== void 0 || // У нас есть инпут с поиском внутри листа hasSearchInputInList) && // Последняя проверка на случай, если мы че то ищем в опциях (optionsMode === "normal" || hasEnoughSymbolsToSearch) ); var _ref1 = dropdownOptions !== null && dropdownOptions !== void 0 ? dropdownOptions : {}, _ref_shouldUsePopper = _ref1.shouldUsePopper, shouldUsePopper = _ref_shouldUsePopper === void 0 ? false : _ref_shouldUsePopper, _ref_shouldRenderInBody = _ref1.shouldRenderInBody, shouldRenderInBody = _ref_shouldRenderInBody === void 0 ? false : _ref_shouldRenderInBody, _ref_shouldHideOnScroll = _ref1.shouldHideOnScroll, shouldHideOnScroll = _ref_shouldHideOnScroll === void 0 ? false : _ref_shouldHideOnScroll; var _input_current_parentElement; var popperData = useDropdown({ isOpen, onDropdownClose: handleListClose, referenceElement: (_input_current_parentElement = (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.parentElement) !== null && _input_current_parentElement !== void 0 ? _input_current_parentElement : inputWrapper.current, dropdownElement: list.current, options: dropdownOptions, dependenciesForPositionUpdating: [ inputProps.isLoading, filteredOptions.length ] }); React.useEffect(function() { var focusedCellIndex = trueReactPlatformHelpers.isNotEmpty(strValue) ? optionsIndexesForNavigation.find(function(index) { var option = filteredOptions[index]; return trueReactPlatformHelpers.isNotEmpty(option) && convertToId(option) === convertToId(strValue); }) : void 0; setFocusedListCellIndex(focusedCellIndex !== null && focusedCellIndex !== void 0 ? focusedCellIndex : optionsIndexesForNavigation[0]); }, [ strValue, filteredOptions, optionsIndexesForNavigation, convertToId ]); React.useEffect(function() { if (isOpen) { onOpen === null || onOpen === void 0 ? void 0 : onOpen(); } }, [ isOpen ]); var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$G({ value: searchValue, onChange: handleInputChange, tweakStyles: tweakSearchInputStyles, placeholder: "Поиск" }, searchInputProps)); var customHeader = (trueReactPlatformHelpers.isReactNodeNotEmpty(searchInputEl) || trueReactPlatformHelpers.isReactNodeNotEmpty(header)) && /* @__PURE__ */ jsxs(Fragment, { children: [ searchInputEl, header ] }); var _obj2; var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$B(_object_spread$G({ className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$I(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$I(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)), ref: list, style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper, tabIndex: 0, onBlur: handleBlur }, popperData === null || popperData === void 0 ? void 0 : popperData.attributes.popper), { children: isOpen && /* @__PURE__ */ jsx(SelectList, { options: filteredOptions, defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel, allOptionsLabel: shouldShowAllOption && allOptionsLabel, areAllOptionsSelected, customListHeader: customHeader, customListFooter: footer, noMatchesLabel, focusedIndex: focusedListCellIndex, activeValue: value, isLoading: inputProps.isLoading, loadingLabel, tweakStyles: tweakSelectListStyles, testId: trueReactPlatformHelpers.getTestId(testId, "list"), isMultiSelect, shouldScrollToList: shouldScrollToList && !shouldUsePopper && !shouldHideOnScroll, isOptionDisabled, convertValueToString, convertValueToReactNode, convertValueToId: convertToId, onOptionSelect: handleOptionSelect, onToggleCheckbox: handleToggleOptionCheckbox }) })); var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(iconType) ? /* @__PURE__ */ jsxs(Fragment, { children: [ shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", { className: classes.counter, children: [ "(+", value.length - 1, ")" ] }), trueReactPlatformHelpers.isNotEmpty(iconType) && /* @__PURE__ */ jsx("div", { className: classes.icon, children: renderIcon(iconType) }) ] }) : void 0; return /* @__PURE__ */ jsxs("div", { className: classes.root, onKeyDown: handleKeyDown, ref: root2, children: [ /* @__PURE__ */ jsxs("div", { className: clsx(classes.inputWrapper, isDisabled && classes.disabled), onClick: isDisabled || isReadonly ? void 0 : handleOnClick, ref: inputWrapper, children: [ /* @__PURE__ */ jsx(Input, _object_spread$G({ value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue, onChange: handleInputChange, isActive: isListOpen || isActive, isReadonly: hasReadonlyInput, onFocus: handleFocus, onBlur: handleBlur, isDisabled, ref: input, isLoading: areOptionsLoading, tweakStyles: tweakInputStyles, testId, iconType: isMultiSelect ? multiSelectCounterWithIcon : iconType }, inputProps)), /* @__PURE__ */ jsx("div", { onMouseDown: function(event) { event.preventDefault(); }, onClick: onArrowClick, className: clsx(classes.arrow, isOpen && classes.activeArrow), children: renderIcon(dropdownIcon) }) ] }), shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, { container: shouldRenderInBody ? document.body : inputWrapper.current, children: /* @__PURE__ */ jsx(Fragment, { children: listEl }) }) : /* @__PURE__ */ jsx(Fragment, { children: isOpen && listEl }) ] }); } var SELECT_PADDING_LEFT = 12; var SELECT_PADDING_RIGHT = 24; var useStyles$C = createThemedStyles("DatePickerHeader", { btn: { width: 36, height: 36, padding: 8, boxSizing: "border-box", border: "none", outline: "none", cursor: "pointer", marginLeft: 8 }, select: { height: 35, fontSize: 16, position: "relative" }, selectValue: { fontSize: 16, fontWeight: "bold", color: "transparent", pointerEvents: "none", paddingLeft: SELECT_PADDING_LEFT, paddingRight: SELECT_PADDING_RIGHT }, selectControl: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, header: { margin: 6, display: "flex", alignItems: "center" }, buttons: { flexShrink: 0, marginLeft: "auto" } }); var selectStyles$1 = { tweakSelectList: { cell: { fontSize: 14, minHeight: 35 } }, arrow: { right: 0, top: 9, width: 16, height: 16 }, tweakInput: { inputWrapper: { height: 35, border: "none" }, input: { fontSize: 16, fontWeight: "bold", paddingRight: SELECT_PADDING_RIGHT - 8, paddingLeft: SELECT_PADDING_LEFT } } }; var DatePickerHeader = function(param) { var date = param.date, _param_months = param.months, months = _param_months === void 0 ? [] : _param_months, tweakStyles = param.tweakStyles, prevMonthButtonDisabled = param.prevMonthButtonDisabled, nextMonthButtonDisabled = param.nextMonthButtonDisabled, changeYear = param.changeYear, changeMonth = param.changeMonth, decreaseMonth = param.decreaseMonth, increaseMonth = param.increaseMonth; var classes = useStyles$C({ theme: tweakStyles }); var tweakSelectStyles = useTweakStyles({ innerStyles: selectStyles$1, tweakStyles, className: "tweakSelect", currentComponentName: "DatePickerHeader" }); var years = React.useMemo(function() { return Array.from(Array(41)).map(function(_, i) { return dateFns.getYear(new Date()) - 30 + i; }); }, []); return /* @__PURE__ */ jsxs("div", { className: classes.header, children: [ /* @__PURE__ */ jsxs("div", { className: classes.select, children: [ /* @__PURE__ */ jsx("div", { className: classes.selectValue, children: months[dateFns.getMonth(date)] }), /* @__PURE__ */ jsx("div", { className: classes.selectControl, children: /* @__PURE__ */ jsx(Select, { value: months[dateFns.getMonth(date)], options: months, dropdownIcon: "chevron-down-small", tweakStyles: tweakSelectStyles, onChange: function(value) { return changeMonth(months.indexOf(value)); } }) }) ] }), /* @__PURE__ */ jsxs("div", { className: classes.select, children: [ /* @__PURE__ */ jsx("div", { className: classes.selectValue, children: dateFns.getYear(date) }), /* @__PURE__ */ jsx("div", { className: classes.selectControl, children: /* @__PURE__ */ jsx(Select, { value: dateFns.getYear(date), options: years, dropdownIcon: "chevron-down-small", tweakStyles: tweakSelectStyles, onChange: function(value) { return changeYear(value); } }) }) ] }), /* @__PURE__ */ jsxs("div", { className: classes.buttons, children: [ /* @__PURE__ */ jsx("button", { type: "button", className: classes.btn, disabled: prevMonthButtonDisabled, onClick: decreaseMonth, children: /* @__PURE__ */ jsx(Icon, { type: "chevron-left" }) }), /* @__PURE__ */ jsx("button", { type: "button", className: classes.btn, disabled: nextMonthButtonDisabled, onClick: increaseMonth, children: /* @__PURE__ */ jsx(Icon, { type: "chevron-right" }) }) ] }) ] }); }; var PopperContainer = function(param) { var children = param.children; return /* @__PURE__ */ jsx(reactOverlays.Portal, { container: document.body, children }); }; var DEFAULT_DATE_FORMAT$2 = "dd.MM.yyyy"; var _ReactDatePicker_default; var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker; var getDateFormatter = function(dateFormat) { return function(date) { return trueReactPlatformHelpers.isNotEmpty(date) ? dateFns.format(date, dateFormat) : ""; }; }; var getDateValueParser = function(dateFormat) { return function(value) { var inputValue = value === EMPTY_DATE_INPUT_VALUE ? "" : value; return trueReactPlatformHelpers.isStringNotEmpty(inputValue) ? dateFns.parse(value, dateFormat, new Date()) : null; }; }; var areDatesEquals = function(date1, date2) { return trueReactPlatformHelpers.isEmpty(date1) && trueReactPlatformHelpers.isEmpty(date2) || trueReactPlatformHelpers.isNotEmpty(date1) && trueReactPlatformHelpers.isNotEmpty(date2) && dateFns.isSameDay(date1, date2); }; var useStyles$B = createThemedStyles("DatePicker", { root: { width: "100%", height: "100%" }, day: {}, datepicker: {}, popper: { zIndex: 10, '&[data-placement^="bottom"]': { paddingTop: 6 }, '&[data-placement^="top"]': { paddingBottom: 6 }, '&[data-placement^="left"]': { paddingRight: 6 }, '&[data-placement^="right"]': { paddingLeft: 6 } } }); function _array_like_to_array$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$i(arr) { if (Array.isArray(arr)) return arr; } function _define_property$H(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$i(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$i() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$F(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$H(target, key, source[key]); }); } return target; } function ownKeys$A(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$A(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$A(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$a(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$a(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 _sliced_to_array$i(arr, i) { return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$i(); } function _unsupported_iterable_to_array$i(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen); } var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$a(_param, [ "data", "selectedDate", "minDate", "maxDate", "endDate", "startDate", "locale", "months", "calendarStartDay", "dateFormat", "monthsShown", "placeholder", "isRange", "isInline", "isDisabled", "isClearable", "strictParsing", "fixedHeight", "excludeScrollbar", "focusSelectedMonth", "disabledKeyboardNavigation", "shouldRenderPopperInBody", "allowSameDay", "shouldCloseOnSelect", "showPreviousMonths", "preventOpenOnFocus", "popperModifiers", "popperPlacement", "todayButton", "highlightDates", "calendarContainer", "dayClassName", "customInput", "customInputRef", "renderCustomHeader", "filterDate", "onYearChange", "onMonthChange", "onCalendarOpen", "onCalendarClose", "onChangeDate", "onChangeRange", "onBlur", "onFocus", "onKeyDown", "tweakStyles" ]); var classes = useStyles$B({ theme: tweakStyles }); var tweakDateInputStyles = useTweakStyles({ tweakStyles, className: "tweakDateInput", currentComponentName: "DatePicker" }); var _useMemo = React.useMemo(function() { return { formatDate: getDateFormatter(dateFormat), parseDateValue: getDateValueParser(dateFormat) }; }, [ dateFormat ]), formatDate = _useMemo.formatDate, parseDateValue = _useMemo.parseDateValue; var _useState = _sliced_to_array$i(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1]; var _useState1 = _sliced_to_array$i(React.useState(formatDate(selectedDate)), 2), dateValue = _useState1[0], setDateValue = _useState1[1]; var _useState2 = _sliced_to_array$i(React.useState(startDate), 2), start2 = _useState2[0], setStart = _useState2[1]; var _useState3 = _sliced_to_array$i(React.useState(formatDate(startDate)), 2), startDateValue = _useState3[0], setStartDateValue = _useState3[1]; var _useState4 = _sliced_to_array$i(React.useState(endDate), 2), end2 = _useState4[0], setEnd = _useState4[1]; var _useState5 = _sliced_to_array$i(React.useState(formatDate(endDate)), 2), endDateValue = _useState5[0], setEndDateValue = _useState5[1]; var hasDateInputValue = isRange ? trueReactPlatformHelpers.isStringNotEmpty(startDateValue) || trueReactPlatformHelpers.isStringNotEmpty(endDateValue) : trueReactPlatformHelpers.isStringNotEmpty(dateValue); var dateInputProps = _object_spread$F(_object_spread_props$A(_object_spread$F({}, inputProps), { isRange, isDisabled, isClearable, isActive: isOpen, iconType: isClearable && hasDateInputValue ? void 0 : "calendar", tweakStyles: tweakDateInputStyles }), isRange ? { startDate: startDateValue, endDate: endDateValue } : { date: dateValue }); var handleChangeDate = function(value, event) { onChangeDate === null || onChangeDate === void 0 ? void 0 : onChangeDate(value, event); }; var isDateInRange = function(date) { return (trueReactPlatformHelpers.isEmpty(minDate) || dateFns.isAfter(date, minDate)) && (trueReactPlatformHelpers.isEmpty(maxDate) || dateFns.isBefore(date, maxDate)); }; var handleChangeRange = function(value, event) { if (allowSameDay || !areDatesEquals(value === null || value === void 0 ? void 0 : value[0], startDate) || !areDatesEquals(value === null || value === void 0 ? void 0 : value[1], endDate)) { var _value_; setStart((_value_ = value === null || value === void 0 ? void 0 : value[0]) !== null && _value_ !== void 0 ? _value_ : null); var _value_1; setEnd((_value_1 = value === null || value === void 0 ? void 0 : value[1]) !== null && _value_1 !== void 0 ? _value_1 : null); onChangeRange === null || onChangeRange === void 0 ? void 0 : onChangeRange(value, event); } }; var handleChangeDateRangeInput = function(value) { var newStartDateValue = value.slice(0, 10); var newStart = parseDateValue(newStartDateValue); var newEndDateValue = value.slice(13); var newEnd = parseDateValue(newEndDateValue); if (trueReactPlatformHelpers.isNotEmpty(newStart) && !dateFns.isValid(newStart) || trueReactPlatformHelpers.isNotEmpty(newStart) && !isDateInRange(newStart)) { newStart = start2; } if (trueReactPlatformHelpers.isNotEmpty(newEnd) && !dateFns.isValid(newEnd) || trueReactPlatformHelpers.isNotEmpty(newEnd) && !isDateInRange(newEnd)) { newEnd = end2; } if (trueReactPlatformHelpers.isEmpty(newStart) && dateFns.isValid(newEnd) || // eslint-disable-next-line @typescript-eslint/no-non-null-assertion dateFns.isValid(newStart) && dateFns.isValid(newEnd) && dateFns.isAfter(newStart, newEnd)) { newStart = newEnd; newEnd = null; } setStartDateValue(newStartDateValue); setStart(newStart); setEndDateValue(newEndDateValue); setEnd(newEnd); }; var handleDateInputBlur = function(event) { onBlur === null || onBlur === void 0 ? void 0 : onBlur(event); setDateValue(formatDate(selectedDate)); }; var setDateRangeValues = function() { var startValue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, endValue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; var convertedStartDate = formatDate(startValue); var convertedEndDate = formatDate(endValue); if (convertedStartDate === "" && convertedEndDate !== "") { convertedStartDate = EMPTY_DATE_INPUT_VALUE; } setStart(startValue); setStartDateValue(convertedStartDate); setEnd(endValue); setEndDateValue(convertedEndDate); }; var handleDateRangeInputBlur = function(event) { onBlur === null || onBlur === void 0 ? void 0 : onBlur(event); handleChangeRange([ start2, end2 ], event); setDateRangeValues(start2, end2); }; var handleOpenCalendar = function() { setIsOpen(true); onCalendarOpen === null || onCalendarOpen === void 0 ? void 0 : onCalendarOpen(); }; var handleCloseCalendar = function() { setIsOpen(false); if (isRange) { handleChangeRange([ start2, end2 ]); setDateRangeValues(start2, end2); } else { setDateValue(formatDate(selectedDate)); } onCalendarClose === null || onCalendarClose === void 0 ? void 0 : onCalendarClose(); }; React.useEffect(function() { setDateValue(formatDate(selectedDate)); setDateRangeValues(startDate, endDate); }, [ selectedDate, startDate, endDate ]); return /* @__PURE__ */ jsx("div", _object_spread_props$A(_object_spread$F({ className: classes.root }, addDataAttributes(data)), { children: /* @__PURE__ */ jsx(DatePickerComponent, _object_spread$F({ ref, minDate, maxDate, locale: locale2, dateFormat, placeholderText: placeholder, calendarStartDay, inline: isInline, disabled: isDisabled, fixedHeight, excludeScrollbar, showPreviousMonths, focusSelectedMonth, monthsShown, allowSameDay, showPopperArrow: false, popperClassName: classes.popper, calendarClassName: classes.datepicker, dayClassName: function(v) { return clsx(classes.day, dayClassName === null || dayClassName === void 0 ? void 0 : dayClassName(v)); }, disabledKeyboardNavigation, popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0, popperModifiers, popperPlacement, selectsRange: isRange, strictParsing, preventOpenOnFocus, shouldCloseOnSelect, customInputRef, customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$F({}, dateInputProps)), renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) { return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$A(_object_spread$F({}, baseProps), { months })); }, todayButton, highlightDates, calendarContainer, filterDate, onYearChange, onMonthChange, onFocus, onKeyDown, onCalendarOpen: handleOpenCalendar, onCalendarClose: handleCloseCalendar, onChangeRaw: function(_, value) { if (value === void 0) { return; } if (isRange) { handleChangeDateRangeInput(value); } else { setDateValue(value); } } }, isRange ? { startDate: start2, endDate: end2, selected: start2, onBlur: handleDateRangeInputBlur, onChange: handleChangeRange } : { selected: selectedDate, onBlur: handleDateInputBlur, onChange: handleChangeDate })) })); }); var LINK_REGEXP = /(http(s?):\/\/(.*))(\s?)/; var useStyles$A = createThemedStyles("Description", { root: {}, button: { cursor: "pointer", display: "inline-block", color: colors.FONT_MEDIUM, marginTop: 18, textTransform: "capitalize", borderBottom: [ 1, "dashed", colors.FONT_MEDIUM ], "&:hover": { color: colors.FONT_MAIN } }, link: { color: colors.FONT_MEDIUM, textDecoration: "none", borderBottom: [ 1, "dashed", colors.FONT_MEDIUM ], "&:hover": { color: colors.FONT_MAIN } } }); function _array_like_to_array$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$h(arr) { if (Array.isArray(arr)) return arr; } function _define_property$G(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$h(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$h() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$E(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$G(target, key, source[key]); }); } return target; } function ownKeys$z(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$z(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$z(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$h(arr, i) { return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$h(); } function _unsupported_iterable_to_array$h(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen); } var Description = function(param) { var text = param.text, moreTitle = param.moreTitle, lessTitle = param.lessTitle, _param_truncateIndex = param.truncateIndex, truncateIndex = _param_truncateIndex === void 0 ? 150 : _param_truncateIndex, _param_isAlwaysOpen = param.isAlwaysOpen, isAlwaysOpen = _param_isAlwaysOpen === void 0 ? true : _param_isAlwaysOpen, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles; var classes = useStyles$A({ theme: tweakStyles }); var isTooShort = text.length < truncateIndex; var _useState = _sliced_to_array$h(React.useState(isAlwaysOpen), 2), isOpen = _useState[0], setIsOpen = _useState[1]; var link = text.match(LINK_REGEXP); var linkText = link && link[0]; var textWithNoLink = text.replace(LINK_REGEXP, ""); var shortText = text.slice(0, text.slice(0, truncateIndex).lastIndexOf(" ")); return /* @__PURE__ */ jsxs("div", _object_spread_props$z(_object_spread$E({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ isAlwaysOpen || isOpen || isTooShort ? /* @__PURE__ */ jsxs("div", { children: [ /* @__PURE__ */ jsxs("span", { children: [ textWithNoLink, " " ] }), !!linkText && /* @__PURE__ */ jsx("a", { className: classes.link, href: linkText, target: "_blank", rel: "noopener noreferrer", children: linkText }) ] }) : /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("span", { children: shortText }) }), isAlwaysOpen || isTooShort ? void 0 : /* @__PURE__ */ jsx("div", { className: classes.button, onClick: function() { return setIsOpen(!isOpen); }, children: isOpen ? lessTitle : moreTitle }) ] })); }; var blockEvent = function(event) { event.preventDefault(); event.stopPropagation(); }; var useStyles$z = createThemedStyles("FileInput", { root: { display: "flex", flexDirection: "column", width: "100%" }, label: { position: "relative", width: "fit-content", fontSize: 16, marginBottom: 12 }, requiredLabel: { "&:after": { content: '""', position: "absolute", right: -8, top: 4, transform: "translate(0, -50%)", width: 6, height: 6, borderRadius: "50%" } }, description: { marginBottom: 8, fontSize: 12 }, text: { padding: [ 16, 0 ] }, inputWrapper: { position: "relative", display: "flex", flexDirection: "column", alignItems: "center", boxSizing: "border-box", marginBottom: 8, transition: animations.defaultTransition, transitionProperty: "background-color, color" }, inputLabel: { position: "absolute", inset: 0, cursor: "pointer", "& input": { opacity: 0, width: 1, height: 1, zIndex: -1 } }, dragged: {}, active: {}, disabled: { cursor: "not-allowed", pointerEvents: "none" }, fileList: { display: "flex", flexWrap: "wrap", columnGap: 6, rowGap: 12 } }); function _array_like_to_array$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$g(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$5(arr) { if (Array.isArray(arr)) return _array_like_to_array$g(arr); } function _define_property$F(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$5(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$g(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$g() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$5() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$D(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$F(target, key, source[key]); }); } return target; } function ownKeys$y(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$y(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$y(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$g(arr, i) { return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$g(); } function _to_consumable_array$5(arr) { return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$5(); } function _unsupported_iterable_to_array$g(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen); } var FileInput = /* @__PURE__ */ React.forwardRef(function(param, ref) { var fileList = param.fileList, label = param.label, text = param.text, description = param.description, _param_isDragAndDropDisabled = param.isDragAndDropDisabled, isDragAndDropDisabled = _param_isDragAndDropDisabled === void 0 ? false : _param_isDragAndDropDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isReadOnly = param.isReadOnly, isReadOnly = _param_isReadOnly === void 0 ? false : _param_isReadOnly, _param_isMultipleDisabled = param.isMultipleDisabled, isMultipleDisabled = _param_isMultipleDisabled === void 0 ? false : _param_isMultipleDisabled, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, accept = param.accept, onAdd = param.onAdd, testId = param.testId, tweakStyles = param.tweakStyles, data = param.data; var classes = useStyles$z({ theme: tweakStyles }); var _useState = _sliced_to_array$g(React.useState(false), 2), isDragOver = _useState[0], setIsDragOver = _useState[1]; var handleAdd = function(files) { if (isDisabled || trueReactPlatformHelpers.isEmpty(files) || (files === null || files === void 0 ? void 0 : files.length) === 0) { return; } onAdd === null || onAdd === void 0 ? void 0 : onAdd(_to_consumable_array$5(files)); }; var handleDragStart = function(event) { blockEvent(event); setIsDragOver(true); }; var handleDragStop = function(event) { blockEvent(event); setIsDragOver(false); }; var handleDrop = function(event) { handleDragStop(event); handleAdd(event.dataTransfer.files); }; var handleFileChange = function(event) { handleAdd(event.target.files); }; var dndHandlers = !isDragAndDropDisabled && !isDisabled ? { onDragOver: handleDragStart, onDragEnter: handleDragStart, onDragLeave: handleDragStop, onDrop: handleDrop } : void 0; var _obj2; return /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({ className: classes.root }, addDataAttributes(data), trueReactPlatformHelpers.addDataTestId(testId)), { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", { className: clsx(classes.label, _define_property$F({}, classes.requiredLabel, isRequired)), children: label }), !isReadOnly && /* @__PURE__ */ jsxs("div", _object_spread_props$y(_object_spread$D({ className: clsx(classes.inputWrapper, (_obj2 = {}, _define_property$F(_obj2, classes.dragged, isDragOver), _define_property$F(_obj2, classes.disabled, isDisabled), _define_property$F(_obj2, classes.active, isActive), _obj2)) }, dndHandlers), { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", { className: classes.text, children: text }), /* @__PURE__ */ jsx("label", { className: classes.inputLabel, children: /* @__PURE__ */ jsx("input", _object_spread$D({ ref, type: "file", value: "", onChange: handleFileChange, multiple: !isMultipleDisabled, disabled: isDisabled, accept }, trueReactPlatformHelpers.addDataTestId(testId, "input"))) }) ] })), trueReactPlatformHelpers.isReactNodeNotEmpty(description) && /* @__PURE__ */ jsx("div", { className: classes.description, children: description }), /* @__PURE__ */ jsx("div", { className: classes.fileList, children: fileList }) ] })); }); FileInput.displayName = "FileInput"; var BUTTON_SIZE_S = 24; var BUTTON_SIZE_M = 32; var ICON_SIZE = 20; var useStyles$y = createThemedStyles("IconButton", { root: { display: "flex", justifyContent: "center", alignItems: "center", cursor: "pointer", outline: "none", boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "background-color, color, border-color", border: "none", position: "relative", boxShadow: "none", borderRadius: "50%", background: "none", padding: 0, flexShrink: 0, "&:disabled": { extend: "disabled" }, "&:active": { extend: "active" } }, "cancel-light": {}, cancel: {}, main: {}, custom: {}, active: {}, disabled: { cursor: "not-allowed", pointerEvents: "none" }, loading: { "& $loader": { display: "block" } }, icon: { display: "flex", alignItems: "center", width: ICON_SIZE, height: ICON_SIZE }, loader: { display: "none", position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", width: ICON_SIZE, height: ICON_SIZE }, s: { width: BUTTON_SIZE_S, height: BUTTON_SIZE_S }, m: { width: BUTTON_SIZE_M, height: BUTTON_SIZE_M } }); function _define_property$E(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$C(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$E(target, key, source[key]); }); } return target; } function ownKeys$x(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$x(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$x(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$9(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$9(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; } var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$9(_param, [ "icon", "size", "view", "isDisabled", "isActive", "isLoading", "type", "testId", "tweakStyles", "data", "onClick" ]); var classes = useStyles$y({ theme: tweakStyles }); var hasNoAction = isDisabled || isLoading; var _obj2; return /* @__PURE__ */ jsx("button", _object_spread_props$x(_object_spread$C({ ref, className: clsx(classes.root, classes[view], classes[size], (_obj2 = {}, _define_property$E(_obj2, classes.disabled, isDisabled), _define_property$E(_obj2, classes.active, isActive), _define_property$E(_obj2, classes.loading, isLoading), _obj2)), type, disabled: isDisabled, onClick: hasNoAction ? void 0 : onClick }, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: isLoading ? /* @__PURE__ */ jsx("span", { className: classes.loader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: "default", useCurrentColor: true }) }) : /* @__PURE__ */ jsx("span", { className: classes.icon, children: renderIcon(icon) }) })); }); var useStyles$x = createThemedStyles("Tooltip", { root: { display: "inline-block", boxSizing: "border-box" }, tooltip: { fontSize: 14, padding: [ 18, 20 ], letterSpacing: 0.15, backgroundColor: colors.CLASSIC_WHITE, color: colors.FONT_MAIN, boxShadow: "0 0 1px ".concat(rgba(colors.FONT_MAIN, 0.4), ", 0 -2px 6px ").concat(rgba(colors.FONT_MAIN, 0.06), ", 0 8px 32px -8px ").concat(rgba(colors.FONT_MAIN, 0.3)), borderRadius: 12, lineHeight: 1.4, maxWidth: 320 }, hint: { whiteSpace: "nowrap", fontSize: 12, padding: [ 8, 12 ], borderRadius: dimensions.BORDER_RADIUS_SMALL, backgroundColor: colors.FONT_MEDIUM, color: colors.CLASSIC_WHITE, letterSpacing: 0.2 }, info: {}, error: { "&$tooltip": { backgroundColor: colors.RED_WARNING, color: colors.CLASSIC_WHITE }, "&$hint": { backgroundColor: colors.RED_WARNING } } }); function _define_property$D(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$B(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$D(target, key, source[key]); }); } return target; } function ownKeys$w(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$w(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$w(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Tooltip = function(param) { var text = param.text, _param_view = param.view, view = _param_view === void 0 ? "tooltip" : _param_view, _param_type = param.type, type = _param_type === void 0 ? "info" : _param_type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles; var classes = useStyles$x({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", _object_spread_props$w(_object_spread$B({ className: clsx(classes.root, classes[view], classes[type]) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: text })); }; var useStyles$w = createThemedStyles("TextWithTooltip", { root: { position: "relative" }, tooltip: { zIndex: 9999 }, clickable: { cursor: "pointer" } }); function _array_like_to_array$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$f(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$4(arr) { if (Array.isArray(arr)) return _array_like_to_array$f(arr); } function _define_property$C(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$4(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$f(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$f() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$4() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$A(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$C(target, key, source[key]); }); } return target; } function ownKeys$v(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$v(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$v(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$f(arr, i) { return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$f(); } function _to_consumable_array$4(arr) { return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$4(); } function _unsupported_iterable_to_array$f(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen); } var TextWithTooltip = function(param) { var children = param.children, tooltipText = param.tooltipText, _param_tooltipPosition = param.tooltipPosition, tooltipPosition = _param_tooltipPosition === void 0 ? "top" : _param_tooltipPosition, _param_tooltipView = param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_tooltipModifiers = param.tooltipModifiers, tooltipModifiers = _param_tooltipModifiers === void 0 ? [] : _param_tooltipModifiers, tooltipOffsetOptions = param.tooltipOffsetOptions, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_mouseEventType = param.mouseEventType, mouseEventType = _param_mouseEventType === void 0 ? "hover" : _param_mouseEventType, hoverDelay = param.hoverDelay, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles; var classes = useStyles$w({ theme: tweakStyles }); var tweakTooltipStyles = useTweakStyles({ tweakStyles, className: "tweakTooltip", currentComponentName: "TextWithTooltip" }); var _useState = _sliced_to_array$f(React.useState(false), 2), isTooltipVisible = _useState[0], setIsTooltipVisible = _useState[1]; var _useState1 = _sliced_to_array$f(React.useState(), 2), tooltipTimeout = _useState1[0], setTooltipTimeout = _useState1[1]; var root2 = React.useRef(null); var tooltip = React.useRef(null); var hasDelay = hoverDelay !== void 0; var handleMouseEnter = function() { if (hasDelay) { var timeout = setTimeout(function() { setIsTooltipVisible(true); }, hoverDelay); setTooltipTimeout(timeout); } else { setIsTooltipVisible(true); } }; var handleMouseLeave = function() { if (hasDelay) { clearTimeout(tooltipTimeout); } setIsTooltipVisible(false); }; React.useEffect(function() { return function() { return clearTimeout(tooltipTimeout); }; }, []); var _usePopper = usePopper(root2.current, tooltip.current, { enabled: isTooltipVisible, placement: tooltipPosition, modifiers: [ { name: "offset", options: _object_spread$A({ offset: [ 0, 6 ] }, tooltipOffsetOptions) } ].concat(_to_consumable_array$4(tooltipModifiers)) }), popperStyles = _usePopper.styles, attributes = _usePopper.attributes; useOnClickOutsideWithRef(tooltip, function() { if (mouseEventType === "click") { setIsTooltipVisible(false); } }, root2); var props = mouseEventType === "click" ? { onClick: function() { return setIsTooltipVisible(true); } } : { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }; var shouldShowTooltip = tooltipText !== void 0 && tooltipText !== null && !isDisabled; return /* @__PURE__ */ jsxs("div", _object_spread_props$v(_object_spread$A({ className: clsx(classes.root, mouseEventType === "click" && shouldShowTooltip && classes.clickable) }, shouldShowTooltip ? props : void 0, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { ref: root2, children: [ shouldShowTooltip && /* @__PURE__ */ jsx(reactOverlays.Portal, { container: shouldRenderInBody ? document.body : root2.current, children: /* @__PURE__ */ jsx("div", _object_spread_props$v(_object_spread$A({ className: classes.tooltip, style: popperStyles.popper }, attributes.popper), { ref: tooltip, children: /* @__PURE__ */ jsx(Tooltip, { view: tooltipView, type: tooltipType, text: tooltipText, tweakStyles: tweakTooltipStyles }) })) }), children ] })); }; function _define_property$B(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var FILE_ICON_DEFAULT = "file-other"; var _obj; var iconTypeMap = (_obj = {}, _define_property$B(_obj, mimeTypes.xls, "file-excel"), _define_property$B(_obj, mimeTypes.xlsx, "file-excel"), _define_property$B(_obj, mimeTypes.jpeg, "file-image"), _define_property$B(_obj, mimeTypes.png, "file-image"), _define_property$B(_obj, mimeTypes.pdf, "file-pdf"), _define_property$B(_obj, mimeTypes.doc, "file-word"), _define_property$B(_obj, mimeTypes.docx, "file-word"), _define_property$B(_obj, mimeTypes.xml, "file-xml"), _define_property$B(_obj, mimeTypes.zip, "file-zip"), _obj); var getFileExtensionByFilename = function(fileName) { var splitFileName = fileName.split("."); return splitFileName.length > 1 ? splitFileName.pop() : void 0; }; var getMimeTypeByFilename = function(fileName) { var ext = getFileExtensionByFilename(fileName); return trueReactPlatformHelpers.isNotEmpty(ext) ? mimeTypes[ext] : void 0; }; var getFileIcon = function(param) { var type = param.type, name = param.name; if (trueReactPlatformHelpers.isNotEmpty(type) && type in iconTypeMap) { return iconTypeMap[type]; } var mimeType = getMimeTypeByFilename(name); if (trueReactPlatformHelpers.isNotEmpty(mimeType) && mimeType in iconTypeMap) { return iconTypeMap[mimeType]; } return FILE_ICON_DEFAULT; }; var useStyles$v = createThemedStyles("FileItem", { root: { display: "flex", flexDirection: "column", gap: 4 }, fileItemWrapper: { display: "flex", gap: 12, width: "100%", cursor: "pointer", boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "background-color, color, box-shadow, border-color" }, m: { "&$fileItemWrapper": { padding: [ 10, 10, 10, 12 ] }, "--icon-size": "20px" }, l: { "&$fileItemWrapper": { padding: [ 12, 16 ] }, "--icon-size": "32px" }, fileIcon: { maxWidth: "var(--icon-size)", maxHeight: "var(--icon-size)" }, fileName: { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", fontSize: 16 }, fileNameContainer: { overflow: "hidden", marginRight: "auto" }, preloader: { display: "flex", margin: 6 }, "preloader-dots": { width: 26, marginTop: 12 }, "preloader-default": { width: 20, height: 20 }, "preloader-logo": { width: 20, height: 20 }, metadata: { display: "flex", flexDirection: "column", gap: 2, fontSize: 12 }, actions: { display: "flex", flexShrink: 0, margin: -6 }, fileSize: {}, footer: {}, error: { fontSize: 12 }, info: { fontSize: 12 }, disabled: { cursor: "not-allowed" } }); var themedPreloaderStyles = { tweakDotsPreloader: { root: { gap: 4, "--dot-size": "6px" } } }; function _define_property$A(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$z(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$A(target, key, source[key]); }); } return target; } function ownKeys$u(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$u(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$u(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var FileItem = function(param) { var fileInfo = param.fileInfo, _param_icon = param.icon, icon = _param_icon === void 0 ? getFileIcon(fileInfo) : _param_icon, metadata = param.metadata, actions = param.actions, error = param.error, info = param.info, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_areActionsDisabled = param.areActionsDisabled, areActionsDisabled = _param_areActionsDisabled === void 0 ? false : _param_areActionsDisabled, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldShowSize = param.shouldShowSize, shouldShowSize = _param_shouldShowSize === void 0 ? false : _param_shouldShowSize, _param_itemSize = param.itemSize, itemSize = _param_itemSize === void 0 ? "m" : _param_itemSize, _param_preloaderType = param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "default" : _param_preloaderType, _param_removeIcon = param.removeIcon, removeIcon = _param_removeIcon === void 0 ? "trash-can" : _param_removeIcon, onRemove = param.onRemove, onClick = param.onClick, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles; var classes = useStyles$v({ theme: tweakStyles }); var tweakIconButtonStyles = useTweakStyles({ tweakStyles, className: "tweakRemoveIconButton", currentComponentName: "FileItem" }); var tweakPreloaderStyles = useTweakStyles({ innerStyles: themedPreloaderStyles, tweakStyles, className: "tweakPreloader", currentComponentName: "FileItem" }); var tweakTooltipStyles = useTweakStyles({ tweakStyles, className: "tweakTooltip", currentComponentName: "FileItem" }); var handleClick = function(event) { event.stopPropagation(); onClick === null || onClick === void 0 ? void 0 : onClick(event); }; var handleRemove = function(event) { event.stopPropagation(); onRemove === null || onRemove === void 0 ? void 0 : onRemove(event); }; var name = fileInfo.name, size = fileInfo.size; var hasRemoveButton = trueReactPlatformHelpers.isFunction(onRemove); return /* @__PURE__ */ jsxs("div", { className: classes.root, children: [ /* @__PURE__ */ jsxs("div", _object_spread_props$u(_object_spread$z({ className: clsx(classes.fileItemWrapper, classes[itemSize], _define_property$A({}, classes.disabled, isDisabled)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), trueReactPlatformHelpers.addClickHandler(handleClick, !isDisabled)), { children: [ /* @__PURE__ */ jsx("div", { className: classes.fileIcon, children: renderIcon(icon) }), /* @__PURE__ */ jsxs("div", { className: classes.fileNameContainer, children: [ /* @__PURE__ */ jsx(TextWithTooltip, { tooltipText: name, tooltipView: "hint", tweakStyles: tweakTooltipStyles, children: /* @__PURE__ */ jsx("div", { className: classes.fileName, children: name }) }), /* @__PURE__ */ jsxs("div", { className: classes.metadata, children: [ metadata, shouldShowSize && trueReactPlatformHelpers.isNotEmpty(size) && /* @__PURE__ */ jsx("div", { className: classes.fileSize, children: filesize.filesize(size) }) ] }) ] }), /* @__PURE__ */ jsxs("div", { className: classes.actions, children: [ isLoading ? /* @__PURE__ */ jsx("div", { className: clsx(classes.preloader, classes["preloader-".concat(preloaderType)]), children: /* @__PURE__ */ jsx(ThemedPreloader, { type: preloaderType, tweakStyles: tweakPreloaderStyles, useCurrentColor: true }) }) : hasRemoveButton && /* @__PURE__ */ jsx(IconButton, { icon: removeIcon, onClick: handleRemove, isDisabled: areActionsDisabled, tweakStyles: tweakIconButtonStyles }), actions ] }) ] })), /* @__PURE__ */ jsxs("div", { className: classes.footer, children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(error) && /* @__PURE__ */ jsx("div", { className: classes.error, children: error }), trueReactPlatformHelpers.isReactNodeNotEmpty(info) && /* @__PURE__ */ jsx("div", { className: classes.info, children: info }) ] }) ] }); }; var PERIODS = [ "THIS_MONTH", "LAST_MONTH", "THIS_YEAR", "LAST_YEAR", "CUSTOM" ]; var SelectLocales = { ru: { clear: "Очистить", all: "Все", chosen: "Выбранные", nothingFound: "Ничего не найдено", searchPlaceholder: "Поиск" }, en: { clear: "Clear", all: "All", chosen: "Chosen", nothingFound: "Nothing found", searchPlaceholder: "Search" } }; var FilterLocales = { ru: { clear: "Очистить", all: "Все", other: "Остальные", chosen: "Выбранные", nothingFound: "Не найдено", from: "От", to: "До", back: "Назад", searchPlaceholder: "Поиск", displayedFields: "Поля для поиска", months: [ "Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь" ], periods: { THIS_MONTH: "Этот месяц", LAST_MONTH: "Прошлый месяц", THIS_YEAR: "Этот год", LAST_YEAR: "Прошлый год", CUSTOM: "Другой период" } }, en: { clear: "Clear", all: "All", other: "Others", chosen: "Chosen", nothingFound: "Nothing found", from: "From", to: "To", back: "Back", searchPlaceholder: "Search", displayedFields: "Displayed fields", months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], periods: { THIS_MONTH: "This month", LAST_MONTH: "Previous month", THIS_YEAR: "This year", LAST_YEAR: "Previous year", CUSTOM: "Custom" } } }; var DEFAULT_LOCALE$1 = "en"; var DEFAULT_SELECT_LOCALE = "en"; var DEFAULT_DATE_FORMAT$1 = "dd.MM.yyyy"; var DEFAULT_PICKER_PROPS = {}; var PERIODS_GETTERS = { THIS_MONTH: function() { var today = new Date(); return { from: dateFns.startOfMonth(today), to: dateFns.endOfMonth(today) }; }, LAST_MONTH: function() { var day = dateFns.sub(new Date(), { months: 1 }); return { from: dateFns.startOfMonth(day), to: dateFns.endOfMonth(day) }; }, THIS_YEAR: function() { var today = new Date(); return { from: dateFns.startOfYear(today), to: dateFns.endOfYear(today) }; }, LAST_YEAR: function() { var day = dateFns.sub(new Date(), { years: 1 }); return { from: dateFns.startOfYear(day), to: dateFns.endOfYear(day) }; } }; var getLocale$1 = function() { var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE$1, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0; return merge$1({}, FilterLocales[key], custom, custom2); }; var getSelectLocale = function() { var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_SELECT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0; return merge$1({}, SelectLocales[key], custom, custom2); }; var sortValues = function(arr) { return arr.includes(void 0) ? arr : arr.sort(function(a, b) { return a < b ? -1 : 1; }); }; var defaultConvertFunction$1 = function(val) { return String(val); }; var getPrevSpaces = function(val, position) { return val.slice(0, position).split("").filter(isSpaceChar).length; }; var getNewCaretPosition = function(defaultPosition, oldValue, newValue, isDeleteForwardAction) { if (oldValue === newValue) { return isDeleteForwardAction ? defaultPosition + 1 : defaultPosition; } var isAdding = newValue.length > oldValue.length; var oldPrevSpaces = getPrevSpaces(oldValue, defaultPosition - (isAdding ? 1 : 0)); var newPrevSpaces = getPrevSpaces(newValue, defaultPosition); var diff = newPrevSpaces - oldPrevSpaces; var res = defaultPosition + diff; if (res <= 0) { return 0; } return res - (isSpaceChar(newValue[res - 1]) ? 1 : 0); }; var formatNumberWithDefault = function(value, defaultValue) { var val = formatNumber(value); return trueReactPlatformHelpers.isStringNotEmpty(val) ? val : formatNumber(defaultValue); }; var constructRegExp = function(param) { var canBeFloat = param.canBeFloat, canBeNegative = param.canBeNegative, intPartPrecision = param.intPartPrecision, precision = param.precision; var basePart = "\\d{0,".concat(intPartPrecision, "}"); var floatPart = "(\\.\\d{0,".concat(precision, "})?"); var negativePart = "(\\-)?"; return "^".concat(canBeNegative ? negativePart : "").concat(basePart).concat(canBeFloat ? floatPart : "", "$"); }; function _array_like_to_array$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$e(arr) { if (Array.isArray(arr)) return arr; } function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _async_to_generator$2(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } function _define_property$z(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$e(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$e() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$y(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$z(target, key, source[key]); }); } return target; } function _object_without_properties$8(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$8(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 _sliced_to_array$e(arr, i) { return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e(); } function _unsupported_iterable_to_array$e(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen); } function _ts_generator$2(thisArg, body) { var f, y, t, g, _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function(v) { return step([ n, v ]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [ op[0] & 2, t.value ]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [ 0 ]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [ 6, e ]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$8(_param, [ "value", "canBeFloat", "canBeNegative", "defaultValue", "precision", "intPartPrecision", "onChange", "onBlur", "min", "max" ]); var _useState = _sliced_to_array$e(React.useState(function() { return formatNumberWithDefault(value, defaultValue); }), 2), showedValue = _useState[0], setShowedValue = _useState[1]; var _useState1 = _sliced_to_array$e(React.useState(false), 2), isDeleteForwardAction = _useState1[0], setIsDeleteForwardAction = _useState1[1]; var handleKeyDown = function(event) { setIsDeleteForwardAction(event.key === "Delete"); }; var setShowedValueWithDefault = function(v) { setShowedValue(trueReactPlatformHelpers.isStringNotEmpty(v) ? v : formatNumber(defaultValue)); }; var handleChange = function() { var _ref = _async_to_generator$2(function(inputValue, event) { var oldValue, target, _target_selectionStart, defaultCaretPos, numString, numberRegexp, hasDot, formattedValue, newValue; return _ts_generator$2(this, function(_state) { switch (_state.label) { case 0: oldValue = showedValue; target = event.target; defaultCaretPos = (_target_selectionStart = target.selectionStart) !== null && _target_selectionStart !== void 0 ? _target_selectionStart : 0; numString = removeStringFormat(inputValue); if (numString === "") { onChange(void 0); setShowedValue(""); return [ 2 ]; } numberRegexp = new RegExp(constructRegExp({ precision, intPartPrecision, canBeNegative, canBeFloat })); if (!!numberRegexp.test(numString)) return [ 3, 2 ]; return [ 4, setShowedValue(oldValue) ]; case 1: _state.sent(); setCaretPosition(target, defaultCaretPos - 1); return [ 2 ]; case 2: hasDot = canBeFloat && /^[-]*[\d\s]*[.,]$/.test(inputValue); formattedValue = formatStringNumber(numString); newValue = hasDot ? "".concat(formattedValue, ".") : formattedValue; return [ 4, setShowedValue(newValue) ]; case 3: _state.sent(); setCaretPosition(target, getNewCaretPosition(defaultCaretPos, oldValue, newValue, isDeleteForwardAction)); return [ 2 ]; } }); }); return function handleChange2(inputValue, event) { return _ref.apply(this, arguments); }; }(); var handleBlur = function(event) { var val = event.currentTarget.value; var num = stringToNumber(val); var newValue = num !== void 0 ? getNumberInRange(num, min2, max2) : void 0; if (newValue !== value) { onChange(newValue); } else { setShowedValueWithDefault(formatNumber(value)); } if (onBlur !== void 0) { onBlur(event); } }; useDidMountEffect(function() { if (value !== void 0) { setShowedValueWithDefault(formatNumber(value)); } else { setShowedValue(formatNumber(value)); } }, [ value ]); return /* @__PURE__ */ jsx(Input, _object_spread$y({ value: showedValue, onChange: handleChange, onBlur: handleBlur, onKeyDown: handleKeyDown, ref }, props)); }); function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } var nativeKeys = overArg(Object.keys, Object); const nativeKeys$1 = nativeKeys; var objectProto$2 = Object.prototype; var hasOwnProperty$1 = objectProto$2.hasOwnProperty; function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys$1(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty$1.call(object, key) && key != "constructor") { result.push(key); } } return result; } function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } function stubArray() { return []; } var objectProto$1 = Object.prototype; var propertyIsEnumerable = objectProto$1.propertyIsEnumerable; var nativeGetSymbols$1 = Object.getOwnPropertySymbols; var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols$1(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; const getSymbols$1 = getSymbols; function copySymbols(source, object) { return copyObject(source, getSymbols$1(source), object); } function arrayPush(array, values) { var index = -1, length = values.length, offset2 = array.length; while (++index < length) { array[offset2 + index] = values[index]; } return array; } var nativeGetSymbols = Object.getOwnPropertySymbols; var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols$1(object)); object = getPrototype$1(object); } return result; }; const getSymbolsIn$1 = getSymbolsIn; function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn$1(source), object); } function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object)); } function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols$1); } function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn$1); } var DataView = getNative(root$1, "DataView"); const DataView$1 = DataView; var Promise$1 = getNative(root$1, "Promise"); const Promise$2 = Promise$1; var Set$1 = getNative(root$1, "Set"); const Set$2 = Set$1; var WeakMap$1 = getNative(root$1, "WeakMap"); const WeakMap$2 = WeakMap$1; var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]"; var dataViewTag$2 = "[object DataView]"; var dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$2), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$2); var getTag = baseGetTag; if (DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$2 || Map$2 && getTag(new Map$2()) != mapTag$3 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$2 && getTag(new Set$2()) != setTag$3 || WeakMap$2 && getTag(new WeakMap$2()) != weakMapTag$1) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag$2; case mapCtorString: return mapTag$3; case promiseCtorString: return promiseTag; case setCtorString: return setTag$3; case weakMapCtorString: return weakMapTag$1; } } return result; }; } const getTag$1 = getTag; var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; function initCloneArray(array) { var length = array.length, result = new array.constructor(length); if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { result.index = array.index; result.input = array.input; } return result; } function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } var reFlags = /\w*$/; function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]"; var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]"; function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag$1: return cloneArrayBuffer(object); case boolTag$1: case dateTag$1: return new Ctor(+object); case dataViewTag$1: return cloneDataView(object, isDeep); case float32Tag$1: case float64Tag$1: case int8Tag$1: case int16Tag$1: case int32Tag$1: case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1: return cloneTypedArray(object, isDeep); case mapTag$2: return new Ctor(); case numberTag$1: case stringTag$1: return new Ctor(object); case regexpTag$1: return cloneRegExp(object); case setTag$2: return new Ctor(); case symbolTag$1: return cloneSymbol(object); } } var mapTag$1 = "[object Map]"; function baseIsMap(value) { return isObjectLike(value) && getTag$1(value) == mapTag$1; } var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap; var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; const isMap$1 = isMap; var setTag$1 = "[object Set]"; function baseIsSet(value) { return isObjectLike(value) && getTag$1(value) == setTag$1; } var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet; var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; const isSet$1 = isSet; var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4; var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]"; 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 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; function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== void 0) { return result; } if (!isObject(value)) { return value; } var isArr = isArray$1(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag$1(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer$1(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || isFunc && !object) { result = isFlat || isFunc ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } stack || (stack = new Stack()); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet$1(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); } else if (isMap$1(value)) { value.forEach(function(subValue, key2) { result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); }); } var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; var props = isArr ? void 0 : keysFunc(value); arrayEach(props || value, function(subValue, key2) { if (props) { key2 = subValue; subValue = value[key2]; } assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); }); return result; } var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4; function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } var FILTER_HEIGHT = 36; var useStyles$u = createThemedStyles("FiltersPane", { root: { display: "flex", flexWrap: "wrap", gap: 8, width: "100%" }, settings: { display: "flex", alignItems: "center", justifyContent: "center", borderRadius: 18, boxSizing: "border-box", width: 40, height: FILTER_HEIGHT, cursor: "pointer", transition: animations.defaultTransition, transitionProperty: "background-color" }, settingsIcon: { width: 16, height: 16 }, clear: { display: "flex", alignItems: "center", height: FILTER_HEIGHT }, filterWithClearButton: { display: "flex", gap: 16, minWidth: 0 } }); var clearButtonStyles$4 = { s: { paddingLeft: 0, paddingRight: 0, minWidth: "unset" }, text: { background: "none", color: colors.GREY_ACTIVE, "&:hover, &:focus": { color: colors.FONT_MEDIUM }, "&:active": { color: colors.FONT_MAIN }, "&:hover, &:focus, &:active": { background: "none", borderColor: "transparent" } } }; var innerTextButtonStyles = { text: { color: colors.GREY_ACTIVE, "&:hover, &:focus": { color: colors.FONT_MEDIUM }, "&:active": { color: colors.FONT_MEDIUM } } }; var useStyles$t = createThemedStyles("FilterInterval", { root: { padding: 8, background: colors.CLASSIC_WHITE }, inputWrapper: { padding: [ 4, 12 ], display: "grid", gridTemplateColumns: "repeat(2, 1fr)", gap: 20, marginBottom: 12 }, autosize: { minWidth: 120, height: 0, opacity: 0, paddingRight: 16, fontSize: 16, whiteSpace: "pre", userSelect: "none", pointerEvents: "none" }, clear: { display: "flex", justifyContent: "flex-end" } }); var inputStyles$3 = { input: { minWidth: 120 }, icon: { padding: 0, width: 24, "&:last-child": { paddingRight: 0 } } }; var clearButtonStyles$3 = cloneDeep(innerTextButtonStyles); function _define_property$y(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$x(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$y(target, key, source[key]); }); } return target; } function ownKeys$t(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$t(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$t(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var FilterInterval = function(param) { var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale2 = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId; var classes = useStyles$t({ theme: tweakStyles }); var translates = React.useMemo(function() { return getLocale$1(localeKey, locale2); }, [ localeKey, locale2 ]); var handleClear = function() { onChange(void 0); }; var handleFromChange = function(v) { if (v === void 0 && (value === null || value === void 0 ? void 0 : value[1]) === void 0) { onChange(void 0); return; } onChange(sortValues([ v, value === null || value === void 0 ? void 0 : value[1] ])); }; var handleToChange = function(v) { if (v === void 0 && (value === null || value === void 0 ? void 0 : value[0]) === void 0) { onChange(void 0); return; } onChange(sortValues([ value === null || value === void 0 ? void 0 : value[0], v ])); }; var tweakInputStyles = useTweakStyles({ innerStyles: inputStyles$3, tweakStyles, className: "tweakInput", currentComponentName: "FilterInterval" }); var tweakClearButtonStyles = useTweakStyles({ innerStyles: clearButtonStyles$3, tweakStyles, className: "tweakClearButton", currentComponentName: "FilterInterval" }); return /* @__PURE__ */ jsxs("div", _object_spread_props$t(_object_spread$x({ className: classes.root }, addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("div", { className: classes.inputWrapper, children: [ /* @__PURE__ */ jsxs("div", { children: [ /* @__PURE__ */ jsx(NumberInput, { onChange: handleFromChange, value: value === null || value === void 0 ? void 0 : value[0], label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from, border: "bottom", canBeFloat, isClearable: true, min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min, max: fromInput === null || fromInput === void 0 ? void 0 : fromInput.max, maxLength: fromInput === null || fromInput === void 0 ? void 0 : fromInput.maxLength, tweakStyles: tweakInputStyles, testId: trueReactPlatformHelpers.getTestId(testId, "start") }), withFieldNameInLabel && /* @__PURE__ */ jsxs("div", { className: classes.autosize, children: [ labelName, " ", translates.from ] }) ] }), /* @__PURE__ */ jsxs("div", { children: [ /* @__PURE__ */ jsx(NumberInput, { onChange: handleToChange, value: value === null || value === void 0 ? void 0 : value[1], label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to, border: "bottom", canBeFloat, isClearable: true, min: toInput === null || toInput === void 0 ? void 0 : toInput.min, max: toInput === null || toInput === void 0 ? void 0 : toInput.max, maxLength: toInput === null || toInput === void 0 ? void 0 : toInput.maxLength, tweakStyles: tweakInputStyles, testId: trueReactPlatformHelpers.getTestId(testId, "end") }), withFieldNameInLabel && /* @__PURE__ */ jsxs("div", { className: classes.autosize, children: [ labelName, " ", translates.to ] }) ] }) ] }), /* @__PURE__ */ jsx("div", { className: classes.clear, children: /* @__PURE__ */ jsx(Button, { onClick: handleClear, size: "s", view: "text", testId: trueReactPlatformHelpers.getTestId(testId, "clear-button"), tweakStyles: tweakClearButtonStyles, children: translates.clear }) }) ] })); }; var MultiSelectLocales = { ru: { clear: "Очистить", all: "Все", chosen: "Выбранные", nothingFound: "Не найдено", searchPlaceholder: "Поиск" }, en: { clear: "Clear", all: "All", chosen: "Chosen", nothingFound: "Nothing found", searchPlaceholder: "Search" } }; var DEFAULT_LOCALE = "en"; var defaultConvertFunction = function(val) { return String(val); }; var getLocale = function() { var key = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : DEFAULT_LOCALE, custom = arguments.length > 1 ? arguments[1] : void 0, custom2 = arguments.length > 2 ? arguments[2] : void 0; return merge$1({}, MultiSelectLocales[key], custom, custom2); }; function _define_property$x(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$w(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$x(target, key, source[key]); }); } return target; } var ITEM_HEIGHT$1 = 40; var TOP_GAP = 12; var useStyles$s = createThemedStyles("MultiSelectList", { root: { width: 220, background: colors.CLASSIC_WHITE }, list: _object_spread$w({ paddingTop: TOP_GAP, maxHeight: ITEM_HEIGHT$1 * 5 + TOP_GAP, overscrollBehavior: "contain" }, helpers.withScrollBar), label: { boxSizing: "border-box", fontSize: 14, padding: [ 12, 16 ], userSelect: "none", display: "flex", alignItems: "center", color: colors.FONT_LABEL }, labelChosen: { fontWeight: "bold", color: colors.FONT_MAIN, padding: [ 4, 16, 12 ] }, withoutTopGap: { paddingTop: 0 }, item: { boxSizing: "border-box", padding: 0, maxWidth: "100%", fontSize: 14 }, option: { display: "inline-block", userSelect: "none", maxWidth: "100%", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, panel: { display: "flex", padding: [ 0, 6, 8 ] }, clear: { marginLeft: "auto" }, selectedItem: {}, preloader: { width: 80, height: ITEM_HEIGHT$1, margin: "auto", display: "flex", alignItems: "center", justifyContent: "center" }, dropdownInput: { borderBottom: [ 1, "solid", colors.BORDER_MAIN ] }, nothingFound: { display: "flex", alignItems: "center", justifyContent: "center", textAlign: "center", padding: 16, fontSize: 14 } }); var searchInputStyles$2 = { tweakInput: { inputWrapper: { backgroundColor: "transparent", border: "none", height: 40 } } }; var checkboxStyles = { root: { padding: [ 11, 16 ], boxSizing: "border-box", width: "100%" }, children: { marginRight: "auto", overflow: "hidden" } }; var clearButtonStyles$2 = { text: { color: colors.GREY_ACTIVE, "&:hover, &:focus": { color: colors.FONT_MEDIUM }, "&:active": { color: colors.FONT_MEDIUM } } }; function _array_like_to_array$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$d(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$3(arr) { if (Array.isArray(arr)) return _array_like_to_array$d(arr); } function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _async_to_generator$1(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } function _define_property$w(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$3(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$d(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$d() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$3() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$v(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$w(target, key, source[key]); }); } return target; } function ownKeys$s(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$s(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$s(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$d(arr, i) { return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$d(); } function _to_consumable_array$3(arr) { return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$3(); } function _unsupported_iterable_to_array$d(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen); } function _ts_generator$1(thisArg, body) { var f, y, t, g, _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function(v) { return step([ n, v ]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [ op[0] & 2, t.value ]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [ 0 ]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [ 6, e ]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function MultiSelectList(param) { var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId; var isMounted = useIsMounted(); var classes = useStyles$s({ theme: tweakStyles }); var tweakCheckboxStyles = useTweakStyles({ innerStyles: checkboxStyles, tweakStyles, className: "tweakCheckbox", currentComponentName: "MultiSelectList" }); var tweakSearchInputStyles = useTweakStyles({ innerStyles: searchInputStyles$2, tweakStyles, className: "tweakSearchInput", currentComponentName: "MultiSelectList" }); var tweakClearButtonStyles = useTweakStyles({ innerStyles: clearButtonStyles$2, tweakStyles, className: "tweakClearButton", currentComponentName: "MultiSelectList" }); var _useState = _sliced_to_array$d(React.useState(0), 2), keyCursorOn = _useState[0], setKeyCursorOn = _useState[1]; var _useState1 = _sliced_to_array$d(React.useState(""), 2), searchValue = _useState1[0], setSearchValue = _useState1[1]; var _useState2 = _sliced_to_array$d(React.useState([]), 2), allOptions = _useState2[0], setAllOptions = _useState2[1]; var _useState3 = _sliced_to_array$d(React.useState(false), 2), isLoading = _useState3[0], setIsLoading = _useState3[1]; var _useState4 = _sliced_to_array$d(React.useState(false), 2), isLoadingOptionsOnScroll = _useState4[0], setLoadingOptionsOnScroll = _useState4[1]; var _useState5 = _sliced_to_array$d(React.useState(0), 2), activePage = _useState5[0], setActivePage = _useState5[1]; var _useState6 = _sliced_to_array$d(React.useState(false), 2), isMaxPage = _useState6[0], setIsMaxPage = _useState6[1]; var observer = React.useRef(); var chosenValues = value === null || value === void 0 ? void 0 : value.include; var translates = React.useMemo(function() { return getLocale(localeKey, locale2); }, [ localeKey, locale2 ]); var chosenValuesIds = React.useMemo(function() { return chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.map(getValueId); }, [ getValueId, chosenValues ]); var unchosenOptions = React.useMemo(function() { return allOptions.filter(function(v) { return !(chosenValuesIds === null || chosenValuesIds === void 0 ? void 0 : chosenValuesIds.includes(getValueId(v))); }); }, [ getValueId, allOptions, chosenValuesIds ]); var handleSearchInputChange = React.useCallback(function() { var _ref = _async_to_generator$1(function(inputValue) { var _inputValue_trim, response; return _ts_generator$1(this, function(_state) { switch (_state.label) { case 0: if (fetchOptions === void 0) { return [ 2 ]; } setIsLoading(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions((_inputValue_trim = inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) !== null && _inputValue_trim !== void 0 ? _inputValue_trim : "") ]; case 2: response = _state.sent(); if (isMounted() && response !== void 0) { setAllOptions(response); setActivePage(0); setIsMaxPage(response.length === 0 || pageSize !== void 0 && response.length < pageSize); } return [ 3, 4 ]; case 3: if (isMounted()) { setIsLoading(false); } return [ 7 ]; case 4: return [ 2 ]; } }); }); return function(inputValue) { return _ref.apply(this, arguments); }; }(), [ fetchOptions, pageSize ]); var changeSearchValue = React.useCallback(tsDebounce.debounce(handleSearchInputChange), [ handleSearchInputChange ]); function handleOnChange(inputValue) { setSearchValue(inputValue); if (fetchOptions === void 0) { if (options !== void 0) { var lowerSearchValue = inputValue.toLowerCase(); setAllOptions(options.filter(function(o) { return getValueString(o).toLowerCase().includes(lowerSearchValue); })); } } else { setIsLoading(true); changeSearchValue(inputValue); } } var handleSelectValue = function(val) { if (val.length === 0) { onChange(void 0); return; } onChange({ include: val }); }; var handleClear = function() { onChange(void 0); }; var onSelect = function(param2) { var checkboxValue = param2.value, isSelected = param2.isSelected; if (trueReactPlatformHelpers.isNotEmpty(checkboxValue)) { var _chosenValues_filter; handleSelectValue(isSelected ? _to_consumable_array$3(chosenValues !== null && chosenValues !== void 0 ? chosenValues : []).concat([ checkboxValue ]) : (_chosenValues_filter = chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.filter(function(v) { return getValueId(v) !== getValueId(checkboxValue); })) !== null && _chosenValues_filter !== void 0 ? _chosenValues_filter : []); } }; var handleKeyDown = function(event) { if (event.code === "Escape") { onChange(value); if (onClose) { onClose(); } } if (event.code === "ArrowDown") { var _value_include_length; if (keyCursorOn < unchosenOptions.length + ((_value_include_length = value === null || value === void 0 ? void 0 : value.include.length) !== null && _value_include_length !== void 0 ? _value_include_length : 0) - 1) { setKeyCursorOn(keyCursorOn + 1); } } if (event.code === "ArrowUp") { if (keyCursorOn >= 1) { setKeyCursorOn(keyCursorOn - 1); } } if (event.code === "Enter") { if (unchosenOptions[keyCursorOn] === void 0 && (value === void 0 || value.include.length === 0)) { return; } if (value !== void 0) { if (keyCursorOn < value.include.length) { var _value_include_filter; onChange(_object_spread_props$s(_object_spread$v({}, value), { include: (_value_include_filter = value.include.filter(function(val) { return getValueId(val) !== getValueId(value.include[keyCursorOn]); })) !== null && _value_include_filter !== void 0 ? _value_include_filter : [] })); } else { onChange(_object_spread_props$s(_object_spread$v({}, value), { include: _to_consumable_array$3(value.include).concat([ unchosenOptions[keyCursorOn - value.include.length] ]) })); } } else { onChange({ include: [ unchosenOptions[keyCursorOn] ] }); } } }; var getIsValueChosen = function(id) { return chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.some(function(v) { return getValueId(v) === id; }); }; var handleLoadItemsOnScroll = React.useCallback(function() { var _ref = _async_to_generator$1(function(inputValue, page) { var response; return _ts_generator$1(this, function(_state) { switch (_state.label) { case 0: if (fetchOptions === void 0) { return [ 2 ]; } setLoadingOptionsOnScroll(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions(inputValue !== null && inputValue !== void 0 ? inputValue : "", page !== null && page !== void 0 ? page : 0) ]; case 2: response = _state.sent(); if (isMounted()) { if (response.length > 0) { setAllOptions(function(prevState) { return _to_consumable_array$3(prevState).concat(_to_consumable_array$3(response)); }); } if (response.length === 0 || pageSize !== void 0 && response.length < pageSize) { setIsMaxPage(true); } } return [ 3, 4 ]; case 3: if (isMounted()) { setLoadingOptionsOnScroll(false); } return [ 7 ]; case 4: return [ 2 ]; } }); }); return function(inputValue, page) { return _ref.apply(this, arguments); }; }(), [ fetchOptions, getValueId ]); var initIntersectionObserver = React.useCallback(function(node) { if (isLoadingOptionsOnScroll || isMaxPage) { return; } if (observer.current) { observer.current.disconnect(); } observer.current = new IntersectionObserver(function() { var _ref = _async_to_generator$1(function(entries) { return _ts_generator$1(this, function(_state) { switch (_state.label) { case 0: if (!entries[0].isIntersecting) return [ 3, 2 ]; return [ 4, handleLoadItemsOnScroll(searchValue, activePage + 1) ]; case 1: _state.sent(); if (isMounted()) { setActivePage(function(prevState) { return prevState + 1; }); } _state.label = 2; case 2: return [ 2 ]; } }); }); return function(entries) { return _ref.apply(this, arguments); }; }()); if (node) { observer.current.observe(node); } }, [ activePage, handleLoadItemsOnScroll, isLoadingOptionsOnScroll, isMaxPage, searchValue ]); React.useEffect(function() { if (fetchOptions === void 0) { setAllOptions(options !== null && options !== void 0 ? options : []); return; } var doFetchOptions = function() { var _ref = _async_to_generator$1(function() { var response; return _ts_generator$1(this, function(_state) { switch (_state.label) { case 0: setIsLoading(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions("") ]; case 2: response = _state.sent(); if (response !== void 0 && isMounted()) { if (response.length === 0 || pageSize !== void 0 && response.length < pageSize) { setIsMaxPage(true); } setAllOptions(response); } return [ 3, 4 ]; case 3: if (isMounted()) { setIsLoading(false); } return [ 7 ]; case 4: return [ 2 ]; } }); }); return function doFetchOptions2() { return _ref.apply(this, arguments); }; }(); doFetchOptions(); }, []); React.useEffect(function() { document.addEventListener("keydown", handleKeyDown, false); return function() { document.removeEventListener("keydown", handleKeyDown, false); }; }); var mainOptionsList = isGroupingEnabled ? unchosenOptions : allOptions; var hasSelectedOptionsGroup = isGroupingEnabled && trueReactPlatformHelpers.isArrayNotEmpty(chosenValues); var shouldShowNothingFoundMessage = !isLoading && !trueReactPlatformHelpers.isArrayNotEmpty(allOptions); var shouldShowAllOptionsLabel = hasSelectedOptionsGroup && (trueReactPlatformHelpers.isArrayNotEmpty(unchosenOptions) || !trueReactPlatformHelpers.isArrayNotEmpty(allOptions)); var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll; var shouldShowOptionsList = !isLoading && (trueReactPlatformHelpers.isArrayNotEmpty(allOptions) || trueReactPlatformHelpers.isArrayNotEmpty(chosenValues)); return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$v({ className: classes.root }, addDataAttributes(data)), { children: [ isSearchEnabled && /* @__PURE__ */ jsx("div", { className: classes.dropdownInput, children: /* @__PURE__ */ jsx(SearchInput, { value: searchValue, placeholder: translates.searchPlaceholder, onChange: handleOnChange, tweakStyles: tweakSearchInputStyles, maxLength: searchMaxLength, testId: testId !== void 0 ? "".concat(testId, "-search") : void 0, shouldFocusOnMount: true }) }), shouldShowOptionsList && /* @__PURE__ */ jsxs("div", { className: classes.list, "data-testid": testId !== void 0 ? "".concat(testId, "-list") : void 0, children: [ hasSelectedOptionsGroup && /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.label, classes.labelChosen, !isSearchEnabled && classes.withoutTopGap), children: translates.chosen }), chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.map(function(val) { var id = getValueId(val); var view = getValueView(val); return /* @__PURE__ */ jsx("div", { className: clsx(classes.item), children: /* @__PURE__ */ jsx(Checkbox, { onSelect, isChecked: true, value: val, tweakStyles: tweakCheckboxStyles, labelPosition: checkboxPosition === "left" ? "right" : "left", children: /* @__PURE__ */ jsx("div", { className: classes.option, "data-option": id, children: view }) }) }, id); }) ] }), !isLoading && /* @__PURE__ */ jsxs(Fragment, { children: [ shouldShowAllOptionsLabel && /* @__PURE__ */ jsx("div", { className: classes.label, children: translates.all }), mainOptionsList.map(function(val, index) { var id = getValueId(val); var view = getValueView(val); return /* @__PURE__ */ jsx("div", { className: clsx(classes.item), ref: mainOptionsList.length - 1 === index ? initIntersectionObserver : void 0, children: /* @__PURE__ */ jsx(Checkbox, { onSelect, isChecked: getIsValueChosen(id), value: val, tweakStyles: tweakCheckboxStyles, labelPosition: checkboxPosition === "left" ? "right" : "left", children: /* @__PURE__ */ jsx("div", { className: classes.option, "data-option": id, children: view }) }) }, id); }) ] }) ] }), shouldShowPreloader && /* @__PURE__ */ jsx("div", { className: classes.preloader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: "dots" }) }), shouldShowNothingFoundMessage && /* @__PURE__ */ jsx("div", { className: classes.nothingFound, children: translates.nothingFound }), /* @__PURE__ */ jsx("div", { className: classes.panel, children: /* @__PURE__ */ jsx("div", { className: classes.clear, children: /* @__PURE__ */ jsx(Button, { onClick: handleClear, size: "s", view: "text", testId: testId !== void 0 ? "".concat(testId, "-clear-button") : void 0, tweakStyles: tweakClearButtonStyles, children: translates.clear }) }) }) ] })); } function _define_property$v(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$u(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$v(target, key, source[key]); }); } return target; } function FilterMultiSelect(props) { return /* @__PURE__ */ jsx(MultiSelectList, _object_spread$u({}, props)); } function _define_property$u(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$t(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$u(target, key, source[key]); }); } return target; } var ITEM_HEIGHT = 40; var LIST_GAP = 12; var useStyles$r = createThemedStyles("FilterSelect", { root: { width: 220, background: colors.CLASSIC_WHITE }, list: _object_spread$t({ paddingTop: LIST_GAP, padding: [ LIST_GAP, 0 ], maxHeight: ITEM_HEIGHT * 5 + LIST_GAP * 2, overscrollBehavior: "contain" }, helpers.withScrollBar), label: { boxSizing: "border-box", fontSize: 14, padding: [ 12, 16 ], userSelect: "none", display: "flex", alignItems: "center", color: colors.FONT_LABEL }, labelChosen: { fontWeight: "bold", color: colors.FONT_MAIN, padding: [ 4, 16, 12 ] }, withoutTopGap: { paddingTop: 0 }, withClearButton: { paddingBottom: 0, maxHeight: ITEM_HEIGHT * 5 + LIST_GAP }, item: { display: "flex", alignItems: "center", justifyContent: "space-between", padding: [ 10, 16 ], maxWidth: "100%", cursor: "pointer", fontSize: 14, minHeight: ITEM_HEIGHT, transition: animations.defaultTransition, transitionProperty: "background-color", boxSizing: "border-box" }, option: { display: "inline-block", userSelect: "none", width: "100%", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }, icon: { width: 20, height: 20, marginRight: 4, alignSelf: "center", flexShrink: 0 }, panel: { display: "flex", padding: [ 0, 6, 8 ], gap: 8 }, panelWithFooter: { borderTop: [ 1, "solid", colors.BORDER_MAIN ], padding: [ 8, 16 ] }, footer: { wordBreak: "break-word", alignSelf: "center" }, clear: { marginLeft: "auto", alignSelf: "center" }, preloader: { width: 80, height: ITEM_HEIGHT, margin: "auto", display: "flex", alignItems: "center", justifyContent: "center" }, dropdownInput: { borderBottom: [ 1, "solid", colors.BORDER_MAIN ] }, nothingFound: { display: "flex", alignItems: "center", textAlign: "center", padding: 16, fontSize: 14 } }); var searchInputStyles$1 = { tweakInput: { inputWrapper: { backgroundColor: "transparent", border: "none", height: 40 } } }; var clearButtonStyles$1 = cloneDeep(innerTextButtonStyles); function _array_like_to_array$c(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$c(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$2(arr) { if (Array.isArray(arr)) return _array_like_to_array$c(arr); } function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _async_to_generator(fn) { return function() { var self2 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self2, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; } function _define_property$t(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$c(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$t(target, key, source[key]); }); } return target; } function ownKeys$r(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$r(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$r(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$c(arr, i) { return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c(); } function _to_consumable_array$2(arr) { return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$2(); } function _unsupported_iterable_to_array$c(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$c(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen); } function _ts_generator(thisArg, body) { var f, y, t, g, _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function(v) { return step([ n, v ]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [ op[0] & 2, t.value ]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [ 0 ]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [ 6, e ]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function FilterSelect(param) { var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId; var classes = useStyles$r({ theme: tweakStyles }); var tweakSearchInputStyles = useTweakStyles({ innerStyles: searchInputStyles$1, tweakStyles, className: "tweakSearchInput", currentComponentName: "FilterSelect" }); var tweakClearButtonStyles = useTweakStyles({ innerStyles: clearButtonStyles$1, tweakStyles, className: "tweakClearButton", currentComponentName: "FilterSelect" }); var isMounted = useIsMounted(); var translates = React.useMemo(function() { return getSelectLocale(localeKey, locale2); }, [ localeKey, locale2 ]); var observer = React.useRef(); var _useState = _sliced_to_array$c(React.useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1]; var _useState1 = _sliced_to_array$c(React.useState([]), 2), allOptions = _useState1[0], setAllOptions = _useState1[1]; var _useState2 = _sliced_to_array$c(React.useState(0), 2), activePage = _useState2[0], setActivePage = _useState2[1]; var _useState3 = _sliced_to_array$c(React.useState(false), 2), isMaxPage = _useState3[0], setIsMaxPage = _useState3[1]; var _useState4 = _sliced_to_array$c(React.useState(false), 2), isLoading = _useState4[0], setIsLoading = _useState4[1]; var _useState5 = _sliced_to_array$c(React.useState(false), 2), isLoadingOptionsOnScroll = _useState5[0], setLoadingOptionsOnScroll = _useState5[1]; var shouldShowPreloader = isLoading || isLoadingOptionsOnScroll; var hasFooter = trueReactPlatformHelpers.isReactNodeNotEmpty(footer); var handleSearchInputChange = React.useCallback(function() { var _ref = _async_to_generator(function(inputValue) { var _inputValue_trim, response; return _ts_generator(this, function(_state) { switch (_state.label) { case 0: if (fetchOptions === void 0) { return [ 2 ]; } setIsLoading(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions((_inputValue_trim = inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) !== null && _inputValue_trim !== void 0 ? _inputValue_trim : "") ]; case 2: response = _state.sent(); if (isMounted() && response !== void 0) { setAllOptions(response); setActivePage(0); setIsMaxPage(false); } return [ 3, 4 ]; case 3: if (isMounted()) { setIsLoading(false); } return [ 7 ]; case 4: return [ 2 ]; } }); }); return function(inputValue) { return _ref.apply(this, arguments); }; }(), [ fetchOptions ]); var changeSearchValue = React.useMemo(function() { return tsDebounce.debounce(handleSearchInputChange); }, [ handleSearchInputChange ]); var handleOnChange = function(inputValue) { setSearchValue(inputValue); if (fetchOptions === void 0) { if (options !== void 0) { var lowerSearchValue = inputValue.toLowerCase(); setAllOptions(options.filter(function(o) { return getValueString(o).toLowerCase().includes(lowerSearchValue); })); } } else { changeSearchValue(inputValue); } }; var handleChange = function(val) { onChange(val); onClose === null || onClose === void 0 ? void 0 : onClose(); }; var handleClear = function() { if (options !== void 0) { setAllOptions(options); } handleChange(void 0); setSearchValue(""); }; var handleLoadItemsOnScroll = React.useCallback(function() { var _ref = _async_to_generator(function(inputValue, page) { var _inputValue_trim, response; return _ts_generator(this, function(_state) { switch (_state.label) { case 0: if (fetchOptions === void 0) { return [ 2 ]; } setLoadingOptionsOnScroll(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions((_inputValue_trim = inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim()) !== null && _inputValue_trim !== void 0 ? _inputValue_trim : "", page !== null && page !== void 0 ? page : 0) ]; case 2: response = _state.sent(); if (isMounted()) { if (response.length > 0) { setAllOptions(function(prevState) { return _to_consumable_array$2(prevState).concat(_to_consumable_array$2(response)); }); } else { setIsMaxPage(true); } } return [ 3, 4 ]; case 3: if (isMounted()) { setLoadingOptionsOnScroll(false); } return [ 7 ]; case 4: return [ 2 ]; } }); }); return function(inputValue, page) { return _ref.apply(this, arguments); }; }(), [ fetchOptions ]); var initIntersectionObserver = React.useCallback(function(node) { if (isLoadingOptionsOnScroll || isMaxPage) { return; } if (observer.current) { observer.current.disconnect(); } observer.current = new IntersectionObserver(function() { var _ref = _async_to_generator(function(entries) { return _ts_generator(this, function(_state) { switch (_state.label) { case 0: if (!entries[0].isIntersecting) return [ 3, 2 ]; return [ 4, handleLoadItemsOnScroll(searchValue, activePage + 1) ]; case 1: _state.sent(); if (isMounted()) { setActivePage(function(prevState) { return prevState + 1; }); } _state.label = 2; case 2: return [ 2 ]; } }); }); return function(entries) { return _ref.apply(this, arguments); }; }()); if (node) { observer.current.observe(node); } }, [ activePage, handleLoadItemsOnScroll, isLoadingOptionsOnScroll, isMaxPage, searchValue ]); React.useEffect(function() { if (fetchOptions === void 0) { setAllOptions(options !== null && options !== void 0 ? options : []); return; } var doFetchOptions = function() { var _ref = _async_to_generator(function() { var response; return _ts_generator(this, function(_state) { switch (_state.label) { case 0: setIsLoading(true); _state.label = 1; case 1: _state.trys.push([ 1, , 3, 4 ]); return [ 4, fetchOptions("") ]; case 2: response = _state.sent(); if (response !== void 0 && isMounted()) { setAllOptions(response); } return [ 3, 4 ]; case 3: setIsLoading(false); return [ 7 ]; case 4: return [ 2 ]; } }); }); return function doFetchOptions2() { return _ref.apply(this, arguments); }; }(); doFetchOptions(); }, []); return /* @__PURE__ */ jsxs("div", _object_spread_props$r(_object_spread$s({ className: classes.root }, addDataAttributes(data)), { children: [ isSearchEnabled && /* @__PURE__ */ jsx("div", { className: classes.dropdownInput, children: /* @__PURE__ */ jsx(SearchInput, { value: searchValue, placeholder: translates.searchPlaceholder, onChange: handleOnChange, tweakStyles: tweakSearchInputStyles, testId: testId !== void 0 ? "".concat(testId, "-search") : void 0, shouldFocusOnMount: true }) }), !isLoading && /* @__PURE__ */ jsxs(Fragment, { children: [ allOptions.length !== 0 && /* @__PURE__ */ jsxs("div", { className: clsx(classes.list, hasClearButton && classes.withClearButton), "data-testid": testId !== void 0 ? "".concat(testId, "-list") : void 0, children: [ isGroupingEnabled && value !== void 0 && /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.label, classes.labelChosen, !isSearchEnabled && classes.withoutTopGap), children: translates.chosen }), /* @__PURE__ */ jsxs("div", { className: classes.item, onClick: function() { return handleChange(void 0); }, children: [ /* @__PURE__ */ jsx("div", { className: classes.option, children: getValueView(value) }), /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "check" }) }) ] }), /* @__PURE__ */ jsx("div", { className: classes.label, children: translates.all }) ] }), allOptions.map(function(item, index) { var isActive = value !== void 0 && getValueId(value) === getValueId(item); if (isGroupingEnabled && isActive) { return null; } var id = getValueId(item); var view = getValueView(item); var renderedItem = /* @__PURE__ */ jsxs("div", { className: classes.item, ref: allOptions.length - 1 === index && fetchOptions !== void 0 ? initIntersectionObserver : void 0, onClick: function() { return handleChange(item); }, children: [ /* @__PURE__ */ jsx("div", { className: classes.option, "data-option": id, children: view }), isActive && /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "check" }) }) ] }, id); if (options !== void 0 && searchValue === "") { return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, { active: isActive, children: renderedItem }, id); } else { return renderedItem; } }) ] }), shouldShowPreloader && /* @__PURE__ */ jsx("div", { className: classes.preloader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: "dots" }) }), allOptions.length === 0 && /* @__PURE__ */ jsx("div", { className: classes.nothingFound, children: translates.nothingFound }), (hasClearButton || hasFooter) && /* @__PURE__ */ jsxs("div", { className: clsx(classes.panel, _define_property$t({}, classes.panelWithFooter, hasFooter)), children: [ hasFooter && /* @__PURE__ */ jsx("div", { className: classes.footer, children: footer }), hasClearButton && /* @__PURE__ */ jsx("div", { className: classes.clear, children: /* @__PURE__ */ jsx(Button, { onClick: handleClear, size: "s", view: "text", testId: testId !== void 0 ? "".concat(testId, "-clear-button") : void 0, tweakStyles: tweakClearButtonStyles, children: translates.clear }) }) ] }) ] }), isLoading && /* @__PURE__ */ jsx("div", { className: classes.preloader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: "dots" }) }) ] })); } var formatDistanceLocale$1 = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } }; var formatDistance$2 = function formatDistance2(token, count, options) { var result; var tokenValue = formatDistanceLocale$1[token]; if (typeof tokenValue === "string") { result = tokenValue; } else if (count === 1) { result = tokenValue.one; } else { result = tokenValue.other.replace("{{count}}", count.toString()); } if (options !== null && options !== void 0 && options.addSuffix) { if (options.comparison && options.comparison > 0) { return "in " + result; } else { return result + " ago"; } } return result; }; const formatDistance$3 = formatDistance$2; function buildFormatLongFn(args) { return function() { var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; var width = options.width ? String(options.width) : args.defaultWidth; var format = args.formats[width] || args.formats[args.defaultWidth]; return format; }; } var dateFormats$1 = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }; var timeFormats$1 = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }; var dateTimeFormats$1 = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }; var formatLong$2 = { date: buildFormatLongFn({ formats: dateFormats$1, defaultWidth: "full" }), time: buildFormatLongFn({ formats: timeFormats$1, defaultWidth: "full" }), dateTime: buildFormatLongFn({ formats: dateTimeFormats$1, defaultWidth: "full" }) }; const formatLong$3 = formatLong$2; var formatRelativeLocale$1 = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" }; var formatRelative$2 = function formatRelative2(token, _date, _baseDate, _options) { return formatRelativeLocale$1[token]; }; const formatRelative$3 = formatRelative$2; function buildLocalizeFn(args) { return function(dirtyIndex, options) { var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone"; var valuesArray; if (context === "formatting" && args.formattingValues) { var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; } else { var _defaultWidth = args.defaultWidth; var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; valuesArray = args.values[_width] || args.values[_defaultWidth]; } var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; return valuesArray[index]; }; } var eraValues$1 = { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }; var quarterValues$1 = { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }; var monthValues$1 = { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }; var dayValues$1 = { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }; var dayPeriodValues$1 = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }; var formattingDayPeriodValues$1 = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }; var ordinalNumber$1 = function ordinalNumber2(dirtyNumber, _options) { var number = Number(dirtyNumber); var rem100 = number % 100; if (rem100 > 20 || rem100 < 10) { switch (rem100 % 10) { case 1: return number + "st"; case 2: return number + "nd"; case 3: return number + "rd"; } } return number + "th"; }; var localize$2 = { ordinalNumber: ordinalNumber$1, era: buildLocalizeFn({ values: eraValues$1, defaultWidth: "wide" }), quarter: buildLocalizeFn({ values: quarterValues$1, defaultWidth: "wide", argumentCallback: function argumentCallback(quarter) { return quarter - 1; } }), month: buildLocalizeFn({ values: monthValues$1, defaultWidth: "wide" }), day: buildLocalizeFn({ values: dayValues$1, defaultWidth: "wide" }), dayPeriod: buildLocalizeFn({ values: dayPeriodValues$1, defaultWidth: "wide", formattingValues: formattingDayPeriodValues$1, defaultFormattingWidth: "wide" }) }; const localize$3 = localize$2; function buildMatchFn(args) { return function(string) { var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var width = options.width; var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; var matchResult = string.match(matchPattern); if (!matchResult) { return null; } var matchedString = matchResult[0]; var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) { return pattern.test(matchedString); }) : findKey(parsePatterns, function(pattern) { return pattern.test(matchedString); }); var value; value = args.valueCallback ? args.valueCallback(key) : key; value = options.valueCallback ? options.valueCallback(value) : value; var rest = string.slice(matchedString.length); return { value, rest }; }; } function findKey(object, predicate) { for (var key in object) { if (object.hasOwnProperty(key) && predicate(object[key])) { return key; } } return void 0; } function findIndex(array, predicate) { for (var key = 0; key < array.length; key++) { if (predicate(array[key])) { return key; } } return void 0; } function buildMatchPatternFn(args) { return function(string) { var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var matchResult = string.match(args.matchPattern); if (!matchResult) return null; var matchedString = matchResult[0]; var parseResult = string.match(args.parsePattern); if (!parseResult) return null; var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; value = options.valueCallback ? options.valueCallback(value) : value; var rest = string.slice(matchedString.length); return { value, rest }; }; } var matchOrdinalNumberPattern$1 = /^(\d+)(th|st|nd|rd)?/i; var parseOrdinalNumberPattern$1 = /\d+/i; var matchEraPatterns$1 = { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }; var parseEraPatterns$1 = { any: [/^b/i, /^(a|c)/i] }; var matchQuarterPatterns$1 = { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }; var parseQuarterPatterns$1 = { any: [/1/i, /2/i, /3/i, /4/i] }; var matchMonthPatterns$1 = { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }; var parseMonthPatterns$1 = { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }; var matchDayPatterns$1 = { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }; var parseDayPatterns$1 = { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }; var matchDayPeriodPatterns$1 = { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }; var parseDayPeriodPatterns$1 = { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }; var match$2 = { ordinalNumber: buildMatchPatternFn({ matchPattern: matchOrdinalNumberPattern$1, parsePattern: parseOrdinalNumberPattern$1, valueCallback: function valueCallback(value) { return parseInt(value, 10); } }), era: buildMatchFn({ matchPatterns: matchEraPatterns$1, defaultMatchWidth: "wide", parsePatterns: parseEraPatterns$1, defaultParseWidth: "any" }), quarter: buildMatchFn({ matchPatterns: matchQuarterPatterns$1, defaultMatchWidth: "wide", parsePatterns: parseQuarterPatterns$1, defaultParseWidth: "any", valueCallback: function valueCallback(index) { return index + 1; } }), month: buildMatchFn({ matchPatterns: matchMonthPatterns$1, defaultMatchWidth: "wide", parsePatterns: parseMonthPatterns$1, defaultParseWidth: "any" }), day: buildMatchFn({ matchPatterns: matchDayPatterns$1, defaultMatchWidth: "wide", parsePatterns: parseDayPatterns$1, defaultParseWidth: "any" }), dayPeriod: buildMatchFn({ matchPatterns: matchDayPeriodPatterns$1, defaultMatchWidth: "any", parsePatterns: parseDayPeriodPatterns$1, defaultParseWidth: "any" }) }; const match$3 = match$2; var locale$1 = { code: "en-US", formatDistance: formatDistance$3, formatLong: formatLong$3, formatRelative: formatRelative$3, localize: localize$3, match: match$3, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }; const enUS = locale$1; function declension(scheme, count) { if (scheme.one !== void 0 && count === 1) { return scheme.one; } var rem10 = count % 10; var rem100 = count % 100; if (rem10 === 1 && rem100 !== 11) { return scheme.singularNominative.replace("{{count}}", String(count)); } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { return scheme.singularGenitive.replace("{{count}}", String(count)); } else { return scheme.pluralGenitive.replace("{{count}}", String(count)); } } function buildLocalizeTokenFn(scheme) { return function(count, options) { if (options !== null && options !== void 0 && options.addSuffix) { if (options.comparison && options.comparison > 0) { if (scheme.future) { return declension(scheme.future, count); } else { return "через " + declension(scheme.regular, count); } } else { if (scheme.past) { return declension(scheme.past, count); } else { return declension(scheme.regular, count) + " назад"; } } } else { return declension(scheme.regular, count); } }; } var formatDistanceLocale = { lessThanXSeconds: buildLocalizeTokenFn({ regular: { one: "меньше секунды", singularNominative: "меньше {{count}} секунды", singularGenitive: "меньше {{count}} секунд", pluralGenitive: "меньше {{count}} секунд" }, future: { one: "меньше, чем через секунду", singularNominative: "меньше, чем через {{count}} секунду", singularGenitive: "меньше, чем через {{count}} секунды", pluralGenitive: "меньше, чем через {{count}} секунд" } }), xSeconds: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} секунда", singularGenitive: "{{count}} секунды", pluralGenitive: "{{count}} секунд" }, past: { singularNominative: "{{count}} секунду назад", singularGenitive: "{{count}} секунды назад", pluralGenitive: "{{count}} секунд назад" }, future: { singularNominative: "через {{count}} секунду", singularGenitive: "через {{count}} секунды", pluralGenitive: "через {{count}} секунд" } }), halfAMinute: function halfAMinute(_count, options) { if (options !== null && options !== void 0 && options.addSuffix) { if (options.comparison && options.comparison > 0) { return "через полминуты"; } else { return "полминуты назад"; } } return "полминуты"; }, lessThanXMinutes: buildLocalizeTokenFn({ regular: { one: "меньше минуты", singularNominative: "меньше {{count}} минуты", singularGenitive: "меньше {{count}} минут", pluralGenitive: "меньше {{count}} минут" }, future: { one: "меньше, чем через минуту", singularNominative: "меньше, чем через {{count}} минуту", singularGenitive: "меньше, чем через {{count}} минуты", pluralGenitive: "меньше, чем через {{count}} минут" } }), xMinutes: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} минута", singularGenitive: "{{count}} минуты", pluralGenitive: "{{count}} минут" }, past: { singularNominative: "{{count}} минуту назад", singularGenitive: "{{count}} минуты назад", pluralGenitive: "{{count}} минут назад" }, future: { singularNominative: "через {{count}} минуту", singularGenitive: "через {{count}} минуты", pluralGenitive: "через {{count}} минут" } }), aboutXHours: buildLocalizeTokenFn({ regular: { singularNominative: "около {{count}} часа", singularGenitive: "около {{count}} часов", pluralGenitive: "около {{count}} часов" }, future: { singularNominative: "приблизительно через {{count}} час", singularGenitive: "приблизительно через {{count}} часа", pluralGenitive: "приблизительно через {{count}} часов" } }), xHours: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} час", singularGenitive: "{{count}} часа", pluralGenitive: "{{count}} часов" } }), xDays: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} день", singularGenitive: "{{count}} дня", pluralGenitive: "{{count}} дней" } }), aboutXWeeks: buildLocalizeTokenFn({ regular: { singularNominative: "около {{count}} недели", singularGenitive: "около {{count}} недель", pluralGenitive: "около {{count}} недель" }, future: { singularNominative: "приблизительно через {{count}} неделю", singularGenitive: "приблизительно через {{count}} недели", pluralGenitive: "приблизительно через {{count}} недель" } }), xWeeks: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} неделя", singularGenitive: "{{count}} недели", pluralGenitive: "{{count}} недель" } }), aboutXMonths: buildLocalizeTokenFn({ regular: { singularNominative: "около {{count}} месяца", singularGenitive: "около {{count}} месяцев", pluralGenitive: "около {{count}} месяцев" }, future: { singularNominative: "приблизительно через {{count}} месяц", singularGenitive: "приблизительно через {{count}} месяца", pluralGenitive: "приблизительно через {{count}} месяцев" } }), xMonths: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} месяц", singularGenitive: "{{count}} месяца", pluralGenitive: "{{count}} месяцев" } }), aboutXYears: buildLocalizeTokenFn({ regular: { singularNominative: "около {{count}} года", singularGenitive: "около {{count}} лет", pluralGenitive: "около {{count}} лет" }, future: { singularNominative: "приблизительно через {{count}} год", singularGenitive: "приблизительно через {{count}} года", pluralGenitive: "приблизительно через {{count}} лет" } }), xYears: buildLocalizeTokenFn({ regular: { singularNominative: "{{count}} год", singularGenitive: "{{count}} года", pluralGenitive: "{{count}} лет" } }), overXYears: buildLocalizeTokenFn({ regular: { singularNominative: "больше {{count}} года", singularGenitive: "больше {{count}} лет", pluralGenitive: "больше {{count}} лет" }, future: { singularNominative: "больше, чем через {{count}} год", singularGenitive: "больше, чем через {{count}} года", pluralGenitive: "больше, чем через {{count}} лет" } }), almostXYears: buildLocalizeTokenFn({ regular: { singularNominative: "почти {{count}} год", singularGenitive: "почти {{count}} года", pluralGenitive: "почти {{count}} лет" }, future: { singularNominative: "почти через {{count}} год", singularGenitive: "почти через {{count}} года", pluralGenitive: "почти через {{count}} лет" } }) }; var formatDistance = function formatDistance2(token, count, options) { return formatDistanceLocale[token](count, options); }; const formatDistance$1 = formatDistance; var dateFormats = { full: "EEEE, d MMMM y 'г.'", long: "d MMMM y 'г.'", medium: "d MMM y 'г.'", short: "dd.MM.y" }; var timeFormats = { full: "H:mm:ss zzzz", long: "H:mm:ss z", medium: "H:mm:ss", short: "H:mm" }; var dateTimeFormats = { any: "{{date}}, {{time}}" }; var formatLong = { date: buildFormatLongFn({ formats: dateFormats, defaultWidth: "full" }), time: buildFormatLongFn({ formats: timeFormats, defaultWidth: "full" }), dateTime: buildFormatLongFn({ formats: dateTimeFormats, defaultWidth: "any" }) }; const formatLong$1 = formatLong; function requiredArgs(required, args) { if (args.length < required) { throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present"); } } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof2(obj2) { return typeof obj2; }; } else { _typeof = function _typeof2(obj2) { return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; }; } return _typeof(obj); } function toDate(argument) { requiredArgs(1, arguments); var argStr = Object.prototype.toString.call(argument); if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") { return new Date(argument.getTime()); } else if (typeof argument === "number" || argStr === "[object Number]") { return new Date(argument); } else { if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") { console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); console.warn(new Error().stack); } return new Date(NaN); } } function toInteger(dirtyNumber) { if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { return NaN; } var number = Number(dirtyNumber); if (isNaN(number)) { return number; } return number < 0 ? Math.ceil(number) : Math.floor(number); } var defaultOptions = {}; function getDefaultOptions() { return defaultOptions; } function startOfUTCWeek(dirtyDate, options) { var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; requiredArgs(1, arguments); var defaultOptions2 = getDefaultOptions(); var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); } var date = toDate(dirtyDate); var day = date.getUTCDay(); var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; date.setUTCDate(date.getUTCDate() - diff); date.setUTCHours(0, 0, 0, 0); return date; } function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) { requiredArgs(2, arguments); var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options); var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options); return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); } var accusativeWeekdays = ["воскресенье", "понедельник", "вторник", "среду", "четверг", "пятницу", "субботу"]; function _lastWeek(day) { var weekday = accusativeWeekdays[day]; switch (day) { case 0: return "'в прошлое " + weekday + " в' p"; case 1: case 2: case 4: return "'в прошлый " + weekday + " в' p"; case 3: case 5: case 6: return "'в прошлую " + weekday + " в' p"; } } function thisWeek(day) { var weekday = accusativeWeekdays[day]; if (day === 2) { return "'во " + weekday + " в' p"; } else { return "'в " + weekday + " в' p"; } } function _nextWeek(day) { var weekday = accusativeWeekdays[day]; switch (day) { case 0: return "'в следующее " + weekday + " в' p"; case 1: case 2: case 4: return "'в следующий " + weekday + " в' p"; case 3: case 5: case 6: return "'в следующую " + weekday + " в' p"; } } var formatRelativeLocale = { lastWeek: function lastWeek(date, baseDate, options) { var day = date.getUTCDay(); if (isSameUTCWeek(date, baseDate, options)) { return thisWeek(day); } else { return _lastWeek(day); } }, yesterday: "'вчера в' p", today: "'сегодня в' p", tomorrow: "'завтра в' p", nextWeek: function nextWeek(date, baseDate, options) { var day = date.getUTCDay(); if (isSameUTCWeek(date, baseDate, options)) { return thisWeek(day); } else { return _nextWeek(day); } }, other: "P" }; var formatRelative = function formatRelative2(token, date, baseDate, options) { var format = formatRelativeLocale[token]; if (typeof format === "function") { return format(date, baseDate, options); } return format; }; const formatRelative$1 = formatRelative; var eraValues = { narrow: ["до н.э.", "н.э."], abbreviated: ["до н. э.", "н. э."], wide: ["до нашей эры", "нашей эры"] }; var quarterValues = { narrow: ["1", "2", "3", "4"], abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."], wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"] }; var monthValues = { narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], abbreviated: ["янв.", "фев.", "март", "апр.", "май", "июнь", "июль", "авг.", "сент.", "окт.", "нояб.", "дек."], wide: ["январь", "февраль", "март", "апрель", "май", "июнь", "июль", "август", "сентябрь", "октябрь", "ноябрь", "декабрь"] }; var formattingMonthValues = { narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"], abbreviated: ["янв.", "фев.", "мар.", "апр.", "мая", "июн.", "июл.", "авг.", "сент.", "окт.", "нояб.", "дек."], wide: ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря"] }; var dayValues = { narrow: ["В", "П", "В", "С", "Ч", "П", "С"], short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"], abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"], wide: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"] }; var dayPeriodValues = { narrow: { am: "ДП", pm: "ПП", midnight: "полн.", noon: "полд.", morning: "утро", afternoon: "день", evening: "веч.", night: "ночь" }, abbreviated: { am: "ДП", pm: "ПП", midnight: "полн.", noon: "полд.", morning: "утро", afternoon: "день", evening: "веч.", night: "ночь" }, wide: { am: "ДП", pm: "ПП", midnight: "полночь", noon: "полдень", morning: "утро", afternoon: "день", evening: "вечер", night: "ночь" } }; var formattingDayPeriodValues = { narrow: { am: "ДП", pm: "ПП", midnight: "полн.", noon: "полд.", morning: "утра", afternoon: "дня", evening: "веч.", night: "ночи" }, abbreviated: { am: "ДП", pm: "ПП", midnight: "полн.", noon: "полд.", morning: "утра", afternoon: "дня", evening: "веч.", night: "ночи" }, wide: { am: "ДП", pm: "ПП", midnight: "полночь", noon: "полдень", morning: "утра", afternoon: "дня", evening: "вечера", night: "ночи" } }; var ordinalNumber = function ordinalNumber2(dirtyNumber, options) { var number = Number(dirtyNumber); var unit = options === null || options === void 0 ? void 0 : options.unit; var suffix; if (unit === "date") { suffix = "-е"; } else if (unit === "week" || unit === "minute" || unit === "second") { suffix = "-я"; } else { suffix = "-й"; } return number + suffix; }; var localize = { ordinalNumber, era: buildLocalizeFn({ values: eraValues, defaultWidth: "wide" }), quarter: buildLocalizeFn({ values: quarterValues, defaultWidth: "wide", argumentCallback: function argumentCallback(quarter) { return quarter - 1; } }), month: buildLocalizeFn({ values: monthValues, defaultWidth: "wide", formattingValues: formattingMonthValues, defaultFormattingWidth: "wide" }), day: buildLocalizeFn({ values: dayValues, defaultWidth: "wide" }), dayPeriod: buildLocalizeFn({ values: dayPeriodValues, defaultWidth: "any", formattingValues: formattingDayPeriodValues, defaultFormattingWidth: "wide" }) }; const localize$1 = localize; var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; var parseOrdinalNumberPattern = /\d+/i; var matchEraPatterns = { narrow: /^((до )?н\.?\s?э\.?)/i, abbreviated: /^((до )?н\.?\s?э\.?)/i, wide: /^(до нашей эры|нашей эры|наша эра)/i }; var parseEraPatterns = { any: [/^д/i, /^н/i] }; var matchQuarterPatterns = { narrow: /^[1234]/i, abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, wide: /^[1234](-?[ыои]?й?)? квартал/i }; var parseQuarterPatterns = { any: [/1/i, /2/i, /3/i, /4/i] }; var matchMonthPatterns = { narrow: /^[яфмаисонд]/i, abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i }; var parseMonthPatterns = { narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^я/i], any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i] }; var matchDayPatterns = { narrow: /^[впсч]/i, short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i }; var parseDayPatterns = { narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] }; var matchDayPeriodPatterns = { narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i }; var parseDayPeriodPatterns = { any: { am: /^дп/i, pm: /^пп/i, midnight: /^полн/i, noon: /^полд/i, morning: /^у/i, afternoon: /^д[ен]/i, evening: /^в/i, night: /^н/i } }; var match = { ordinalNumber: buildMatchPatternFn({ matchPattern: matchOrdinalNumberPattern, parsePattern: parseOrdinalNumberPattern, valueCallback: function valueCallback(value) { return parseInt(value, 10); } }), era: buildMatchFn({ matchPatterns: matchEraPatterns, defaultMatchWidth: "wide", parsePatterns: parseEraPatterns, defaultParseWidth: "any" }), quarter: buildMatchFn({ matchPatterns: matchQuarterPatterns, defaultMatchWidth: "wide", parsePatterns: parseQuarterPatterns, defaultParseWidth: "any", valueCallback: function valueCallback(index) { return index + 1; } }), month: buildMatchFn({ matchPatterns: matchMonthPatterns, defaultMatchWidth: "wide", parsePatterns: parseMonthPatterns, defaultParseWidth: "any" }), day: buildMatchFn({ matchPatterns: matchDayPatterns, defaultMatchWidth: "wide", parsePatterns: parseDayPatterns, defaultParseWidth: "any" }), dayPeriod: buildMatchFn({ matchPatterns: matchDayPeriodPatterns, defaultMatchWidth: "wide", parsePatterns: parseDayPeriodPatterns, defaultParseWidth: "any" }) }; const match$1 = match; var locale = { code: "ru", formatDistance: formatDistance$1, formatLong: formatLong$1, formatRelative: formatRelative$1, localize: localize$1, match: match$1, options: { weekStartsOn: 1, firstWeekContainsDate: 1 } }; const ru = locale; var useStyles$q = createThemedStyles("FilterWithDates", { root: { background: colors.CLASSIC_WHITE, position: "relative", zIndex: 20 }, container: { display: "flex", gap: 20, padding: [ 8, 20 ] }, containerItem: { width: "50%", height: 44 }, btnRow: { display: "flex", flexDirection: "row-reverse", justifyContent: "space-between", padding: 8 }, datepicker: {} }); var clearButtonStyles = cloneDeep(innerTextButtonStyles); var backButtonStyles = innerTextButtonStyles; var PICKER_TOP_MARGIN = 28; var PICKER_WITH_BUTTONS_TOP_MARGIN = 60; var START_PICKER_LEFT_MARGIN = -20; var END_PICKER_LEFT_MARGIN = -170; var startDatePickerStyles = { popper: { marginTop: PICKER_TOP_MARGIN, marginLeft: START_PICKER_LEFT_MARGIN } }; var startDatePickerWithButtonStyles = { popper: { marginTop: PICKER_WITH_BUTTONS_TOP_MARGIN, marginLeft: START_PICKER_LEFT_MARGIN } }; var endDatePickerStyles = { popper: { marginTop: PICKER_TOP_MARGIN, marginLeft: END_PICKER_LEFT_MARGIN } }; var endDatePickerWithButtonStyles = { popper: { marginTop: PICKER_WITH_BUTTONS_TOP_MARGIN, marginLeft: END_PICKER_LEFT_MARGIN } }; function _array_like_to_array$b(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$b(arr) { if (Array.isArray(arr)) return arr; } function _define_property$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$r(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$s(target, key, source[key]); }); } return target; } function ownKeys$q(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$q(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$q(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$b(arr, i) { return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b(); } function _unsupported_iterable_to_array$b(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen); } var FilterWithDates = function(param) { var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable; var classes = useStyles$q({ theme: tweakStyles }); var tweakClearButtonStyles = useTweakStyles({ innerStyles: clearButtonStyles, tweakStyles, className: "tweakClearButton", currentComponentName: "FilterWithDates" }); var tweakBackButtonStyles = useTweakStyles({ innerStyles: backButtonStyles, tweakStyles, className: "tweakBackButton", currentComponentName: "FilterWithDates" }); var hasButtonsRow = isClearable || trueReactPlatformHelpers.isNotEmpty(onStartBtnSubmit); var tweakStartDatePickerStyles = useTweakStyles({ innerStyles: hasButtonsRow ? startDatePickerWithButtonStyles : startDatePickerStyles, tweakStyles, className: "tweakStartDatePicker", currentComponentName: "FilterWithDates" }); var tweakEndDatePickerStyles = useTweakStyles({ innerStyles: hasButtonsRow ? endDatePickerWithButtonStyles : endDatePickerStyles, tweakStyles, className: "tweakEndDatePicker", currentComponentName: "FilterWithDates" }); var _useState = _sliced_to_array$b(React.useState(false), 2), isOpenFrom = _useState[0], setOpenFrom = _useState[1]; var _useState1 = _sliced_to_array$b(React.useState(false), 2), isOpenTo = _useState1[0], setOpenTo = _useState1[1]; var ref = React.useRef(null); var dateLocale = localeKey === "ru" ? ru : enUS; var translates = React.useMemo(function() { return getLocale$1(localeKey, locale2); }, [ localeKey, locale2 ]); var handleClear = function() { onEndBtnSubmit(); }; var isOpenCalendar = isOpenFrom || isOpenTo; var handleFromSelected = function(val) { var _value_to; onChange({ from: val, to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null }); setOpenFrom(false); }; var handleToSelected = function(val) { var _value_from; onChange({ from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null, to: val }); setOpenTo(false); }; var handleChangeFrom = function(val) { if (val !== null && value !== void 0 && value.to !== null && dateFns.isAfter(val, value.to)) { onChange({ from: value.to, to: val }); } else { var _value_to; onChange({ from: val, to: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : null }); } }; var handleChangeTo = function(val) { if (val !== null && value !== void 0 && value.from !== null && dateFns.isBefore(val, value.from)) { onChange({ from: val, to: value.from }); } else { var _value_from; onChange({ from: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : null, to: val }); } }; var _ref; return /* @__PURE__ */ jsxs("div", _object_spread_props$q(_object_spread$r({ className: classes.root }, addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("div", { className: classes.container, children: [ /* @__PURE__ */ jsx("div", { className: classes.containerItem, children: /* @__PURE__ */ jsx(DatePicker, _object_spread$r({ selectedDate: value === null || value === void 0 ? void 0 : value.from, maxDate: value === null || value === void 0 ? void 0 : value.to, label: translates.from, months: translates.months, locale: dateLocale, onChangeDate: handleChangeFrom, tweakStyles: tweakStartDatePickerStyles, border: "bottom", testId: trueReactPlatformHelpers.getTestId(testId, "from"), isClearable }, startPickerProps)) }), /* @__PURE__ */ jsx("div", { className: classes.containerItem, children: /* @__PURE__ */ jsx(DatePicker, _object_spread$r({ selectedDate: value === null || value === void 0 ? void 0 : value.to, label: translates.to, months: translates.months, minDate: value === null || value === void 0 ? void 0 : value.from, locale: dateLocale, onChangeDate: handleChangeTo, tweakStyles: tweakEndDatePickerStyles, border: "bottom", testId: trueReactPlatformHelpers.getTestId(testId, "to"), isClearable }, endPickerProps)) }) ] }), /* @__PURE__ */ jsxs("div", { className: classes.btnRow, children: [ isClearable && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { onClick: handleClear, size: "s", view: "text", testId: trueReactPlatformHelpers.getTestId(testId, "clear-button"), isFullWidth: true, tweakStyles: tweakClearButtonStyles, children: translates.clear }) }), onStartBtnSubmit && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { onClick: onStartBtnSubmit, size: "s", view: "text", isFullWidth: true, tweakStyles: tweakBackButtonStyles, children: translates.back }) }) ] }), isOpenCalendar && /* @__PURE__ */ jsx("div", { ref, className: classes.datepicker, children: /* @__PURE__ */ jsx(DatePicker, { selectedDate: (_ref = isOpenFrom ? value === null || value === void 0 ? void 0 : value.from : value === null || value === void 0 ? void 0 : value.to) !== null && _ref !== void 0 ? _ref : null, label: "", locale: dateLocale, months: translates.months, isInline: true, onChangeDate: isOpenFrom ? handleFromSelected : handleToSelected }) }) ] })); }; var useStyles$p = createThemedStyles("FilterWithPeriod", { root: {}, main: {}, picker: {} }); var filterSelectStyles = { list: { maxHeight: "auto" } }; function _array_like_to_array$a(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$a(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes$1(arr) { if (Array.isArray(arr)) return _array_like_to_array$a(arr); } function _define_property$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$a(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$r(target, key, source[key]); }); } return target; } function ownKeys$p(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$p(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$p(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$a(arr, i) { return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$a(); } function _to_consumable_array$1(arr) { return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$1(); } function _unsupported_iterable_to_array$a(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen); } var FilterWithPeriod = function(param) { var value = param.value, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId; var classes = useStyles$p({ theme: tweakStyles }); var translates = React.useMemo(function() { return getLocale$1(localeKey, locale2); }, [ localeKey, locale2 ]); var _useState = _sliced_to_array$a(React.useState((value === null || value === void 0 ? void 0 : value.periodType) !== "CUSTOM"), 2), isPeriodPickerShown = _useState[0], setIsPeriodPickerShown = _useState[1]; var _useState1 = _sliced_to_array$a(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1]; var _useState2 = _sliced_to_array$a(React.useState(value), 2), period = _useState2[0], setPeriod = _useState2[1]; var periodGetters = React.useMemo(function() { var result = _object_spread$q({}, PERIODS_GETTERS); periods === null || periods === void 0 ? void 0 : periods.forEach(function(p) { if (Array.isArray(p)) { result[p[0]] = p[1]; } }); return result; }, [ periods ]); var periodsList = React.useMemo(function() { if (periods === void 0) { return _to_consumable_array$1(PERIODS); } return periods.map(function(p) { return Array.isArray(p) ? p[0] : p; }); }, [ periods ]); var getPeriodTranslate = React.useCallback(function(val) { var _translates_periods_val; return (_translates_periods_val = translates.periods[val]) !== null && _translates_periods_val !== void 0 ? _translates_periods_val : val; }, [ translates.periods ]); var handlePeriodChange = function(periodType) { var from = null; var to = null; if (periodType in periodGetters) { var newPeriod = periodGetters[periodType](); from = newPeriod.from; to = newPeriod.to; } var p = { from, to, periodType }; setPeriod(p); if (periodType === "CUSTOM") { setIsDatePickerShown(true); } else { if (onClose !== void 0) { onClose(); } onChange(_object_spread_props$p(_object_spread$q({}, p), { label: getPeriodTranslate(periodType) })); } setIsPeriodPickerShown(false); }; var refPeriodPicker = React.useRef(null); var refDatePicker = React.useRef(null); var onPeriodChange = function(val) { if (val !== void 0) { handlePeriodChange(val); } else { onChange(void 0); if (onClose !== void 0) { onClose(); } } }; var handleCustomDateChange = function(val) { if (val.from || val.to) { onChange(_object_spread_props$p(_object_spread$q({}, val), { periodType: "CUSTOM" })); } else { onChange(void 0); } }; useOnClickOutside(refDatePicker, function() { if (!(period === null || period === void 0 ? void 0 : period.from) && !(period === null || period === void 0 ? void 0 : period.to)) { setPeriod(void 0); } setIsDatePickerShown(false); }); React.useEffect(function() { setPeriod(value); }, [ value, value === null || value === void 0 ? void 0 : value.from, value === null || value === void 0 ? void 0 : value.to, value === null || value === void 0 ? void 0 : value.periodType ]); var tweakSelectStyles = useTweakStyles({ innerStyles: filterSelectStyles, tweakStyles, className: "tweakFilterSelect", currentComponentName: "FilterWithPeriod" }); return /* @__PURE__ */ jsxs("div", { className: classes.root, children: [ isPeriodPickerShown && /* @__PURE__ */ jsx("div", { className: classes.main, ref: refPeriodPicker, children: /* @__PURE__ */ jsx(FilterSelect, { options: periodsList, value: period === null || period === void 0 ? void 0 : period.periodType, onChange: onPeriodChange, localeKey, locale: translates, tweakStyles: tweakSelectStyles, getValueView: getPeriodTranslate, testId: testId !== void 0 ? "".concat(testId, "-select") : void 0 }) }), isDatePickerShown && /* @__PURE__ */ jsx("div", { className: classes.picker, style: { width: 320 }, ref: refDatePicker, children: /* @__PURE__ */ jsx(FilterWithDates, { onStartBtnSubmit: function() { setIsDatePickerShown(false); setIsPeriodPickerShown(true); }, onEndBtnSubmit: function() { onChange(void 0); setIsDatePickerShown(false); if (onClose !== void 0) { onClose(); } }, value: period, onChange: handleCustomDateChange, localeKey, locale: translates, testId: testId !== void 0 ? "".concat(testId, "-dates") : void 0 }) }) ] }); }; function _define_property$q(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$q(target, key, source[key]); }); } return target; } function ownKeys$o(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$o(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$o(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function Filter(props) { var filter = props.filter, value = props.value, onChange = props.onChange, onClose = props.onClose, localeKey = props.localeKey, locale2 = props.locale, testId = props.testId; var _filter_localeKey; var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey; var translates = React.useMemo(function() { return getLocale$1(translatesLocaleKey, locale2, filter.locale); }, [ translatesLocaleKey, locale2, filter.locale ]); if (filter.type === "select") { return /* @__PURE__ */ jsx(FilterSelect, _object_spread$p({ value, onChange, onClose, localeKey: translatesLocaleKey, locale: translates, testId: testId !== void 0 ? "".concat(testId, "-select") : void 0 }, filter)); } if (filter.type === "dateRange") { return /* @__PURE__ */ jsx(FilterWithPeriod, _object_spread$p({ value: _object_spread$p({}, value), onChange, onClose, localeKey: translatesLocaleKey, locale: translates, testId: testId !== void 0 ? "".concat(testId, "-period") : void 0 }, filter)); } if (filter.type === "dateRangeWithoutPeriod") { return /* @__PURE__ */ jsx("div", { style: { width: 320 }, children: /* @__PURE__ */ jsx(FilterWithDates, _object_spread$p({ value, onChange: function(v) { return onChange(_object_spread_props$o(_object_spread$p({}, v), { periodType: "CUSTOM" })); }, onEndBtnSubmit: function() { return onChange(void 0); }, localeKey: translatesLocaleKey, locale: translates, testId: testId !== void 0 ? "".concat(testId, "-dates") : void 0 }, filter)) }); } if (filter.type === "multiSelect") { return /* @__PURE__ */ jsx(FilterMultiSelect, _object_spread$p({ value, onChange, onClose, localeKey: translatesLocaleKey, locale: translates, testId: testId !== void 0 ? "".concat(testId, "-multiSelect") : void 0 }, filter)); } if (filter.type === "interval") { return /* @__PURE__ */ jsx(FilterInterval, _object_spread$p({ value, onChange, localeKey: translatesLocaleKey, locale: translates, labelName: filter.name, testId: testId !== void 0 ? "".concat(testId, "-interval") : void 0 }, filter)); } if (filter.type === "boolean") { return null; } if (filter.type === "custom" && filter.component) { var Component = filter.component; return /* @__PURE__ */ jsx(Component, _object_spread_props$o(_object_spread$p({}, props), { filter })); } console.warn("%cДля фильтра ".concat(filter.name, " не задан тип или component"), "background: red; color: black"); return null; } var useStyles$o = createThemedStyles("FiltersPaneSearch", { root: { display: "flex", position: "relative", backgroundColor: rgba(colors.BORDER_MAIN, 0.3), border: [ 1, "transparent", "solid" ], borderRadius: 18, paddingRight: 8, transition: animations.defaultTransition, transitionProperty: "background-color, border-color" }, focused: { backgroundColor: colors.CLASSIC_WHITE, borderColor: colors.BORDER_MAIN }, disabled: { "& $selectBlock": { cursor: "default" } }, selectWrapper: { position: "relative", display: "flex", flexShrink: 0 }, selectBlock: { display: "flex", alignItems: "center", gap: 6, cursor: "pointer", height: "100%" }, selectLabel: { flexShrink: 0, fontSize: 14, userSelect: "none" }, chevronIcon: { flexShrink: 0, width: 20, height: 20, marginRight: 4, transition: "transform .2s ease", opacity: 0.5 }, open: { transform: "rotate(180deg)" }, dropdown: { position: "absolute", top: FILTER_HEIGHT - 2, right: 0, zIndex: 20, minWidth: 200, marginTop: 6, borderRadius: dimensions.BORDER_RADIUS_SMALL, backgroundColor: colors.CLASSIC_WHITE, overflow: "hidden" }, dropdownInput: { borderBottom: [ 1, "solid", colors.BORDER_MAIN ] }, active: { fontWeight: "bold" } }); var searchInputStyles = { tweakInput: { inputWrapper: { backgroundColor: "transparent", border: "none", height: FILTER_HEIGHT - 2, fontSize: 14, minWidth: 140 }, focused: { backgroundColor: "transparent", border: "none" } } }; var selectStyles = { root: { borderRadius: 0, borderBottomLeftRadius: 6, borderBottomRightRadius: 6, boxShadow: "none", width: "100%" } }; function _array_like_to_array$9(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$9(arr) { if (Array.isArray(arr)) return arr; } function _define_property$p(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$9(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$p(target, key, source[key]); }); } return target; } function ownKeys$n(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$n(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$n(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$9(arr, i) { return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$9(); } function _unsupported_iterable_to_array$9(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$9(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen); } function FiltersPaneSearch(param) { var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId; var classes = useStyles$o({ theme: tweakStyles }); var tweakSearchInputStyles = useTweakStyles({ innerStyles: searchInputStyles, tweakStyles, className: "tweakSearchInput", currentComponentName: "FiltersPaneSearch" }); var tweakSelectStyles = useTweakStyles({ innerStyles: selectStyles, tweakStyles, className: "tweakSelect", currentComponentName: "FiltersPaneSearch" }); var _useState = _sliced_to_array$9(React.useState(false), 2), isInputFocused = _useState[0], setIsInputFocused = _useState[1]; var _useState1 = _sliced_to_array$9(React.useState(false), 2), isOpen = _useState1[0], setIsOpen = _useState1[1]; var refRoot = React.useRef(null); var translates = React.useMemo(function() { return getLocale$1(localeKey, locale2); }, [ localeKey, locale2 ]); useOnClickOutside(refRoot, function() { return setIsOpen(false); }); var handleSearchChange = function(v) { onChange({ value: v, field }); }; var handleFieldsChange = function(v) { onChange({ value, field: v }); setIsOpen(false); }; var selectedFieldLabel = React.useMemo(function() { return field !== void 0 && getValueView !== void 0 ? getValueView(field) : void 0; }, [ field ]); var _obj2; return /* @__PURE__ */ jsxs("div", _object_spread_props$n(_object_spread$o({ className: clsx(classes.root, (_obj2 = {}, _define_property$p(_obj2, classes.focused, isInputFocused), _define_property$p(_obj2, classes.disabled, isDisabled), _obj2)), ref: refRoot, "data-testid": testId }, addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx(SearchInput, { value, onChange: handleSearchChange, placeholder: translates.searchPlaceholder, tweakStyles: tweakSearchInputStyles, onFocus: function() { return setIsInputFocused(true); }, onBlur: function() { return setIsInputFocused(false); }, testId: testId !== void 0 ? "".concat(testId, "-input") : void 0, maxLength, isAutoSizeable, isDisabled }), /* @__PURE__ */ jsxs("div", { className: classes.selectWrapper, children: [ fields.length > 0 && /* @__PURE__ */ jsxs("div", { className: classes.selectBlock, onClick: !isDisabled ? function() { return setIsOpen(!isOpen); } : void 0, "data-testid": testId !== void 0 ? "".concat(testId, "-select") : void 0, children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.selectLabel, selectedFieldLabel !== void 0 && classes.active), children: selectedFieldLabel !== null && selectedFieldLabel !== void 0 ? selectedFieldLabel : translates.displayedFields }), /* @__PURE__ */ jsx("div", { className: clsx(classes.chevronIcon, isOpen && classes.open), children: /* @__PURE__ */ jsx(Icon, { type: "chevron-down" }) }) ] }), isOpen && /* @__PURE__ */ jsx("div", { className: classes.dropdown, children: /* @__PURE__ */ jsx(FilterSelect, { tweakStyles: tweakSelectStyles, value: field, options: fields, getValueView, getValueId, getValueString, localeKey, locale: translates, onChange: handleFieldsChange, isSearchEnabled: isSelectSearchEnabled, hasClearButton: hasClearSelectButton, testId: testId !== void 0 ? "".concat(testId, "-dropdown") : void 0 }) }) ] }) ] })); } var useStyles$n = createThemedStyles("FilterValueView", { text: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, count: { whiteSpace: "pre" } }); function _instanceof$1(left2, right2) { if (right2 != null && typeof Symbol !== "undefined" && right2[Symbol.hasInstance]) { return !!right2[Symbol.hasInstance](left2); } else { return left2 instanceof right2; } } function FilterValueView(param) { var locale2 = param.locale, localeKey = param.localeKey, filter = param.filter, value = param.value, tweakStyles = param.tweakStyles; var classes = useStyles$n({ theme: tweakStyles }); var _filter_localeKey; var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey; var translates = React.useMemo(function() { return getLocale$1(translatesLocaleKey, locale2, filter.locale); }, [ translatesLocaleKey, locale2, filter.locale ]); if (trueReactPlatformHelpers.isEmpty(value)) { return /* @__PURE__ */ jsx(Fragment, {}); } if (filter.getSelectedValueView !== void 0) { return /* @__PURE__ */ jsx("span", { className: classes.text, children: filter.getSelectedValueView(value) }); } var isMultiple = filter.type === "custom" && filter.valueViewType === "multiple"; var isRange = filter.type === "custom" && filter.valueViewType === "range"; var isDate = filter.type === "dateRange" || filter.type === "dateRangeWithoutPeriod"; var displayValue = function(v) { if (!trueReactPlatformHelpers.isNotEmpty(v)) { return ""; } if (_instanceof$1(v, Date)) { return dateFns.format(v, filter.dateFormat || DEFAULT_DATE_FORMAT$1); } if (typeof v === "object" && "value" in v && trueReactPlatformHelpers.isNotEmpty(v.value)) { return String(v.value); } if (typeof v === "string" || typeof v === "number" || typeof v === "boolean") { return String(v); } console.warn("%c Ошибка конфигурации фильтра ".concat(filter.name, ". Невозможно отобразить значение фильтра. Задайте filterValueViewComponent или filterValueViewType."), "background: orange; color: black"); return ""; }; if (filter.type === "select") { var _filter_getValueView; var getView = (_filter_getValueView = filter.getValueView) !== null && _filter_getValueView !== void 0 ? _filter_getValueView : defaultConvertFunction$1; return /* @__PURE__ */ jsx("span", { className: classes.text, children: getView(value) }); } if (filter.type === "multiSelect") { var multiSelectValue = value; var _filter_getValueView1; var getView1 = (_filter_getValueView1 = filter.getValueView) !== null && _filter_getValueView1 !== void 0 ? _filter_getValueView1 : defaultConvertFunction$1; var include = multiSelectValue.include; return /* @__PURE__ */ jsx(Fragment, { children: Array.isArray(include) && include.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx("span", { className: classes.text, children: getView1(include[0]) }), /* @__PURE__ */ jsx("span", { className: classes.count, children: include.length > 1 && " (+".concat(include.length - 1, ")") }) ] }) }); } if (filter.type === "interval") { var intervalValue = value; var intervalValueFrom = intervalValue[0]; var intervalValueTo = intervalValue[1]; var intervals = []; if (intervalValueFrom !== void 0) { intervals.push("".concat(translates.from.toLowerCase(), " ").concat(String(intervalValueFrom))); } if (intervalValueTo !== void 0) { intervals.push("".concat(translates.to.toLowerCase(), " ").concat(String(intervalValueTo))); } return /* @__PURE__ */ jsx("span", { className: classes.text, children: intervals.join(" ") }); } if (isMultiple) { return /* @__PURE__ */ jsx(Fragment, { children: Array.isArray(value) && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx("span", { className: classes.text, children: displayValue(value[0]) }), /* @__PURE__ */ jsx("span", { className: classes.count, children: value.length > 1 && " (+".concat(value.length - 1, ")") }) ] }) }); } if (isDate) { var from = value.from, to = value.to, periodType = value.periodType, label = value.label; var hasFrom = from !== void 0 && from !== null; var hasTo = to !== void 0 && to !== null; if (periodType !== "CUSTOM") { return /* @__PURE__ */ jsx("span", { className: classes.text, children: displayValue(label) }); } var range = []; if (hasFrom) { if (!hasTo) { range.push(translates.from.toLowerCase()); } range.push(displayValue(from)); } if (hasTo) { if (hasFrom) { range.push("—"); } else { range.push(translates.to.toLowerCase()); } range.push(displayValue(to)); } return /* @__PURE__ */ jsx("span", { className: classes.text, children: range.join(" ") }); } if (isRange && Array.isArray(value)) { var rangeValue = value; var rangeValueFrom = rangeValue[0]; var rangeValueTo = rangeValue[1]; var range1 = []; if (rangeValueFrom !== void 0) { range1.push("".concat(translates.from.toLowerCase(), " ").concat(String(rangeValueFrom))); } if (rangeValueTo !== void 0) { range1.push("".concat(translates.to.toLowerCase(), " ").concat(String(rangeValueTo))); } return /* @__PURE__ */ jsx("span", { className: classes.text, children: range1.join(" ") }); } return /* @__PURE__ */ jsx("span", { className: classes.text, children: displayValue(value) }); } var isContentNotEmpty = function(value) { if (Array.isArray(value)) { return value.some(isContentNotEmpty); } if (trueReactPlatformHelpers.isObject(value)) { return Object.values(value).some(isContentNotEmpty); } if (typeof value === "boolean") { return value; } return trueReactPlatformHelpers.isNotEmpty(value); }; var useStyles$m = createThemedStyles("FilterWrapper", { root: { position: "relative", transition: animations.defaultTransition, transitionProperty: "background-color, border-color", border: [ 1, "solid", colors.BORDER_MAIN ], borderRadius: 18, boxSizing: "border-box", height: FILTER_HEIGHT, minWidth: 0 }, item: { display: "flex", padding: [ 0, 8, 0, 16 ], cursor: "pointer" }, booleanItem: { padding: 0 }, name: { fontSize: 14, lineHeight: "34px", whiteSpace: "nowrap" }, boolean: { padding: [ 0, 16 ] }, noValue: {}, openNoValue: {}, openWithValue: {}, disabled: { "& > $item": { cursor: "default" } }, withValue: {}, iconContainer: { width: 20, height: 20, transition: "transform .2s ease-in-out", alignSelf: "center", marginLeft: 6, marginRight: 4, flexShrink: 0 }, open: { transform: "rotate(180deg)" }, dropdown: { position: "absolute", zIndex: 20, marginTop: 6, border: [ 1, colors.BORDER_MAIN, "solid" ] }, left: { left: 0 }, right: { right: 0 }, value: { alignSelf: "center", fontSize: 14, lineHeight: "16px", margin: [ 0, 2, 0, 8 ], fontWeight: "bold", display: "flex", minWidth: 0 } }); function _define_property$o(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$o(target, key, source[key]); }); } return target; } function ownKeys$m(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$m(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$m(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function FilterWrapper(param) { var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange; var classes = useStyles$m({ theme: tweakStyles }); var tweakWithPopupStyles = useTweakStyles({ tweakStyles, className: "tweakWithPopup", currentComponentName: "FilterWrapper" }); var tweakFilterValueViewStyles = useTweakStyles({ tweakStyles, className: "tweakValueView", currentComponentName: "FilterWrapper" }); if (filter.isInline) { return /* @__PURE__ */ jsx(Filter, { value, filter, localeKey, locale: locale2, onChange, testId }); } var isBoolean = filter.type === "boolean"; var handleLabelClick = function() { if (isBoolean) { onChange(!value); } }; var hasValue = isContentNotEmpty(value); return /* @__PURE__ */ jsx(WithPopup, { placement: "bottom-start", canBeFlipped: true, isDisabled: isBoolean || isDisabled, tweakStyles: tweakWithPopupStyles, trigger: function(param2) { var isActive = param2.triggerProps.isActive, referenceProps = param2.referenceProps; var _obj2; return /* @__PURE__ */ jsx("div", _object_spread_props$m(_object_spread$n({ className: clsx(classes.root, (_obj2 = {}, _define_property$o(_obj2, classes.noValue, !hasValue), _define_property$o(_obj2, classes.openNoValue, isActive && !hasValue), _define_property$o(_obj2, classes.withValue, !isActive && hasValue), _define_property$o(_obj2, classes.openWithValue, isActive && hasValue), _define_property$o(_obj2, classes.boolean, isBoolean), _define_property$o(_obj2, classes.disabled, isDisabled), _obj2)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), referenceProps), { children: /* @__PURE__ */ jsxs("div", { onClick: handleLabelClick, className: clsx(classes.item, _define_property$o({}, classes.booleanItem, isBoolean)), children: [ /* @__PURE__ */ jsx("div", { className: classes.name, children: filter.name }), !isBoolean && value !== void 0 && value !== null && /* @__PURE__ */ jsx("div", { className: classes.value, children: /* @__PURE__ */ jsx(FilterValueView, { value, filter, localeKey, locale: locale2, testId: trueReactPlatformHelpers.getTestId(testId, "value"), tweakStyles: tweakFilterValueViewStyles }) }), !isBoolean && /* @__PURE__ */ jsx("div", { className: clsx(classes.iconContainer, _define_property$o({}, classes.open, isActive)), children: /* @__PURE__ */ jsx(Icon, { type: "chevron-down" }) }) ] }) })); }, children: function(param2) { var onClose = param2.onClose; return /* @__PURE__ */ jsx(Filter, { value, filter, localeKey, locale: locale2, onClose, onChange, testId }); } }); } function _define_property$n(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$n(target, key, source[key]); }); } return target; } function ownKeys$l(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$l(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$l(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function FiltersPane(param) { var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale2 = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear; var classes = useStyles$u({ theme: tweakStyles }); var tweakClearButtonStyles = useTweakStyles({ innerStyles: clearButtonStyles$4, tweakStyles, className: "tweakClearButton", currentComponentName: "FiltersPane" }); var tweakFilterWrapperStyles = useTweakStyles({ tweakStyles, className: "tweakFilterWrapper", currentComponentName: "FiltersPane" }); var translates = React.useMemo(function() { return getLocale$1(localeKey, locale2); }, [ localeKey, locale2 ]); var filtersKeys = enabledFilters || Object.keys(filtersConfig); var handleClear = function() { if (onClear !== void 0) { onClear(); return; } onChangeFilters({}); if (search !== void 0) { search.onChange({}); } }; var shouldShowClearButton = hasClearButton && (search !== void 0 || filtersKeys.filter(function(key) { return filtersConfig[key] !== void 0; }).length > 0); var clearButton = /* @__PURE__ */ jsx("div", { className: classes.clear, children: /* @__PURE__ */ jsx(Button, { onClick: handleClear, size: "s", view: "text", isDisabled, testId: trueReactPlatformHelpers.getTestId(testId, "clear-button"), tweakStyles: tweakClearButtonStyles, children: translates.clear }) }); var _search_localeKey, _search_localeKey1, _search_isDisabled; return /* @__PURE__ */ jsxs("div", _object_spread_props$l(_object_spread$m({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ onSettingsButtonClick !== void 0 && /* @__PURE__ */ jsx("div", _object_spread_props$l(_object_spread$m({ className: classes.settings, tabIndex: 0 }, trueReactPlatformHelpers.addDataTestId(testId, "settings-button")), { onClick: !isDisabled ? onSettingsButtonClick : void 0, children: /* @__PURE__ */ jsx("div", { className: classes.settingsIcon, children: /* @__PURE__ */ jsx(Icon, { type: "filter" }) }) })), search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$l(_object_spread$m({}, search), { locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale2), localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey, isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled, testId: trueReactPlatformHelpers.getTestId(testId, "search") })), filtersKeys.map(function(key, index) { var _filter_requiredFilledFilters; var isLast = index === filtersKeys.length - 1; var currentValue = values[key]; var filter = filtersConfig[key]; if (filter === void 0) { console.error("enabledFilters содержит фильтр ".concat(String(key), ", не описанный в конфиге")); if (isLast) { return clearButton; } return null; } var filterWrapper = /* @__PURE__ */ jsx(FilterWrapper, { filter, locale: locale2, localeKey, onChange: function(value) { return onChangeFilters(_object_spread_props$l(_object_spread$m({}, values), _define_property$n({}, key, value))); }, value: currentValue, isDisabled: isDisabled || (filter === null || filter === void 0 ? void 0 : (_filter_requiredFilledFilters = filter.requiredFilledFilters) === null || _filter_requiredFilledFilters === void 0 ? void 0 : _filter_requiredFilledFilters.some(function(item) { return !values[item]; })), tweakStyles: tweakFilterWrapperStyles, testId: trueReactPlatformHelpers.getTestId(testId, "filter-".concat(String(key))) }, key); if (isLast) { return /* @__PURE__ */ jsxs("div", { className: classes.filterWithClearButton, children: [ filterWrapper, shouldShowClearButton && /* @__PURE__ */ jsx(Fragment, { children: clearButton }) ] }, key); } return filterWrapper; }) ] })); } var _excluded = ["title"], _excluded2 = ["title"], _excluded3 = ["title"], _excluded4 = ["title"], _excluded5 = ["title"], _excluded6 = ["title"], _excluded7 = ["title"], _excluded8 = ["title"], _excluded9 = ["title"], _excluded10 = ["title"], _excluded11 = ["title"], _excluded12 = ["title"], _excluded13 = ["title"], _excluded14 = ["title"], _excluded15 = ["title"], _excluded16 = ["title"], _excluded17 = ["title"], _excluded18 = ["title"], _excluded19 = ["title"], _excluded20 = ["title"], _excluded21 = ["title"], _excluded22 = ["title"], _excluded23 = ["title"], _excluded24 = ["title"], _excluded25 = ["title"], _excluded26 = ["title"], _excluded27 = ["title"], _excluded28 = ["title"], _excluded29 = ["title"], _excluded30 = ["title"], _excluded31 = ["title"], _excluded32 = ["title"], _excluded33 = ["title"], _excluded34 = ["title"], _excluded35 = ["title"], _excluded36 = ["title"], _excluded37 = ["title"], _excluded38 = ["title"], _excluded39 = ["title"], _excluded40 = ["title"], _excluded41 = ["title"], _excluded42 = ["title"], _excluded43 = ["title"], _excluded44 = ["title"], _excluded45 = ["title"], _excluded46 = ["title"], _excluded47 = ["title"], _excluded48 = ["title"], _excluded49 = ["title"], _excluded50 = ["title"], _excluded51 = ["title"], _excluded52 = ["title"], _excluded53 = ["title"], _excluded54 = ["title"], _excluded55 = ["title"], _excluded56 = ["title"], _excluded57 = ["title"], _excluded58 = ["title"], _excluded59 = ["title"], _excluded60 = ["title"], _excluded61 = ["title"], _excluded62 = ["title"], _excluded63 = ["title"], _excluded64 = ["title"], _excluded65 = ["title"], _excluded66 = ["title"], _excluded67 = ["title"], _excluded68 = ["title"], _excluded69 = ["title"], _excluded70 = ["title"], _excluded71 = ["title"], _excluded72 = ["title"], _excluded73 = ["title"], _excluded74 = ["title"], _excluded75 = ["title"], _excluded76 = ["title"], _excluded77 = ["title"], _excluded78 = ["title"], _excluded79 = ["title"], _excluded80 = ["title"], _excluded81 = ["title"], _excluded82 = ["title"], _excluded83 = ["title"], _excluded84 = ["title"], _excluded85 = ["title"], _excluded86 = ["title"], _excluded87 = ["title"], _excluded88 = ["title"], _excluded89 = ["title"], _excluded90 = ["title"], _excluded91 = ["title"], _excluded92 = ["title"], _excluded93 = ["title"], _excluded94 = ["title"], _excluded95 = ["title"], _excluded96 = ["title"], _excluded97 = ["title"], _excluded98 = ["title"], _excluded99 = ["title"], _excluded100 = ["title"], _excluded101 = ["title"], _excluded102 = ["title"], _excluded103 = ["title"], _excluded104 = ["title"], _excluded105 = ["title"], _excluded106 = ["title"], _excluded107 = ["title"], _excluded108 = ["title"], _excluded109 = ["title"], _excluded110 = ["title"], _excluded111 = ["title"], _excluded112 = ["title"], _excluded113 = ["title"], _excluded114 = ["title"], _excluded115 = ["title"], _excluded116 = ["title"], _excluded117 = ["title"], _excluded118 = ["title"], _excluded119 = ["title"], _excluded120 = ["title"], _excluded121 = ["title"], _excluded122 = ["title"], _excluded123 = ["title"], _excluded124 = ["title"], _excluded125 = ["title"], _excluded126 = ["title"], _excluded127 = ["title"], _excluded128 = ["title"], _excluded129 = ["title"], _excluded130 = ["title"], _excluded131 = ["title"], _excluded132 = ["title"], _excluded133 = ["title"], _excluded134 = ["title"], _excluded135 = ["title"], _excluded136 = ["title"], _excluded137 = ["title"], _excluded138 = ["title"], _excluded139 = ["title"], _excluded140 = ["title"], _excluded141 = ["title"], _excluded142 = ["title"], _excluded143 = ["title"], _excluded144 = ["title"], _excluded145 = ["title"], _excluded146 = ["title"], _excluded147 = ["title"], _excluded148 = ["title"], _excluded149 = ["title"], _excluded150 = ["title"], _excluded151 = ["title"], _excluded152 = ["title"], _excluded153 = ["title"], _excluded154 = ["title"], _excluded155 = ["title"], _excluded156 = ["title"], _excluded157 = ["title"], _excluded158 = ["title"], _excluded159 = ["title"], _excluded160 = ["title"], _excluded161 = ["title"], _excluded162 = ["title"], _excluded163 = ["title"], _excluded164 = ["title"], _excluded165 = ["title"], _excluded166 = ["title"], _excluded167 = ["title"], _excluded168 = ["title"], _excluded169 = ["title"], _excluded170 = ["title"], _excluded171 = ["title"], _excluded172 = ["title"], _excluded173 = ["title"], _excluded174 = ["title"], _excluded175 = ["title"], _excluded176 = ["title"], _excluded177 = ["title"], _excluded178 = ["title"], _excluded179 = ["title"], _excluded180 = ["title"], _excluded181 = ["title"], _excluded182 = ["title"], _excluded183 = ["title"], _excluded184 = ["title"], _excluded185 = ["title"], _excluded186 = ["title"], _excluded187 = ["title"], _excluded188 = ["title"], _excluded189 = ["title"], _excluded190 = ["title"], _excluded191 = ["title"], _excluded192 = ["title"], _excluded193 = ["title"], _excluded194 = ["title"], _excluded195 = ["title"], _excluded196 = ["title"], _excluded197 = ["title"], _excluded198 = ["title"], _excluded199 = ["title"], _excluded200 = ["title"], _excluded201 = ["title"], _excluded202 = ["title"], _excluded203 = ["title"], _excluded204 = ["title"], _excluded205 = ["title"], _excluded206 = ["title"], _excluded207 = ["title"], _excluded208 = ["title"], _excluded209 = ["title"], _excluded210 = ["title"], _excluded211 = ["title"], _excluded212 = ["title"], _excluded213 = ["title"], _excluded214 = ["title"], _excluded215 = ["title"], _excluded216 = ["title"], _excluded217 = ["title"], _excluded218 = ["title"], _excluded219 = ["title"], _excluded220 = ["title"], _excluded221 = ["title"], _excluded222 = ["title"], _excluded223 = ["title"], _excluded224 = ["title"], _excluded225 = ["title"], _excluded226 = ["title"], _excluded227 = ["title"], _excluded228 = ["title"], _excluded229 = ["title"], _excluded230 = ["title"], _excluded231 = ["title"], _excluded232 = ["title"], _excluded233 = ["title"], _excluded234 = ["title"], _excluded235 = ["title"], _excluded236 = ["title"], _excluded237 = ["title"], _excluded238 = ["title"], _excluded239 = ["title"], _excluded240 = ["title"], _excluded241 = ["title"], _excluded242 = ["title"], _excluded243 = ["title"], _excluded244 = ["title"], _excluded245 = ["title"], _excluded246 = ["title"], _excluded247 = ["title"], _excluded248 = ["title"], _excluded249 = ["title"], _excluded250 = ["title"], _excluded251 = ["title"], _excluded252 = ["title"], _excluded253 = ["title"], _excluded254 = ["title"]; function _extends() { _extends = Object.assign || function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } 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; } var AC = function AC2(_ref) { var title = _ref.title, rest = _objectWithoutProperties(_ref, _excluded); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5" }), /* @__PURE__ */ React.createElement("path", { fill: "#5CC85C", d: "M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z" }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-82.3 291.431 225.686)", fill: "#F7A226", cx: 291.4, cy: 225.7, rx: 48.7, ry: 15.7 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-68.099 303.087 164.67)", fill: "#DDC7AB", cx: 303.1, cy: 164.7, rx: 11.7, ry: 7.2 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-81.738 291.697 271.697)", fill: "#DDC7AB", cx: 291.7, cy: 271.7, rx: 11.4, ry: 3.3 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)", fill: "#DDC7AB", cx: 299.6, cy: 269.4, rx: 3.3, ry: 11 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-21.518 314.54 201.06)", fill: "#DDC7AB", cx: 314.5, cy: 201.1, rx: 4.1, ry: 13.7 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-21.518 317.511 178.077)", fill: "#DDC7AB", cx: 317.5, cy: 178.1, rx: 13.7, ry: 4.1 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-7.7 473.781 225.857)", fill: "#F7A226", cx: 473.6, cy: 225.9, rx: 15.7, ry: 48.7 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-21.901 462.057 164.866)", fill: "#DDC7AB", cx: 462, cy: 164.9, rx: 7.2, ry: 11.7 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-8.27 473.27 271.908)", fill: "#DDC7AB", cx: 473.4, cy: 271.9, rx: 3.3, ry: 11.4 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "matrix(.05353 -.9986 .9986 .05353 171.34 719.998)", fill: "#DDC7AB", cx: 465.5, cy: 269.6, rx: 11, ry: 3.3 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-68.482 450.552 201.247)", fill: "#DDC7AB", cx: 450.6, cy: 201.2, rx: 13.7, ry: 4.1 }), /* @__PURE__ */ React.createElement("ellipse", { transform: "rotate(-68.482 447.58 178.265)", fill: "#DDC7AB", cx: 447.6, cy: 178.3, rx: 4.1, ry: 13.7 }), /* @__PURE__ */ React.createElement("path", { fill: "#B0C6CC", d: "M373.3 130.3 356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z" })); }; var AD = function AD2(_ref2) { var title = _ref2.title, rest = _objectWithoutProperties(_ref2, _excluded2); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("style", null, ".prefix__st0{fill:#ffda44}.prefix__st1{fill:#0052b4}.prefix__st2{fill:#d80027}.prefix__st3,.prefix__st4{fill:none;stroke:#d80027;stroke-width:7;stroke-miterlimit:10}.prefix__st4{stroke-width:4}.prefix__st5{fill:#bc8b00}"), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h171v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M342 0h171v342H342zM198.9 113.6H256v64.8h-57.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M267.6 113.6v64.7m16.6-64.7v64.7m16.6-64.7v64.7", stroke: "#D80027", strokeWidth: 7 }), /* @__PURE__ */ React.createElement("path", { d: "M247.4 178.4v64.7m-13.3-64.7v64.7m-13.3-64.6v53.9m-13.7-53.9v47.1", stroke: "#D80027", strokeWidth: 5 }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m199.9 146 27.6-32.4 28.5 32.3-28.1 32.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#BC8B00", d: "M182.2 95.9v92.2c0 34.3 27.3 54.2 48.6 64.5-.8 1.4 25.1 8.3 25.1 8.3s25.9-6.9 25.1-8.3c21.4-10.3 48.6-30.1 48.6-64.5V95.9H182.2zm129.9 92.2c0 16.9-10 29.4-32.8 43.9-8.6 5.5-17.5 9-23.3 11-5.8-2-14.7-5.5-23.3-11-22.8-14.5-32.8-28-32.8-43.9v-74.5h112.2v74.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M264.4 188.9h29.5v8.6h-29.5zm0 17.6h29.5v8.6h-29.5z" })); }; var AE = function AE2(_ref3) { var title = _ref3.title, rest = _objectWithoutProperties(_ref3, _excluded3); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#009e49", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 228h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ce1126", d: "M0 0h171v342H0z" })); }; var AF = function AF2(_ref4) { var title = _ref4.title, rest = _objectWithoutProperties(_ref4, _excluded4); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#DB3E00", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#479900", d: "M331 0h182v342H331z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h181.8v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 126.7c-19.4 0-35.2 15.8-35.2 35.2v52.8h70.4v-52.8c0-19.5-15.8-35.2-35.2-35.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 84.3c-47.7 0-86.4 38.7-86.4 86.4S208.3 257 256 257s86.4-38.7 86.4-86.4-38.7-86.3-86.4-86.3zm0 157.7c-39.4 0-71.4-32-71.4-71.4 0-39.4 32-71.4 71.4-71.4 39.4 0 71.4 32 71.4 71.4 0 39.5-32 71.4-71.4 71.4z" })); }; var AG = function AG2(_ref5) { var title = _ref5.title, rest = _objectWithoutProperties(_ref5, _excluded5); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0072c6", d: "M88.8 136.5c-2.2 12.9-3.4 26.2-3.4 39.8 0 13.6 1.2 27 3.4 39.8L256 228.3l167.2-12.1c2.2-12.9 3.4-26.2 3.4-39.8s-1.2-27-3.4-39.8" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M423.2 219H88.8c15.8 69.8 84.7 122.3 167.2 122.3S407.4 288.8 423.2 219z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M365.9 136.5H146.1l44.9-21.1-23.9-43.5 48.8 9.4L222 32l34 36.2L290 32l6.1 49.3 48.8-9.4-23.9 43.5z" }), /* @__PURE__ */ React.createElement("g", { fill: "#ce1126" }, /* @__PURE__ */ React.createElement("path", { d: "M256.5 342 0 0v342z" }), /* @__PURE__ */ React.createElement("path", { d: "M513 342V0L256 342z" }))); }; var AI = function AI2(_ref6) { var title = _ref6.title, rest = _objectWithoutProperties(_ref6, _excluded6); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#00318b", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M454.8 265.38c7.94-10.93 13.24-24.27 13.24-40.42V104.89a59.754 59.754 0 0 1-36.02 12.01c-19.64 0-37.07-9.43-48.03-24.01-10.95 14.58-28.39 24.01-48.03 24.01-13.52 0-25.99-4.47-36.02-12v120.06c0 16.16 5.3 29.5 13.24 40.42H454.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#8DCCFF", d: "M310.23 260.98C332.65 296.96 384 309 384 309s51.35-12.04 73.77-48.02H310.23z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D87B00", d: "M396.66 172.21c.32 1.42 8.72 10.17 17.56 20.15 1.39 1.57-8.74 12.63-6.91 12.59 4.75-.12 19.27-17.26 19.34 6.65.05 15.94-30 27.51-30 27.51h17.47l.65 14.96s4.97-13.34 7.59-16.57c8.1-9.97 20.18-30.07 34.59-27.1 14.41 2.97-13.66-13.92-13.66-13.92s-5.2-15.19-16.63-16.97c-10.06-1.57-14.29-2.51-26.64-7.3-1.68-.65-3.88-2.32-3.36 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D87B00", d: "M359.69 198.69c1.07-.99 4.46-12.63 8.69-25.28.67-1.99 15.31 1.27 14.35-.3-2.47-4.06-24.58-8.08-3.9-20.08 13.79-8 38.82 12.27 38.82 12.27l-8.72-15.14 12.64-8.03s-14.05 2.35-18.14 1.69c-12.68-2.04-36.13-2.48-40.75-16.45-4.62-13.97-5.25 18.79-5.25 18.79s-10.56 12.08-6.4 22.88c3.66 9.5 4.96 13.64 6.97 26.73.29 1.79-.06 4.53 1.69 2.92z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D87B00", d: "M395.67 219.87c-1.39-.43-13.16 2.49-26.22 5.18-2.06.42-6.59-13.88-7.47-12.26-2.27 4.17 5.36 25.31-15.41 13.45-13.84-7.91-8.89-39.73-8.89-39.73l-8.71 15.14-13.29-6.9s9.09 10.96 10.57 14.84c4.6 11.99 16 32.49 6.24 43.49-9.76 11.01 18.88-4.9 18.88-4.9s15.76 3.07 23-5.96c6.38-7.94 9.3-11.14 19.61-19.45 1.43-1.12 3.97-2.19 1.69-2.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256.5 0h-23.1L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1V171h22.6L96 121.8V171h64v-49.2l73.4 49.2h23.1v-22.9l-46.6-30.7h46.6v-64h-46.6l46.6-30.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 0h-32v69.4H0v32h112V171h32v-69.6h112.5v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 171v-11.3l62.5-42.3h22.6L7.3 171zM7.3.1l77.8 53.2H62.5L0 11.1V.1zm249.2 0v11l-63 42.3h-22.6L248.7.1zM248.7 171l-77.8-53.6h22.6l63 42.3V171z" })); }; var AL = function AL2(_ref7) { var title = _ref7.title, rest = _objectWithoutProperties(_ref7, _excluded7); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 90 60" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ED2024", d: "M0 0h90v60H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#212121", d: "M32.5 12.2v16l7.1 2.5-5 4.9 2.4 3 5.3-5.5 1.2 2.3-3 4.9 3.6 5.6-1.8 2.6 2.8 3.6 2.7-3.7-1.5-2.6 3-5.8-2.7-4.6 1.2-2.3 5.2 5.5 2.5-2.9-5.2-5.1 7.2-2.6V12.2l-5.2 1.9-.1 3.8-3.3.3v-2.6l1.7-2.3 5.6-2.2-2.3-.4 1.4-1.2.9.4-.8-1.4L54 9l-1-1.1L47.5 9l1.4 1.1-3.8 4.9-3.8-4.8 1.3-1.1-5-1.2L36.2 9l-1.5-.4-.8 1.4.9-.6 1.6 1.1-2.3.5 5.5 2 1.6 2.3v2.9l-3.3-.3v-3.6z" }), /* @__PURE__ */ React.createElement("path", { d: "M26.2 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM57.4 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM53.4 36.1h6.4V38h-6.4zm-23.2 0h6.4V38h-6.4z", fill: "#212121" })); }; var AM = function AM2(_ref8) { var title = _ref8.title, rest = _objectWithoutProperties(_ref8, _excluded8); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M0 228h513v114H0z" })); }; var AO = function AO2(_ref9) { var title = _ref9.title, rest = _objectWithoutProperties(_ref9, _excluded9); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 171h513v171H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", className: "prefix__st0", d: "M0 0h513v171H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFDA44" }, /* @__PURE__ */ React.createElement("path", { d: "m332.7 135.6 17.5-8.6-7.4-19-18.7 6.2zm-45.6-56 5.5-18.8-19.1-7.2-8 18zm29.4 23.2 12.2-15.3-14.9-13.9-14.2 13.6zm19.4 68.9 19.5-.8v-21.3l-22.9.2zm-12.6 38.1 18.8 5.5 7.3-19-18-8zm-29 32.4 14.9 12.7 14.4-14.4-13.1-14.7zm-47-147.7 9.8 19.9 21.9 3.3-15.9 15.5 3.6 21.9-19.6-10.4-19.7 10.2 3.8-21.9-15.8-15.5 22-3.1z" }), /* @__PURE__ */ React.createElement("path", { d: "m250.8 61.3-2.7 18.3c43.1 3.2 77 39.2 77 83.1 0 46-37.3 82.9-83.4 83.4-29.2.3-51.3-14.8-67-33.7l-13.9 12.3c15 19 40.8 39.9 80.9 39.9 56.3 0 101.9-45.6 101.9-101.9.1-53.2-40.7-96.9-92.8-101.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#000", d: "m291.9 223.4-11.8 14s51.9 38.9 53.6 40.4c1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-2-1.5-51.8-42-51.8-42z" }), /* @__PURE__ */ React.createElement("path", { d: "M206.1 157.2c-7.7 10.3-7.5 23.1 2.8 30.9 0 0 135.2 101.5 136.9 103 1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-1.9-1.5-149.7-121.5-149.7-121.5zm47.7 99.1 7.3 18.2 19.5-6-4.8-19.1zm-40.4-3.7-2 19.5 20.1 3.6 4.5-19.1zm-35.7-21.2L167.4 248l16.4 12.1 12.5-15.2z" }))); }; var AQ = function AQ2(_ref10) { var title = _ref10.title, rest = _objectWithoutProperties(_ref10, _excluded10); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 744 496" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#3A7DCE", d: "M0 0h744v496H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "m120 125 90 63 54-14 23-81 61-36 92 14 105 55 6 90 34 12v92l-65 115-78 24-72-17 18-30-8-32-10 9-162-25-49-85 20-46-49-62z" })); }; var AR = function AR2(_ref11) { var title = _ref11.title, rest = _objectWithoutProperties(_ref11, _excluded11); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 0h512v114H0zm0 228h512v114H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFDA44", stroke: "#d6ab00", strokeWidth: 5, cx: 256.5, cy: 171, r: 40 })); }; var AS = function AS2(_ref12) { var title = _ref12.title, rest = _objectWithoutProperties(_ref12, _excluded12); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#10338c", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M513 33 95.3 171 513 310.76v30.57L0 171 513 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M513 287.18v24.58L81.72 171 513 30v24.16" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "m476.98 140.21-21.89 10.68-3.18-15.32 31.19-29.77s-9.42-40.65-13.75-44.98l-112.32 55.82-6.84 36.76-31.9 28.59-.4 34.2 34.29-22.76 67.23-2.66-1.51 38.11h22.23l11.9-44.64 31.55-24.61-6.6-19.42z" }), /* @__PURE__ */ React.createElement("path", { fill: "#EFC100", stroke: "#231F20", strokeMiterlimit: 10, d: "m317.89 238.41-22.24-11.11 22.24-11.11h144.46v22.22z" })); }; var AT = function AT2(_ref13) { var title = _ref13.title, rest = _objectWithoutProperties(_ref13, _excluded13); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 114h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v114H0zm0 228h513v114H0z" })); }; var AU = function AU2(_ref14) { var title = _ref14.title, rest = _objectWithoutProperties(_ref14, _excluded14); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#10338c", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z" }), /* @__PURE__ */ React.createElement("path", { d: "M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z" })), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "m154.6 115 100.2 55.7v-15.8L183 115z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m154.6 115 100.2 55.7v-15.8L183 115z" }), /* @__PURE__ */ React.createElement("path", { d: "m154.6 115 100.2 55.7v-15.8L183 115zm-83.9 0-71.9 39.9v15.8L99 115z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M99 55.7-1.2 0v15.7l71.9 40z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M99 55.7-1.2 0v15.7l71.9 40z" }), /* @__PURE__ */ React.createElement("path", { d: "M99 55.7-1.2 0v15.7l71.9 40zm84 0 71.8-40V0L154.6 55.7z", fill: "#D80027" })); }; var AW = function AW2(_ref15) { var title = _ref15.title, rest = _objectWithoutProperties(_ref15, _excluded15); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 363 242" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 0h363v242H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M57 96.9 14.7 78.2 57 59.6l18.6-42.2 18.6 42.2 42.3 18.6-42.3 18.7-18.6 42.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f30028", d: "m75.6 40.6 11.5 26.1 26.1 11.5-26.1 11.5-11.5 26.1-11.5-26.1L38 78.2l26.1-11.5z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 152.2h363v15.7H0zm0 31.4h363v15.7H0z", fill: "#FFDA44" })); }; var AX = function AX2(_ref16) { var title = _ref16.title, rest = _objectWithoutProperties(_ref16, _excluded16); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M513 210.9H202.2V342h-79.8V210.9H0v-79.8h122.4V0h79.8v131.1H513v61.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M513 149.7v42.6H183.7V342H141V192.3H0v-42.6h141V0h42.7v149.7z" })); }; var AZ = function AZ2(_ref17) { var title = _ref17.title, rest = _objectWithoutProperties(_ref17, _excluded17); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ef3340", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00b5e2", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#509e2f", d: "M0 228h513v114H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z" }), /* @__PURE__ */ React.createElement("path", { d: "m297.6 142.2 5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z" }))); }; var BA = function BA2(_ref18) { var title = _ref18.title, rest = _objectWithoutProperties(_ref18, _excluded18); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#10338C", d: "M0 0h513.1v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F6C500", d: "M99.9 0h342v342" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M19.9 21.1 40.3 6.2 60.9 21 54 0H26.7z" }), /* @__PURE__ */ React.createElement("path", { d: "M92.3 25.5 84.4 1.3l-7.8 24.2H51.3l20.5 14.8-7.8 24 20.4-14.8L105 64.3l-7.9-24 20.5-14.9z" }), /* @__PURE__ */ React.createElement("path", { d: "m136.3 69.2-7.8-24-7.8 24H95.5l20.4 14.9-7.8 24 20.4-14.8 20.6 14.8-7.8-24 20.4-14.9z" }), /* @__PURE__ */ React.createElement("path", { d: "m179.4 112.3-7.8-24.1-7.8 24.1h-25.3l20.5 14.9-7.8 24 20.4-14.8 20.6 14.8-7.9-24 20.5-15z" }), /* @__PURE__ */ React.createElement("path", { d: "m222.5 155.3-7.8-24-7.8 24h-25.4l20.6 15-7.8 24 20.4-14.9 20.4 14.9-7.8-24 20.6-15z" }), /* @__PURE__ */ React.createElement("path", { d: "m265.6 198.4-7.8-24-7.8 24h-25.4l20.6 14.9-7.8 24.1 20.4-14.9 20.4 14.9-7.8-24.2 20.5-14.8z" }), /* @__PURE__ */ React.createElement("path", { d: "m308.7 241.5-7.9-24-7.8 24h-25.3l20.5 14.8-7.9 24.2 20.6-14.9 20.4 14.8-7.8-24.1 20.5-14.8z" }), /* @__PURE__ */ React.createElement("path", { d: "m351.7 284.6-7.8-24.2-7.8 24.2h-25.3l20.4 14.8-7.8 24.1 20.5-14.9 20.5 14.9-7.8-24.1 20.4-14.8z" }), /* @__PURE__ */ React.createElement("path", { d: "m387 303.5-7.9 24.1-25.3.1 19.8 14.3h26.6l19.9-14.4h-25.3z" }))); }; var BB = function BB2(_ref19) { var title = _ref19.title, rest = _objectWithoutProperties(_ref19, _excluded19); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ffc726", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h171v342H0zm342 0h171v342H342z", fill: "#00267f" }), /* @__PURE__ */ React.createElement("path", { d: "m325.74 101.02-31.97 12.4c-.68 1.35-5.79 7.54-8.18 53.06h-17.05v-60.42L256 78.68l-12.54 27v60.8H226.4c-2.39-45.53-7.8-52.48-8.47-53.84l-31.68-11.63c.15.31 15.4 31.34 15.4 78.01v12.54h41.81v71.07h25.08v-71.07h41.81v-12.54c0-24.13 4.17-44.02 7.68-56.46 3.82-13.57 7.7-21.49 7.74-21.57l-.03.03z" })); }; var BD = function BD2(_ref20) { var title = _ref20.title, rest = _objectWithoutProperties(_ref20, _excluded20); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#2d6e41", d: "M0 85.331h513v342H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#F40B32", cx: 218.902, cy: 256.5, r: 115 })); }; var BE = function BE2(_ref21) { var title = _ref21.title, rest = _objectWithoutProperties(_ref21, _excluded21); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#fdda25", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h171v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ef3340", d: "M342 0h171v342H342z" })); }; var BF = function BF2(_ref22) { var title = _ref22.title, rest = _objectWithoutProperties(_ref22, _excluded22); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#3d944f", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ef2b2d", d: "M0 0h513v171H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m256 102.6 16.9 52h54.7l-44.2 32.2 16.8 52-44.2-32.1-44.2 32.1 16.8-52-44.2-32.2h54.7z" })); }; var BG = function BG2(_ref23) { var title = _ref23.title, rest = _objectWithoutProperties(_ref23, _excluded23); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#00966e", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#d62612", d: "M0 312.888h512v113.775H0z" })); }; var BH = function BH2(_ref24) { var title = _ref24.title, rest = _objectWithoutProperties(_ref24, _excluded24); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m222.8 34.3-85.2 34.2 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1H0V0h137.6z" })); }; var BI = function BI2(_ref25) { var title = _ref25.title, rest = _objectWithoutProperties(_ref25, _excluded25); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M215.9 170.7 0 314.6V26.8zM513 26.8v287.8L297.1 170.7z", fill: "#47a644" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M512 26.8 296.1 170.7 512 314.6v26.7h-40.1L256 197.4 40.1 341.3H0v-26.7l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H512z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M513 26.8 297.1 170.7 513 314.6V342h-40L256 197.4 39 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 251.6, cy: 170.7, r: 100.2 }), /* @__PURE__ */ React.createElement("path", { d: "m251.4 103.6 7.4 12.9h14.8l-7.4 12.8 7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8H244zm38.8 66.7 7.4 12.9h14.8L305 196l7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.9l7.4-12.8-7.4-12.8h14.9zm-77.2 0 7.4 12.9h14.9l-7.4 12.8 7.4 12.8h-14.9l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8h14.8z", fill: "#D80027", stroke: "#47a644", strokeWidth: 3 })); }; var BJ = function BJ2(_ref26) { var title = _ref26.title, rest = _objectWithoutProperties(_ref26, _excluded26); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#008751", d: "M0 85.333h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fcd116", d: "M196.666 85.333H513v171H196.666z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e8112d", d: "M196.666 256H513v171H196.666z" })); }; var BL = function BL2(_ref27) { var title = _ref27.title, rest = _objectWithoutProperties(_ref27, _excluded27); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.33" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.33H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E6BC00", d: "M157.31 199.76s-9.04 43.93-19.31 40.39c-10.62-3.54-17.53-18.76-17.53-18.76l-14.52 21.24s38.18 8.48 41.01 5.47c1.22-1.14 8.21-15.1 10.34-26.05v-22.29zm-56.13 60.57s-2.48 20.18-1.06 22.66c1.24 2.3 39.48 11.33 39.48 11.33s-24.96 16.46-29.74 20.54L91.8 284.94l-.71-24.61h10.09zm11.33-165.69s39.65 41.6 40.36 45.5c.71 3.72-4.25 3.19-4.25 3.19s-44.79-37.53-49.92-41.07c-5.31-3.55 13.81-7.62 13.81-7.62z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ADADAD", d: "M99.41 104.73s16.99-.71 16.64-11.51c-.35-10.62-11.15-14.87-19.12-12.39-7.97 2.3-23.01 13.45-13.63 35.05 9.38 21.42 23.37 29.39 26.2 47.8 0 0-5.46 9.86-19.12.35-16.9-11.77-6.2-38.24-10.44-44.96-4.25-7.08-40.95-38.92-40.95-38.92s-30.24 39.37-18 74.92c16.95 49.21 51.74 31.98 64.61 36.76 0 0-42.13 61.96-49.57 67.09 0 0 24.08 8.32 47.8-18.76 0 0 5.84 9.74 7.08 20.18h10.27c4.78-26.2 51.51-64.26 49.92-82.32-1.77-21.25-49.21-49.39-51.69-73.29z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E6BC00", d: "M359.17 201.27s8.96 42.43 19.23 38.89c10.62-3.54 17.53-18.76 17.53-18.76l14.52 21.24s-37 8.48-39.83 5.47c-1.21-1.14-9.32-13.79-11.52-24.66l.07-22.18zm56.05 59.06s2.48 20.18 1.06 22.66c-1.24 2.3-39.48 11.33-39.48 11.33s24.96 16.46 29.74 20.54l18.06-29.92.71-24.61h-10.09zM403.89 94.64s-39.65 41.6-40.36 45.5c-.71 3.72 4.25 3.19 4.25 3.19s44.79-37.53 49.92-41.07c5.14-3.55-13.81-7.62-13.81-7.62z" }), /* @__PURE__ */ React.createElement("path", { fill: "#125ECC", d: "M157.31 87.06H359.1v145.46c0 16.06-9.69 21.39-21.91 31.85l-45.92 39.41c-18.25 15.62-47.91 15.57-66.07 0l-46.01-39.43c-12.08-10.35-21.88-15.71-21.88-31.82V87.06z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFE600", d: "M200.55 147.71c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65-3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zM214.96 274.43c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c.01 7.96-6.45 14.41-14.41 14.41zm43.24 14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c0 7.95-6.45 14.41-14.41 14.41zm43.24-14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D60537", d: "M157.31 175.36H359.1v57.65H157.31v-57.65z" }), /* @__PURE__ */ React.createElement("path", { fill: "#EACE00", d: "M142.9 43.82s57.65-14.41 115.31-14.41 115.31 14.41 115.31 14.41l-14.41 57.65s-50.45-14.41-100.89-14.41-100.89 14.41-100.89 14.41L142.9 43.82z" }), /* @__PURE__ */ React.createElement("path", { fill: "#7A6920", d: "M258.2 72.65c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 5c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm-115.3 0c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ADADAD", d: "M365.08 178.02c-1.59 18.06 45.14 56.12 49.92 82.32h10.27c1.24-10.44 7.08-20.18 7.08-20.18 23.72 27.09 47.8 18.76 47.8 18.76-7.44-5.13-49.57-67.09-49.57-67.09 12.88-4.78 47.67 12.45 64.61-36.76 12.24-35.55-18-74.92-18-74.92s-36.7 31.84-40.95 38.92c-4.25 6.73 6.46 33.2-10.44 44.96-13.66 9.51-19.12-.35-19.12-.35 2.83-18.41 16.82-26.38 26.2-47.8 9.38-21.6-5.66-32.75-13.63-35.05-7.97-2.48-18.76 1.77-19.12 12.39-.35 10.8 16.64 11.51 16.64 11.51-2.48 23.9-49.92 52.04-51.69 73.29z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 258.2, cy: 204.19, r: 16.93 })); }; var BM = function BM2(_ref28) { var title = _ref28.title, rest = _objectWithoutProperties(_ref28, _excluded28); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#c8102e", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#012169", d: "M0 .1h256.5v171H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#c8102e", d: "M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#c8102e", d: "M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z" }), /* @__PURE__ */ React.createElement("g", { transform: "translate(13 5)" }, /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2F8F22", d: "M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#65B5D2", cx: 383.65, cy: 214.56, r: 39.88 }), /* @__PURE__ */ React.createElement("circle", { fill: "#c8102e", cx: 343.77, cy: 194.63, r: 19.94 }), /* @__PURE__ */ React.createElement("circle", { fill: "#c8102e", cx: 423.52, cy: 194.63, r: 19.94 }), /* @__PURE__ */ React.createElement("circle", { fill: "#c8102e", cx: 383.65, cy: 154.75, r: 19.94 }))); }; var BN = function BN2(_ref29) { var title = _ref29.title, rest = _objectWithoutProperties(_ref29, _excluded29); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.33" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h512v341.33H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m0 193.74 512 127.19V214.26L0 97.08z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 234.26v-86.67L0 20.41v86.67" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027", stroke: "#231F20", strokeWidth: 3, strokeMiterlimit: 10 }, /* @__PURE__ */ React.createElement("path", { d: "M306.4 134.01a50.28 50.28 0 0 1 6.07 24.02c0 21.55-13.51 39.94-32.52 47.19v-59.51c5.7-1.19 10-6.37 10-12.59 6.9 0 12.5-5.75 12.5-12.85h-.42c6.9 0 12.91-5.75 12.91-12.85h-34.99V76.58l-14.99-27.71-15 27.71v30.84h-34.99c0 7.1 6.01 12.85 12.91 12.85h-.42c0 7.1 5.6 12.85 12.5 12.85 0 6.22 4.29 11.4 9.99 12.59v61.37c-22.09-5.39-38.48-25.3-38.48-49.05 0-8.7 2.2-16.88 6.07-24.02-10.96 11.21-17.72 26.53-17.72 43.44 0 34.32 27.82 62.15 62.15 62.15s62.15-27.83 62.15-62.15c0-16.91-6.77-32.24-17.72-43.44z" }), /* @__PURE__ */ React.createElement("path", { d: "M198.46 226.81s20.69 27.71 66.5 27.71 66.5-27.71 66.5-27.71l13.47 28.37s-21.03 27.71-79.97 27.71-79.97-27.71-79.97-27.71l13.47-28.37zm-69.22-93.63h20.88l24.93 27.26v73.45h-26.28v-68.37zm270.76 0h-20.88l-24.93 27.26v73.45h26.27v-68.37z" }))); }; var BO = function BO2(_ref30) { var title = _ref30.title, rest = _objectWithoutProperties(_ref30, _excluded30); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#d52b1e", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f9e300", d: "M0 114h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#007934", d: "M0 228h513v114H0z" })); }; var BQ = function BQ2(_ref31) { var title = _ref31.title, rest = _objectWithoutProperties(_ref31, _excluded31); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#012a87", d: "M0 341.3h512V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f9d90f", d: "M250.4 0H0v166.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#dc171d", d: "m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z" }), /* @__PURE__ */ React.createElement("circle", { fill: "none", stroke: "#000", strokeWidth: 9, strokeMiterlimit: 10, cx: 140.4, cy: 160.6, r: 57.7 })); }; var BR = function BR2(_ref32) { var title = _ref32.title, rest = _objectWithoutProperties(_ref32, _excluded32); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#009b3a", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fedf00", d: "m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 256.5, cy: 171, r: 80.4 }), /* @__PURE__ */ React.createElement("path", { fill: "#002776", d: "M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z" })); }; var BS = function BS2(_ref33) { var title = _ref33.title, rest = _objectWithoutProperties(_ref33, _excluded33); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ffc72c", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#00778b" }), /* @__PURE__ */ React.createElement("path", { d: "M256 256.006 0 426.668V85.331z" })); }; var BT = function BT2(_ref34) { var title = _ref34.title, rest = _objectWithoutProperties(_ref34, _excluded34); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FF7415", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M512 0H0v341.3" }), /* @__PURE__ */ React.createElement("path", { fill: "none", stroke: "#FFF", strokeWidth: 42, strokeMiterlimit: 10, d: "M128.7 255.5s35 54 67.3 32.4c56.9-37.9-68.9-108.6-2.9-152.6 58.3-38.8 76.6 103.5 137.6 62.8 59-39.3-64.7-111.4-9.2-148.4 33.4-22.2 67.1 32.6 67.1 32.6" })); }; var BV = function BV2(_ref35) { var title = _ref35.title, rest = _objectWithoutProperties(_ref35, _excluded35); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 33.333 1100 733.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ef2b2d", d: "M0 0h1100v800H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M300 0h200v800H300z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M0 300h1100v200H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#002868", d: "M350 0h100v800H350z" }), /* @__PURE__ */ React.createElement("path", { fill: "#002868", d: "M0 350h1100v100H0z" })); }; var BW = function BW2(_ref36) { var title = _ref36.title, rest = _objectWithoutProperties(_ref36, _excluded36); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 238h513v104H0zM0 0h513v104H0z", fill: "#6da9d2" }), /* @__PURE__ */ React.createElement("path", { d: "M0 125.5h513v89.656H0z" })); }; var BY = function BY2(_ref37) { var title = _ref37.title, rest = _objectWithoutProperties(_ref37, _excluded37); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#007C30", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#CE1720", d: "M0 230h513V0H0" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100 230V0H0v342h513-413z" }), /* @__PURE__ */ React.createElement("path", { d: "M28 159.6 8.6 128.2 28 97.4l19.3 30.8zm44.6 0-19.3-31.4 19.3-30.8L92 128.2zM28 241.2 8.6 209.8 28 179l19.3 30.8zm44.6 0-19.3-31.4L72.6 179 92 209.8z", fill: "#CE1720" }), /* @__PURE__ */ React.createElement("path", { d: "m28 73.8-16.1-26L28 22.2l16 25.6zm44.6 0-16-26 16-25.6 16.1 25.6zM28 318l-16.1-26.1L28 266.3l16 25.6zm44.6 0-16-26.1 16-25.6 16.1 25.6z", fill: "none", stroke: "#CE1720", strokeWidth: 7 })); }; var BZ = function BZ2(_ref38) { var title = _ref38.title, rest = _objectWithoutProperties(_ref38, _excluded38); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#003e87", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 260.9, cy: 170.9, r: 118.9 }), /* @__PURE__ */ React.createElement("circle", { fill: "none", stroke: "#6DA544", strokeWidth: 18, strokeMiterlimit: 10, cx: 261.9, cy: 173.1, r: 94.5 }), /* @__PURE__ */ React.createElement("g", { stroke: "#000" }, /* @__PURE__ */ React.createElement("path", { fill: "#003e87", d: "m261.9 151.5-50.6 23.4v20c0 11.8 6.1 22.8 16.2 28.9L262 239l34.5-15.2c10-6.2 16.2-17.1 16.2-28.9v-20l-50.8-23.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M211.3 128.1h101.3v46.7H211.3z" })), /* @__PURE__ */ React.createElement("path", { d: "M0 0h512v35H0zm0 306h512v35H0z", fill: "#ce1127" })); }; var CA = function CA2(_ref39) { var title = _ref39.title, rest = _objectWithoutProperties(_ref39, _excluded39); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z", fill: "red" })); }; var CC = function CC2(_ref40) { var title = _ref40.title, rest = _objectWithoutProperties(_ref40, _excluded40); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "green", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m422.7 252.4 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.2V301l-11.1-8.9-11.1 8.9v-14.2l-13.8-3.2 11.1-8.8-6.2-12.8 13.9 3.2zm-46.6-136.3 6.2 12.9 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.1v14.3l-11.1-8.9-11.1 8.9.1-14.3-13.9-3.1 11.1-8.8-6.2-12.8L370 129zm37-77.8 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.9-13.9 3.1v14.2L413.1 78 402 86.9l.1-14.2-13.9-3.1 11.1-8.9-6.2-12.8 13.9 3.2zm51.8 58.4 6.2 12.8 13.9-3.2-6.3 12.8 11.2 8.9-13.9 3.1.1 14.2-11.2-8.9-11.1 8.9.1-14.2L440 128l11.2-8.9-6.3-12.8 13.9 3.2zm-28 68.1 4.9 14.8h15.6l-12.6 9.2 4.8 14.9-12.7-9.2-12.6 9.2 4.8-14.9-12.6-9.2h15.6zM306.8 254.7c-49.2 0-89.1-39.9-89.1-89.1s39.9-89.1 89.1-89.1c15.3 0 29.8 3.9 42.4 10.7C329.4 67.9 302.3 56 272.5 56c-60.5 0-109.6 49.1-109.6 109.6S212 275.3 272.5 275.3c29.8 0 56.9-11.9 76.6-31.3-12.6 6.8-27 10.7-42.3 10.7zM140.4 59.5C129.7 41 109.7 28.6 86.8 28.6S44 41 33.3 59.5h107.1zm.2.4-53.8 53.8-53.7-53.8C28 68.9 25 79.3 25 90.5c0 34.2 27.7 61.9 61.9 61.9s61.9-27.7 61.9-61.9c-.1-11.2-3.1-21.6-8.2-30.6z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M71.4 98.2v52.2c4.9 1.3 10.1 1.9 15.5 1.9s10.5-.7 15.5-1.9V98.2h-31z" })); }; var CD = function CD2(_ref41) { var title = _ref41.title, rest = _objectWithoutProperties(_ref41, _excluded41); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M512 66.9V0H411.7L0 274.4v66.9h100.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 0v40.1L60.2 341.3H0v-40.1L451.8 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m93.6 31.2 16.3 50.4H163l-42.9 31.2 16.4 50.5-42.9-31.2-43 31.2L67 112.8 24.1 81.6h53.1z" })); }; var CF = function CF2(_ref42) { var title = _ref42.title, rest = _objectWithoutProperties(_ref42, _excluded42); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#d21034", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 170.7h211.5V256H0zm300.5 0H512V256H300.5z", fill: "#3a9927" }), /* @__PURE__ */ React.createElement("path", { fill: "#003082", d: "M0 0v85.3h211.5V0h89v85.3H512V0z" }), /* @__PURE__ */ React.createElement("path", { d: "M300.5 85.3H512v85.3H300.5zM0 85.3h211.5v85.3H0z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("path", { d: "M300.5 341.3h-89V256H0v85.3h512V256H300.5zM105.7 8.6l8.6 26.2h27.5L119.5 51l8.6 26.2L105.7 61 83.4 77.2 91.9 51 69.6 34.8h27.6z", fill: "#ffce00" })); }; var CG = function CG2(_ref43) { var title = _ref43.title, rest = _objectWithoutProperties(_ref43, _excluded43); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#da1a35", d: "M0 85.331h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#009543", d: "M443.726 85.331 102.4 426.657H0V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fbde4a", d: "M500.124 85.331 158.798 426.657H11.876L353.202 85.331z" })); }; var CH = function CH2(_ref44) { var title = _ref44.title, rest = _objectWithoutProperties(_ref44, _excluded44); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "red", d: "M0 85.337h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z" })); }; var CI = function CI2(_ref45) { var title = _ref45.title, rest = _objectWithoutProperties(_ref45, _excluded45); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#009e60", d: "M330.207 85.331H512v341.337H330.207z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f77f00", d: "M0 85.331h181.793v341.337H0z" })); }; var CK = function CK2(_ref46) { var title = _ref46.title, rest = _objectWithoutProperties(_ref46, _excluded46); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#01237a", d: "M0 85.332h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m384 156.705 5.283 16.254h17.089l-13.826 10.045 5.281 16.254L384 189.211l-13.825 10.047 5.28-16.254-13.825-10.045h17.089zm-70.209 29.081 15.228 7.758 12.084-12.083-2.673 16.879 15.227 7.759-16.879 2.673-2.674 16.88-7.76-15.227-16.878 2.673 12.086-12.084zm-29.081 70.209 16.254-5.281.001-17.089 10.044 13.825 16.254-5.282-10.046 13.827 10.046 13.826-16.254-5.28-10.044 13.825v-17.09zm29.081 70.209 7.759-15.229-12.084-12.084 16.881 2.674 7.757-15.227 2.674 16.879 16.879 2.672-15.227 7.759 2.673 16.882-12.084-12.087zM384 355.284l-5.281-16.253h-17.091l13.827-10.045-5.28-16.254L384 322.776l13.827-10.044-5.281 16.254 13.826 10.045h-17.089zm70.209-29.08-15.229-7.758-12.083 12.084 2.673-16.882-15.227-7.756 16.879-2.675 2.675-16.879 7.756 15.227 16.881-2.674-12.086 12.085zm29.081-70.209-16.254 5.281v17.09l-10.045-13.826-16.254 5.281 10.046-13.826-10.046-13.827 16.254 5.282 10.045-13.825v17.089zm-29.081-70.207-7.757 15.226 12.082 12.084-16.881-2.673-7.756 15.227-2.675-16.88-16.879-2.675 15.227-7.757-2.673-16.878 12.084 12.082zM0 186.665v16h46.069L0 233.377v7.539l57.377-38.252H80L0 255.998h112v-69.334H0zm96 69.331H22.628L96 207.083v48.913zm80-117.331 80-53.334H144v69.334h112v-16h-46.069L256 107.951v-7.539l-57.377 38.251H176v.002zm-16-53.332h73.372L160 134.246V85.333zm-16 170.665h112l-80-53.334h22.623L256 240.917v-7.539l-46.069-30.713H256v-16H144v69.333zm16-48.915 73.372 48.913H160v-48.913zM112 85.331H0l80 53.334H57.377L0 100.413v7.539l46.069 30.712H0v16h112V85.331zm-16 48.915L22.628 85.333H96v48.913z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 85.331h-32v69.334H0v32h112v69.333h32v-69.333h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M80 138.665 0 85.331v15.082l57.377 38.252zm96 0h22.623L256 100.413V85.331zm-118.623 64L0 240.917v15.081l80-53.333zm118.623 0 80 53.333v-15.081l-57.377-38.252z" }))); }; var CL = function CL2(_ref47) { var title = _ref47.title, rest = _objectWithoutProperties(_ref47, _excluded47); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M196 0h317v171H196z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0037A1", d: "M0 0h196v171H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M98 24.5 113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z" })); }; var CM = function CM2(_ref48) { var title = _ref48.title, rest = _objectWithoutProperties(_ref48, _excluded48); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ce1126", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#007a5e", d: "M0 0h171v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M342 0h171v342H342zm-86 102.2 17.2 53H329L283.9 188l17.2 53-45.1-32.7-45.1 32.7 17.2-53-45.1-32.8h55.8z", fill: "#fcd116" })); }; var CN = function CN2(_ref49) { var title = _ref49.title, rest = _objectWithoutProperties(_ref49, _excluded49); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z", fill: "#FFDA44" })); }; var CO = function CO2(_ref50) { var title = _ref50.title, rest = _objectWithoutProperties(_ref50, _excluded50); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 343.096h512v83.567H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 256h512v87.096H0z" })); }; var CR = function CR2(_ref51) { var title = _ref51.title, rest = _objectWithoutProperties(_ref51, _excluded51); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 211.473h512v89.043H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z", fill: "#0052B4" })); }; var CU = function CU2(_ref52) { var title = _ref52.title, rest = _objectWithoutProperties(_ref52, _excluded52); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M0-40.8v422.9-211.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h512v68.3H0zm0 136.5h512v68.3H0zm0 136.6h512v68.3H0z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 170.7 0 341.3V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m86.5 111.4 12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z" })); }; var CV = function CV2(_ref53) { var title = _ref53.title, rest = _objectWithoutProperties(_ref53, _excluded53); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#003893", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#cf2027", d: "M0 182.2h513v41.4H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 140.8h513v41.4H0zm0 82.8h513V265H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m150.4 70 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13.1-17.9 13.1 6.8-21.1-17.9-13.1h22.2zm0 209.7 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13h22.2zm-97.6-70.9 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13H46zM90.1 91l6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-18-13h22.3zm-66.3 71H46l6.8-21.1 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13-17.9 13 6.8-21.1zm48.4 148.9 6.8-21.1-18-13h22.3l6.8-21.2 6.9 21.2h22.2l-18 13 6.9 21.1-18-13zM248 208.8l-6.9 21.1h-22.2l18 13-6.9 21.2 18-13.1 18 13.1-6.9-21.2 18-13h-22.2zM210.7 91l-6.8 21.1h-22.2l17.9 13-6.8 21.2 17.9-13.1 18 13.1-6.9-21.2 18-13h-22.2zm66.4 71h-22.2l-6.9-21.1-6.9 21.1h-22.2l18 13.1-6.9 21.1 18-13 18 13-6.9-21.1zm-48.4 148.9-6.9-21.1 18-13h-22.2l-6.9-21.2-6.8 21.2h-22.2l17.9 13-6.8 21.1 17.9-13z", fill: "#f7d116", stroke: "#000" })); }; var CW = function CW2(_ref54) { var title = _ref54.title, rest = _objectWithoutProperties(_ref54, _excluded54); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#002b7f", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f9e814", d: "M0 233.5h513v51H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m168.7 86.5 12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54 7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z", fill: "#FFF" })); }; var CX = function CX2(_ref55) { var title = _ref55.title, rest = _objectWithoutProperties(_ref55, _excluded55); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0021ad", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1c8a42", d: "M0 0h512v341.3" }), /* @__PURE__ */ React.createElement("path", { d: "m77.6 272 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9V317l-10.3-8.3-10.2 8.3v-13.2l-12.8-2.9 10.3-8.1-5.8-11.9 12.9 3zm-37.1-98.9 5.7 11.9 12.8-3-5.7 11.8 10.3 8.2-12.9 2.9.1 13.2-10.3-8.3-10.3 8.3.1-13.2-12.9-2.9 10.4-8.2L22 182l12.8 3zm37.1-80.9 5.7 11.8 12.8-2.9-5.7 11.8 10.3 8.2-12.8 2.9v13.1l-10.3-8.2-10.2 8.2V124l-12.8-2.9 10.3-8.2-5.8-11.8L72 104zm46.1 62.9 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9v13.2l-10.3-8.2-10.2 8.2v-13.2l-12.8-2.9 10.3-8.1-5.7-11.9 12.8 3zm-32.9 54 4.4 13.7h14.5L98 231.3l4.5 13.7-11.7-8.4-11.7 8.4 4.5-13.7-11.7-8.5h14.4z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("circle", { fill: "#ffc639", cx: 267.1, cy: 170.7, r: 74.5 }), /* @__PURE__ */ React.createElement("path", { fill: "#1c8a42", d: "M267.1 220.3h24.8s10.8-19 0-37.2l24.8-24.8-12.4-24.8h-12.4s-6.2 18.6-31 18.6-31-18.6-31-18.6h-12.4l12.4 24.8-12.4 24.8 12.4 12.4s12.4-24.8 37.2-12.4c0 0 10.5 15.5 0 37.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ffc639", d: "M464.4 92.2c.6-2.9-.2-17.6-.2-20.7 0-21.3-13.9-39.4-33.2-45.7 5.9 12 9.2 25.4 9.2 39.7 0 4.8-.4 9.5-1.1 14.1-2.9-4.7-6.6-8.9-11.2-12.6-17.1-13.6-40.6-14-57.9-2.5 13.4 2.9 26.3 8.9 37.7 18 9 7.1 16.2 16.8 21.7 26.1 0 0-17.8 10.9-31 15.1s-42.3 7.9-42.3 7.9c72 12 132-36 132-36-6.5-13.4-15.8-4-23.7-3.4z" })); }; var CY = function CY2(_ref56) { var title = _ref56.title, rest = _objectWithoutProperties(_ref56, _excluded56); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#DB7D00", d: "M141.7 154.7s.2 67.1 74.7 65.3l4.5 13.9h8.9s-7.4-41.1 60.1-41.5c0 0 0-27.6 27.6-27.6H359s-66-51.8 58.9-118l1.8-13.1s-129.9 71-198.9 57.2c0 0 10.7 42.5-10.8 42.5-10.8 0-9.7-8.1-32.3-8.1-18.7 0-17.3 19.7-26.3 19.5-8.9-.2-18.8-12.3-19.6-10.2-.7 2.1 9.9 20.1 9.9 20.1z" }), /* @__PURE__ */ React.createElement("g", { fill: "#006651" }, /* @__PURE__ */ React.createElement("path", { d: "M237.2 308.1c6.9-5 13-6.6 22.4-8.3s19.4-4.4 24.6-5.8-17.7 6.6-23.5 8.3c-5.8 1.6-23.5 5.8-23.5 5.8zm37.9-14.7c-1.9-11.9 2.8-24.3 13.5-29.3 2.5 8.6-5.2 23.2-13.5 29.3zm18.2-6.2c-5.8-9.8 4-22.6 11.1-28.8 3.3 6-2.5 23.7-11.1 28.8zm16.9-7.6c-6.2-8.4 1.1-23.2 8.8-29 3.1 8.2.1 23.2-8.8 29zm16.9-10.6c-5.6-8-1.7-20.4 6.3-28.4 5.8 6.6.9 21-6.3 28.4zm13.5-10.7c-4.7-7.5 1.1-25.4 8.6-30.4 3.3 6.6.8 25.4-8.6 30.4zm10.8-2.8c-1.4-10.8 17.4-22.7 25.2-22.4-.9 8.9-8.9 18.6-25.2 22.4zm-10.5 12.2c8.8-9.1 26-9.1 32.1-7.2-1.7 5.3-21.9 16.9-32.1 7.2z" }), /* @__PURE__ */ React.createElement("path", { d: "M328.7 276.8c12.4-3.3 20.5-6.1 27.9 1.7-5.2 6.6-25.4 4.7-27.9-1.7zm-17.7 8c11.9-6.4 26.3 3 28.5 8.6-13.3 5.5-28.7-7.2-28.5-8.6zm-16.3 9.2c10.8-4.1 23.2 1.4 28.2 7.5-5.8 2.7-21 5.7-28.2-7.5zm-14.9 4.7c12.4-1.4 24.4 8 27 13.4-15.9 1.5-22-3.2-27-13.4zm-4 9.4c-6.9-5-13-6.6-22.4-8.3-9.4-1.7-19.4-4.4-24.6-5.8-5.3-1.4 17.7 6.6 23.5 8.3 5.8 1.6 23.5 5.8 23.5 5.8zm-37.9-14.7c1.9-11.9-2.8-24.3-13.5-29.3-2.5 8.6 5.2 23.2 13.5 29.3zm-18.2-6.2c5.8-9.8-4-22.6-11.1-28.8-3.3 6 2.5 23.7 11.1 28.8zm-16.9-7.6c6.2-8.4-1.1-23.2-8.8-29-3.1 8.2-.1 23.2 8.8 29zM185.9 269c5.6-8 1.7-20.4-6.3-28.4-5.8 6.6-.9 21 6.3 28.4zm-13.5-10.7c4.7-7.5-1.1-25.4-8.6-30.4-3.3 6.6-.8 25.4 8.6 30.4zm-10.8-2.8c1.4-10.8-17.4-22.7-25.2-22.4.9 8.9 8.9 18.6 25.2 22.4zm10.5 12.2c-8.8-9.1-26-9.1-32.1-7.2 1.7 5.3 21.9 16.9 32.1 7.2z" }), /* @__PURE__ */ React.createElement("path", { d: "M184.3 276.8c-12.4-3.3-20.5-6.1-27.9 1.7 5.2 6.6 25.4 4.7 27.9-1.7zm17.7 8c-11.9-6.4-26.3 3-28.5 8.6 13.3 5.5 28.7-7.2 28.5-8.6zm16.3 9.2c-10.8-4.1-23.2 1.4-28.2 7.5 5.8 2.7 21 5.7 28.2-7.5zm14.9 4.7c-12.4-1.4-24.4 8-27 13.4 15.9 1.5 22-3.2 27-13.4z" }))); }; var CZ = function CZ2(_ref57) { var title = _ref57.title, rest = _objectWithoutProperties(_ref57, _excluded57); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#11457e", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#d7141a", d: "M512 256v170.663H0L215.185 256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 85.337V256H215.185L0 85.337z" })); }; var DE = function DE2(_ref58) { var title = _ref58.title, rest = _objectWithoutProperties(_ref58, _excluded58); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.331h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 312.882h512v113.775H0z" })); }; var DJ = function DJ2(_ref59) { var title = _ref59.title, rest = _objectWithoutProperties(_ref59, _excluded59); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#12ad2b", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6ab2e7", d: "M512 0v166.7L0 170.8V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 170.7 0 341.3V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#d7141a", d: "m89.8 92.5 17 52.4H162l-44.6 32.5 17 52.4-44.6-32.4-44.6 32.4 17-52.4-44.6-32.5h55.2z" })); }; var DK = function DK2(_ref60) { var title = _ref60.title, rest = _objectWithoutProperties(_ref60, _excluded60); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#c60c30", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M190 0h-60v140H0v60h130v142h60V200h323v-60H190z" })); }; var DM = function DM2(_ref61) { var title = _ref61.title, rest = _objectWithoutProperties(_ref61, _excluded61); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 110.7v120h512v-120z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 110.7h512v40H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 190.7h512v40H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M196 0h120v341.3H196z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M196 0h40v341.3h-40z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M274.7 0h40v341.3h-40z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#D80027", cx: 256, cy: 170.7, r: 123.1 }), /* @__PURE__ */ React.createElement("path", { d: "m256 58.6 4.6 14.2h15l-12.1 8.9 4.6 14.2-12.1-8.8-12.1 8.8 4.6-14.2-12.1-8.9h15zM190.1 80l12.2 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15l-4.6 14.2-4.7-14.2h-15l12.1-8.8zm-40.7 56h15l4.6-14.2 4.7 14.2h15l-12.2 8.8 4.7 14.3-12.2-8.8-12.1 8.8 4.6-14.3zm0 69.3 12.1-8.8-4.6-14.3L169 191l12.2-8.8-4.7 14.3 12.2 8.8h-15l-4.7 14.3-4.6-14.3zm40.7 56.1 4.6-14.3-12.1-8.8h15l4.7-14.3 4.6 14.3h15l-12.1 8.8 4.6 14.3-12.1-8.9zm65.9 21.4-4.6-14.3h-15l12.1-8.8-4.6-14.3 12.1 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15zm65.9-21.4-12.2-8.9-12.1 8.9 4.6-14.3-12.1-8.8h15l4.6-14.3 4.7 14.3h15l-12.1 8.8zm40.7-56.1h-15l-4.6 14.3-4.7-14.3h-15l12.2-8.8-4.7-14.3L343 191l12.1-8.8-4.6 14.3zm0-69.3-12.1 8.8 4.6 14.3-12.1-8.8-12.2 8.8 4.7-14.3-12.2-8.8h15l4.7-14.2 4.6 14.2zm-40.7-56-4.6 14.3 12.1 8.8h-15l-4.7 14.2-4.6-14.2h-15l12.1-8.8-4.6-14.3 12.1 8.8zM279.3 168.7c-11-21.1-14.5-25.1-14.5-25.1s.4-9.7.4-15.6c0-8.8-7.4-15.8-16.5-15.8-8.6 0-15.7 2.9-16.5 11-4.2.9-8.6 4.1-8.6 10.7 0 4.8 1 7.3 5.2 9.3 2.1-4.6 4.3-4.8 9.3-6.4.8.6 1.7 3 2.6 3.4l.3 1s-13.3 6.6-13.3 30.9c0 29.5 22 45.4 22 45.4l-1.8.3-1.9 7.1h22v-7.2l11 17.5c.3-.3 10.2-47.6.3-66.5z", fill: "#496E2D" })); }; var DO = function DO2(_ref62) { var title = _ref62.title, rest = _objectWithoutProperties(_ref62, _excluded62); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 215.2h211.5v126.1H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h211.5v126.2H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M300.5 0H512v126.2H300.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M300.5 215.2H512v126.1H300.5z" }), /* @__PURE__ */ React.createElement("g", { stroke: "#FFF", strokeWidth: 5, strokeMiterlimit: 10 }, /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M256 130h-49.9v49.4s19.5 6 49.9 6V130z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z" }))); }; var DZ = function DZ2(_ref63) { var title = _ref63.title, rest = _objectWithoutProperties(_ref63, _excluded63); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#41662E", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0h256v341.3H256z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "m341.5 105.3-29.4 40.4-47.5-15.4 29.4 40.4-29.4 40.4 47.5-15.4 29.4 40.4v-50l47.5-15.5-47.5-15.4z" }), /* @__PURE__ */ React.createElement("path", { d: "M309.9 276.7c-58.5 0-106-47.5-106-106s47.5-106 106-106c18.3 0 35.4 4.6 50.4 12.7-23.5-23-55.7-37.2-91.2-37.2-72 0-130.4 58.4-130.4 130.4S197.1 301 269.1 301c35.5 0 67.7-14.2 91.2-37.2-14.9 8.2-32.1 12.9-50.4 12.9z" }))); }; var EC = function EC2(_ref64) { var title = _ref64.title, rest = _objectWithoutProperties(_ref64, _excluded64); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 170.7h512V256H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 256h512v85.3H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFDA44", cx: 256, cy: 170.7, r: 59.4 }), /* @__PURE__ */ React.createElement("path", { fill: "#4C1F00", d: "M369.2 79.9s-27.2-13.8-33.9-16c-6.7-2.2-49.1-13.2-49.1-7 0 10.3-13.5 12-15.5 12s-2-5.3-14.8-5.3-13.7 4.8-15.8 4.8c-2.2 0-14.5-1-14.5-11.5 0-5.2-42.9 4-49.1 7-6.1 3.1-33.9 16-33.9 16s45.8 2.7 53.9 6.2 43.8 16.5 43.8 16.5l-2.8 13.3h37.8l-3.8-13.3s35.1-12.7 43.8-16.5 53.9-6.2 53.9-6.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#57BA17", d: "M217.7 171.7c0 21.1 17.2 38.3 38.3 38.3 21.1 0 38.3-17.2 38.3-38.3v-11.5h-76.5v11.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M256 110.5c-21.1 0-38.3 17.2-38.3 38.3v11.5h76.5v-11.5c.1-21.1-17.1-38.3-38.2-38.3z" })); }; var EE = function EE2(_ref65) { var title = _ref65.title, rest = _objectWithoutProperties(_ref65, _excluded65); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#111", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#368FD8", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 312.888h512v113.775H0z" })); }; var EG = function EG2(_ref66) { var title = _ref66.title, rest = _objectWithoutProperties(_ref66, _excluded66); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h512v113.8H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 227.6h512v113.8H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#C09300", d: "M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z" })); }; var EH = function EH2(_ref67) { var title = _ref67.title, rest = _objectWithoutProperties(_ref67, _excluded67); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h512v113.8H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#428823", d: "M0 227.6h512v113.8H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M256 170.7 0 341.3V0zm53.1 0c0-22.9 13.1-42.1 34.6-46.8-3.3-.7-6.7-1.1-10.3-1.1-26.4 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9c3.5 0 7-.4 10.3-1.1-21.5-4.8-34.6-23.9-34.6-46.8z" }), /* @__PURE__ */ React.createElement("path", { d: "m365 129.2 10.3 31.7h33.3l-27 19.6 10.3 31.7-26.9-19.6-27 19.6 10.3-31.7-27-19.6h33.4z" }))); }; var ER = function ER2(_ref68) { var title = _ref68.title, rest = _objectWithoutProperties(_ref68, _excluded68); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#56AF35", d: "M0 0h512v170.7H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "m0 341.3 512-170.7L0 0v341.3z" }), /* @__PURE__ */ React.createElement("g", { fill: "#ffc945" }, /* @__PURE__ */ React.createElement("path", { d: "M134.7 231.5c33.6 0 60.8-27.2 60.8-60.8s-27.2-60.8-60.8-60.8-60.8 27.2-60.8 60.8 27.2 60.8 60.8 60.8zm0 24.3c-47 0-85.2-38.1-85.2-85.2s38.1-85.2 85.2-85.2 85.2 38.1 85.2 85.2-38.2 85.2-85.2 85.2z" }), /* @__PURE__ */ React.createElement("circle", { cx: 119.5, cy: 148.3, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 148.9, cy: 158.5, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 134.7, cy: 135.2, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 119.5, cy: 172.7, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 149.9, cy: 182.8, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 122.5, cy: 198, r: 17.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 145.9, cy: 205.2, r: 17.5 }))); }; var ES = function ES2(_ref69) { var title = _ref69.title, rest = _objectWithoutProperties(_ref69, _excluded69); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22.5 15" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h22.5v15H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D03433", d: "M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FBCA46", d: "M0 4h22.5v7H0V4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M7.8 7h1v.5h-1V7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A41517", d: "M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A41517", d: "M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z" })); }; var ET = function ET2(_ref70) { var title = _ref70.title, rest = _objectWithoutProperties(_ref70, _excluded70); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22.5 15" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#20AA46", d: "M0 0h22.5v5H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E92F3B", d: "M0 10h22.5v5H0v-5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FADF50", d: "M0 5h22.5v5H0V5z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#205CCA", cx: 11.3, cy: 7.5, r: 5.2 }), /* @__PURE__ */ React.createElement("g", { stroke: "#FFDB3D", fill: "none" }, /* @__PURE__ */ React.createElement("path", { d: "m11.3 8.8-2.1 1.5.8-2.4-2-1.5h2.5l.8-2.3.8 2.3h2.6l-2.1 1.5.8 2.4-2.1-1.5zm-1-2.4h1.9M9.9 7.8l1.3 1m.8-2.6.7 1.8M10 7.9l.6-1.8M11 9l1.6-1.1", strokeWidth: 0.5 }), /* @__PURE__ */ React.createElement("path", { d: "m8.7 3.9 1.1 1.6m4-1.7-1 1.6m-1.5 4.7V12M8.9 8.3 7.1 9m8.4 0-1.8-.7", strokeWidth: 0.25 }))); }; var EU = function EU2(_ref71) { var title = _ref71.title, rest = _objectWithoutProperties(_ref71, _excluded71); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 810 540" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#039", d: "M0 0h810v540H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FC0", d: "m404.951 59.865 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999 6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90 6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001 6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z" })); }; var FI = function FI2(_ref72) { var title = _ref72.title, rest = _objectWithoutProperties(_ref72, _excluded72); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M512 129.3V212H203.7v129.3H121V212H0v-82.7h121V0h82.7v129.3z" })); }; var FJ = function FJ2(_ref73) { var title = _ref73.title, rest = _objectWithoutProperties(_ref73, _excluded73); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v22.6l-46.1 30.7H256v64h-46.1L256 148v22.7h-22.6l-73.4-49v49H96v-49l-73.4 49H0V148l46.1-30.7H0v-64h46.1L0 22.6V0h22.6L96 48.9V0h64v48.9L233.4 0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176zM0 170.7v-15.1l57.4-38.3H80zm256 0v-15.1l-57.4-38.3H176z" })), /* @__PURE__ */ React.createElement("path", { fill: "#F3F3F3", d: "M307.1 127.1v92c0 61.6 80.5 80.5 80.5 80.5s80.4-19 80.4-80.6v-92l-80.5-23-80.4 23.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M468 132.8V98.3H307.1v34.5h69v69h-69v23h69V296c6.9 2.5 11.5 3.5 11.5 3.5s4.6-1.1 11.5-3.5v-71.2h69v-23h-69v-69H468z" })); }; var FK = function FK2(_ref74) { var title = _ref74.title, rest = _objectWithoutProperties(_ref74, _excluded74); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.8 115 256 170.7v-15.8L184.2 115z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.8 115 256 170.7v-15.8L184.2 115z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.2 55.6 0 0v15.7l71.8 39.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.2 55.6 0 0v15.7l71.8 39.9z" }), /* @__PURE__ */ React.createElement("path", { d: "M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#1F8BDE", d: "M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3zm79.6 86.3c7.9-4.5 15.9-10 23.2-16.7 20.5-18.5 32.6-41.4 32.6-69.7v-90c0-.3-120.4-.3-120.4-.3v90.3c0 28.3 12.1 51.2 32.6 69.7 8.3 7.5 17.6 13.9 27.6 19 1.4-.6 2.8-1.4 4.4-2.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#187536", d: "M347.1 193.4c-2.6-7.9 1.7-14.3 10.1-14.3h60.5c8.2 0 12.8 6.3 10.1 14.3l-5.5 16.5c-2.6 7.9-8.9 9.2-15.8 4 0 0 2.6-4.8-19.1-4.8-21.7 0-19.1 4.8-19.1 4.8-6.1 5.7-13.1 4-15.8-4 .1.1-5.4-16.5-5.4-16.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M357.4 179.1c8.1 1.6 17.8-15 30.1-15 13.1 0 21.8 17.1 30.1 15 7.4-1.8 15-22.2 15-30.1 0-16.6-20.2-30.1-45.1-30.1-24.9 0-45.1 13.5-45.1 30.1-.1 8.5 6.6 28.5 15 30.1zm-1.4 91.6c6.2.4 12.5-1.8 17.2-6.5l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c4.7 4.7 11 6.9 17.1 6.5 5.3-.3 32.5-33.5 25.7-32.6-4.6.6-9.1 2.8-12.7 6.3l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-3.5-3.5-7.8-5.6-12.3-6.3-6.7-1.1 20.1 32.2 25.3 32.5zM322.1 210c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0 0 0 5.5-14.8 2.5-15.9-7.9-2.9-17.2-1.2-23.5 5.2l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-6.2-6.2-15.1-8-22.8-5.5-3.1 1.1 1.9 16.1 1.9 16.1z" })); }; var FM = function FM2(_ref75) { var title = _ref75.title, rest = _objectWithoutProperties(_ref75, _excluded75); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m256 37.9 10.1 31.2H299l-26.6 19.3 10.2 31.2-26.6-19.3-26.6 19.3 10.2-31.2L213 69.1h32.9zM123.2 170.7l31.2-10.2v-32.8l19.3 26.6 31.2-10.2-19.3 26.6 19.3 26.5-31.2-10.1-19.3 26.5v-32.8zM256 303.5l-10.1-31.2H213l26.6-19.3-10.2-31.3L256 241l26.6-19.3-10.2 31.3 26.6 19.3h-32.9zm132.8-132.8-31.2 10.1v32.8l-19.3-26.5-31.2 10.1 19.3-26.5-19.3-26.6 31.2 10.2 19.3-26.6v32.8z", fill: "#FFF" })); }; var FO = function FO2(_ref76) { var title = _ref76.title, rest = _objectWithoutProperties(_ref76, _excluded76); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0F61A5", d: "M512 214.5H206.2v126.8h-87.8V214.5H0v-87.7h118.4V0h87.8v126.8H512V192z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E50E3D", d: "M512 149.3V192H183.7v149.3H141V192H0v-42.7h141V0h42.7v149.3z" })); }; var FR = function FR2(_ref77) { var title = _ref77.title, rest = _objectWithoutProperties(_ref77, _excluded77); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.331H512v341.337H341.337z" })); }; var GA = function GA2(_ref78) { var title = _ref78.title, rest = _objectWithoutProperties(_ref78, _excluded78); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 312.888h512v113.775H0z" })); }; var GB = function GB2(_ref79) { var title = _ref79.title, rest = _objectWithoutProperties(_ref79, _excluded79); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M288 85.33h-64v138.666H0v64h224v138.666h64V287.996h224v-64H288z" }), /* @__PURE__ */ React.createElement("path", { d: "M393.785 315.358 512 381.034v-65.676zm-82.133 0L512 426.662v-31.474l-143.693-79.83zm146.982 111.304-146.982-81.664v81.664z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M311.652 315.358 512 426.662v-31.474l-143.693-79.83z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M311.652 315.358 512 426.662v-31.474l-143.693-79.83z" }), /* @__PURE__ */ React.createElement("path", { d: "M90.341 315.356 0 365.546v-50.19zm110.007 14.154v97.151H25.491z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M143.693 315.358 0 395.188v31.474l200.348-111.304z" }), /* @__PURE__ */ React.createElement("path", { d: "M118.215 196.634 0 130.958v65.676zm82.133 0L0 85.33v31.474l143.693 79.83zM53.366 85.33l146.982 81.664V85.33z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M200.348 196.634 0 85.33v31.474l143.693 79.83z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M200.348 196.634 0 85.33v31.474l143.693 79.83z" }), /* @__PURE__ */ React.createElement("path", { d: "M421.659 196.636 512 146.446v50.19zm-110.007-14.154V85.331h174.857z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M368.307 196.634 512 116.804V85.33L311.652 196.634z" })); }; var GD = function GD2(_ref80) { var title = _ref80.title, rest = _objectWithoutProperties(_ref80, _excluded80); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#c60a0a", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#3E8446", d: "M256 170.7 44.5 296.8V44.5z" }), /* @__PURE__ */ React.createElement("path", { d: "m256 170.7 211.5 126.1h-423zM467.5 44.5 256 170.7 44.5 44.5z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("path", { fill: "#3E8446", d: "M467.5 44.5v252.3L256 170.7z" }), /* @__PURE__ */ React.createElement("path", { d: "m256 10.4 3.3 10.2H270l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.9 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zM256 304.2l3.3 10.2H270l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.9 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("circle", { fill: "#c60a0a", cx: 244.5, cy: 170.7, r: 76.2 }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m244.5 110.1 13.6 41.8h44l-35.6 25.8 13.6 41.8-35.6-25.8-35.5 25.8 13.6-41.8-35.6-25.8h44zm-136.8 57.7c4.4 6.9 2.3 16.1-4.6 20.5s-16.1 2.3-20.5-4.6c-7.9-12.5-3.3-33-3.3-33s20.4 4.6 28.4 17.1z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#A2001D", cx: 99.1, cy: 182.1, r: 7.4 })); }; var GE = function GE2(_ref81) { var title = _ref81.title, rest = _objectWithoutProperties(_ref81, _excluded81); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22.5 15" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M.8 0h21v15H.8V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#eb000e", d: "M9.8 6H0v3h9.8v6h3V9h9.8V6h-9.8V0h-3v6z" }), /* @__PURE__ */ React.createElement("path", { fill: "#eb000e", d: "m17.3 2.7-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm-12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm0 9-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2z" })); }; var GF = function GF2(_ref82) { var title = _ref82.title, rest = _objectWithoutProperties(_ref82, _excluded82); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 90 60" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FDEB01", d: "m0 0 90 60H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#58A846", d: "M90 0v60L0 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ED3D24", d: "m50.7 33.3 9.3-6.7H48.5L45 15.7l-3.5 10.9H30l9.3 6.7-3.6 11 9.3-6.7 9.3 6.7z" })); }; var GG = function GG2(_ref83) { var title = _ref83.title, rest = _objectWithoutProperties(_ref83, _excluded83); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M308 0H204v118.7H0v104h204V342h104V222.7h205v-104H308z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m368.6 188 26 17.3V136l-26 17.3h-95.3V58.1l17.3-26h-69.2l17.3 26v95.2h-95.3l-26-17.3v69.3l26-17.3h95.3v95.2l-17.3 26h69.2l-17.3-26V188z" })); }; var GH = function GH2(_ref84) { var title = _ref84.title, rest = _objectWithoutProperties(_ref84, _excluded84); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m255.883 199.111 14.119 43.458 40.366 3.2-36.969 26.861 19.453 40.259-36.969-26.859-36.97 26.859 14.123-43.459-36.969-26.861h45.696z" })); }; var GI = function GI2(_ref85) { var title = _ref85.title, rest = _objectWithoutProperties(_ref85, _excluded85); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 230h513v112H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", stroke: "#000", strokeMiterlimit: 10, d: "M363.1 131.8V99.1H374V77.3h-21.9v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7h-21.8V55.5h10.9V33.7h-21.8v10.9h-10.9V33.7H254v10.9h-10.9V33.7h-21.8v21.8h10.9v76.3h-21.8V99.1h10.9V77.3h-21.8v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7H145V219h239.9v-87.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", stroke: "#000", strokeMiterlimit: 10, d: "m264.9 235.5-24.2 18.2 19.1 14.3v31.3h-23.2v9h23v7.9h-23v9.3H270V268l19.1-14.3-24.2-18.2zm0 25.3-10.1-7.1 10.1-7.1 10.1 7.1-10.1 7.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M239.6 209.7v-27.9s.1-22.3 25-22.3c24.8 0 25.7 22 25.7 22v28.2h-50.7zm-69.1 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8z" }), /* @__PURE__ */ React.createElement("path", { d: "M169.1 209.7v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm151.8 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm8.4-77.7v-15.7s.1-12.1 11.3-12.1c11.3 0 11.7 11.9 11.7 11.9V132h-23zm-78.8 0v-23.7s.1-18.3 14.3-18.3c14.2 0 14.7 18 14.7 18v24h-29zm-73 0v-15.7s.1-12.1 11.3-12.1 11.7 11.9 11.7 11.9V132h-23z" })); }; var GL = function GL2(_ref86) { var title = _ref86.title, rest = _objectWithoutProperties(_ref86, _excluded86); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M513 0v171H0V0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 185.8, cy: 171.2, r: 117.8 }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8" })); }; var GM = function GM2(_ref87) { var title = _ref87.title, rest = _objectWithoutProperties(_ref87, _excluded87); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1a7e25", d: "M0 322.783h512v103.88H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#cf0d19", d: "M0 85.337h512v104.515H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 210.877h512v89.656H0z" })); }; var GN = function GN2(_ref88) { var title = _ref88.title, rest = _objectWithoutProperties(_ref88, _excluded88); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h512v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M342 0h171v342H342z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h171v342H0z" })); }; var GP = function GP2(_ref89) { var title = _ref89.title, rest = _objectWithoutProperties(_ref89, _excluded89); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.331H512v341.337H341.337z" })); }; var GQ = function GQ2(_ref90) { var title = _ref90.title, rest = _objectWithoutProperties(_ref90, _excluded90); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 0h513v113.8H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 227.6h513V342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0070C8", d: "M126 170.7 0 341.3V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "none", stroke: "#000", strokeMiterlimit: 10, d: "M233.8 139.4v40.4c0 35.6 35.6 35.6 35.6 35.6s35.6 0 35.6-35.6v-40.4h-71.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#786145", d: "M264.5 179.8h9.8l4 25.8h-17.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M287.2 162c0-9.8-8-14.8-17.8-14.8s-17.8 5-17.8 14.8c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9h35.6c4.9 0 8.9-4 8.9-8.9s-4-8.9-8.9-8.9z" }), /* @__PURE__ */ React.createElement("path", { d: "m230.7 120 1.9 3.3h3.8l-1.9 3.3 1.9 3.2h-3.8l-1.9 3.3-1.9-3.3H225l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.8 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H279l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm16 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H295l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm15 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2H310l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8z", fill: "#FFDA00", stroke: "#000", strokeMiterlimit: 10 })); }; var GR = function GR2(_ref91) { var title = _ref91.title, rest = _objectWithoutProperties(_ref91, _excluded91); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#0d5eaf" }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h190v190H0z" })), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M0 76h190v38H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M76 0h38v190H76z" }))); }; var GS = function GS2(_ref92) { var title = _ref92.title, rest = _objectWithoutProperties(_ref92, _excluded92); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z" }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#FFF", cx: 443.4, cy: 233.6, rx: 29, ry: 43.5 }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#FFCE00", cx: 406.9, cy: 317.7, rx: 22, ry: 9.3 }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#FFCE00", cx: 364, cy: 317.7, rx: 22, ry: 9.3 }), /* @__PURE__ */ React.createElement("path", { fill: "#39B200", d: "m342 190.1 43.4 86.9 43.5-86.9z" }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#9B9B9B", cx: 327.5, cy: 233.6, rx: 29, ry: 43.5 }), /* @__PURE__ */ React.createElement("path", { fill: "#757575", d: "m371 175.6-14.5 14.5h57.9l-14.5-14.5 14.5-43.5s-13-29-29-29-29 29-29 29l14.6 43.5z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#C6B56F", cx: 385.4, cy: 67, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#A54A00", cx: 386, cy: 88.7, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 443.4, cy: 117.7, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#0049FF", cx: 342.2, cy: 146.7, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#0041F9", cx: 429.8, cy: 146.7, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#F7D71E", cx: 386, cy: 233.6, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#CEC851", cx: 457.9, cy: 190.1, r: 29 }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 385.4, cy: 289.5, r: 29 }), /* @__PURE__ */ React.createElement("path", { fill: "#7C0B29", d: "m371 135.7 14.5-3.5 14.5 3.5c0 7.5-14.5 11-14.5 11s-14.5-3.5-14.5-11z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 327.5, cy: 117.4, r: 29 })); }; var GT = function GT2(_ref93) { var title = _ref93.title, rest = _objectWithoutProperties(_ref93, _excluded93); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h171v342H0zm342 0h171v342H342z", fill: "#338AF3" }), /* @__PURE__ */ React.createElement("circle", { fill: "#DCC26D", cx: 256, cy: 155.8, r: 25.5 }), /* @__PURE__ */ React.createElement("path", { fill: "#628A40", d: "M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z" })); }; var GU = function GU2(_ref94) { var title = _ref94.title, rest = _objectWithoutProperties(_ref94, _excluded94); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M11.1 11.1h489.7v319.1H11.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#7DBEF1", d: "M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1C8AE6", d: "M179.8 180.7h152.6l-29.3 64.9h-95.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF042", d: "M192.3 205.9s40.5 38.2 51 38.2c12.4 0 12.6-18.4 25.5-25.5 20.2-11.1 51-12.7 51-12.7L297 248.7l-41 36.6-46.8-39.7-16.9-39.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#259C7B", d: "m256 157.5-22.5 15.6 7.9-26.2-21.8-16.5 27.4-.5 9-25.9 9 25.9 27.4.5-21.8 16.6 7.9 26.2-22.5-15.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#8E5715", d: "M249.7 144.6c-.9 9.2-1.5 18.4-1.7 27.6-.3 11.9.3 20.7 2 26 2.2 6.6 7.2 12.9 14.2 18.9 5.3 4.6 10.6 8.1 14.2 10.1 3.1 1.7 7 .6 8.7-2.4 1.7-3.1.6-7-2.4-8.7-4.3-2.5-8.4-5.4-12.2-8.7-5.4-4.6-9.1-9.2-10.4-13.3-1.1-3.4-1.6-11.3-1.4-21.7.2-8.9.8-17.8 1.7-26.6.4-3.5-2.2-6.6-5.7-7-3.6-.3-6.7 2.3-7 5.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m217.8 170.7 25.5 38.2h-25.5v-38.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "none", stroke: "#D80027", strokeWidth: 12, strokeMiterlimit: 10, d: "M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z" })); }; var GW = function GW2(_ref95) { var title = _ref95.title, rest = _objectWithoutProperties(_ref95, _excluded95); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v170.663H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h181.793v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m98.32 195.127 15.107 46.497h48.894l-39.555 28.74 15.108 46.498-39.554-28.737-39.556 28.737 15.111-46.498-39.554-28.74h48.891z" })); }; var GY = function GY2(_ref96) { var title = _ref96.title, rest = _objectWithoutProperties(_ref96, _excluded96); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 900 600" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#009E49", d: "M0 0h900v600H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m0 0 947 300L0 600V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFD00D", d: "M0 26.1 870 300 0 573.9V26.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2D2D2D", d: "m0 0 450 300L0 600V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D3132F", d: "m0 35 397.5 265L0 565V35z" })); }; var HK = function HK2(_ref97) { var title = _ref97.title, rest = _objectWithoutProperties(_ref97, _excluded97); return /* @__PURE__ */ React.createElement("svg", _extends({ viewBox: "0 0.5 21 14", xmlns: "http://www.w3.org/2000/svg" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h21v15H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ee1c25", d: "M0 0h21v15H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 1 0 0-.5.25.25 0 0 0 0 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 1 0 .476-.154.25.25 0 0 0-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 1 0 .294.405.25.25 0 0 0-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 1 0-.293.404.25.25 0 0 0 .293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 1 0-.475-.155.25.25 0 0 0 .475.155z", fill: "#FFF" }))); }; var HM = function HM2(_ref98) { var title = _ref98.title, rest = _objectWithoutProperties(_ref98, _excluded98); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M223.397 255.996c.273-.304.543-.609.813-.916-.27.308-.546.61-.82.916h.007zm-34.18 41.927 10.958 22.913 24.747-5.718-11.083 22.853 19.9 15.781-24.776 5.585.069 25.398-19.815-15.89-19.814 15.89.069-25.398-24.776-5.585 19.9-15.781-11.083-22.853 24.746 5.718zm197.859 28.464 5.227 10.929 11.803-2.728-5.286 10.9 9.492 7.528-11.818 2.663.032 12.114-9.45-7.578-9.45 7.578.032-12.114-11.817-2.663 9.491-7.528-5.285-10.9 11.803 2.728zm-48.623-115.939 5.227 10.93 11.803-2.729-5.286 10.901 9.491 7.528-11.817 2.663.032 12.115-9.45-7.58-9.451 7.58.033-12.115-11.818-2.663 9.491-7.528-5.284-10.901 11.802 2.729zm48.623-66.25 5.227 10.93 11.803-2.73-5.286 10.902 9.491 7.527-11.817 2.664.032 12.114-9.45-7.58-9.45 7.58.032-12.114-11.817-2.664 9.491-7.527-5.285-10.902 11.803 2.73zm42.471 49.688 5.227 10.929 11.802-2.728-5.284 10.9 9.491 7.527-11.818 2.664.033 12.114-9.451-7.578-9.45 7.578.032-12.114-11.817-2.664 9.491-7.527-5.286-10.9 11.803 2.728zm-30.368 57.97 4.11 12.652h13.304l-10.763 7.82 4.112 12.652-10.763-7.819-10.765 7.819 4.112-12.652-10.763-7.82h13.304z" }), /* @__PURE__ */ React.createElement("path", { d: "M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.553l45.167-25.099H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.827V85.333h55.652v48.573l87.43-48.573z" })), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z", fill: "#D80027" })); }; var HN = function HN2(_ref99) { var title = _ref99.title, rest = _objectWithoutProperties(_ref99, _excluded99); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v114H0zm0 228h513v114H0zm203.5-110.1 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zM256 147.6l6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm-52.5 29.7 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1z", fill: "#338AF3" })); }; var HR = function HR2(_ref100) { var title = _ref100.title, rest = _objectWithoutProperties(_ref100, _excluded100); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 228h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z", fill: "#338AF3" }), /* @__PURE__ */ React.createElement("path", { d: "M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { stroke: "#D80027", fill: "#FFF", d: "M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z" }), /* @__PURE__ */ React.createElement("path", { d: "M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z", fill: "#D80027" })); }; var HT = function HT2(_ref101) { var title = _ref101.title, rest = _objectWithoutProperties(_ref101, _excluded101); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M0 0h513v172H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 172h513v172H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m381.4 251.5-110.7-13.8-110.8 13.8V85.4h221.5z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#0052B4", cx: 270.7, cy: 182.3, r: 55.4 }), /* @__PURE__ */ React.createElement("circle", { fill: "#A2001D", cx: 270.7, cy: 182.3, r: 27.7 }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M229.1 113.1h83.1l-41.5 41.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M256.8 140.8h27.7v83h-27.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M314.9 215.5h-88.5l-66.5 36h221.5z" })); }; var HU = function HU2(_ref102) { var title = _ref102.title, rest = _objectWithoutProperties(_ref102, _excluded102); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 312.888h512v113.775H0z" })); }; var IC = function IC2(_ref103) { var title = _ref103.title, rest = _objectWithoutProperties(_ref103, _excluded103); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 300 200" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#fc0", d: "M0 0h300v200H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0768a9", d: "M0 0h200v200H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M0 0h100v200H0z" })); }; var ID = function ID2(_ref104) { var title = _ref104.title, rest = _objectWithoutProperties(_ref104, _excluded104); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.333h512v341.333H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E00", d: "M0 85.333h512V256H0z" })); }; var IE = function IE2(_ref105) { var title = _ref105.title, rest = _objectWithoutProperties(_ref105, _excluded105); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M341.337 85.331H512v341.337H341.337z" })); }; var IL = function IL2(_ref106) { var title = _ref106.title, rest = _objectWithoutProperties(_ref106, _excluded106); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171 276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8 11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4 13-22.1 11.9 22.1h-24.9zm58.3 37.5-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z", fill: "#2E52B2" })); }; var IM = function IM2(_ref107) { var title = _ref107.title, rest = _objectWithoutProperties(_ref107, _excluded107); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#E52D42", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M393.3 68.2h-45.8l-33.8 80.2-34.4-22.9s-24.7-59.1-34.4-68.2c-9.7-9.7-18.7-.6-48.9 7.8-29.6 8.4-30.8 18.7-42.2 18.7-4.8 0-19.9-17.5-27.7-22.3-12.1-7.8-16.9-4.2-13.9 7.2 1.2 4.8 10.9 10.9 16.9 19.9 7.8 11.5 12.7 25.9 12.7 25.9s10.9-10.3 16.9-12.1c9-2.4 19.3 1.8 31.4 0 15.1-2.4 31.4-10.9 31.4-10.9l4.2 43.4s-54.3 50.7-49.5 70.6 56.1 44.6 68.2 62.7c12.1 17.5-7.2 24.1-7.2 32.6s-1.8 19.9 7.2 16.3c9-3.6 10.3-18.1 18.7-31.4 6-9 10.3-13.9 11.5-17.5 1.8-9-23.5-32-37.4-48.9-6.6-7.8-19.9-18.7-19.9-18.7l39.2-29.6s67.6 27.7 82.6 18.7c15.1-9 19.3-98.3 19.3-98.3l47-11.5-12.1-11.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F8DD4E", d: "M279.3 262.4c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.8-182.8c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm0 91.1c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6 0 11.5 4.8 11.5 11.5-.6 6.7-5.5 11.5-11.5 11.5zm-136.9 45.8c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.2-136.9c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-4.8 11.5-11.5 11.5zm22.9 91.1c-6 0-11.5-10.3-11.5-22.9s4.8-22.9 11.5-22.9c6 0 11.5 10.3 11.5 22.9s-4.8 22.9-11.5 22.9zm-114-45.2c-6 0-11.5-4.8-11.5-11.5 0-6.6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5 0 6.6-4.8 11.5-11.5 11.5z" })); }; var IN = function IN2(_ref108) { var title = _ref108.title, rest = _objectWithoutProperties(_ref108, _excluded108); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#181A93", d: "M17.3 0h478.4v342H17.3V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFA44A", d: "M0 0h513v114H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1A9F0B", d: "M0 228h513v114H0V228z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 114h513v114H0V114z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 256.5, cy: 171, r: 34.2 }), /* @__PURE__ */ React.createElement("path", { fill: "#181A93", d: "M256.5 216.6c-25.1 0-45.6-20.5-45.6-45.6s20.5-45.6 45.6-45.6 45.6 20.5 45.6 45.6-20.5 45.6-45.6 45.6zm0-11.4c18.2 0 34.2-16 34.2-34.2s-15.9-34.2-34.2-34.2-34.2 16-34.2 34.2 16 34.2 34.2 34.2z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#181A93", cx: 256.5, cy: 171, r: 22.8 })); }; var IO = function IO2(_ref109) { var title = _ref109.title, rest = _objectWithoutProperties(_ref109, _excluded109); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0-.3h513V342H0V-.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M462.9 198.1c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zM0 31.7l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 1-20 6-30.1 12-7 4-16 9-20 9s-14-5-21-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-11-30.1-12v22zm462.9 55.2c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 3.9-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 1 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-8 19-9v-23zm-50.1 133.3c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 0 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-9 19-9v-23z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0-.3h256v171H0V-.3z" }), /* @__PURE__ */ React.createElement("path", { d: "M389.8 119.9H408v78.8h-18.3l.1-78.8zm0 117.8H408v75.1h-18.3l.1-75.1z", fill: "#A2001D" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144-.3h-32v70H0v32h112v69h32v-69h112v-32H144v-70z" }), /* @__PURE__ */ React.createElement("path", { d: "M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54z" }), /* @__PURE__ */ React.createElement("path", { d: "M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54zM0 170.7v-15l57-38h23l-80 53zm256 0v-15l-57-38h-23l80 53z" })), /* @__PURE__ */ React.createElement("g", { fill: "#2E52B2" }, /* @__PURE__ */ React.createElement("path", { d: "M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73zM0 147.7v-30h46l-46 30zm96 23v-49l-73 49h73zm160-23v-30h-46l46 30zm-96 23v-49l73 49h-73z" })), /* @__PURE__ */ React.createElement("path", { fill: "#5DA51E", stroke: "#45602C", strokeWidth: 4, strokeMiterlimit: 10, d: "M462.8 91.5h-29.1l25.7-25.7c4.5-4.4 4.5-11.4 0-15.8l-3.4-3.4c-4.4-4.4-11.4-4.4-15.8 0l-25.9 25.9V37.4c0-6.2-5.1-11.3-11.3-11.3h-4.7c-6.2 0-11.3 5.1-11.3 11.3v31.7l-23.5-23.8c-4.7-4.7-12.2-4.7-16.9 0l-3.6 3.6c-4.7 4.7-4.7 12.4 0 17.2l25 25.4h-30.6c-6 0-10.9 4.9-10.9 10.9v4.6c0 6 4.9 10.9 10.9 10.9H369l-20.7 20.7c-4.4 4.4-4.4 11.4 0 15.8l3.4 3.4c4.4 4.4 11.4 4.4 15.8 0l19.6-19.6V167c0 6.1 5.1 11.1 11.3 11.3h4.7c6.2 0 11.3-5.1 11.3-11.3v-28.3l22.2 22.6c4.7 4.7 12.4 4.7 17.1 0l3.6-3.6c4.7-4.7 4.7-12.4 0-17.2L435.2 118h27.6c5.9 0 10.7-4.9 10.9-10.9v-4.6c0-6.1-4.9-11-10.9-11z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E2DD24", stroke: "#525625", strokeWidth: 4, strokeMiterlimit: 10, d: "M439.2 249.1h-79.8s-.9-13.4-6-21.8c-6.2-10.4-13.9-28.1-1.4-36.7 15.9-10.9 33.7.8 48.2.8 11.8.1 26.9-14 45-.8 12.2 8.9 3.9 28.2-1.3 36.7-7 11.5-4.7 21.8-4.7 21.8z" })); }; var IQ = function IQ2(_ref110) { var title = _ref110.title, rest = _objectWithoutProperties(_ref110, _excluded110); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#CE1126", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 228h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M219.2 160.7h-29.3c1.5-5.7 6.6-9.9 12.8-9.9v-19.9c-18.3 0-33.1 14.9-33.1 33.1v16.5h49.6c1.8 0 3.3 1.5 3.3 3.3v6.6h-66.2v19.9h86.1v-26.5c0-12.7-10.4-23.1-23.2-23.1zm49.6 29.8v-59.6H249v79.5h33.1v-19.9zm66.2 0v-59.6h-19.8v59.6h-6.6v-19.8h-19.9v39.7h59.6v-19.9z", fill: "#547C31" })); }; var IR = function IR2(_ref111) { var title = _ref111.title, rest = _objectWithoutProperties(_ref111, _excluded111); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 227.9h513v114H0zm278.8-93.1c.1 2 8.7 26.2 4.4 39.4-6.6 20.3-15.8 21.8-19.8 24.5V134l-6.9-4.2-6.9 4.2v64.7c-4-2.7-12.4-2.4-19.8-24.5-4.3-12.7 5.7-37.3 5.8-39.2 0 0-9.5 8.1-15.8 24-5.9 14.8 1.9 49.6 29.5 54.8 2.3.4 4.7 5.6 7.2 5.6 2.1 0 4.1-5.2 6-5.5 28.4-4.6 35-41.7 29.9-55.6-5.4-14.6-13.6-23.5-13.6-23.5z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { d: "M44.6 98.9h22.3v24.4H44.6zM0 98.9h22.3v24.4H0zm89.2 0h22.3v24.4H89.2zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4H223zm44.7 0H290v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0H513v24.4h-22.3zm-446.1 118h22.3v25.5H44.6zm-44.6 0h22.3v25.5H0zm89.2 0h22.3v25.5H89.2zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5H223zm44.7 0H290v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0H513v25.5h-22.3z", fill: "#FFF", opacity: 0.5 })); }; var IS = function IS2(_ref112) { var title = _ref112.title, rest = _objectWithoutProperties(_ref112, _excluded112); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z" })); }; var IT = function IT2(_ref113) { var title = _ref113.title, rest = _objectWithoutProperties(_ref113, _excluded113); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M341.334 85.33H0v341.332h512V85.33z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.333h170.663V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.333H512V426.67H341.337z" })); }; var JE = function JE2(_ref114) { var title = _ref114.title, rest = _objectWithoutProperties(_ref114, _excluded114); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M301.8 171 513 30.2V0h-45.3L256.5 140.8 45.3 0H0v30.2L211.2 171 0 311.8V342h45.3l211.2-140.8L467.7 342H513v-30.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m233.7 44.6 22.3 5.6 22.3-5.6 4-20.9-14.9 6.5L256 14.8l-11.4 15.4-14.9-6.5z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M233.7 44.6s-4 12.9-4 29.9c0 27.9 26.3 41.3 26.3 41.3s26.3-15.5 26.3-41.3c0-15.4-4-29.9-4-29.9s-8.1-5-22.3-5-22.3 5-22.3 5z" })); }; var JM = function JM2(_ref115) { var title = _ref115.title, rest = _objectWithoutProperties(_ref115, _excluded115); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M215.864 256.006 0 399.911V112.089zM512 112.089v287.822L296.136 256.006z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M512 112.089 296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M512 112.089 296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z" })); }; var JO = function JO2(_ref116) { var title = _ref116.title, rest = _objectWithoutProperties(_ref116, _excluded116); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.339h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.339h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 312.89h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 256.006 0 426.669V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m77.913 224.802 7.876 16.469 17.786-4.11-7.965 16.426 14.303 11.343-17.808 4.014.049 18.255-14.241-11.421-14.241 11.421.05-18.255-17.809-4.014 14.303-11.343-7.965-16.426 17.786 4.11z" })); }; var JP = function JP2(_ref117) { var title = _ref117.title, rest = _objectWithoutProperties(_ref117, _excluded117); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#D80027", cx: 256, cy: 255.994, r: 96 })); }; var KE = function KE2(_ref118) { var title = _ref118.title, rest = _objectWithoutProperties(_ref118, _excluded118); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.331h512v90.579H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 336.089h512v90.568H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M0 198.606h512v114.799H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "m323.265 139.803-25.583-11.809L256 222.376l-41.682-94.382-25.583 11.809 51.749 116.191-51.749 116.192 25.583 11.808L256 289.613l41.682 94.381 25.583-11.808-51.749-116.192z" }), /* @__PURE__ */ React.createElement("path", { d: "M273.376 150.931C263.472 140.115 256 133.898 256 133.898s-7.472 6.216-17.376 17.032v210.127C248.528 371.873 256 378.091 256 378.091s7.472-6.216 17.376-17.033V150.931z" })), /* @__PURE__ */ React.createElement("path", { d: "M209.04 191.226v129.535c10.465 18.542 23.274 33.742 32.872 43.818V147.408c-9.599 10.076-22.408 25.275-32.872 43.818zm93.92 0c-10.465-18.543-23.274-33.742-32.872-43.818V364.58c9.599-10.077 22.407-25.276 32.872-43.818V191.226z", fill: "#A2001D" }), /* @__PURE__ */ React.createElement("path", { d: "M302.96 191.226v129.535c10.594-18.774 18.784-40.973 18.784-64.767s-8.19-45.993-18.784-64.768zm-93.92 0v129.535c-10.594-18.774-18.784-40.973-18.784-64.767s8.19-45.993 18.784-64.768z" })); }; var KG = function KG2(_ref119) { var title = _ref119.title, rest = _objectWithoutProperties(_ref119, _excluded119); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("circle", { cx: 256, cy: 170.7, r: 170.7 })), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M382.4 170.7 330.8 195l27.5 50-56.1-10.7-7.1 56.6-39.1-41.7-39.1 41.7-7.1-56.6-56.1 10.7 27.5-50-51.6-24.3 51.6-24.3-27.5-50.1 56.1 10.8 7.1-56.7L256 92.1l39.1-41.7 7.1 56.7 56.1-10.8-27.5 50.1z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#D80027", cx: 257.4, cy: 170.7, r: 71.6 }), /* @__PURE__ */ React.createElement("path", { d: "M214.2 170.7c-2.1 0-4.1.1-6.2.3.1 12 4.4 22.9 11.6 31.5 3.8-10.3 9.5-19.6 16.7-27.7-6.9-2.7-14.3-4.1-22.1-4.1zm26.6 46.5c5.2 1.9 10.8 2.9 16.6 2.9 5.8 0 11.4-1 16.6-2.9-2.8-11.1-8.7-21-16.6-28.8-7.9 7.8-13.8 17.7-16.6 28.8zm59.4-71.2c-8.5-14.8-24.5-24.7-42.8-24.7-18.3 0-34.2 9.9-42.8 24.7 15.6.1 30.2 4.3 42.8 11.6 12.6-7.3 27.2-11.6 42.8-11.6zm-21.7 28.8c7.2 8 12.9 17.4 16.7 27.7 7.2-8.5 11.5-19.5 11.6-31.5-2-.2-4.1-.3-6.2-.3-7.7 0-15.2 1.4-22.1 4.1z", fill: "#FFDA44" })); }; var KH = function KH2(_ref120) { var title = _ref120.title, rest = _objectWithoutProperties(_ref120, _excluded120); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M303.49 281.971v-17.809h-11.873v-23.745l-11.872-11.872-11.872 11.872v-23.744L256 204.8l-11.873 11.873v23.744l-11.872-11.872-11.872 11.872v23.745H208.51v17.809h-11.872v17.808h118.724v-17.808z" })); }; var KI = function KI2(_ref121) { var title = _ref121.title, rest = _objectWithoutProperties(_ref121, _excluded121); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 450 300" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#CE1126", d: "M0 0h450v300H0V0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FCD116" }, /* @__PURE__ */ React.createElement("circle", { cx: 227.6, cy: 161.2, r: 56.2 }), /* @__PURE__ */ React.createElement("path", { d: "m254.1 73.4-23.7 26 28.6 6.5zm-51.5.2-4.8 33.1 28.5-8zm94.3 26.7-34.7 8.5 20.1 23.7zm-138.3-1.8 15.5 32.7 20.2-22.7zm159 45.3-34.4-9.9 5.6 29.5zm-182-2.6 31.9 19.8 5.2-27.7z" })), /* @__PURE__ */ React.createElement("path", { fill: "#003F87", d: "M0 175h450v125H0V175z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 267c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21z" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", fill: "#FCD116", d: "m183.2 48.3-1.1-5.3 22.4-3.7s-30.1-7.1-40-10.7c-14.3-5.1-16.3-12.1-16.3-12.1s44.7 11 64.8 11c4.3 0 12.8 10.7 12.8 10.7s14.8-14.9 21.9-15.4c32.1-2.3 66.6-6.4 66.6-6.4s-10 6.7-16 8.5c-16.2 4.9-50.6 11.7-50.6 11.7l-4.8 7.5H277l-14.4 4.3 7.4 6.9s-7.8-4.1-18.1-2.1c-7.1 1.3-15.4 6-22.9 8-18.7 4.8-29.9-12.8-29.9-12.8l-15.9-.1z" })); }; var KM = function KM2(_ref122) { var title = _ref122.title, rest = _objectWithoutProperties(_ref122, _excluded122); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v85.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 170.663h512V256H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 256h512v85.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M68.638 256c0-24.865 17.476-45.638 40.812-50.734a52.059 52.059 0 0 0-11.13-1.208c-28.688 0-51.942 23.255-51.942 51.942s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.337-5.096-40.812-25.869-40.812-50.734z" }), /* @__PURE__ */ React.createElement("path", { d: "m108.877 211.478 2.762 8.503h8.94l-7.232 5.256 2.762 8.502-7.232-5.255-7.234 5.255 2.764-8.502-7.234-5.256h8.94zm0 22.261 2.762 8.503h8.94l-7.232 5.255 2.762 8.503-7.232-5.255-7.234 5.255 2.764-8.503-7.234-5.255h8.94zm0 22.261 2.762 8.503h8.94l-7.232 5.255 2.762 8.503-7.232-5.255-7.234 5.255 2.764-8.503-7.234-5.255h8.94zm0 22.261 2.762 8.502h8.94l-7.232 5.256 2.762 8.503-7.232-5.255-7.234 5.255 2.764-8.503-7.234-5.256h8.94z" }))); }; var KN = function KN2(_ref123) { var title = _ref123.title, rest = _objectWithoutProperties(_ref123, _excluded123); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M512 0H0v342" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M307.7 0 0 194.5V342h206.9L513 148.5V0z" }), /* @__PURE__ */ React.createElement("path", { d: "M513 0H385.2L0 249.4V341l126.2 1L513 91.6z" }), /* @__PURE__ */ React.createElement("path", { d: "m141.1 187 31.2 24 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.3-22.2zM310.6 70.8l31.2 23.9 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.4-22.2z", fill: "#FFF" })); }; var KP = function KP2(_ref124) { var title = _ref124.title, rest = _objectWithoutProperties(_ref124, _excluded124); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#91DC5A", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.331h512v57.188H0zM0 369.48h512v57.177H0z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 165.215h512v181.582H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 190.33, cy: 255.994, r: 65.668 }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "m190.332 190.332 14.734 45.346h47.757l-38.65 28.028 14.849 45.481-38.69-28.16-38.631 28.107 14.79-45.428-38.616-28.028h47.722z" })); }; var KR = function KR2(_ref125) { var title = _ref125.title, rest = _objectWithoutProperties(_ref125, _excluded125); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 900 600" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h900v600H0z" }), /* @__PURE__ */ React.createElement("g", { transform: "rotate(-56.31)" }, /* @__PURE__ */ React.createElement("path", { d: "M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75", stroke: "#000", strokeWidth: 25 }), /* @__PURE__ */ React.createElement("path", { stroke: "#FFF", strokeWidth: 12.5, d: "M0 753.3v125" }), /* @__PURE__ */ React.createElement("circle", { fill: "#ca163a", cy: 540.8, r: 150 }), /* @__PURE__ */ React.createElement("path", { fill: "#0e4896", d: "M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z" })), /* @__PURE__ */ React.createElement("path", { d: "m231.56 535.73-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006-83.205-124.808m478.43-138.675-83.205-124.807M720.39 209.843 637.184 85.036m114.407 104.006L668.386 64.234", stroke: "#000", strokeWidth: 25 }), /* @__PURE__ */ React.createElement("path", { stroke: "#FFF", strokeWidth: 12.5, d: "m205.6 462.897 31.202-20.8m389.981-259.989 36.444-24.296m31.202-20.801 31.202-20.801" })); }; var KW = function KW2(_ref126) { var title = _ref126.title, rest = _objectWithoutProperties(_ref126, _excluded126); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M166.957 312.889 0 426.663V85.337l166.957 113.774z" })); }; var KY = function KY2(_ref127) { var title = _ref127.title, rest = _objectWithoutProperties(_ref127, _excluded127); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#6DA544", cx: 384, cy: 181.79, r: 29.682 }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M332.054 174.377h103.88v44.522h-103.88z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M435.942 255.997v-.001.001z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M332.058 285.678v29.682h15.616c9.364 9.176 22.18 14.84 36.326 14.84 14.147 0 26.962-5.664 36.326-14.84h15.616v-29.682H332.058z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M332.058 211.475v44.522c0 39.759 51.942 51.942 51.942 51.942s51.942-12.182 51.942-51.942v-44.522H332.058z" }), /* @__PURE__ */ React.createElement("path", { d: "M383.997 235.256c-12.985 0-12.985 11.873-25.97 11.873s-12.985-11.873-25.97-11.873v20.777c12.985 0 12.985 11.873 25.97 11.873s12.985-11.873 25.97-11.873c12.986 0 12.986 11.873 25.973 11.873 12.986 0 12.986-11.873 25.973-11.873v-20.777c-12.986 0-12.986 11.873-25.973 11.873-12.986-.001-12.986-11.873-25.973-11.873zm0-41.59c-12.985 0-12.985 11.873-25.97 11.873s-12.985-11.873-25.97-11.873v20.777c12.985 0 12.985 11.873 25.97 11.873s12.985-11.873 25.97-11.873c12.986 0 12.986 11.873 25.973 11.873 12.986 0 12.986-11.873 25.973-11.873v-20.777c-12.986 0-12.986 11.873-25.973 11.873-12.986 0-12.986-11.873-25.973-11.873z", fill: "#F3F3F3" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 85.334v22.617l-46.069 30.709H256v64h-46.069L256 233.38v22.617h-22.628L160 207.078v48.919H96v-48.919l-73.372 48.919H0V233.38l46.069-30.72H0v-64h46.069L0 107.951V85.334h22.628L96 134.241V85.334h64v48.907l73.372-48.907z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 85.329h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.329v15.082l57.377 38.252H80zm256 0v15.082l-57.377 38.252H176z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.329v15.082l57.377 38.252H80zm256 0v15.082l-57.377 38.252H176zM0 255.997v-15.082l57.377-38.252H80zm256 0v-15.082l-57.377-38.252H176z" }))); }; var KZ = function KZ2(_ref128) { var title = _ref128.title, rest = _objectWithoutProperties(_ref128, _excluded128); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#36B6CC", d: "M0 0h513v342H0V0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFD400", cx: 256.5, cy: 170.9, r: 68.4 }), /* @__PURE__ */ React.createElement("path", { fill: "#FFD400", d: "m256.5 251.5-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z" })); }; var LA = function LA2(_ref129) { var title = _ref129.title, rest = _objectWithoutProperties(_ref129, _excluded129); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 .1h513v90.7H0zm0 251.2h513V342H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 256.5, cy: 171, r: 65.9 })); }; var LB = function LB2(_ref130) { var title = _ref130.title, rest = _objectWithoutProperties(_ref130, _excluded130); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 .2h513v90.7H0zm.5 251.1H513V342H.5z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M290.3 193.5 256 130.7l-34.3 62.8h25.7v17.2h17.2v-17.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#14AF5A", d: "M241.3 213.1c4.4-4.4 4.4-11.6-.1-16l4.7 4.7c-5.2-4.7-12.2-6.6-19.1-5.3l-23.5 5.9c-6.1 1.5-6.8-.4-1.8-4.2l27.1-20.3c5.1-3.8 4.2-6.9-2.3-6.9h-11c-6.4 0-7-2.3-1.5-5.1l25.3-12.7c5.6-2.8 5.1-5.1-1.5-5.1h-11c-6.4 0-7.4-3.1-2.3-6.9l27.1-20.3c5.6-3.8 12.9-3.8 18.5 0l27.1 20.3c5.1 3.8 4.2 6.9-2.3 6.9h-11c-6.4 0-7 2.3-1.5 5.1l25.3 12.7c5.6 2.8 5.1 5.1-1.5 5.1h-11c-6.4 0-7.4 3.1-2.3 6.9l27.1 20.3c5.1 3.8 4.4 5.7-1.8 4.2l-23.5-5.9c-6.8-1.3-13.9.6-19.1 5.3l4.7-4.7c-4.4 4.4-4.5 11.5-.1 16l6.8 6.8c4.4 4.4 3.1 8-3.3 8h-45.8c-6.2 0-7.7-3.6-3.3-8 .1.1 6.9-6.8 6.9-6.8z" })); }; var LC = function LC2(_ref131) { var title = _ref131.title, rest = _objectWithoutProperties(_ref131, _excluded131); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#55B2FF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F3F3F3", d: "M148.5 298.1h216l-108-254.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#333", d: "m186 272.7 70.5-160.3L327 272.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M148.5 298.1h216l-108-101.7z" })); }; var LI = function LI2(_ref132) { var title = _ref132.title, rest = _objectWithoutProperties(_ref132, _excluded132); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v171H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M149.3 98.1c0-14-11.3-25.3-25.3-25.3-6.5 0-12.4 2.4-16.9 6.4V64.4h8.4V47.5h-8.4v-8.4H90.3v8.4h-8.4v16.9h8.4v14.9c-4.5-4-10.4-6.4-16.9-6.4-14 0-25.3 11.3-25.3 25.3 0 7.5 3.3 14.2 8.4 18.8v14.9h84.3V117c5.3-4.7 8.5-11.5 8.5-18.9z" })); }; var LK = function LK2(_ref133) { var title = _ref133.title, rest = _objectWithoutProperties(_ref133, _excluded133); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M222.6 22.3h267.1v296.8H222.6z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M22.3 22.3h200.3v296.8H22.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M200.3 0h22.3v342h-22.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M22.3 22.3h89v296.8h-89z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M111.3 22.3h89v296.8h-89z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M368.2 156.8c-1.4-2 0-37.9 0-37.9.9-7.4.1-8.4 1-11.4.9-2.9 5.4-11.6 5.4-11.6s-6-2.3-10.3-.6c-4.3 1.7-24.7-7.5-31.2 3.4-4.4 7-23.6 16.2-24.6 14-1-2.2-5.9-5-6.9-2.9s-.7 13.9 0 16c.8 2.6 9.8 2 12.3 3.1 3.7 1.8 12.2 8.2 11.9 10.7-.3 2.5-22.5-6-24.2-4.5-1.4 1.2-1.9 13.2-.4 15 1.8 2.1 23.4 5.6 25 7.5 1.6 1.9-13.1 7.4-12.3 25 .7 14.7 8 17.4 8 17.4s-2.4 3.6-7.8 3.1c-6.2-.6-27.4-17.7-27.4-17.7s-3.5-109 3.6-121.4c4.9-8.5-22.7 10.1-22.7 50.8V151c0 6.6-1.4 22.4 2.6 34 0 0-.4 46.9 1.5 49.6s12.7 2.2 14.8 0 0-30 0-30c7.7.2 18.3 17.5 32.5 16.4 20.6-1.6 28.7-9.9 34.3-5 8.1 7.1 5.5 23.2.4 31.5-2.2 3.5-14.3 4.7-15.7 7.6-1.4 2.9.5 5.4.5 5.4h29.7s1.4-20.5 2.7-26.1c1.3-5.7-.6-10.7 5.9-10.4 23.5 1.1 39.8-15.3 45.5-8 3.2 4.1 5.6 29.9 3.3 33.3-2.2 3.4-13.8 2.8-15.2 6.7-1.4 4 .8 4.4.8 4.4h29.7s-.4-21.2 2.5-27.7 4.9-10.4 9.3-17.2c4.4-6.8 11.3-15.7 11.3-36.2 0-14.2-8.1-22.8-8.1-22.8H417c-14.1.2-47.4 2.3-48.8.3zm-136-124.5c10.7-10.6 20.2-2.7 22.2 2.1 1.9 4.8 2.1 8.2 2.8 13.6.9 6.9 4.9 14 4.9 14s-7.1-3.8-14.7-4.2c-4.7-.3-9-.6-13.6-2.5-5.7-2.3-11.7-12.9-1.6-23zm248.4-.1c10.7 10.6 2.8 20.2-2 22.2s-8.2 2.1-13.6 2.8c-6.9.9-14 5-14 5s3.7-7.1 4.2-14.7c.3-4.7.6-9.1 2.4-13.6 2.2-5.7 12.8-11.8 23-1.7zm.1 276.9c-10.7 10.6-20.2 2.6-22.2-2.2-1.9-4.8-2.1-8.2-2.7-13.6-.8-6.9-4.9-14.1-4.9-14.1s7 3.8 14.7 4.3c4.7.3 9 .6 13.6 2.5 5.7 2.4 11.7 13.1 1.5 23.1zm-248.2-.1c-10.6-10.7-2.7-20.2 2.1-22.2 4.8-1.9 8.2-2.1 13.6-2.8 6.9-.9 14-4.9 14-4.9s-3.8 7.1-4.2 14.7c-.3 4.7-.6 9-2.5 13.6-2.3 5.7-12.9 11.8-23 1.6z" }), /* @__PURE__ */ React.createElement("path", { fill: "none", stroke: "#FFDA44", strokeWidth: 6, strokeMiterlimit: 10, d: "M446.9 162.4s7.5-2.6 8.4-16.1c.6-8.6-19.8-16-39-11.5-19.7 4.6-34-3.1-34-14.6 0-22.9 29.7-16.2 38.9-11.3 9.1 4.9 29.7 23.5 35.1 9.4" })); }; var LR = function LR2(_ref134) { var title = _ref134.title, rest = _objectWithoutProperties(_ref134, _excluded134); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 0h512v31.1H0zm0 62.2h512v31.1H0zm0 62.3h512v31.1H0zm0 62.3h512v31.1H0zm0 62.5h512v31.1H0zm0 61.6h512V342H0z", fill: "#bf0a30" }), /* @__PURE__ */ React.createElement("path", { fill: "#002868", d: "M0 0h155.6v155.6H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m77.8 30.2 10.7 32.9h34.6l-28 20.4 10.7 32.9-28-20.3-28 20.3 10.7-32.9-28-20.4h34.6z" })); }; var LS = function LS2(_ref135) { var title = _ref135.title, rest = _objectWithoutProperties(_ref135, _excluded135); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 227.6h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m245.2 171 7.7-23.1c2-5.9 5.1-6 7.1 0l7.7 23.1 19.4 29.1c1.7 2.6 1.3 6.3-1.2 8 0 0-6.9 8-29.5 8s-29.5-8-29.5-8c-2.4-2-2.9-5.4-1.2-8l19.5-29.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M256.5 171c-12.5 0-22.6-10.1-22.6-22.6 0-12.5 10.1-22.6 22.6-22.6s22.6 10.1 22.6 22.6c0 12.5-10.2 22.6-22.6 22.6zm0 0c6.2 0 11.3-16.3 11.3-22.6 0-6.2-5.1-11.3-11.3-11.3-6.2 0-11.3 5.1-11.3 11.3 0 6.3 5 22.6 11.3 22.6z" })); }; var LT = function LT2(_ref136) { var title = _ref136.title, rest = _objectWithoutProperties(_ref136, _excluded136); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 312.888h512v113.775H0z" })); }; var LU = function LU2(_ref137) { var title = _ref137.title, rest = _objectWithoutProperties(_ref137, _excluded137); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 312.888h512v113.775H0z" })); }; var LV = function LV2(_ref138) { var title = _ref138.title, rest = _objectWithoutProperties(_ref138, _excluded138); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { className: "prefix__st1", d: "M0 0h513v127.6H0zm0 214.4h513V342H0z", fill: "#A2001D" })); }; var LY = function LY2(_ref139) { var title = _ref139.title, rest = _objectWithoutProperties(_ref139, _excluded139); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "m281.424 236.026 8.962 12.35 14.513-4.706-8.975 12.339 8.961 12.349-14.509-4.724-8.976 12.34.01-15.258-14.51-4.725 14.514-4.706z" }), /* @__PURE__ */ React.createElement("path", { d: "M256.965 286.868c-17.048 0-30.868-13.821-30.868-30.868s13.821-30.868 30.868-30.868a30.742 30.742 0 0 1 14.684 3.71c-6.851-6.698-16.218-10.833-26.556-10.833-20.982 0-37.992 17.01-37.992 37.992s17.01 37.992 37.992 37.992c10.338 0 19.706-4.135 26.556-10.833a30.738 30.738 0 0 1-14.684 3.708z" }))); }; var MA = function MA2(_ref140) { var title = _ref140.title, rest = _objectWithoutProperties(_ref140, _excluded140); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337v341.326h512V85.337z" }), /* @__PURE__ */ React.createElement("path", { fill: "#20661b", d: "M352 226.484h-73.337L256 156.738l-22.663 69.748H160l59.331 43.107-22.663 69.749L256 296.232l59.332 43.107-22.663-69.749L352 226.484zm-116.063 37.711 7.663-23.585h24.8l7.663 23.585v.001L256 278.772l-20.063-14.577zm27.873-37.711h-15.619L256 202.447l7.81 24.037zm24.269 28.982-4.827-14.856h25.274l-20.447 14.856zm-59.331-14.856-4.827 14.856-20.447-14.856h25.274zm-5.211 61.748 7.81-24.036 12.636 9.181-20.446 14.855zm44.479-14.856 12.636-9.181 7.81 24.036-20.446-14.855z" })); }; var MC = function MC2(_ref141) { var title = _ref141.title, rest = _objectWithoutProperties(_ref141, _excluded141); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.333h512v341.333H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#c70000", d: "M0 85.333h512V256H0z" })); }; var MD = function MD2(_ref142) { var title = _ref142.title, rest = _objectWithoutProperties(_ref142, _excluded142); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M342 0h171v342H342z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h171v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#AF7F59", d: "M206.2 129.1h33.2L256 79.3l16.6 49.8h33.2v99.6L256 262l-49.8-33.2v-99.7zm33.2 33.3v49.8h33.2v-49.8h-33.2z" })); }; var ME = function ME2(_ref143) { var title = _ref143.title, rest = _objectWithoutProperties(_ref143, _excluded143); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#E6BE53", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E01D24", d: "M20 20h473v302H20z" }), /* @__PURE__ */ React.createElement("path", { fill: "#E6BE53", d: "M248.5 112.9c4.4 4.4 11.6 4.4 16 0l-4.7 4.7 22.7-22.7c4.9-4.5 12.1-5.6 18.2-2.8l2.1 1c5.7 2.9 6.7 8.7 2.3 13.1l4.7-4.7-22.8 22.8c-4.5 4.9-5.6 12.1-2.8 18.2l1 2.1c2.9 5.7 5.1 15.4 5.1 21.6v-11.3c0 6.2 4.4 9.1 10.2 6.2l2.1-1c5.7-2.9 6.7-8.7 2.3-13.1l4.7 4.7c-4.4-4.4-4.4-11.6 0-16l-4.7 4.7c5.2-5.5 9.6-11.6 13.1-18.2l1-2.1c2.9-5.7 6.3-15.1 7.9-21.2l5.8-23.3c1.5-6 5.9-6.8 9.6-1.8l20.2 26.9c3.8 5.1 6.9 14 6.9 20.6v22.4c0 6.3-2.2 15.8-5.1 21.7l-1 2.1c-3.5 6.6-7.9 12.7-13.1 18.2l-6.8 6.8c-5.4 5.2-11.5 9.6-18.2 13.1l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.2 0-6.9 2.2-1.1 5.1l2.1 1c5.7 2.9 13.8 8.7 18.2 13.1l-4.7-4.7c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L339 226c4.6 4.9 5.7 12.1 2.9 18.2l-1 2.1c-2.9 5.7-10.4 10.2-16.4 10.2-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.5-3.6-11.8-8.9-15.4-15.4l-1-2.1c-2.9-5.7-8.7-6.7-13.1-2.3l4.7-4.7c-4.4 4.7-5.2 11.8-1.8 17.3l10.3 15.4c3.4 5.1 2 12.1-3.1 15.5L266 284.4c-5.7 3.4-12.8 3.4-18.6 0L232 274.1c-5.1-3.4-6.5-10.3-3.1-15.5l10.3-15.4c3.4-5.5 2.6-12.6-1.8-17.3l4.7 4.7c-4.4-4.4-10.2-3.6-13.1 2.3l-1 2.1c-2.9 5.7-9.5 12.4-15.4 15.4l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.9-.3-13.1-4.2-16.4-10.2l-1-2.1c-2.8-6.1-1.6-13.3 2.9-18.2l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L181 226c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c5.5-5.2 11.6-9.6 18.2-13.1l2.1-1c5.7-2.9 5-5.1-1.1-5.1-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.6-3.5-12.7-7.9-18.2-13.1l-6.8-6.8c-5.2-5.4-9.6-11.5-13.1-18.2l-1-2.1c-3.1-6.8-4.9-14.2-5.1-21.7V121c0-6.3 3.1-15.6 6.9-20.6l20.2-26.9c3.8-5.1 8.1-4.3 9.6 1.8l5.8 23.3c2 7.3 4.6 14.4 7.9 21.2l1 2.1c2.9 5.7 8.7 13.8 13.1 18.2l-4.7-4.7c4.4 4.4 4.4 11.6 0 16l4.7-4.7c-4.4 4.4-3.6 10.2 2.3 13.1l2.1 1c5.7 2.9 10.2 0 10.2-6.2v11.3c0-6.2 2.2-15.7 5.1-21.6l1-2.1c2.8-6.1 1.7-13.2-2.8-18.2l-22.7-22.7 4.7 4.7c-4.4-4.4-3.6-10.2 2.3-13.1l2.1-1c6.1-2.8 13.2-1.7 18.2 2.8l22.7 22.7-4.8-4.5zm-18-40.7c-4.4-4.4-3.2-9.5 2.8-11.5l12.4-4.2c6-2 15.5-2 21.5 0l12.4 4.2c6 2 7.2 7.1 2.8 11.5l-6.8 6.8c-5.3 4.7-12.1 7.5-19.2 7.9-6.2 0-14.8-3.5-19.2-7.9.1 0-6.7-6.8-6.7-6.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#215F90", d: "M233.9 200.2c0 6.2 1.7 6.4 4.2.5 0 0 7.1-23.2 18.4-23.2 11.3 0 18.6 23.6 18.6 23.6 2.2 5.7 4 5.3 4-1.1v-11.2c0-18.7-10.1-33.9-22.6-33.9-12.5 0-22.6 15.2-22.6 33.9v11.4z" })); }; var MF = function MF2(_ref144) { var title = _ref144.title, rest = _objectWithoutProperties(_ref144, _excluded144); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 108 72" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 0h108v72H0z", fill: "#003787" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h108L60 48v24H48V48z", fill: "#fff" }), /* @__PURE__ */ React.createElement("circle", { cx: 54, cy: 30, r: 8, fill: "#f9d90f" }), /* @__PURE__ */ React.createElement("path", { d: "M44 30h20L54 48z", fill: "#fff" }), /* @__PURE__ */ React.createElement("path", { d: "M54 48 38 33h32z", fill: "#cf142b" })); }; var MG = function MG2(_ref145) { var title = _ref145.title, rest = _objectWithoutProperties(_ref145, _excluded145); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M512 426.666V85.329H0v341.337h512z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 85.331H0v170.666h512V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.334h181.793v341.337H0z" })); }; var MH = function MH2(_ref146) { var title = _ref146.title, rest = _objectWithoutProperties(_ref146, _excluded146); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#1E509C", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M513 176.1V81.3L0 342l513-165.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F18D36", d: "M513 0v81.3L0 342 513 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m126.7 99.3-7.8-54.1-7.7 54.1-20.8-23.7 10.7 31.6-31.5-10.7 23.6 20.8-54.1 7.7 54.1 7.7-23.6 20.8 31.5-10.7-10.7 31.6 20.8-23.7 7.7 54.1 7.8-54.1 20.7 23.7-10.6-31.6 31.5 10.7-23.6-20.8 54-7.7-54-7.7 23.6-20.8-31.5 10.7 10.6-31.6z" })); }; var MK = function MK2(_ref147) { var title = _ref147.title, rest = _objectWithoutProperties(_ref147, _excluded147); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M383.875 426.662 256 252.286l26.827 174.376zM133.565 85.33 256 252.286 230.314 85.33zm95.606 341.332L256 252.286 128.124 426.662zM0 85.33V212.9l256 39.386L28.333 85.33zm0 341.332h18.212L256 252.286 0 291.67zm256-174.376L512 212.9V85.33h-28.331zM281.686 85.33 256 252.286 378.434 85.33zM512 426.662V291.671l-256-39.385 237.787 174.376z" }), /* @__PURE__ */ React.createElement("circle", { cx: 256, cy: 252.29, r: 59.359 })), /* @__PURE__ */ React.createElement("circle", { fill: "#FFDA44", cx: 256, cy: 252.29, r: 44.522 })); }; var ML = function ML2(_ref148) { var title = _ref148.title, rest = _objectWithoutProperties(_ref148, _excluded148); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.331H512v341.337H341.337z" })); }; var MM = function MM2(_ref149) { var title = _ref149.title, rest = _objectWithoutProperties(_ref149, _excluded149); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M384 227.261h-97.783L256 134.265l-30.217 92.997H128l79.108 57.475-30.217 92.998L256 320.925l79.108 56.81-30.217-92.998L384 227.261z" })); }; var MN = function MN2(_ref150) { var title = _ref150.title, rest = _objectWithoutProperties(_ref150, _excluded150); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#095FAD", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M342 0h171v342H342zM0 0h171v342H0z", fill: "#BE1229" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFDA44" }, /* @__PURE__ */ React.createElement("path", { d: "M108.3 166.3h14.8v74.2h-14.8zm-59.4 0h14.8v74.2H48.9z" }), /* @__PURE__ */ React.createElement("circle", { cx: 86, cy: 203.4, r: 14.8 }), /* @__PURE__ */ React.createElement("path", { d: "M71.2 225.7h29.7v14.8H71.2zm0-59.4h29.7v14.8H71.2z" }), /* @__PURE__ */ React.createElement("circle", { cx: 86, cy: 144, r: 14.8 }), /* @__PURE__ */ React.createElement("path", { d: "M76.3 123.9h19.5L86 108.3z" }))); }; var MO = function MO2(_ref151) { var title = _ref151.title, rest = _objectWithoutProperties(_ref151, _excluded151); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#00745a", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M285.682 248.878c-4.19 0-8.166.836-11.861 2.164 2.023-4.509 3.379-9.527 3.379-14.885 0-21.201-21.201-37.101-21.201-37.101s-21.201 15.901-21.201 37.101c0 5.357 1.356 10.375 3.379 14.885-3.693-1.328-7.671-2.164-11.861-2.164-21.201 0-37.101 21.201-37.101 21.201s15.901 21.201 37.101 21.201c12.429 0 23.031-7.286 29.682-13.315 6.65 6.03 17.251 13.315 29.682 13.315 21.201 0 37.101-21.201 37.101-21.201s-15.899-21.201-37.099-21.201z" }), /* @__PURE__ */ React.createElement("path", { d: "m256 152.111 4.38 13.476h14.171l-11.464 8.332 4.376 13.476-11.463-8.33-11.463 8.33 4.376-13.476-11.464-8.332h14.171zm-53.888 23.572 8.425 7.585 9.818-5.667-4.61 10.355 8.423 7.588-11.274-1.185-4.611 10.355-2.358-11.088-11.275-1.185 9.818-5.669zm-39.45 39.449 11.09 2.358 5.668-9.818 1.186 11.274 11.089 2.358-10.357 4.61 1.186 11.274-7.587-8.423-10.357 4.61 5.669-9.818zm147.227-39.449-8.425 7.585-9.818-5.667 4.611 10.355-8.425 7.588 11.275-1.185 4.61 10.355 2.359-11.088 11.275-1.185-9.818-5.669zm39.449 39.449-11.089 2.358-5.669-9.818-1.186 11.274-11.088 2.358 10.357 4.61-1.185 11.274 7.586-8.423 10.357 4.61-5.669-9.818z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("path", { d: "M256 350.642c16.84 0 32.363-5.619 44.816-15.073h-89.63c12.451 9.454 27.974 15.073 44.814 15.073zm-68.023-44.522a74.138 74.138 0 0 0 8.85 15.073h118.345a74.13 74.13 0 0 0 8.85-15.073H187.977z", fill: "#FFF" })); }; var MP = function MP2(_ref152) { var title = _ref152.title, rest = _objectWithoutProperties(_ref152, _excluded152); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 750 500" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0071BC", d: "M0 0h750v500H0V0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF", stroke: "#000", strokeWidth: 1.9 }, /* @__PURE__ */ React.createElement("circle", { cx: 375, cy: 245, r: 225, fill: "#fff" }), /* @__PURE__ */ React.createElement("circle", { cx: 375, cy: 245, r: 165, fill: "#0071BC" })), /* @__PURE__ */ React.createElement("g", { stroke: "#000" }, /* @__PURE__ */ React.createElement("path", { fill: "#8C8A8C", strokeWidth: 1.9, d: "M444.7 450c.7 11-7.8 20-18.8 20H323.6c-11 0-19.5-9-19-20l16.7-325c.6-11 10-20 21-20h61.4c11 0 20.5 9 21.2 20l19.8 325z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", strokeWidth: 2, strokeLinejoin: "round", d: "m373 114 30 93h97l-78 56 29 92-78-56-78 57 30-93-79-57h97l30-92z" }))); }; var MQ = function MQ2(_ref153) { var title = _ref153.title, rest = _objectWithoutProperties(_ref153, _excluded153); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#fff" }, /* @__PURE__ */ React.createElement("path", { d: "M512 148.4v44.5H278.3v148.4h-44.6V192.9H0v-44.5h233.7V0h44.6v148.4z" }), /* @__PURE__ */ React.createElement("path", { d: "M101 36.1c4.2-.2 8.3-.1 12.5.2 5.5.4 9.4 1.6 9.1.5-.5-1.8-.1-2.2-.8-1.8-1.3 1 .7-.2-7.4 4.4-11.8 6.7-16.9 11.8-14.3 21 2.3 8.1 8.2 10.3 22.3 12.5l1.9.3c5.6.9 8.1 1.4 9.8 2.2.4.2-.3-1-.1-1.7-.2.6-3.9 2.1-13.3 3.9l-4.7.9c-18.1 3.7-27.1 8.5-28.5 21-1.5 13.7 12.7 23.3 30.6 25.6 18.2 2.4 34.1-3.6 35.7-18.4 1-9.4-5.5-15-15.9-17.1-7-1.4-16.3-1.4-27.4-.3-12.4 1.3-24.7 3.4-36.9 6.3-3.6.7-5.9 4.2-5.2 7.8.7 3.6 4.2 5.9 7.8 5.2.2 0 .3-.1.5-.1 11.6-2.7 23.3-4.7 35.1-5.9 9.9-1 18-1 23.4.1 4.4.9 5.3 1.7 5.2 2.6-.5 5.1-8.9 8.2-20.7 6.7-11.6-1.5-19.5-6.8-19.1-11 .5-4.3 5.3-6.8 17.9-9.4l4.6-.9c15.5-3 21.1-5.3 23.5-13.2 1.9-6.5-1.3-11.6-7.2-14.2-3.2-1.4-6.3-2.1-13.2-3.1l-1.8-.3c-8-1.3-11.4-2.6-11.5-3-.1-.4 1.8-2.3 8.1-5.9l4.4-2.5c1.5-.8 2.9-1.8 4.3-2.7 4.6-3.4 7.2-7.1 5.8-12.3-1.9-7.3-9-9.5-20.9-10.4-4.7-.3-9.3-.4-14-.3l-2 .1c-3.7.2-6.5 3.4-6.3 7 .2 3.7 3.4 6.5 7 6.3l1.7-.1zm284 0c4.2-.2 8.3-.1 12.5.2 5.5.4 9.4 1.6 9.1.5-.5-1.8-.1-2.2-.8-1.8-1.3 1 .7-.2-7.4 4.4-11.8 6.7-16.9 11.8-14.3 21 2.3 8.1 8.2 10.3 22.3 12.5l1.9.3c5.6.9 8.1 1.4 9.8 2.2.4.2-.3-1-.1-1.7-.2.6-3.9 2.1-13.3 3.9l-4.7.9c-18.1 3.7-27.1 8.5-28.5 21-1.5 13.7 12.7 23.3 30.6 25.6 18.2 2.4 34.1-3.6 35.7-18.4 1-9.4-5.5-15-15.9-17.1-7-1.4-16.3-1.4-27.4-.3-12.4 1.3-24.7 3.4-36.9 6.3-3.6.7-5.9 4.2-5.2 7.8.7 3.6 4.2 5.9 7.8 5.2.2 0 .3-.1.5-.1 11.6-2.7 23.3-4.7 35.1-5.9 9.9-1 18-1 23.4.1 4.4.9 5.3 1.7 5.2 2.6-.5 5.1-8.9 8.2-20.7 6.7-11.6-1.5-19.5-6.8-19.1-11 .5-4.3 5.3-6.8 17.9-9.4l4.6-.9c15.5-3 21.1-5.3 23.5-13.2 1.9-6.5-1.3-11.6-7.2-14.2-3.2-1.4-6.3-2.1-13.2-3.1l-1.8-.3c-8-1.3-11.4-2.6-11.5-3-.1-.4 1.8-2.3 8.1-5.9l4.4-2.5c1.5-.8 2.9-1.8 4.3-2.7 4.6-3.4 7.2-7.1 5.8-12.3-1.9-7.3-9-9.5-20.9-10.4-4.7-.3-9.3-.4-14-.3l-2 .1c-3.7.2-6.5 3.4-6.3 7 .2 3.7 3.4 6.5 7 6.3l1.7-.1zm-5.4 199c4.2-.2 8.3-.1 12.5.2 5.5.4 9.4 1.6 9.1.5-.5-1.8-.1-2.2-.8-1.8-1.3 1 .7-.2-7.4 4.4-11.8 6.7-16.9 11.8-14.3 21 2.3 8.1 8.2 10.3 22.3 12.5l1.9.3c5.6.9 8.1 1.4 9.8 2.2.4.2-.3-1-.1-1.7-.2.6-3.9 2.1-13.3 3.9l-4.7.9c-18.1 3.7-27.1 8.5-28.5 21-1.5 13.7 12.7 23.3 30.6 25.6 18.2 2.4 34.1-3.6 35.7-18.4 1-9.4-5.5-15-15.9-17.1-7-1.4-16.3-1.4-27.4-.3-12.4 1.3-24.7 3.4-36.9 6.3-3.6.7-5.9 4.2-5.2 7.8.7 3.6 4.2 5.9 7.8 5.2.2 0 .3-.1.5-.1 11.6-2.7 23.3-4.7 35.1-5.9 9.9-1 18-1 23.4.1 4.4.9 5.3 1.7 5.2 2.6-.5 5.1-8.9 8.2-20.7 6.7-11.6-1.5-19.5-6.8-19.1-11 .5-4.3 5.3-6.8 17.9-9.4l4.6-.9c15.5-3 21.1-5.3 23.5-13.2 1.9-6.5-1.3-11.6-7.2-14.2-3.2-1.4-6.3-2.1-13.2-3.1l-1.8-.3c-8-1.3-11.4-2.6-11.5-3-.1-.4 1.8-2.3 8.1-5.9l4.4-2.5c1.5-.8 2.9-1.8 4.3-2.7 4.6-3.4 7.2-7.1 5.8-12.3-1.9-7.3-9-9.5-20.9-10.4-4.7-.3-9.3-.4-14-.3l-2 .1c-3.7.2-6.5 3.4-6.3 7s3.4 6.5 7 6.3l1.7-.1zm-278.6 0c4.2-.2 8.3-.1 12.5.2 5.5.4 9.4 1.6 9.1.5-.5-1.8-.1-2.2-.8-1.8-1.3 1 .7-.2-7.4 4.4-11.8 6.7-16.9 11.8-14.3 21 2.3 8.1 8.2 10.3 22.3 12.5l1.9.3c5.6.9 8.1 1.4 9.8 2.2.4.2-.3-1-.1-1.7-.2.6-3.9 2.1-13.3 3.9l-4.7.9c-18.1 3.7-27.1 8.5-28.5 21-1.5 13.7 12.7 23.3 30.6 25.6 18.2 2.4 34.1-3.6 35.7-18.4 1-9.4-5.5-15-15.9-17.1-7-1.4-16.3-1.4-27.4-.3-12.4 1.3-24.7 3.4-36.9 6.3-3.6.7-5.9 4.2-5.2 7.8s4.2 5.9 7.8 5.2c.2 0 .3-.1.5-.1 11.6-2.7 23.3-4.7 35.1-5.9 9.9-1 18-1 23.4.1 4.4.9 5.3 1.7 5.2 2.6-.5 5.1-8.9 8.2-20.7 6.7-11.6-1.5-19.5-6.8-19.1-11 .5-4.3 5.3-6.8 17.9-9.4l4.6-.9c15.5-3 21.1-5.3 23.5-13.2 1.9-6.5-1.3-11.6-7.2-14.2-3.2-1.4-6.3-2.1-13.2-3.1l-1.8-.3c-8-1.3-11.4-2.6-11.5-3-.1-.4 1.8-2.3 8.1-5.9l4.4-2.5c1.5-.8 2.9-1.8 4.3-2.7 4.6-3.4 7.2-7.1 5.8-12.3-1.9-7.3-9-9.5-20.9-10.4-4.7-.3-9.3-.4-14-.3l-2 .1c-3.7.2-6.5 3.4-6.3 7 .2 3.7 3.4 6.5 7 6.3l1.7-.1z" }))); }; var MR = function MR2(_ref154) { var title = _ref154.title, rest = _objectWithoutProperties(_ref154, _excluded154); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 100 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#006233", d: "M0 100h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#cd2a3e", d: "M0 100h513v46H0zm0 296h513v46H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ffc400", d: "M256 298.851c-45.956 0-84.348-32.298-93.767-75.429A96.288 96.288 0 0 0 160 243.994c0 53.02 42.979 96 96 96s96-42.98 96-96c0-7.066-.785-13.942-2.233-20.572-9.419 43.131-47.811 75.429-93.767 75.429z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ffc400", d: "m255.999 171.994 8.935 27.502h28.918l-23.394 16.996 8.936 27.503-23.395-16.998-23.394 16.998 8.937-27.503-23.394-16.996h28.915z" })); }; var MS = function MS2(_ref155) { var title = _ref155.title, rest = _objectWithoutProperties(_ref155, _excluded155); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#1B4991", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00A2B8", stroke: "#FFF", strokeWidth: 3, d: "M318.2 106.7v106.5c0 51.9 67.8 67.8 67.8 67.8s67.8-15.9 67.8-67.8V106.7H318.2z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A35023", d: "M319.7 212.7c0 50.8 66.3 66.3 66.3 66.3s66.3-15.6 66.3-66.3H319.7z" }), /* @__PURE__ */ React.createElement("path", { d: "M415.1 155.1h-19.4v-19.4h-19.4v19.4H357v19.4h19.3v58.1h19.4v-58.1h19.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.8 115 256 170.7v-15.8L184.2 115z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.8 115 256 170.7v-15.8L184.2 115z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.2 55.6 0 0v15.7l71.8 39.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.2 55.6 0 0v15.7l71.8 39.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z" })); }; var MT = function MT2(_ref156) { var title = _ref156.title, rest = _objectWithoutProperties(_ref156, _excluded156); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#C31B28", d: "M256 0h256.5v342H256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ACABB1", stroke: "#C31B28", strokeWidth: 2, d: "M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z" })); }; var MU = function MU2(_ref157) { var title = _ref157.title, rest = _objectWithoutProperties(_ref157, _excluded157); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#f7ce00", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e32737", d: "M0 85.331h512v85.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#191f6a", d: "M0 170.657h512v85.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00a04e", d: "M0 341.331h512v85.337H0z" })); }; var MV = function MV2(_ref158) { var title = _ref158.title, rest = _objectWithoutProperties(_ref158, _excluded158); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#d01920", d: "M0 85.331h512v341.333H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#017c3b", d: "M144.696 174.375h222.609v163.25H144.696z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M283.484 304.226c-26.637 0-48.232-21.594-48.232-48.232s21.594-48.232 48.232-48.232c8.306 0 16.12 2.1 22.943 5.797-10.703-10.467-25.341-16.927-41.494-16.927-32.784 0-59.362 26.577-59.362 59.362s26.578 59.362 59.362 59.362c16.154 0 30.791-6.461 41.494-16.927-6.822 3.698-14.636 5.797-22.943 5.797z" })); }; var MW = function MW2(_ref159) { var title = _ref159.title, rest = _objectWithoutProperties(_ref159, _excluded159); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#272727", d: "M0 0h512v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e40112", d: "M0 114h512v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#07893f", d: "M0 228h512v114H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#e40112", cx: 256, cy: 125, r: 95 })); }; var MX = function MX2(_ref160) { var title = _ref160.title, rest = _objectWithoutProperties(_ref160, _excluded160); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#dc2339", d: "M342 0H0v341.3h513V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#11865d", d: "M0 0h171v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M171 0h171v342H171z" }), /* @__PURE__ */ React.createElement("path", { fill: "#8C9157", d: "M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z" }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#C59262", cx: 256.5, cy: 159.1, rx: 24.3, ry: 36.4 })); }; var MY = function MY2(_ref161) { var title = _ref161.title, rest = _objectWithoutProperties(_ref161, _excluded161); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z", fill: "#c00" }), /* @__PURE__ */ React.createElement("path", { fill: "#006", d: "M0 0h256.5v195.4H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z", fill: "#fc0" })); }; var MZ = function MZ2(_ref162) { var title = _ref162.title, rest = _objectWithoutProperties(_ref162, _excluded162); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.333h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f4d900", d: "M0 323.333h513v104H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#006d66", d: "M0 85.333h513v104H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 204.333h513v104H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#cb0f31", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f4d900", d: "m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z" })); }; var NA = function NA2(_ref163) { var title = _ref163.title, rest = _objectWithoutProperties(_ref163, _excluded163); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 426.663V85.337h512" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 152.222V85.337H411.67L0 359.778v66.885h100.33z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m187.737 189.212-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 18.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z" })); }; var NC = function NC2(_ref164) { var title = _ref164.title, rest = _objectWithoutProperties(_ref164, _excluded164); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 426.7" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#009543", d: "M0 293h640v133.7H0V293z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ED4135", d: "M0 132h640v161.3H0V132z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0035AD", d: "M0 0h640v133.3H0V0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FAE600", stroke: "#000", strokeWidth: 5.3, cx: 240, cy: 213.3, r: 157.3 }), /* @__PURE__ */ React.createElement("path", { d: "m307.9 354.5-31.8 12-36.1 4.2-37.8-2.4-35.9-15.5s28.6-29.3 40.7-33.5c8.6-3 22.4-3.7 22.4-3.7V122l-.3-66H246l-.5 67.5v191.7s15.3 1.2 22.1 4.1c11.3 4.9 40.3 35.2 40.3 35.2z" }), /* @__PURE__ */ React.createElement("path", { d: "m212.727 102.375 42.955-21.418 5.577 11.187-42.955 21.417z" }), /* @__PURE__ */ React.createElement("ellipse", { cx: 237.8, cy: 280.5, rx: 16.8, ry: 26.5 }), /* @__PURE__ */ React.createElement("circle", { cx: 237.4, cy: 143.4, r: 20.9 }), /* @__PURE__ */ React.createElement("ellipse", { cx: 238.4, cy: 211.1, rx: 19.9, ry: 12.1 }), /* @__PURE__ */ React.createElement("path", { d: "M213.8 177h47v10h-47zm0 57h47v10h-47z" })); }; var NE = function NE2(_ref165) { var title = _ref165.title, rest = _objectWithoutProperties(_ref165, _excluded165); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e05206", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0db02b", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#e05206", cx: 256, cy: 256, r: 32 })); }; var NF = function NF2(_ref166) { var title = _ref166.title, rest = _objectWithoutProperties(_ref166, _excluded166); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.5 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.5h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.5h171v342H0zm342 0h171v342H342zm-38 226.495-48-152.001-48 152.001h36v39.999h24v-39.999z", fill: "#007b23" })); }; var NG = function NG2(_ref167) { var title = _ref167.title, rest = _objectWithoutProperties(_ref167, _excluded167); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.5 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.5h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.5h171v342H0zm342 0h171v342H342z", fill: "#007b23" })); }; var NI = function NI2(_ref168) { var title = _ref168.title, rest = _objectWithoutProperties(_ref168, _excluded168); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#338AF3" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M256 214.447c-22.949 0-41.553 18.603-41.553 41.553S233.05 297.553 256 297.553c22.949 0 41.553-18.603 41.553-41.553S278.949 214.447 256 214.447zm0 65.298c-13.114 0-23.745-10.631-23.745-23.745s10.631-23.745 23.745-23.745 23.745 10.631 23.745 23.745-10.631 23.745-23.745 23.745z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M276.563 261.936 256 256l-20.563 5.936-6.855 11.873h54.836z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "m256 226.32-13.709 23.744L256 256l13.709-5.936z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M235.437 261.936h41.126l-6.854-11.872h-27.418z" })); }; var NL = function NL2(_ref169) { var title = _ref169.title, rest = _objectWithoutProperties(_ref169, _excluded169); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.5 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.5h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#cd1f2a", d: "M0 85.5h513v114H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1d4185", d: "M0 312h513v114H0z" })); }; var NO = function NO2(_ref170) { var title = _ref170.title, rest = _objectWithoutProperties(_ref170, _excluded170); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z" })); }; var NP = function NP2(_ref171) { var title = _ref171.title, rest = _objectWithoutProperties(_ref171, _excluded171); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 426.663V85.337l280.419 174.75H87.61l183.576 166.576z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M244.769 249.888 10.199 103.71v312.754h234.57L61.193 249.888z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "m98.003 324.433-14.589-6.863 7.77-14.13-15.844 3.03-2.008-16.005-11.035 11.772-11.036-11.772-2.008 16.005-15.843-3.031 7.77 14.131-14.591 6.863 14.591 6.862-7.77 14.13 15.844-3.029 2.007 16.004 11.036-11.772L73.332 358.4l2.008-16.004 15.843 3.03-7.769-14.13zm-9.735-132.771-10.612-4.991 5.651-10.278-11.523 2.205-1.461-11.641-8.026 8.561-8.026-8.561-1.46 11.641-11.525-2.205 5.652 10.278-10.613 4.991 25.972 5.194z" }), /* @__PURE__ */ React.createElement("path", { d: "M93.462 191.662c0 17.212-13.953 31.165-31.165 31.165s-31.165-13.953-31.165-31.165" }))); }; var NR = function NR2(_ref172) { var title = _ref172.title, rest = _objectWithoutProperties(_ref172, _excluded172); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 239.994h512v32H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m174.802 341.329-19.124 8.996 10.184 18.521-20.767-3.973-2.631 20.978L128 370.422l-14.465 15.429-2.63-20.978-20.767 3.973 10.183-18.521-19.123-8.996 19.124-8.995-10.184-18.52 20.766 3.971 2.632-20.978L128 312.236l14.465-15.429 2.63 20.978 20.767-3.971-10.183 18.521z" })); }; var NU = function NU2(_ref173) { var title = _ref173.title, rest = _objectWithoutProperties(_ref173, _excluded173); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.334h256v170.663H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.329v15.083l57.377 38.251H80z" })), /* @__PURE__ */ React.createElement("path", { d: "M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z", fill: "#2E52B2" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 85.329v15.083l-57.377 38.251H176z" }), /* @__PURE__ */ React.createElement("path", { d: "M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z", fill: "#2E52B2" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.329v15.083l57.377 38.251H80z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z", fill: "#2E52B2" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 85.329v15.083l-57.377 38.251H176z" }), /* @__PURE__ */ React.createElement("path", { d: "M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z", fill: "#2E52B2" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 255.997v-15.082l57.377-38.252H80z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 233.376v-30.713h46.069zm96 22.618v-48.912l-73.372 48.912z", fill: "#2E52B2" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 255.997v-15.082l-57.377-38.252H176z" }), /* @__PURE__ */ React.createElement("g", { fill: "#2E52B2" }, /* @__PURE__ */ React.createElement("path", { d: "M256 233.376v-30.713h-46.069zm-96 22.618v-48.912l73.372 48.912z" }), /* @__PURE__ */ React.createElement("circle", { cx: 128, cy: 170.66, r: 22.627 })), /* @__PURE__ */ React.createElement("path", { d: "m128 154.663 3.97 12.222h12.854l-10.398 7.556 3.971 12.222L128 179.109l-10.398 7.554 3.972-12.222-10.398-7.556h12.853zm0 65.14 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm0-117.334 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm69.931 58.667 2.365 7.277h7.653l-6.192 4.499 2.365 7.279-6.191-4.498-6.191 4.498 2.365-7.279-6.191-4.499h7.652zm-139.862 0 2.364 7.277h7.653l-6.191 4.499 2.364 7.279-6.19-4.498-6.191 4.498 2.365-7.279-6.192-4.499h7.653z", fill: "#FFDA44" })); }; var NZ = function NZ2(_ref174) { var title = _ref174.title, rest = _objectWithoutProperties(_ref174, _excluded174); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m425.301 233.745 3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072 5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846 4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32 5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.826 200.344 256 255.998v-15.739l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.826 200.344 256 255.998v-15.739l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.826 200.344 256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.174 140.983 0 85.33v15.738l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.174 140.983 0 85.33v15.738l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M100.174 140.983 0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z", fill: "#D80027" })); }; var OM = function OM2(_ref175) { var title = _ref175.title, rest = _objectWithoutProperties(_ref175, _excluded175); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M138 0h377v114H138z" }), /* @__PURE__ */ React.createElement("path", { fill: "#4A7C3A", d: "M138 230h377v114H138z" }), /* @__PURE__ */ React.createElement("g", { fill: "none", stroke: "#FFF", strokeWidth: 10, strokeMiterlimit: 2 }, /* @__PURE__ */ React.createElement("path", { d: "M40.3 35.2s37.1 48 50.8 54.5c13.7 6.5 17.1 5.7 17.1 5.7" }), /* @__PURE__ */ React.createElement("path", { d: "M100 35.2S62.9 80.6 53.3 87.6c-9.6 7-18.7 7.8-18.7 7.8m17.1-30.1h37.9M70.7 35.2v30.1" }))); }; var PA = function PA2(_ref176) { var title = _ref176.title, rest = _objectWithoutProperties(_ref176, _excluded176); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M256 256v170.663H0V256h256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 85.337V256H256V85.337h256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "m128 123.034 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "m384 293.697 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z" })); }; var PE = function PE2(_ref177) { var title = _ref177.title, rest = _objectWithoutProperties(_ref177, _excluded177); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z", fill: "#D80027" })); }; var PF = function PF2(_ref178) { var title = _ref178.title, rest = _objectWithoutProperties(_ref178, _excluded178); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M293.991 256c0 20.982-17.01 33.243-37.992 33.243S218.008 276.982 218.008 256s17.01-37.992 37.992-37.992 37.991 17.01 37.991 37.992z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M293.991 256c0 20.982-17.01 37.992-37.992 37.992s-37.992-17.01-37.992-37.992" }), /* @__PURE__ */ React.createElement("path", { d: "M232.259 246.506h9.498v19h-9.498zm37.988 0h9.498v19h-9.498zm-19-14.247h9.498v33.243h-9.498z", fill: "#D80027" })); }; var PG = function PG2(_ref179) { var title = _ref179.title, rest = _objectWithoutProperties(_ref179, _excluded179); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M0 85.33h512v341.332" }), /* @__PURE__ */ React.createElement("path", { d: "m204.631 326.488 2.762 8.504h8.941l-7.233 5.255 2.763 8.502-7.233-5.254-7.233 5.254 2.762-8.502-7.233-5.255h8.94zm-22.834-81.622 4.605 14.172h14.901l-12.056 8.757 4.605 14.172-12.055-8.759-12.055 8.759 4.606-14.172-12.056-8.757h14.901zm0 103.883 4.604 14.173h14.902l-12.057 8.757 4.606 14.173-12.055-8.759-12.055 8.759 4.604-14.173-12.054-8.757h14.899zm43.566-66.782 4.606 14.172h14.901l-12.056 8.758 4.605 14.172-12.056-8.759-12.054 8.759 4.606-14.172-12.056-8.758h14.901zm-87.133 0 4.606 14.172h14.899l-12.054 8.758 4.603 14.172-12.054-8.759-12.055 8.759 4.605-14.172-12.055-8.758h14.9z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M376.526 204.163c-7.628-7.628-17.538-12.133-28.189-12.908l31.88-24.795c-12.698-12.698-29.714-18.431-46.319-17.218a44.31 44.31 0 0 0-11.396-19.511l-12.593 25.186a18.47 18.47 0 0 0-3.148-4.197c-7.245-7.245-18.991-7.244-26.234 0s-7.245 18.99 0 26.234a18.536 18.536 0 0 0 4.197 3.148l-25.186 12.593a44.303 44.303 0 0 0 19.519 11.399c-1.217 16.606 4.511 33.619 17.209 46.317L324.12 214.6a11.053 11.053 0 0 1 7.807-3.202c2.973 0 5.768 1.158 7.87 3.26a11.055 11.055 0 0 1 3.26 7.87c0 2.974-1.158 5.768-3.26 7.87l10.494 10.494c4.905-4.905 7.607-11.428 7.607-18.364 0-5.675-1.81-11.071-5.153-15.534a29.492 29.492 0 0 1 13.288 7.662c11.573 11.572 11.573 30.403 0 41.975l10.494 10.494c8.409-8.409 13.039-19.59 13.039-31.481-.001-11.892-4.632-23.072-13.04-31.481z" })); }; var PH = function PH2(_ref180) { var title = _ref180.title, rest = _objectWithoutProperties(_ref180, _excluded180); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M512 85.337V256H256L0 85.337z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 256v170.663H0L256 256z" }), /* @__PURE__ */ React.createElement("path", { d: "m161.908 256-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923 9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z", fill: "#FFDA44" })); }; var PK = function PK2(_ref181) { var title = _ref181.title, rest = _objectWithoutProperties(_ref181, _excluded181); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "m393.508 170.516 17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.343h512v341.326H0z" })), /* @__PURE__ */ React.createElement("path", { fill: "#01411c", d: "M128 85.331h384v341.337H128z" }), /* @__PURE__ */ React.createElement("path", { d: "M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904 17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z", fill: "#FFF" })); }; var PL = function PL2(_ref182) { var title = _ref182.title, rest = _objectWithoutProperties(_ref182, _excluded182); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512V256H0z" })), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 256h512v170.663H0z" })); }; var PM = function PM2(_ref183) { var title = _ref183.title, rest = _objectWithoutProperties(_ref183, _excluded183); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 26.666 640 426.666" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fillRule: "evenodd", strokeWidth: "1pt" }, /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M0 0h640v480H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00267f", d: "M0 0h213.3v480H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f31830", d: "M426.7 0H640v480H426.7z" }))); }; var PN = function PN2(_ref184) { var title = _ref184.title, rest = _objectWithoutProperties(_ref184, _excluded184); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ACABB1", d: "M400.696 219.822 384 225.387l-16.696-5.565-5.565-13.913 5.565-13.913h33.392l-5.566 13.913z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M345.043 219.822v61.217c0 29.821 38.957 38.957 38.957 38.957s38.957-9.137 38.957-38.957v-61.217h-77.914z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M348.555 295.541C358.131 313.927 384 319.996 384 319.996s25.869-6.069 35.445-24.455L384 236.518l-35.445 59.023z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M422.957 280.421 384 219.822l-38.957 60.599v.618c0 5.518 1.337 10.328 3.512 14.503L384 240.405l35.445 55.137c2.175-4.175 3.512-8.983 3.512-14.503v-.618z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z", fill: "#D80027" })); }; var PR = function PR2(_ref185) { var title = _ref185.title, rest = _objectWithoutProperties(_ref185, _excluded185); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512V153.6H0zm0 136.526h512v68.263H0zM0 358.4h512v68.263H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z" })); }; var PS = function PS2(_ref186) { var title = _ref186.title, rest = _objectWithoutProperties(_ref186, _excluded186); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#268024", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e4312b", d: "M256 256.006 0 426.668V85.331z" })); }; var PT = function PT2(_ref187) { var title = _ref187.title, rest = _objectWithoutProperties(_ref187, _excluded187); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M196.641 85.337v341.326H0V85.337z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFDA44", cx: 196.641, cy: 256, r: 64 }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z" })); }; var PW = function PW2(_ref188) { var title = _ref188.title, rest = _objectWithoutProperties(_ref188, _excluded188); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFDA44", cx: 218.902, cy: 255.994, r: 74.207 })); }; var PY = function PY2(_ref189) { var title = _ref189.title, rest = _objectWithoutProperties(_ref189, _excluded189); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "m289.579 216.738-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m256 232.51 4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z" })); }; var QA = function QA2(_ref190) { var title = _ref190.title, rest = _objectWithoutProperties(_ref190, _excluded190); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#751A46", d: "M0 0h512v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z" })); }; var RE = function RE2(_ref191) { var title = _ref191.title, rest = _objectWithoutProperties(_ref191, _excluded191); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 26.666 640 426.666" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("g", { fillRule: "evenodd", strokeWidth: "1pt" }, /* @__PURE__ */ React.createElement("path", { fill: "#fff", d: "M0 0h640v480H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00267f", d: "M0 0h213.3v480H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#f31830", d: "M426.7 0H640v480H426.7z" }))); }; var RO = function RO2(_ref192) { var title = _ref192.title, rest = _objectWithoutProperties(_ref192, _excluded192); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.331H512v341.337H341.337z" })); }; var RS = function RS2(_ref193) { var title = _ref193.title, rest = _objectWithoutProperties(_ref193, _excluded193); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 312.882h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M129.468 181.793v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.356 256 266.929v-85.136H129.468z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.634 196.634h74.201v-29.681l-14.841 7.42-22.261-22.26-22.259 22.26-14.84-7.42zm85.526 82.148-48.231-48.231-48.231 48.231 15.741 15.74 32.49-32.49 32.49 32.49z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M241.16 233.734h-22.504a14.74 14.74 0 0 0 2.001-7.418c0-8.196-6.645-14.84-14.84-14.84-5.663 0-10.581 3.172-13.083 7.836-2.502-4.663-7.421-7.836-13.083-7.836-8.195 0-14.84 6.644-14.84 14.84 0 2.706.736 5.235 2.001 7.418h-22.114c0 8.196 7.139 14.84 15.334 14.84h-.494c0 8.196 6.644 14.84 14.84 14.84 0 7.257 5.211 13.286 12.094 14.576l-11.694 26.401a48.075 48.075 0 0 0 18.149 3.544 48.079 48.079 0 0 0 18.149-3.544l-11.694-26.401c6.883-1.29 12.094-7.319 12.094-14.576 8.196 0 14.84-6.644 14.84-14.84h-.494c8.199 0 15.338-6.644 15.338-14.84z" })); }; var RU = function RU2(_ref194) { var title = _ref194.title, rest = _objectWithoutProperties(_ref194, _excluded194); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.33v341.332h512V85.33z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.333h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 312.884h512v113.775H0z" })); }; var RW = function RW2(_ref195) { var title = _ref195.title, rest = _objectWithoutProperties(_ref195, _excluded195); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 255.994h512v81.619H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 337.614h512v89.043H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m278.261 185.209 20.844 9.804-11.099 20.186 22.632-4.33 2.868 22.865 15.765-16.816 15.766 16.816 2.867-22.865 22.633 4.33-11.099-20.186 20.843-9.804-20.844-9.805 11.1-20.185-22.633 4.329-2.868-22.864-15.765 16.816-15.766-16.816-2.867 22.864-22.634-4.329 11.1 20.187z" })); }; var SA = function SA2(_ref196) { var title = _ref196.title, rest = _objectWithoutProperties(_ref196, _excluded196); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#055e1c", d: "M0 85.333h512v341.333H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z" }), /* @__PURE__ */ React.createElement("path", { d: "M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z" }), /* @__PURE__ */ React.createElement("path", { d: "M207.093 248.57h32.601v22.261h-32.601z" }))); }; var SB = function SB2(_ref197) { var title = _ref197.title, rest = _objectWithoutProperties(_ref197, _excluded197); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 426.663V85.329h512" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 396.494v30.169h45.255L512 115.499v-30.17h-45.255z" }), /* @__PURE__ */ React.createElement("path", { d: "m85.688 108.787 5.12 15.756h16.566l-13.403 9.737 5.12 15.757-13.403-9.738-13.405 9.738 5.12-15.757L64 124.543h16.567zm84.624 0 5.121 15.756H192l-13.403 9.737 5.12 15.757-13.405-9.738-13.403 9.738 5.12-15.757-13.403-9.737h16.566zm-84.624 82.502 5.12 15.756h16.566l-13.403 9.738 5.12 15.757-13.403-9.739-13.405 9.739 5.12-15.757L64 207.045h16.567zm84.624 0 5.121 15.756H192l-13.403 9.738 5.12 15.757-13.405-9.739-13.403 9.739 5.12-15.757-13.403-9.738h16.566zM128 150.037l5.12 15.756h16.568l-13.405 9.738 5.12 15.758L128 181.55l-13.403 9.739 5.12-15.758-13.405-9.738h16.568z", fill: "#FFF" })); }; var SC = function SC2(_ref198) { var title = _ref198.title, rest = _objectWithoutProperties(_ref198, _excluded198); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M235.454 85.337 0 426.663 427.345 85.337z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M512 329.393 0 426.663h512z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 85.337h-84.655L0 426.663l512-204.512z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337v341.326L235.454 85.337z" })); }; var SD = function SD2(_ref199) { var title = _ref199.title, rest = _objectWithoutProperties(_ref199, _excluded199); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 426.668V85.331l256 170.675z" })); }; var SE = function SE2(_ref200) { var title = _ref200.title, rest = _objectWithoutProperties(_ref200, _excluded200); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z" })); }; var SG = function SG2(_ref201) { var title = _ref201.title, rest = _objectWithoutProperties(_ref201, _excluded201); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512V256H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 0 0-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z" }), /* @__PURE__ */ React.createElement("path", { d: "m121.344 144.696 3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391 3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684-11.337-9.644-7.007h11.92zm-35.573 0 3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z" }))); }; var SH = function SH2(_ref202) { var title = _ref202.title, rest = _objectWithoutProperties(_ref202, _excluded202); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z" })), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ffda44", d: "M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z" }), /* @__PURE__ */ React.createElement("path", { fill: "#BF521B", d: "m369.5 204.5.3 10.3-12.8.2 4.9 13.2h-17.3c-18-20.2-23.4-42.4-24.9-68.1l9.1-9.7 8.3 14.3 10.8-12.8 7 7.8.8 15.7 13.8 29.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#474747", d: "m436.6 192.5-8.6 18.3h-47l-29.2-19.5 25.7 10.5h25.1l3.7-6.5 7.2.2 2-3z" })); }; var SI = function SI2(_ref203) { var title = _ref203.title, rest = _objectWithoutProperties(_ref203, _excluded203); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 199.112h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l14.848 14.837 29.674-22.261 29.685 22.261 14.837-14.837z" })); }; var SJ = function SJ2(_ref204) { var title = _ref204.title, rest = _objectWithoutProperties(_ref204, _excluded204); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z" })); }; var SK = function SK2(_ref205) { var title = _ref205.title, rest = _objectWithoutProperties(_ref205, _excluded205); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 196.641h512v118.717H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 315.359h512v111.304H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M129.468 181.799v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.362 256 266.935v-85.136H129.468z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M146.126 184.294v81.941c0 5.472 1.215 10.64 3.623 15.485h85.97c2.408-4.844 3.623-10.012 3.623-15.485v-81.941h-93.216z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M221.301 241.427h-21.425v-14.283h14.284v-14.283h-14.284v-14.284h-14.283v14.284h-14.282v14.283h14.282v14.283h-21.426v14.284h21.426v14.283h14.283v-14.283h21.425z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M169.232 301.658c9.204 5.783 18.66 9.143 23.502 10.636 4.842-1.494 14.298-4.852 23.502-10.636 9.282-5.833 15.79-12.506 19.484-19.939a24.878 24.878 0 0 0-14.418-4.583c-1.956 0-3.856.232-5.682.657-3.871-8.796-12.658-14.94-22.884-14.94-10.227 0-19.013 6.144-22.884 14.94a25.048 25.048 0 0 0-5.682-.657 24.88 24.88 0 0 0-14.418 4.583c3.691 7.433 10.198 14.106 19.48 19.939z" })); }; var SL = function SL2(_ref206) { var title = _ref206.title, rest = _objectWithoutProperties(_ref206, _excluded206); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 312.888h512v113.775H0z" })); }; var SM = function SM2(_ref207) { var title = _ref207.title, rest = _objectWithoutProperties(_ref207, _excluded207); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.34h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M512 85.334v166.69L0 256.175V85.334z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M323.744 203.099 256 270.843l-67.744-67.744a81.156 81.156 0 0 0-13.879 45.483v22.261c0 35.744 23.097 66.193 55.148 77.213-4.277 8.385-3.556 18.848 2.712 26.671l24.258-19.439 24.258 19.439c6.342-7.915 7.011-18.534 2.564-26.968 31.614-11.261 54.308-41.485 54.308-76.916v-22.261a81.174 81.174 0 0 0-13.881-45.483z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M256 330.206c-32.732 0-59.362-26.63-59.362-59.362v-22.261c0-32.733 26.63-59.363 59.362-59.363s59.362 26.63 59.362 59.362v22.261c0 32.733-26.63 59.363-59.362 59.363z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M293.101 270.843v-22.261c0-20.458-16.643-37.101-37.101-37.101s-37.101 16.643-37.101 37.101v22.261L256 278.264l37.101-7.421z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M218.899 270.843c0 20.458 16.643 37.101 37.101 37.101s37.101-16.643 37.101-37.101h-74.202z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M300.522 189.22c0-12.295-9.966-22.261-22.261-22.261a22.173 22.173 0 0 0-14.84 5.672v-13.093h7.421v-14.84h-7.421v-7.421h-14.84v7.421h-7.421v14.84h7.421v13.093a22.177 22.177 0 0 0-14.841-5.672c-12.295 0-22.261 9.966-22.261 22.261 0 6.591 2.867 12.512 7.421 16.589v13.093h74.203v-13.093c4.552-4.077 7.419-9.997 7.419-16.589z" })); }; var SN = function SN2(_ref208) { var title = _ref208.title, rest = _objectWithoutProperties(_ref208, _excluded208); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M330.207 85.331H512v341.337H330.207z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.331h181.793v341.337H0zm255.999 111.301 14.733 45.347h47.685l-38.576 28.029 14.734 45.348-38.576-28.026-38.577 28.026 14.737-45.348-38.576-28.029h47.681z", fill: "#496E2D" })); }; var SO = function SO2(_ref209) { var title = _ref209.title, rest = _objectWithoutProperties(_ref209, _excluded209); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m256 157.273 22.663 69.748H352l-59.332 43.106 22.664 69.749L256 296.769l-59.332 43.107 22.664-69.749L160 227.021h73.337z" })); }; var SR = function SR2(_ref210) { var title = _ref210.title, rest = _objectWithoutProperties(_ref210, _excluded210); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M0 196.636h512v118.728H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z", fill: "#6DA544" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m256.742 218.003 9.43 29.021h30.518L272 264.963l9.431 29.023-24.689-17.937-24.689 17.937 9.431-29.023-24.69-17.939h30.518z" })); }; var SS = function SS2(_ref211) { var title = _ref211.title, rest = _objectWithoutProperties(_ref211, _excluded211); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 322.783h512v103.88H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v104.515H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M0 210.877h512v89.656H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m73.178 209.188 20.831 29.067 34.084-10.83-21.207 28.795 20.83 29.069-33.939-11.271-21.208 28.794.234-35.762-33.94-11.273 34.083-10.83z" })); }; var ST = function ST2(_ref212) { var title = _ref212.title, rest = _objectWithoutProperties(_ref212, _excluded212); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#6DA544" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("path", { d: "m302.049 226.318 7.368 22.674h23.842l-19.288 14.016 7.366 22.674-19.288-14.015-19.287 14.015 7.366-22.674-19.288-14.016h23.842zm74.203 0 7.367 22.674h23.842l-19.288 14.016 7.367 22.674-19.288-14.015-19.288 14.015 7.367-22.674-19.288-14.016h23.842z" })); }; var SV = function SV2(_ref213) { var title = _ref213.title, rest = _objectWithoutProperties(_ref213, _excluded213); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z", fill: "#0052B4" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M228.582 261.936 256 214.447l27.418 47.489z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M291.616 277.616 256 295.425l-35.616-17.809v-23.744h71.232z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m289.579 216.485-12.592 12.592c5.37 5.372 8.693 12.791 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.114-5.316-24.987-13.91-33.579z" })); }; var SX = function SX2(_ref214) { var title = _ref214.title, rest = _objectWithoutProperties(_ref214, _excluded214); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 85.331v166.69L0 256.173V85.331z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 256.006 0 426.668V85.331z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFDA44" }, /* @__PURE__ */ React.createElement("path", { d: "M59.621 256a59.546 59.546 0 0 0-.193 4.57c0 32.821 26.607 59.429 59.429 59.429s59.429-26.607 59.429-59.429c0-1.539-.078-3.061-.193-4.57H59.621z" }), /* @__PURE__ */ React.createElement("circle", { cx: 118.862, cy: 210.287, r: 18.286 })), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M77.715 205.714v59.429c0 31.494 41.144 41.143 41.144 41.143s41.144-9.649 41.144-41.143v-59.429H77.715z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M118.877 287.148c-7.632-2.746-22.876-9.767-22.876-22.006v-41.144h45.715v41.144c-.001 12.28-15.244 19.283-22.839 22.006z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F3F3F3", d: "M128.001 246.856v-9.142l-9.144-4.571-9.142 4.571v9.142l-4.571 4.573v18.285h27.428v-18.285z" })); }; var SY = function SY2(_ref215) { var title = _ref215.title, rest = _objectWithoutProperties(_ref215, _excluded215); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 312.882h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m187.31 215.184 9.208 28.341h29.802l-24.11 17.518 9.209 28.342-24.109-17.516-24.11 17.516 9.209-28.342-24.109-17.518h29.801zm137.38 0 9.209 28.341H363.7l-24.109 17.518 9.209 28.342-24.11-17.516-24.109 17.516 9.209-28.342-24.11-17.518h29.802z", fill: "#6DA544" })); }; var SZ = function SZ2(_ref216) { var title = _ref216.title, rest = _objectWithoutProperties(_ref216, _excluded216); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 900 600" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#2B5DEA", d: "M0 0h900v600H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDF29", d: "M0 100h900v400H0V100z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D70000", d: "M0 150h900v300H0V150z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M450 171.4v257.2c114.3 0 171.4-85.7 214.3-128.6-42.9-42.9-100-128.6-214.3-128.6z" }), /* @__PURE__ */ React.createElement("path", { d: "M450 171.4c-100 0-171.4 85.7-214.3 128.6C278.6 342.9 350 428.6 450 428.6V171.4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M346.3 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z" }), /* @__PURE__ */ React.createElement("path", { d: "M477.8 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z" })); }; var TA = function TA2(_ref217) { var title = _ref217.title, rest = _objectWithoutProperties(_ref217, _excluded217); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z" })), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 22.7v30.7h-46.1z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9" }), /* @__PURE__ */ React.createElement("path", { fill: "#29DBFF", d: "m385.4 251.7-22.9-43h45.8z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m385.4 165.8-22.9 42.9h45.8z" }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#FFBE57", cx: 474.8, cy: 236.8, rx: 16.8, ry: 43.3 }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#FFBE57", cx: 295.3, cy: 236.8, rx: 16.8, ry: 43.3 }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m385.4 31.5-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z" }), /* @__PURE__ */ React.createElement("ellipse", { fill: "#A5A5A5", cx: 386.3, cy: 104.3, rx: 34.3, ry: 23.3 })); }; var TC = function TC2(_ref218) { var title = _ref218.title, rest = _objectWithoutProperties(_ref218, _excluded218); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M332.058 191.996v78.221c0 38.103 51.942 49.779 51.942 49.779s51.942-11.675 51.942-49.779v-78.221H332.058z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M376.579 220.44c0 7.855-6.644 28.445-14.84 28.445s-14.84-20.589-14.84-28.445c0-7.856 14.84-14.222 14.84-14.222s14.84 6.367 14.84 14.222z" }), /* @__PURE__ */ React.createElement("path", { fill: "#A2001D", d: "M415.961 235.93c2.394-5.6 4.257-13.785 4.257-17.86 0-6.546-8.904-11.852-8.904-11.852s-8.904 5.306-8.904 11.852c0 4.075 1.862 12.26 4.257 17.86l-5.141 11.123a26.898 26.898 0 0 0 9.788 1.831c3.463 0 6.766-.654 9.788-1.831l-5.141-11.123z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M372.87 270.217s-7.421 14.222-7.421 28.445h37.101c0-14.222-7.421-28.445-7.421-28.445l-11.13-7.111-11.129 7.111z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M395.13 270.217v-3.555c0-5.891-4.983-10.666-11.13-10.666-6.147 0-11.13 4.776-11.13 10.666v3.555h22.26z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M100.174 140.982 0 85.33v15.737l71.847 39.915z" }), /* @__PURE__ */ React.createElement("path", { d: "M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z", fill: "#D80027" })); }; var TD = function TD2(_ref219) { var title = _ref219.title, rest = _objectWithoutProperties(_ref219, _excluded219); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 85.331H512v341.337H341.337z" })); }; var TF = function TF2(_ref220) { var title = _ref220.title, rest = _objectWithoutProperties(_ref220, _excluded220); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22.5 15" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h21v15H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#073AB6", d: "M0 0h22.5v15H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h11.3v7.5H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#F44653", d: "M7.1 0h3.6v7H7.1V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1035BB", d: "M0 0h3.6v7H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M3.6 0h3.6v7H3.6V0zm10.9 6h5L19 7h-1.5v.5h1l-.5 1h-.5V10h-1V7H15l-.5-1zm4 2.5 1 1.5h-2l1-1.5zm-3 0 1 1.5h-2l1-1.5zm1.5 3L16 10h2l-1 1.5zM20 8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-6 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm1 4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm4 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-2 1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z" })); }; var TG = function TG2(_ref221) { var title = _ref221.title, rest = _objectWithoutProperties(_ref221, _excluded221); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512V153.6H0zM0 358.4h512v68.263H0zm0-136.537h512v68.263H0z", fill: "#496E2D" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h204.054v204.054H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m102.026 133.938 13.26 40.812h42.916l-34.718 25.226 13.26 40.814-34.718-25.224-34.719 25.224 13.263-40.814-34.718-25.226h42.913z" })); }; var TH = function TH2(_ref222) { var title = _ref222.title, rest = _objectWithoutProperties(_ref222, _excluded222); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.334h512V426.66H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 194.056h512v123.882H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z", fill: "#D80027" })); }; var TJ = function TJ2(_ref223) { var title = _ref223.title, rest = _objectWithoutProperties(_ref223, _excluded223); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 312.888h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M226.318 300.522h59.364v-25.23l-11.873 5.937L256 263.421l-17.809 17.808-11.873-5.937zm-33.963-29.682 2.763 8.504h8.94l-7.233 5.255 2.763 8.502-7.233-5.255-7.234 5.255 2.763-8.502-7.233-5.255h8.94zm8.566-29.68 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm24.488-22.261 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm94.236 51.941-2.763 8.504h-8.94l7.233 5.255-2.763 8.502 7.233-5.255 7.234 5.255-2.763-8.502 7.233-5.255h-8.94zm-8.566-29.68-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zm-24.488-22.261-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zM256 207.767l2.763 8.503h8.941l-7.234 5.256 2.763 8.502-7.233-5.254-7.233 5.254 2.763-8.502-7.234-5.256h8.941z", fill: "#FFDA44" })); }; var TK = function TK2(_ref224) { var title = _ref224.title, rest = _objectWithoutProperties(_ref224, _excluded224); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m210.715 174.377 3.684 11.338h11.919l-9.643 7.006 3.684 11.337-9.644-7.007-9.644 7.007 3.684-11.337-9.645-7.006h11.921zm-93.899 107.594 4.605 14.172h14.9l-12.055 8.757 4.606 14.173-12.056-8.76-12.055 8.76 4.604-14.173-12.054-8.757h14.899zm27.88-162.292 4.604 14.172h14.901l-12.056 8.758 4.606 14.171-12.055-8.759-12.056 8.759 4.606-14.171-12.055-8.758h14.9zm-75.157 55.652 4.604 14.172h14.9l-12.055 8.758 4.606 14.171-12.055-8.758-12.056 8.758 4.606-14.171-12.055-8.758h14.9z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("path", { d: "M483.386 354.503H117.801s109.234-88.562 310.593-220.938c.001 0-88.443 128.935 54.992 220.938zm-365.585 11.586c-11.177 0-11.195 17.37 0 17.37h365.585c11.177 0 11.195-17.37 0-17.37H117.801z", fill: "#FFDA44" })); }; var TL = function TL2(_ref225) { var title = _ref225.title, rest = _objectWithoutProperties(_ref225, _excluded225); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M256 256 0 90.691v44.242L155.826 256 0 377.067v44.242z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 90.691v330.618L189.217 256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m44.184 213.36 24.912 23.577 30.121-16.41-14.723 30.98 24.911 23.575-34.012-4.43L60.67 301.63l-6.296-33.716-34.012-4.43 30.119-16.408z" })); }; var TM = function TM2(_ref226) { var title = _ref226.title, rest = _objectWithoutProperties(_ref226, _excluded226); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ React.createElement("path", { d: "M357.208 183.679c8.397-23.404-1.036-48.858-21.281-61.536a52.131 52.131 0 0 1 10.884 2.621c27.002 9.688 41.038 39.428 31.35 66.431s-39.428 41.038-66.431 31.35a52.182 52.182 0 0 1-10.069-4.895c23.686 3.084 47.15-10.566 55.547-33.971zm-46.571-67.95-7.297 9.427-11.22-4.026 6.712 9.852-7.296 9.427 11.443-3.338 6.712 9.852.361-11.914 11.444-3.339-11.221-4.025z" }), /* @__PURE__ */ React.createElement("path", { d: "m330.338 146.448-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.443-3.339 6.712 9.853.36-11.915 11.445-3.34-11.221-4.024zM275.9 126.916l-7.296 9.427-11.219-4.024 6.711 9.851-7.296 9.426 11.443-3.338 6.712 9.852.361-11.915 11.444-3.337-11.221-4.027zm-.799 35.189-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.444-3.338 6.711 9.852.362-11.915 11.443-3.338-11.22-4.026zm33.484 12.013-7.296 9.427-11.22-4.026 6.712 9.853-7.297 9.426 11.444-3.338 6.712 9.852.36-11.915 11.443-3.338-11.219-4.025z" })), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M83.478 85.337h89.043v341.326H83.478z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m117.458 175.191-14.908-11.105v-15.705l14.908-11.105h21.084l14.908 11.105v15.705l-14.908 11.105z" }), /* @__PURE__ */ React.createElement("path", { d: "M128 137.276h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.105v-8.012H128z", fill: "#FF9811" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m117.458 374.725-14.908-11.106v-15.704l14.908-11.105h21.084l14.908 11.105v15.704l-14.908 11.106z" }), /* @__PURE__ */ React.createElement("path", { d: "M128 336.81h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.106v-8.011H128z", fill: "#FF9811" }), /* @__PURE__ */ React.createElement("path", { d: "m117.458 274.957-14.908-11.105v-15.703l14.908-11.106h21.084l14.908 11.106v15.703l-14.908 11.105zm36.513 24.434h-6.493v-6.493h-11.411l-8.068-8.068-8.067 8.068h-11.41v6.493h-6.493v12.986h6.493v6.492h11.41l8.068 8.069 8.068-8.069h11.41v-6.492h6.493zm0-99.768h-6.493v-6.492h-11.411l-8.068-8.069-8.067 8.069h-11.41v6.492h-6.493v12.986h6.493v6.492h11.41l8.068 8.07 8.068-8.07h11.41v-6.492h6.493z", fill: "#496E2D" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M120.576 248.576h14.84v14.84h-14.84z" }), /* @__PURE__ */ React.createElement("circle", { cx: 128, cy: 206.113, r: 7.421 }), /* @__PURE__ */ React.createElement("circle", { cx: 128, cy: 305.887, r: 7.421 }))); }; var TN = function TN2(_ref227) { var title = _ref227.title, rest = _objectWithoutProperties(_ref227, _excluded227); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 256, cy: 255.994, r: 96 }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "m267.826 219.291 16.47 22.695 26.673-8.649-16.496 22.676 16.468 22.695-26.664-8.681-16.495 22.676.017-28.04-26.664-8.682 26.674-8.648z" }), /* @__PURE__ */ React.createElement("path", { d: "M277.818 312.724c-31.33 0-56.727-25.397-56.727-56.727s25.397-56.727 56.727-56.727c9.769 0 18.96 2.47 26.985 6.819-12.589-12.31-29.804-19.909-48.803-19.909-38.558 0-69.818 31.259-69.818 69.818s31.26 69.818 69.818 69.818c18.999 0 36.215-7.599 48.803-19.909-8.026 4.347-17.216 6.817-26.985 6.817z" }))); }; var TO = function TO2(_ref228) { var title = _ref228.title, rest = _objectWithoutProperties(_ref228, _excluded228); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.331h256v170.663H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M141.357 157.303V130.59h-26.714v26.713H87.93v26.713h26.713v26.713h26.714v-26.713h26.713v-26.713z" })); }; var TR = function TR2(_ref229) { var title = _ref229.title, rest = _objectWithoutProperties(_ref229, _excluded229); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#E30A17", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z" })); }; var TT = function TT2(_ref230) { var title = _ref230.title, rest = _objectWithoutProperties(_ref230, _excluded230); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m6.066 85.337 207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z" }), /* @__PURE__ */ React.createElement("path", { d: "M43.364 85.337 384.69 426.663h83.946L127.31 85.337z" })); }; var TV = function TV2(_ref231) { var title = _ref231.title, rest = _objectWithoutProperties(_ref231, _excluded231); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 900 600" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h900v600H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#00B2EE", d: "M0 300h450V0h450v600H0V300z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m345.3 480.9 29.4 90.6-77.1-56H393l-77.1 56 29.4-90.6zM706.4 340l29.4 90.6-77.1-56H754l-77.1 56 29.5-90.6zm106.4-78.5 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm0-224.1 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M449.9 0v206.3h-81l81 54V300h-39.7l-129-85.9V300H168.7v-85.9L39.7 300H0v-39.7l81-54H0V93.8h81L0 39.9V0h39.7l129 85.9V0h112.5v85.9L410.2 0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M253.1 0h-56.3v122H0v56.2h196.8V300h56.3V178.2h196.8V122H253.1z" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M449.9 39.9v53.9h-81z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 300v-19.3l109.9-74.4h39.7L12.8 300zM12.8.1l136.8 93.7h-39.7L0 19.4V.1zm437.1.1v19.3L340 93.8h-39.7L437.1.2zM437.1 300l-136.8-93.7H340l109.9 74.4V300z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m719.9 131.6 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM584 187.7l29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm30 242.9 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM488 332l29.4 90.6-77.1-56h95.3l-77.1 56L488 332zm0 132 29.4 90.6-77.1-56h95.3l-77.1 56L488 464z" })); }; var TW = function TW2(_ref232) { var title = _ref232.title, rest = _objectWithoutProperties(_ref232, _excluded232); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.337h256V256H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M186.435 170.669 162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#0052B4", cx: 128, cy: 170.674, r: 29.006 }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z" })); }; var TZ = function TZ2(_ref233) { var title = _ref233.title, rest = _objectWithoutProperties(_ref233, _excluded233); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 426.663V85.337h512" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M512 152.222V85.337H411.67L0 359.778v66.885h100.33z" }), /* @__PURE__ */ React.createElement("path", { d: "M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z" })); }; var UA = function UA2(_ref234) { var title = _ref234.title, rest = _objectWithoutProperties(_ref234, _excluded234); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.337h512V256H0z" })); }; var UG = function UG2(_ref235) { var title = _ref235.title, rest = _objectWithoutProperties(_ref235, _excluded235); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#232323", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 56.9h512v56.9H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D32300", d: "M0 113.8h512v56.9H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 227.6h512v56.9H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D32300", d: "M0 284.4h512v56.9H0z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FFF", cx: 256, cy: 170.7, r: 80.7 }), /* @__PURE__ */ React.createElement("path", { d: "M234.5 127.5c.9-1.4-19.6-2-19.6-2 1.7-2.5 18.4-10.5 18.4-10.5s-.9-6 2.7-9.8l-4.5-9.8s7-3.4 18.4-3.4 19.9 7 21 13.1l-6.4 3.4c-.1 4.7 1.7 11.6-4.3 17.3-5.9 5.7-8.3 6.9-8.5 18.8 0 3.9 2.3 8.2 8.8 11.7 17.4 9.3 38.6 28.2 44.6 33.9 6.1 5.7 5.1 19.2 2.6 25.2s-12.1 14.3-14.3 13.6c-2.2-.6 1.2-9.2-3.5-11.6 0 0-8.9-7.6-16.8.6s-.2 25.2 3.9 28c4.1 2.8 1.7 5-1.9 5H247c-3.8 0-5.4-2.3-1.9-5 7.6-3.8 12.4-15.3 7.4-20.3-4.9-4.9-18.3 1.5-21.5 6.3-2.8 2.8-8.8 3.6-12.9-1.4s-4.1-10.4-1.1-12.5c7-4.8 0 0 .1-.1 0 0 11.9-8.6 29.9-9 3.9 0 4.8-2.2 2.2-4.8 0 0-30.9-27.4-28.1-44.2 3-18.3 20-26.3 13.4-32.5-1.3-1.8 0 0 0 0z" })); }; var UM = function UM2(_ref236) { var title = _ref236.title, rest = _objectWithoutProperties(_ref236, _excluded236); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M0 0h256.5v184.1H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z", fill: "#FFF" })); }; var US = function US2(_ref237) { var title = _ref237.title, rest = _objectWithoutProperties(_ref237, _excluded237); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M0 0h256.5v184.1H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z", fill: "#FFF" })); }; var UY = function UY2(_ref238) { var title = _ref238.title, rest = _objectWithoutProperties(_ref238, _excluded238); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 513 342" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h513v342H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z", fill: "#0038a8" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h256.5v190H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FED443", d: "m128.3 138.7-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z" })); }; var UZ = function UZ2(_ref239) { var title = _ref239.title, rest = _objectWithoutProperties(_ref239, _excluded239); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M0 322.783h512v103.88H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.337h512v104.515H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 210.877h512v89.656H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.337h512v104.515H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M188.688 137.589c0-15.984 11.234-29.339 26.236-32.614a33.531 33.531 0 0 0-7.155-.777c-18.442 0-33.391 14.949-33.391 33.391s14.949 33.391 33.391 33.391c2.458 0 4.85-.273 7.155-.777-15.002-3.275-26.236-16.63-26.236-32.614zm45.97 15.177 2.261 6.957h7.315l-5.918 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.261-6.956-5.918-4.301h7.315zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm23.347 0 2.26 6.957h7.315l-5.917 4.301 2.26 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.918-4.301h7.315zm23.347 0 2.262 6.957h7.315l-5.919 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.262-6.956-5.919-4.301h7.314zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm-70.042-24.284 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm23.347 0 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.299-5.918 4.299 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm-46.695-24.284 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.3-5.918 4.3 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.917-4.3h7.314z", fill: "#FFF" })); }; var VA = function VA2(_ref240) { var title = _ref240.title, rest = _objectWithoutProperties(_ref240, _excluded240); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 85.331h256v341.337H256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ACABB1", d: "m321.353 233.837 32.073 42.43c-5.053 7.651-5.026 17.961.817 25.692 7.414 9.807 21.374 11.748 31.182 4.335 9.807-7.414 11.748-21.374 4.334-31.182-5.843-7.731-15.756-10.568-24.495-7.795l-49.988-66.129-11.838 8.949-17.759 13.424 17.899 23.677 17.775-13.401zm46.175 48.78a7.421 7.421 0 1 1 8.95 11.84 7.421 7.421 0 0 1-8.95-11.84z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m376.367 247.24 17.899-23.677-17.759-13.424-11.838-8.949-49.988 66.129c-8.74-2.775-18.651.063-24.495 7.795-7.414 9.808-5.473 23.768 4.334 31.182 9.808 7.414 23.768 5.473 31.182-4.335 5.845-7.731 5.871-18.041.817-25.692l32.073-42.43 17.775 13.401zm-62.504 45.771a7.42 7.42 0 1 1-11.84-8.95 7.42 7.42 0 0 1 11.84 8.95z" })); }; var VC = function VC2(_ref241) { var title = _ref241.title, rest = _objectWithoutProperties(_ref241, _excluded241); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#338AF3", d: "M0 85.331h170.663v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M341.337 85.331H512v341.337H341.337zM214.261 283.82l-33.393-50.086 33.392-50.087 33.392 50.087zm83.478 0-33.391-50.086 33.391-50.087 33.393 50.087zM256 350.603l-33.391-50.087L256 250.429l33.391 50.087z", fill: "#6DA544" })); }; var VE = function VE2(_ref242) { var title = _ref242.title, rest = _objectWithoutProperties(_ref242, _excluded242); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22.5 15" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFCE00", d: "M0 0h22.5v5H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#203899", d: "M0 5h22.5v5H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D82B2B", d: "M0 10h22.5v5H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "m12.13 5.38.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0 .27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z" })); }; var VG = function VG2(_ref243) { var title = _ref243.title, rest = _objectWithoutProperties(_ref243, _excluded243); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.334h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M256 85.334V202.66h-46.069L256 233.38v22.617h-22.628L160 207.078v48.919H96v-48.919l-73.372 48.919H0V233.38l46.069-30.72H0v-64h46.069L0 107.951V85.334h22.628L96 134.241V85.334h64v48.907l73.372-48.907z" }), /* @__PURE__ */ React.createElement("g", { fill: "#D80027" }, /* @__PURE__ */ React.createElement("path", { d: "M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z" })), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 107.951v30.712h-46.069z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#2E52B2", d: "M256 107.951v30.712h-46.069z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 255.997v-15.082l57.377-38.252H80zm256 0v-15.082l-57.377-38.252H176z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m384 259.706-46.129 46.129c8.645 16.675 26.051 28.074 46.129 28.074s37.484-11.4 46.129-28.074L384 259.706z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M332.058 178.084v81.624c.001 39.759 51.942 51.941 51.942 51.941s51.941-12.182 51.942-51.942v-81.623H332.058z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M372.87 215.181h22.261v59.359H372.87z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#A2001D", cx: 384, cy: 215.181, r: 11.13 }), /* @__PURE__ */ React.createElement("path", { d: "M346.902 192.92h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84zm59.359-66.783h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84z", fill: "#FFDA44" })); }; var VI = function VI2(_ref244) { var title = _ref244.title, rest = _objectWithoutProperties(_ref244, _excluded244); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.3" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h512v341.3H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1583C4", d: "m397.7 166.3-51 97.7c-1.1 2-.3 4.5 1.8 5.6 2 1.1 4.5.3 5.6-1.8l51-97.7c1-2.1.1-4.6-2-5.5-2-.9-4.3-.2-5.4 1.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1583C4", d: "m404.9 188-57.8 75.4c-1.3 1.9-.8 4.5 1.1 5.8 1.7 1.2 4.1.9 5.5-.7l57.8-75.4c1.4-1.8 1.1-4.4-.8-5.8-1.8-1.5-4.4-1.1-5.8.7z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1583C4", d: "m379 181.3-32.5 83.1c-.8 2.1.2 4.6 2.4 5.4 2.1.8 4.6-.2 5.4-2.4l32.5-83.1c.7-2.2-.4-4.5-2.6-5.3-2.1-.6-4.3.4-5.2 2.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#409347", d: "M122.1 171.9c.4 1.7 1.2 4.7 2.2 8.5 1.7 6.4 3.6 12.8 5.6 18.7 2.3 6.9 14.7 31.4 20.2 39.1 6.9 9.7 14.1 19.3 21.5 28.6 1.6 1.9 4.5 2.1 6.4.5 1.8-1.6 2.1-4.3.7-6.2-7.3-9.2-14.4-18.6-21.2-28.2-4.2-5.8-17.2-31.1-19-36.7-2.9-8.7-5.4-17.6-7.6-26.5-.5-2.4-2.9-4-5.3-3.5s-4 2.9-3.5 5.3c-.1.2 0 .3 0 .4z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFD836", stroke: "#231F20", strokeMiterlimit: 10 }, /* @__PURE__ */ React.createElement("path", { d: "M297.1 114.9S279.5 42.8 261 42.8c-6.9 0-11.9-.6-15.4 6.4-.9 1.7-20.7-1.6-19.1 20.8.5 6.9 1.1-9.8 14.9-3.4 6.3 3-16.4 48.2-16.4 48.2h72.1z" }), /* @__PURE__ */ React.createElement("path", { d: "m466.1 48.4-90.9 22c-75.3 18.3-42.1 44.4-42.1 44.4l-72.1 12-72.1-12s33.2-26.1-42.1-44.4l-90.9-22C43.1 45.3 38.1 51.8 45.3 63c0 0 106.6 104 126.8 112 20.2 8.1 40.8 0 40.8 0s-14.9 8.7-24 24c-9.2 15.3-4.6 34.7-38.9 40.2-5.5 6.6-5 14 2.9 19.9 7.9 5.8 72.1-48.1 72.1-48.1s-24 24.4-24 36.1c0 5.1 44.1 53.8 60.1 53.8s60.1-48.7 60.1-53.8c0-11.7-24-36.1-24-36.1s64.2 53.9 72.1 48.1 11.4-19.3 2.8-19.9c-28-1.8-29.7-24.9-38.9-40.2-9.2-15.3-24-24-24-24s20.6 8.1 40.8 0S476.7 63 476.7 63c7.2-11.2 2.3-17.7-10.6-14.6z" })), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", stroke: "#231F20", strokeMiterlimit: 10, d: "M201.3 111.8v80.3c0 45.7 59.7 59.7 59.7 59.7s59.7-14 59.7-59.7v-80.3H201.3z" }), /* @__PURE__ */ React.createElement("path", { d: "M225.2 137.7V235c8.2 6 17 10.2 23.9 12.9V137.7h-23.9zm71.6 0V235c-8.2 6-17 10.2-23.9 12.9V137.7h23.9z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M201.3 111.8h119.4v37.9H201.3z" }), /* @__PURE__ */ React.createElement("path", { fill: "#1583C4", d: "m60.1 210.5-21.9-58.1H15.7l31.8 80.8h25.2l31.5-80.8H81.7zm391.4-58.6h18.9v81.7h-18.9z" })); }; var VN = function VN2(_ref245) { var title = _ref245.title, rest = _objectWithoutProperties(_ref245, _excluded245); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M196.641 85.337H0v341.326h512V85.337z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z" })); }; var VU = function VU2(_ref246) { var title = _ref246.title, rest = _objectWithoutProperties(_ref246, _excluded246); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#6DA544", d: "M512 256v170.663H0L215.185 256z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M512 85.337V256H215.185L0 85.337z" }), /* @__PURE__ */ React.createElement("path", { d: "M221.001 239.304 26.868 85.337H8.956l208.168 165.098H512v-11.131zM8.956 426.663h17.912l194.133-153.967H512v-11.131H217.124zM0 92.44v14.206L188.317 256 0 405.354v14.205L206.229 256z" }), /* @__PURE__ */ React.createElement("g", { fill: "#FFDA44" }, /* @__PURE__ */ React.createElement("path", { d: "M8.956 85.337H0v7.103L206.229 256 0 419.559v7.104h8.956l208.168-165.098H512v-11.13H217.124z" }), /* @__PURE__ */ React.createElement("path", { d: "M63.718 292.382v-14.295c14.265 0 25.87-11.606 25.87-25.869 0-10.092-8.211-18.303-18.304-18.303-6.875 0-12.469 5.593-12.469 12.469 0 4.397 3.577 7.974 7.974 7.974a4.514 4.514 0 0 0 4.508-4.508h14.295c0 10.368-8.435 18.804-18.802 18.804-12.279-.002-22.269-9.993-22.269-22.271 0-14.758 12.006-26.764 26.764-26.764 17.975 0 32.599 14.623 32.599 32.599 0 22.145-18.018 40.164-40.166 40.164z" }))); }; var WF = function WF2(_ref247) { var title = _ref247.title, rest = _objectWithoutProperties(_ref247, _excluded247); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 150 100" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#ED2939", d: "M0 0h150v100H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#002395", d: "M0 0h20v44.33H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M20 0h20v44.33H20z" }), /* @__PURE__ */ React.createElement("path", { fill: "none", stroke: "#FFF", strokeWidth: 3, d: "M0 44.33h62.75V0" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M108.08 43.29 87.96 23.17h40.25l-20.13 20.12zm-6.7 6.71L81.25 29.88v40.25L101.38 50zm6.7 6.71L87.96 76.83h40.25l-20.13-20.12zm6.71-6.71 20.13-20.13v40.25L114.79 50z" })); }; var WS = function WS2(_ref248) { var title = _ref248.title, rest = _objectWithoutProperties(_ref248, _excluded248); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 85.331h256v170.663H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m165.483 181.79 2.764 8.504h8.939l-7.232 5.254 2.763 8.503-7.234-5.255-7.233 5.255 2.763-8.503-7.233-5.254h8.94zm-44.904-66.783 4.606 14.173h14.9l-12.055 8.757 4.605 14.171-12.056-8.758-12.054 8.758 4.605-14.171-12.056-8.757h14.901zm44.522 14.841 4.606 14.172h14.9l-12.055 8.757 4.604 14.173-12.055-8.76-12.054 8.76 4.604-14.173-12.055-8.757h14.9zm-35.192 59.363 4.606 14.172h14.9l-12.055 8.758 4.604 14.171-12.055-8.759-12.054 8.759 4.604-14.171-12.055-8.758h14.9zm-39.01-37.103 4.605 14.173h14.9l-12.055 8.757 4.604 14.173-12.054-8.76-12.055 8.76 4.604-14.173-12.055-8.757h14.9z", fill: "#FFF" })); }; var XK = function XK2(_ref249) { var title = _ref249.title, rest = _objectWithoutProperties(_ref249, _excluded249); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 341.33" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#0052B4", d: "M0 0h512v341.34H0z" }), /* @__PURE__ */ React.createElement("path", { d: "m220.72 42.63 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.36-15.9 8.36 3.03-17.7-12.86-12.54 17.78-2.58zm70.56-.06 7.95 16.1 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59zm62.08 11.36 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.87-12.54 17.78-2.58zm63.01 18.3 7.95 16.11 17.77 2.59-12.86 12.53 3.04 17.71-15.9-8.36-15.9 8.36 3.03-17.71-12.86-12.53 17.78-2.59zm-257.73-18.3 7.95 16.11 17.78 2.58-12.87 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.86-12.54 17.77-2.58zm-63.01 18.3 7.95 16.11 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59z", fill: "#FFF" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m217.53 259.33-27.22-13.61-27.22-54.43h27.22l27.22-27.22 13.61-27.22 27.22-13.61 13.61 13.61 27.22 13.61v13.61l13.61 13.61 40.83 27.22L340 245.73l-40.83 40.83-13.61-27.22-40.83 27.22v27.22l-13.61-13.61-13.59-40.84z" })); }; var YE = function YE2(_ref250) { var title = _ref250.title, rest = _objectWithoutProperties(_ref250, _excluded250); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M0 85.337h512v113.775H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 312.888h512v113.775H0z" })); }; var YT = function YT2(_ref251) { var title = _ref251.title, rest = _objectWithoutProperties(_ref251, _excluded251); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 90 60" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 0h90v60H0z" }), /* @__PURE__ */ React.createElement("path", { stroke: "#7f7f7f", strokeWidth: 0.25, fill: "#ABABAB", d: "M75.6 39.6c-1.1.7 0 1.8-.6 1.9-.6.1-1.5-1.4-.2-2.5 1.6-1.5 5.8 0 5.9 4.3 0 2.2-.9 6.8-7.2 6.8-7.6 0-11.4-5.7-11.4-11.4 0-4.8 3.7-13.5 6.5-14.6 3.1-1.2 6.7-3.5 6.8-5 0-.5-1.4-.1-3.3.9-3.1 1.7-6.6 2.5-6.6 1.4s2.9-3.1 4-4.6c1.2-1.6.9-5.5 3-5.5 7.6 0 9.9 7.7 7 11.7-1.9 2.6 4.3 1 4.3 1s0 5.3-3.2 7.3c-3 1.8-4.8 3.9-4.8 3.9s.2-4.6-.5-3.9c-.6.7-11.1 4.5-10.3 12 .3 3 4.5 5.4 8.5 5.2s5.7-2.4 5.8-4.9c.1-3.9-3-4.4-3.7-4zm-64.9 4c.1 2.5 1.8 4.7 5.8 4.9s8.2-2.2 8.5-5.2c.8-7.5-9.7-11.3-10.3-12-.7-.7-.5 3.9-.5 3.9s-1.8-2.1-4.8-3.9c-3.2-2-3.2-7.3-3.2-7.3s6.2 1.6 4.3-1c-2.9-4-.6-11.7 7-11.7 2.1 0 1.8 3.9 3 5.5 1.1 1.5 4 3.5 4 4.6s-3.5.3-6.6-1.4c-1.9-1-3.3-1.4-3.3-.9.1 1.5 3.7 3.8 6.8 5 2.8 1.1 6.5 9.8 6.5 14.6 0 5.7-3.8 11.4-11.4 11.4-6.3 0-7.2-4.6-7.2-6.8.1-4.3 4.3-5.8 5.9-4.3 1.2 1.1.4 2.7-.2 2.5-.6-.1.6-1.2-.6-1.9-.6-.4-3.7.1-3.7 4z" }), /* @__PURE__ */ React.createElement("path", { fill: "#DE393A", d: "M31 28.8v14c0 1.9 2.1 1.6 2.1 1.6h9.3c1.2 0 2.6 2.3 2.6 2.3s1.4-2.3 2.5-2.3h9.6s2 .2 2-1.8V28.7H31z" }), /* @__PURE__ */ React.createElement("path", { fill: "#3951A3", d: "M31 13.1h28v15.7H31z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M50.1 16.5c-.4 2.4-2.5 4.2-5.1 4.2-2.5 0-4.6-1.8-5.1-4.2-.5.9-.8 1.9-.8 3 0 3.3 2.6 5.9 5.9 5.9 3.3 0 5.9-2.6 5.9-5.9 0-1.1-.3-2.1-.8-3z" }), /* @__PURE__ */ React.createElement("circle", { fill: "#FEE05F", cx: 39.1, cy: 36.5, r: 3 }), /* @__PURE__ */ React.createElement("circle", { fill: "#FEE05F", cx: 50.9, cy: 36.5, r: 3 })); }; var ZA = function ZA2(_ref252) { var title = _ref252.title, rest = _objectWithoutProperties(_ref252, _excluded252); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M0 85.337h512v341.326H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M114.024 256.001 0 141.926v228.17z" }), /* @__PURE__ */ React.createElement("path", { fill: "#ffb915", d: "M161.192 256 0 94.7v47.226l114.024 114.075L0 370.096v47.138z" }), /* @__PURE__ */ React.createElement("path", { fill: "#007847", d: "M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z" }), /* @__PURE__ */ React.createElement("path", { fill: "#000c8a", d: "M503.181 322.783H236.433l-103.881 103.88H512v-103.88z" }), /* @__PURE__ */ React.createElement("path", { fill: "#e1392d", d: "M503.181 189.217H512V85.337H132.552l103.881 103.88z" })); }; var ZM = function ZM2(_ref253) { var title = _ref253.title, rest = _objectWithoutProperties(_ref253, _excluded253); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { fill: "#496E2D", d: "M0 85.331h512v341.337H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M490.668 195.476h-48c0-8.836-7.164-16-16-16s-16 7.164-16 16h-48c0 8.836 7.697 16 16.533 16h-.533c0 8.836 7.162 16 16 16 0 8.836 7.162 16 16 16h32c8.836 0 16-7.164 16-16 8.836 0 16-7.164 16-16h-.533c8.837 0 16.533-7.164 16.533-16z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "M341.337 255.994h56.888v170.663h-56.888z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FF9811", d: "M455.112 255.994H512v170.663h-56.888z" }), /* @__PURE__ */ React.createElement("path", { d: "M398.225 255.994h56.888v170.663h-56.888z" })); }; var ZW = function ZW2(_ref254) { var title = _ref254.title, rest = _objectWithoutProperties(_ref254, _excluded254); return /* @__PURE__ */ React.createElement("svg", _extends({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 85.333 512 341.333" }, rest), title && /* @__PURE__ */ React.createElement("title", null, title), /* @__PURE__ */ React.createElement("path", { d: "M0 85.333h512V426.67H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 134.196h512v48.868H0zm0 195.472h512v48.868H0z", fill: "#FFDA44" }), /* @__PURE__ */ React.createElement("path", { fill: "#057f44", d: "M0 85.333h512v48.868H0z" }), /* @__PURE__ */ React.createElement("path", { d: "M0 183.069h512v48.868H0zm0 97.737h512v48.868H0z", fill: "#D80027" }), /* @__PURE__ */ React.createElement("path", { fill: "#057f44", d: "M0 378.542h512v48.128H0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFF", d: "M276.992 255.996 106.329 426.659H0V85.333h106.329z" }), /* @__PURE__ */ React.createElement("path", { d: "M256 255.996 85.334 426.662h20.987l170.667-170.666L106.321 85.33H85.334z" }), /* @__PURE__ */ React.createElement("path", { fill: "#D80027", d: "m102.465 202.57 13.259 40.812h42.917l-34.718 25.226 13.26 40.814-34.718-25.224-34.72 25.224 13.262-40.814-34.718-25.226h42.915z" }), /* @__PURE__ */ React.createElement("path", { fill: "#FFDA44", d: "m138.94 259.335-34.559-12.243s-2.553-23.955-2.708-24.766c-1.173-6.18-6.603-10.851-13.123-10.851-7.376 0-13.357 5.98-13.357 13.357 0 1.223.178 2.402.486 3.528l-9.689 9.755h17.229c0 17.882-13.344 17.882-13.344 35.691l7.402 17.809h44.522l7.422-17.809h-.004a17.782 17.782 0 0 0 1.381-5.231c6.397-2.589 8.342-9.24 8.342-9.24z" })); }; const Flags = { AC, AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, EU, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TA, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XK, YE, YT, ZA, ZM, ZW }; var useStyles$l = createThemedStyles("Flag", { root: { // приходится хардкодить в компоненте, тк либа Flags выдает флаги с 2-3 пиксельным отступом снизу // если будет нужно, то можно вынести border на уровень пропсов border: [ 1, "solid", colors.BORDER_MAIN ], borderRadius: 2 }, noFlag: { width: 20, color: colors.FONT_MEDIUM } }); var Flag = function(param) { var _param_countryCode = param.countryCode, countryCode = _param_countryCode === void 0 ? "" : _param_countryCode, tweakStyles = param.tweakStyles; var classes = useStyles$l({ theme: tweakStyles }); var CC2 = countryCode.toUpperCase(); var TheFlag = countryFlagIcons.hasFlag(CC2) ? Flags[CC2] : function() { return /* @__PURE__ */ jsx("div", { className: classes.noFlag, children: /* @__PURE__ */ jsx(Icon, { type: "minus" }) }); }; return /* @__PURE__ */ jsx(TheFlag, { className: classes.root }); }; var DEFAULT_DATE_FORMAT = "dd.MM.yyyy"; var TableRenders = { table: { Root: "table", Head: "thead", Body: "tbody", Row: "tr", Header: "th", Cell: "td" }, divs: { Root: "div", Head: "div", Body: "div", Row: "div", Header: "div", Cell: "div" } }; var useStyles$k = createThemedStyles("Skeleton", { root: { display: "flex", width: "100%", height: "100%", backgroundColor: rgba(colors.GREY_DISABLED, 0.8), position: "relative", borderRadius: 4, overflow: "hidden", "-webkit-mask-image": "-webkit-radial-gradient(white, black)", "&::after": { content: '""', animation: "$skeleton 1.6s linear 0.5s infinite", background: "linear-gradient(90deg, transparent, ".concat(rgba(colors.GREY_BACKGROUND, 0.65), ", transparent)"), position: "absolute", transform: "translateX(-100%)", bottom: 0, left: 0, right: 0, top: 0 } }, "@keyframes skeleton": { "0%": { transform: "translateX(-100%)" }, "50%": { transform: "translateX(100%)" }, "100%": { transform: "translateX(100%)" } } }); var Skeleton = function(param) { var height = param.height, tweakStyles = param.tweakStyles; var classes = useStyles$k({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", { className: classes.root, style: { height } }); }; function _instanceof(left2, right2) { if (right2 != null && typeof Symbol !== "undefined" && right2[Symbol.hasInstance]) { return !!right2[Symbol.hasInstance](left2); } else { return left2 instanceof right2; } } var hasHorizontalScrollBar = function(el) { return trueReactPlatformHelpers.isNotEmpty(el) && el.scrollWidth !== el.clientWidth; }; var formatCellContent = function(value, config) { var _config_dateFormat; return _instanceof(value, Date) ? dateFns.format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value); }; var STICKY_SHADOW_PADDING = 12; var useStyles$j = createThemedStyles("FlexibleTable", { root: { width: "100%", position: "relative", borderCollapse: "separate", borderSpacing: 0 }, scroll: { overflow: "auto", /* Чтобы сделать таблицу на всю высоту проставьте height у родителя таблицы у себя в проекте. Например: height: calc(100vh -{высота шапки}px) */ maxHeight: "100%" }, head: {}, body: {}, loaderRow: {}, loaderCell: {}, loader: { position: "sticky", left: 0, maxWidth: "100vw", height: 48, display: "flex", justifyContent: "center", alignItems: "center" }, headerRow: { position: "relative", verticalAlign: "bottom" }, header: { position: "sticky", boxSizing: "content-box", top: 0, zIndex: 10, fontSize: 12, fontWeight: "normal", padding: [ 0, 7, 16, 7 ] }, headerSticky: { zIndex: 20, left: 0, paddingLeft: 24, paddingRight: 12, "&::before": { content: '""', display: "block", width: "100%", height: "100%", position: "absolute", left: 0, top: 0, background: "transparent", pointerEvents: "none", zIndex: 1, transition: animations.defaultTransition, transitionProperty: "box-shadow", "[data-scrolled] &": { boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)" } }, "&::after": { content: '""', display: "block", width: STICKY_SHADOW_PADDING, height: "100%", position: "absolute", left: "100%", top: 0, background: "linear-gradient(90deg, ".concat(colors.CLASSIC_WHITE, ", ").concat(rgba(colors.CLASSIC_WHITE, 0), ")"), zIndex: 0 } }, headerSecond: { paddingLeft: STICKY_SHADOW_PADDING }, nothingFoundRow: {}, nothingFound: {} }); function _define_property$m(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$m(target, key, source[key]); }); } return target; } function ownKeys$k(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$k(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$k(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var useStyles$i = createThemedStyles("FlexibleTableCell", { root: { position: "relative", boxSizing: "content-box", padding: [ 14, 7 ], fontSize: 14, lineHeight: 1.42, zIndex: 5, verticalAlign: "top" }, sticky: _object_spread_props$k(_object_spread$l({ zIndex: 19, paddingLeft: 24, paddingRight: 12, left: 0 }, trueReactPlatformHelpers.getTransition([ "box-shadow" ])), { "[data-scrolled] &": { boxShadow: "4px 0 4px rgba(0, 0, 0, 0.05)" } }), second: { paddingLeft: STICKY_SHADOW_PADDING }, loading: {}, skeleton: { height: 21 } }); function _define_property$l(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$l(target, key, source[key]); }); } return target; } function ownKeys$j(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$j(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$j(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$7(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$7(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 FlexibleTableCell(_param) { var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$7(_param, [ "row", "columnName", "config", "renderMode", "isSecond", "isSticky", "isLoading", "tweakStyles" ]); var classes = useStyles$i({ theme: tweakStyles }); var value = row[columnName]; var _config_columnName; var _ref = (_config_columnName = config[columnName]) !== null && _config_columnName !== void 0 ? _config_columnName : {}, _ref_component = _ref.component, component = _ref_component === void 0 ? formatCellContent(value, config[columnName]) : _ref_component, width = _ref.width, maxWidth = _ref.maxWidth, minWidth = _ref.minWidth, left2 = _ref.left, right2 = _ref.right, position = _ref.position, cellAlign = _ref.cellAlign, cellVerticalAlign = _ref.cellVerticalAlign, shouldRenderDataId = _ref.shouldRenderDataId, _ref_shouldRenderComponent = _ref.shouldRenderComponent, shouldRenderComponent = _ref_shouldRenderComponent === void 0 ? trueReactPlatformHelpers.isNotEmpty : _ref_shouldRenderComponent; var isSticky = isOldSticky || position === "sticky"; var Table = TableRenders[renderMode]; var _obj2; return /* @__PURE__ */ jsx(Table.Cell, _object_spread_props$j(_object_spread$k({ className: clsx(classes.root, (_obj2 = {}, _define_property$l(_obj2, classes.sticky, isSticky), _define_property$l(_obj2, classes.second, isSecond), _define_property$l(_obj2, classes.loading, isLoading), _obj2)), style: { textAlign: cellAlign, position: isSticky ? "sticky" : position, width, maxWidth, minWidth, right: right2, left: left2, verticalAlign: cellVerticalAlign } }, addDataAttributes({ id: shouldRenderDataId ? columnName : void 0 })), { children: isLoading ? /* @__PURE__ */ jsx("div", { className: classes.skeleton, children: /* @__PURE__ */ jsx(Skeleton, {}) }) : trueReactPlatformHelpers.applyAction(shouldRenderComponent, value, row, columnName) && trueReactPlatformHelpers.applyAction(component, _object_spread_props$j(_object_spread$k({}, valueComponentProps), { value, row })) })); } var useStyles$h = createThemedStyles("FlexibleTableRow", { root: { position: "relative" }, active: {}, editable: { cursor: "pointer" }, clickable: { cursor: "pointer" }, nestedComponent: {} }); function _array_like_to_array$8(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$8(arr) { if (Array.isArray(arr)) return arr; } function _define_property$k(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$8(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$k(target, key, source[key]); }); } return target; } function ownKeys$i(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$i(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$i(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$8(arr, i) { return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$8(); } function _unsupported_iterable_to_array$8(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$8(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen); } function FlexibleTableRowInner(param) { var item = param.item, index = param.index, config = param.config, columns = param.columns, uniqueField = param.uniqueField, renderMode = param.renderMode, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isFocusable = param.isFocusable, isFocusable = _param_isFocusable === void 0 ? false : _param_isFocusable, _param_isFirstColumnSticky = param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, rowAttributes = param.rowAttributes, _param_isExpandableRowComponentInitiallyOpen = param.isExpandableRowComponentInitiallyOpen, isExpandableRowComponentInitiallyOpen = _param_isExpandableRowComponentInitiallyOpen === void 0 ? false : _param_isExpandableRowComponentInitiallyOpen, tweakStyles = param.tweakStyles, expandableRowComponent = param.expandableRowComponent, onRowHover = param.onRowHover, onRowClick = param.onRowClick; var classes = useStyles$h({ theme: tweakStyles }); var tweakTableCellStyles = useTweakStyles({ tweakStyles, className: "tweakTableCell", currentComponentName: "FlexibleTableRow" }); var _useState = _sliced_to_array$8(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1]; var _useState1 = _sliced_to_array$8(React.useState(function() { return { isOpen: trueReactPlatformHelpers.applyAction(isExpandableRowComponentInitiallyOpen, item, index) }; }), 2), nestedComponent = _useState1[0], setNestedComponent = _useState1[1]; var isEditable = !isLoading && (trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(onRowHover)); var isClickable = !isLoading && (trueReactPlatformHelpers.isNotEmpty(onRowClick) || trueReactPlatformHelpers.isNotEmpty(expandableRowComponent)); var isNestedComponentExpanded = nestedComponent.isOpen, nestedComponentCellKey = nestedComponent.cellKey; var _rowAttributes_map; var rowData = Object.fromEntries((_rowAttributes_map = rowAttributes === null || rowAttributes === void 0 ? void 0 : rowAttributes.map(function(attribute) { return [ attribute, item[attribute] ]; })) !== null && _rowAttributes_map !== void 0 ? _rowAttributes_map : []); var handleMouseEnter = function(event) { if (trueReactPlatformHelpers.isNotEmpty(uniqueField) && trueReactPlatformHelpers.isNotEmpty(onRowHover)) { event.stopPropagation(); onRowHover(item[uniqueField]); } if (isFocusable) { setFocused(true); } }; var handleMouseLeave = function() { onRowHover === null || onRowHover === void 0 ? void 0 : onRowHover(void 0); if (isFocusable) { setFocused(false); } }; var closeNestedComponent = function() { setNestedComponent({ isOpen: false }); }; var updateNestedComponent = function(component, cellKey) { if (trueReactPlatformHelpers.isEmpty(component)) { closeNestedComponent(); } else { setNestedComponent({ isOpen: true, component, cellKey }); } }; var handleRowClick = function() { if (trueReactPlatformHelpers.isNotEmpty(uniqueField)) { onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(item[uniqueField]); } if (trueReactPlatformHelpers.isEmpty(expandableRowComponent)) { return; } if (!isNestedComponentExpanded) { setNestedComponent({ isOpen: true }); } else if (trueReactPlatformHelpers.isEmpty(nestedComponentCellKey)) { closeNestedComponent(); } }; var Table = TableRenders[renderMode]; var _nestedComponent_component; var _obj2; return /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx(Table.Row, _object_spread_props$i(_object_spread$j({ className: clsx(classes.root, (_obj2 = {}, _define_property$k(_obj2, classes.active, isActive), _define_property$k(_obj2, classes.editable, isEditable), _define_property$k(_obj2, classes.clickable, isClickable), _obj2)) }, !isLoading && { onClick: handleRowClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, addDataAttributes(_object_spread_props$i(_object_spread$j({}, rowData), { active: isActive ? true : void 0, editable: isEditable ? true : void 0, isExpandableComponentActive: isNestedComponentExpanded ? true : void 0 }))), { children: columns.map(function(key, i) { return /* @__PURE__ */ jsx(FlexibleTableCell, { isSticky: isFirstColumnSticky && i === 0, isSecond: isFirstColumnSticky && i === 1, isLoading, row: item, config, columnName: key, tweakStyles: tweakTableCellStyles, renderMode, isFocusedRow: isFocused, isActiveRow: isActive, isNestedComponentExpanded: isNestedComponentExpanded && nestedComponentCellKey === key, isRowNestedComponentExpanded: isNestedComponentExpanded && trueReactPlatformHelpers.isEmpty(nestedComponentCellKey), onSetNestedComponent: function(component) { return updateNestedComponent(component, key); } }, key); }) })), isNestedComponentExpanded && /* @__PURE__ */ jsx(Table.Row, { className: classes.root, children: /* @__PURE__ */ jsx(Table.Cell, { className: classes.nestedComponent, colSpan: columns.length, children: (_nestedComponent_component = nestedComponent.component) !== null && _nestedComponent_component !== void 0 ? _nestedComponent_component : expandableRowComponent === null || expandableRowComponent === void 0 ? void 0 : expandableRowComponent(item, true, closeNestedComponent) }) }) ] }); } var FlexibleTableRow = /* @__PURE__ */ React.memo(FlexibleTableRowInner); function _define_property$j(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$j(target, key, source[key]); }); } return target; } function ownKeys$h(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$h(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$h(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$6(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$6(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 FlexibleTable(_param) { var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$6(_param, [ "content", "headerContent", "config", "enabledColumns", "activeRows", "uniqueField", "isLoading", "isFirstColumnSticky", "isHorizontallyScrollable", "isRowFocusable", "infinityScrollConfig", "renderMode", "refForScroll", "nothingFoundContent", "data", "testId", "tweakStyles", "shouldRenderHeader", "onHeadClick" ]); var classes = useStyles$j({ theme: tweakStyles }); var tweakTableRowStyles = useTweakStyles({ tweakStyles, className: "tweakTableRow", currentComponentName: "FlexibleTable" }); var observer = React.useRef(); var scrollRef = React.useRef(null); var columns = React.useMemo(function() { return enabledColumns !== null && enabledColumns !== void 0 ? enabledColumns : Object.keys(config); }, [ enabledColumns, config ]); var hasInfiniteScroll = trueReactPlatformHelpers.isNotEmpty(infinityScrollConfig); var tableRowProps = _object_spread_props$h(_object_spread$i({}, restProps), { renderMode, config, columns, uniqueField, isLoading, isFirstColumnSticky, isFocusable: isRowFocusable, tweakStyles: tweakTableRowStyles }); var getDataScrollAttributeSetter = React.useCallback(function(key, setter) { return function(el) { if (isHorizontallyScrollable && trueReactPlatformHelpers.isNotEmpty(el) && setter(el)) { el.dataset[key] = "true"; } else { el === null || el === void 0 ? void 0 : el.removeAttribute("data-".concat(key)); } }; }, [ isHorizontallyScrollable ]); var setHasScrollBarAttribute = React.useMemo(function() { return getDataScrollAttributeSetter("scrollable", hasHorizontalScrollBar); }, [ getDataScrollAttributeSetter ]); var setIsScrolledAttribute = React.useMemo(function() { return getDataScrollAttributeSetter("scrolled", function(el) { return el.scrollLeft > 0; }); }, [ getDataScrollAttributeSetter ]); var shouldShowNothingFound = !trueReactPlatformHelpers.isArrayNotEmpty(content) && nothingFoundContent !== void 0 && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && ((infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLastPage) === void 0 || infinityScrollConfig.isLastPage); var ref = useMergedRefs([ refForScroll, scrollRef, setHasScrollBarAttribute, setIsScrolledAttribute ]); var initIntersectionObserver = React.useCallback(function(node) { if (!hasInfiniteScroll || infinityScrollConfig.isLoading || infinityScrollConfig.activePage >= infinityScrollConfig.totalPages) { return; } if (observer.current) { observer.current.disconnect(); } observer.current = new IntersectionObserver(function(entries) { if (entries[0].isIntersecting) { infinityScrollConfig.onInfinityScroll(infinityScrollConfig.activePage + 1); } }); if (node) { observer.current.observe(node); } }, [ hasInfiniteScroll, infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.activePage, infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.totalPages, infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.onInfinityScroll ]); React.useEffect(function() { var scrollContainer = scrollRef.current; if (trueReactPlatformHelpers.isEmpty(scrollContainer) || !isHorizontallyScrollable) { return; } var scrollHandler = function() { setIsScrolledAttribute(scrollContainer); }; var resizeHandler = function() { setHasScrollBarAttribute(scrollContainer); }; scrollContainer.addEventListener("scroll", scrollHandler); window.addEventListener("resize", resizeHandler); return function() { scrollContainer.removeEventListener("scroll", scrollHandler); window.removeEventListener("resize", resizeHandler); }; }, [ scrollRef, isHorizontallyScrollable, setIsScrolledAttribute, setHasScrollBarAttribute ]); var activeRowsSet = React.useMemo(function() { return new Set(activeRows); }, [ activeRows ]); var Table = TableRenders[renderMode]; return /* @__PURE__ */ jsx("div", { ref, className: clsx(_define_property$j({}, classes.scroll, isHorizontallyScrollable)), children: /* @__PURE__ */ jsxs(Table.Root, _object_spread_props$h(_object_spread$i({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$h(_object_spread$i({}, data), { isLoading }))), { children: [ shouldRenderHeader && /* @__PURE__ */ jsx(Table.Head, { className: classes.head, children: /* @__PURE__ */ jsx(Table.Row, { className: classes.headerRow, children: columns.map(function(key, i) { var _config_key; var _ref = (_config_key = config === null || config === void 0 ? void 0 : config[key]) !== null && _config_key !== void 0 ? _config_key : {}, position = _ref.position, minWidth = _ref.minWidth, width = _ref.width, maxWidth = _ref.maxWidth, _ref_titleAlign = _ref.titleAlign, titleAlign = _ref_titleAlign === void 0 ? "left" : _ref_titleAlign, right2 = _ref.right, left2 = _ref.left, _ref_title = _ref.title, title = _ref_title === void 0 ? "" : _ref_title, shouldRenderDataId = _ref.shouldRenderDataId; var isSticky = position === "sticky" || isFirstColumnSticky && i === 0; var _obj2; return /* @__PURE__ */ jsx(Table.Header, _object_spread_props$h(_object_spread$i({ className: clsx(classes.header, (_obj2 = {}, _define_property$j(_obj2, classes.headerSticky, isSticky), _define_property$j(_obj2, classes.headerSecond, isFirstColumnSticky && i === 1), _obj2)), style: { minWidth, width, maxWidth, textAlign: titleAlign, position: isSticky ? "sticky" : position, right: right2, left: left2 }, onClick: trueReactPlatformHelpers.isNotEmpty(onHeadClick) ? function() { return onHeadClick(key); } : void 0 }, addDataAttributes({ id: shouldRenderDataId ? key : void 0 })), { children: trueReactPlatformHelpers.applyAction(title, { value: headerContent === null || headerContent === void 0 ? void 0 : headerContent[key] }) }), key); }) }) }), /* @__PURE__ */ jsx(Table.Body, { className: classes.body, children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) { return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$h(_object_spread$i({}, tableRowProps), { key: i, item: {}, index: i })); }) : /* @__PURE__ */ jsxs(Fragment, { children: [ shouldShowNothingFound && /* @__PURE__ */ jsx(Table.Row, { className: classes.nothingFoundRow, children: /* @__PURE__ */ jsx(Table.Cell, { className: classes.nothingFound, colSpan: columns.length, children: nothingFoundContent }) }), content.map(function(item, i) { return /* @__PURE__ */ React.createElement(FlexibleTableRow, _object_spread_props$h(_object_spread$i({}, tableRowProps), { isActive: activeRowsSet.has(i), key: trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i, item, index: i })); }), hasInfiniteScroll && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx(Table.Row, { className: classes.loaderRow, children: /* @__PURE__ */ jsx(Table.Cell, { className: classes.loaderCell, colSpan: columns.length, children: /* @__PURE__ */ jsx("div", { ref: initIntersectionObserver, className: classes.loader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: "dots" }) }) }) }) ] }) }) ] })) }); } var BUTTONS_WIDTH = 36; var BUTTONS_GAP = 2; var useStyles$g = createThemedStyles("IncrementInput", { root: { display: "flex", alignItems: "center", position: "relative" }, buttons: { display: "flex", flexDirection: "column", width: BUTTONS_WIDTH, position: "absolute", right: BUTTONS_GAP, top: BUTTONS_GAP, bottom: BUTTONS_GAP, zIndex: 1 }, button: { width: "100%", height: (dimensions.CONTROL_HEIGHT - 5) / 2, border: "none", outline: "none", backgroundColor: colors.GREY_BACKGROUND, transition: animations.defaultTransition, transitionProperty: "background-color", color: colors.FONT_MEDIUM, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", padding: [ 0, 10 ], "&:hover, &:focus": { backgroundColor: colors.GREY_HOVER }, "&:active": { backgroundColor: colors.GREY_ACTIVE }, "&:first-child": { marginBottom: 1 } }, disabledButton: { backgroundColor: colors.CLASSIC_WHITE, color: colors.FONT_DISABLED, cursor: "default", "&:hover": { backgroundColor: colors.CLASSIC_WHITE } }, errorButton: {} }); var inputStyles$2 = { input: { "&:not($withControls)": { paddingRight: BUTTONS_WIDTH + BUTTONS_GAP } }, controls: { paddingRight: BUTTONS_WIDTH + BUTTONS_GAP } }; function _define_property$i(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$i(target, key, source[key]); }); } return target; } function ownKeys$g(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$g(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$g(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$5(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$5(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; } var IncrementInput = function(_param) { var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$5(_param, [ "value", "onChange", "min", "max", "step", "intPartPrecision", "data", "testId", "tweakStyles", "isDisabled", "isReadonly", "isInvalid" ]); var tweakInputStyles = useTweakStyles({ innerStyles: inputStyles$2, tweakStyles, className: "tweakInput", currentComponentName: "IncrementInput" }); var classes = useStyles$g({ theme: tweakStyles }); var isIncreaseDisabled = isDisabled || isReadonly || intPartPrecision !== void 0 && getNumberLength((value !== null && value !== void 0 ? value : 0) + step) > intPartPrecision || max2 !== void 0 && value !== void 0 && value >= max2; var isDecreaseDisabled = isDisabled || isReadonly || (min2 !== void 0 && value !== void 0 ? value <= min2 : false); var increment = function() { onChange(getNumberInRange((value !== null && value !== void 0 ? value : 0) + step, min2, max2)); }; var decrement = function() { onChange(getNumberInRange((value !== null && value !== void 0 ? value : 0) - step, min2, max2)); }; React.useEffect(function() { if (!trueReactPlatformHelpers.isNumberInteger(step)) { console.error("Параметр step должен быть целым числом"); } }, [ step ]); var _obj2, _obj1; return /* @__PURE__ */ jsxs("div", _object_spread_props$g(_object_spread$h({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx(NumberInput, _object_spread_props$g(_object_spread$h({}, props), { isInvalid, isDisabled, isReadonly, min: min2, max: max2, intPartPrecision, onChange, value, tweakStyles: tweakInputStyles })), /* @__PURE__ */ jsxs("div", { className: classes.buttons, children: [ /* @__PURE__ */ jsx("button", { className: clsx(classes.button, (_obj2 = {}, _define_property$i(_obj2, classes.disabledButton, isIncreaseDisabled), _define_property$i(_obj2, classes.errorButton, isInvalid), _obj2)), type: "button", disabled: isIncreaseDisabled, onClick: increment, children: /* @__PURE__ */ jsx(Icon, { type: "plus" }) }), /* @__PURE__ */ jsx("button", { className: clsx(classes.button, (_obj1 = {}, _define_property$i(_obj1, classes.disabledButton, isDecreaseDisabled), _define_property$i(_obj1, classes.errorButton, isInvalid), _obj1)), type: "button", disabled: isDecreaseDisabled, onClick: decrement, children: /* @__PURE__ */ jsx(Icon, { type: "minus" }) }) ] }) ] })); }; var VERTICAL_OVERLAY_PADDING = 50; var MODAL_HORIZONTAL_PADDING_L = 40; var MODAL_HORIZONTAL_PADDING_M = 36; var MODAL_HORIZONTAL_PADDING_S = 26; var MODAL_CLOSE_BUTTON_SIZE = 40; var MODAL_CLOSE_BUTTON_ICON_SIZE = 30; var useStyles$f = createThemedStyles("Modal", { root: {}, fixedPosition: { position: "fixed", top: 0, right: 0, bottom: 0, left: 0, zIndex: 999, overflowX: "hidden", "-webkit-overflow-scrolling": "touch", "& $innerOverlay": { display: "flex", width: "100%", minHeight: "100%", boxSizing: "border-box" } }, innerOverlay: {}, sideBar: { "& $modal": { borderRadius: 0, margin: 0, minHeight: "100%" } }, "position-static": {}, "position-left": {}, "position-right": { justifyContent: "flex-end" }, "position-center": { padding: [ VERTICAL_OVERLAY_PADDING, 30 ] }, overlay: { backgroundColor: rgba(colors.BORDER_MAIN, 0.5) }, modal: { backgroundColor: colors.CLASSIC_WHITE, borderRadius: dimensions.BORDER_RADIUS_LARGE, boxShadow: "0 8px 32px -8px ".concat(rgba(colors.FONT_MAIN, 0.24), ", 0 -2px 6px 0 ").concat(rgba(colors.FONT_MAIN, 0.04), ", 0 0 1px 0 ").concat(rgba(colors.FONT_MAIN, 0.15)), margin: "auto", position: "relative", // do not override this maxWidth: "100%" }, title: { fontSize: 28, lineHeight: 1.3, marginTop: 0 }, titleWithCloseButton: { paddingRight: 32 }, close: { position: "absolute" }, content: {}, footer: { display: "flex", gap: 12 }, stickyFooterWrapper: { position: "sticky", bottom: 0, marginTop: "auto", zIndex: 1 }, stickyFooter: { borderTop: [ 1, "solid", colors.BORDER_LIGHT ], padding: [ 16, 40 ], borderBottomLeftRadius: dimensions.BORDER_RADIUS_LARGE, borderBottomRightRadius: dimensions.BORDER_RADIUS_LARGE, backgroundColor: colors.CLASSIC_WHITE }, "buttons-left": { justifyContent: "flex-start" }, "buttons-center": { justifyContent: "center" }, "buttons-right": { justifyContent: "flex-end" }, withoutFooter: {}, withStickyFooter: { display: "flex", flexDirection: "column", "& $content": { position: "relative", zIndex: 1 } }, footerWrapper: {}, l: { "& $modal": { padding: [ 36, MODAL_HORIZONTAL_PADDING_L ], fontSize: 16, width: 560, "&$withStickyFooter": { paddingBottom: 0 } }, "& $withoutFooter": { paddingBottom: 54 }, "& $title": { fontSize: 28, marginBottom: 32 }, "& $close": { right: 27, top: 22 }, "& $footerWrapper": { paddingTop: 40 }, "& $stickyFooter": { paddingLeft: MODAL_HORIZONTAL_PADDING_L, paddingRight: MODAL_HORIZONTAL_PADDING_L, marginLeft: -MODAL_HORIZONTAL_PADDING_L, marginRight: -MODAL_HORIZONTAL_PADDING_L } }, m: { "& $modal": { padding: [ 32, MODAL_HORIZONTAL_PADDING_M ], width: 480, "&$withStickyFooter": { paddingBottom: 0 } }, "& $withoutFooter": { paddingBottom: 48 }, "& $title": { fontSize: 24, marginBottom: 28 }, "& $close": { right: 23, top: 18 }, "& $footerWrapper": { paddingTop: 36 }, "& $stickyFooter": { paddingLeft: MODAL_HORIZONTAL_PADDING_M, paddingRight: MODAL_HORIZONTAL_PADDING_M, marginLeft: -MODAL_HORIZONTAL_PADDING_M, marginRight: -MODAL_HORIZONTAL_PADDING_M } }, s: { "& $modal": { padding: [ 24, MODAL_HORIZONTAL_PADDING_S ], fontSize: 14, width: 360, "&$withStickyFooter": { paddingBottom: 0 } }, "& $withoutFooter": { paddingBottom: 40 }, "& $title": { fontSize: 20, marginBottom: 15 }, "& $close": { right: 14, top: 11 }, "& $footerWrapper": { paddingTop: 28 }, "& $stickyFooter": { paddingLeft: MODAL_HORIZONTAL_PADDING_S, paddingRight: MODAL_HORIZONTAL_PADDING_S, marginLeft: -MODAL_HORIZONTAL_PADDING_S, marginRight: -MODAL_HORIZONTAL_PADDING_S } }, modalWrapper: { display: "flex", width: "100%" }, // TODO: вынести анимацию ? /* ----------- SHOW / HIDE ANIMATION ----------- */ animationEnd: { "& $modal": { opacity: 0 }, "& $position-center $modal": { transform: "translateY(35px)" }, "& $position-right $modal": { transform: "translateX(35px)" }, "& $position-left $modal": { transform: "translateX(-35px)" }, "& $overlay": { opacity: 0 } }, animationStart: { "& $modal": { opacity: 1, transition: "0.15s ease", transitionProperty: "transform, opacity" }, "& $position-center $modal": { transform: "translateY(0)" }, "& $position-right $modal": { transform: "translateX(0)" }, "& $position-left $modal": { transform: "translateX(0)" }, "& $overlay": { opacity: 1, transition: "opacity 0.2s ease" } }, "modal-enter": { extend: "animationEnd" }, "modal-enter-active": { extend: "animationStart" }, "modal-exit": { extend: "animationStart" }, "modal-exit-active": { extend: "animationEnd" } }); var closeButtonStyles = { m: { width: MODAL_CLOSE_BUTTON_SIZE, height: MODAL_CLOSE_BUTTON_SIZE }, icon: { width: MODAL_CLOSE_BUTTON_ICON_SIZE, height: MODAL_CLOSE_BUTTON_ICON_SIZE } }; function _array_like_to_array$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$7(arr) { if (Array.isArray(arr)) return arr; } function _define_property$h(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$7(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$h(target, key, source[key]); }); } return target; } function ownKeys$f(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$f(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$f(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$4(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$4(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$4(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 _sliced_to_array$7(arr, i) { return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$7(); } function _unsupported_iterable_to_array$7(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$7(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen); } var Modal = function(_param) { var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$4(_param, [ "data", "tweakStyles", "title", "size", "isFooterSticky", "footer", "buttons", "buttonsAlign", "hasCloseButton", "hasOverlay", "isOpen", "position", "children", "zIndex", "testId", "shouldCloseOnOverlayClick", "shouldCloseOnEsc", "shouldBlockScroll", "timeout", "unmountOnExit", "onClose" ]); var classes = useStyles$f({ theme: tweakStyles }); var tweakCloseButtonStyles = useTweakStyles({ innerStyles: closeButtonStyles, tweakStyles, className: "tweakCloseButton", currentComponentName: "Modal" }); var _useState = _sliced_to_array$7(React.useState(false), 2), isClickOnOverlay = _useState[0], setIsClickOnOverlay = _useState[1]; var _restProps_in; var isModalOpen = (_restProps_in = restProps.in) !== null && _restProps_in !== void 0 ? _restProps_in : isOpen; var hasFooter = trueReactPlatformHelpers.isReactNodeNotEmpty(footer) || trueReactPlatformHelpers.isArrayNotEmpty(buttons); var overlay = React.useRef(null); var handleOutsideMouseDown = function(event) { if (onClose !== void 0 && event.target === overlay.current) { setIsClickOnOverlay(true); } }; var handleOutsideMouseUp = function(event) { if (onClose === void 0) { return; } if (event.target === overlay.current && isClickOnOverlay) { onClose(); } setIsClickOnOverlay(false); }; var handleEscClose = React.useCallback(function(event) { if (event.code === "Escape" && onClose !== void 0) { onClose(); } }, [ onClose ]); React.useEffect(function() { if (!shouldCloseOnEsc || onClose === void 0 || !isModalOpen) { return function() { return null; }; } document.addEventListener("keydown", handleEscClose); return function() { return document.removeEventListener("keydown", handleEscClose); }; }, [ shouldCloseOnEsc, onClose, isModalOpen, handleEscClose ]); var _obj2, _obj1; return /* @__PURE__ */ jsx(reactTransitionGroup.CSSTransition, _object_spread_props$f(_object_spread$g({ in: isModalOpen, timeout, unmountOnExit, classNames: { enter: classes["modal-enter"], enterActive: classes["modal-enter-active"], exit: classes["modal-exit"], exitActive: classes["modal-exit-active"] } }, restProps), { children: /* @__PURE__ */ jsx("div", { className: classes.modalWrapper, children: /* @__PURE__ */ jsx(reactRemoveScroll.RemoveScroll, { enabled: shouldBlockScroll, forwardProps: true, children: /* @__PURE__ */ jsx("div", _object_spread_props$f(_object_spread$g({ className: clsx(classes.root, classes[size], (_obj2 = {}, _define_property$h(_obj2, classes.overlay, position !== "static" && hasOverlay), _define_property$h(_obj2, classes.sideBar, position === "left" || position === "right"), _define_property$h(_obj2, classes.fixedPosition, position !== "static"), _obj2)), style: { zIndex } }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: /* @__PURE__ */ jsx("div", { ref: overlay, className: clsx(classes.innerOverlay, classes["position-".concat(position)]), onMouseDown: shouldCloseOnOverlayClick ? handleOutsideMouseDown : void 0, onMouseUp: shouldCloseOnOverlayClick ? handleOutsideMouseUp : void 0, children: /* @__PURE__ */ jsxs("div", { className: clsx(classes.modal, (_obj1 = {}, _define_property$h(_obj1, classes.withoutFooter, !hasFooter), _define_property$h(_obj1, classes.withStickyFooter, isFooterSticky), _obj1)), children: [ hasCloseButton && /* @__PURE__ */ jsx("div", { className: classes.close, children: /* @__PURE__ */ jsx(IconButton, { testId: trueReactPlatformHelpers.getTestId(testId, "close-button"), tweakStyles: tweakCloseButtonStyles, view: "cancel-light", icon: "close", onClick: onClose }) }), trueReactPlatformHelpers.isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("h3", { className: clsx(classes.title, _define_property$h({}, classes.titleWithCloseButton, hasCloseButton)), children: title }), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", { className: classes.content, children }), hasFooter && /* @__PURE__ */ jsx("div", { className: clsx(classes.footerWrapper, _define_property$h({}, classes.stickyFooterWrapper, isFooterSticky)), children: /* @__PURE__ */ jsx("div", { className: clsx(classes.footer, classes["buttons-".concat(buttonsAlign)], _define_property$h({}, classes.stickyFooter, isFooterSticky)), children: trueReactPlatformHelpers.isReactNodeNotEmpty(footer) ? footer : buttons }) }) ] }) }) })) }) }) })); }; var useStyles$e = createThemedStyles("MoreMenu", { root: { position: "relative" }, hasCircle: {}, button: { display: "flex", alignItems: "center", justifyContent: "center", width: 32, height: 32, backgroundColor: "transparent", color: colors.FONT_MEDIUM, padding: 0, borderRadius: "50%", border: "none", cursor: "pointer", transition: animations.defaultTransition, transitionProperty: "background-color", "&$hasCircle": { backgroundColor: rgba(colors.GREY_HOVER, 0.5) }, "&:hover": { backgroundColor: rgba(colors.BORDER_MAIN, 0.5) }, "&:focus": { backgroundColor: rgba(colors.FONT_DISABLED, 0.2) }, "&:active, &$active": { backgroundColor: rgba(colors.FONT_DISABLED, 0.5) }, "&$disabled": { backgroundColor: rgba(colors.GREY_FOCUS, 0.5), color: colors.BORDER_MAIN } }, icon: { width: 30, height: 30 }, active: {}, disabled: { cursor: "default" }, menu: { position: "absolute", zIndex: 5, top: "100%", right: 0, marginTop: 6 } }); function _array_like_to_array$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$6(arr) { if (Array.isArray(arr)) return arr; } function _define_property$g(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$6(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$6() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$g(target, key, source[key]); }); } return target; } function ownKeys$e(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$e(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$e(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$6(arr, i) { return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$6(); } function _unsupported_iterable_to_array$6(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen); } var MoreMenu = function(param) { var items = param.items, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasDefaultStateBackground = param.hasDefaultStateBackground, hasDefaultStateBackground = _param_hasDefaultStateBackground === void 0 ? true : _param_hasDefaultStateBackground, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onMenuOpen = param.onMenuOpen, onMenuClose = param.onMenuClose; var classes = useStyles$e({ theme: tweakStyles }); var tweakListStyles = useTweakStyles({ tweakStyles, className: "tweakList", currentComponentName: "MoreMenu" }); var _useState = _sliced_to_array$6(React.useState(false), 2), isMenuShown = _useState[0], setIsMenuShown = _useState[1]; var list = React.useRef(null); var button = React.useRef(null); var isButtonDisabled = isDisabled || items.length === 0; var toggleMenu = function(event) { var isShown = !isMenuShown; event.stopPropagation(); setIsMenuShown(isShown); if (isShown) { onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen(); } else { onMenuClose === null || onMenuClose === void 0 ? void 0 : onMenuClose(); } }; var handleCloseMenu = function() { setIsMenuShown(false); onMenuClose === null || onMenuClose === void 0 ? void 0 : onMenuClose(); }; useOnClickOutsideWithRef(list, handleCloseMenu, button); var _obj2; return /* @__PURE__ */ jsxs("div", { className: classes.root, children: [ /* @__PURE__ */ jsx("button", _object_spread_props$e(_object_spread$f({ ref: button, className: clsx(classes.button, (_obj2 = {}, _define_property$g(_obj2, classes.hasCircle, hasDefaultStateBackground), _define_property$g(_obj2, classes.disabled, isButtonDisabled), _define_property$g(_obj2, classes.active, isMenuShown), _obj2)), onClick: !isButtonDisabled ? toggleMenu : void 0 }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "menu" }) }) })), isMenuShown && !isButtonDisabled && /* @__PURE__ */ jsx("div", { className: classes.menu, ref: list, children: /* @__PURE__ */ jsx(List, { items, testId: trueReactPlatformHelpers.getTestId(testId, "list"), tweakStyles: tweakListStyles, onClick: handleCloseMenu }) }) ] }); }; var useStyles$d = createThemedStyles("MultiSelectInput", { root: { display: "flex", justifyContent: "center", flexDirection: "column", height: "100%", padding: [ 0, 12 ], overflow: "hidden", whiteSpace: "nowrap" }, placeholder: { fontSize: 16, userSelect: "none" }, placeholderSmall: { fontSize: 12, marginBottom: 2, position: "relative" }, values: { width: "100%" }, value: { width: "calc(100% - 64px)", overflow: "hidden", textOverflow: "ellipsis" }, amount: { boxSizing: "border-box", position: "absolute", top: "calc(50% - 11px)", right: 44, height: 22, minWidth: 22, fontSize: 14, lineHeight: "16px", textAlign: "center", padding: [ 2, 4 ] }, indicator: { position: "absolute", top: 0, right: 0, height: "100%", width: 36, borderRadius: 6, display: "flex", alignItems: "center", justifyContent: "center" }, arrow: { width: 20, height: 20, transition: "transform .2s ease" }, arrowUp: { transform: "rotate(180deg)" }, indicatorDisabled: {} }); function MultiSelectInput(param) { var v = param.value, isOpen = param.isOpen, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, tweakStyles = param.tweakStyles, onToggle = param.onToggle; var classes = useStyles$d({ theme: tweakStyles }); var value = v === null || v === void 0 ? void 0 : v.include; return /* @__PURE__ */ jsxs("div", { className: classes.root, onClick: function() { return !isDisabled && onToggle(!isOpen); }, children: [ (value === void 0 || value && value.length === 0) && /* @__PURE__ */ jsx("div", { className: classes.placeholder, children: placeholder }), value !== void 0 && value.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.placeholder, classes.placeholderSmall), children: placeholder }), /* @__PURE__ */ jsxs("div", { className: classes.values, children: [ /* @__PURE__ */ jsx("div", { className: classes.value, children: value.join(", ") }), /* @__PURE__ */ jsx("div", { className: classes.amount, children: value.length }) ] }) ] }), /* @__PURE__ */ jsx("div", { className: clsx(classes.indicator, isDisabled && classes.indicatorDisabled), children: /* @__PURE__ */ jsx("div", { className: clsx(classes.arrow, isOpen && classes.arrowUp), children: /* @__PURE__ */ jsx(Icon, { type: "chevron-down" }) }) }) ] }); } var useStyles$c = createThemedStyles("MultiSelect", { root: { position: "relative", boxSizing: "border-box", height: "100%", width: "100%", cursor: "pointer", fontSize: 16 }, required: { "&:before": { content: '""', position: "absolute", left: -12, top: "50%", transform: "translate(0, -50%)", width: 6, height: 6, borderRadius: "50%" } }, disabled: { cursor: "default" }, listContainer: { position: "absolute", top: "calc(100% + 4px)", left: -1, right: -1, zIndex: 2 }, invalid: {}, open: {}, full: {}, left: {}, right: {} }); var multiSelectListStyles = { root: { width: "100%" } }; function _array_like_to_array$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$5(arr) { if (Array.isArray(arr)) return arr; } function _define_property$f(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$5(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$f(target, key, source[key]); }); } return target; } function ownKeys$d(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$d(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$d(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$5(arr, i) { return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5(); } function _unsupported_iterable_to_array$5(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen); } function MultiSelect(param) { var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, localeKey = param.localeKey, locale2 = param.locale, testId = param.testId, data = param.data, onChange = param.onChange, fetchOptions = param.fetchOptions, tweakStyles = param.tweakStyles; var classes = useStyles$c({ theme: tweakStyles }); var tweakMultiSelectListStyles = useTweakStyles({ innerStyles: multiSelectListStyles, tweakStyles, className: "tweakMultiSelectList", currentComponentName: "MultiSelect" }); var _useState = _sliced_to_array$5(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1]; var ref = React.useRef(null); var handleOnClose = function() { setIsOpen(false); }; useOnClickOutside(ref, handleOnClose, classes.root); return /* @__PURE__ */ jsxs("div", _object_spread_props$d(_object_spread$e({ className: clsx(classes.root, classes[corners], isOpen && classes.open, isInvalid && !isDisabled && classes.invalid, isRequired && classes.required, isDisabled && classes.disabled) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx(MultiSelectInput, { value, isOpen, isDisabled, placeholder, onToggle: function(state) { return setIsOpen(state); } }), isOpen && /* @__PURE__ */ jsx("div", { className: classes.listContainer, ref, children: /* @__PURE__ */ jsx(MultiSelectList, { tweakStyles: tweakMultiSelectListStyles, value, localeKey, locale: locale2, fetchOptions, onChange, onClose: handleOnClose }) }) ] })); } var useStyles$b = createThemedStyles("Notification", { root: { display: "flex" }, inline: { width: "fit-content" }, icon: { width: 20, height: 20, marginRight: 16, flexShrink: 0 }, body: { flexGrow: 1 }, title: { display: "block", fontWeight: "bold" }, text: { display: "block" }, content: {}, s: {}, m: {}, l: {}, withText: {}, withTitle: {}, error: {}, info: {}, warning: {}, ok: {}, "not-ok": {}, custom: {} }); function _define_property$e(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$e(target, key, source[key]); }); } return target; } function ownKeys$c(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$c(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$c(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Notification = function(param) { var children = param.children, type = param.type, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? true : _param_isFullWidth, text = param.text, title = param.title, testId = param.testId, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, data = param.data, icon = param.icon, tweakStyles = param.tweakStyles; var classes = useStyles$b({ theme: tweakStyles }); var hasText = trueReactPlatformHelpers.isStringNotEmpty(text); var hasTitle = trueReactPlatformHelpers.isStringNotEmpty(title); var isDefaultType = type !== "custom"; var hasIcon = trueReactPlatformHelpers.isReactNodeNotEmpty(icon) || isDefaultType; var _obj2; return /* @__PURE__ */ jsxs("div", _object_spread_props$c(_object_spread$d({ className: clsx(classes.root, classes[size], classes[type], (_obj2 = {}, _define_property$e(_obj2, classes.inline, !isFullWidth), _define_property$e(_obj2, classes.withTitle, hasTitle), _define_property$e(_obj2, classes.withText, hasText), _obj2)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ hasIcon && /* @__PURE__ */ jsx("div", { className: classes.icon, children: trueReactPlatformHelpers.isReactNodeNotEmpty(icon) ? renderIcon(icon) : isDefaultType && /* @__PURE__ */ jsx(Icon, { type: "status-".concat(type) }) }), /* @__PURE__ */ jsxs("div", { className: classes.body, children: [ hasTitle && /* @__PURE__ */ jsx("span", _object_spread_props$c(_object_spread$d({ className: classes.title }, trueReactPlatformHelpers.addDataTestId(testId, "title")), { children: title })), hasText && /* @__PURE__ */ jsx("span", _object_spread_props$c(_object_spread$d({ className: classes.text }, trueReactPlatformHelpers.addDataTestId(testId, "text")), { children: text })), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", { className: classes.content, children }) ] }) ] })); }; function _define_property$d(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$d(target, key, source[key]); }); } return target; } var ROW_HEIGHT = 40; var LIST_PADDING = 10; var useStyles$a = createThemedStyles("PhoneInputCountryList", { root: { borderRadius: dimensions.BORDER_RADIUS_SMALL, backgroundColor: colors.CLASSIC_WHITE, border: [ 1, "solid", colors.BORDER_MAIN ], boxShadow: "1px 2px 10px rgba(0, 0, 0, 0.25)", overflow: "hidden" }, searchContainer: { width: "100%", height: dimensions.CONTROL_HEIGHT, display: "flex", alignItems: "center", boxSizing: "border-box", padding: [ 0, 8, 0, 16 ], borderBottom: [ 1, "solid", colors.BORDER_MAIN ] }, icon: { width: 20, height: 20 }, searchIcon: { extend: "icon", color: colors.FONT_LABEL, flexShrink: 0 }, flagList: _object_spread$c({ maxHeight: ROW_HEIGHT * 6 + 2 * LIST_PADDING, padding: [ LIST_PADDING, 0 ] }, helpers.withScrollBar), listItem: { height: ROW_HEIGHT, padding: [ 12, 16 ], display: "flex", alignItems: "center", cursor: "pointer", fontSize: 14, lineHeight: "20px", letterSpacing: 0.15, whiteSpace: "nowrap", boxSizing: "border-box" }, selectedCountry: { backgroundColor: colors.GREY_BACKGROUND }, activeCountry: { backgroundColor: colors.GREY_FOCUS }, flag: { width: 22, height: 16, flexShrink: 0 }, countryName: { color: colors.FONT_MAIN, overflowX: "hidden", textOverflow: "ellipsis", margin: [ 0, 8, 0, 12 ] }, dialCode: { color: colors.GREY_ACTIVE }, emptyResult: { color: colors.FONT_LABEL, padding: [ 6, 16 ] } }); var inputStyles$1 = { inputWrapper: { border: "none", height: "calc(var(--control-height) - 2px)" }, input: { fontSize: 14, lineHeight: "20px", letterSpacing: 0.15 } }; function _array_like_to_array$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$4(arr) { if (Array.isArray(arr)) return arr; } function _define_property$c(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$4(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$4() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _sliced_to_array$4(arr, i) { return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4(); } function _unsupported_iterable_to_array$4(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen); } var PhoneInputCountryList = function(param) { var locale2 = param.locale, placeholder = param.placeholder, selectedCountryCode = param.selectedCountryCode, closeList = param.closeList, noMatchesLabel = param.noMatchesLabel, onChange = param.onChange, tweakStyles = param.tweakStyles; var classes = useStyles$a({ theme: tweakStyles }); var tweakInputStyles = useTweakStyles({ innerStyles: inputStyles$1, tweakStyles, className: "tweakInput", currentComponentName: "PhoneInputCountryList" }); var sortedCountries = React.useMemo(function() { return sortCountriesByLocale(phoneInfo, locale2); }, [ phoneInfo, locale2 ]); var selectedCountryIdx = findCountryIndexByCode(selectedCountryCode, sortedCountries); var _useState = _sliced_to_array$4(React.useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1]; var _useState1 = _sliced_to_array$4(React.useState(sortedCountries), 2), countriesList = _useState1[0], setCountriesList = _useState1[1]; var _useState2 = _sliced_to_array$4(React.useState(selectedCountryIdx !== -1 ? selectedCountryIdx : 0), 2), keyCursorOn = _useState2[0], setKeyCursorOn = _useState2[1]; var handleSearchChange = function(newSearchValue) { var newCountriesList = sortedCountries.filter(function(country) { return checkSearchStringInCountry(country, newSearchValue); }); var defaultKeyCursorOn = newCountriesList.length > 0 ? 0 : -1; var newSelectedCountryIdx = findCountryIndexByCode(selectedCountryCode, newCountriesList); setCountriesList(newCountriesList); setSearchValue(newSearchValue); setKeyCursorOn(newSelectedCountryIdx !== -1 ? newSelectedCountryIdx : defaultKeyCursorOn); }; var handleKeyDown = function(event) { var lastListItemIdx = countriesList.length - 1; if (event.code === "Escape" || event.code === "Tab") { closeList(); } if (event.code === "ArrowDown" && lastListItemIdx !== -1) { event.preventDefault(); setKeyCursorOn(keyCursorOn < lastListItemIdx ? keyCursorOn + 1 : 0); } if (event.code === "ArrowUp" && lastListItemIdx !== -1) { event.preventDefault(); setKeyCursorOn(keyCursorOn > 0 ? keyCursorOn - 1 : lastListItemIdx); } if (event.code === "Enter" || event.code === "NumpadEnter") { if (countriesList.length === 0) { closeList(); } else if (keyCursorOn >= 0) { onChange(countriesList[keyCursorOn], event); } } }; React.useEffect(function() { document.addEventListener("keydown", handleKeyDown, false); return function() { document.removeEventListener("keydown", handleKeyDown, false); }; }); return /* @__PURE__ */ jsxs("div", { className: classes.root, children: [ /* @__PURE__ */ jsxs("div", { className: classes.searchContainer, children: [ /* @__PURE__ */ jsx("div", { className: classes.searchIcon, children: /* @__PURE__ */ jsx(Icon, { type: "search" }) }), /* @__PURE__ */ jsx(Input, { value: searchValue, placeholder, onChange: handleSearchChange, tweakStyles: tweakInputStyles, isClearable: true, shouldFocusOnMount: true }) ] }), /* @__PURE__ */ jsxs("div", { className: classes.flagList, children: [ countriesList.map(function(country, index) { var _obj2; return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, { active: keyCursorOn === index, options: { block: "nearest" }, children: /* @__PURE__ */ jsxs("div", { className: clsx(classes.listItem, (_obj2 = {}, _define_property$c(_obj2, classes.activeCountry, selectedCountryIdx === index), _define_property$c(_obj2, classes.selectedCountry, keyCursorOn === index), _obj2)), onMouseEnter: function() { return setKeyCursorOn(index); }, onClick: function(e) { return onChange(country, e); }, children: [ /* @__PURE__ */ jsx("div", { className: classes.flag, children: /* @__PURE__ */ jsx(Flag, { countryCode: country.countryCode }) }), /* @__PURE__ */ jsx("div", { className: classes.countryName, children: getCountryTextByLocale(country, locale2) }), /* @__PURE__ */ jsx("div", { className: classes.dialCode, children: "+".concat(country.dialCode) }) ] }) }, country.countryCode); }), countriesList.length === 0 && /* @__PURE__ */ jsx("div", { className: classes.emptyResult, children: noMatchesLabel }) ] }) ] }); }; var DEFAULT_VALUE$1 = { phoneNumber: "", dialCode: "" }; var COUNTRY_SELECT_WIDTH = 80; var useStyles$9 = createThemedStyles("PhoneInput", { root: { width: "100%", position: "relative", boxSizing: "border-box" }, countrySelectContainer: { position: "absolute", left: 1, top: 1, width: COUNTRY_SELECT_WIDTH, height: dimensions.CONTROL_HEIGHT - 2, display: "flex", alignItems: "center", justifyContent: "center", borderRight: [ "solid", 1, colors.BORDER_MAIN ], transition: "border-color 0.2s ease-in", cursor: "pointer", zIndex: 2 }, disabledCountrySelect: { cursor: "default" }, flag: { width: 22, height: 16 }, arrow: { width: 20, color: colors.GREY_ACTIVE, marginLeft: 8, transition: "transform .2s ease" }, up: { transform: "rotate(180deg)" }, invalidArrow: { color: colors.RED_WARNING }, focusedBorder: {}, invalidBorder: { borderColor: colors.RED_WARNING }, inputContainer: { position: "relative", flex: 1 }, flagListContainer: { position: "absolute", width: "100%", top: dimensions.CONTROL_HEIGHT + 6, left: -1, zIndex: 3 } }); var inputStyles = { inputWrapper: { paddingLeft: COUNTRY_SELECT_WIDTH }, label: { marginLeft: COUNTRY_SELECT_WIDTH } }; function _array_like_to_array$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$3(arr) { if (Array.isArray(arr)) return arr; } function _define_property$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$3(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$b(target, key, source[key]); }); } return target; } function ownKeys$b(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$b(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$b(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$3(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$3(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 _sliced_to_array$3(arr, i) { return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3(); } function _unsupported_iterable_to_array$3(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen); } var PhoneInput = function(_param) { var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$3(_param, [ "locale", "value", "onChange", "data", "testId", "isDisabled", "isInvalid", "isActive", "tweakStyles", "codeSearchPlaceholder", "noMatchesLabel" ]); var classes = useStyles$9({ theme: tweakStyles }); var tweakInputStyles = useTweakStyles({ innerStyles: inputStyles, tweakStyles, className: "tweakInput", currentComponentName: "PhoneInput" }); var tweakCountryListStyles = useTweakStyles({ tweakStyles, className: "tweakCountryList", currentComponentName: "PhoneInput" }); var _useState = _sliced_to_array$3(React.useState(false), 2), isListOpen = _useState[0], setIsListOpen = _useState[1]; var _useState1 = _sliced_to_array$3(React.useState(false), 2), isFocused = _useState1[0], setFocused = _useState1[1]; var list = React.useRef(null); var inputWrapper = React.useRef(null); var inputRef = React.useRef(null); var phoneWithCode = getFullPhone(value); var countryCode = React.useMemo(function() { var _value_countryCode; return (_value_countryCode = value === null || value === void 0 ? void 0 : value.countryCode) !== null && _value_countryCode !== void 0 ? _value_countryCode : getCountryCodeFromPhone(phoneWithCode); }, [ value.dialCode, value.phoneNumber ]); var handleClose = function() { setIsListOpen(false); }; var handleChange = function(inputValue, event) { if (event.type === "change") { var newValue = inputValue.replace(/[^0-9]/g, ""); var selectedCountryCode = countryCode; var selectedCountry = findCountryByCode(countryCode); if (selectedCountry !== void 0) { var isSomeFullCodeValid = selectedCountry.fullCodes.some(function(fullCode) { if (newValue.length >= fullCode.length) { return newValue.startsWith(fullCode); } else { return fullCode.startsWith(newValue); } }); var isDialCodeValid = newValue.startsWith(selectedCountry.dialCode); if (!isSomeFullCodeValid || !isDialCodeValid) { selectedCountryCode = void 0; } } onChange(getPhoneObjFromString(newValue, selectedCountryCode), event); } }; var handleSelect = function(newPhoneInfo, event) { if (newPhoneInfo.countryCode !== countryCode) { onChange({ phoneNumber: "", dialCode: newPhoneInfo.dialCode, countryCode: newPhoneInfo.countryCode }, event); } handleClose(); var input = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current; if (input !== null) { input.focus(); } }; var handleFocus = function(event) { setFocused(true); if (inputProps.onFocus !== void 0) { inputProps === null || inputProps === void 0 ? void 0 : inputProps.onFocus(event); } }; var handleBlur = function(event) { setFocused(false); if (inputProps.onBlur !== void 0) { inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur(event); } }; useOnClickOutsideWithRef(list, handleClose, inputWrapper); var _obj2, _obj1; return /* @__PURE__ */ jsxs("div", _object_spread_props$b(_object_spread$b({ className: classes.root }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("div", { className: clsx(classes.countrySelectContainer, (_obj2 = {}, _define_property$b(_obj2, classes.disabledCountrySelect, isDisabled), _define_property$b(_obj2, classes.invalidBorder, isInvalid), _define_property$b(_obj2, classes.focusedBorder, isActive || isListOpen || isFocused), _obj2)), ref: inputWrapper, onClick: !isDisabled ? function() { return setIsListOpen(!isListOpen); } : void 0, children: [ /* @__PURE__ */ jsx("div", { className: classes.flag, children: /* @__PURE__ */ jsx(Flag, { countryCode }) }), /* @__PURE__ */ jsx("div", { className: clsx(classes.arrow, (_obj1 = {}, _define_property$b(_obj1, classes.up, isListOpen), _define_property$b(_obj1, classes.invalidArrow, isInvalid), _obj1)), children: /* @__PURE__ */ jsx(Icon, { type: "chevron-down" }) }) ] }), /* @__PURE__ */ jsx(Input, _object_spread$b({ value: phoneWithCode, mask: getPhoneMask(countryCode), ref: inputRef, isDisabled, isInvalid, isActive: isListOpen || isActive, testId: trueReactPlatformHelpers.getTestId(testId, "input"), tweakStyles: tweakInputStyles, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur }, inputProps)), isListOpen && /* @__PURE__ */ jsx("div", { className: classes.flagListContainer, ref: list, children: /* @__PURE__ */ jsx(PhoneInputCountryList, { selectedCountryCode: countryCode, placeholder: codeSearchPlaceholder, locale: locale2, tweakStyles: tweakCountryListStyles, noMatchesLabel, onChange: handleSelect, closeList: handleClose }) }) ] })); }; var useStyles$8 = createThemedStyles("RadioButton", { input: { appearance: "none", cursor: "pointer", borderRadius: "50%", width: 18, height: 18, outline: "none", transition: "0.1s all ease-in-out", margin: 0, border: [ 1, "solid", "#000" ], "&:checked": { border: [ 5, "solid", "#000" ] } }, label: { display: "flex", alignItems: "center", cursor: "pointer" }, content: { marginLeft: 8 }, isDisabled: { cursor: "default" }, isInvalid: {} }); function _define_property$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$a(target, key, source[key]); }); } return target; } function ownKeys$a(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$a(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$a(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function RadioButton(param) { var children = param.children, value = param.value, groupName = param.groupName, isChecked = param.isChecked, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange; var classes = useStyles$8({ theme: tweakStyles }); var _obj2; return /* @__PURE__ */ jsxs("label", _object_spread_props$a(_object_spread$a({ className: clsx(classes.label, isDisabled && classes.isDisabled), htmlFor: "".concat(groupName, "--").concat(value) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("input", { id: "".concat(groupName, "--").concat(value), type: "radio", value, name: groupName, checked: isChecked, disabled: isDisabled, onChange: function(event) { return onChange(event.target.value); }, className: clsx(classes.input, (_obj2 = {}, _define_property$a(_obj2, classes.isDisabled, isDisabled), _define_property$a(_obj2, classes.isInvalid, isInvalid), _obj2)) }), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", { className: classes.content, children }) ] })); } var SELECTOR_TOTAL_GAP = 4; var SELECTOR_BORDER_WIDTH = 1; var SELECTOR_GAP = SELECTOR_TOTAL_GAP - SELECTOR_BORDER_WIDTH; var getSelectorLineStyle = function(activeElementData) { return trueReactPlatformHelpers.isNotEmpty(activeElementData) ? { width: activeElementData.clientWidth - SELECTOR_GAP * 2, transform: "translateX(".concat(activeElementData.offsetLeft, "px)") } : void 0; }; var useStyles$7 = createThemedStyles("Selector", { root: { display: "flex", alignItems: "center", listStyle: "none", position: "relative" }, required: { "&::before": { top: "50%", left: -12, width: 6, height: 6, content: '""', position: "absolute", transform: "translate(0, -50%)", borderRadius: "50%", backgroundColor: colors.ORANGE_FOCUS } }, invalid: {}, optionWrapper: { height: "100%" }, option: { display: "flex", alignItems: "center", justifyContent: "center", appearance: "none", borderRadius: 0, padding: 0, border: "none", cursor: "pointer", width: "100%" }, active: { cursor: "default" }, disabled: { cursor: "default", "& $optionText": { color: colors.FONT_LABEL } }, optionIcon: { width: 20, height: 20 }, optionText: {}, iconFromRight: { "& $option": { flexDirection: "row-reverse" } }, s: {}, m: {}, l: {}, line: {}, selector: { display: "grid", gridAutoFlow: "column", gridAutoColumns: "1fr", borderRadius: dimensions.BORDER_RADIUS_SMALL, backgroundColor: colors.BORDER_LIGHT, width: "fit-content", position: "relative", border: [ "solid", SELECTOR_BORDER_WIDTH, "transparent" ], "& $line": { content: '""', position: "absolute", left: SELECTOR_GAP, height: "calc(100% - ".concat(SELECTOR_GAP * 2, "px)"), backgroundColor: colors.CLASSIC_WHITE, borderRadius: dimensions.BORDER_RADIUS_SMALL, transition: animations.defaultTransition, transitionProperty: "transform, width" }, "&$invalid": { borderColor: colors.RED_WARNING }, "& $option": { gap: 6, position: "relative", zIndex: 1, height: "100%", color: colors.FONT_MEDIUM, fontSize: 16, transition: animations.defaultTransition, transitionProperty: "color", background: "none", "&$s": { padding: [ 4, 8 ], fontSize: 10, lineHeight: "14px" }, "&$m": { padding: [ 14, 18 ] }, "&$l": { padding: [ 16, 24 ] }, "&:hover, &:focus": { color: colors.FONT_MAIN }, "&$active": { color: colors.FONT_MAIN } } }, autoWidth: { "&$selector": { gridAutoColumns: "auto", "& $line": { width: "unset", transform: "unset" } } } }); function _array_like_to_array$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$2(arr) { if (Array.isArray(arr)) return arr; } function _array_without_holes(arr) { if (Array.isArray(arr)) return _array_like_to_array$2(arr); } function _define_property$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } function _iterable_to_array_limit$2(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _non_iterable_spread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$9(target, key, source[key]); }); } return target; } function ownKeys$9(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$9(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$9(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array$2(arr, i) { return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2(); } function _to_consumable_array(arr) { return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread(); } function _unsupported_iterable_to_array$2(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen); } function Selector(param) { var options = param.options, value = param.value, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_hasSameOptionsWidth = param.hasSameOptionsWidth, hasSameOptionsWidth = _param_hasSameOptionsWidth === void 0 ? true : _param_hasSameOptionsWidth, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_size = param.size, size = _param_size === void 0 ? "l" : _param_size, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange; var classes = useStyles$7({ theme: tweakStyles }); var optionsValues = options.map(function(opt) { return opt.value; }); var _useState = _sliced_to_array$2(React.useState([]), 2), elementsData = _useState[0], setElementsData = _useState[1]; var listRef = React.useRef(null); if (trueReactPlatformHelpers.hasDuplicates(optionsValues)) { console.error("Selector: Значения options.value должны быть уникальными"); } React.useEffect(function() { var listEl = listRef.current; if (listEl === null) { return; } setElementsData(_to_consumable_array(listEl.querySelectorAll(".".concat(classes.optionWrapper)))); }, [ options, size ]); var activeElementData = trueReactPlatformHelpers.isNotEmpty(value) ? elementsData[optionsValues.indexOf(value)] : void 0; var _obj2; return /* @__PURE__ */ jsxs("div", _object_spread_props$9(_object_spread$9({ className: clsx(classes.root, classes.selector, (_obj2 = {}, _define_property$9(_obj2, classes.iconFromRight, iconPosition === "right"), _define_property$9(_obj2, classes.invalid, isInvalid), _define_property$9(_obj2, classes.required, isRequired), _define_property$9(_obj2, classes.autoWidth, hasSameOptionsWidth), _obj2)), ref: listRef }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ trueReactPlatformHelpers.isNotEmpty(activeElementData) && /* @__PURE__ */ jsx("div", { className: classes.line, style: getSelectorLineStyle(activeElementData) }), options.map(function(option) { var optionId = option.value.toString(); var _option_isDisabled; var isDisabledOption = (_option_isDisabled = option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : isDisabled; var isActiveOption = option.value === value; var _obj3; return /* @__PURE__ */ jsx("div", _object_spread_props$9(_object_spread$9({ className: classes.optionWrapper }, trueReactPlatformHelpers.addDataTestId(testId)), { children: /* @__PURE__ */ jsxs("button", _object_spread_props$9(_object_spread$9({ type: "button", className: clsx(classes.option, classes[size], (_obj3 = {}, _define_property$9(_obj3, classes.active, isActiveOption), _define_property$9(_obj3, classes.disabled, isDisabledOption), _obj3)), disabled: isDisabledOption, onClick: !isDisabledOption ? function() { return onChange(option.value); } : void 0 }, trueReactPlatformHelpers.addDataTestId(trueReactPlatformHelpers.getTestId(testId, optionId))), { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(option.icon) && /* @__PURE__ */ jsx("div", { className: classes.optionIcon, children: renderIcon(option.icon) }), /* @__PURE__ */ jsx("div", { className: classes.optionText, children: option.label }) ] })) }), optionId); }) ] })); } var SMART_INPUT_REGEX_MAP = { default: /./i, agencyName: /^[a-zA-Z\s0-9-]*$/i, surname: /^[a-zA-Z\s-]*$/i, name: /^[a-zA-Z\s-.`']*$/i, surnameRuEn: /^[a-zA-Zа-яА-Я\s-]*$/i, nameRuEn: /^[a-zA-Zа-яА-Я\s-.`']*$/i, email: /^[a-zA-Z0-9@_\-.+']*$/i, digits: /^[0-9]*$/i, docNumber: /^[a-zA-Z0-9]*$/i, benefitCert: /^[a-zA-Z0-9/]*$/i }; var CharactersMap = { й: "q", ц: "w", у: "e", к: "r", е: "t", н: "y", г: "u", ш: "i", щ: "o", з: "p", х: "[", ъ: "]", ф: "a", ы: "s", в: "d", а: "f", п: "g", р: "h", о: "j", л: "k", д: "l", ж: ";", э: "'", я: "z", ч: "x", с: "c", м: "v", и: "b", т: "n", ь: "m", б: ",", ю: ".", ё: "`" }; var TransliterationMap = { й: "i", ц: "ts", у: "u", к: "k", е: "e", н: "n", г: "g", ш: "sh", щ: "shch", з: "z", х: "h", ъ: "ie", ф: "f", ы: "y", в: "v", а: "a", п: "p", р: "r", о: "o", л: "l", д: "d", ж: "zh", э: "e", я: "ia", ч: "ch", с: "s", м: "m", и: "i", т: "t", ь: "", б: "b", ю: "iu", ё: "e" }; var transformCaseSensitive = function(smartType, map, symbol) { var isUpperCase = symbol.toUpperCase() === symbol; var _map_symbol_toLowerCase; var result = smartType.endsWith("RuEn") ? symbol.toLowerCase() : (_map_symbol_toLowerCase = map[symbol.toLowerCase()]) !== null && _map_symbol_toLowerCase !== void 0 ? _map_symbol_toLowerCase : symbol; return isUpperCase ? result.toUpperCase() : result; }; function _array_like_to_array$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes$1(arr) { if (Array.isArray(arr)) return arr; } function _define_property$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit$1(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$8(target, key, source[key]); }); } return target; } function ownKeys$8(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$8(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$8(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$2(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$2(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$2(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 _sliced_to_array$1(arr, i) { return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1(); } function _unsupported_iterable_to_array$1(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen); } var SmartInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var getUpperCaseIfNeeded = function getUpperCaseIfNeeded2(str) { return isUpperCase ? str.toUpperCase() : str; }; var onChange = _param.onChange, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, maxLength = _param.maxLength, rest = _object_without_properties$2(_param, [ "onChange", "isUpperCase", "smartType", "regExp", "value", "maxLength" ]); var _useState = _sliced_to_array$1(React.useState(getUpperCaseIfNeeded(value)), 2), currentValue = _useState[0], setCurrentValue = _useState[1]; var _useState1 = _sliced_to_array$1(React.useState(null), 2), caretPosition = _useState1[0], setCaretPosition2 = _useState1[1]; var _useState2 = _sliced_to_array$1(React.useState(null), 2), input = _useState2[0], setInput = _useState2[1]; var regex = regExp || SMART_INPUT_REGEX_MAP[smartType]; React.useEffect(function() { if (input && input.type !== "email" && input.selectionStart !== caretPosition) { input.selectionStart = caretPosition; input.selectionEnd = caretPosition; } }, [ caretPosition ]); React.useEffect(function() { setCurrentValue(getUpperCaseIfNeeded(value)); }, [ value ]); var handleChange = function(str, event) { var mappedValue = str.split("").map(function(symbol) { return regex.test(symbol) ? symbol : transformCaseSensitive(smartType, smartType !== "email" ? CharactersMap : _object_spread_props$8(_object_spread$8({}, CharactersMap), { '"': "@" }), symbol); }).filter(function(symbol) { return regex.test(symbol); }).join(""); var domElement = event === null || event === void 0 ? void 0 : event.currentTarget; if (domElement) { if (!input) { setInput(domElement); } setCurrentValue(getUpperCaseIfNeeded(mappedValue)); onChange(getUpperCaseIfNeeded(mappedValue)); if (mappedValue !== currentValue) { setCaretPosition2(domElement.selectionStart); } else { setCaretPosition2(domElement.selectionStart ? domElement.selectionStart - 1 : null); } } }; var handlePaste = function(event) { var str = event.clipboardData.getData("text/plain").split("").join(""); var domElement = event.currentTarget; if (!input) { setInput(domElement); } event.preventDefault(); var _domElement_selectionStart; var selectionStart = (_domElement_selectionStart = domElement.selectionStart) !== null && _domElement_selectionStart !== void 0 ? _domElement_selectionStart : 0; var _domElement_selectionEnd; var selectionEnd = (_domElement_selectionEnd = domElement.selectionEnd) !== null && _domElement_selectionEnd !== void 0 ? _domElement_selectionEnd : 0; var mappedValue = str.split("").map(function(symbol) { return regex.test(symbol) ? symbol : transformCaseSensitive(smartType, TransliterationMap, symbol); }).filter(function(letter) { return regex.test(letter); }).join(""); var newValueLength = mappedValue.length + currentValue.length - (selectionEnd - selectionStart); if (maxLength !== void 0 && maxLength >= 0 && newValueLength > maxLength) { var validMappedValueLength = mappedValue.length - (newValueLength - maxLength); mappedValue = mappedValue.substring(0, validMappedValueLength); } var newValue = getUpperCaseIfNeeded("".concat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.substring(0, selectionStart)).concat(mappedValue).concat(currentValue === null || currentValue === void 0 ? void 0 : currentValue.substring(selectionEnd))); setCaretPosition2(selectionStart + mappedValue.length); setCurrentValue(newValue); onChange(newValue); }; return /* @__PURE__ */ jsx(Input, _object_spread_props$8(_object_spread$8({}, rest), { ref, maxLength, onChange: handleChange, onPaste: handlePaste, value: currentValue })); }); var useStyles$6 = createThemedStyles("Status", { root: { display: "inline-flex", verticalAlign: "middle", color: "var(--status-color)", backgroundColor: "var(--status-background)", width: "max-content", alignItems: "center", "& > *": { flexShrink: 0 } }, icon: { "& > div": { display: "inline-block" } }, iconLeft: { order: -1 }, text: {}, badge: { color: colors.CLASSIC_WHITE, backgroundColor: "var(--status-color)" }, xs: { padding: [ 2, 4 ], gap: 4, borderRadius: 2, fontSize: 12, lineHeight: "16px", letterSpacing: 0.24, fontWeight: "bold", "& $icon": { width: 16, height: 16 }, "& $badge": { padding: [ 0, 2 ], marginRight: -1, borderRadius: 4 } }, s: { padding: [ 3, 8, 5, 8 ], gap: 4, borderRadius: 6, fontSize: 13, lineHeight: "16px", letterSpacing: 0.2, fontWeight: "bold", "& $text": {}, "& $icon": { width: 16, height: 16 }, "& $badge": { padding: [ 0, 4, 2, 4 ], margin: [ 0, -4, -2, 0 ], borderRadius: 4 } }, m: { padding: [ 7, 12 ], gap: 4, borderRadius: 6, fontSize: 15, lineHeight: "18px", letterSpacing: 0.15, fontWeight: "bold", "& $text": {}, "& $icon": { width: 18, height: 18 }, "& $badge": { padding: [ 2, 4 ], margin: [ -2, -7, -2, 0 ], borderRadius: 4 } }, green: { "--status-background": rgba("#D4E3AC", 0.5), "--status-color": "#6F990F" }, blue: { "--status-background": rgba("#AABFFC", 0.4), "--status-color": "#4C6EBF" }, grey: { "--status-background": rgba("#95A0B3", 0.25), "--status-color": "#7A869A" }, orange: { "--status-background": rgba("#FCD3A9", 0.5), "--status-color": "#E5741C" }, red: { "--status-background": rgba("#F7949A", 0.25), "--status-color": "#F14D56" }, teal: { "--status-background": rgba("#8CE3EA", 0.4), "--status-color": "#0092A6" }, violet: { "--status-background": rgba("#BEABE0", 0.4), "--status-color": "#7450B2" }, custom: {} }); function _define_property$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$7(target, key, source[key]); }); } return target; } function ownKeys$7(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$7(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Status = function(param) { var children = param.children, color = param.color, _param_size = param.size, size = _param_size === void 0 ? "s" : _param_size, icon = param.icon, _param_iconPosition = param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "right" : _param_iconPosition, badge = param.badge, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data; var classes = useStyles$6({ theme: tweakStyles }); return /* @__PURE__ */ jsxs("span", _object_spread_props$7(_object_spread$7({ className: clsx(classes.root, classes[size], classes[color]) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", { className: classes.text, children }), trueReactPlatformHelpers.isReactNodeNotEmpty(icon) && /* @__PURE__ */ jsx("span", { className: clsx(classes.icon, iconPosition === "left" && classes.iconLeft), children: renderIcon(icon) }), trueReactPlatformHelpers.isReactNodeNotEmpty(badge) && /* @__PURE__ */ jsx("span", { className: classes.badge, children: badge }) ] })); }; var useStyles$5 = createThemedStyles("Switch", { root: { display: "flex", alignItems: "center", cursor: "pointer" }, primary: {}, secondary: {}, invalid: {}, disabled: { pointerEvents: "none", cursor: "default" }, checked: { "& $switch::before": { left: 18 } }, switch: { position: "relative", flexShrink: 0, display: "block", width: 36, height: 20, backgroundColor: "#333", borderRadius: 10, boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "opacity, background-color", "&::before": { content: '""', position: "absolute", top: 2, left: 2, right: "auto", display: "block", width: 16, height: 16, backgroundColor: "#fff", borderRadius: "50%", zIndex: 1, transition: animations.defaultTransition, transitionProperty: "left, background-color" } }, input: { display: "none" }, label: { transition: animations.defaultTransition, transitionProperty: "opacity, color" }, labelLeft: { order: -1, marginRight: 12 }, labelRight: { marginLeft: 12 } }); function _define_property$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$6(target, key, source[key]); }); } return target; } function ownKeys$6(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$6(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Switch = function(param) { var _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, value = param.value, children = param.children, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, _param_color = param.color, color = _param_color === void 0 ? "primary" : _param_color, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, onChange = param.onChange; var classes = useStyles$5({ theme: tweakStyles }); var handleChange = function() { return onChange({ name: value, isEnabled: !isChecked }); }; var _obj2; return /* @__PURE__ */ jsxs("label", _object_spread_props$6(_object_spread$6({ className: clsx(classes.root, classes[color], (_obj2 = {}, _define_property$6(_obj2, classes.disabled, isDisabled), _define_property$6(_obj2, classes.checked, isChecked), _define_property$6(_obj2, classes.invalid, isInvalid), _obj2)) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("span", { className: classes.switch, children: /* @__PURE__ */ jsx("input", _object_spread$6({ type: "checkbox", name: value, className: classes.input, onChange: isDisabled ? void 0 : handleChange, checked: isChecked, disabled: isDisabled }, trueReactPlatformHelpers.addDataTestId(testId, "input"))) }), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("span", { className: clsx(classes.label, classes[labelPosition === "left" ? "labelLeft" : "labelRight"]), children }) ] })); }; function _define_property$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$5(target, key, source[key]); }); } return target; } function ownKeys$5(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$5(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var PADDING_X = 12; var useStyles$4 = createThemedStyles("TextArea", { root: { width: "100%", height: "100%", display: "flex", flexDirection: "column" }, wrapper: { display: "flex", position: "relative", width: "100%", flexGrow: 1, boxSizing: "border-box", transition: animations.defaultTransition, transitionProperty: "border-color", backgroundColor: "white", border: [ "solid", 1, "lightgray" ] }, textarea: _object_spread_props$5(_object_spread$5({}, helpers.withScrollBar), { width: "100%", height: "100%", outline: "none", outlineStyle: "none", fontFamily: "inherit", fontSize: 16, padding: [ 14, PADDING_X, 8 ], scrollPadding: "14px 0 8px", transition: animations.defaultTransition, transitionProperty: "background-color", border: "none", resize: "none", "&:disabled": { extend: "disabled" }, "&::placeholder": { opacity: 1 }, MozAppearance: "textfield", "&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": { WebkitAppearance: "none", margin: 0 } }), autosize: { display: "inline-grid", gridTemplateRows: "minmax(0, 100%)", "& > $textarea, &::after": { gridArea: "1 / 1 / 2 / 2" }, "&::after": { extend: "textarea", content: 'attr(data-value) " "', overflowWrap: "break-word", whiteSpace: "pre-wrap", visibility: "hidden", scrollbarGutter: "stable" } }, focused: { position: "relative", zIndex: 1 }, withFloatingLabel: { "& $textarea, &::after": { paddingTop: 24, scrollPaddingTop: "24px" } }, floating: {}, activeLabel: { display: "none", "&$floating": { display: "block", transform: "scale(0.75) translateY(-120%)" } }, required: { "&:before": { content: '""', position: "absolute", left: -12, top: 20, width: 6, height: 6, borderRadius: "50%", backgroundColor: "red" } }, disabled: {}, label: { position: "absolute", pointerEvents: "none", left: PADDING_X, top: PADDING_X * 2, transformOrigin: "top left", transform: "translateY(-50%)", transition: animations.defaultTransition, transitionProperty: "transform, color", fontSize: 16 }, invalid: { borderColor: "red" }, invalidLabel: {}, error: { fontSize: 12, paddingTop: 4, paddingLeft: 13, color: "red" }, requiredLabel: { "&:after": { content: '""', position: "absolute", right: -8, top: 4, transform: "translate(0, -50%)", width: 6, height: 6, borderRadius: "50%", backgroundColor: "red" } }, symbolsCount: { display: "block", textAlign: "right", marginTop: 4, fontSize: 12, marginLeft: "auto", paddingLeft: 32, whiteSpace: "nowrap" }, symbolsCountError: { color: "red" }, footer: { display: "flex" }, info: { fontSize: 12, paddingTop: 4, paddingLeft: 13 } }); function _array_like_to_array(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _array_with_holes(arr) { if (Array.isArray(arr)) return arr; } function _define_property$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _iterable_to_array_limit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } function _non_iterable_rest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _object_spread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$4(target, key, source[key]); }); } return target; } function ownKeys$4(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$4(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _sliced_to_array(arr, i) { return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest(); } function _unsupported_iterable_to_array(o, minLen) { if (!o) return; if (typeof o === "string") return _array_like_to_array(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen); } var DEFAULT_VALUE = ""; var TextArea = /* @__PURE__ */ React.forwardRef(function(param, ref) { var _param_value = param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = param.label, placeholder = param.placeholder, isDisabled = param.isDisabled, _param_hasFloatingLabel = param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, infoMessage = param.infoMessage, errorMessage = param.errorMessage, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, name = param.name, _param_hasRequiredLabel = param.hasRequiredLabel, hasRequiredLabel = _param_hasRequiredLabel === void 0 ? false : _param_hasRequiredLabel, _param_shouldFocusOnMount = param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, _param_hasCounter = param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, _param_shouldTrimAfterMaxLength = param.shouldTrimAfterMaxLength, shouldTrimAfterMaxLength = _param_shouldTrimAfterMaxLength === void 0 ? false : _param_shouldTrimAfterMaxLength, _param_isAutoSizeable = param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? true : _param_isAutoSizeable, _param_shouldAlwaysShowPlaceholder = param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, maxLength = param.maxLength, rows = param.rows, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onChange = param.onChange, onPaste = param.onPaste, onFocus = param.onFocus, onBlur = param.onBlur; var classes = useStyles$4({ theme: tweakStyles }); var _useState = _sliced_to_array(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1]; var handleOnChange = function(event) { var rawValue = event.currentTarget.value; var newValue = shouldTrimAfterMaxLength && maxLength !== void 0 ? trimStringToMaxLength(rawValue, maxLength) : rawValue; onChange(newValue, event); }; var handleOnFocus = function(event) { setFocused(true); if (onFocus !== void 0) { onFocus(event); } }; var handleOnBlur = function(event) { setFocused(false); if (onBlur !== void 0) { onBlur(event); } }; var hasFocus = isFocused || isActive; var hasValue = value !== void 0 && value !== ""; var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label); var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder); var props = _object_spread$4({ className: classes.textarea, onFocus: handleOnFocus, onBlur: handleOnBlur, onChange: handleOnChange, value, onPaste, disabled: isDisabled, placeholder: hasPlaceholder ? placeholder : void 0, name, autoFocus: shouldFocusOnMount, rows }, trueReactPlatformHelpers.addDataTestId(testId)); var hasInfoMessage = trueReactPlatformHelpers.isStringNotEmpty(infoMessage); var hasErrorMessage = trueReactPlatformHelpers.isStringNotEmpty(errorMessage); var _obj2, _obj1; return /* @__PURE__ */ jsxs("div", _object_spread_props$4(_object_spread$4({ className: classes.root }, addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("div", { className: clsx(classes.wrapper, (_obj2 = {}, _define_property$4(_obj2, classes.required, isRequired && !hasRequiredLabel), _define_property$4(_obj2, classes.invalid, isInvalid), _define_property$4(_obj2, classes.focused, hasFocus), _define_property$4(_obj2, classes.disabled, isDisabled), _define_property$4(_obj2, classes.autosize, isAutoSizeable), _define_property$4(_obj2, classes.withFloatingLabel, hasFloatingLabel && hasLabel), _obj2)), "data-value": isAutoSizeable ? value : void 0, children: [ hasLabel && /* @__PURE__ */ jsx("span", { className: clsx(classes.label, (_obj1 = {}, _define_property$4(_obj1, classes.invalidLabel, isInvalid), _define_property$4(_obj1, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$4(_obj1, classes.activeLabel, hasFocus || hasValue), _define_property$4(_obj1, classes.floating, hasFloatingLabel), _obj1)), children: label }), /* @__PURE__ */ jsx("textarea", _object_spread$4({ ref }, props)) ] }), /* @__PURE__ */ jsxs("div", { className: classes.footer, children: [ hasInfoMessage && /* @__PURE__ */ jsx("div", { className: classes.info, children: infoMessage }), !hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", { className: classes.error, children: errorMessage }), hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", { className: clsx(classes.symbolsCount, _define_property$4({}, classes.symbolsCountError, value.length > maxLength)), children: [ value.length, " / ", maxLength ] }) ] }), hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", { className: classes.error, children: errorMessage }) ] })); }); var useStyles$3 = createThemedStyles("TextButton", { root: { display: "flex", alignItems: "center", height: 24, padding: 0, background: "transparent", border: "none", borderRadius: 0, cursor: "pointer", outline: "none", transition: animations.defaultTransition, transitionProperty: "color", "&[disabled]": { cursor: "default", pointerEvents: "none" } }, xl: { fontSize: 16, "& $content": { gap: 14 } }, l: { fontSize: 14, letterSpacing: "0.15px", "& $content": { gap: 10, "&$reverseContent": { gap: 6 } } }, primary: {}, secondary: {}, custom: {}, active: {}, disabled: {}, bold: { fontWeight: "bold" }, iconContainer: { display: "flex", alignItems: "center", justifyContent: "center" }, circle: { width: 24, height: 24, borderRadius: "50%", transition: animations.defaultTransition, transitionProperty: [ "background", "color" ] }, icon: { width: 20, height: 20 }, content: { display: "flex", alignItems: "center", height: "100%" }, reverseContent: { flexDirection: "row-reverse" }, loader: { display: "none", height: 8, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }, loading: { "& $content": { visibility: "hidden" }, "& $loader": { display: "block" } } }); var preloaderStyles = { tweakDotsPreloader: { fadedDot: { width: 6, height: 6 } }, logo: { width: 24, height: 24 }, default: { width: 24, height: 24 } }; function _define_property$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$3(target, key, source[key]); }); } return target; } function ownKeys$3(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$3(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties$1(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose$1(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; } var TextButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) { var children = _param.children, icon = _param.icon, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isBold = _param.isBold, isBold = _param_isBold === void 0 ? false : _param_isBold, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_hasCircleUnderIcon = _param.hasCircleUnderIcon, hasCircleUnderIcon = _param_hasCircleUnderIcon === void 0 ? false : _param_hasCircleUnderIcon, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$1(_param, [ "children", "icon", "view", "isDisabled", "isBold", "isLoading", "isActive", "hasCircleUnderIcon", "size", "iconPosition", "preloaderType", "type", "testId", "tweakStyles", "data", "onClick" ]); var classes = useStyles$3({ theme: tweakStyles }); var tweakPreloaderStyles = useTweakStyles({ innerStyles: preloaderStyles, tweakStyles, className: "tweakPreloader", currentComponentName: "TextButton" }); var hasNoAction = isDisabled || isLoading; var _obj2; return /* @__PURE__ */ jsxs("button", _object_spread_props$3(_object_spread$3({ ref, type, className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$3(_obj2, classes.bold, isBold), _define_property$3(_obj2, classes.loading, isLoading), _define_property$3(_obj2, classes.active, isActive), _define_property$3(_obj2, classes.disabled, isDisabled), _obj2)), disabled: hasNoAction, onClick: !hasNoAction ? onClick : void 0 }, restProps, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsxs("span", { className: clsx(classes.content, iconPosition === "right" && classes.reverseContent), children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(icon) && /* @__PURE__ */ jsx("span", { className: clsx(classes.iconContainer, hasCircleUnderIcon && classes.circle), children: /* @__PURE__ */ jsx("span", { className: classes.icon, children: renderIcon(icon) }) }), children ] }), isLoading && /* @__PURE__ */ jsx("span", { className: classes.loader, children: /* @__PURE__ */ jsx(ThemedPreloader, { type: preloaderType, useCurrentColor: true, tweakStyles: tweakPreloaderStyles }) }) ] })); }); var useStyles$2 = createThemedStyles("TextWithInfo", { root: { display: "inline-block", height: 40, padding: [ 0, 18 ], borderRadius: 20, boxSizing: "border-box", color: colors.FONT_MEDIUM, "&:hover": { backgroundColor: colors.GREY_FOCUS } }, container: { display: "flex", height: "100%", alignItems: "center" }, selected: { backgroundColor: colors.GREY_FOCUS }, text: { cursor: "pointer", fontSize: 16 }, info: { width: 20, marginLeft: 4, color: colors.FONT_DISABLED, cursor: "pointer", borderRadius: "50%", "&:link": { color: colors.FONT_DISABLED }, "&:hover": { color: colors.CLASSIC_WHITE, backgroundColor: colors.FONT_DISABLED }, "&:visited": { color: colors.FONT_DISABLED, "&:hover": { color: colors.CLASSIC_WHITE, backgroundColor: colors.FONT_DISABLED } } } }); function _define_property$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$2(target, key, source[key]); }); } return target; } function ownKeys$2(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$2(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var TextWithInfo = function(param) { var text = param.text, _param_isSelected = param.isSelected, isSelected = _param_isSelected === void 0 ? false : _param_isSelected, info = param.info, textTooltip = param.textTooltip, onClick = param.onClick, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles; var classes = useStyles$2({ theme: tweakStyles }); return /* @__PURE__ */ jsx("div", _object_spread_props$2(_object_spread$2({ className: clsx(classes.root, isSelected && classes.selected) }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: /* @__PURE__ */ jsxs("div", { className: classes.container, children: [ /* @__PURE__ */ jsx("div", { className: classes.text, onClick, children: textTooltip !== void 0 ? /* @__PURE__ */ jsx(TextWithTooltip, { tooltipText: textTooltip, children: text }) : text }), info && /* @__PURE__ */ jsx("a", { className: classes.info, href: info.link, target: "_blank", rel: "noopener noreferrer", children: info.infoTooltip !== void 0 ? /* @__PURE__ */ jsx(TextWithTooltip, { tooltipText: info.infoTooltip, children: /* @__PURE__ */ jsx(Icon, { type: "information" }) }) : /* @__PURE__ */ jsx(Icon, { type: "information" }) }) ] }) })); }; var DEFAULT_TIMEOUT = 7 * 1e3; var useStyles$1 = createThemedStyles("Toaster", { root: { borderRadius: 8, position: "relative", background: colors.CLASSIC_WHITE, padding: [ 20, 40, 20, 20 ], display: "flex" }, iconContainer: { width: 20, height: 20, flexShrink: 0, marginRight: 16 }, error: { color: colors.RED_WARNING }, info: {}, warning: { color: colors.ORANGE_FOCUS }, ok: { color: colors.GREEN_FOCUS }, "not-ok": { color: colors.FONT_LABEL }, text: {}, title: {}, content: { "&:not(:first-child):not(:empty)": { marginTop: 16 } }, close: { position: "absolute", top: 12, right: 12, width: 32, height: 32 } }); function _define_property$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property$1(target, key, source[key]); }); } return target; } function ownKeys$1(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props$1(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } var Toaster = function(param) { var _param_type = param.type, type = _param_type === void 0 ? "error" : _param_type, title = param.title, text = param.text, children = param.children, _param_timeout = param.timeout, timeout = _param_timeout === void 0 ? DEFAULT_TIMEOUT : _param_timeout, _param_hasCloseButton = param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? false : _param_hasCloseButton, _param_shouldCloseOnClick = param.shouldCloseOnClick, shouldCloseOnClick = _param_shouldCloseOnClick === void 0 ? false : _param_shouldCloseOnClick, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onClose = param.onClose, onTimeEnd = param.onTimeEnd; var classes = useStyles$1({ theme: tweakStyles }); var tweakCloseButtonStyles = useTweakStyles({ tweakStyles, className: "tweakCloseButton", currentComponentName: "Toaster" }); React.useEffect(function() { if (!Number.isFinite(timeout) || trueReactPlatformHelpers.isEmpty(onTimeEnd)) { return; } var timeoutId = window.setTimeout(function() { return onTimeEnd(); }, timeout); return function() { return window.clearTimeout(timeoutId); }; }, []); return /* @__PURE__ */ jsxs("div", _object_spread_props$1(_object_spread$1({ className: classes.root, onClick: shouldCloseOnClick ? onClose : void 0 }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), { children: [ /* @__PURE__ */ jsx("div", { className: clsx(classes.iconContainer, classes[type]), children: /* @__PURE__ */ jsx(Icon, { type: "status-".concat(type) }) }), /* @__PURE__ */ jsxs("div", { children: [ trueReactPlatformHelpers.isReactNodeNotEmpty(title) && /* @__PURE__ */ jsx("div", { className: classes.title, children: title }), trueReactPlatformHelpers.isReactNodeNotEmpty(text) && /* @__PURE__ */ jsx("div", { className: classes.text, children: text }), trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", { className: classes.content, children }) ] }), hasCloseButton && trueReactPlatformHelpers.isNotEmpty(onClose) && /* @__PURE__ */ jsx("div", { className: classes.close, children: /* @__PURE__ */ jsx(IconButton, { view: "cancel-light", icon: "close-window", tweakStyles: tweakCloseButtonStyles, onClick: onClose }) }) ] })); }; var useStyles = createThemedStyles("NewMoreMenu", { hasCircle: {}, button: { display: "flex", alignItems: "center", justifyContent: "center", width: 32, height: 32, backgroundColor: "transparent", color: colors.FONT_MEDIUM, padding: 0, borderRadius: "50%", border: "none", cursor: "pointer", transition: animations.defaultTransition, transitionProperty: "background-color" }, icon: { width: 30, height: 30 }, active: {}, disabled: { cursor: "default" } }); function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _object_spread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys2 = Object.keys(source); if (typeof Object.getOwnPropertySymbols === "function") { ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys2.forEach(function(key) { _define_property(target, key, source[key]); }); } return target; } function ownKeys(object, enumerableOnly) { var keys2 = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function(sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys2.push.apply(keys2, symbols); } return keys2; } function _object_spread_props(target, source) { source = source != null ? source : {}; if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function(key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } function _object_without_properties(source, excluded) { if (source == null) return {}; var target = _object_without_properties_loose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _object_without_properties_loose(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; } var NewMoreMenu = function(_param) { var items = _param.items, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasDefaultStateBackground = _param.hasDefaultStateBackground, hasDefaultStateBackground = _param_hasDefaultStateBackground === void 0 ? true : _param_hasDefaultStateBackground, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, rest = _object_without_properties(_param, [ "items", "isDisabled", "hasDefaultStateBackground", "data", "testId", "tweakStyles" ]); var classes = useStyles({ theme: tweakStyles }); var tweakWithPopupStyles = useTweakStyles({ tweakStyles, className: "tweakWithPopup", currentComponentName: "NewMoreMenu" }); var tweakListStyles = useTweakStyles({ tweakStyles, className: "tweakList", currentComponentName: "NewMoreMenu" }); return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({ isDisabled: isDisabled || trueReactPlatformHelpers.isArrayEmpty(items), tweakStyles: tweakWithPopupStyles }, rest), { trigger: function(param) { var triggerProps = param.triggerProps, referenceProps = param.referenceProps; var _obj2; return /* @__PURE__ */ jsx("button", _object_spread_props(_object_spread({ className: clsx(classes.button, (_obj2 = {}, _define_property(_obj2, classes.hasCircle, hasDefaultStateBackground), _define_property(_obj2, classes.disabled, triggerProps.isDisabled), _define_property(_obj2, classes.active, triggerProps.isActive), _obj2)), disabled: triggerProps.isDisabled }, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data), referenceProps), { children: /* @__PURE__ */ jsx("div", { className: classes.icon, children: /* @__PURE__ */ jsx(Icon, { type: "menu" }) }) })); }, children: function(param) { var onClose = param.onClose; return /* @__PURE__ */ jsx(List, { items, tweakStyles: tweakListStyles, onClick: onClose }); } })); }; exports2.AccountInfo = AccountInfo; exports2.AddButton = AddButton; exports2.Button = Button; exports2.Checkbox = Checkbox; exports2.CloseButton = CloseButton; exports2.Colors = Colors; exports2.CssBaseline = CssBaseline; exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK; exports2.DateInput = DateInput; exports2.DatePicker = DatePicker; exports2.Description = Description; exports2.EMPTY_DATE_INPUT_VALUE = EMPTY_DATE_INPUT_VALUE; exports2.EMPTY_DATE_RANGE_INPUT_VALUE = EMPTY_DATE_RANGE_INPUT_VALUE; exports2.FileInput = FileInput; exports2.FileItem = FileItem; exports2.Filter = Filter; exports2.FilterInterval = FilterInterval; exports2.FilterMultiSelect = FilterMultiSelect; exports2.FilterSelect = FilterSelect; exports2.FilterValueView = FilterValueView; exports2.FilterWithDates = FilterWithDates; exports2.FilterWithPeriod = FilterWithPeriod; exports2.FilterWrapper = FilterWrapper; exports2.FiltersPane = FiltersPane; exports2.FiltersPaneSearch = FiltersPaneSearch; exports2.Flag = Flag; exports2.FlexibleTable = FlexibleTable; exports2.Icon = Icon; exports2.IconButton = IconButton; exports2.IncrementInput = IncrementInput; exports2.Input = Input; exports2.List = List; exports2.ListItem = ListItem; exports2.Modal = Modal; exports2.MoreMenu = MoreMenu; exports2.MultiSelect = MultiSelect; exports2.MultiSelectList = MultiSelectList; exports2.NewMoreMenu = NewMoreMenu; exports2.Notification = Notification; exports2.NumberInput = NumberInput; exports2.PhoneInput = PhoneInput; exports2.RadioButton = RadioButton; exports2.SLIDE_UP_ANIMATION_DURATION = SLIDE_UP_ANIMATION_DURATION; exports2.ScrollIntoViewIfNeeded = ScrollIntoViewIfNeeded; exports2.SearchInput = SearchInput; exports2.Select = Select; exports2.Selector = Selector; exports2.Skeleton = Skeleton; exports2.SmartInput = SmartInput; exports2.Status = Status; exports2.Switch = Switch; exports2.TextArea = TextArea; exports2.TextButton = TextButton; exports2.TextWithInfo = TextWithInfo; exports2.TextWithTooltip = TextWithTooltip; exports2.ThemeContext = ThemeContext; exports2.ThemeProvider = ThemeProvider; exports2.ThemedPreloader = ThemedPreloader; exports2.Toaster = Toaster; exports2.Tooltip = Tooltip; exports2.WithPopup = WithPopup; exports2.addDataAttributes = addDataAttributes; exports2.animations = animations; exports2.areStylesThemed = areStylesThemed; exports2.checkElementParentsClassNames = checkElementParentsClassNames; exports2.checkSearchStringInCountry = checkSearchStringInCountry; exports2.colors = colors; exports2.common = common; exports2.createThemedStyles = createThemedStyles; exports2.dimensions = dimensions; exports2.findCountryByCode = findCountryByCode; exports2.findCountryIndexByCode = findCountryIndexByCode; exports2.formatNumber = formatNumber; exports2.formatStringNumber = formatStringNumber; exports2.getCountryCodeFromPhone = getCountryCodeFromPhone; exports2.getCountryTextByLocale = getCountryTextByLocale; exports2.getFileExtensionByFilename = getFileExtensionByFilename; exports2.getFileIcon = getFileIcon; exports2.getFullPhone = getFullPhone; exports2.getMimeTypeByFilename = getMimeTypeByFilename; exports2.getNumberInRange = getNumberInRange; exports2.getNumberLength = getNumberLength; exports2.getParentNode = getParentNode$1; exports2.getPhoneMask = getPhoneMask; exports2.getPhoneObjFromString = getPhoneObjFromString; exports2.getScrollParent = getScrollParent$1; exports2.getStyleComputedProperty = getStyleComputedProperty; exports2.getTheme = getTheme; exports2.hasExactParent = hasExactParent; exports2.helpers = helpers; exports2.iconsList = iconsList; exports2.isElementOffScreen = isElementOffScreen; exports2.isElementOneOfParents = isElementOneOfParents; exports2.isSpaceChar = isSpaceChar; exports2.mimeTypes = mimeTypes; exports2.minWidthModifier = minWidthModifier; exports2.phoneInfo = phoneInfo; exports2.removeStringFormat = removeStringFormat; exports2.renderIcon = renderIcon; exports2.rgba = rgba; exports2.setCaretPosition = setCaretPosition; exports2.sortCountriesByLocale = sortCountriesByLocale; exports2.stringToNumber = stringToNumber; exports2.themedStyles = themedStyles; exports2.transformToKebab = transformToKebab; exports2.trimStringToMaxLength = trimStringToMaxLength; exports2.useDidMountEffect = useDidMountEffect; exports2.useDropdown = useDropdown; exports2.useIsMounted = useIsMounted; exports2.useMergedRefs = useMergedRefs; exports2.useMixedStyles = useMixedStyles; exports2.useOnClickOutside = useOnClickOutside; exports2.useOnClickOutsideWithRef = useOnClickOutsideWithRef; exports2.useTweakStyles = useTweakStyles; Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }); }); //# sourceMappingURL=true-react-common-ui-kit.umd.cjs.map