diff --git a/assets/flash-notifications-bundle.js b/assets/flash-notifications-bundle.js index ea2a1a059..7f620123a 100644 --- a/assets/flash-notifications-bundle.js +++ b/assets/flash-notifications-bundle.js @@ -1,51 +1,59 @@ import { - u as e, - r as s, - j as o, - N as a, - T as n, - C as t, - aa as r, - a7 as i, - a8 as c, - a9 as l, + u as useToast, + r as reactExports, + j as jsxRuntimeExports, + N as Notification, + T as Title, + C as Close, + aa as FLASH_NOTIFICATIONS_KEY, + a7 as reactDomExports, + a8 as ThemeProviders, + a9 as createTheme, } from 'shared'; -function d({ notifications: r, closeLabel: i }) { - const { addToast: c } = e(); - return ( - s.useEffect(() => { - for (const e of r) { - const { type: s, title: r, message: l } = e; - c(({ close: e }) => - o.jsxs(a, { - type: s, - children: [ - r && o.jsx(n, { children: r }), - l, - o.jsx(t, { 'aria-label': i, onClick: e }), - ], - }) - ); - } - }, [c, r, i]), - o.jsx(o.Fragment, {}) - ); -} -function f(e, s) { - const a = window.sessionStorage.getItem(r); - if (null !== a) { - window.sessionStorage.removeItem(r); - try { - const n = JSON.parse(a), - t = document.createElement('div'); - document.body.appendChild(t), - i.render( - o.jsx(c, { theme: l(e), children: o.jsx(d, { notifications: n, closeLabel: s }) }), - t - ); - } catch (e) { - console.error('Cannot render flash notifications', e); + +function FlashNotifications({ notifications, closeLabel }) { + const { addToast } = useToast(); + reactExports.useEffect(() => { + for (const notification of notifications) { + const { type, title, message } = notification; + addToast(({ close }) => + jsxRuntimeExports.jsxs(Notification, { + type: type, + children: [ + title && jsxRuntimeExports.jsx(Title, { children: title }), + message, + jsxRuntimeExports.jsx(Close, { 'aria-label': closeLabel, onClick: close }), + ], + }) + ); } + }, [addToast, notifications, closeLabel]); + return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}); +} + +function renderFlashNotifications(settings, closeLabel) { + const flashNotifications = window.sessionStorage.getItem(FLASH_NOTIFICATIONS_KEY); + if (flashNotifications === null) { + return; + } + window.sessionStorage.removeItem(FLASH_NOTIFICATIONS_KEY); + try { + const parsedNotifications = JSON.parse(flashNotifications); + const container = document.createElement('div'); + document.body.appendChild(container); + reactDomExports.render( + jsxRuntimeExports.jsx(ThemeProviders, { + theme: createTheme(settings), + children: jsxRuntimeExports.jsx(FlashNotifications, { + notifications: parsedNotifications, + closeLabel: closeLabel, + }), + }), + container + ); + } catch (e) { + console.error('Cannot render flash notifications', e); } } -export { f as renderFlashNotifications }; + +export { renderFlashNotifications }; diff --git a/assets/navigation-bundle.js b/assets/navigation-bundle.js index 30fcbb33b..f6c0fa9d5 100644 --- a/assets/navigation-bundle.js +++ b/assets/navigation-bundle.js @@ -1,299 +1,345 @@ import { - ab as e, - r as s, - j as a, - ac as t, - ad as r, - ae as l, - af as n, - a7 as i, - a8 as c, - a9 as d, + ab as api, + r as reactExports, + j as jsxRuntimeExports, + ac as Ye, + ad as cn, + ae as yt, + af as je, + a7 as reactDomExports, + a8 as ThemeProviders, + a9 as createTheme, } from 'shared'; import { - T as o, - S as m, - M as u, - C as h, - P as x, - a as f, - B as g, - L as b, - b as j, - c as p, + T as ThemeIconMap, + S as Sun, + M as Moon, + C as Close, + P as PrimaryButton, + a as Search, + B as ButtonBase, + L as LinkBase, + b as MiniUnicon, + c as Menu, } from 'index'; -const w = new (class { - key; - constructor(e) { - this.key = e; + +class StorageManager { + key; + constructor(key) { + this.key = key; + } + set(value) { + const valueToSet = JSON.stringify(value); + api.set(this.key, valueToSet, { expires: 365, domain: 'zendesk.com' }); + } + get() { + const value = api.get(this.key); + if (value) { + return JSON.parse(value); } - set(s) { - const a = JSON.stringify(s); - e.set(this.key, a, { expires: 365, domain: 'zendesk.com' }); - } - get() { - const s = e.get(this.key); - if (s) return JSON.parse(s); - } - remove() { - e.remove(this.key, { domain: 'zendesk.com' }); - } - })('uniswap-ui-theme'), - k = s.createContext(void 0), - N = () => { - const e = s.useContext(k); - if (void 0 === e) throw new Error('useUIProvider must be used within a UIProvider'); - return e; - }, - v = ({ children: e }) => { - const [t, r] = s.useState('light'); - s.useEffect(() => { - if ('undefined' != typeof window) { - const e = w.get(); - e ? r(e) : w.set('light'), document.documentElement.classList.toggle('dark', 'dark' === e); + return undefined; + } + remove() { + api.remove(this.key, { domain: 'zendesk.com' }); + } +} +const THEME_STORAGE_NAME = 'uniswap-ui-theme'; +const ThemeManager = new StorageManager(THEME_STORAGE_NAME); + +const UIContext = reactExports.createContext(undefined); +const useUIProvider = () => { + const context = reactExports.useContext(UIContext); + if (context === undefined) { + throw new Error('useUIProvider must be used within a UIProvider'); + } + return context; +}; +const UIProvider = ({ children }) => { + const [theme, setTheme] = reactExports.useState('light'); + reactExports.useEffect(() => { + if (typeof window !== 'undefined') { + const currentTheme = ThemeManager.get(); + if (!currentTheme) { + ThemeManager.set('light'); + } else { + setTheme(currentTheme); } - }, []); - return a.jsx(k.Provider, { - value: { - theme: t, - toggleTheme: () => { - r((e) => { - const s = 'dark' === e ? 'light' : 'dark'; - return w.set(s), document.documentElement.classList.toggle('dark', 'dark' === s), s; - }); - }, - }, - children: e, + document.documentElement.classList.toggle('dark', currentTheme === 'dark'); + } + }, []); + const toggleTheme = () => { + setTheme((prev) => { + const newTheme = prev === 'dark' ? 'light' : 'dark'; + ThemeManager.set(newTheme); + document.documentElement.classList.toggle('dark', newTheme === 'dark'); // Toggles the dark class + return newTheme; }); - }, - y = () => { - const { toggleTheme: e, theme: s } = N(); - return a.jsxs(t, { - checked: 'dark' === s, - onChange: e, - className: r( - 'group relative inline-flex h-8 w-[3.75rem] items-center rounded-full bg-light-surface-3 dark:!bg-dark-surface-3' - ), - 'aria-label': 'Toggle theme', + }; + return jsxRuntimeExports.jsx(UIContext.Provider, { + value: { + theme, + toggleTheme, + }, + children: children, + }); +}; + +const ThemeSwitch = () => { + const { toggleTheme, theme } = useUIProvider(); + return jsxRuntimeExports.jsxs(Ye, { + checked: theme === 'dark', + onChange: toggleTheme, + className: cn( + 'group relative inline-flex h-8 w-[3.75rem] items-center rounded-full bg-light-surface-3 dark:!bg-dark-surface-3' + ), + 'aria-label': 'Toggle theme', + children: [ + jsxRuntimeExports.jsx('span', { + className: + 'flex h-6 w-6 translate-x-1 items-center justify-center rounded-full bg-white transition group-data-[checked]:translate-x-8', + children: jsxRuntimeExports.jsx(ThemeIconMap, { + className: 'h-4 w-4', + icon: theme === 'dark' ? 'moon' : 'sun', + }), + }), + jsxRuntimeExports.jsx(Sun, { className: 'absolute left-2 h-4 w-4' }), + jsxRuntimeExports.jsx(Moon, { className: 'absolute right-2 h-4 w-4' }), + ], + }); +}; + +const MobileMenuModal = ({ isOpen, close }) => { + const { theme } = useUIProvider(); + const [modalTransition, setModalTransition] = reactExports.useState(false); + const handleClose = () => { + setModalTransition(false); + setTimeout(close, 100); + }; + reactExports.useEffect(() => { + if (isOpen) { + setTimeout(() => setModalTransition(true), 100); + } + }, [isOpen]); + return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { + children: jsxRuntimeExports.jsxs(yt, { + open: isOpen, + onClose: handleClose, + className: 'MobileMenuModal relative z-modal md:hidden', children: [ - a.jsx('span', { - className: - 'flex h-6 w-6 translate-x-1 items-center justify-center rounded-full bg-white transition group-data-[checked]:translate-x-8', - children: a.jsx(o, { className: 'h-4 w-4', icon: 'dark' === s ? 'moon' : 'sun' }), + jsxRuntimeExports.jsx('button', { + className: cn('fixed inset-0 z-[790] bg-scrim transition duration-500', { + 'pointer-events-none opacity-0': !isOpen, + 'opacity-1': isOpen, + }), + onClick: handleClose, }), - a.jsx(m, { className: 'absolute left-2 h-4 w-4' }), - a.jsx(u, { className: 'absolute right-2 h-4 w-4' }), - ], - }); - }, - C = ({ isOpen: e, close: t }) => { - const { theme: i } = N(), - [c, d] = s.useState(!1), - o = () => { - d(!1), setTimeout(t, 100); - }; - return ( - s.useEffect(() => { - e && setTimeout(() => d(!0), 100); - }, [e]), - a.jsx(a.Fragment, { - children: a.jsxs(l, { - open: e, - onClose: o, - className: 'MobileMenuModal relative z-modal md:hidden', - children: [ - a.jsx('button', { - className: r('fixed inset-0 z-[790] bg-scrim transition duration-500', { - 'pointer-events-none opacity-0': !e, - 'opacity-1': e, - }), - onClick: o, + jsxRuntimeExports.jsx('div', { + className: cn( + 'fixed bottom-0 left-0 right-0 flex w-screen translate-y-0 items-center transition-all z-[900]', + { + 'opacity-1 translate-y-0': modalTransition, + 'translate-y-4 opacity-0': !modalTransition, + } + ), + children: jsxRuntimeExports.jsxs(je, { + className: cn('w-full rounded-t-large border-t px-margin-mobile', { + 'border-dark-surface-3 bg-dark-surface-1': theme === 'dark', + 'border-light-surface-3 bg-light-surface-1': theme === 'light', }), - a.jsx('div', { - className: r( - 'fixed bottom-0 left-0 right-0 flex w-screen translate-y-0 items-center transition-all z-[900]', - { 'opacity-1 translate-y-0': c, 'translate-y-4 opacity-0': !c } - ), - children: a.jsxs(n, { - className: r('w-full rounded-t-large border-t px-margin-mobile', { - 'border-dark-surface-3 bg-dark-surface-1': 'dark' === i, - 'border-light-surface-3 bg-light-surface-1': 'light' === i, - }), + children: [ + jsxRuntimeExports.jsxs('div', { + className: 'pt-margin-mobile', children: [ - a.jsxs('div', { - className: 'pt-margin-mobile', + jsxRuntimeExports.jsxs('div', { + className: 'relative', children: [ - a.jsxs('div', { - className: 'relative', - children: [ - a.jsx('div', { - className: 'flex flex-row-reverse mb-margin-mobile', - children: a.jsx('button', { - onClick: o, - className: 'group', - children: a.jsx(h, { className: 'h-3.5 w-3.5' }), - }), - }), - a.jsx('nav', { id: 'new-mobile-nav' }), - ], - }), - a.jsxs('div', { - className: 'flex flex-row items-center justify-between', - children: [ - a.jsx('h3', { - className: r('body-1', { - 'text-light-neutral-1': 'light' === i, - 'text-dark-neutral-1': 'dark' === i, - }), - children: 'Theme', - }), - a.jsx(y, {}), - ], + jsxRuntimeExports.jsx('div', { + className: 'flex flex-row-reverse mb-margin-mobile', + children: jsxRuntimeExports.jsx('button', { + onClick: handleClose, + className: 'group', + children: jsxRuntimeExports.jsx(Close, { className: 'h-3.5 w-3.5' }), + }), }), + jsxRuntimeExports.jsx('nav', { id: 'new-mobile-nav' }), ], }), - a.jsx('div', { - className: 'py-margin-mobile', - children: a.jsx(x, { - onClick: o, - className: 'ml-padding-small-dense', - label: 'Submit Request', - href: '/hc/en-us/requests/new', - size: 'large', - theme: i, - color: 'accent-2', - fullWidth: !0, - }), + jsxRuntimeExports.jsxs('div', { + className: 'flex flex-row items-center justify-between', + children: [ + jsxRuntimeExports.jsx('h3', { + className: cn('body-1', { + 'text-light-neutral-1': theme === 'light', + 'text-dark-neutral-1': theme === 'dark', + }), + children: 'Theme', + }), + jsxRuntimeExports.jsx(ThemeSwitch, {}), + ], }), ], }), - }), - ], + jsxRuntimeExports.jsx('div', { + className: 'py-margin-mobile', + children: jsxRuntimeExports.jsx(PrimaryButton, { + onClick: handleClose, + className: 'ml-padding-small-dense', + label: 'Submit Request', + href: '/hc/en-us/requests/new', + size: 'large', + theme: theme, + color: 'accent-2', + fullWidth: true, + }), + }), + ], + }), }), - }) - ); - }, - S = () => { - const [e, t] = s.useState(!1), - [l, n] = s.useState(!1), - [i, c] = s.useState(!1), - d = s.useRef(null); - return ( - s.useEffect(() => { - const e = () => { - const e = window.scrollY; - t(0 === e); - }; - return ( - e(), - window.addEventListener('scroll', e, { passive: !0 }), - () => { - window.removeEventListener('scroll', e); + ], + }), + }); +}; + +const Navigation = () => { + const [scrollIsOnTop, setScrollIsOnTop] = reactExports.useState(false); + const [menuIsOpen, setMenuIsOpen] = reactExports.useState(false); + const [mobileSearchBarIsOpen, setMobileSearchBarIsOpen] = reactExports.useState(false); + const searchBarRef = reactExports.useRef(null); + reactExports.useEffect(() => { + const handleScroll = () => { + const position = window.scrollY; + if (position === 0) { + setScrollIsOnTop(true); + } else { + setScrollIsOnTop(false); + } + }; + handleScroll(); + window.addEventListener('scroll', handleScroll, { passive: true }); + return () => { + window.removeEventListener('scroll', handleScroll); + }; + }, [setScrollIsOnTop]); + reactExports.useEffect(() => { + const timeout = setTimeout(() => { + const searchBarPlaceholder = document.getElementById('search-bar-placeholder-nav-mobile'); + if (searchBarPlaceholder && searchBarRef.current) { + searchBarRef.current.appendChild(searchBarPlaceholder); + searchBarPlaceholder.style.opacity = '1'; + } + }, 100); + return () => clearTimeout(timeout); + }, []); + return jsxRuntimeExports.jsxs(UIProvider, { + children: [ + jsxRuntimeExports.jsxs('nav', { + className: cn( + 'Navigation fixed top-0 left-0 right-0 z-nav flex w-screen justify-center bg-light-surface-1 dark:border-dark-surface-3 dark:bg-dark-surface-1', + { + 'border-b': !scrollIsOnTop, } - ); - }, [t]), - s.useEffect(() => { - const e = setTimeout(() => { - const e = document.getElementById('search-bar-placeholder-nav-mobile'); - e && d.current && (d.current.appendChild(e), (e.style.opacity = '1')); - }, 100); - return () => clearTimeout(e); - }, []), - a.jsxs(v, { + ), children: [ - a.jsxs('nav', { - className: r( - 'Navigation fixed top-0 left-0 right-0 z-nav flex w-screen justify-center bg-light-surface-1 dark:border-dark-surface-3 dark:bg-dark-surface-1', - { 'border-b': !e } + jsxRuntimeExports.jsxs('div', { + className: cn( + 'absolute w-full h-full top-0 left-0 !bg-light-surface-1 dark:!bg-dark-surface-1 px-4 py-[1.15625rem] flex flex-row justify-between items-center', + { + hidden: !mobileSearchBarIsOpen, + } ), children: [ - a.jsxs('div', { - className: r( - 'absolute w-full h-full top-0 left-0 !bg-light-surface-1 dark:!bg-dark-surface-1 px-4 py-[1.15625rem] flex flex-row justify-between items-center', - { hidden: !i } - ), + jsxRuntimeExports.jsxs('div', { + className: 'flex flex-row items-center grow', children: [ - a.jsxs('div', { - className: 'flex flex-row items-center grow', - children: [ - a.jsx(f, { className: 'h-padding-large w-padding-large' }), - a.jsx('div', { ref: d, className: 'grow' }), - ], + jsxRuntimeExports.jsx(Search, { className: 'h-padding-large w-padding-large' }), + jsxRuntimeExports.jsx('div', { ref: searchBarRef, className: 'grow' }), + ], + }), + jsxRuntimeExports.jsx(ButtonBase, { + onClick: () => { + setMobileSearchBarIsOpen((prev) => !prev); + }, + className: 'body-2 text-light-neutral-2 dark:text-dark-neutral-2 shrink-0', + children: 'Cancel', + }), + ], + }), + jsxRuntimeExports.jsxs('div', { + className: + 'flex w-full flex-row items-center justify-between border-light-surface-3 px-4 py-[1.15625rem] md:px-[0.9375rem] md:py-3 md:h-[4.5rem]', + children: [ + jsxRuntimeExports.jsx('div', { + className: 'flex flex-row items-center', + children: jsxRuntimeExports.jsxs(LinkBase, { + href: '/hc/en-us', + className: 'flex flex-row items-center', + children: [ + jsxRuntimeExports.jsx(MiniUnicon, { className: 'mb-[0.1875rem] h-8 w-8' }), + jsxRuntimeExports.jsx('p', { + className: + 'body-3 md:button-label-2 ml-2 text-light-accent-1 dark:text-dark-accent-1', + children: 'Uniswap Support', + }), + ], + }), + }), + jsxRuntimeExports.jsxs('div', { + className: 'md:hidden', + children: [ + jsxRuntimeExports.jsx(ButtonBase, { + onClick: () => { + setMobileSearchBarIsOpen((prev) => !prev); + }, + className: 'mr-3', + children: jsxRuntimeExports.jsx(Search, { + className: 'h-padding-large w-padding-large', + }), }), - a.jsx(g, { + jsxRuntimeExports.jsx(ButtonBase, { + id: 'mobile-menu-button', onClick: () => { - c((e) => !e); + setMenuIsOpen((prev) => !prev); }, - className: 'body-2 text-light-neutral-2 dark:text-dark-neutral-2 shrink-0', - children: 'Cancel', + children: jsxRuntimeExports.jsx(Menu, { + className: 'h-padding-large w-padding-large', + }), }), ], }), - a.jsxs('div', { - className: - 'flex w-full flex-row items-center justify-between border-light-surface-3 px-4 py-[1.15625rem] md:px-[0.9375rem] md:py-3 md:h-[4.5rem]', + jsxRuntimeExports.jsxs('div', { + className: 'hidden md:flex', children: [ - a.jsx('div', { - className: 'flex flex-row items-center', - children: a.jsxs(b, { - href: '/hc/en-us', - className: 'flex flex-row items-center', - children: [ - a.jsx(j, { className: 'mb-[0.1875rem] h-8 w-8' }), - a.jsx('p', { - className: - 'body-3 md:button-label-2 ml-2 text-light-accent-1 dark:text-dark-accent-1', - children: 'Uniswap Support', - }), - ], - }), - }), - a.jsxs('div', { - className: 'md:hidden', - children: [ - a.jsx(g, { - onClick: () => { - c((e) => !e); - }, - className: 'mr-3', - children: a.jsx(f, { className: 'h-padding-large w-padding-large' }), - }), - a.jsx(g, { - id: 'mobile-menu-button', - onClick: () => { - n((e) => !e); - }, - children: a.jsx(p, { className: 'h-padding-large w-padding-large' }), - }), - ], - }), - a.jsxs('div', { - className: 'hidden md:flex', - children: [ - a.jsx(y, {}), - a.jsx(x, { - className: 'ml-padding-small-dense !my-auto !py-0 !h-8', - label: 'Submit Request', - href: '/hc/en-us/requests/new', - color: 'accent-2', - }), - ], + jsxRuntimeExports.jsx(ThemeSwitch, {}), + jsxRuntimeExports.jsx(PrimaryButton, { + className: 'ml-padding-small-dense !my-auto !py-0 !h-8', + label: 'Submit Request', + href: '/hc/en-us/requests/new', + color: 'accent-2', }), ], }), ], }), - a.jsx(C, { - isOpen: l, - close: () => { - n(!1); - }, - }), ], - }) - ); - }; -async function E(e, s) { - i.render(a.jsx(c, { theme: d(e), children: a.jsx(S, {}) }), s); + }), + jsxRuntimeExports.jsx(MobileMenuModal, { + isOpen: menuIsOpen, + close: () => { + setMenuIsOpen(false); + }, + }), + ], + }); +}; + +async function renderNavigation(settings, container) { + reactDomExports.render( + jsxRuntimeExports.jsx(ThemeProviders, { + theme: createTheme(settings), + children: jsxRuntimeExports.jsx(Navigation, {}), + }), + container + ); } -export { E as renderNavigation }; + +export { renderNavigation }; diff --git a/assets/new-request-form-bundle.js b/assets/new-request-form-bundle.js index cf9db7ec4..4c28d753a 100644 --- a/assets/new-request-form-bundle.js +++ b/assets/new-request-form-bundle.js @@ -1,1328 +1,1838 @@ import { - j as e, - F as n, - L as t, - S as s, - I as r, - M as a, - H as o, - r as l, - u as i, - a as u, - N as c, - T as d, - C as m, - s as f, - b as h, - d as p, - e as j, - O as b, - f as g, - h as x, - i as w, - k as v, - l as q, - $ as y, - A as k, - p as C, - m as _, - n as S, - o as I, - P as T, - q as F, - t as R, - v as P, - D as N, - w as L, - K as $, - x as E, - y as V, - z as M, - B as D, - E as A, - G as z, - J as G, - Q as H, - R as B, - U as X, - V as O, - W as U, - X as W, - Y as Z, - Z as K, - _ as Y, - a0 as J, - a1 as Q, - a2 as ee, - a3 as ne, - a4 as te, - a5 as se, - a6 as re, - a7 as ae, - a8 as oe, - a9 as le, + j as jsxRuntimeExports, + F as Field, + L as Label, + S as Span, + I as Input$1, + M as Message, + H as Hint, + r as reactExports, + u as useToast, + a as useTranslation, + N as Notification, + T as Title, + C as Close, + s as styled, + b as Textarea, + d as Field$1, + e as Combobox, + O as Option, + f as Message$1, + h as Hint$1, + i as Checkbox$1, + k as Label$1, + l as OptGroup, + $ as $e, + A as Anchor, + p as purify, + m as FileList, + n as File$1, + o as Tooltip, + P as Progress, + q as mime, + t as useDropzone, + v as FileUpload, + D as Datepicker, + w as useGrid, + K as KEYS, + x as focusStyles, + y as FauxInput, + z as Tag, + B as SvgAlertWarningStroke, + E as MediaInput, + G as SvgCreditCardStroke, + J as getColorV8, + Q as Header, + R as SvgCheckCircleStroke, + U as useModalContainer, + V as Modal, + W as Body, + X as Accordion, + Y as Paragraph, + Z as Footer$1, + _ as FooterItem, + a0 as Button, + a1 as Close$1, + a2 as addFlashNotification, + a3 as debounce, + a4 as Alert, + a5 as initI18next, + a6 as loadTranslations, + a7 as reactDomExports, + a8 as ThemeProviders, + a9 as createTheme, } from 'shared'; -function ie({ field: l, onChange: i }) { - const { label: u, error: c, value: d, name: m, required: f, description: h, type: p } = l, - j = {}, - b = 'integer' === p || 'decimal' === p ? 'number' : 'text'; - 'integer' === p && (j.step = '1'), 'decimal' === p && (j.step = 'any'); - const g = 'anonymous_requester_email' === p ? 'email' : void 0; - return e.jsxs(n, { + +function Input({ field, onChange }) { + const { label, error, value, name, required, description, type } = field; + const stepProp = {}; + const inputType = type === 'integer' || type === 'decimal' ? 'number' : 'text'; + if (type === 'integer') stepProp.step = '1'; + if (type === 'decimal') stepProp.step = 'any'; + const autocomplete = type === 'anonymous_requester_email' ? 'email' : undefined; + return jsxRuntimeExports.jsxs(Field, { className: 'custom-form-field-layout', children: [ - e.jsxs(t, { + jsxRuntimeExports.jsxs(Label, { className: 'custom-title', - children: [u, f && e.jsx(s, { 'aria-hidden': 'true', children: '*' })], + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], }), - e.jsx(r, { - name: m, - type: b, - defaultValue: d && '' !== d ? d : `Enter ${u}`, - validation: c ? 'error' : void 0, - required: f, + jsxRuntimeExports.jsx(Input$1, { + name: name, + type: inputType, + defaultValue: value && value !== '' ? value : `Enter ${label}`, + validation: error ? 'error' : undefined, + required: required, onChange: (e) => { - i && i(e.target.value); + onChange && onChange(e.target.value); }, - autoComplete: g, + autoComplete: autocomplete, className: 'custom-input', - ...j, + ...stepProp, }), - c && e.jsx(a, { validation: 'error', children: c }), - h && e.jsx(o, { dangerouslySetInnerHTML: { __html: h } }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), + description && + jsxRuntimeExports.jsx(Hint, { dangerouslySetInnerHTML: { __html: description } }), ], }); } -const ue = f(a)` + +function useWysiwyg({ hasWysiwyg, baseLocale, hasAtMentions, userRole, brandId }) { + const isInitializedRef = reactExports.useRef(false); + const { addToast } = useToast(); + const { t } = useTranslation(); + return reactExports.useCallback( + async (ref) => { + if (hasWysiwyg && ref && !isInitializedRef.current) { + isInitializedRef.current = true; + const { createEditor } = await import('wysiwyg').then(function (n) { + return n.m; + }); + const editor = await createEditor(ref, { + editorType: 'supportRequests', + hasAtMentions, + userRole, + brandId, + baseLocale, + }); + const notifications = editor.plugins.get('Notification'); + // Handle generic notifications and errors with "toast" notifications + notifications.on('show', (event, data) => { + event.stop(); // Prevent the default notification from being shown via window.alert + const message = data.message instanceof Error ? data.message.message : data.message; + const { type, title } = data; + addToast(({ close }) => + jsxRuntimeExports.jsxs(Notification, { + type: type, + children: [ + jsxRuntimeExports.jsx(Title, { children: title }), + message, + jsxRuntimeExports.jsx(Close, { + 'aria-label': t('new-request-form.close-label', 'Close'), + onClick: close, + }), + ], + }) + ); + }); + } + }, + [hasWysiwyg, baseLocale, hasAtMentions, userRole, brandId, addToast, t] + ); +} + +const StyledMessage = styled(Message)` .ck.ck-editor + & { - margin-top: ${(e) => e.theme.space.xs}; + margin-top: ${(props) => props.theme.space.xs}; } `; -function ce({ - field: r, - hasWysiwyg: a, - baseLocale: f, - hasAtMentions: p, - userRole: j, - brandId: b, - onChange: g, -}) { - const { label: x, error: w, value: v, name: q, required: y, description: k } = r, - C = (function ({ hasWysiwyg: n, baseLocale: t, hasAtMentions: s, userRole: r, brandId: a }) { - const o = l.useRef(!1), - { addToast: f } = i(), - { t: h } = u(); - return l.useCallback( - async (l) => { - if (n && l && !o.current) { - o.current = !0; - const { createEditor: n } = await import('wysiwyg').then(function (e) { - return e.m; - }); - ( - await n(l, { - editorType: 'supportRequests', - hasAtMentions: s, - userRole: r, - brandId: a, - baseLocale: t, - }) - ).plugins - .get('Notification') - .on('show', (n, t) => { - n.stop(); - const s = t.message instanceof Error ? t.message.message : t.message, - { type: r, title: a } = t; - f(({ close: n }) => - e.jsxs(c, { - type: r, - children: [ - e.jsx(d, { children: a }), - s, - e.jsx(m, { - 'aria-label': h('new-request-form.close-label', 'Close'), - onClick: n, - }), - ], - }) - ); - }); - } - }, - [n, t, s, r, a, f, h] - ); - })({ hasWysiwyg: a, baseLocale: f, hasAtMentions: p, userRole: j, brandId: b }); - return e.jsxs(n, { +function TextArea({ field, hasWysiwyg, baseLocale, hasAtMentions, userRole, brandId, onChange }) { + const { label, error, value, name, required, description } = field; + const ref = useWysiwyg({ + hasWysiwyg, + baseLocale, + hasAtMentions, + userRole, + brandId, + }); + return jsxRuntimeExports.jsxs(Field, { className: 'custom-form-field-layout', children: [ - e.jsxs(t, { + jsxRuntimeExports.jsxs(Label, { className: 'custom-title', - children: [x, y && e.jsx(s, { 'aria-hidden': 'true', children: '*' })], + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], }), - e.jsx(h, { - ref: C, - name: q, - defaultValue: v && '' !== v ? v : 'Describe your issue.', - validation: w ? 'error' : void 0, - required: y, - onChange: (e) => g(e.target.value), + jsxRuntimeExports.jsx(Textarea, { + ref: ref, + name: name, + defaultValue: value && value !== '' ? value : 'Describe your issue.', + validation: error ? 'error' : undefined, + required: required, + onChange: (e) => onChange(e.target.value), rows: 6, - isResizable: !0, + isResizable: true, }), - w && e.jsx(ue, { validation: 'error', children: w }), - k && e.jsx(o, { className: 'custom-hint', dangerouslySetInnerHTML: { __html: k } }), + error && jsxRuntimeExports.jsx(StyledMessage, { validation: 'error', children: error }), + description && + jsxRuntimeExports.jsx(Hint, { + className: 'custom-hint', + dangerouslySetInnerHTML: { __html: description }, + }), ], }); } -function de() { - const { t: n } = u(); - return e.jsxs(e.Fragment, { + +function EmptyValueOption() { + const { t } = useTranslation(); + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - e.jsx(s, { 'aria-hidden': 'true', children: 'Select an option' }), - e.jsx(s, { - hidden: !0, - children: n('new-request-form.dropdown.empty-option', 'Select an option'), + jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: 'Select an option' }), + jsxRuntimeExports.jsx(Span, { + hidden: true, + children: t('new-request-form.dropdown.empty-option', 'Select an option'), }), ], }); } -function me({ field: n, onChange: t }) { - const { label: s, options: r, error: a, value: o, name: i, required: u, description: c } = n, - d = null == o ? '' : o.toString(), - m = l.useRef(null); - return ( - l.useEffect(() => { - if (m.current && u) { - const e = m.current.querySelector('[role=combobox]'); - e?.setAttribute('aria-required', 'true'); - } - }, [m, u]), - e.jsxs(p, { - className: 'custom-form-field-layout', - children: [ - e.jsxs(j, { - ref: m, - inputProps: { name: i, required: u }, - isEditable: !1, - validation: a ? 'error' : void 0, - inputValue: d, - selectionValue: d, - renderValue: ({ selection: n }) => n?.label || e.jsx(de, {}), - onChange: ({ selectionValue: e }) => { - void 0 !== e && t(e); - }, - className: 'custom-combobox', - children: [ - !u && e.jsx(b, { value: '', label: '-', children: e.jsx(de, {}) }), - r.map((n) => e.jsx(b, { value: n.value.toString(), label: n.name }, n.value)), - ], - }), - a && e.jsx(g, { validation: 'error', children: a }), - c && e.jsx(x, { dangerouslySetInnerHTML: { __html: c } }), - ], - }) - ); -} -function fe({ field: r, onChange: i }) { - const { label: u, error: c, value: d, name: m, required: f, description: h } = r, - [p, j] = l.useState(d); - return e.jsxs(n, { + +function DropDown({ field, onChange }) { + const { label, options, error, value, name, required, description } = field; + const selectionValue = value == null ? '' : value.toString(); + const wrapperRef = reactExports.useRef(null); + reactExports.useEffect(() => { + if (wrapperRef.current && required) { + const combobox = wrapperRef.current.querySelector('[role=combobox]'); + combobox?.setAttribute('aria-required', 'true'); + } + }, [wrapperRef, required]); + return jsxRuntimeExports.jsxs(Field$1, { + className: 'custom-form-field-layout', children: [ - e.jsx('input', { type: 'hidden', name: m, value: 'off' }), - e.jsxs(w, { - name: m, - required: f, - defaultChecked: d, - value: p ? 'on' : 'off', - onChange: (e) => { - const { checked: n } = e.target; - j(n), i(n); + jsxRuntimeExports.jsxs(Combobox, { + ref: wrapperRef, + inputProps: { name, required }, + isEditable: false, + validation: error ? 'error' : undefined, + inputValue: selectionValue, + selectionValue: selectionValue, + renderValue: ({ selection }) => + selection?.label || jsxRuntimeExports.jsx(EmptyValueOption, {}), + onChange: ({ selectionValue }) => { + if (selectionValue !== undefined) { + onChange(selectionValue); + } }, + className: 'custom-combobox', children: [ - e.jsxs(t, { children: [u, f && e.jsx(s, { 'aria-hidden': 'true', children: '*' })] }), - h && e.jsx(o, { dangerouslySetInnerHTML: { __html: h } }), + !required && + jsxRuntimeExports.jsx(Option, { + value: '', + label: '-', + children: jsxRuntimeExports.jsx(EmptyValueOption, {}), + }), + options.map((option) => + jsxRuntimeExports.jsx( + Option, + { value: option.value.toString(), label: option.name }, + option.value + ) + ), ], }), - c && e.jsx(a, { validation: 'error', children: c }), + error && jsxRuntimeExports.jsx(Message$1, { validation: 'error', children: error }), + description && + jsxRuntimeExports.jsx(Hint$1, { dangerouslySetInnerHTML: { __html: description } }), ], }); } -const he = '[]'; -function pe(e) { - return `[${e.join('::')}]`; + +function Checkbox({ field, onChange }) { + const { label, error, value, name, required, description } = field; + const [checkboxValue, setCheckboxValue] = reactExports.useState(value); + const handleChange = (e) => { + const { checked } = e.target; + setCheckboxValue(checked); + onChange(checked); + }; + return jsxRuntimeExports.jsxs(Field, { + children: [ + jsxRuntimeExports.jsx('input', { type: 'hidden', name: name, value: 'off' }), + jsxRuntimeExports.jsxs(Checkbox$1, { + name: name, + required: required, + defaultChecked: value, + value: checkboxValue ? 'on' : 'off', + onChange: handleChange, + children: [ + jsxRuntimeExports.jsxs(Label, { + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], + }), + description && + jsxRuntimeExports.jsx(Hint, { dangerouslySetInnerHTML: { __html: description } }), + ], + }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), + ], + }); +} + +/** + * The root group is identified by an empty string, to avoid possible clashes with a level with + * a "Root" name. + */ +const ROOT_GROUP_IDENTIFIER = '[]'; +function getGroupIdentifier(names) { + return `[${names.join('::')}]`; +} +function isGroupIdentifier(name) { + return name.startsWith('[') && name.endsWith(']'); } -function je(e) { - return e.startsWith('[') && e.endsWith(']'); +function getGroupAndOptionNames(input) { + const namesList = input.split('::'); + return [namesList.slice(0, -1), namesList.slice(-1)[0]]; } -function be(e) { - const n = pe(e.slice(0, -1)); +function buildSubGroupOptions(groupNames) { + const parentGroupNames = groupNames.slice(0, -1); + const parentGroupIdentifier = getGroupIdentifier(parentGroupNames); + const name = groupNames[groupNames.length - 1]; return { type: 'SubGroup', - name: e[e.length - 1], - backOption: { type: 'previous', label: 'Back', value: n }, + name, + backOption: { + type: 'previous', + label: 'Back', + value: parentGroupIdentifier, + }, options: [], }; } -function ge({ options: e, hasEmptyOption: n }) { - const t = l.useMemo( - () => - (function (e, n) { - const t = { [he]: { type: 'RootGroup', options: n ? [{ label: '-', value: '' }] : [] } }; - return ( - e.forEach((e) => { - const { name: n, value: s } = e; - if (n.includes('::')) { - const [e, r] = (function (e) { - const n = e.split('::'); - return [n.slice(0, -1), n.slice(-1)[0]]; - })(n), - a = pe(e); - t[a] || (t[a] = be(e)), - t[a]?.options.push({ value: s, label: n.split('::').join(' > '), menuLabel: r }); - for (let n = 0; n < e.length; n++) { - const s = e.slice(0, n), - r = e.slice(0, n + 1), - a = pe(s), - o = pe(r); - t[a] || (t[a] = be(s)), - void 0 === t[a]?.options.find((e) => e.value === o) && - t[a]?.options.push({ type: 'next', label: r[r.length - 1], value: o }); - } - } else t[he].options.push({ value: s, label: n }); - }), - t - ); - })(e, n), - [e, n] - ), - [s, r] = l.useState( - (function (e) { - const n = { type: 'RootGroup', options: [] }; - return ( - Object.values(e).forEach(({ options: e }) => { - n.options.push(...e.filter(({ type: e }) => void 0 === e)); - }), - n - ); - })(t) - ); - l.useEffect(() => { - r(t[he]); - }, [t]); - return { - currentGroup: s, - isGroupIdentifier: je, - setCurrentGroupByIdentifier: (e) => { - const n = t[e]; - n && r(n); +/** + * Maps a flat list of options to a nested structure + * + * For example, given the following options: + * [ + * { "name": "Bass::Fender::Precision", "value": "bass__fender__precision" }, + * { "name": "Bass::Fender::Jazz", "value": "bass__fender__jazz" } + * { "name": "Drums", "value": "drums" }, + * ] + * + * The following nested structure will be returned: + * { + * "[]": { + * "type": "RootGroup", + * "options": [ + * { "label": "Bass", "value": "[Bass]", type: "next" }, + * { "label": "Drums", "value": "drums" }, + * ] + * }, + * "[Bass]": { + * "type": "SubGroup", + * "name": "Bass", + * "backOption": { "type": "previous", "label": "Back", "value": "[]" }, + * "options": [ + * { "label": "Fender", "value": "[Bass::Fender]", type: "next" }, + * ] + * }, + * "[Bass::Fender]": { + * "type": "SubGroup", + * "name": "Fender", + * "backOption": { "type": "previous", "label": "Back", "value": "[Bass]" }, + * "options": [ + * { "menuLabel": "Precision", "label": "Bass > Fender > Precision", "value": "bass__fender__precision" }, + * { "menuLabel": "Jazz", "label": "Bass > Fender > Jazz", "value": "bass__fender__jazz" }, + * ] + * } + * } + * + * @param options original field options + * @param hasEmptyOption if true, adds an empty option to the root group + * @returns nested options + */ +function buildNestedOptions(options, hasEmptyOption) { + const result = { + [ROOT_GROUP_IDENTIFIER]: { + type: 'RootGroup', + options: hasEmptyOption ? [{ label: '-', value: '' }] : [], }, }; + options.forEach((option) => { + const { name, value } = option; + if (!name.includes('::')) { + result[ROOT_GROUP_IDENTIFIER].options.push({ + value, + label: name, + }); + } else { + const [groupNames, optionName] = getGroupAndOptionNames(name); + const groupIdentifier = getGroupIdentifier(groupNames); + if (!result[groupIdentifier]) { + result[groupIdentifier] = buildSubGroupOptions(groupNames); + } + result[groupIdentifier]?.options.push({ + value, + label: name.split('::').join(' > '), + menuLabel: optionName, + }); + // creates next options for each parent group, if they don't already exists + for (let i = 0; i < groupNames.length; i++) { + const parentGroupNames = groupNames.slice(0, i); + const nextGroupNames = groupNames.slice(0, i + 1); + const parentGroupIdentifier = getGroupIdentifier(parentGroupNames); + const nextGroupIdentifier = getGroupIdentifier(nextGroupNames); + if (!result[parentGroupIdentifier]) { + result[parentGroupIdentifier] = buildSubGroupOptions(parentGroupNames); + } + if ( + result[parentGroupIdentifier]?.options.find((o) => o.value === nextGroupIdentifier) === + undefined + ) { + result[parentGroupIdentifier]?.options.push({ + type: 'next', + label: nextGroupNames[nextGroupNames.length - 1], + value: nextGroupIdentifier, + }); + } + } + } + }); + return result; +} +/** + * When one or more options are selected, the Combobox component renders the label + * for an option in the input, searching for an option passed as a child with the + * same value as the selected option. + * + * In the first render we are passing only the root group options as children, + * and if we already have some selected values from a SubGroup, the component is not + * able to find the label for the selected option. + * + * We therefore need to pass all the non-navigation options as children in the first render. + * The passed options are cached by the Combobox component, so we can safely remove them + * after the first render and pass only the root group options. + */ +function getInitialGroup(nestedOptions) { + const result = { + type: 'RootGroup', + options: [], + }; + Object.values(nestedOptions).forEach(({ options }) => { + result.options.push(...options.filter(({ type }) => type === undefined)); + }); + return result; +} +function useNestedOptions({ options, hasEmptyOption }) { + const nestedOptions = reactExports.useMemo( + () => buildNestedOptions(options, hasEmptyOption), + [options, hasEmptyOption] + ); + const [currentGroup, setCurrentGroup] = reactExports.useState(getInitialGroup(nestedOptions)); + reactExports.useEffect(() => { + setCurrentGroup(nestedOptions[ROOT_GROUP_IDENTIFIER]); + }, [nestedOptions]); + const setCurrentGroupByIdentifier = (identifier) => { + const group = nestedOptions[identifier]; + if (group) { + setCurrentGroup(group); + } + }; + return { + currentGroup, + isGroupIdentifier, + setCurrentGroupByIdentifier, + }; } -function xe({ field: n }) { - const { label: t, options: r, error: a, value: o, name: i, required: u, description: c } = n, - { - currentGroup: d, - isGroupIdentifier: m, - setCurrentGroupByIdentifier: f, - } = ge({ options: r, hasEmptyOption: !1 }), - [h, w] = l.useState(o || []), - y = l.useRef(null); - l.useEffect(() => { - if (y.current && u) { - const e = y.current.querySelector('[role=combobox]'); - e?.setAttribute('aria-required', 'true'); + +function MultiSelect({ field }) { + const { label, options, error, value, name, required, description } = field; + const { currentGroup, isGroupIdentifier, setCurrentGroupByIdentifier } = useNestedOptions({ + options, + hasEmptyOption: false, + }); + const [selectedValues, setSelectValues] = reactExports.useState(value || []); + const wrapperRef = reactExports.useRef(null); + reactExports.useEffect(() => { + if (wrapperRef.current && required) { + const combobox = wrapperRef.current.querySelector('[role=combobox]'); + combobox?.setAttribute('aria-required', 'true'); + } + }, [wrapperRef, required]); + const handleChange = (changes) => { + if (Array.isArray(changes.selectionValue)) { + const lastSelectedItem = changes.selectionValue.slice(-1).toString(); + if (isGroupIdentifier(lastSelectedItem)) { + setCurrentGroupByIdentifier(lastSelectedItem); + } else { + setSelectValues(changes.selectionValue); + } } - }, [y, u]); - return e.jsxs(p, { + }; + return jsxRuntimeExports.jsxs(Field$1, { className: 'custom-form-field-layout', children: [ - h.map((n) => e.jsx('input', { type: 'hidden', name: `${i}[]`, value: n }, n)), - e.jsxs(v, { + selectedValues.map((selectedValue) => + jsxRuntimeExports.jsx( + 'input', + { type: 'hidden', name: `${name}[]`, value: selectedValue }, + selectedValue + ) + ), + jsxRuntimeExports.jsxs(Label$1, { className: 'custom-title', - children: [t, u && e.jsx(s, { 'aria-hidden': 'true', children: '*' })], + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], }), - e.jsxs(j, { - ref: y, - isMultiselectable: !0, - inputProps: { required: u }, - isEditable: !1, - validation: a ? 'error' : void 0, - onChange: (e) => { - if (Array.isArray(e.selectionValue)) { - const n = e.selectionValue.slice(-1).toString(); - m(n) ? f(n) : w(e.selectionValue); - } - }, - selectionValue: h, + jsxRuntimeExports.jsxs(Combobox, { + ref: wrapperRef, + isMultiselectable: true, + inputProps: { required }, + isEditable: false, + validation: error ? 'error' : undefined, + onChange: handleChange, + selectionValue: selectedValues, maxHeight: 'auto', className: 'custom-combobox', children: [ - 'SubGroup' === d.type && e.jsx(b, { ...d.backOption }), - 'SubGroup' === d.type - ? e.jsx(q, { - 'aria-label': d.name, - children: d.options.map((n) => - e.jsx(b, { ...n, children: n.menuLabel ?? n.label }, n.value) + currentGroup.type === 'SubGroup' && + jsxRuntimeExports.jsx(Option, { ...currentGroup.backOption }), + currentGroup.type === 'SubGroup' + ? jsxRuntimeExports.jsx(OptGroup, { + 'aria-label': currentGroup.name, + children: currentGroup.options.map((option) => + jsxRuntimeExports.jsx( + Option, + { ...option, children: option.menuLabel ?? option.label }, + option.value + ) ), }) - : d.options.map((n) => e.jsx(b, { ...n }, n.value)), + : currentGroup.options.map((option) => + jsxRuntimeExports.jsx(Option, { ...option }, option.value) + ), ], }), - a && e.jsx(g, { validation: 'error', children: a }), - c && e.jsx(x, { dangerouslySetInnerHTML: { __html: c } }), + error && jsxRuntimeExports.jsx(Message$1, { validation: 'error', children: error }), + description && + jsxRuntimeExports.jsx(Hint$1, { dangerouslySetInnerHTML: { __html: description } }), ], }); } -const we = y` + +const slideIn = $e` from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } -`, - ve = f.div` +`; +const Container$1 = styled.div` display: grid; - animation: ${we} 200ms forwards; -`, - qe = f.div` + animation: ${slideIn} 200ms forwards; +`; +const InnerContainer = styled.div` overflow: hidden; -`, - ye = f.li` - margin: ${(e) => e.theme.space.sm} 0; `; -function ke({ field: n }) { - const { options: r, required: a, description: l } = n; - return r.length > 0 - ? e.jsx(ve, { +const ListItem = styled.li` + margin: ${(props) => props.theme.space.sm} 0; +`; +function RelatedArticles({ field }) { + const { options, required, description } = field; + return options.length > 0 + ? jsxRuntimeExports.jsx(Container$1, { 'data-test-id': 'suggested-articles', className: '!mt-6', - children: e.jsxs(qe, { + children: jsxRuntimeExports.jsxs(InnerContainer, { children: [ - e.jsxs(t, { + jsxRuntimeExports.jsxs(Label, { className: 'custom-title', children: [ - e.jsx('span', { children: 'Related Articles' }), - a && e.jsx(s, { 'aria-hidden': 'true', children: '*' }), + jsxRuntimeExports.jsx('span', { children: 'Related Articles' }), + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), ], }), - l && e.jsx(o, { className: 'custom-hint', dangerouslySetInnerHTML: { __html: l } }), - e.jsx('div', { + description && + jsxRuntimeExports.jsx(Hint, { + className: 'custom-hint', + dangerouslySetInnerHTML: { __html: description }, + }), + jsxRuntimeExports.jsx('div', { className: 'sm:grid grid-cols-3 gap-4 mt-3 flex flex-row flex-nowrap overflow-x-scroll sm:overflow-x-hidden', - children: r.map((n, t) => - t <= 2 - ? e.jsx( - ye, - { - className: - 'col-span-1 !min-h-[7.5rem] list-none !rounded-[1.25rem] w-3/4 shrink-0 sm:w-full', - children: e.jsx(k, { - href: n.value, - className: 'hover:!no-underline', - target: '_blank', - children: e.jsxs('div', { - className: - 'col-span-1 !bg-light-accent-2 dark:!bg-dark-accent-2 hover:!bg-light-accent-2-hovered hover:dark:!bg-dark-accent-2-hovered !body-2 !text-light-accent-1 hover:!text-light-accent-1-hovered hover:dark:!text-dark-accent-1-hovered dark:!text-dark-accent-1 !min-h-[7.5rem] list-none !p-4 !rounded-[1.25rem] flex flex-col justify-between hover:!no-underline', - children: [e.jsx(Ce, {}), e.jsx('p', { children: n.name })], - }), + children: options.map((option, index) => { + if (index <= 2) { + return jsxRuntimeExports.jsx( + ListItem, + { + className: + 'col-span-1 !min-h-[7.5rem] list-none !rounded-[1.25rem] w-3/4 shrink-0 sm:w-full', + children: jsxRuntimeExports.jsx(Anchor, { + href: option.value, + className: 'hover:!no-underline', + target: '_blank', + children: jsxRuntimeExports.jsxs('div', { + className: + 'col-span-1 !bg-light-accent-2 dark:!bg-dark-accent-2 hover:!bg-light-accent-2-hovered hover:dark:!bg-dark-accent-2-hovered !body-2 !text-light-accent-1 hover:!text-light-accent-1-hovered hover:dark:!text-dark-accent-1-hovered dark:!text-dark-accent-1 !min-h-[7.5rem] list-none !p-4 !rounded-[1.25rem] flex flex-col justify-between hover:!no-underline', + children: [ + jsxRuntimeExports.jsx(Book, {}), + jsxRuntimeExports.jsx('p', { children: option.name }), + ], }), - }, - n.value - ) - : null - ), + }), + }, + option.value + ); + } else { + return null; + } + }), }), ], }), }) : null; } -const Ce = () => - e.jsx('svg', { - className: 'mx-0.5 min-w-4 min-h-4', - xmlns: 'http://www.w3.org/2000/svg', - width: '25', - height: '24', - viewBox: '0 0 25 24', - fill: 'none', - children: e.jsx('path', { - d: 'M21.334 5.31967V18.3297C21.334 18.6597 21.0141 18.8898 20.6841 18.7998C18.3001 18.1208 15.907 18.1177 13.521 19.3077C13.32 19.4077 13.083 19.2717 13.083 19.0467V5.85276C13.083 5.78576 13.1041 5.71877 13.1431 5.66477C13.7661 4.80977 14.73 4.21471 15.853 4.07871C17.665 3.85871 19.4071 4.07879 21.0481 4.86179C21.2231 4.94479 21.334 5.12667 21.334 5.31967ZM8.81396 4.07968C7.00196 3.85968 5.2599 4.07976 3.6189 4.86276C3.4449 4.94576 3.33398 5.12777 3.33398 5.32077V18.3308C3.33398 18.6608 3.65389 18.8908 3.98389 18.8008C6.36789 18.1218 8.76097 18.1187 11.147 19.3087C11.348 19.4087 11.585 19.2727 11.585 19.0477V5.85373C11.585 5.78673 11.5639 5.71974 11.5249 5.66574C10.9009 4.81074 9.93796 4.21568 8.81396 4.07968Z', - className: 'fill-light-accent-1 dark:fill-dark-accent-1', - }), +const Book = () => { + return jsxRuntimeExports.jsx('svg', { + className: 'mx-0.5 min-w-4 min-h-4', + xmlns: 'http://www.w3.org/2000/svg', + width: '25', + height: '24', + viewBox: '0 0 25 24', + fill: 'none', + children: jsxRuntimeExports.jsx('path', { + d: 'M21.334 5.31967V18.3297C21.334 18.6597 21.0141 18.8898 20.6841 18.7998C18.3001 18.1208 15.907 18.1177 13.521 19.3077C13.32 19.4077 13.083 19.2717 13.083 19.0467V5.85276C13.083 5.78576 13.1041 5.71877 13.1431 5.66477C13.7661 4.80977 14.73 4.21471 15.853 4.07871C17.665 3.85871 19.4071 4.07879 21.0481 4.86179C21.2231 4.94479 21.334 5.12667 21.334 5.31967ZM8.81396 4.07968C7.00196 3.85968 5.2599 4.07976 3.6189 4.86276C3.4449 4.94576 3.33398 5.12777 3.33398 5.32077V18.3308C3.33398 18.6608 3.65389 18.8908 3.98389 18.8008C6.36789 18.1218 8.76097 18.1187 11.147 19.3087C11.348 19.4087 11.585 19.2727 11.585 19.0477V5.85373C11.585 5.78673 11.5639 5.71974 11.5249 5.66574C10.9009 4.81074 9.93796 4.21568 8.81396 4.07968Z', + className: 'fill-light-accent-1 dark:fill-dark-accent-1', }), - _e = 'return-focus-to-ticket-form-field'; -function Se({ field: n, newRequestPath: t }) { - const s = l.createRef(); - return ( - l.useEffect(() => { - sessionStorage.getItem(_e) && (sessionStorage.removeItem(_e), s.current?.firstChild?.focus()); - }, []), - e.jsxs(e.Fragment, { - children: [ - e.jsx('input', { type: 'hidden', name: n.name, value: n.value }), - n.options.length > 1 && - e.jsxs(p, { - children: [ - e.jsx(v, { children: n.label }), - e.jsx(j, { - isEditable: !1, - onChange: ({ selectionValue: e }) => { - if (e && 'number' == typeof e) { - const n = new URL(window.location.href); - n.searchParams.set('ticket_form_id', e), - sessionStorage.setItem(_e, 'true'), - window.location.assign(`${t}${n.search}`); - } - }, - ref: s, - children: n.options.map((t) => - e.jsx( - b, - { - value: t.value, - label: t.name, - isSelected: n.value === t.value, - children: t.name, - }, - t.value - ) - ), - }), - ], - }), - ], - }) - ); + }); +}; + +const key = 'return-focus-to-ticket-form-field'; +function TicketFormField({ field, newRequestPath }) { + const ref = reactExports.createRef(); + const handleChange = ({ selectionValue }) => { + if (selectionValue && typeof selectionValue === 'number') { + const url = new URL(window.location.href); + const searchParams = url.searchParams; + searchParams.set('ticket_form_id', selectionValue); + sessionStorage.setItem(key, 'true'); + window.location.assign(`${newRequestPath}${url.search}`); + } + }; + reactExports.useEffect(() => { + if (sessionStorage.getItem(key)) { + sessionStorage.removeItem(key); + // return focus to the ticket form field dropdown + // after the page reloads for better a11y + ref.current?.firstChild?.focus(); + } + }, []); + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { + children: [ + jsxRuntimeExports.jsx('input', { type: 'hidden', name: field.name, value: field.value }), + field.options.length > 1 && + jsxRuntimeExports.jsxs(Field$1, { + children: [ + jsxRuntimeExports.jsx(Label$1, { children: field.label }), + jsxRuntimeExports.jsx(Combobox, { + isEditable: false, + onChange: handleChange, + ref: ref, + children: field.options.map((option) => + jsxRuntimeExports.jsx( + Option, + { + value: option.value, + label: option.name, + isSelected: field.value === option.value, + children: option.name, + }, + option.value + ) + ), + }), + ], + }), + ], + }); } -function Ie({ field: n }) { - const { value: t, name: s } = n; - return e.jsx('input', { type: 'hidden', name: s, value: t }); + +function ParentTicketField({ field }) { + const { value, name } = field; + return jsxRuntimeExports.jsx('input', { type: 'hidden', name: name, value: value }); } -function Te(e) { - const n = l.useRef(!1), - t = l.useRef(!1); - return { - formRefCallback: l.useCallback( - (s) => { - s && - !n.current && - ((n.current = !0), - (s.submit = async () => { - if (!1 === t.current) { - t.current = !0; - const n = await (async function () { - const e = await fetch('/api/v2/help_center/sessions.json'), - { current_session: n } = await e.json(); - return n.csrf_token; - })(), - r = document.createElement('input'); - (r.type = 'hidden'), (r.name = 'authenticity_token'), (r.value = n), s.appendChild(r); - const a = e.filter((e) => 'partialcreditcard' === e.type); - for (const e of a) { - const n = s.querySelector(`input[name="${e.name}"]`); - n && - n instanceof HTMLInputElement && - 4 === n.value.length && - (n.value = `XXXXXXXXX${n.value}`); + +// NOTE: This is a temporary handling of the CSRF token +async function fetchCsrfToken$1() { + const response = await fetch('/api/v2/help_center/sessions.json'); + const { current_session } = await response.json(); + return current_session.csrf_token; +} + +/** + * This hook creates a ref callback used to override the submit method of the form + * that uses the callback. + * Before submitting the form, it fetches the CSRF token from the backend and appends it to the form, + * and redacts the value of the eventual credit card field + * @param ticketFields array of ticket fields for the form + * @returns a Ref callback and a submit handler + */ +function useFormSubmit(ticketFields) { + const initialized = reactExports.useRef(false); + const isSubmitting = reactExports.useRef(false); + const formRefCallback = reactExports.useCallback( + (ref) => { + if (ref && !initialized.current) { + initialized.current = true; + /* We are monkey patching the submit method of the form, since this behavior is what + other scripts in Help Center are intercepting the submit event, stopping the event propagation and + calling the submit method directly */ + ref.submit = async () => { + /* We are performing an async call to fetch the CSRF token and for this reason + the submit is not immediate, and the user can click the submit button multiple times. + We don't want to disable the submit button for A11Y, so we use the isSubmitting ref + to stop subsequent submits after the first one. */ + if (isSubmitting.current === false) { + isSubmitting.current = true; + const token = await fetchCsrfToken$1(); + const hiddenInput = document.createElement('input'); + hiddenInput.type = 'hidden'; + hiddenInput.name = 'authenticity_token'; + hiddenInput.value = token; + ref.appendChild(hiddenInput); + // The backend expects the credit card field to have a length at least of 13 characters. + // We are prefixing the 4 digits with 9 Xs to make sure the value has the expected length + const creditCardFields = ticketFields.filter( + (field) => field.type === 'partialcreditcard' + ); + for (const creditCardField of creditCardFields) { + const creditCardInput = ref.querySelector(`input[name="${creditCardField.name}"]`); + if ( + creditCardInput && + creditCardInput instanceof HTMLInputElement && + creditCardInput.value.length === 4 + ) { + creditCardInput.value = `XXXXXXXXX${creditCardInput.value}`; } - HTMLFormElement.prototype.submit.call(s); } - })); - }, - [e] - ), - handleSubmit: (e) => { - e.preventDefault(), e.target.submit(); + HTMLFormElement.prototype.submit.call(ref); + } + }; + } }, + [ticketFields] + ); + const handleSubmit = (e) => { + e.preventDefault(); + e.target.submit(); }; + return { formRefCallback, handleSubmit }; } -const Fe = ['true', 'false'], - Re = [ - 'pre', - 'strong', - 'b', - 'p', - 'blockquote', - 'ul', - 'ol', - 'li', - 'h2', - 'h3', - 'h4', - 'i', - 'em', - 'br', - ]; -function Pe(e, n) { - if (!Number.isNaN(Number(e))) { - const t = `request[custom_fields][${e}]`; - return n.ticketFields.find((e) => e.name === t); + +const MAX_URL_LENGTH = 2048; +const TICKET_FIELD_PREFIX = 'tf_'; +const ALLOWED_BOOLEAN_VALUES = ['true', 'false']; +const ALLOWED_HTML_TAGS = [ + 'pre', + 'strong', + 'b', + 'p', + 'blockquote', + 'ul', + 'ol', + 'li', + 'h2', + 'h3', + 'h4', + 'i', + 'em', + 'br', +]; +function getFieldFromId(id, prefilledTicketFields) { + const isCustomField = !Number.isNaN(Number(id)); + if (isCustomField) { + const name = `request[custom_fields][${id}]`; + return prefilledTicketFields.ticketFields.find((field) => field.name === name); } - switch (e) { + switch (id) { case 'anonymous_requester_email': - return n.emailField; + return prefilledTicketFields.emailField; case 'due_at': - return n.dueDateField; + return prefilledTicketFields.dueDateField; case 'collaborators': - return n.ccField; + return prefilledTicketFields.ccField; case 'organization_id': - return n.organizationField; + return prefilledTicketFields.organizationField; default: - return n.ticketFields.find((n) => n.name === `request[${e}]`); + return prefilledTicketFields.ticketFields.find((field) => field.name === `request[${id}]`); } } -function Ne({ ticketFields: e, ccField: n, dueDateField: t, emailField: s, organizationField: r }) { - return l.useMemo( - () => - (function (e) { - const { href: n } = location, - t = new URL(n).searchParams, - s = { ...e, ticketFields: [...e.ticketFields] }; - if (n.length > 2048) return e; - if (t.get('parent_id')) return e; - for (const [e, n] of t) { - if (!e.startsWith('tf_')) continue; - const t = Pe(e.substring(3), s); - if (!t) continue; - const r = C.sanitize(n, { ALLOWED_TAGS: Re }); - switch (t.type) { - case 'partialcreditcard': - continue; - case 'multiselect': - t.value = r.split(',').filter((e) => t.options.some((n) => n.value === e)); - break; - case 'checkbox': - Fe.includes(r) && (t.value = 'true' === r ? 'on' : 'false' === r ? 'off' : ''); - break; - default: - t.value = r; - } +function getPrefilledTicketFields(fields) { + const { href } = location; + const params = new URL(href).searchParams; + const prefilledFields = { + ...fields, + ticketFields: [...fields.ticketFields], + }; + if (href.length > MAX_URL_LENGTH) return fields; + if (params.get('parent_id')) return fields; + for (const [key, value] of params) { + if (!key.startsWith(TICKET_FIELD_PREFIX)) continue; + const ticketFieldId = key.substring(TICKET_FIELD_PREFIX.length); + const field = getFieldFromId(ticketFieldId, prefilledFields); + if (!field) continue; + const sanitizedValue = purify.sanitize(value, { + ALLOWED_TAGS: ALLOWED_HTML_TAGS, + }); + switch (field.type) { + case 'partialcreditcard': + continue; + case 'multiselect': + field.value = sanitizedValue + .split(',') + // filter out prefilled options that don't exist + .filter((value) => field.options.some((option) => option.value === value)); + break; + case 'checkbox': + if (ALLOWED_BOOLEAN_VALUES.includes(sanitizedValue)) { + field.value = sanitizedValue === 'true' ? 'on' : sanitizedValue === 'false' ? 'off' : ''; } - return s; - })({ ticketFields: e, ccField: n, dueDateField: t, emailField: s, organizationField: r }), - [e, n, t, s, r] + break; + default: + field.value = sanitizedValue; + } + } + return prefilledFields; +} +function usePrefilledTicketFields({ + ticketFields, + ccField, + dueDateField, + emailField, + organizationField, +}) { + return reactExports.useMemo( + () => + getPrefilledTicketFields({ + ticketFields, + ccField, + dueDateField, + emailField, + organizationField, + }), + [ticketFields, ccField, dueDateField, emailField, organizationField] ); } -const Le = f.div` + +const FileNameWrapper = styled.div` flex: 1; `; -function $e({ file: n, onRemove: t }) { - const { t: s } = u(), - r = (e) => { - ('Enter' !== e.code && 'Space' !== e.code && 'Delete' !== e.code && 'Backspace' !== e.code) || - (e.preventDefault(), t()); - }, - a = 'pending' === n.status ? n.file_name : n.value.file_name, - o = s('new-request-form.attachments.stop-upload', 'Stop upload'), - l = s('new-request-form.attachments.remove-file', 'Remove file'); - return e.jsx(_.Item, { - children: e.jsx(S, { +function FileListItem({ file, onRemove }) { + const { t } = useTranslation(); + const handleFileKeyDown = (e) => { + if (e.code === 'Delete' || e.code === 'Backspace') { + e.preventDefault(); + onRemove(); + } + }; + const handleCloseKeyDown = (e) => { + if (e.code === 'Enter' || e.code === 'Space' || e.code === 'Delete' || e.code === 'Backspace') { + e.preventDefault(); + onRemove(); + } + }; + const fileName = file.status === 'pending' ? file.file_name : file.value.file_name; + const stopUploadLabel = t('new-request-form.attachments.stop-upload', 'Stop upload'); + const removeFileLabel = t('new-request-form.attachments.remove-file', 'Remove file'); + return jsxRuntimeExports.jsx(FileList.Item, { + children: jsxRuntimeExports.jsx(File$1, { type: 'generic', - title: a, - onKeyDown: (e) => { - ('Delete' !== e.code && 'Backspace' !== e.code) || (e.preventDefault(), t()); - }, + title: fileName, + onKeyDown: handleFileKeyDown, children: - 'pending' === n.status - ? e.jsxs(e.Fragment, { + file.status === 'pending' + ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - e.jsx(Le, { children: a }), - e.jsx(I, { - content: o, - children: e.jsx(S.Close, { - 'aria-label': o, + jsxRuntimeExports.jsx(FileNameWrapper, { children: fileName }), + jsxRuntimeExports.jsx(Tooltip, { + content: stopUploadLabel, + children: jsxRuntimeExports.jsx(File$1.Close, { + 'aria-label': stopUploadLabel, onClick: () => { - t(); + onRemove(); }, - onKeyDown: r, + onKeyDown: handleCloseKeyDown, }), }), - e.jsx(T, { - value: n.progress, - 'aria-label': s( + jsxRuntimeExports.jsx(Progress, { + value: file.progress, + 'aria-label': t( 'new-request-form.attachments.uploading', 'Uploading {{fileName}}', - { fileName: a } + { fileName } ), }), ], }) - : e.jsxs(e.Fragment, { + : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - e.jsx(Le, { - children: e.jsx(k, { - isExternal: !0, - href: n.value.url, + jsxRuntimeExports.jsx(FileNameWrapper, { + children: jsxRuntimeExports.jsx(Anchor, { + isExternal: true, + href: file.value.url, target: '_blank', - children: a, + children: fileName, }), }), - e.jsx(I, { - content: l, - children: e.jsx(S.Delete, { - 'aria-label': l, + jsxRuntimeExports.jsx(Tooltip, { + content: removeFileLabel, + children: jsxRuntimeExports.jsx(File$1.Delete, { + 'aria-label': removeFileLabel, onClick: () => { - t(); + onRemove(); }, - onKeyDown: r, + onKeyDown: handleCloseKeyDown, }), }), - e.jsx(T, { value: 100, 'aria-hidden': 'true' }), + jsxRuntimeExports.jsx(Progress, { value: 100, 'aria-hidden': 'true' }), ], }), }), }); } -async function Ee() { - const e = await fetch('/api/v2/users/me.json'), - { - user: { authenticity_token: n }, - } = await e.json(); - return n; + +function useAttachedFiles(initialValue) { + const [files, setFiles] = reactExports.useState(initialValue); + const addPendingFile = reactExports.useCallback((id, file_name, xhr) => { + setFiles((current) => [...current, { status: 'pending', id, file_name, progress: 0, xhr }]); + }, []); + const setPendingFileProgress = reactExports.useCallback((id, progress) => { + setFiles((current) => + current.map((file) => + file.status === 'pending' && file.id === id ? { ...file, progress } : file + ) + ); + }, []); + const removePendingFile = reactExports.useCallback((id) => { + setFiles((current) => current.filter((file) => file.status !== 'pending' || file.id !== id)); + }, []); + const removeUploadedFile = reactExports.useCallback((id) => { + setFiles((current) => + current.filter((file) => file.status !== 'uploaded' || file.value.id !== id) + ); + }, []); + const setUploaded = reactExports.useCallback((pendingId, value) => { + setFiles((current) => + current.map((file) => + file.status === 'pending' && file.id === pendingId ? { status: 'uploaded', value } : file + ) + ); + }, []); + return { + files, + addPendingFile, + setPendingFileProgress, + removePendingFile, + removeUploadedFile, + setUploaded, + }; } -function Ve({ field: s }) { - const { label: o, error: f, name: h, attachments: p } = s, - { - files: j, - addPendingFile: b, - setPendingFileProgress: g, - setUploaded: x, - removePendingFile: w, - removeUploadedFile: v, - } = (function (e) { - const [n, t] = l.useState(e); - return { - files: n, - addPendingFile: l.useCallback((e, n, s) => { - t((t) => [...t, { status: 'pending', id: e, file_name: n, progress: 0, xhr: s }]); - }, []), - setPendingFileProgress: l.useCallback((e, n) => { - t((t) => - t.map((t) => ('pending' === t.status && t.id === e ? { ...t, progress: n } : t)) - ); - }, []), - removePendingFile: l.useCallback((e) => { - t((n) => n.filter((n) => 'pending' !== n.status || n.id !== e)); - }, []), - removeUploadedFile: l.useCallback((e) => { - t((n) => n.filter((n) => 'uploaded' !== n.status || n.value.id !== e)); - }, []), - setUploaded: l.useCallback((e, n) => { - t((t) => - t.map((t) => - 'pending' === t.status && t.id === e ? { status: 'uploaded', value: n } : t - ) - ); - }, []), - }; - })(p.map((e) => ({ status: 'uploaded', value: e })) ?? []), - { addToast: q } = i(), - { t: y } = u(), - k = l.useCallback( - (n) => { - q(({ close: t }) => - e.jsxs(c, { - type: 'error', - children: [ - e.jsx(d, { - children: y('new-request-form.attachments.upload-error-title', 'Upload error'), - }), - y( - 'new-request-form.attachments.upload-error-description', - 'There was an error uploading {{fileName}}. Try again or upload another file.', - { fileName: n } - ), - e.jsx(m, { 'aria-label': y('new-request-form.close-label', 'Close'), onClick: t }), - ], - }) - ); - }, - [q, y] - ), - C = l.useCallback( - async (e) => { - const n = await Ee(); - for (const t of e) { - const e = new XMLHttpRequest(), - s = new URL(`${window.location.origin}/api/v2/uploads.json`); - if ((s.searchParams.append('filename', t.name), e.open('POST', s), t.type)) - e.setRequestHeader('Content-Type', t.type); - else { - const n = F.getType(t.name); - e.setRequestHeader('Content-Type', n || 'application/octet-stream'); - } - e.setRequestHeader('X-CSRF-Token', n), (e.responseType = 'json'); - const r = crypto.randomUUID(); - b(r, t.name, e), - e.upload.addEventListener('progress', ({ loaded: e, total: n }) => { - const t = Math.round((e / n) * 100); - t <= 90 && g(r, t); - }), - e.addEventListener('load', () => { - if (e.status >= 200 && e.status < 300) { - const { - upload: { - attachment: { file_name: n, content_url: t }, - token: s, - }, - } = e.response; - x(r, { id: s, file_name: n, url: t }); - } else k(t.name), w(r); + +async function fetchCsrfToken() { + const response = await fetch('/api/v2/users/me.json'); + const { + user: { authenticity_token }, + } = await response.json(); + return authenticity_token; +} +function Attachments({ field }) { + const { label, error, name, attachments } = field; + const { + files, + addPendingFile, + setPendingFileProgress, + setUploaded, + removePendingFile, + removeUploadedFile, + } = useAttachedFiles( + attachments.map((value) => ({ + status: 'uploaded', + value, + })) ?? [] + ); + const { addToast } = useToast(); + const { t } = useTranslation(); + const notifyError = reactExports.useCallback( + (fileName) => { + addToast(({ close }) => + jsxRuntimeExports.jsxs(Notification, { + type: 'error', + children: [ + jsxRuntimeExports.jsx(Title, { + children: t('new-request-form.attachments.upload-error-title', 'Upload error'), }), - e.addEventListener('error', () => { - k(t.name), w(r); + t( + 'new-request-form.attachments.upload-error-description', + 'There was an error uploading {{fileName}}. Try again or upload another file.', + { fileName } + ), + jsxRuntimeExports.jsx(Close, { + 'aria-label': t('new-request-form.close-label', 'Close'), + onClick: close, }), - e.send(t); + ], + }) + ); + }, + [addToast, t] + ); + const onDrop = reactExports.useCallback( + async (acceptedFiles) => { + const csrfToken = await fetchCsrfToken(); + for (const file of acceptedFiles) { + // fetch doesn't support upload progress, so we use XMLHttpRequest + const xhr = new XMLHttpRequest(); + const url = new URL(`${window.location.origin}/api/v2/uploads.json`); + url.searchParams.append('filename', file.name); + xhr.open('POST', url); + // If the browser returns a type for the file, use it as the Content-Type header, + // otherwise try to determine the mime type from the file extension using the mime + // library. If we can't determine the mime type, we'll fall back to a generic + // application/octet-stream. + if (file.type) { + xhr.setRequestHeader('Content-Type', file.type); + } else { + const mimeType = mime.getType(file.name); + xhr.setRequestHeader('Content-Type', mimeType || 'application/octet-stream'); } - }, - [b, w, g, x, k] - ), - { getRootProps: _, getInputProps: S, isDragActive: I } = R({ onDrop: C }); - return e.jsxs(n, { + xhr.setRequestHeader('X-CSRF-Token', csrfToken); + xhr.responseType = 'json'; + const pendingId = crypto.randomUUID(); + addPendingFile(pendingId, file.name, xhr); + xhr.upload.addEventListener('progress', ({ loaded, total }) => { + const progress = Math.round((loaded / total) * 100); + // There is a bit of delay between the upload ending and the + // load event firing, so we don't want to set the progress to 100 + // otherwise it is not clear that the upload is still in progress. + if (progress <= 90) { + setPendingFileProgress(pendingId, progress); + } + }); + xhr.addEventListener('load', () => { + if (xhr.status >= 200 && xhr.status < 300) { + const { + upload: { + attachment: { file_name, content_url }, + token, + }, + } = xhr.response; + setUploaded(pendingId, { id: token, file_name, url: content_url }); + } else { + notifyError(file.name); + removePendingFile(pendingId); + } + }); + xhr.addEventListener('error', () => { + notifyError(file.name); + removePendingFile(pendingId); + }); + xhr.send(file); + } + }, + [addPendingFile, removePendingFile, setPendingFileProgress, setUploaded, notifyError] + ); + const { getRootProps, getInputProps, isDragActive } = useDropzone({ + onDrop, + }); + const handleRemove = async (file) => { + if (file.status === 'pending') { + file.xhr.abort(); + removePendingFile(file.id); + } else { + const csrfToken = await fetchCsrfToken(); + const token = file.value.id; + removeUploadedFile(file.value.id); + await fetch(`/api/v2/uploads/${token}.json`, { + method: 'DELETE', + headers: { 'X-CSRF-Token': csrfToken }, + }); + } + }; + return jsxRuntimeExports.jsxs(Field, { className: 'custom-form-field-layout', children: [ - e.jsx(t, { className: 'custom-title', children: o }), - f && e.jsx(a, { validation: 'error', children: f }), - e.jsxs(P, { - ..._(), - isDragging: I, + jsxRuntimeExports.jsx(Label, { className: 'custom-title', children: label }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), + jsxRuntimeExports.jsxs(FileUpload, { + ...getRootProps(), + isDragging: isDragActive, className: '!border-0 !bg-light-surface-3 dark:!bg-dark-surface-3 !rounded-xl !py-3 flex flex-row space-x-4 !px-4', children: [ - e.jsx(Me, {}), - I - ? e.jsx('span', { - children: y('new-request-form.attachments.drop-files-label', 'Drop files here'), + jsxRuntimeExports.jsx(File, {}), + isDragActive + ? jsxRuntimeExports.jsx('span', { + children: t('new-request-form.attachments.drop-files-label', 'Drop files here'), }) - : e.jsx('span', { + : jsxRuntimeExports.jsx('span', { className: 'button-label-2 !text-light-neutral-1 dark:!text-dark-neutral-1', - children: y( + children: t( 'new-request-form.attachments.choose-file-label', 'Add file or drop files here' ), }), - e.jsx(r, { ...S() }), + jsxRuntimeExports.jsx(Input$1, { ...getInputProps() }), ], }), - j.map((n) => - e.jsx( - $e, + files.map((file) => + jsxRuntimeExports.jsx( + FileListItem, { - file: n, + file: file, onRemove: () => { - (async (e) => { - if ('pending' === e.status) e.xhr.abort(), w(e.id); - else { - const n = await Ee(), - t = e.value.id; - v(e.value.id), - await fetch(`/api/v2/uploads/${t}.json`, { - method: 'DELETE', - headers: { 'X-CSRF-Token': n }, - }); - } - })(n); + handleRemove(file); }, }, - 'pending' === n.status ? n.id : n.value.id + file.status === 'pending' ? file.id : file.value.id ) ), - j.map( - (n) => - 'uploaded' === n.status && - e.jsx('input', { type: 'hidden', name: h, value: JSON.stringify(n.value) }, n.value.id) + files.map( + (file) => + file.status === 'uploaded' && + jsxRuntimeExports.jsx( + 'input', + { type: 'hidden', name: name, value: JSON.stringify(file.value) }, + file.value.id + ) ), ], }); } -const Me = () => - e.jsx('svg', { +const File = () => { + return jsxRuntimeExports.jsx('svg', { className: 'mx-0.5 min-w-4 min-h-4', xmlns: 'http://www.w3.org/2000/svg', width: '25', height: '24', viewBox: '0 0 25 24', fill: 'none', - children: e.jsx('path', { + children: jsxRuntimeExports.jsx('path', { d: 'M15.25 6V3.75L19.75 8.25H17.5C15.92 8.25 15.25 7.58 15.25 6ZM17.5 9.75C15.08 9.75 13.75 8.42 13.75 6V3H8.5C6.5 3 5.5 4 5.5 6V18C5.5 20 6.5 21 8.5 21H17.5C19.5 21 20.5 20 20.5 18V9.75H17.5Z', className: 'fill-light-neutral-1 dark:fill-dark-neutral-1', }), }); -function De(e, n) { - return n.filter((n) => n.child_fields.some((n) => n.id === e)); -} -function Ae(e, n, t) { - return e.filter((e) => { - const s = t.find((n) => n.id === e.parent_field_id); - if (!s) return !1; - const r = De(s.id, n); - return s.value === e.value && (0 === r.length || Ae(r, n, t).length > 0); +}; + +function getFieldConditions(fieldId, endUserConditions) { + return endUserConditions.filter((condition) => { + return condition.child_fields.some((child) => child.id === fieldId); + }); +} +function getAppliedConditions(fieldConditions, allConditions, fields) { + return fieldConditions.filter((condition) => { + const parentField = fields.find((field) => field.id === condition.parent_field_id); + if (!parentField) { + return false; + } + const parentFieldConditions = getFieldConditions(parentField.id, allConditions); + // the condition is applied if the parent field value matches the condition value + // and if the parent field has no conditions or if the parent field conditions are met + return ( + parentField.value === condition.value && + (parentFieldConditions.length === 0 || + getAppliedConditions(parentFieldConditions, allConditions, fields).length > 0) + ); + }); +} +function getVisibleFields(fields, endUserConditions) { + if (endUserConditions.length === 0) { + return fields; + } + return fields.reduce((acc, field) => { + const fieldConditions = getFieldConditions(field.id, endUserConditions); + if (fieldConditions.length === 0) { + return [...acc, field]; + } + const appliedConditions = getAppliedConditions(fieldConditions, endUserConditions, fields); + if (appliedConditions.length > 0) { + return [ + ...acc, + { + ...field, + required: appliedConditions.some((condition) => + condition.child_fields.some((child) => child.id == field.id && child.is_required) + ), + }, + ]; + } + return acc; + }, []); +} + +function DatePicker({ field, locale, valueFormat, onChange }) { + const { label, error, value, name, required, description } = field; + const [date, setDate] = reactExports.useState(value ? new Date(value) : undefined); + const formatDate = (value) => { + if (value === undefined) { + return ''; + } + const isoString = value.toISOString(); + return valueFormat === 'dateTime' ? isoString : isoString.split('T')[0]; + }; + const handleChange = (date) => { + // Set the time to 12:00:00 as this is also the expected behavior across Support and the API + const newDate = new Date( + Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0) + ); + setDate(newDate); + const dateString = formatDate(newDate); + if (dateString !== undefined) { + onChange(dateString); + } + }; + const handleInputChange = (e) => { + // Allow field to be cleared + if (e.target.value === '') { + setDate(undefined); + onChange(''); + } + }; + return jsxRuntimeExports.jsxs(Field, { + children: [ + jsxRuntimeExports.jsxs(Label, { + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], + }), + description && + jsxRuntimeExports.jsx(Hint, { dangerouslySetInnerHTML: { __html: description } }), + jsxRuntimeExports.jsx(Datepicker, { + value: date, + onChange: handleChange, + locale: locale, + children: jsxRuntimeExports.jsx(Input$1, { + required: required, + lang: locale, + onChange: handleInputChange, + validation: error ? 'error' : undefined, + }), + }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), + jsxRuntimeExports.jsx('input', { type: 'hidden', name: name, value: formatDate(date) }), + ], + }); +} + +function useTagsInputContainer({ + tags, + onTagsChange, + inputValue, + onInputValueChange, + inputRef, + gridRowRef, + i18n, +}) { + const [selectedIndex, setSelectedIndex] = reactExports.useState(0); + const [announcement, setAnnouncement] = reactExports.useState(''); + const gridOnChange = reactExports.useCallback( + (_, colIndex) => { + setSelectedIndex(colIndex); + }, + [setSelectedIndex] + ); + const { getGridProps, getGridCellProps } = useGrid({ + matrix: [tags], + rowIndex: 0, + colIndex: selectedIndex, + onChange: gridOnChange, + }); + const hasTag = (tag) => { + return tags.includes(tag); + }; + const addTag = (tag) => { + onTagsChange([...tags, tag]); + setAnnouncement(i18n.addedTag(tag)); + }; + const removeTagAt = (at) => { + const tag = tags[at]; + onTagsChange(tags.filter((_, index) => index !== at)); + setAnnouncement(i18n.removedTag(tag)); + setSelectedIndex(0); + /* Move focus to the first tag once a tag has been removed, after 100ms to let screen reader read the + announcement first */ + setTimeout(() => { + const selectedTag = gridRowRef.current?.querySelector(`[tabindex="0"]`); + selectedTag?.focus(); + }, 100); + }; + const handleContainerClick = (e) => { + if (e.target === e.currentTarget) { + inputRef.current?.focus(); + } + }; + const handleContainerBlur = () => { + setSelectedIndex(0); + }; + const handleInputKeyDown = (e) => { + const target = e.target; + const tag = target.value; + if ( + tag && + (e.key === KEYS.SPACE || e.key === KEYS.ENTER || e.key === KEYS.TAB || e.key === KEYS.COMMA) + ) { + e.preventDefault(); + if (!hasTag(tag)) { + addTag(tag); + } + onInputValueChange(''); + } + }; + const handleInputChange = (e) => { + const currentValue = e.target.value; + /* On mobile browsers, the keyDown event doesn't provide the code + of the pressed key: https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode, + so we need to check for spaces or commas on the change event to let the user + adds a tag */ + const [tag, separator] = [currentValue.slice(0, -1), currentValue.slice(-1)]; + if (separator === ' ' || separator === ',') { + if (tag.length > 0 && !hasTag(tag)) { + addTag(tag); + } + onInputValueChange(''); + } else { + onInputValueChange(currentValue); + } + }; + const handleInputPaste = (e) => { + e.preventDefault(); + const data = e.clipboardData.getData('text'); + const values = new Set(data.split(/[\s,;]+/).filter((value) => !tags.includes(value))); + onTagsChange([...tags, ...values]); + setAnnouncement(i18n.addedTags([...values])); + }; + const handleInputOnBlur = (e) => { + const target = e.target; + const tag = target.value; + if (tag) { + if (!hasTag(tag)) { + addTag(tag); + } + onInputValueChange(''); + } + }; + const handleTagKeyDown = (index) => (e) => { + if (e.code === 'Backspace') { + e.preventDefault(); + removeTagAt(index); + } + }; + const handleTagCloseClick = (index) => () => { + removeTagAt(index); + }; + const getContainerProps = () => ({ + onClick: handleContainerClick, + onBlur: handleContainerBlur, + tabIndex: -1, + }); + const getGridRowProps = () => ({ + role: 'row', }); -} -function ze(e, n) { - return 0 === n.length - ? e - : e.reduce((t, s) => { - const r = De(s.id, n); - if (0 === r.length) return [...t, s]; - const a = Ae(r, n, e); - return a.length > 0 - ? [ - ...t, - { - ...s, - required: a.some((e) => e.child_fields.some((e) => e.id == s.id && e.is_required)), - }, - ] - : t; - }, []); -} -function Ge({ field: i, locale: u, valueFormat: c, onChange: d }) { - const { label: m, error: f, value: h, name: p, required: j, description: b } = i, - [g, x] = l.useState(h ? new Date(h) : void 0), - w = (e) => { - if (void 0 === e) return ''; - const n = e.toISOString(); - return 'dateTime' === c ? n : n.split('T')[0]; - }; - return e.jsxs(n, { - children: [ - e.jsxs(t, { children: [m, j && e.jsx(s, { 'aria-hidden': 'true', children: '*' })] }), - b && e.jsx(o, { dangerouslySetInnerHTML: { __html: b } }), - e.jsx(N, { - value: g, - onChange: (e) => { - const n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), 12, 0, 0)); - x(n); - const t = w(n); - void 0 !== t && d(t); - }, - locale: u, - children: e.jsx(r, { - required: j, - lang: u, - onChange: (e) => { - '' === e.target.value && (x(void 0), d('')); - }, - validation: f ? 'error' : void 0, - }), - }), - f && e.jsx(a, { validation: 'error', children: f }), - e.jsx('input', { type: 'hidden', name: p, value: w(g) }), - ], + const getTagCloseProps = (index) => ({ + onClick: handleTagCloseClick(index), }); + const getInputProps = () => ({ + value: inputValue, + onChange: handleInputChange, + onKeyDown: handleInputKeyDown, + onPaste: handleInputPaste, + onBlur: handleInputOnBlur, + }); + const getAnnouncementProps = () => ({ + 'aria-live': 'polite', + 'aria-relevant': 'text', + }); + return { + getContainerProps, + getGridProps, + getGridRowProps, + getGridCellProps: (index) => + getGridCellProps({ + rowIndex: 0, + colIndex: index, + onKeyDown: handleTagKeyDown(index), + }), + getTagCloseProps, + getInputProps, + announcement, + getAnnouncementProps, + }; } -const He = - /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, - Be = f(V)` - padding: ${(e) => `${e.theme.space.xxs} ${e.theme.space.sm}`}; + +const EMAIL_REGEX = + /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; +const Container = styled(FauxInput)` + padding: ${(props) => `${props.theme.space.xxs} ${props.theme.space.sm}`}; // Removes white spaces for inline elements font-size: 0; // Same as height of Tag size="large" + base space (4px) // to give some vertical space between tags - --line-height: ${(e) => 8 * e.theme.space.base + e.theme.space.base}px; + --line-height: ${(props) => props.theme.space.base * 8 + props.theme.space.base}px; line-height: var(--line-height); -`, - Xe = f.span` +`; +const GridCell = styled.span` display: inline-block; - margin-right: ${(e) => e.theme.space.sm}; -`, - Oe = f(M)` - ${(e) => E({ theme: e.theme, shadowWidth: 'sm', selector: '&:focus' })} -`, - Ue = f.div` + margin-right: ${(props) => props.theme.space.sm}; +`; +const StyledTag = styled(Tag)` + ${(props) => + focusStyles({ + theme: props.theme, + shadowWidth: 'sm', + selector: '&:focus', + })} +`; +const InputWrapper = styled.div` display: inline-block; position: relative; -`, - We = f(V)` +`; +const InputMirror = styled(FauxInput)` display: inline-block; min-width: 200px; opacity: 0; user-select: none; height: var(--line-height); line-height: var(--line-height); -`, - Ze = f(r)` +`; +const StyledInput = styled(Input$1)` position: absolute; top: 0; left: 0; height: var(--line-height); line-height: var(--line-height); `; -function Ke({ field: r }) { - const { label: i, value: c, name: d, error: m, description: f } = r, - { t: h } = u(), - p = c ? c.split(',').map((e) => e.trim()) : [], - [j, b] = l.useState(p), - [g, x] = l.useState(''), - w = l.useRef(null), - v = l.useRef(null), - { - getContainerProps: q, - getGridProps: y, - getGridRowProps: k, - getGridCellProps: C, - getTagCloseProps: _, - getInputProps: S, - getAnnouncementProps: T, - announcement: F, - } = (function ({ - tags: e, - onTagsChange: n, - inputValue: t, - onInputValueChange: s, - inputRef: r, - gridRowRef: a, - i18n: o, - }) { - const [i, u] = l.useState(0), - [c, d] = l.useState(''), - m = l.useCallback( - (e, n) => { - u(n); - }, - [u] - ), - { getGridProps: f, getGridCellProps: h } = L({ - matrix: [e], - rowIndex: 0, - colIndex: i, - onChange: m, +function CcField({ field }) { + const { label, value, name, error, description } = field; + const { t } = useTranslation(); + const initialValue = value ? value.split(',').map((email) => email.trim()) : []; + const [tags, setTags] = reactExports.useState(initialValue); + const [inputValue, setInputValue] = reactExports.useState(''); + const inputRef = reactExports.useRef(null); + const gridRowRef = reactExports.useRef(null); + const { + getContainerProps, + getGridProps, + getGridRowProps, + getGridCellProps, + getTagCloseProps, + getInputProps, + getAnnouncementProps, + announcement, + } = useTagsInputContainer({ + tags, + onTagsChange: setTags, + inputValue, + onInputValueChange: setInputValue, + inputRef, + gridRowRef, + i18n: { + addedTag: (email) => + t('new-request-form.cc-field.email-added', '{{email}} has been added', { + email, }), - p = (n) => e.includes(n), - j = (t) => { - n([...e, t]), d(o.addedTag(t)); - }, - b = (t) => { - const s = e[t]; - n(e.filter((e, n) => n !== t)), - d(o.removedTag(s)), - u(0), - setTimeout(() => { - const e = a.current?.querySelector('[tabindex="0"]'); - e?.focus(); - }, 100); - }, - g = (e) => { - e.target === e.currentTarget && r.current?.focus(); - }, - x = () => { - u(0); - }, - w = (e) => { - const n = e.target.value; - !n || - (e.key !== $.SPACE && e.key !== $.ENTER && e.key !== $.TAB && e.key !== $.COMMA) || - (e.preventDefault(), p(n) || j(n), s('')); - }, - v = (e) => { - const n = e.target.value, - [t, r] = [n.slice(0, -1), n.slice(-1)]; - ' ' === r || ',' === r ? (t.length > 0 && !p(t) && j(t), s('')) : s(n); - }, - q = (t) => { - t.preventDefault(); - const s = t.clipboardData.getData('text'), - r = new Set(s.split(/[\s,;]+/).filter((n) => !e.includes(n))); - n([...e, ...r]), d(o.addedTags([...r])); - }, - y = (e) => { - const n = e.target.value; - n && (p(n) || j(n), s('')); - }, - k = (e) => (n) => { - 'Backspace' === n.code && (n.preventDefault(), b(e)); - }, - C = (e) => () => { - b(e); - }; - return { - getContainerProps: () => ({ onClick: g, onBlur: x, tabIndex: -1 }), - getGridProps: f, - getGridRowProps: () => ({ role: 'row' }), - getGridCellProps: (e) => h({ rowIndex: 0, colIndex: e, onKeyDown: k(e) }), - getTagCloseProps: (e) => ({ onClick: C(e) }), - getInputProps: () => ({ value: t, onChange: v, onKeyDown: w, onPaste: q, onBlur: y }), - announcement: c, - getAnnouncementProps: () => ({ 'aria-live': 'polite', 'aria-relevant': 'text' }), - }; - })({ - tags: j, - onTagsChange: b, - inputValue: g, - onInputValueChange: x, - inputRef: w, - gridRowRef: v, - i18n: { - addedTag: (e) => - h('new-request-form.cc-field.email-added', '{{email}} has been added', { email: e }), - removedTag: (e) => - h('new-request-form.cc-field.email-removed', '{{email}} has been removed', { email: e }), - addedTags: (e) => - h('new-request-form.cc-field.emails-added', '{{emails}} have been added', { emails: e }), - }, - }), - R = (n, t, s) => - e.jsxs(Oe, { - size: 'large', - 'aria-label': h( - 'new-request-form.cc-field.email-label', - '{{email}} - Press Backspace to remove', - { email: s } - ), - hue: t ? void 0 : 'red', - children: [ - !t && e.jsx(M.Avatar, { children: e.jsx(D, {}) }), - e.jsx('span', { children: s }), - e.jsx(M.Close, { ..._(n) }), - ], - }); - return e.jsxs(n, { + removedTag: (email) => + t('new-request-form.cc-field.email-removed', '{{email}} has been removed', { email }), + addedTags: (emails) => + t('new-request-form.cc-field.emails-added', '{{emails}} have been added', { emails }), + }, + }); + const renderTag = (index, isValid, email) => + jsxRuntimeExports.jsxs(StyledTag, { + size: 'large', + 'aria-label': t( + 'new-request-form.cc-field.email-label', + '{{email}} - Press Backspace to remove', + { email } + ), + hue: isValid ? undefined : 'red', + children: [ + !isValid && + jsxRuntimeExports.jsx(Tag.Avatar, { + children: jsxRuntimeExports.jsx(SvgAlertWarningStroke, {}), + }), + jsxRuntimeExports.jsx('span', { children: email }), + jsxRuntimeExports.jsx(Tag.Close, { ...getTagCloseProps(index) }), + ], + }); + return jsxRuntimeExports.jsxs(Field, { children: [ - e.jsx(t, { children: i }), - f && e.jsx(o, { children: f }), - e.jsxs(Be, { - ...q(), + jsxRuntimeExports.jsx(Label, { children: label }), + description && jsxRuntimeExports.jsx(Hint, { children: description }), + jsxRuntimeExports.jsxs(Container, { + ...getContainerProps(), children: [ - j.length > 0 && - e.jsx('span', { - ...y({ - 'aria-label': h('new-request-form.cc-field.container-label', 'Selected CC emails'), + tags.length > 0 && + jsxRuntimeExports.jsx('span', { + ...getGridProps({ + 'aria-label': t('new-request-form.cc-field.container-label', 'Selected CC emails'), }), - children: e.jsx('span', { - ref: v, - ...k(), - children: j.map((n, t) => { - const s = He.test(n); - return s - ? e.jsx(Xe, { ...C(t), children: R(t, s, n) }, t) - : e.jsx( - I, + children: jsxRuntimeExports.jsx('span', { + ref: gridRowRef, + ...getGridRowProps(), + children: tags.map((email, index) => { + const isValid = EMAIL_REGEX.test(email); + return isValid + ? jsxRuntimeExports.jsx( + GridCell, + { ...getGridCellProps(index), children: renderTag(index, isValid, email) }, + index + ) + : jsxRuntimeExports.jsx( + Tooltip, { - content: h( + content: t( 'new-request-form.cc-field.invalid-email', 'Invalid email address' ), - children: e.jsx(Xe, { ...C(t), children: R(t, s, n) }), + children: jsxRuntimeExports.jsx(GridCell, { + ...getGridCellProps(index), + children: renderTag(index, isValid, email), + }), }, - t + index ); }), }), }), - e.jsxs(Ue, { + jsxRuntimeExports.jsxs(InputWrapper, { children: [ - e.jsx(We, { isBare: !0, 'aria-hidden': 'true', tabIndex: -1, children: g }), - e.jsx(Ze, { ref: w, isBare: !0, ...S() }), + jsxRuntimeExports.jsx(InputMirror, { + isBare: true, + 'aria-hidden': 'true', + tabIndex: -1, + children: inputValue, + }), + jsxRuntimeExports.jsx(StyledInput, { + ref: inputRef, + isBare: true, + ...getInputProps(), + }), ], }), ], }), - m && e.jsx(a, { validation: 'error', children: m }), - j.map((n) => e.jsx('input', { type: 'hidden', name: d, value: n }, n)), - e.jsx(s, { hidden: !0, ...T(), children: F }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), + tags.map((email) => + jsxRuntimeExports.jsx('input', { type: 'hidden', name: name, value: email }, email) + ), + jsxRuntimeExports.jsx(Span, { + hidden: true, + ...getAnnouncementProps(), + children: announcement, + }), ], }); } -const Ye = f(s)` - margin-left: ${(e) => e.theme.space.xxs}; - font-weight: ${(e) => e.theme.fontWeights.medium}; + +/** + * When there is an error in the credit card field, the backend returns a redacted value with the last 4 digits prefixed with some Xs. + * This function removes the Xs from the value and returns the last 4 digits of the credit card + * + * @param value The value returned by the backend with last 4 digits prefixed with some Xs + * @returns The last 4 digits of the credit card + */ +function getLastDigits(value) { + return value ? value.replaceAll('X', '') : ''; +} +const DigitsHintSpan = styled(Span)` + margin-left: ${(props) => props.theme.space.xxs}; + font-weight: ${(props) => props.theme.fontWeights.medium}; `; -function Je({ field: r, onChange: l }) { - const { t: i } = u(), - { label: c, error: d, value: m, name: f, required: h, description: p } = r, - j = (function (e) { - return e ? e.replaceAll('X', '') : ''; - })(m); - return e.jsxs(n, { +function CreditCard({ field, onChange }) { + const { t } = useTranslation(); + const { label, error, value, name, required, description } = field; + const digits = getLastDigits(value); + return jsxRuntimeExports.jsxs(Field, { children: [ - e.jsxs(t, { + jsxRuntimeExports.jsxs(Label, { children: [ - c, - h && e.jsx(s, { 'aria-hidden': 'true', children: '*' }), - e.jsx(Ye, { children: i('new-request-form.credit-card-digits-hint', '(Last 4 digits)') }), + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + jsxRuntimeExports.jsx(DigitsHintSpan, { + children: t('new-request-form.credit-card-digits-hint', '(Last 4 digits)'), + }), ], }), - p && e.jsx(o, { dangerouslySetInnerHTML: { __html: p } }), - e.jsx(A, { - start: e.jsx(z, {}), - name: f, + description && + jsxRuntimeExports.jsx(Hint, { dangerouslySetInnerHTML: { __html: description } }), + jsxRuntimeExports.jsx(MediaInput, { + start: jsxRuntimeExports.jsx(SvgCreditCardStroke, {}), + name: name, type: 'text', - value: j, - onChange: (e) => l(e.target.value), - validation: d ? 'error' : void 0, - required: h, + value: digits, + onChange: (e) => onChange(e.target.value), + validation: error ? 'error' : undefined, + required: required, maxLength: 4, placeholder: 'XXXX', }), - d && e.jsx(a, { validation: 'error', children: d }), + error && jsxRuntimeExports.jsx(Message, { validation: 'error', children: error }), ], }); } -function Qe({ field: n, onChange: t }) { - const { label: r, options: a, error: o, value: i, name: u, required: c, description: d } = n; - console.log('value', i); - const { - currentGroup: m, - isGroupIdentifier: f, - setCurrentGroupByIdentifier: h, - } = ge({ options: a, hasEmptyOption: !0 }), - w = i ?? '', - [y, k] = l.useState(!1), - C = l.useRef(null); - l.useEffect(() => { - if (C.current && c) { - const e = C.current.querySelector('[role=combobox]'); - e?.setAttribute('aria-required', 'true'); + +function Tagger({ field, onChange }) { + const { label, options, error, value, name, required, description } = field; + console.log('value', value); + const { currentGroup, isGroupIdentifier, setCurrentGroupByIdentifier } = useNestedOptions({ + options, + hasEmptyOption: true, + }); + const selectionValue = value ?? ''; + const [isExpanded, setIsExpanded] = reactExports.useState(false); + const wrapperRef = reactExports.useRef(null); + reactExports.useEffect(() => { + if (wrapperRef.current && required) { + const combobox = wrapperRef.current.querySelector('[role=combobox]'); + combobox?.setAttribute('aria-required', 'true'); + } + }, [wrapperRef, required]); + const handleChange = (changes) => { + if (typeof changes.selectionValue === 'string' && isGroupIdentifier(changes.selectionValue)) { + setCurrentGroupByIdentifier(changes.selectionValue); + return; } - }, [C, c]); - return e.jsxs(p, { + if (typeof changes.selectionValue === 'string') { + onChange(changes.selectionValue); + } + if (changes.isExpanded !== undefined) { + setIsExpanded(changes.isExpanded); + } + }; + return jsxRuntimeExports.jsxs(Field$1, { className: 'custom-form-field-layout', children: [ - e.jsxs(v, { + jsxRuntimeExports.jsxs(Label$1, { className: 'custom-title', - children: [r, c && e.jsx(s, { 'aria-hidden': 'true', children: '*' })], + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], }), - e.jsxs(j, { - ref: C, - inputProps: { required: c, name: u }, - isEditable: !1, - validation: o ? 'error' : void 0, - onChange: (e) => { - 'string' == typeof e.selectionValue && f(e.selectionValue) - ? h(e.selectionValue) - : ('string' == typeof e.selectionValue && t(e.selectionValue), - void 0 !== e.isExpanded && k(e.isExpanded)); - }, - selectionValue: w, - inputValue: w, - renderValue: ({ selection: n }) => n?.label ?? e.jsx(de, {}), - isExpanded: y, + jsxRuntimeExports.jsxs(Combobox, { + ref: wrapperRef, + inputProps: { required, name }, + isEditable: false, + validation: error ? 'error' : undefined, + onChange: handleChange, + selectionValue: selectionValue, + inputValue: selectionValue, + renderValue: ({ selection }) => + selection?.label ?? jsxRuntimeExports.jsx(EmptyValueOption, {}), + isExpanded: isExpanded, className: 'custom-combobox', children: [ - 'SubGroup' === m.type && e.jsx(b, { ...m.backOption }), - 'SubGroup' === m.type - ? e.jsx(q, { - 'aria-label': m.name, - children: m.options.map((n) => - e.jsx(b, { ...n, children: n.menuLabel ?? n.label }, n.value) + currentGroup.type === 'SubGroup' && + jsxRuntimeExports.jsx(Option, { ...currentGroup.backOption }), + currentGroup.type === 'SubGroup' + ? jsxRuntimeExports.jsx(OptGroup, { + 'aria-label': currentGroup.name, + children: currentGroup.options.map((option) => + jsxRuntimeExports.jsx( + Option, + { ...option, children: option.menuLabel ?? option.label }, + option.value + ) ), }) - : m.options.map((n) => - '' === n.value - ? e.jsx(b, { ...n, children: e.jsx(de, {}) }, n.value) - : e.jsx(b, { ...n }, n.value) + : currentGroup.options.map((option) => + option.value === '' + ? jsxRuntimeExports.jsx( + Option, + { ...option, children: jsxRuntimeExports.jsx(EmptyValueOption, {}) }, + option.value + ) + : jsxRuntimeExports.jsx(Option, { ...option }, option.value) ), ], }), - o && e.jsx(g, { validation: 'error', children: o }), - d && e.jsx(x, { className: 'custom-hint', dangerouslySetInnerHTML: { __html: d } }), + error && jsxRuntimeExports.jsx(Message$1, { validation: 'error', children: error }), + description && + jsxRuntimeExports.jsx(Hint$1, { + className: 'custom-hint', + dangerouslySetInnerHTML: { __html: description }, + }), ], }); } -const en = f.h3` - font-size: ${(e) => e.theme.fontSizes.md}; - font-weight: ${(e) => e.theme.fontWeights.bold}; -`, - nn = f(H)` - color: ${(e) => G('successHue', 700, e.theme)}; -`, - tn = f(B)` + +const H3 = styled.h3` + font-size: ${(props) => props.theme.fontSizes.md}; + font-weight: ${(props) => props.theme.fontWeights.bold}; +`; +const StyledHeader = styled(Header)` + color: ${(props) => getColorV8('successHue', 700, props.theme)}; +`; +const StyledSuccessIcon = styled(SvgCheckCircleStroke)` position: absolute; - top: ${(e) => 5.5 * e.theme.space.base}px; - inset-inline-start: ${(e) => 4 * e.theme.space.base + 'px'}; -`, - sn = f(k)` + top: ${(props) => props.theme.space.base * 5.5}px; + inset-inline-start: ${(props) => `${props.theme.space.base * 4}px`}; +`; +const ArticleLink = styled(Anchor)` display: inline-block; - margin-top: ${(e) => e.theme.space.sm}; + margin-top: ${(props) => props.theme.space.sm}; `; -function rn({ - authToken: n, - interactionAccessToken: t, - articles: s, - requestId: r, - hasRequestManagement: a, - isSignedIn: o, - helpCenterPath: i, - requestsPath: c, - requestPath: d, +function AnswerBotModal({ + authToken, + interactionAccessToken, + articles, + requestId, + hasRequestManagement, + isSignedIn, + helpCenterPath, + requestsPath, + requestPath, }) { - const [m, f] = l.useState(0), - h = X(), - { t: p } = u(), - j = () => String(s[m]?.article_id), - b = () => { - ee({ + const [expandedIndex, setExpandedIndex] = reactExports.useState(0); + const modalContainer = useModalContainer(); + const { t } = useTranslation(); + const getExpandedArticleId = () => { + return String(articles[expandedIndex]?.article_id); + }; + const getUnsolvedRedirectUrl = () => { + if (!isSignedIn) { + const searchParams = new URLSearchParams(); + searchParams.set('return_to', requestsPath); + return `${helpCenterPath}?${searchParams.toString()}`; + } else if (hasRequestManagement) { + return requestPath; + } else { + return helpCenterPath; + } + }; + const addUnsolvedNotificationAndRedirect = () => { + addFlashNotification({ + type: 'success', + message: t( + 'new-request-form.answer-bot-modal.request-submitted', + 'Your request was successfully submitted' + ), + }); + window.location.assign(getUnsolvedRedirectUrl()); + }; + const solveRequest = async () => { + const response = await fetch('/api/v2/answer_bot/resolution', { + method: 'POST', + body: JSON.stringify({ + article_id: getExpandedArticleId(), + interaction_access_token: interactionAccessToken, + }), + headers: { + 'Content-Type': 'application/json', + }, + }); + if (response.ok) { + addFlashNotification({ type: 'success', - message: p( - 'new-request-form.answer-bot-modal.request-submitted', - 'Your request was successfully submitted' + message: t( + 'new-request-form.answer-bot-modal.request-closed', + 'Nice. Your request has been closed.' + ), + }); + } else { + addFlashNotification({ + type: 'error', + message: t( + 'new-request-form.answer-bot-modal.solve-error', + 'There was an error closing your request' ), + }); + } + window.location.href = helpCenterPath; + }; + const markArticleAsIrrelevant = async () => { + await fetch('/api/v2/answer_bot/rejection', { + method: 'POST', + body: JSON.stringify({ + article_id: getExpandedArticleId(), + interaction_access_token: interactionAccessToken, + reason_id: 0, }), - window.location.assign( - (() => { - if (o) return a ? d : i; - { - const e = new URLSearchParams(); - return e.set('return_to', c), `${i}?${e.toString()}`; - } - })() - ); - }; - return e.jsxs(O, { - appendToNode: h, + headers: { + 'Content-Type': 'application/json', + }, + }); + addUnsolvedNotificationAndRedirect(); + }; + return jsxRuntimeExports.jsxs(Modal, { + appendToNode: modalContainer, onClose: () => { - b(); + addUnsolvedNotificationAndRedirect(); }, children: [ - e.jsxs(nn, { + jsxRuntimeExports.jsxs(StyledHeader, { tag: 'h2', children: [ - e.jsx(tn, {}), - p( + jsxRuntimeExports.jsx(StyledSuccessIcon, {}), + t( 'new-request-form.answer-bot-modal.request-submitted', 'Your request was successfully submitted' ), ], }), - e.jsxs(U, { + jsxRuntimeExports.jsxs(Body, { children: [ - e.jsx(en, { - children: p( + jsxRuntimeExports.jsx(H3, { + children: t( 'new-request-form.answer-bot-modal.title', 'While you wait, do any of these articles answer your question?' ), }), - e.jsx('p', { - children: p( + jsxRuntimeExports.jsx('p', { + children: t( 'new-request-form.answer-bot-modal.footer-content', 'If it does, we can close your recent request {{requestId}}', - { requestId: `‭#${r}‬` } + { + requestId: `\u202D#${requestId}\u202C`, + } ), }), - e.jsx(W, { + jsxRuntimeExports.jsx(Accordion, { level: 4, - expandedSections: [m], - onChange: (e) => { - f(e); + expandedSections: [expandedIndex], + onChange: (index) => { + setExpandedIndex(index); }, - children: s.map(({ article_id: t, html_url: s, snippet: r, title: a }) => - e.jsxs( - W.Section, + children: articles.map(({ article_id, html_url, snippet, title }) => + jsxRuntimeExports.jsxs( + Accordion.Section, { children: [ - e.jsx(W.Header, { children: e.jsx(W.Label, { children: a }) }), - e.jsxs(W.Panel, { + jsxRuntimeExports.jsx(Accordion.Header, { + children: jsxRuntimeExports.jsx(Accordion.Label, { children: title }), + }), + jsxRuntimeExports.jsxs(Accordion.Panel, { children: [ - e.jsx(Z, { dangerouslySetInnerHTML: { __html: r } }), - e.jsx(sn, { - isExternal: !0, - href: `${s}?auth_token=${n}`, + jsxRuntimeExports.jsx(Paragraph, { + dangerouslySetInnerHTML: { __html: snippet }, + }), + jsxRuntimeExports.jsx(ArticleLink, { + isExternal: true, + href: `${html_url}?auth_token=${authToken}`, target: '_blank', - children: p( + children: t( 'new-request-form.answer-bot-modal.view-article', 'View article' ), @@ -1331,63 +1841,29 @@ function rn({ }), ], }, - t + article_id ) ), }), ], }), - e.jsxs(K, { + jsxRuntimeExports.jsxs(Footer$1, { children: [ - e.jsx(Y, { - children: e.jsx(J, { + jsxRuntimeExports.jsx(FooterItem, { + children: jsxRuntimeExports.jsx(Button, { onClick: () => { - (async () => { - await fetch('/api/v2/answer_bot/rejection', { - method: 'POST', - body: JSON.stringify({ - article_id: j(), - interaction_access_token: t, - reason_id: 0, - }), - headers: { 'Content-Type': 'application/json' }, - }), - b(); - })(); + markArticleAsIrrelevant(); }, - children: p('new-request-form.answer-bot-modal.mark-irrelevant', 'No, I need help'), + children: t('new-request-form.answer-bot-modal.mark-irrelevant', 'No, I need help'), }), }), - e.jsx(Y, { - children: e.jsx(J, { - isPrimary: !0, + jsxRuntimeExports.jsx(FooterItem, { + children: jsxRuntimeExports.jsx(Button, { + isPrimary: true, onClick: () => { - (async () => { - ( - await fetch('/api/v2/answer_bot/resolution', { - method: 'POST', - body: JSON.stringify({ article_id: j(), interaction_access_token: t }), - headers: { 'Content-Type': 'application/json' }, - }) - ).ok - ? ee({ - type: 'success', - message: p( - 'new-request-form.answer-bot-modal.request-closed', - 'Nice. Your request has been closed.' - ), - }) - : ee({ - type: 'error', - message: p( - 'new-request-form.answer-bot-modal.solve-error', - 'There was an error closing your request' - ), - }), - (window.location.href = i); - })(); + solveRequest(); }, - children: p( + children: t( 'new-request-form.answer-bot-modal.solve-request', 'Yes, close my request' ), @@ -1395,743 +1871,888 @@ function rn({ }), ], }), - e.jsx(Q, { 'aria-label': p('new-request-form.close-label', 'Close') }), + jsxRuntimeExports.jsx(Close$1, { 'aria-label': t('new-request-form.close-label', 'Close') }), ], }); } -const an = { value: '', name: '-' }; -function on({ field: n, userId: t, organizationId: r, onChange: a }) { + +function getCustomObjectKey(targetType) { + return targetType.replace('zen:custom_object:', ''); +} +const EMPTY_OPTION = { + value: '', + name: '-', +}; +function LookupField({ field, userId, organizationId, onChange }) { const { - id: o, - label: i, - error: c, - value: d, - name: m, - required: f, - description: h, - relationship_target_type: w, - } = n, - [q, y] = l.useState([]), - [k, C] = l.useState(null), - [_, S] = l.useState(d), - [I, T] = l.useState(!1), - { t: F } = u(), - R = w.replace('zen:custom_object:', ''); - const P = { - name: F('new-request-form.lookup-field.loading-options', 'Loading items...'), - id: 'loading', - }, - N = { - name: F('new-request-form.lookup-field.no-matches-found', 'No matches found'), - id: 'no-results', + id: fieldId, + label, + error, + value, + name, + required, + description, + relationship_target_type, + } = field; + const [options, setOptions] = reactExports.useState([]); + const [selectedOption, setSelectedOption] = reactExports.useState(null); + const [inputValue, setInputValue] = reactExports.useState(value); + const [isLoadingOptions, setIsLoadingOptions] = reactExports.useState(false); + const { t } = useTranslation(); + const customObjectKey = getCustomObjectKey(relationship_target_type); + const loadingOption = { + name: t('new-request-form.lookup-field.loading-options', 'Loading items...'), + id: 'loading', + }; + const noResultsOption = { + name: t('new-request-form.lookup-field.no-matches-found', 'No matches found'), + id: 'no-results', + }; + const fetchSelectedOption = reactExports.useCallback( + async (selectionValue) => { + try { + const res = await fetch( + `/api/v2/custom_objects/${customObjectKey}/records/${selectionValue}` + ); + if (res.ok) { + const { custom_object_record } = await res.json(); + const newSelectedOption = { + name: custom_object_record.name, + value: custom_object_record.id, + }; + setSelectedOption(newSelectedOption); + setInputValue(custom_object_record.name); + } + } catch (error) { + console.error(error); + } }, - L = l.useCallback( - async (e) => { - try { - const n = await fetch(`/api/v2/custom_objects/${R}/records/${e}`); - if (n.ok) { - const { custom_object_record: e } = await n.json(), - t = { name: e.name, value: e.id }; - C(t), S(e.name); + [customObjectKey] + ); + const fetchOptions = reactExports.useCallback( + async (inputValue) => { + const searchParams = new URLSearchParams(); + searchParams.set('name', inputValue.toLocaleLowerCase()); + searchParams.set('source', 'zen:ticket'); + searchParams.set('field_id', fieldId.toString()); + searchParams.set('requester_id', userId.toString()); + if (organizationId !== null) searchParams.set('organization_id', organizationId); + setIsLoadingOptions(true); + try { + const response = await fetch( + `/api/v2/custom_objects/${customObjectKey}/records/autocomplete?${searchParams.toString()}` + ); + const data = await response.json(); + if (response.ok) { + let fetchedOptions = data.custom_object_records.map(({ name, id }) => ({ + name, + value: id, + })); + if (selectedOption) { + fetchedOptions = fetchedOptions.filter( + (option) => option.value !== selectedOption.value + ); + fetchedOptions = [selectedOption, ...fetchedOptions]; } - } catch (e) { - console.error(e); + setOptions(fetchedOptions); + } else { + setOptions([]); } - }, - [R] - ), - $ = l.useCallback( - async (e) => { - const n = new URLSearchParams(); - n.set('name', e.toLocaleLowerCase()), - n.set('source', 'zen:ticket'), - n.set('field_id', o.toString()), - n.set('requester_id', t.toString()), - null !== r && n.set('organization_id', r), - T(!0); - try { - const e = await fetch(`/api/v2/custom_objects/${R}/records/autocomplete?${n.toString()}`), - t = await e.json(); - if (e.ok) { - let e = t.custom_object_records.map(({ name: e, id: n }) => ({ name: e, value: n })); - k && ((e = e.filter((e) => e.value !== k.value)), (e = [k, ...e])), y(e); - } else y([]); - } catch (e) { - console.error(e); - } finally { - T(!1); - } - }, - [R, o, r, k, t] - ), - E = l.useMemo(() => ne($, 300), [$]); - l.useEffect(() => () => E.cancel(), [E]); - const V = l.useCallback( - ({ inputValue: e, selectionValue: n }) => { - if (void 0 !== n) - if ('' == n) C(an), S(an.name), y([]), a(an.value); - else { - const e = q.find((e) => e.value === n); - e && (S(e.name), C(e), y([e]), a(e.value)); + } catch (error) { + console.error(error); + } finally { + setIsLoadingOptions(false); + } + }, + [customObjectKey, fieldId, organizationId, selectedOption, userId] + ); + const debouncedFetchOptions = reactExports.useMemo( + () => debounce(fetchOptions, 300), + [fetchOptions] + ); + reactExports.useEffect(() => { + return () => debouncedFetchOptions.cancel(); + }, [debouncedFetchOptions]); + const handleChange = reactExports.useCallback( + ({ inputValue, selectionValue }) => { + if (selectionValue !== undefined) { + if (selectionValue == '') { + setSelectedOption(EMPTY_OPTION); + setInputValue(EMPTY_OPTION.name); + setOptions([]); + onChange(EMPTY_OPTION.value); + } else { + const selectedOption = options.find((option) => option.value === selectionValue); + if (selectedOption) { + setInputValue(selectedOption.name); + setSelectedOption(selectedOption); + setOptions([selectedOption]); + onChange(selectedOption.value); + } } - void 0 !== e && (S(e), E(e)); + } + if (inputValue !== undefined) { + setInputValue(inputValue); + debouncedFetchOptions(inputValue); + } }, - [E, a, q] + [debouncedFetchOptions, onChange, options] ); - l.useEffect(() => { - d && L(d); - }, []); - return e.jsxs(p, { + reactExports.useEffect(() => { + if (value) { + fetchSelectedOption(value); + } + }, []); //we don't set dependency array as we want this hook to be called only once + const onFocus = () => { + setInputValue(''); + fetchOptions('*'); + }; + return jsxRuntimeExports.jsxs(Field$1, { children: [ - e.jsxs(v, { children: [i, f && e.jsx(s, { 'aria-hidden': 'true', children: '*' })] }), - h && e.jsx(x, { dangerouslySetInnerHTML: { __html: h } }), - e.jsxs(j, { - inputProps: { required: f }, + jsxRuntimeExports.jsxs(Label$1, { + children: [ + label, + required && jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], + }), + description && + jsxRuntimeExports.jsx(Hint$1, { dangerouslySetInnerHTML: { __html: description } }), + jsxRuntimeExports.jsxs(Combobox, { + inputProps: { required }, 'data-test-id': 'lookup-field-combobox', - validation: c ? 'error' : void 0, - inputValue: _, - selectionValue: k?.value, - isAutocomplete: !0, - placeholder: F('new-request-form.lookup-field.placeholder', 'Search {{label}}', { - label: i.toLowerCase(), + validation: error ? 'error' : undefined, + inputValue: inputValue, + selectionValue: selectedOption?.value, + isAutocomplete: true, + placeholder: t('new-request-form.lookup-field.placeholder', 'Search {{label}}', { + label: label.toLowerCase(), }), - onFocus: () => { - S(''), $('*'); - }, - onChange: V, - renderValue: () => (k ? k?.name : an.name), + onFocus: onFocus, + onChange: handleChange, + renderValue: () => (selectedOption ? selectedOption?.name : EMPTY_OPTION.name), children: [ - k?.name !== an.name && e.jsx(b, { value: '', label: '-', children: e.jsx(de, {}) }), - I && e.jsx(b, { isDisabled: !0, value: P.name }, P.id), - !I && - _?.length > 0 && - 0 === q.length && - e.jsx(b, { isDisabled: !0, value: N.name }, N.id), - !I && - 0 !== q.length && - q.map((n) => - e.jsx( - b, - { value: n.value, label: n.name, 'data-test-id': `option-${n.name}` }, - n.value + selectedOption?.name !== EMPTY_OPTION.name && + jsxRuntimeExports.jsx(Option, { + value: '', + label: '-', + children: jsxRuntimeExports.jsx(EmptyValueOption, {}), + }), + isLoadingOptions && + jsxRuntimeExports.jsx( + Option, + { isDisabled: true, value: loadingOption.name }, + loadingOption.id + ), + !isLoadingOptions && + inputValue?.length > 0 && + options.length === 0 && + jsxRuntimeExports.jsx( + Option, + { isDisabled: true, value: noResultsOption.name }, + noResultsOption.id + ), + !isLoadingOptions && + options.length !== 0 && + options.map((option) => + jsxRuntimeExports.jsx( + Option, + { + value: option.value, + label: option.name, + 'data-test-id': `option-${option.name}`, + }, + option.value ) ), ], }), - c && e.jsx(g, { validation: 'error', children: c }), - e.jsx('input', { type: 'hidden', name: m, value: k?.value }), + error && jsxRuntimeExports.jsx(Message$1, { validation: 'error', children: error }), + jsxRuntimeExports.jsx('input', { type: 'hidden', name: name, value: selectedOption?.value }), ], }); } -const ln = f(Z)` - margin: ${(e) => e.theme.space.md} 0; -`, - un = f.form` + +const StyledParagraph = styled(Paragraph)` + margin: ${(props) => props.theme.space.md} 0; +`; +const Form = styled.form` display: flex; flex-direction: column; - gap: ${(e) => e.theme.space.md}; -`, - cn = f.div` - margin-top: ${(e) => e.theme.space.md}; + gap: ${(props) => props.theme.space.md}; `; -function dn({ - requestForm: n, - wysiwyg: r, - newRequestPath: a, - parentId: o, - parentIdPath: i, - locale: c, - baseLocale: d, - hasAtMentions: m, - userRole: f, - userId: h, - brandId: p, - organizations: j, - answerBotModal: b, +const Footer = styled.div` + margin-top: ${(props) => props.theme.space.md}; +`; +function NewRequestForm({ + requestForm, + wysiwyg, + newRequestPath, + parentId, + parentIdPath, + locale, + baseLocale, + hasAtMentions, + userRole, + userId, + brandId, + organizations, + answerBotModal, }) { const { - ticket_fields: g, - action: x, - http_method: w, - accept_charset: v, - errors: q, - parent_id_field: y, - ticket_form_field: C, - email_field: _, - cc_field: S, - organization_field: I, - due_date_field: T, - end_user_conditions: F, - attachments_field: R, - inline_attachments_fields: P, - description_mimetype_field: N, - } = n, - { answerBot: L } = b, - { - ticketFields: $, - emailField: E, - ccField: V, - organizationField: M, - dueDateField: D, - } = Ne({ ticketFields: g, emailField: _, ccField: S, organizationField: I, dueDateField: T }); - console.log('requestForm', n); - const [A, z] = l.useState(''), - [G, H] = l.useState($), - [B, X] = l.useState(M), - [O, U] = l.useState(D), - W = ze(G, F), - { formRefCallback: Z, handleSubmit: K } = Te(G), - { t: Y } = u(), - Q = j.length > 0 && j[0]?.id ? j[0]?.id?.toString() : null, - ee = l.useCallback( - (e, n) => { - H(G.map((t) => (t.name === e.name ? { ...t, value: n } : t))), 'tagger' === e.name && z(n); - }, - [G] - ); - return e.jsxs(e.Fragment, { + ticket_fields, + action, + http_method, + accept_charset, + errors, + parent_id_field, + ticket_form_field, + email_field, + cc_field, + organization_field, + due_date_field, + end_user_conditions, + attachments_field, + inline_attachments_fields, + description_mimetype_field, + } = requestForm; + const { answerBot } = answerBotModal; + const { + ticketFields: prefilledTicketFields, + emailField, + ccField, + organizationField: prefilledOrganizationField, + dueDateField: prefilledDueDateField, + } = usePrefilledTicketFields({ + ticketFields: ticket_fields, + emailField: email_field, + ccField: cc_field, + organizationField: organization_field, + dueDateField: due_date_field, + }); + console.log('requestForm', requestForm); + const [selectedTopic, setSelectedTopic] = reactExports.useState(''); + const [ticketFields, setTicketFields] = reactExports.useState(prefilledTicketFields); + const [organizationField, setOrganizationField] = reactExports.useState( + prefilledOrganizationField + ); + const [dueDateField, setDueDateField] = reactExports.useState(prefilledDueDateField); + const visibleFields = getVisibleFields(ticketFields, end_user_conditions); + const { formRefCallback, handleSubmit } = useFormSubmit(ticketFields); + const { t } = useTranslation(); + const defaultOrganizationId = + organizations.length > 0 && organizations[0]?.id ? organizations[0]?.id?.toString() : null; + const handleChange = reactExports.useCallback( + (field, value) => { + setTicketFields( + ticketFields.map((ticketField) => + ticketField.name === field.name ? { ...ticketField, value } : ticketField + ) + ); + if (field.name === 'tagger') { + setSelectedTopic(value); + } + }, + [ticketFields] + ); + function handleOrganizationChange(value) { + if (organizationField === null) { + return; + } + setOrganizationField({ ...organizationField, value }); + } + function handleDueDateChange(value) { + if (dueDateField === null) { + return; + } + setDueDateField({ ...dueDateField, value }); + } + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - o && - e.jsx(ln, { - children: e.jsx(k, { - href: i, - children: Y( + parentId && + jsxRuntimeExports.jsx(StyledParagraph, { + children: jsxRuntimeExports.jsx(Anchor, { + href: parentIdPath, + children: t( 'new-request-form.parent-request-link', 'Follow-up to request {{parentId}}', - { parentId: `‭#${o}‬` } + { + parentId: `\u202D#${parentId}\u202C`, + } ), }), }), - e.jsxs(un, { - ref: Z, - action: x, - method: w, - acceptCharset: v, - noValidate: !0, - onSubmit: K, + jsxRuntimeExports.jsxs(Form, { + ref: formRefCallback, + action: action, + method: http_method, + acceptCharset: accept_charset, + noValidate: true, + onSubmit: handleSubmit, children: [ - q && e.jsx(te, { type: 'error', children: q }), - y && e.jsx(Ie, { field: y }), - C.options.length > 0 && e.jsx(Se, { field: C, newRequestPath: a }), - E && e.jsx(ie, { field: E }, E.name), - V && e.jsx(Ke, { field: V }), - B && - e.jsx( - me, + errors && jsxRuntimeExports.jsx(Alert, { type: 'error', children: errors }), + parent_id_field && jsxRuntimeExports.jsx(ParentTicketField, { field: parent_id_field }), + ticket_form_field.options.length > 0 && + jsxRuntimeExports.jsx(TicketFormField, { + field: ticket_form_field, + newRequestPath: newRequestPath, + }), + emailField && jsxRuntimeExports.jsx(Input, { field: emailField }, emailField.name), + ccField && jsxRuntimeExports.jsx(CcField, { field: ccField }), + organizationField && + jsxRuntimeExports.jsx( + DropDown, { - field: B, - onChange: (e) => { - !(function (e) { - null !== B && X({ ...B, value: e }); - })(e); + field: organizationField, + onChange: (value) => { + handleOrganizationChange(value); }, }, - B.name + organizationField.name ), - W.map((n) => { - switch (n.type) { + visibleFields.map((field) => { + switch (field.type) { case 'subject': - return e.jsxs('div', { + return jsxRuntimeExports.jsxs('div', { className: 'custom-form-field-layout', children: [ - e.jsxs(t, { + jsxRuntimeExports.jsxs(Label, { className: 'custom-title', - children: ['Subject', e.jsx(s, { 'aria-hidden': 'true', children: '*' })], + children: [ + 'Subject', + jsxRuntimeExports.jsx(Span, { 'aria-hidden': 'true', children: '*' }), + ], }), - e.jsx(ie, { field: n, onChange: (e) => ee(n, e) }, n.name), + jsxRuntimeExports.jsx( + Input, + { field: field, onChange: (value) => handleChange(field, value) }, + field.name + ), ], }); case 'text': case 'integer': case 'decimal': case 'regexp': - return e.jsx(ie, { field: n, onChange: (e) => ee(n, e) }, n.name); + return jsxRuntimeExports.jsx( + Input, + { field: field, onChange: (value) => handleChange(field, value) }, + field.name + ); case 'partialcreditcard': - return e.jsx(Je, { field: n, onChange: (e) => ee(n, e) }); + return jsxRuntimeExports.jsx(CreditCard, { + field: field, + onChange: (value) => handleChange(field, value), + }); + // Issue description case 'description': - return e.jsxs(e.Fragment, { + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - e.jsx( - ce, + jsxRuntimeExports.jsx( + TextArea, { - field: n, - hasWysiwyg: r, - baseLocale: d, - hasAtMentions: m, - userRole: f, - brandId: p, - onChange: (e) => ee(n, e), + field: field, + hasWysiwyg: wysiwyg, + baseLocale: baseLocale, + hasAtMentions: hasAtMentions, + userRole: userRole, + brandId: brandId, + onChange: (value) => handleChange(field, value), }, - n.name + field.name ), - e.jsx('input', { + jsxRuntimeExports.jsx('input', { type: 'hidden', - name: N.name, - value: r ? 'text/html' : 'text/plain', + name: description_mimetype_field.name, + value: wysiwyg ? 'text/html' : 'text/plain', }), ], }); case 'textarea': - return e.jsx( - ce, + return jsxRuntimeExports.jsx( + TextArea, { - field: n, - hasWysiwyg: !1, - baseLocale: d, - hasAtMentions: m, - userRole: f, - brandId: p, - onChange: (e) => ee(n, e), + field: field, + hasWysiwyg: false, + baseLocale: baseLocale, + hasAtMentions: hasAtMentions, + userRole: userRole, + brandId: brandId, + onChange: (value) => handleChange(field, value), }, - n.name + field.name ); case 'priority': case 'basic_priority': case 'tickettype': - return e.jsxs(e.Fragment, { + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [ - e.jsx(me, { field: n, onChange: (e) => ee(n, e) }, n.name), - 'task' === n.value && - e.jsx(Ge, { - field: O, - locale: d, + jsxRuntimeExports.jsx( + DropDown, + { field: field, onChange: (value) => handleChange(field, value) }, + field.name + ), + field.value === 'task' && + jsxRuntimeExports.jsx(DatePicker, { + field: dueDateField, + locale: baseLocale, valueFormat: 'dateTime', - onChange: (e) => { - !(function (e) { - null !== O && U({ ...O, value: e }); - })(e); + onChange: (value) => { + handleDueDateChange(value); }, }), ], }); case 'checkbox': - return e.jsx(fe, { field: n, onChange: (e) => ee(n, e) }); + return jsxRuntimeExports.jsx(Checkbox, { + field: field, + onChange: (value) => handleChange(field, value), + }); case 'date': - return e.jsx(Ge, { - field: n, - locale: d, + return jsxRuntimeExports.jsx(DatePicker, { + field: field, + locale: baseLocale, valueFormat: 'date', - onChange: (e) => ee(n, e), + onChange: (value) => handleChange(field, value), }); case 'multiselect': - if (n.label.includes('RA:')) { - const t = W.find((e) => 'tagger' === e.type); - return t && t.value && n.label.includes(t.value) - ? e.jsx(ke, { field: n }) - : e.jsx(e.Fragment, {}); + if (field.label.includes('RA:')) { + const selectedTopicField = visibleFields.find((field) => field.type === 'tagger'); + if ( + selectedTopicField && + selectedTopicField.value && + field.label.includes(selectedTopicField.value) + ) { + return jsxRuntimeExports.jsx(RelatedArticles, { field: field }); + } + return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}); } - return e.jsx(xe, { field: n }); + return jsxRuntimeExports.jsx(MultiSelect, { field: field }); + // Field for Issue type case 'tagger': - return e.jsx(Qe, { field: n, onChange: (e) => ee(n, e) }, n.name); + return jsxRuntimeExports.jsx( + Tagger, + { field: field, onChange: (value) => handleChange(field, value) }, + field.name + ); case 'lookup': - return e.jsx( - on, + return jsxRuntimeExports.jsx( + LookupField, { - field: n, - userId: h, - organizationId: null !== B ? B.value : Q, - onChange: (e) => ee(n, e), + field: field, + userId: userId, + organizationId: + organizationField !== null ? organizationField.value : defaultOrganizationId, + onChange: (value) => handleChange(field, value), }, - n.name + field.name ); default: - return e.jsx(e.Fragment, {}); + return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}); } }), - R && e.jsx(Ve, { field: R }), - P.map(({ type: n, name: t, value: s }, r) => - e.jsx('input', { type: n, name: t, value: s }, r) + attachments_field && jsxRuntimeExports.jsx(Attachments, { field: attachments_field }), + inline_attachments_fields.map(({ type, name, value }, index) => + jsxRuntimeExports.jsx('input', { type: type, name: name, value: value }, index) ), - e.jsx(cn, { + jsxRuntimeExports.jsx(Footer, { className: '!mt-0', children: - (0 === C.options.length || C.value) && - e.jsx(J, { - isPrimary: !0, + (ticket_form_field.options.length === 0 || ticket_form_field.value) && + jsxRuntimeExports.jsx(Button, { + isPrimary: true, type: 'submit', className: 'custom-submit-button', - children: Y('new-request-form.submit', 'Submit'), + children: t('new-request-form.submit', 'Submit'), }), }), ], }), - L.auth_token && - L.interaction_access_token && - L.articles.length > 0 && - L.request_id && - e.jsx(rn, { - authToken: L.auth_token, - interactionAccessToken: L.interaction_access_token, - articles: L.articles, - requestId: L.request_id, - ...b, + answerBot.auth_token && + answerBot.interaction_access_token && + answerBot.articles.length > 0 && + answerBot.request_id && + jsxRuntimeExports.jsx(AnswerBotModal, { + authToken: answerBot.auth_token, + interactionAccessToken: answerBot.interaction_access_token, + articles: answerBot.articles, + requestId: answerBot.request_id, + ...answerBotModal, }), ], }); } -async function mn(n, t, s) { - const { baseLocale: r } = t; - se(r), - await re(r, () => - (function (e) { - switch (e) { - case './translations/locales/af.json': - return import('new-request-form-translations').then(function (e) { - return e.a; - }); - case './translations/locales/ar-x-pseudo.json': - return import('new-request-form-translations').then(function (e) { - return e.b; - }); - case './translations/locales/ar.json': - return import('new-request-form-translations').then(function (e) { - return e.c; - }); - case './translations/locales/az.json': - return import('new-request-form-translations').then(function (e) { - return e.d; - }); - case './translations/locales/be.json': - return import('new-request-form-translations').then(function (e) { - return e.e; - }); - case './translations/locales/bg.json': - return import('new-request-form-translations').then(function (e) { - return e.f; - }); - case './translations/locales/bn.json': - return import('new-request-form-translations').then(function (e) { - return e.g; - }); - case './translations/locales/bs.json': - return import('new-request-form-translations').then(function (e) { - return e.h; - }); - case './translations/locales/ca.json': - return import('new-request-form-translations').then(function (e) { - return e.i; - }); - case './translations/locales/cs.json': - return import('new-request-form-translations').then(function (e) { - return e.j; - }); - case './translations/locales/cy.json': - return import('new-request-form-translations').then(function (e) { - return e.k; - }); - case './translations/locales/da.json': - return import('new-request-form-translations').then(function (e) { - return e.l; - }); - case './translations/locales/de-de.json': - return import('new-request-form-translations').then(function (e) { - return e.m; - }); - case './translations/locales/de-x-informal.json': - return import('new-request-form-translations').then(function (e) { - return e.n; - }); - case './translations/locales/de.json': - return import('new-request-form-translations').then(function (e) { - return e.o; - }); - case './translations/locales/el.json': - return import('new-request-form-translations').then(function (e) { - return e.p; - }); - case './translations/locales/en-001.json': - return import('new-request-form-translations').then(function (e) { - return e.q; - }); - case './translations/locales/en-150.json': - return import('new-request-form-translations').then(function (e) { - return e.r; - }); - case './translations/locales/en-au.json': - return import('new-request-form-translations').then(function (e) { - return e.s; - }); - case './translations/locales/en-ca.json': - return import('new-request-form-translations').then(function (e) { - return e.t; - }); - case './translations/locales/en-gb.json': - return import('new-request-form-translations').then(function (e) { - return e.u; - }); - case './translations/locales/en-my.json': - return import('new-request-form-translations').then(function (e) { - return e.v; - }); - case './translations/locales/en-ph.json': - return import('new-request-form-translations').then(function (e) { - return e.w; - }); - case './translations/locales/en-se.json': - return import('new-request-form-translations').then(function (e) { - return e.x; - }); - case './translations/locales/en-us.json': - return import('new-request-form-translations').then(function (e) { - return e.y; - }); - case './translations/locales/en-x-dev.json': - return import('new-request-form-translations').then(function (e) { - return e.z; - }); - case './translations/locales/en-x-keys.json': - return import('new-request-form-translations').then(function (e) { - return e.A; - }); - case './translations/locales/en-x-obsolete.json': - return import('new-request-form-translations').then(function (e) { - return e.B; - }); - case './translations/locales/en-x-pseudo.json': - return import('new-request-form-translations').then(function (e) { - return e.C; - }); - case './translations/locales/en-x-test.json': - return import('new-request-form-translations').then(function (e) { - return e.D; - }); - case './translations/locales/es-419.json': - return import('new-request-form-translations').then(function (e) { - return e.E; - }); - case './translations/locales/es-es.json': - return import('new-request-form-translations').then(function (e) { - return e.F; - }); - case './translations/locales/es.json': - return import('new-request-form-translations').then(function (e) { - return e.G; - }); - case './translations/locales/et.json': - return import('new-request-form-translations').then(function (e) { - return e.H; - }); - case './translations/locales/eu.json': - return import('new-request-form-translations').then(function (e) { - return e.I; - }); - case './translations/locales/fa-af.json': - return import('new-request-form-translations').then(function (e) { - return e.J; - }); - case './translations/locales/fa.json': - return import('new-request-form-translations').then(function (e) { - return e.K; - }); - case './translations/locales/fi.json': - return import('new-request-form-translations').then(function (e) { - return e.L; - }); - case './translations/locales/fil.json': - return import('new-request-form-translations').then(function (e) { - return e.M; - }); - case './translations/locales/fo.json': - return import('new-request-form-translations').then(function (e) { - return e.N; - }); - case './translations/locales/fr-ca.json': - return import('new-request-form-translations').then(function (e) { - return e.O; - }); - case './translations/locales/fr.json': - return import('new-request-form-translations').then(function (e) { - return e.P; - }); - case './translations/locales/ga.json': - return import('new-request-form-translations').then(function (e) { - return e.Q; - }); - case './translations/locales/he.json': - return import('new-request-form-translations').then(function (e) { - return e.R; - }); - case './translations/locales/hi.json': - return import('new-request-form-translations').then(function (e) { - return e.S; - }); - case './translations/locales/hr.json': - return import('new-request-form-translations').then(function (e) { - return e.T; - }); - case './translations/locales/hu.json': - return import('new-request-form-translations').then(function (e) { - return e.U; - }); - case './translations/locales/hy.json': - return import('new-request-form-translations').then(function (e) { - return e.V; - }); - case './translations/locales/id.json': - return import('new-request-form-translations').then(function (e) { - return e.W; - }); - case './translations/locales/is.json': - return import('new-request-form-translations').then(function (e) { - return e.X; - }); - case './translations/locales/it-ch.json': - return import('new-request-form-translations').then(function (e) { - return e.Y; - }); - case './translations/locales/it.json': - return import('new-request-form-translations').then(function (e) { - return e.Z; - }); - case './translations/locales/ja.json': - return import('new-request-form-translations').then(function (e) { - return e._; - }); - case './translations/locales/ka.json': - return import('new-request-form-translations').then(function (e) { - return e.$; - }); - case './translations/locales/kk.json': - return import('new-request-form-translations').then(function (e) { - return e.a0; - }); - case './translations/locales/kl-dk.json': - return import('new-request-form-translations').then(function (e) { - return e.a1; - }); - case './translations/locales/ko.json': - return import('new-request-form-translations').then(function (e) { - return e.a2; - }); - case './translations/locales/ku.json': - return import('new-request-form-translations').then(function (e) { - return e.a3; - }); - case './translations/locales/lt.json': - return import('new-request-form-translations').then(function (e) { - return e.a4; - }); - case './translations/locales/lv.json': - return import('new-request-form-translations').then(function (e) { - return e.a5; - }); - case './translations/locales/mk.json': - return import('new-request-form-translations').then(function (e) { - return e.a6; - }); - case './translations/locales/mn.json': - return import('new-request-form-translations').then(function (e) { - return e.a7; - }); - case './translations/locales/ms.json': - return import('new-request-form-translations').then(function (e) { - return e.a8; - }); - case './translations/locales/mt.json': - return import('new-request-form-translations').then(function (e) { - return e.a9; - }); - case './translations/locales/my.json': - return import('new-request-form-translations').then(function (e) { - return e.aa; - }); - case './translations/locales/nl-be.json': - return import('new-request-form-translations').then(function (e) { - return e.ab; - }); - case './translations/locales/nl.json': - return import('new-request-form-translations').then(function (e) { - return e.ac; - }); - case './translations/locales/no.json': - return import('new-request-form-translations').then(function (e) { - return e.ad; - }); - case './translations/locales/pl.json': - return import('new-request-form-translations').then(function (e) { - return e.ae; - }); - case './translations/locales/pt-br.json': - return import('new-request-form-translations').then(function (e) { - return e.af; - }); - case './translations/locales/pt.json': - return import('new-request-form-translations').then(function (e) { - return e.ag; - }); - case './translations/locales/ro.json': - return import('new-request-form-translations').then(function (e) { - return e.ah; - }); - case './translations/locales/ru.json': - return import('new-request-form-translations').then(function (e) { - return e.ai; - }); - case './translations/locales/sk.json': - return import('new-request-form-translations').then(function (e) { - return e.aj; - }); - case './translations/locales/sl.json': - return import('new-request-form-translations').then(function (e) { - return e.ak; - }); - case './translations/locales/sq.json': - return import('new-request-form-translations').then(function (e) { - return e.al; - }); - case './translations/locales/sr-me.json': - return import('new-request-form-translations').then(function (e) { - return e.am; - }); - case './translations/locales/sr.json': - return import('new-request-form-translations').then(function (e) { - return e.an; - }); - case './translations/locales/sv.json': - return import('new-request-form-translations').then(function (e) { - return e.ao; - }); - case './translations/locales/th.json': - return import('new-request-form-translations').then(function (e) { - return e.ap; - }); - case './translations/locales/tr.json': - return import('new-request-form-translations').then(function (e) { - return e.aq; - }); - case './translations/locales/uk.json': - return import('new-request-form-translations').then(function (e) { - return e.ar; - }); - case './translations/locales/ur.json': - return import('new-request-form-translations').then(function (e) { - return e.as; - }); - case './translations/locales/uz.json': - return import('new-request-form-translations').then(function (e) { - return e.at; - }); - case './translations/locales/vi.json': - return import('new-request-form-translations').then(function (e) { - return e.au; - }); - case './translations/locales/zh-cn.json': - return import('new-request-form-translations').then(function (e) { - return e.av; - }); - case './translations/locales/zh-tw.json': - return import('new-request-form-translations').then(function (e) { - return e.aw; - }); - default: - return new Promise(function (n, t) { - ('function' == typeof queueMicrotask - ? queueMicrotask - : setTimeout)(t.bind(null, new Error('Unknown variable dynamic import: ' + e))); - }); - } - })(`./translations/locales/${r}.json`) - ), - ae.render(e.jsx(oe, { theme: le(n), children: e.jsx(dn, { ...t }) }), s); + +function __variableDynamicImportRuntime0__(path) { + switch (path) { + case './translations/locales/af.json': + return import('new-request-form-translations').then(function (n) { + return n.a; + }); + case './translations/locales/ar-x-pseudo.json': + return import('new-request-form-translations').then(function (n) { + return n.b; + }); + case './translations/locales/ar.json': + return import('new-request-form-translations').then(function (n) { + return n.c; + }); + case './translations/locales/az.json': + return import('new-request-form-translations').then(function (n) { + return n.d; + }); + case './translations/locales/be.json': + return import('new-request-form-translations').then(function (n) { + return n.e; + }); + case './translations/locales/bg.json': + return import('new-request-form-translations').then(function (n) { + return n.f; + }); + case './translations/locales/bn.json': + return import('new-request-form-translations').then(function (n) { + return n.g; + }); + case './translations/locales/bs.json': + return import('new-request-form-translations').then(function (n) { + return n.h; + }); + case './translations/locales/ca.json': + return import('new-request-form-translations').then(function (n) { + return n.i; + }); + case './translations/locales/cs.json': + return import('new-request-form-translations').then(function (n) { + return n.j; + }); + case './translations/locales/cy.json': + return import('new-request-form-translations').then(function (n) { + return n.k; + }); + case './translations/locales/da.json': + return import('new-request-form-translations').then(function (n) { + return n.l; + }); + case './translations/locales/de-de.json': + return import('new-request-form-translations').then(function (n) { + return n.m; + }); + case './translations/locales/de-x-informal.json': + return import('new-request-form-translations').then(function (n) { + return n.n; + }); + case './translations/locales/de.json': + return import('new-request-form-translations').then(function (n) { + return n.o; + }); + case './translations/locales/el.json': + return import('new-request-form-translations').then(function (n) { + return n.p; + }); + case './translations/locales/en-001.json': + return import('new-request-form-translations').then(function (n) { + return n.q; + }); + case './translations/locales/en-150.json': + return import('new-request-form-translations').then(function (n) { + return n.r; + }); + case './translations/locales/en-au.json': + return import('new-request-form-translations').then(function (n) { + return n.s; + }); + case './translations/locales/en-ca.json': + return import('new-request-form-translations').then(function (n) { + return n.t; + }); + case './translations/locales/en-gb.json': + return import('new-request-form-translations').then(function (n) { + return n.u; + }); + case './translations/locales/en-my.json': + return import('new-request-form-translations').then(function (n) { + return n.v; + }); + case './translations/locales/en-ph.json': + return import('new-request-form-translations').then(function (n) { + return n.w; + }); + case './translations/locales/en-se.json': + return import('new-request-form-translations').then(function (n) { + return n.x; + }); + case './translations/locales/en-us.json': + return import('new-request-form-translations').then(function (n) { + return n.y; + }); + case './translations/locales/en-x-dev.json': + return import('new-request-form-translations').then(function (n) { + return n.z; + }); + case './translations/locales/en-x-keys.json': + return import('new-request-form-translations').then(function (n) { + return n.A; + }); + case './translations/locales/en-x-obsolete.json': + return import('new-request-form-translations').then(function (n) { + return n.B; + }); + case './translations/locales/en-x-pseudo.json': + return import('new-request-form-translations').then(function (n) { + return n.C; + }); + case './translations/locales/en-x-test.json': + return import('new-request-form-translations').then(function (n) { + return n.D; + }); + case './translations/locales/es-419.json': + return import('new-request-form-translations').then(function (n) { + return n.E; + }); + case './translations/locales/es-es.json': + return import('new-request-form-translations').then(function (n) { + return n.F; + }); + case './translations/locales/es.json': + return import('new-request-form-translations').then(function (n) { + return n.G; + }); + case './translations/locales/et.json': + return import('new-request-form-translations').then(function (n) { + return n.H; + }); + case './translations/locales/eu.json': + return import('new-request-form-translations').then(function (n) { + return n.I; + }); + case './translations/locales/fa-af.json': + return import('new-request-form-translations').then(function (n) { + return n.J; + }); + case './translations/locales/fa.json': + return import('new-request-form-translations').then(function (n) { + return n.K; + }); + case './translations/locales/fi.json': + return import('new-request-form-translations').then(function (n) { + return n.L; + }); + case './translations/locales/fil.json': + return import('new-request-form-translations').then(function (n) { + return n.M; + }); + case './translations/locales/fo.json': + return import('new-request-form-translations').then(function (n) { + return n.N; + }); + case './translations/locales/fr-ca.json': + return import('new-request-form-translations').then(function (n) { + return n.O; + }); + case './translations/locales/fr.json': + return import('new-request-form-translations').then(function (n) { + return n.P; + }); + case './translations/locales/ga.json': + return import('new-request-form-translations').then(function (n) { + return n.Q; + }); + case './translations/locales/he.json': + return import('new-request-form-translations').then(function (n) { + return n.R; + }); + case './translations/locales/hi.json': + return import('new-request-form-translations').then(function (n) { + return n.S; + }); + case './translations/locales/hr.json': + return import('new-request-form-translations').then(function (n) { + return n.T; + }); + case './translations/locales/hu.json': + return import('new-request-form-translations').then(function (n) { + return n.U; + }); + case './translations/locales/hy.json': + return import('new-request-form-translations').then(function (n) { + return n.V; + }); + case './translations/locales/id.json': + return import('new-request-form-translations').then(function (n) { + return n.W; + }); + case './translations/locales/is.json': + return import('new-request-form-translations').then(function (n) { + return n.X; + }); + case './translations/locales/it-ch.json': + return import('new-request-form-translations').then(function (n) { + return n.Y; + }); + case './translations/locales/it.json': + return import('new-request-form-translations').then(function (n) { + return n.Z; + }); + case './translations/locales/ja.json': + return import('new-request-form-translations').then(function (n) { + return n._; + }); + case './translations/locales/ka.json': + return import('new-request-form-translations').then(function (n) { + return n.$; + }); + case './translations/locales/kk.json': + return import('new-request-form-translations').then(function (n) { + return n.a0; + }); + case './translations/locales/kl-dk.json': + return import('new-request-form-translations').then(function (n) { + return n.a1; + }); + case './translations/locales/ko.json': + return import('new-request-form-translations').then(function (n) { + return n.a2; + }); + case './translations/locales/ku.json': + return import('new-request-form-translations').then(function (n) { + return n.a3; + }); + case './translations/locales/lt.json': + return import('new-request-form-translations').then(function (n) { + return n.a4; + }); + case './translations/locales/lv.json': + return import('new-request-form-translations').then(function (n) { + return n.a5; + }); + case './translations/locales/mk.json': + return import('new-request-form-translations').then(function (n) { + return n.a6; + }); + case './translations/locales/mn.json': + return import('new-request-form-translations').then(function (n) { + return n.a7; + }); + case './translations/locales/ms.json': + return import('new-request-form-translations').then(function (n) { + return n.a8; + }); + case './translations/locales/mt.json': + return import('new-request-form-translations').then(function (n) { + return n.a9; + }); + case './translations/locales/my.json': + return import('new-request-form-translations').then(function (n) { + return n.aa; + }); + case './translations/locales/nl-be.json': + return import('new-request-form-translations').then(function (n) { + return n.ab; + }); + case './translations/locales/nl.json': + return import('new-request-form-translations').then(function (n) { + return n.ac; + }); + case './translations/locales/no.json': + return import('new-request-form-translations').then(function (n) { + return n.ad; + }); + case './translations/locales/pl.json': + return import('new-request-form-translations').then(function (n) { + return n.ae; + }); + case './translations/locales/pt-br.json': + return import('new-request-form-translations').then(function (n) { + return n.af; + }); + case './translations/locales/pt.json': + return import('new-request-form-translations').then(function (n) { + return n.ag; + }); + case './translations/locales/ro.json': + return import('new-request-form-translations').then(function (n) { + return n.ah; + }); + case './translations/locales/ru.json': + return import('new-request-form-translations').then(function (n) { + return n.ai; + }); + case './translations/locales/sk.json': + return import('new-request-form-translations').then(function (n) { + return n.aj; + }); + case './translations/locales/sl.json': + return import('new-request-form-translations').then(function (n) { + return n.ak; + }); + case './translations/locales/sq.json': + return import('new-request-form-translations').then(function (n) { + return n.al; + }); + case './translations/locales/sr-me.json': + return import('new-request-form-translations').then(function (n) { + return n.am; + }); + case './translations/locales/sr.json': + return import('new-request-form-translations').then(function (n) { + return n.an; + }); + case './translations/locales/sv.json': + return import('new-request-form-translations').then(function (n) { + return n.ao; + }); + case './translations/locales/th.json': + return import('new-request-form-translations').then(function (n) { + return n.ap; + }); + case './translations/locales/tr.json': + return import('new-request-form-translations').then(function (n) { + return n.aq; + }); + case './translations/locales/uk.json': + return import('new-request-form-translations').then(function (n) { + return n.ar; + }); + case './translations/locales/ur.json': + return import('new-request-form-translations').then(function (n) { + return n.as; + }); + case './translations/locales/uz.json': + return import('new-request-form-translations').then(function (n) { + return n.at; + }); + case './translations/locales/vi.json': + return import('new-request-form-translations').then(function (n) { + return n.au; + }); + case './translations/locales/zh-cn.json': + return import('new-request-form-translations').then(function (n) { + return n.av; + }); + case './translations/locales/zh-tw.json': + return import('new-request-form-translations').then(function (n) { + return n.aw; + }); + default: + return new Promise(function (resolve, reject) { + (typeof queueMicrotask === 'function' + ? queueMicrotask + : setTimeout)(reject.bind(null, new Error('Unknown variable dynamic import: ' + path))); + }); + } +} +async function renderNewRequestForm(settings, props, container) { + const { baseLocale } = props; + initI18next(baseLocale); + await loadTranslations(baseLocale, () => + __variableDynamicImportRuntime0__(`./translations/locales/${baseLocale}.json`) + ); + reactDomExports.render( + jsxRuntimeExports.jsx(ThemeProviders, { + theme: createTheme(settings), + children: jsxRuntimeExports.jsx(NewRequestForm, { ...props }), + }), + container + ); } -export { mn as renderNewRequestForm }; + +export { renderNewRequestForm }; diff --git a/assets/new-request-form-translations-bundle.js b/assets/new-request-form-translations-bundle.js index c26d8dc9e..23456af93 100644 --- a/assets/new-request-form-translations-bundle.js +++ b/assets/new-request-form-translations-bundle.js @@ -1,3724 +1,3897 @@ -var e = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - r = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '[ผู้龍ḬḬϝ ḭḭṭ ḍṓṓḛḛṡ, ẁḛḛ ͼααṇ ͼḽṓṓṡḛḛ ẏẏṓṓṵṵṛ ṛḛḛͼḛḛṇṭ ṛḛḛʠṵṵḛḛṡṭ {{requestId}}龍ผู้]', - 'new-request-form.answer-bot-modal.footer-title': - '[ผู้龍Ḍṓṓḛḛṡ ṭḥḭḭṡ ααṛṭḭḭͼḽḛḛ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', - 'new-request-form.answer-bot-modal.mark-irrelevant': '[ผู้龍Ṅṓṓ, ḬḬ ṇḛḛḛḛḍ ḥḛḛḽṗ龍ผู้]', - 'new-request-form.answer-bot-modal.request-closed': - '[ผู้龍Ṅḭḭͼḛḛ. ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ḥααṡ ḅḛḛḛḛṇ ͼḽṓṓṡḛḛḍ.龍ผู้]', - 'new-request-form.answer-bot-modal.request-submitted': - '[ผู้龍ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ẁααṡ ṡṵṵͼͼḛḛṡṡϝṵṵḽḽẏẏ ṡṵṵḅṃḭḭṭṭḛḛḍ龍ผู้]', - 'new-request-form.answer-bot-modal.solve-error': - '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ͼḽṓṓṡḭḭṇḡ ẏẏṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', - 'new-request-form.answer-bot-modal.solve-request': - '[ผู้龍ŶŶḛḛṡ, ͼḽṓṓṡḛḛ ṃẏẏ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', - 'new-request-form.answer-bot-modal.title': - '[ผู้龍Ŵḥḭḭḽḛḛ ẏẏṓṓṵṵ ẁααḭḭṭ, ḍṓṓ ααṇẏẏ ṓṓϝ ṭḥḛḛṡḛḛ ααṛṭḭḭͼḽḛḛṡ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', - 'new-request-form.answer-bot-modal.view-article': '[ผู้龍Ṿḭḭḛḛẁ ααṛṭḭḭͼḽḛḛ龍ผู้]', - 'new-request-form.attachments.choose-file-label': - '[ผู้龍Ḉḥṓṓṓṓṡḛḛ αα ϝḭḭḽḛḛ ṓṓṛ ḍṛααḡ ααṇḍ ḍṛṓṓṗ ḥḛḛṛḛḛ龍ผู้]', - 'new-request-form.attachments.drop-files-label': '[ผู้龍Ḍṛṓṓṗ ϝḭḭḽḛḛṡ ḥḛḛṛḛḛ龍ผู้]', - 'new-request-form.attachments.remove-file': '[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ龍ผู้]', - 'new-request-form.attachments.stop-upload': '[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍ龍ผู้]', - 'new-request-form.attachments.upload-error-description': - '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}. Ṫṛẏẏ ααḡααḭḭṇ ṓṓṛ ṵṵṗḽṓṓααḍ ααṇṓṓṭḥḛḛṛ ϝḭḭḽḛḛ.龍ผู้]', - 'new-request-form.attachments.upload-error-title': '[ผู้龍ṲṲṗḽṓṓααḍ ḛḛṛṛṓṓṛ龍ผู้]', - 'new-request-form.attachments.uploading': '[ผู้龍ṲṲṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]', - 'new-request-form.cc-field.container-label': '[ผู้龍Ṣḛḛḽḛḛͼṭḛḛḍ ḈḈ ḛḛṃααḭḭḽṡ龍ผู้]', - 'new-request-form.cc-field.email-added': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', - 'new-request-form.cc-field.email-label': - '[ผู้龍{{email}} - Ṕṛḛḛṡṡ Ḃααͼḳṡṗααͼḛḛ ṭṓṓ ṛḛḛṃṓṓṽḛḛ龍ผู้]', - 'new-request-form.cc-field.email-removed': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ṛḛḛṃṓṓṽḛḛḍ龍ผู้]', - 'new-request-form.cc-field.emails-added': '[ผู้龍{{emails}} ḥααṽḛḛ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', - 'new-request-form.cc-field.invalid-email': '[ผู้龍ḬḬṇṽααḽḭḭḍ ḛḛṃααḭḭḽ ααḍḍṛḛḛṡṡ龍ผู้]', - 'new-request-form.close-label': '[ผู้龍Ḉḽṓṓṡḛḛ龍ผู้]', - 'new-request-form.credit-card-digits-hint': '[ผู้龍(Ḻααṡṭ 4 ḍḭḭḡḭḭṭṡ)龍ผู้]', - 'new-request-form.dropdown.empty-option': '[ผู้龍Ṣḛḛḽḛḛͼṭ ααṇ ṓṓṗṭḭḭṓṓṇ龍ผู้]', - 'new-request-form.lookup-field.loading-options': '[ผู้龍Ḻṓṓααḍḭḭṇḡ ḭḭṭḛḛṃṡ...龍ผู้]', - 'new-request-form.lookup-field.no-matches-found': '[ผู้龍Ṅṓṓ ṃααṭͼḥḛḛṡ ϝṓṓṵṵṇḍ龍ผู้]', - 'new-request-form.lookup-field.placeholder': '[ผู้龍Ṣḛḛααṛͼḥ {{label}}龍ผู้]', - 'new-request-form.parent-request-link': - '[ผู้龍Ḟṓṓḽḽṓṓẁ-ṵṵṗ ṭṓṓ ṛḛḛʠṵṵḛḛṡṭ {{parentId}}龍ผู้]', - 'new-request-form.required-fields-info': - '[ผู้龍Ḟḭḭḛḛḽḍṡ ṃααṛḳḛḛḍ ẁḭḭṭḥ ααṇ ααṡṭḛḛṛḭḭṡḳ (*) ααṛḛḛ ṛḛḛʠṵṵḭḭṛḛḛḍ.龍ผู้]', - 'new-request-form.submit': '[ผู้龍Ṣṵṵḅṃḭḭṭ龍ผู้]', - 'new-request-form.suggested-articles': '[ผู้龍Ṣṵṵḡḡḛḛṡṭḛḛḍ ααṛṭḭḭͼḽḛḛṡ龍ผู้]', - }, - }), - t = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'في هذه الحالة يمكننا إغلاق الطلب الأخير {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'هل يجيب هذا المقال عن سؤالك؟', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'كلا، أحتاج إلى مساعدة', - 'new-request-form.answer-bot-modal.request-closed': 'رائع. تم إغلاق طلبك.', - 'new-request-form.answer-bot-modal.request-submitted': 'تم إرسال طلبك بنجاح', - 'new-request-form.answer-bot-modal.solve-error': 'حدث خطأ أثناء إغلاق طلبك', - 'new-request-form.answer-bot-modal.solve-request': 'نعم، أغلق هذا الطلب', - 'new-request-form.answer-bot-modal.title': - 'بينما تنتظر الرد، هل يجيب أي من المقالات التالية عن سؤالك؟', - 'new-request-form.answer-bot-modal.view-article': 'عرض المقال', - 'new-request-form.attachments.choose-file-label': 'اختر ملفًا أو قم بالسحب والإسقاط هنا', - 'new-request-form.attachments.drop-files-label': 'أسقِط الملفات هنا', - 'new-request-form.attachments.remove-file': 'إزالة الملف', - 'new-request-form.attachments.stop-upload': 'إيقاف التحميل', - 'new-request-form.attachments.upload-error-description': - 'حدث خطأ أثناء تحميل {{fileName}}. حاول مرة أخرى أو قم بتحميل ملف آخر.', - 'new-request-form.attachments.upload-error-title': 'خطأ في التحميل', - 'new-request-form.attachments.uploading': 'جارٍ تحميل {{fileName}}', - 'new-request-form.cc-field.container-label': - 'عناوين البريد الإلكتروني المحددة في خانة النسخة', - 'new-request-form.cc-field.email-added': 'تمت إضافة {{email}}', - 'new-request-form.cc-field.email-label': '{{email}} - اضغط على Backspace للإزالة', - 'new-request-form.cc-field.email-removed': 'تمت إزالة {{email}}', - 'new-request-form.cc-field.emails-added': 'تمت إضافة {{emails}}', - 'new-request-form.cc-field.invalid-email': 'عنوان بريد إلكتروني غير صالح', - 'new-request-form.close-label': 'إغلاق', - 'new-request-form.credit-card-digits-hint': '(آخر 4 أرقام)', - 'new-request-form.dropdown.empty-option': 'حدّد خيارًا', - 'new-request-form.lookup-field.loading-options': 'جارٍ تحميل العناصر...', - 'new-request-form.lookup-field.no-matches-found': 'لم يتم العثور على نتائج مطابقة', - 'new-request-form.lookup-field.placeholder': 'بحث عن {{label}}', - 'new-request-form.parent-request-link': 'متابعة طلب {{parentId}}', - 'new-request-form.required-fields-info': 'الحقول التي عليها علامة النجمة (*) مطلوبة.', - 'new-request-form.submit': 'إرسال', - 'new-request-form.suggested-articles': 'مقالات مقترحة', - }, - }), - o = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - a = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Если да, мы можем закрыть запрос {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Есть ли в этой статье ответ на вопрос?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Нет, мне нужна помощь', - 'new-request-form.answer-bot-modal.request-closed': 'Превосходно. Запрос закрыт.', - 'new-request-form.answer-bot-modal.request-submitted': 'Ваш запрос отправлен', - 'new-request-form.answer-bot-modal.solve-error': 'Ошибка при закрытии запроса', - 'new-request-form.answer-bot-modal.solve-request': 'Да, закрыть мой запрос', - 'new-request-form.answer-bot-modal.title': - 'Пока вы ожидаете, есть ли в какой-то из этих статей ответ на ваш вопрос?', - 'new-request-form.answer-bot-modal.view-article': 'Просмотреть статью', - 'new-request-form.attachments.choose-file-label': 'Выберите файл или перетащите его сюда', - 'new-request-form.attachments.drop-files-label': 'Перетащите файлы сюда', - 'new-request-form.attachments.remove-file': 'Удалить файл', - 'new-request-form.attachments.stop-upload': 'Остановить выкладывание', - 'new-request-form.attachments.upload-error-description': - 'Ошибка при выкладывании {{fileName}}. Повторите попытку или выложите другой файл.', - 'new-request-form.attachments.upload-error-title': 'Ошибка выкладывания', - 'new-request-form.attachments.uploading': 'Выкладывание {{fileName}}', - 'new-request-form.cc-field.container-label': 'Выбранные письма для копии', - 'new-request-form.cc-field.email-added': 'Адрес {{email}} добавлен', - 'new-request-form.cc-field.email-label': '{{email}} — нажмите клавишу Backspace для удаления', - 'new-request-form.cc-field.email-removed': 'Адрес {{email}} удален', - 'new-request-form.cc-field.emails-added': 'Добавлены адреса {{emails}}', - 'new-request-form.cc-field.invalid-email': 'Недействительный адрес электронной почты', - 'new-request-form.close-label': 'Закрыть', - 'new-request-form.credit-card-digits-hint': '(последние 4 цифры)', - 'new-request-form.dropdown.empty-option': 'Выберите вариант', - 'new-request-form.lookup-field.loading-options': 'Загрузка элементов...', - 'new-request-form.lookup-field.no-matches-found': 'Соответствия не найдены', - 'new-request-form.lookup-field.placeholder': 'Поиск: {{label}}', - 'new-request-form.parent-request-link': 'Дополнение к запросу {{parentId}}', - 'new-request-form.required-fields-info': - 'Помеченные звездочкой (*) поля обязательны для заполнения.', - 'new-request-form.submit': 'Отправить', - 'new-request-form.suggested-articles': 'Предложенные статьи', - }, - }), - s = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Ако отговаря, можем да затворим заявката {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Отговори ли тази статия на въпроса ви?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Не, трябва ми помощ', - 'new-request-form.answer-bot-modal.request-closed': 'Чудесно. Заявката е затворена.', - 'new-request-form.answer-bot-modal.request-submitted': 'Заявката ви беше подадена успешно', - 'new-request-form.answer-bot-modal.solve-error': - 'Възникна грешка при затваряне на вашата заявка', - 'new-request-form.answer-bot-modal.solve-request': 'Да, затворете заявката ми', - 'new-request-form.answer-bot-modal.title': - 'Докато чакате, вижте дали някоя от тези статии отговаря на въпроса ви.', - 'new-request-form.answer-bot-modal.view-article': 'Преглед на статията', - 'new-request-form.attachments.choose-file-label': - 'Изберете файл или го плъзнете и пуснете тук', - 'new-request-form.attachments.drop-files-label': 'Пуснете файловете тук', - 'new-request-form.attachments.remove-file': 'Премахване на файл', - 'new-request-form.attachments.stop-upload': 'Спиране на качването', - 'new-request-form.attachments.upload-error-description': - 'Възникна грешка при качването на {{fileName}}. Опитайте отново или качете друг файл.', - 'new-request-form.attachments.upload-error-title': 'Грешка при качването', - 'new-request-form.attachments.uploading': 'Качва се {{fileName}}', - 'new-request-form.cc-field.container-label': 'Избрани имейли за копие', - 'new-request-form.cc-field.email-added': 'Имейл адресът {{email}} е добавен', - 'new-request-form.cc-field.email-label': '{{email}} – натиснете „Backspace“ за премахване', - 'new-request-form.cc-field.email-removed': 'Имейл адресът {{email}} е премахнат', - 'new-request-form.cc-field.emails-added': 'Имейл адресите {{emails}} са добавени', - 'new-request-form.cc-field.invalid-email': 'Невалиден имейл адрес', - 'new-request-form.close-label': 'Затваряне', - 'new-request-form.credit-card-digits-hint': '(последните 4 цифри)', - 'new-request-form.dropdown.empty-option': 'Изберете опция', - 'new-request-form.lookup-field.loading-options': 'Зареждане на елементите…', - 'new-request-form.lookup-field.no-matches-found': 'Няма открити съвпадения', - 'new-request-form.lookup-field.placeholder': 'Търсене на {{label}}', - 'new-request-form.parent-request-link': - 'Последващи действия във връзка със заявката {{parentId}}', - 'new-request-form.required-fields-info': - 'Полетата, отбелязани със звездичка (*), са задължителни.', - 'new-request-form.submit': 'Подаване', - 'new-request-form.suggested-articles': 'Предложени статии', - }, - }), - l = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - n = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - i = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', - 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', - 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', - 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', - 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', - 'new-request-form.answer-bot-modal.title': - 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', - 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', - 'new-request-form.attachments.choose-file-label': - 'Elegir un archivo o arrastrar y soltar uno aquí', - 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', - 'new-request-form.attachments.remove-file': 'Eliminar archivo', - 'new-request-form.attachments.stop-upload': 'Detener carga', - 'new-request-form.attachments.upload-error-description': - 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', - 'new-request-form.attachments.upload-error-title': 'Error de carga', - 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', - 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', - 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', - 'new-request-form.cc-field.email-label': - '{{email}}: presione la tecla de retroceso para eliminar', - 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', - 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', - 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', - 'new-request-form.close-label': 'Cerrar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Seleccione una opción', - 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', - 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', - 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', - 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', - 'new-request-form.required-fields-info': - 'Los campos marcados con un asterisco (*) son obligatorios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artículos recomendados', - }, - }), - m = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Pokud ano, můžeme uzavřít nedávný požadavek {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Odpověděl tento článek na vaši otázku?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Ne, potřebuji pomoc', - 'new-request-form.answer-bot-modal.request-closed': 'Prima. Požadavek byl uzavřen.', - 'new-request-form.answer-bot-modal.request-submitted': 'Váš požadavek byl úspěšně odeslán.', - 'new-request-form.answer-bot-modal.solve-error': 'Při zavírání požadavku došlo k chybě.', - 'new-request-form.answer-bot-modal.solve-request': 'Ano, zavřít můj požadavek', - 'new-request-form.answer-bot-modal.title': - 'Odpověděl některý z těchto článků na vaši otázku, zatímco čekáte?', - 'new-request-form.answer-bot-modal.view-article': 'Zobrazit článek', - 'new-request-form.attachments.choose-file-label': 'Vyberte soubor nebo ho sem přetáhněte', - 'new-request-form.attachments.drop-files-label': 'Sem přetáhněte soubory.', - 'new-request-form.attachments.remove-file': 'Odstranit soubor', - 'new-request-form.attachments.stop-upload': 'Zastavit upload', - 'new-request-form.attachments.upload-error-description': - 'Při uploadování souboru {{fileName}}došlo k chybě. Zkuste to znovu nebo uploadujte jiný soubor.', - 'new-request-form.attachments.upload-error-title': 'Chyba při uploadu', - 'new-request-form.attachments.uploading': 'Uploaduje se soubor {{fileName}}', - 'new-request-form.cc-field.container-label': 'Vybrané e-maily v kopii', - 'new-request-form.cc-field.email-added': 'E-mail {{email}} byl přidán', - 'new-request-form.cc-field.email-label': - '{{email}} – Stisknutím klávesy Backspace proveďte odstranění.', - 'new-request-form.cc-field.email-removed': 'E-mail {{email}} byl odstraněn', - 'new-request-form.cc-field.emails-added': 'E-maily {{emails}} byly přidány', - 'new-request-form.cc-field.invalid-email': 'Neplatná e-mailová adresa', - 'new-request-form.close-label': 'Zavřít', - 'new-request-form.credit-card-digits-hint': '(Poslední 4 číslice)', - 'new-request-form.dropdown.empty-option': 'Vybrat volbu', - 'new-request-form.lookup-field.loading-options': 'Načítání položek…', - 'new-request-form.lookup-field.no-matches-found': 'Nebyly nalezeny žádné shody', - 'new-request-form.lookup-field.placeholder': 'Hledejte {{label}}', - 'new-request-form.parent-request-link': 'Navazující tiket pro požadavek {{parentId}}', - 'new-request-form.required-fields-info': 'Pole označená hvězdičkou (*) jsou povinná.', - 'new-request-form.submit': 'Odeslat', - 'new-request-form.suggested-articles': 'Doporučené články', - }, - }), - d = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - u = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Hvis den gør, kan vi lukke den seneste anmodning {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Besvarede denne artikel dit spørgsmål?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nej, jeg har brug for hjælp', - 'new-request-form.answer-bot-modal.request-closed': 'Fint. Anmodningen er blevet lukket.', - 'new-request-form.answer-bot-modal.request-submitted': 'Din anmodning er blevet sendt', - 'new-request-form.answer-bot-modal.solve-error': - 'Der opstod en fejl under lukning af din anmodning', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, luk min anmodning', - 'new-request-form.answer-bot-modal.title': - 'Mens du venter, er der da nogen af disse artikler, som besvarer dit spørgsmål?', - 'new-request-form.answer-bot-modal.view-article': 'Se artikel', - 'new-request-form.attachments.choose-file-label': 'Vælg en fil eller træk og slip her', - 'new-request-form.attachments.drop-files-label': 'Slip filerne her', - 'new-request-form.attachments.remove-file': 'Fjern fil', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'Der opstod en fejl under upload {{fileName}}. Prøv igen eller upload en anden fil.', - 'new-request-form.attachments.upload-error-title': 'Fejl under upload', - 'new-request-form.attachments.uploading': 'Uploader {{fileName}}', - 'new-request-form.cc-field.container-label': 'Valgte CC-mails', - 'new-request-form.cc-field.email-added': '{{email}} er blevet tilføjet', - 'new-request-form.cc-field.email-label': '{{email}} - Tryk på Backspace for at fjerne', - 'new-request-form.cc-field.email-removed': '{{email}} er blevet fjernet', - 'new-request-form.cc-field.emails-added': '{{emails}} er blevet tilføjet', - 'new-request-form.cc-field.invalid-email': 'Ugyldig e-mailadresse', - 'new-request-form.close-label': 'Luk', - 'new-request-form.credit-card-digits-hint': '(sidste 4 cifre)', - 'new-request-form.dropdown.empty-option': 'Foretag et valg', - 'new-request-form.lookup-field.loading-options': 'Indlæser elementer...', - 'new-request-form.lookup-field.no-matches-found': 'Ingen matchende resultater', - 'new-request-form.lookup-field.placeholder': 'Søgning i {{label}}', - 'new-request-form.parent-request-link': 'Følg op på anmodning {{parentId}}', - 'new-request-form.required-fields-info': - 'Felter markeret med en stjerne (*) er obligatoriske.', - 'new-request-form.submit': 'Indsend', - 'new-request-form.suggested-articles': 'Foreslåede artikler', - }, - }), - f = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', - 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', - 'new-request-form.answer-bot-modal.request-closed': - 'Sehr gut. Ihre Anfrage wurde geschlossen.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Ihre Anfrage wurde erfolgreich eingereicht', - 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', - 'new-request-form.answer-bot-modal.title': - 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', - 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', - 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', - 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', - 'new-request-form.attachments.remove-file': 'Datei entfernen', - 'new-request-form.attachments.stop-upload': 'Upload anhalten', - 'new-request-form.attachments.upload-error-description': - 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', - 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', - 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', - 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', - 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', - 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', - 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', - 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', - 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', - 'new-request-form.close-label': 'Schließen', - 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', - 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', - 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', - 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', - 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', - 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', - 'new-request-form.required-fields-info': - 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', - 'new-request-form.submit': 'Senden', - 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', - }, - }), - c = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', - 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', - 'new-request-form.answer-bot-modal.request-closed': - 'Sehr gut. Ihre Anfrage wurde geschlossen.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Ihre Anfrage wurde erfolgreich eingereicht', - 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', - 'new-request-form.answer-bot-modal.title': - 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', - 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', - 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', - 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', - 'new-request-form.attachments.remove-file': 'Datei entfernen', - 'new-request-form.attachments.stop-upload': 'Upload anhalten', - 'new-request-form.attachments.upload-error-description': - 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', - 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', - 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', - 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', - 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', - 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', - 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', - 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', - 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', - 'new-request-form.close-label': 'Schließen', - 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', - 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', - 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', - 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', - 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', - 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', - 'new-request-form.required-fields-info': - 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', - 'new-request-form.submit': 'Senden', - 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', - }, - }), - w = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', - 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', - 'new-request-form.answer-bot-modal.request-closed': - 'Sehr gut. Ihre Anfrage wurde geschlossen.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Ihre Anfrage wurde erfolgreich eingereicht', - 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', - 'new-request-form.answer-bot-modal.title': - 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', - 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', - 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', - 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', - 'new-request-form.attachments.remove-file': 'Datei entfernen', - 'new-request-form.attachments.stop-upload': 'Upload anhalten', - 'new-request-form.attachments.upload-error-description': - 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', - 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', - 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', - 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', - 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', - 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', - 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', - 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', - 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', - 'new-request-form.close-label': 'Schließen', - 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', - 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', - 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', - 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', - 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', - 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', - 'new-request-form.required-fields-info': - 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', - 'new-request-form.submit': 'Senden', - 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', - }, - }), - q = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Αν ναι, μπορούμε να κλείσουμε το πρόσφατο αίτημα {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Απαντά στην ερώτηση το άρθρο;', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Όχι, χρειάζομαι βοήθεια', - 'new-request-form.answer-bot-modal.request-closed': 'Ωραία. Το αίτημα έχει κλείσει.', - 'new-request-form.answer-bot-modal.request-submitted': 'Το αίτημά σας υπεβλήθη με επιτυχία', - 'new-request-form.answer-bot-modal.solve-error': - 'Παρουσιάστηκε σφάλμα στο κλείσιμο του αιτήματός σας', - 'new-request-form.answer-bot-modal.solve-request': 'Ναι, να κλείσει το αίτημά μου', - 'new-request-form.answer-bot-modal.title': - 'Ενώ περιμένετε, απαντά στην ερώτηση κάποιο από αυτά τα άρθρα;', - 'new-request-form.answer-bot-modal.view-article': 'Προβολή άρθρου', - 'new-request-form.attachments.choose-file-label': - 'Επιλέξτε ένα αρχείο ή σύρετε και αποθέστε εδώ', - 'new-request-form.attachments.drop-files-label': 'Αποθέστε τα αρχεία εδώ', - 'new-request-form.attachments.remove-file': 'Κατάργηση αρχείου', - 'new-request-form.attachments.stop-upload': 'Διακοπή αποστολής', - 'new-request-form.attachments.upload-error-description': - 'Υπήρξε σφάλμα κατά την αποστολή του {{fileName}}. Δοκιμάστε ξανά ή ανεβάστε άλλο αρχείο.', - 'new-request-form.attachments.upload-error-title': 'Σφάλμα αποστολής', - 'new-request-form.attachments.uploading': 'Γίνεται αποστολή {{fileName}}', - 'new-request-form.cc-field.container-label': 'Επιλεγμένα email για κοινοποίηση', - 'new-request-form.cc-field.email-added': 'Προστέθηκε το {{email}}', - 'new-request-form.cc-field.email-label': '{{email}} - Πατήστε Backspace για αφαίρεση', - 'new-request-form.cc-field.email-removed': 'Καταργήθηκε το {{email}}', - 'new-request-form.cc-field.emails-added': 'Οι διευθύνσεις {{emails}} έχουν προστεθεί', - 'new-request-form.cc-field.invalid-email': 'Μη έγκυρη διεύθυνση email', - 'new-request-form.close-label': 'Κλείσιμο', - 'new-request-form.credit-card-digits-hint': '(4 τελευταία ψηφία)', - 'new-request-form.dropdown.empty-option': 'Ενεργοποιήστε μια επιλογή', - 'new-request-form.lookup-field.loading-options': 'Γίνεται φόρτωση αντικειμένων...', - 'new-request-form.lookup-field.no-matches-found': 'Δεν βρέθηκαν αντιστοιχίσεις', - 'new-request-form.lookup-field.placeholder': 'Αναζήτηση σε {{label}}', - 'new-request-form.parent-request-link': 'Συμπληρωματικό στο αίτημα {{parentId}}', - 'new-request-form.required-fields-info': 'Τα πεδία με αστερίσκο (*) είναι υποχρεωτικά.', - 'new-request-form.submit': 'Υποβολή', - 'new-request-form.suggested-articles': 'Προτεινόμενα άρθρα', - }, - }), - p = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - h = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - b = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - g = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - v = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - k = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - y = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - S = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - N = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - _ = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - I = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'new-request-form.answer-bot-modal.footer-content', - 'new-request-form.answer-bot-modal.footer-title': - 'new-request-form.answer-bot-modal.footer-title', - 'new-request-form.answer-bot-modal.mark-irrelevant': - 'new-request-form.answer-bot-modal.mark-irrelevant', - 'new-request-form.answer-bot-modal.request-closed': - 'new-request-form.answer-bot-modal.request-closed', - 'new-request-form.answer-bot-modal.request-submitted': - 'new-request-form.answer-bot-modal.request-submitted', - 'new-request-form.answer-bot-modal.solve-error': - 'new-request-form.answer-bot-modal.solve-error', - 'new-request-form.answer-bot-modal.solve-request': - 'new-request-form.answer-bot-modal.solve-request', - 'new-request-form.answer-bot-modal.title': 'new-request-form.answer-bot-modal.title', - 'new-request-form.answer-bot-modal.view-article': - 'new-request-form.answer-bot-modal.view-article', - 'new-request-form.attachments.choose-file-label': - 'new-request-form.attachments.choose-file-label', - 'new-request-form.attachments.drop-files-label': - 'new-request-form.attachments.drop-files-label', - 'new-request-form.attachments.remove-file': 'new-request-form.attachments.remove-file', - 'new-request-form.attachments.stop-upload': 'new-request-form.attachments.stop-upload', - 'new-request-form.attachments.upload-error-description': - 'new-request-form.attachments.upload-error-description', - 'new-request-form.attachments.upload-error-title': - 'new-request-form.attachments.upload-error-title', - 'new-request-form.attachments.uploading': 'new-request-form.attachments.uploading', - 'new-request-form.cc-field.container-label': 'new-request-form.cc-field.container-label', - 'new-request-form.cc-field.email-added': 'new-request-form.cc-field.email-added', - 'new-request-form.cc-field.email-label': 'new-request-form.cc-field.email-label', - 'new-request-form.cc-field.email-removed': 'new-request-form.cc-field.email-removed', - 'new-request-form.cc-field.emails-added': 'new-request-form.cc-field.emails-added', - 'new-request-form.cc-field.invalid-email': 'new-request-form.cc-field.invalid-email', - 'new-request-form.close-label': 'new-request-form.close-label', - 'new-request-form.credit-card-digits-hint': 'new-request-form.credit-card-digits-hint', - 'new-request-form.dropdown.empty-option': 'new-request-form.dropdown.empty-option', - 'new-request-form.lookup-field.loading-options': - 'new-request-form.lookup-field.loading-options', - 'new-request-form.lookup-field.no-matches-found': - 'new-request-form.lookup-field.no-matches-found', - 'new-request-form.lookup-field.placeholder': 'new-request-form.lookup-field.placeholder', - 'new-request-form.parent-request-link': 'new-request-form.parent-request-link', - 'new-request-form.required-fields-info': 'new-request-form.required-fields-info', - 'new-request-form.submit': 'new-request-form.submit', - 'new-request-form.suggested-articles': 'new-request-form.suggested-articles', - }, - }), - z = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - C = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '[ผู้龍ḬḬϝ ḭḭṭ ḍṓṓḛḛṡ, ẁḛḛ ͼααṇ ͼḽṓṓṡḛḛ ẏẏṓṓṵṵṛ ṛḛḛͼḛḛṇṭ ṛḛḛʠṵṵḛḛṡṭ {{requestId}}龍ผู้]', - 'new-request-form.answer-bot-modal.footer-title': - '[ผู้龍Ḍṓṓḛḛṡ ṭḥḭḭṡ ααṛṭḭḭͼḽḛḛ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', - 'new-request-form.answer-bot-modal.mark-irrelevant': '[ผู้龍Ṅṓṓ, ḬḬ ṇḛḛḛḛḍ ḥḛḛḽṗ龍ผู้]', - 'new-request-form.answer-bot-modal.request-closed': - '[ผู้龍Ṅḭḭͼḛḛ. ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ḥααṡ ḅḛḛḛḛṇ ͼḽṓṓṡḛḛḍ.龍ผู้]', - 'new-request-form.answer-bot-modal.request-submitted': - '[ผู้龍ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ẁααṡ ṡṵṵͼͼḛḛṡṡϝṵṵḽḽẏẏ ṡṵṵḅṃḭḭṭṭḛḛḍ龍ผู้]', - 'new-request-form.answer-bot-modal.solve-error': - '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ͼḽṓṓṡḭḭṇḡ ẏẏṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', - 'new-request-form.answer-bot-modal.solve-request': - '[ผู้龍ŶŶḛḛṡ, ͼḽṓṓṡḛḛ ṃẏẏ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', - 'new-request-form.answer-bot-modal.title': - '[ผู้龍Ŵḥḭḭḽḛḛ ẏẏṓṓṵṵ ẁααḭḭṭ, ḍṓṓ ααṇẏẏ ṓṓϝ ṭḥḛḛṡḛḛ ααṛṭḭḭͼḽḛḛṡ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', - 'new-request-form.answer-bot-modal.view-article': '[ผู้龍Ṿḭḭḛḛẁ ααṛṭḭḭͼḽḛḛ龍ผู้]', - 'new-request-form.attachments.choose-file-label': - '[ผู้龍Ḉḥṓṓṓṓṡḛḛ αα ϝḭḭḽḛḛ ṓṓṛ ḍṛααḡ ααṇḍ ḍṛṓṓṗ ḥḛḛṛḛḛ龍ผู้]', - 'new-request-form.attachments.drop-files-label': '[ผู้龍Ḍṛṓṓṗ ϝḭḭḽḛḛṡ ḥḛḛṛḛḛ龍ผู้]', - 'new-request-form.attachments.remove-file': '[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ龍ผู้]', - 'new-request-form.attachments.stop-upload': '[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍ龍ผู้]', - 'new-request-form.attachments.upload-error-description': - '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}. Ṫṛẏẏ ααḡααḭḭṇ ṓṓṛ ṵṵṗḽṓṓααḍ ααṇṓṓṭḥḛḛṛ ϝḭḭḽḛḛ.龍ผู้]', - 'new-request-form.attachments.upload-error-title': '[ผู้龍ṲṲṗḽṓṓααḍ ḛḛṛṛṓṓṛ龍ผู้]', - 'new-request-form.attachments.uploading': '[ผู้龍ṲṲṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]', - 'new-request-form.cc-field.container-label': '[ผู้龍Ṣḛḛḽḛḛͼṭḛḛḍ ḈḈ ḛḛṃααḭḭḽṡ龍ผู้]', - 'new-request-form.cc-field.email-added': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', - 'new-request-form.cc-field.email-label': - '[ผู้龍{{email}} - Ṕṛḛḛṡṡ Ḃααͼḳṡṗααͼḛḛ ṭṓṓ ṛḛḛṃṓṓṽḛḛ龍ผู้]', - 'new-request-form.cc-field.email-removed': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ṛḛḛṃṓṓṽḛḛḍ龍ผู้]', - 'new-request-form.cc-field.emails-added': '[ผู้龍{{emails}} ḥααṽḛḛ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', - 'new-request-form.cc-field.invalid-email': '[ผู้龍ḬḬṇṽααḽḭḭḍ ḛḛṃααḭḭḽ ααḍḍṛḛḛṡṡ龍ผู้]', - 'new-request-form.close-label': '[ผู้龍Ḉḽṓṓṡḛḛ龍ผู้]', - 'new-request-form.credit-card-digits-hint': '[ผู้龍(Ḻααṡṭ 4 ḍḭḭḡḭḭṭṡ)龍ผู้]', - 'new-request-form.dropdown.empty-option': '[ผู้龍Ṣḛḛḽḛḛͼṭ ααṇ ṓṓṗṭḭḭṓṓṇ龍ผู้]', - 'new-request-form.lookup-field.loading-options': '[ผู้龍Ḻṓṓααḍḭḭṇḡ ḭḭṭḛḛṃṡ...龍ผู้]', - 'new-request-form.lookup-field.no-matches-found': '[ผู้龍Ṅṓṓ ṃααṭͼḥḛḛṡ ϝṓṓṵṵṇḍ龍ผู้]', - 'new-request-form.lookup-field.placeholder': '[ผู้龍Ṣḛḛααṛͼḥ {{label}}龍ผู้]', - 'new-request-form.parent-request-link': - '[ผู้龍Ḟṓṓḽḽṓṓẁ-ṵṵṗ ṭṓṓ ṛḛḛʠṵṵḛḛṡṭ {{parentId}}龍ผู้]', - 'new-request-form.required-fields-info': - '[ผู้龍Ḟḭḭḛḛḽḍṡ ṃααṛḳḛḛḍ ẁḭḭṭḥ ααṇ ααṡṭḛḛṛḭḭṡḳ (*) ααṛḛḛ ṛḛḛʠṵṵḭḭṛḛḛḍ.龍ผู้]', - 'new-request-form.submit': '[ผู้龍Ṣṵṵḅṃḭḭṭ龍ผู้]', - 'new-request-form.suggested-articles': '[ผู้龍Ṣṵṵḡḡḛḛṡṭḛḛḍ ααṛṭḭḭͼḽḛḛṡ龍ผู้]', - }, - }), - j = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - T = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', - 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', - 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', - 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', - 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', - 'new-request-form.answer-bot-modal.title': - 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', - 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', - 'new-request-form.attachments.choose-file-label': - 'Elegir un archivo o arrastrar y soltar uno aquí', - 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', - 'new-request-form.attachments.remove-file': 'Eliminar archivo', - 'new-request-form.attachments.stop-upload': 'Detener carga', - 'new-request-form.attachments.upload-error-description': - 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', - 'new-request-form.attachments.upload-error-title': 'Error de carga', - 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', - 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', - 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', - 'new-request-form.cc-field.email-label': - '{{email}}: presione la tecla de retroceso para eliminar', - 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', - 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', - 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', - 'new-request-form.close-label': 'Cerrar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Seleccione una opción', - 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', - 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', - 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', - 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', - 'new-request-form.required-fields-info': - 'Los campos marcados con un asterisco (*) son obligatorios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artículos recomendados', - }, - }), - F = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', - 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', - 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', - 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', - 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', - 'new-request-form.answer-bot-modal.title': - 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', - 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', - 'new-request-form.attachments.choose-file-label': - 'Elegir un archivo o arrastrar y soltar uno aquí', - 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', - 'new-request-form.attachments.remove-file': 'Eliminar archivo', - 'new-request-form.attachments.stop-upload': 'Detener carga', - 'new-request-form.attachments.upload-error-description': - 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', - 'new-request-form.attachments.upload-error-title': 'Error de carga', - 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', - 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', - 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', - 'new-request-form.cc-field.email-label': - '{{email}}: presione la tecla de retroceso para eliminar', - 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', - 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', - 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', - 'new-request-form.close-label': 'Cerrar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Seleccione una opción', - 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', - 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', - 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', - 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', - 'new-request-form.required-fields-info': - 'Los campos marcados con un asterisco (*) son obligatorios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artículos recomendados', - }, - }), - Y = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', - 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', - 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', - 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', - 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', - 'new-request-form.answer-bot-modal.title': - 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', - 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', - 'new-request-form.attachments.choose-file-label': - 'Elegir un archivo o arrastrar y soltar uno aquí', - 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', - 'new-request-form.attachments.remove-file': 'Eliminar archivo', - 'new-request-form.attachments.stop-upload': 'Detener carga', - 'new-request-form.attachments.upload-error-description': - 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', - 'new-request-form.attachments.upload-error-title': 'Error de carga', - 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', - 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', - 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', - 'new-request-form.cc-field.email-label': - '{{email}}: presione la tecla de retroceso para eliminar', - 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', - 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', - 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', - 'new-request-form.close-label': 'Cerrar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Seleccione una opción', - 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', - 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', - 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', - 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', - 'new-request-form.required-fields-info': - 'Los campos marcados con un asterisco (*) son obligatorios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artículos recomendados', - }, - }), - D = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - L = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', - 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', - 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', - 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', - 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', - 'new-request-form.answer-bot-modal.title': - 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', - 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', - 'new-request-form.attachments.choose-file-label': - 'Elegir un archivo o arrastrar y soltar uno aquí', - 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', - 'new-request-form.attachments.remove-file': 'Eliminar archivo', - 'new-request-form.attachments.stop-upload': 'Detener carga', - 'new-request-form.attachments.upload-error-description': - 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', - 'new-request-form.attachments.upload-error-title': 'Error de carga', - 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', - 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', - 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', - 'new-request-form.cc-field.email-label': - '{{email}}: presione la tecla de retroceso para eliminar', - 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', - 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', - 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', - 'new-request-form.close-label': 'Cerrar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Seleccione una opción', - 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', - 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', - 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', - 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', - 'new-request-form.required-fields-info': - 'Los campos marcados con un asterisco (*) son obligatorios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artículos recomendados', - }, - }), - A = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - U = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - O = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Jos se vastaa, voimme sulkea äskettäisen pyyntösi {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Vastaako tämä artikkeli kysymykseesi?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Ei, tarvitsen apua', - 'new-request-form.answer-bot-modal.request-closed': 'Hienoa. Pyyntösi on suljettu.', - 'new-request-form.answer-bot-modal.request-submitted': 'Pyyntösi lähettäminen onnistui', - 'new-request-form.answer-bot-modal.solve-error': 'Tapahtui virhe suljettaessa pyyntöäsi', - 'new-request-form.answer-bot-modal.solve-request': 'Kyllä, sulje pyyntöni', - 'new-request-form.answer-bot-modal.title': - 'Sillä aikaa kun odotat, vastaako mikään näistä artikkeleista kysymykseesi?', - 'new-request-form.answer-bot-modal.view-article': 'Näytä artikkeli', - 'new-request-form.attachments.choose-file-label': - 'Valitse tiedosto tai vedä ja pudota se tähän', - 'new-request-form.attachments.drop-files-label': 'Pudota tiedostot tähän', - 'new-request-form.attachments.remove-file': 'Poista tiedosto', - 'new-request-form.attachments.stop-upload': 'Lopeta lataaminen', - 'new-request-form.attachments.upload-error-description': - 'Virhe ladattaessa tiedostoa {{fileName}}. Yritä uudelleen tai lataa toinen tiedosto.', - 'new-request-form.attachments.upload-error-title': 'Latausvirhe', - 'new-request-form.attachments.uploading': 'Ladataan tiedostoa {{fileName}}', - 'new-request-form.cc-field.container-label': 'Valitut kopiosähköpostit', - 'new-request-form.cc-field.email-added': '{{email}} on lisätty', - 'new-request-form.cc-field.email-label': '{{email}} - poista painamalla askelpalautinta', - 'new-request-form.cc-field.email-removed': '{{email}} on poistettu', - 'new-request-form.cc-field.emails-added': '{{emails}} on lisätty', - 'new-request-form.cc-field.invalid-email': 'Virheellinen sähköpostiosoite', - 'new-request-form.close-label': 'Sulje', - 'new-request-form.credit-card-digits-hint': '(4 viimeistä numeroa)', - 'new-request-form.dropdown.empty-option': 'Valitse vaihtoehto', - 'new-request-form.lookup-field.loading-options': 'Ladataan kohteita...', - 'new-request-form.lookup-field.no-matches-found': 'Vastineita ei löytynyt', - 'new-request-form.lookup-field.placeholder': 'Hae {{label}}', - 'new-request-form.parent-request-link': 'Jatkoa pyynnölle {{parentId}}', - 'new-request-form.required-fields-info': 'Tähdellä (*) merkityt kentät ovat pakollisia.', - 'new-request-form.submit': 'Lähetä', - 'new-request-form.suggested-articles': 'Ehdotetut artikkelit', - }, - }), - B = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - V = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - E = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'S’il y répond, nous pouvons clore la demande {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Cet article répond-il à la question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Non, j’ai besoin d’aide', - 'new-request-form.answer-bot-modal.request-closed': 'Super. La demande a été close.', - 'new-request-form.answer-bot-modal.request-submitted': 'Votre demande a été envoyée', - 'new-request-form.answer-bot-modal.solve-error': - 'Une erreur est survenue lors de la clôture de votre demande', - 'new-request-form.answer-bot-modal.solve-request': 'Oui, fermer ma demande', - 'new-request-form.answer-bot-modal.title': - 'Pendant que vous attendez, un de ces articles répond-il à votre question?', - 'new-request-form.answer-bot-modal.view-article': 'Afficher l’article', - 'new-request-form.attachments.choose-file-label': - 'Choisissez un fichier ou faites glisser et déposez ici', - 'new-request-form.attachments.drop-files-label': 'Déposez les fichiers ici', - 'new-request-form.attachments.remove-file': 'Supprimer le fichier', - 'new-request-form.attachments.stop-upload': 'Arrêter le chargement', - 'new-request-form.attachments.upload-error-description': - 'Une erreur est survenue lors du téléversement de {{fileName}}. Réessayez ou téléversez un autre fichier.', - 'new-request-form.attachments.upload-error-title': 'Erreur de téléversement', - 'new-request-form.attachments.uploading': 'Téléversement de {{fileName}}en cours…', - 'new-request-form.cc-field.container-label': 'Adresses courriel en CC sélectionnées', - 'new-request-form.cc-field.email-added': '{{email}} a été ajoutée', - 'new-request-form.cc-field.email-label': - '{{email}} - Appuyez sur Retour arrière pour supprimer', - 'new-request-form.cc-field.email-removed': '{{email}} a été supprimée', - 'new-request-form.cc-field.emails-added': '{{emails}} ont été ajoutées', - 'new-request-form.cc-field.invalid-email': 'Adresse courriel non valide', - 'new-request-form.close-label': 'Fermer', - 'new-request-form.credit-card-digits-hint': '(4 derniers chiffres)', - 'new-request-form.dropdown.empty-option': 'Sélectionnez une option', - 'new-request-form.lookup-field.loading-options': 'Chargement des éléments en cours...', - 'new-request-form.lookup-field.no-matches-found': 'Aucun résultat', - 'new-request-form.lookup-field.placeholder': 'Rechercher {{label}}', - 'new-request-form.parent-request-link': 'Suivi de la demande {{parentId}}', - 'new-request-form.required-fields-info': - "Les champs marqués d'un astérisque (*) sont obligatoires.", - 'new-request-form.submit': 'Envoyer', - 'new-request-form.suggested-articles': 'Articles suggérés', - }, - }), - P = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'S’il y répond, nous pouvons clore votre demande récente {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Cet article répond-il à la question ?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Non, j’ai besoin d’aide', - 'new-request-form.answer-bot-modal.request-closed': 'Super. Votre demande a été fermée.', - 'new-request-form.answer-bot-modal.request-submitted': 'Votre demande a été envoyée', - 'new-request-form.answer-bot-modal.solve-error': - 'Une erreur est survenue lors de la clôture de votre demande', - 'new-request-form.answer-bot-modal.solve-request': 'Oui, fermer ma demande', - 'new-request-form.answer-bot-modal.title': - 'En attendant, l’un de ces articles répond-il à votre question ?', - 'new-request-form.answer-bot-modal.view-article': 'Afficher l’article', - 'new-request-form.attachments.choose-file-label': - 'Choisissez un fichier ou faites un glisser-déposer ici', - 'new-request-form.attachments.drop-files-label': 'Déposez les fichiers ici', - 'new-request-form.attachments.remove-file': 'Supprimer le fichier', - 'new-request-form.attachments.stop-upload': 'Arrêter le chargement', - 'new-request-form.attachments.upload-error-description': - 'Une erreur est survenue lors du chargement de {{fileName}}. Réessayez ou chargez un autre fichier.', - 'new-request-form.attachments.upload-error-title': 'Erreur de chargement', - 'new-request-form.attachments.uploading': 'Chargement du fichier {{fileName}} en cours', - 'new-request-form.cc-field.container-label': 'E-mails en CC sélectionnés', - 'new-request-form.cc-field.email-added': '{{email}} a été ajouté', - 'new-request-form.cc-field.email-label': - '{{email}} - Appuyez sur Retour arrière pour supprimer', - 'new-request-form.cc-field.email-removed': '{{email}} a été supprimé', - 'new-request-form.cc-field.emails-added': '{{emails}} ont été ajoutés', - 'new-request-form.cc-field.invalid-email': 'Adresse e-mail non valide', - 'new-request-form.close-label': 'Fermer', - 'new-request-form.credit-card-digits-hint': '(4 derniers chiffres)', - 'new-request-form.dropdown.empty-option': 'Sélectionnez une option', - 'new-request-form.lookup-field.loading-options': 'Chargement des éléments en cours...', - 'new-request-form.lookup-field.no-matches-found': 'Aucun résultat', - 'new-request-form.lookup-field.placeholder': 'Rechercher {{label}}', - 'new-request-form.parent-request-link': 'Suivi de la demande {{parentId}}', - 'new-request-form.required-fields-info': - "Les champs marqués d'un astérisque (*) sont obligatoires.", - 'new-request-form.submit': 'Envoyer', - 'new-request-form.suggested-articles': 'Articles suggérés', - }, - }), - R = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - W = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'אם כן, נוכל לסגור את בקשה {{requestId}} ששלחת לאחרונה', - 'new-request-form.answer-bot-modal.footer-title': 'האם המאמר הזה עונה על השאלה?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'לא, אני צריך עזרה', - 'new-request-form.answer-bot-modal.request-closed': 'נחמד. הבקשה נסגרה.', - 'new-request-form.answer-bot-modal.request-submitted': 'בקשתך נשלחה', - 'new-request-form.answer-bot-modal.solve-error': 'אירעה שגיאה בסגירת בקשתך', - 'new-request-form.answer-bot-modal.solve-request': 'כן, סגור את הבקשה שלי', - 'new-request-form.answer-bot-modal.title': - 'בינתיים, האם אחד מהמאמרים האלה עונה על השאלה שלך?', - 'new-request-form.answer-bot-modal.view-article': 'הצג מאמר', - 'new-request-form.attachments.choose-file-label': 'בחר קובץ או גרור ושחרר כאן', - 'new-request-form.attachments.drop-files-label': 'שחרר את הקבצים כאן', - 'new-request-form.attachments.remove-file': 'הסר קובץ', - 'new-request-form.attachments.stop-upload': 'עצור העלאה', - 'new-request-form.attachments.upload-error-description': - 'אירעה שגיאה בהעלאת הקובץ {{fileName}}. נסה שוב או העלה קובץ אחר.', - 'new-request-form.attachments.upload-error-title': 'שגיאת העלאה', - 'new-request-form.attachments.uploading': 'מעלה את {{fileName}}', - 'new-request-form.cc-field.container-label': 'הודעות דוא"ל נבחרות עם עותק', - 'new-request-form.cc-field.email-added': 'כתובת הדוא"ל {{email}} נוספה', - 'new-request-form.cc-field.email-label': '{{email}} - לחץ על Backspace כדי להסיר', - 'new-request-form.cc-field.email-removed': 'כתובת הדוא"ל {{email}} הוסרה', - 'new-request-form.cc-field.emails-added': 'כתובת הדוא"ל {{emails}} נוספו', - 'new-request-form.cc-field.invalid-email': 'כתובת דואר אלקטרוני לא חוקית', - 'new-request-form.close-label': 'סגור', - 'new-request-form.credit-card-digits-hint': '(4 הספרות האחרונות)', - 'new-request-form.dropdown.empty-option': 'בחר אפשרות', - 'new-request-form.lookup-field.loading-options': 'טוען פריטים...', - 'new-request-form.lookup-field.no-matches-found': 'לא נמצאו התאמות', - 'new-request-form.lookup-field.placeholder': 'חיפוש {{label}}', - 'new-request-form.parent-request-link': 'מעקב לבקשה {{parentId}}', - 'new-request-form.required-fields-info': 'השדות המסומנים בכוכבית (*) הם שדות חובה.', - 'new-request-form.submit': 'שלח', - 'new-request-form.suggested-articles': 'מאמרים מוצעים', - }, - }), - H = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'यदि ऐसा है, तो हम आपका हाल ही का अनुरोध बंद कर सकते है {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': - 'क्या इस आलेख में आपके प्रश्न का उत्तर मिला?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'नहीं, मुझे सहायता चाहिए', - 'new-request-form.answer-bot-modal.request-closed': 'बढ़िया! आपका अनुरोध बंद कर दिया गया है।', - 'new-request-form.answer-bot-modal.request-submitted': 'आपका अनुरोध सफलतापूर्वक भेजा गया था', - 'new-request-form.answer-bot-modal.solve-error': 'आपका अनुरोध समाप्त करने में कोई त्रुटि थी', - 'new-request-form.answer-bot-modal.solve-request': 'हाँ, कृपया मेरा अनुरोध समाप्त करें', - 'new-request-form.answer-bot-modal.title': - 'प्रतीक्षा करते समय, क्या इन आलेखों से आपके प्रश्न का उत्तर मिलता है?', - 'new-request-form.answer-bot-modal.view-article': 'आलेख देखें', - 'new-request-form.attachments.choose-file-label': 'कोई फ़ाइल चुनें या यहां खींचें और छोड़ें', - 'new-request-form.attachments.drop-files-label': 'फाइलों को यहां छोड़ें', - 'new-request-form.attachments.remove-file': 'फ़ाइल हटाएं', - 'new-request-form.attachments.stop-upload': 'अपलोड बंद करें', - 'new-request-form.attachments.upload-error-description': - '{{fileName}}अपलोड करने में कोई त्रुटि थी। पुनः प्रयास करें या कोई अन्य फ़ाइल अपलोड करें।', - 'new-request-form.attachments.upload-error-title': 'त्रुटि अपलोड करें', - 'new-request-form.attachments.uploading': '{{fileName}} अपलोड हो रहा है', - 'new-request-form.cc-field.container-label': 'चयनित CC ईमेल', - 'new-request-form.cc-field.email-added': '{{email}} जोड़ा गया है', - 'new-request-form.cc-field.email-label': '{{email}} - हटाने के लिए बैकस्पेस दबाएं', - 'new-request-form.cc-field.email-removed': '{{email}} हटा दिया गया है', - 'new-request-form.cc-field.emails-added': '{{emails}} जोड़ा गया है', - 'new-request-form.cc-field.invalid-email': 'अमान्य ईमेल पता', - 'new-request-form.close-label': 'बंद करें', - 'new-request-form.credit-card-digits-hint': '(आखिरी 4 अक्षर)', - 'new-request-form.dropdown.empty-option': 'कोई विकल्प चुनें', - 'new-request-form.lookup-field.loading-options': 'आइटम लोड हो रहे हैं...', - 'new-request-form.lookup-field.no-matches-found': 'कोई मिलान नहीं मिले', - 'new-request-form.lookup-field.placeholder': 'खोज {{label}}', - 'new-request-form.parent-request-link': '{{parentId}} का अनुरोध करने के लिए फ़ॉलो-अप', - 'new-request-form.required-fields-info': 'तारांकन चिह्न (*) से चिह्नित फ़ील्ड आवश्यक हैं।', - 'new-request-form.submit': 'भेजें', - 'new-request-form.suggested-articles': 'सुझाए गए आलेख', - }, - }), - M = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - Z = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Ha igen, lezárhatjuk a legutóbbi kérelmét ({{requestId}})', - 'new-request-form.answer-bot-modal.footer-title': 'Megválaszolta a cikk a kérdését?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nem, segítségre van szükségem', - 'new-request-form.answer-bot-modal.request-closed': 'Remek! A kérelme ezzel le lett zárva.', - 'new-request-form.answer-bot-modal.request-submitted': 'A kérelme sikeresen be lett küldve', - 'new-request-form.answer-bot-modal.solve-error': 'Hiba történt a kérelme lezárásakor', - 'new-request-form.answer-bot-modal.solve-request': 'Igen, zárják le a kérelmemet', - 'new-request-form.answer-bot-modal.title': - 'Várakozás közben megtekintheti, hogy e cikkek közül választ ad-e valamelyik a kérdésére.', - 'new-request-form.answer-bot-modal.view-article': 'Cikk megtekintése', - 'new-request-form.attachments.choose-file-label': 'Válassza ki vagy húzza ide a kívánt fájlt', - 'new-request-form.attachments.drop-files-label': 'Húzza ide a fájlokat', - 'new-request-form.attachments.remove-file': 'Fájl eltávolítása', - 'new-request-form.attachments.stop-upload': 'Feltöltés leállítása', - 'new-request-form.attachments.upload-error-description': - 'Hiba történt a(z) {{fileName}} fájl feltöltése során. Próbálja meg újra, vagy töltsön fel egy másik fájlt.', - 'new-request-form.attachments.upload-error-title': 'Feltöltési hiba', - 'new-request-form.attachments.uploading': 'A(z) {{fileName}} fájl feltöltése folyamatban van', - 'new-request-form.cc-field.container-label': 'Másolatot kapó kiválasztott e-mail-címek', - 'new-request-form.cc-field.email-added': '{{email}} hozzáadva', - 'new-request-form.cc-field.email-label': - '{{email}} – Nyomja meg a Backspace billentyűt az eltávolításhoz', - 'new-request-form.cc-field.email-removed': '{{email}} eltávolítva', - 'new-request-form.cc-field.emails-added': '{{emails}} hozzáadva', - 'new-request-form.cc-field.invalid-email': 'Érvénytelen e-mail-cím', - 'new-request-form.close-label': 'Bezárás', - 'new-request-form.credit-card-digits-hint': '(Utolsó 4 számjegy)', - 'new-request-form.dropdown.empty-option': 'Válasszon egy lehetőséget', - 'new-request-form.lookup-field.loading-options': 'Elemek betöltése…', - 'new-request-form.lookup-field.no-matches-found': 'Nincs találat', - 'new-request-form.lookup-field.placeholder': '{{label}} keresése', - 'new-request-form.parent-request-link': 'Nyomon követés a(z) {{parentId}} kérelemhez', - 'new-request-form.required-fields-info': 'A csillaggal (*) jelzett mezők kitöltése kötelező.', - 'new-request-form.submit': 'Küldés', - 'new-request-form.suggested-articles': 'Javasolt cikkek', - }, - }), - K = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - x = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Jika demikian, kami dapat menutup permintaan Anda baru-baru ini {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': - 'Apakah artikel ini menjawab pertanyaan Anda?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Tidak, saya perlu bantuan', - 'new-request-form.answer-bot-modal.request-closed': 'Bagus. Permintaan Anda telah ditutup.', - 'new-request-form.answer-bot-modal.request-submitted': 'Permintaan Anda berhasil dikirimkan', - 'new-request-form.answer-bot-modal.solve-error': - 'Ada kesalahan dalam menutup permintaan Anda', - 'new-request-form.answer-bot-modal.solve-request': 'Ya, tutup permintaan saya', - 'new-request-form.answer-bot-modal.title': - 'Sementara Anda menunggu, apakah ada di antara artikel-artikel ini yang menjawab pertanyaan Anda?', - 'new-request-form.answer-bot-modal.view-article': 'Lihat artikel', - 'new-request-form.attachments.choose-file-label': - 'Pilih file atau tarik dan letakkan di sini', - 'new-request-form.attachments.drop-files-label': 'Letakkan file di sini', - 'new-request-form.attachments.remove-file': 'Hapus file', - 'new-request-form.attachments.stop-upload': 'Berhenti mengunggah', - 'new-request-form.attachments.upload-error-description': - 'Terjadi kesalahan saat mengunggah {{fileName}}. Cobalah lagi atau unggah file lain.', - 'new-request-form.attachments.upload-error-title': 'Kesalahan Mengunggah', - 'new-request-form.attachments.uploading': 'Mengunggah {{fileName}}', - 'new-request-form.cc-field.container-label': 'Email CC yang dipilih', - 'new-request-form.cc-field.email-added': '{{email}} telah ditambahkan', - 'new-request-form.cc-field.email-label': '{{email}} - Tekan Backspace untuk menghapus', - 'new-request-form.cc-field.email-removed': '{{email}} telah dihapus', - 'new-request-form.cc-field.emails-added': '{{emails}} telah ditambahkan', - 'new-request-form.cc-field.invalid-email': 'Alamat email tidak valid', - 'new-request-form.close-label': 'Tutup', - 'new-request-form.credit-card-digits-hint': '(4 digit terakhir)', - 'new-request-form.dropdown.empty-option': 'Pilih opsi', - 'new-request-form.lookup-field.loading-options': 'Memuat item...', - 'new-request-form.lookup-field.no-matches-found': 'Tidak ada kecocokan yang ditemukan', - 'new-request-form.lookup-field.placeholder': 'Cari {{label}}', - 'new-request-form.parent-request-link': 'Tindak lanjut atas permintaan {{parentId}}', - 'new-request-form.required-fields-info': - 'Bidang yang ditandai dengan tanda bintang (*) wajib diisi.', - 'new-request-form.submit': 'Kirim', - 'new-request-form.suggested-articles': 'Artikel yang disarankan', - }, - }), - J = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - G = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'In caso affermativo, possiamo chiudere la recente richiesta {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Questo articolo risponde alla domanda?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, ho bisogno di aiuto', - 'new-request-form.answer-bot-modal.request-closed': 'Ottimo! La richiesta è stata chiusa.', - 'new-request-form.answer-bot-modal.request-submitted': - 'La richiesta è stata inviata correttamente', - 'new-request-form.answer-bot-modal.solve-error': 'Errore durante la chiusura della richiesta', - 'new-request-form.answer-bot-modal.solve-request': 'Sì, chiudi la richiesta', - 'new-request-form.answer-bot-modal.title': - 'Nell’attesa, le informazioni in uno o più di questi articoli potrebbero rispondere alla domanda.', - 'new-request-form.answer-bot-modal.view-article': 'Visualizza articolo', - 'new-request-form.attachments.choose-file-label': 'Scegli un file o trascinalo qui', - 'new-request-form.attachments.drop-files-label': 'Trascina qui i file', - 'new-request-form.attachments.remove-file': 'Rimuovi file', - 'new-request-form.attachments.stop-upload': 'Interrompi caricamento', - 'new-request-form.attachments.upload-error-description': - 'Errore durante il caricamento di {{fileName}}. Riprova o carica un altro file.', - 'new-request-form.attachments.upload-error-title': 'Errore nel caricamento', - 'new-request-form.attachments.uploading': 'Caricamento di {{fileName}}', - 'new-request-form.cc-field.container-label': 'Indirizzi email CC selezionati', - 'new-request-form.cc-field.email-added': '{{email}} è stato aggiunto', - 'new-request-form.cc-field.email-label': '{{email}} - Premi Backspace per rimuovere', - 'new-request-form.cc-field.email-removed': '{{email}} è stato rimosso', - 'new-request-form.cc-field.emails-added': '{{emails}} sono stati aggiunti', - 'new-request-form.cc-field.invalid-email': 'Indirizzo email non valido', - 'new-request-form.close-label': 'Chiudi', - 'new-request-form.credit-card-digits-hint': '(Ultime 4 cifre)', - 'new-request-form.dropdown.empty-option': 'Seleziona un’opzione', - 'new-request-form.lookup-field.loading-options': 'Caricamento elementi in corso...', - 'new-request-form.lookup-field.no-matches-found': 'Nessuna corrispondenza trovata', - 'new-request-form.lookup-field.placeholder': 'Cerca {{label}}', - 'new-request-form.parent-request-link': 'Follow-up alla richiesta {{parentId}}', - 'new-request-form.required-fields-info': - 'I campi contrassegnati da un asterisco (*) sono obbligatori.', - 'new-request-form.submit': 'Invia', - 'new-request-form.suggested-articles': 'Articoli suggeriti', - }, - }), - Q = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'In caso affermativo, possiamo chiudere la recente richiesta {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Questo articolo risponde alla domanda?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, ho bisogno di aiuto', - 'new-request-form.answer-bot-modal.request-closed': 'Ottimo! La richiesta è stata chiusa.', - 'new-request-form.answer-bot-modal.request-submitted': - 'La richiesta è stata inviata correttamente', - 'new-request-form.answer-bot-modal.solve-error': 'Errore durante la chiusura della richiesta', - 'new-request-form.answer-bot-modal.solve-request': 'Sì, chiudi la richiesta', - 'new-request-form.answer-bot-modal.title': - 'Nell’attesa, le informazioni in uno o più di questi articoli potrebbero rispondere alla domanda.', - 'new-request-form.answer-bot-modal.view-article': 'Visualizza articolo', - 'new-request-form.attachments.choose-file-label': 'Scegli un file o trascinalo qui', - 'new-request-form.attachments.drop-files-label': 'Trascina qui i file', - 'new-request-form.attachments.remove-file': 'Rimuovi file', - 'new-request-form.attachments.stop-upload': 'Interrompi caricamento', - 'new-request-form.attachments.upload-error-description': - 'Errore durante il caricamento di {{fileName}}. Riprova o carica un altro file.', - 'new-request-form.attachments.upload-error-title': 'Errore nel caricamento', - 'new-request-form.attachments.uploading': 'Caricamento di {{fileName}}', - 'new-request-form.cc-field.container-label': 'Indirizzi email CC selezionati', - 'new-request-form.cc-field.email-added': '{{email}} è stato aggiunto', - 'new-request-form.cc-field.email-label': '{{email}} - Premi Backspace per rimuovere', - 'new-request-form.cc-field.email-removed': '{{email}} è stato rimosso', - 'new-request-form.cc-field.emails-added': '{{emails}} sono stati aggiunti', - 'new-request-form.cc-field.invalid-email': 'Indirizzo email non valido', - 'new-request-form.close-label': 'Chiudi', - 'new-request-form.credit-card-digits-hint': '(Ultime 4 cifre)', - 'new-request-form.dropdown.empty-option': 'Seleziona un’opzione', - 'new-request-form.lookup-field.loading-options': 'Caricamento elementi in corso...', - 'new-request-form.lookup-field.no-matches-found': 'Nessuna corrispondenza trovata', - 'new-request-form.lookup-field.placeholder': 'Cerca {{label}}', - 'new-request-form.parent-request-link': 'Follow-up alla richiesta {{parentId}}', - 'new-request-form.required-fields-info': - 'I campi contrassegnati da un asterisco (*) sono obbligatori.', - 'new-request-form.submit': 'Invia', - 'new-request-form.suggested-articles': 'Articoli suggeriti', - }, - }), - X = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '質問が解決していれば、最新のリクエスト{{requestId}}を終了します', - 'new-request-form.answer-bot-modal.footer-title': 'この記事で疑問が解消されましたか?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'いいえ、ヘルプが必要です', - 'new-request-form.answer-bot-modal.request-closed': - 'お役に立てて嬉しいです。リクエストは終了しました。', - 'new-request-form.answer-bot-modal.request-submitted': 'リクエストは正しく送信されました', - 'new-request-form.answer-bot-modal.solve-error': - 'リクエストを終了する際にエラーが発生しました', - 'new-request-form.answer-bot-modal.solve-request': 'はい、リクエストを終了', - 'new-request-form.answer-bot-modal.title': 'これらの記事のいずれかで疑問が解消されますか?', - 'new-request-form.answer-bot-modal.view-article': '記事を表示', - 'new-request-form.attachments.choose-file-label': - 'ファイルを選択するか、ここにドラッグアンドドロップします', - 'new-request-form.attachments.drop-files-label': 'ファイルをここにドロップ', - 'new-request-form.attachments.remove-file': 'ファイル削除', - 'new-request-form.attachments.stop-upload': 'アップロードを停止', - 'new-request-form.attachments.upload-error-description': - '{{fileName}}のアップロード中にエラーが発生しました。もう一度やり直すか、別のファイルをアップロードしてください。', - 'new-request-form.attachments.upload-error-title': 'アップロードエラー', - 'new-request-form.attachments.uploading': '{{fileName}}をアップロード中', - 'new-request-form.cc-field.container-label': '選択したCCメールアドレス', - 'new-request-form.cc-field.email-added': '{{email}}を追加しました', - 'new-request-form.cc-field.email-label': '{{email}} - 削除するにはBackspaceキーを押します', - 'new-request-form.cc-field.email-removed': '{{email}}を削除しました', - 'new-request-form.cc-field.emails-added': '{{emails}}を追加しました', - 'new-request-form.cc-field.invalid-email': 'メールアドレスが正しくありません', - 'new-request-form.close-label': '閉じる', - 'new-request-form.credit-card-digits-hint': '(下4桁)', - 'new-request-form.dropdown.empty-option': 'オプションを選択します', - 'new-request-form.lookup-field.loading-options': 'アイテムを読み込み中...', - 'new-request-form.lookup-field.no-matches-found': '一致するものが見つかりません', - 'new-request-form.lookup-field.placeholder': '{{label}}を検索', - 'new-request-form.parent-request-link': 'リクエスト{{parentId}}の補足', - 'new-request-form.required-fields-info': - 'アスタリスク(*)が付いているフィールドは必須です。', - 'new-request-form.submit': '送信', - 'new-request-form.suggested-articles': 'おすすめの記事', - }, - }), - $ = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ee = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - re = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - te = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '그렇다면 최근 요청 {{requestId}}을(를) 종료할 수 있습니다.', - 'new-request-form.answer-bot-modal.footer-title': '이 문서가 질문에 대한 답이 되었나요?', - 'new-request-form.answer-bot-modal.mark-irrelevant': '아니요, 도움이 필요합니다.', - 'new-request-form.answer-bot-modal.request-closed': - '도움이 되었다니 기쁩니다. 요청이 종료되었습니다.', - 'new-request-form.answer-bot-modal.request-submitted': '요청을 제출했습니다.', - 'new-request-form.answer-bot-modal.solve-error': '요청을 종료하는 중 오류가 발생했습니다.', - 'new-request-form.answer-bot-modal.solve-request': '예, 요청을 종료합니다', - 'new-request-form.answer-bot-modal.title': - '기다리는 동안 다음 문서 중에서 질문에 대한 답변을 찾으셨나요?', - 'new-request-form.answer-bot-modal.view-article': '문서 보기', - 'new-request-form.attachments.choose-file-label': - '파일을 선택하거나 여기에 드래그 앤 드롭하세요.', - 'new-request-form.attachments.drop-files-label': '파일을 여기에 드롭하세요', - 'new-request-form.attachments.remove-file': '파일 제거', - 'new-request-form.attachments.stop-upload': '업로드 중지', - 'new-request-form.attachments.upload-error-description': - '{{fileName}}을(를) 업로드하는 중 오류가 발생했습니다. 다시 시도하거나 다른 파일을 업로드하세요.', - 'new-request-form.attachments.upload-error-title': '업로드 오류', - 'new-request-form.attachments.uploading': '{{fileName}} 업로드 중', - 'new-request-form.cc-field.container-label': '선택한 참조 이메일', - 'new-request-form.cc-field.email-added': '{{email}}이(가) 추가되었습니다.', - 'new-request-form.cc-field.email-label': '{{email}} - 제거하려면 백스페이스 키를 누르세요.', - 'new-request-form.cc-field.email-removed': '{{email}}이(가) 제거되었습니다.', - 'new-request-form.cc-field.emails-added': '{{emails}}이(가) 추가되었습니다.', - 'new-request-form.cc-field.invalid-email': '올바르지 않은 이메일 주소', - 'new-request-form.close-label': '닫기', - 'new-request-form.credit-card-digits-hint': '(마지막 4자리)', - 'new-request-form.dropdown.empty-option': '옵션을 선택하세요.', - 'new-request-form.lookup-field.loading-options': '항목 로드 중...', - 'new-request-form.lookup-field.no-matches-found': '일치 항목을 찾지 못함', - 'new-request-form.lookup-field.placeholder': '{{label}} 검색', - 'new-request-form.parent-request-link': '요청 {{parentId}}에 대한 후속 작업', - 'new-request-form.required-fields-info': '별표(*)가 표시된 필드는 필수입니다.', - 'new-request-form.submit': '제출', - 'new-request-form.suggested-articles': '추천 문서', - }, - }), - oe = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ae = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - se = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - le = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ne = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ie = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - me = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - de = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ue = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Als dat het geval is, kunnen wij uw recente aanvraag {{requestId}} sluiten', - 'new-request-form.answer-bot-modal.footer-title': 'Beantwoordt dit artikel uw vraag?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nee, ik heb hulp nodig', - 'new-request-form.answer-bot-modal.request-closed': 'Fijn. Uw aanvraag is gesloten.', - 'new-request-form.answer-bot-modal.request-submitted': 'Uw aanvraag is verzonden', - 'new-request-form.answer-bot-modal.solve-error': 'Fout tijdens het sluiten van uw aanvraag', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, mijn aanvraag sluiten', - 'new-request-form.answer-bot-modal.title': - 'Terwijl u wacht: beantwoordt een van deze artikelen uw vraag?', - 'new-request-form.answer-bot-modal.view-article': 'Artikel weergeven', - 'new-request-form.attachments.choose-file-label': 'Kies een bestand of versleep het hierheen', - 'new-request-form.attachments.drop-files-label': 'Zet bestanden hier neer', - 'new-request-form.attachments.remove-file': 'Bestand verwijderen', - 'new-request-form.attachments.stop-upload': 'Upload stoppen', - 'new-request-form.attachments.upload-error-description': - 'Fout tijdens uploaden van {{fileName}}. Probeer het opnieuw of upload een ander bestand.', - 'new-request-form.attachments.upload-error-title': 'Fout bij uploaden', - 'new-request-form.attachments.uploading': '{{fileName}} wordt geüpload', - 'new-request-form.cc-field.container-label': 'Geselecteerde e-mails in cc', - 'new-request-form.cc-field.email-added': '{{email}} is toegevoegd', - 'new-request-form.cc-field.email-label': '{{email}} - Druk op Backspace om te verwijderen', - 'new-request-form.cc-field.email-removed': '{{email}} is verwijderd', - 'new-request-form.cc-field.emails-added': '{{emails}} zijn toegevoegd', - 'new-request-form.cc-field.invalid-email': 'Ongeldig e-mailadres', - 'new-request-form.close-label': 'Sluiten', - 'new-request-form.credit-card-digits-hint': '(Laatste 4 cijfers)', - 'new-request-form.dropdown.empty-option': 'Selecteer een optie', - 'new-request-form.lookup-field.loading-options': 'Items laden...', - 'new-request-form.lookup-field.no-matches-found': 'Geen overeenkomsten gevonden', - 'new-request-form.lookup-field.placeholder': 'Zoeken in {{label}}', - 'new-request-form.parent-request-link': 'Follow-up van aanvraag {{parentId}}', - 'new-request-form.required-fields-info': 'Velden met een sterretje (*) zijn vereist.', - 'new-request-form.submit': 'Verzenden', - 'new-request-form.suggested-articles': 'Voorgestelde artikelen', - }, - }), - fe = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Als dat het geval is, kunnen wij uw recente aanvraag {{requestId}} sluiten', - 'new-request-form.answer-bot-modal.footer-title': 'Beantwoordt dit artikel uw vraag?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nee, ik heb hulp nodig', - 'new-request-form.answer-bot-modal.request-closed': 'Fijn. Uw aanvraag is gesloten.', - 'new-request-form.answer-bot-modal.request-submitted': 'Uw aanvraag is verzonden', - 'new-request-form.answer-bot-modal.solve-error': 'Fout tijdens het sluiten van uw aanvraag', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, mijn aanvraag sluiten', - 'new-request-form.answer-bot-modal.title': - 'Terwijl u wacht: beantwoordt een van deze artikelen uw vraag?', - 'new-request-form.answer-bot-modal.view-article': 'Artikel weergeven', - 'new-request-form.attachments.choose-file-label': 'Kies een bestand of versleep het hierheen', - 'new-request-form.attachments.drop-files-label': 'Zet bestanden hier neer', - 'new-request-form.attachments.remove-file': 'Bestand verwijderen', - 'new-request-form.attachments.stop-upload': 'Upload stoppen', - 'new-request-form.attachments.upload-error-description': - 'Fout tijdens uploaden van {{fileName}}. Probeer het opnieuw of upload een ander bestand.', - 'new-request-form.attachments.upload-error-title': 'Fout bij uploaden', - 'new-request-form.attachments.uploading': '{{fileName}} wordt geüpload', - 'new-request-form.cc-field.container-label': 'Geselecteerde e-mails in cc', - 'new-request-form.cc-field.email-added': '{{email}} is toegevoegd', - 'new-request-form.cc-field.email-label': '{{email}} - Druk op Backspace om te verwijderen', - 'new-request-form.cc-field.email-removed': '{{email}} is verwijderd', - 'new-request-form.cc-field.emails-added': '{{emails}} zijn toegevoegd', - 'new-request-form.cc-field.invalid-email': 'Ongeldig e-mailadres', - 'new-request-form.close-label': 'Sluiten', - 'new-request-form.credit-card-digits-hint': '(Laatste 4 cijfers)', - 'new-request-form.dropdown.empty-option': 'Selecteer een optie', - 'new-request-form.lookup-field.loading-options': 'Items laden...', - 'new-request-form.lookup-field.no-matches-found': 'Geen overeenkomsten gevonden', - 'new-request-form.lookup-field.placeholder': 'Zoeken in {{label}}', - 'new-request-form.parent-request-link': 'Follow-up van aanvraag {{parentId}}', - 'new-request-form.required-fields-info': 'Velden met een sterretje (*) zijn vereist.', - 'new-request-form.submit': 'Verzenden', - 'new-request-form.suggested-articles': 'Voorgestelde artikelen', - }, - }), - ce = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Hvis den gjør det, kan vi avslutte den nylige forespørselen {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': - 'Fant du svar på spørsmålet i denne artikkelen?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nei, jeg trenger hjelp', - 'new-request-form.answer-bot-modal.request-closed': 'Flott! Forespørselen er avsluttet.', - 'new-request-form.answer-bot-modal.request-submitted': 'Forespørselen ble sendt inn', - 'new-request-form.answer-bot-modal.solve-error': - 'Det oppstod en feil under lukking av forespørselen', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, avslutt forespørselen', - 'new-request-form.answer-bot-modal.title': - 'Mens du venter: Kanskje en av disse artiklene har svar på spørsmålet ditt?', - 'new-request-form.answer-bot-modal.view-article': 'Vis artikkel', - 'new-request-form.attachments.choose-file-label': 'Velg en fil eller dra og slipp her', - 'new-request-form.attachments.drop-files-label': 'Slipp filene her', - 'new-request-form.attachments.remove-file': 'Fjern fil', - 'new-request-form.attachments.stop-upload': 'Stopp opplastingen', - 'new-request-form.attachments.upload-error-description': - 'Det oppstod en feil under opplastingen {{fileName}}. Prøv på nytt eller last opp en annen fil.', - 'new-request-form.attachments.upload-error-title': 'Feil under opplasting', - 'new-request-form.attachments.uploading': 'Laster opp {{fileName}}', - 'new-request-form.cc-field.container-label': 'Valgte e-poster kopi til', - 'new-request-form.cc-field.email-added': '{{email}} har blitt lagt til', - 'new-request-form.cc-field.email-label': '{{email}} - Trykk på Tilbaketasten for å fjerne', - 'new-request-form.cc-field.email-removed': '{{email}} er fjernet', - 'new-request-form.cc-field.emails-added': '{{emails}} er lagt til', - 'new-request-form.cc-field.invalid-email': 'Ugyldig e-postadresse', - 'new-request-form.close-label': 'Lukk', - 'new-request-form.credit-card-digits-hint': '(4 siste sifre)', - 'new-request-form.dropdown.empty-option': 'Velg et alternativ', - 'new-request-form.lookup-field.loading-options': 'Laster inn elementer...', - 'new-request-form.lookup-field.no-matches-found': 'Fant ingen samsvarende', - 'new-request-form.lookup-field.placeholder': 'Søk {{label}}', - 'new-request-form.parent-request-link': 'Oppfølging av forespørsel {{parentId}}', - 'new-request-form.required-fields-info': 'Felter merket med en stjerne (*) er obligatoriske.', - 'new-request-form.submit': 'Send inn', - 'new-request-form.suggested-articles': 'Foreslåtte artikler', - }, - }), - we = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Jeśli tak, możemy zamknąć zlecenie {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': - 'Czy artykuł dostarczył odpowiedzi na pytanie?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nie, potrzebuję pomocy', - 'new-request-form.answer-bot-modal.request-closed': 'Świetnie. Zlecenie zostało zamknięte.', - 'new-request-form.answer-bot-modal.request-submitted': 'Zlecenie zostało wysłane', - 'new-request-form.answer-bot-modal.solve-error': 'Podczas zamykania zlecenia wystąpił błąd', - 'new-request-form.answer-bot-modal.solve-request': 'Tak, zamknij zlecenie', - 'new-request-form.answer-bot-modal.title': - 'W czasie gdy oczekujesz na odpowiedź, może zechcesz nam powiedzieć, czy którykolwiek z tych artykułów zawiera odpowiedź na pytanie?', - 'new-request-form.answer-bot-modal.view-article': 'Wyświetl artykuł', - 'new-request-form.attachments.choose-file-label': - 'Wybierz plik lub przeciągnij i upuść go tutaj', - 'new-request-form.attachments.drop-files-label': 'Upuść pliki tutaj', - 'new-request-form.attachments.remove-file': 'Usuń plik', - 'new-request-form.attachments.stop-upload': 'Zatrzymaj przesyłanie', - 'new-request-form.attachments.upload-error-description': - 'Podczas przesyłania wystąpił błąd {{fileName}}. Spróbuj ponownie lub prześlij inny plik.', - 'new-request-form.attachments.upload-error-title': 'Błąd przesyłania', - 'new-request-form.attachments.uploading': 'Przesyłanie {{fileName}}', - 'new-request-form.cc-field.container-label': 'Wybrane e-maile z pola DW', - 'new-request-form.cc-field.email-added': 'Dodano {{email}}', - 'new-request-form.cc-field.email-label': '{{email}} – naciśnij Backspace, aby usunąć', - 'new-request-form.cc-field.email-removed': 'Usunięto {{email}}', - 'new-request-form.cc-field.emails-added': 'Dodano {{emails}}', - 'new-request-form.cc-field.invalid-email': 'Nieprawidłowy adres e-mail', - 'new-request-form.close-label': 'Zamknij', - 'new-request-form.credit-card-digits-hint': '(ostatnie 4 cyfry)', - 'new-request-form.dropdown.empty-option': 'Wybierz opcję', - 'new-request-form.lookup-field.loading-options': 'Ładowanie elementów...', - 'new-request-form.lookup-field.no-matches-found': 'Nie znaleziono dopasowań', - 'new-request-form.lookup-field.placeholder': 'Szukaj {{label}}', - 'new-request-form.parent-request-link': 'Kontynuacja zlecenia {{parentId}}', - 'new-request-form.required-fields-info': 'Pola oznaczone gwiazdką (*) są wymagane.', - 'new-request-form.submit': 'Wyślij', - 'new-request-form.suggested-articles': 'Propozycje artykułów', - }, - }), - qe = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Se sim, podemos fechar a solicitação recente {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Esse artigo responde à pergunta?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Não, preciso de ajuda', - 'new-request-form.answer-bot-modal.request-closed': 'Legal! A solicitação foi fechada.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Sua solicitação foi enviada com êxito', - 'new-request-form.answer-bot-modal.solve-error': 'Erro ao fechar a solicitação', - 'new-request-form.answer-bot-modal.solve-request': 'Sim, feche a solicitação', - 'new-request-form.answer-bot-modal.title': - 'Enquanto você aguarda, algum desses artigos responde à pergunta?', - 'new-request-form.answer-bot-modal.view-article': 'Exibir artigo', - 'new-request-form.attachments.choose-file-label': - 'Escolha um arquivo ou arraste e solte aqui', - 'new-request-form.attachments.drop-files-label': 'Solte os arquivos aqui', - 'new-request-form.attachments.remove-file': 'Remover arquivo', - 'new-request-form.attachments.stop-upload': 'Interromper carregamento', - 'new-request-form.attachments.upload-error-description': - 'Erro ao carregar {{fileName}}. Tente novamente ou carregue outro arquivo.', - 'new-request-form.attachments.upload-error-title': 'Erro de carregamento', - 'new-request-form.attachments.uploading': 'Carregando {{fileName}}', - 'new-request-form.cc-field.container-label': 'E-mails de cópia selecionados', - 'new-request-form.cc-field.email-added': '{{email}} foi adicionado', - 'new-request-form.cc-field.email-label': '{{email}} – Pressione Backspace para remover', - 'new-request-form.cc-field.email-removed': '{{email}} foi removido', - 'new-request-form.cc-field.emails-added': '{{emails}} foram adicionados', - 'new-request-form.cc-field.invalid-email': 'Endereço de e-mail inválido', - 'new-request-form.close-label': 'Fechar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Selecionar uma opção', - 'new-request-form.lookup-field.loading-options': 'Carregando itens...', - 'new-request-form.lookup-field.no-matches-found': 'Nenhuma correspondência encontrada', - 'new-request-form.lookup-field.placeholder': 'Pesquisar {{label}}', - 'new-request-form.parent-request-link': 'Acompanhamento da solicitação {{parentId}}', - 'new-request-form.required-fields-info': - 'Os campos marcados com um asterisco (*) são obrigatórios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artigos sugeridos', - }, - }), - pe = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Se sim, podemos fechar a solicitação recente {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Esse artigo responde à pergunta?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Não, preciso de ajuda', - 'new-request-form.answer-bot-modal.request-closed': 'Legal! A solicitação foi fechada.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Sua solicitação foi enviada com êxito', - 'new-request-form.answer-bot-modal.solve-error': 'Erro ao fechar a solicitação', - 'new-request-form.answer-bot-modal.solve-request': 'Sim, feche a solicitação', - 'new-request-form.answer-bot-modal.title': - 'Enquanto você aguarda, algum desses artigos responde à pergunta?', - 'new-request-form.answer-bot-modal.view-article': 'Exibir artigo', - 'new-request-form.attachments.choose-file-label': - 'Escolha um arquivo ou arraste e solte aqui', - 'new-request-form.attachments.drop-files-label': 'Solte os arquivos aqui', - 'new-request-form.attachments.remove-file': 'Remover arquivo', - 'new-request-form.attachments.stop-upload': 'Interromper carregamento', - 'new-request-form.attachments.upload-error-description': - 'Erro ao carregar {{fileName}}. Tente novamente ou carregue outro arquivo.', - 'new-request-form.attachments.upload-error-title': 'Erro de carregamento', - 'new-request-form.attachments.uploading': 'Carregando {{fileName}}', - 'new-request-form.cc-field.container-label': 'E-mails de cópia selecionados', - 'new-request-form.cc-field.email-added': '{{email}} foi adicionado', - 'new-request-form.cc-field.email-label': '{{email}} – Pressione Backspace para remover', - 'new-request-form.cc-field.email-removed': '{{email}} foi removido', - 'new-request-form.cc-field.emails-added': '{{emails}} foram adicionados', - 'new-request-form.cc-field.invalid-email': 'Endereço de e-mail inválido', - 'new-request-form.close-label': 'Fechar', - 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', - 'new-request-form.dropdown.empty-option': 'Selecionar uma opção', - 'new-request-form.lookup-field.loading-options': 'Carregando itens...', - 'new-request-form.lookup-field.no-matches-found': 'Nenhuma correspondência encontrada', - 'new-request-form.lookup-field.placeholder': 'Pesquisar {{label}}', - 'new-request-form.parent-request-link': 'Acompanhamento da solicitação {{parentId}}', - 'new-request-form.required-fields-info': - 'Os campos marcados com um asterisco (*) são obrigatórios.', - 'new-request-form.submit': 'Enviar', - 'new-request-form.suggested-articles': 'Artigos sugeridos', - }, - }), - he = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Dacă reușește, putem închide solicitarea recentă {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Acest articol răspunde la întrebare?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nu, am nevoie de ajutor', - 'new-request-form.answer-bot-modal.request-closed': 'Grozav. Solicitarea a fost închisă.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Solicitarea a fost transmisă cu succes', - 'new-request-form.answer-bot-modal.solve-error': - 'A apărut o eroare la închiderea solicitării', - 'new-request-form.answer-bot-modal.solve-request': 'Da, închideți solicitarea', - 'new-request-form.answer-bot-modal.title': - 'Cât așteptați, vreunul dintre aceste articole răspunde la întrebarea dumneavoastră?', - 'new-request-form.answer-bot-modal.view-article': 'Vizualizare articol', - 'new-request-form.attachments.choose-file-label': - 'Alegeți un fișier sau glisați și fixați aici', - 'new-request-form.attachments.drop-files-label': 'Glisați fișierele aici', - 'new-request-form.attachments.remove-file': 'Eliminare fișier', - 'new-request-form.attachments.stop-upload': 'Oprire încărcare', - 'new-request-form.attachments.upload-error-description': - 'A apărut o eroare la încărcarea {{fileName}}. Încercați din nou sau încărcați un alt fișier.', - 'new-request-form.attachments.upload-error-title': 'Eroare de încărcare', - 'new-request-form.attachments.uploading': 'Se încarcă {{fileName}}', - 'new-request-form.cc-field.container-label': 'E-mailuri CC selectate', - 'new-request-form.cc-field.email-added': '{{email}} a fost adăugată', - 'new-request-form.cc-field.email-label': '{{email}} - Apăsați Backspace pentru a elimina', - 'new-request-form.cc-field.email-removed': '{{email}} a fost eliminată', - 'new-request-form.cc-field.emails-added': '{{emails}} au fost adăugate', - 'new-request-form.cc-field.invalid-email': 'Adresă de e-mail nevalidă', - 'new-request-form.close-label': 'Închidere', - 'new-request-form.credit-card-digits-hint': '(Ultimele 4 cifre)', - 'new-request-form.dropdown.empty-option': 'Selectați o opțiune', - 'new-request-form.lookup-field.loading-options': 'Se încarcă articolele...', - 'new-request-form.lookup-field.no-matches-found': 'Nu s-au găsit corespondențe', - 'new-request-form.lookup-field.placeholder': 'Căutare {{label}}', - 'new-request-form.parent-request-link': - 'Continuarea comunicării pentru solicitarea {{parentId}}', - 'new-request-form.required-fields-info': - 'Câmpurile marcate cu un asterisc (*) sunt obligatorii.', - 'new-request-form.submit': 'Trimitere', - 'new-request-form.suggested-articles': 'Articole sugerate', - }, - }), - be = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Если да, мы можем закрыть запрос {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Есть ли в этой статье ответ на вопрос?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Нет, мне нужна помощь', - 'new-request-form.answer-bot-modal.request-closed': 'Превосходно. Запрос закрыт.', - 'new-request-form.answer-bot-modal.request-submitted': 'Ваш запрос отправлен', - 'new-request-form.answer-bot-modal.solve-error': 'Ошибка при закрытии запроса', - 'new-request-form.answer-bot-modal.solve-request': 'Да, закрыть мой запрос', - 'new-request-form.answer-bot-modal.title': - 'Пока вы ожидаете, есть ли в какой-то из этих статей ответ на ваш вопрос?', - 'new-request-form.answer-bot-modal.view-article': 'Просмотреть статью', - 'new-request-form.attachments.choose-file-label': 'Выберите файл или перетащите его сюда', - 'new-request-form.attachments.drop-files-label': 'Перетащите файлы сюда', - 'new-request-form.attachments.remove-file': 'Удалить файл', - 'new-request-form.attachments.stop-upload': 'Остановить выкладывание', - 'new-request-form.attachments.upload-error-description': - 'Ошибка при выкладывании {{fileName}}. Повторите попытку или выложите другой файл.', - 'new-request-form.attachments.upload-error-title': 'Ошибка выкладывания', - 'new-request-form.attachments.uploading': 'Выкладывание {{fileName}}', - 'new-request-form.cc-field.container-label': 'Выбранные письма для копии', - 'new-request-form.cc-field.email-added': 'Адрес {{email}} добавлен', - 'new-request-form.cc-field.email-label': '{{email}} — нажмите клавишу Backspace для удаления', - 'new-request-form.cc-field.email-removed': 'Адрес {{email}} удален', - 'new-request-form.cc-field.emails-added': 'Добавлены адреса {{emails}}', - 'new-request-form.cc-field.invalid-email': 'Недействительный адрес электронной почты', - 'new-request-form.close-label': 'Закрыть', - 'new-request-form.credit-card-digits-hint': '(последние 4 цифры)', - 'new-request-form.dropdown.empty-option': 'Выберите вариант', - 'new-request-form.lookup-field.loading-options': 'Загрузка элементов...', - 'new-request-form.lookup-field.no-matches-found': 'Соответствия не найдены', - 'new-request-form.lookup-field.placeholder': 'Поиск: {{label}}', - 'new-request-form.parent-request-link': 'Дополнение к запросу {{parentId}}', - 'new-request-form.required-fields-info': - 'Помеченные звездочкой (*) поля обязательны для заполнения.', - 'new-request-form.submit': 'Отправить', - 'new-request-form.suggested-articles': 'Предложенные статьи', - }, - }), - ge = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ve = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ke = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - ye = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - Se = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - Ne = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Om den gör det kan vi stänga din förfrågan {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Besvarar denna artikel din fråga?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nej, jag behöver hjälp', - 'new-request-form.answer-bot-modal.request-closed': 'Utmärkt. Din förfrågan har stängts.', - 'new-request-form.answer-bot-modal.request-submitted': 'Din förfrågan har skickats in', - 'new-request-form.answer-bot-modal.solve-error': - 'Ett fel inträffade när din förfrågan stängdes', - 'new-request-form.answer-bot-modal.solve-request': 'Ja, stäng min förfrågan', - 'new-request-form.answer-bot-modal.title': - 'Medan du väntar, besvarar någon av dessa artiklar din fråga?', - 'new-request-form.answer-bot-modal.view-article': 'Visa artikel', - 'new-request-form.attachments.choose-file-label': 'Välj en fil eller dra och släpp den här', - 'new-request-form.attachments.drop-files-label': 'Släpp filer här', - 'new-request-form.attachments.remove-file': 'Ta bort fil', - 'new-request-form.attachments.stop-upload': 'Stoppa uppladdning', - 'new-request-form.attachments.upload-error-description': - 'Ett fel inträffade vid uppladdning av {{fileName}}. Försök igen eller ladda upp en annan fil.', - 'new-request-form.attachments.upload-error-title': 'Uppladdningsfel', - 'new-request-form.attachments.uploading': 'Laddar upp {{fileName}}', - 'new-request-form.cc-field.container-label': 'Valda kopierade e-postmeddelanden', - 'new-request-form.cc-field.email-added': '{{email}} har lagts till', - 'new-request-form.cc-field.email-label': - '{{email}} – Tryck på backstegtangenten för att ta bort', - 'new-request-form.cc-field.email-removed': '{{email}} har tagits bort', - 'new-request-form.cc-field.emails-added': '{{emails}} har lagts till', - 'new-request-form.cc-field.invalid-email': 'Ogiltig e-postadress', - 'new-request-form.close-label': 'Stäng', - 'new-request-form.credit-card-digits-hint': '(4 sista siffror)', - 'new-request-form.dropdown.empty-option': 'Välj ett alternativ', - 'new-request-form.lookup-field.loading-options': 'Läser in objekt...', - 'new-request-form.lookup-field.no-matches-found': 'Inga träffar hittades', - 'new-request-form.lookup-field.placeholder': 'Sök {{label}}', - 'new-request-form.parent-request-link': 'Uppföljning av förfrågan {{parentId}}', - 'new-request-form.required-fields-info': - 'Fält markerade med en asterisk (*) är obligatoriska.', - 'new-request-form.submit': 'Skicka in', - 'new-request-form.suggested-articles': 'Föreslagna artiklar', - }, - }), - _e = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'หากใช่ เราจะสามารถปิดคำร้องขอ {{requestId}} ของคุณได้', - 'new-request-form.answer-bot-modal.footer-title': 'บทความนี้ได้ตอบข้อสงสัยของคุณหรือไม่', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'ไม่ ฉันต้องการความช่วยเหลือ', - 'new-request-form.answer-bot-modal.request-closed': 'ยอดเลย คำร้องขอของคุณปิดลงแล้ว', - 'new-request-form.answer-bot-modal.request-submitted': 'ส่งคำร้องขอของคุณเรียบร้อยแล้ว', - 'new-request-form.answer-bot-modal.solve-error': 'เกิดข้อผิดพลาดในการปิดคําร้องขอของคุณ', - 'new-request-form.answer-bot-modal.solve-request': 'ใช่ ปิดคำร้องขอของฉัน', - 'new-request-form.answer-bot-modal.title': - 'ขณะที่กำลังรอ บทความเหล่านี้ตอบข้อสงสัยของคุณหรือไม่', - 'new-request-form.answer-bot-modal.view-article': 'ดูบทความ', - 'new-request-form.attachments.choose-file-label': 'เลือกไฟล์หรือลากแล้ววางที่นี่', - 'new-request-form.attachments.drop-files-label': 'วางไฟล์ที่นี่', - 'new-request-form.attachments.remove-file': 'ลบไฟล์ออก', - 'new-request-form.attachments.stop-upload': 'หยุดการอัปโหลด', - 'new-request-form.attachments.upload-error-description': - 'เกิดข้อผิดพลาดในการอัปโหลด {{fileName}} ลองอีกครั้งหรืออัปโหลดไฟล์อื่น', - 'new-request-form.attachments.upload-error-title': 'เกิดข้อผิดพลาดในการอัปโหลด', - 'new-request-form.attachments.uploading': 'กำลังอัปโหลด {{fileName}}', - 'new-request-form.cc-field.container-label': 'อีเมล สำเนาถึง ที่เลือก', - 'new-request-form.cc-field.email-added': '{{email}} ถูกเพิ่มแล้ว', - 'new-request-form.cc-field.email-label': '{{email}} - กด Backspace เพื่อลบ', - 'new-request-form.cc-field.email-removed': '{{email}} ถูกลบออกแล้ว', - 'new-request-form.cc-field.emails-added': '{{emails}} ถูกเพิ่มแล้ว', - 'new-request-form.cc-field.invalid-email': 'ที่อยู่อีเมลไม่ถูกต้อง', - 'new-request-form.close-label': 'ปิด', - 'new-request-form.credit-card-digits-hint': '(เลข 4 หลักสุดท้าย)', - 'new-request-form.dropdown.empty-option': 'เลือกตัวเลือก', - 'new-request-form.lookup-field.loading-options': 'กำลังโหลดรายการ...', - 'new-request-form.lookup-field.no-matches-found': 'ไม่พบรายการที่ตรงกัน', - 'new-request-form.lookup-field.placeholder': 'ค้นหา {{label}}', - 'new-request-form.parent-request-link': 'ติดตามคําร้องขอ {{parentId}}', - 'new-request-form.required-fields-info': 'ต้องกรองช่องที่มีเครื่องหมายดอกจัน (*)', - 'new-request-form.submit': 'ส่ง', - 'new-request-form.suggested-articles': 'บทความที่แนะนำ', - }, - }), - Ie = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Yanıtlıyorsa, bu son talebinizi kapatabiliriz {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Bu makale sorunuzu yanıtlıyor mu?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Hayır, yardıma ihtiyacım var', - 'new-request-form.answer-bot-modal.request-closed': 'Güzel! Talebiniz kapatıldı.', - 'new-request-form.answer-bot-modal.request-submitted': 'Talebiniz başarıyla gönderildi', - 'new-request-form.answer-bot-modal.solve-error': 'Talebiniz kapatılırken bir hata oluştu', - 'new-request-form.answer-bot-modal.solve-request': 'Evet, talebimi kapat', - 'new-request-form.answer-bot-modal.title': - 'Siz beklerken soralım: Bu makalelerden herhangi biri sorunuza yanıtladı mı?', - 'new-request-form.answer-bot-modal.view-article': 'Makaleyi görüntüle', - 'new-request-form.attachments.choose-file-label': - 'Bir dosya seçin veya buraya sürükleyip bırakın', - 'new-request-form.attachments.drop-files-label': 'Dosyaları buraya bırakın', - 'new-request-form.attachments.remove-file': 'Dosyayı kaldır', - 'new-request-form.attachments.stop-upload': 'Karşıya yüklemeyi durdur', - 'new-request-form.attachments.upload-error-description': - '{{fileName}} karşıya yüklenirken bir hata oluştu. Yeniden deneyin veya başka bir dosya yükleyin.', - 'new-request-form.attachments.upload-error-title': 'Karşıya yükleme hatası', - 'new-request-form.attachments.uploading': '{{fileName}} karşıya yükleniyor', - 'new-request-form.cc-field.container-label': 'Seçilen bilgi e-postası', - 'new-request-form.cc-field.email-added': '{{email}} eklendi', - 'new-request-form.cc-field.email-label': '{{email}} - Kaldırmak için Geri tuşuna basın', - 'new-request-form.cc-field.email-removed': '{{email}} kaldırıldı', - 'new-request-form.cc-field.emails-added': '{{emails}} eklendi', - 'new-request-form.cc-field.invalid-email': 'Geçersiz e-posta adresi', - 'new-request-form.close-label': 'Kapat', - 'new-request-form.credit-card-digits-hint': '(Son 4 hane)', - 'new-request-form.dropdown.empty-option': 'Bir seçim yapın', - 'new-request-form.lookup-field.loading-options': 'Öğeler yükleniyor...', - 'new-request-form.lookup-field.no-matches-found': 'Eşleşme bulunamadı', - 'new-request-form.lookup-field.placeholder': 'Ara {{label}}', - 'new-request-form.parent-request-link': '{{parentId}} talep etmek için ekleyin', - 'new-request-form.required-fields-info': - 'Yıldız işareti (*) ile işaretlenen alanların doldurulması zorunludur.', - 'new-request-form.submit': 'Gönder', - 'new-request-form.suggested-articles': 'Önerilen makaleler', - }, - }), - ze = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - Ce = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - je = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'If it does, we can close your recent request {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', - 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Your request was successfully submitted', - 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', - 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', - 'new-request-form.answer-bot-modal.title': - 'While you wait, do any of these articles answer your question?', - 'new-request-form.answer-bot-modal.view-article': 'View article', - 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', - 'new-request-form.attachments.drop-files-label': 'Drop files here', - 'new-request-form.attachments.remove-file': 'Remove file', - 'new-request-form.attachments.stop-upload': 'Stop upload', - 'new-request-form.attachments.upload-error-description': - 'There was an error uploading {{fileName}}. Try again or upload another file.', - 'new-request-form.attachments.upload-error-title': 'Upload error', - 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', - 'new-request-form.cc-field.container-label': 'Selected CC emails', - 'new-request-form.cc-field.email-added': '{{email}} has been added', - 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', - 'new-request-form.cc-field.email-removed': '{{email}} has been removed', - 'new-request-form.cc-field.emails-added': '{{emails}} have been added', - 'new-request-form.cc-field.invalid-email': 'Invalid email address', - 'new-request-form.close-label': 'Close', - 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', - 'new-request-form.dropdown.empty-option': 'Select an option', - 'new-request-form.lookup-field.loading-options': 'Loading items...', - 'new-request-form.lookup-field.no-matches-found': 'No matches found', - 'new-request-form.lookup-field.placeholder': 'Search {{label}}', - 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', - 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', - 'new-request-form.submit': 'Submit', - 'new-request-form.suggested-articles': 'Suggested articles', - }, - }), - Te = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - 'Nếu có, chúng tôi có thể đóng yêu cầu hiện tại {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': - 'Bài viết này có giải đáp được câu hỏi của bạn không?', - 'new-request-form.answer-bot-modal.mark-irrelevant': 'Không, tôi cần trợ giúp', - 'new-request-form.answer-bot-modal.request-closed': 'Tuyệt. Yêu cầu đã được đóng lại.', - 'new-request-form.answer-bot-modal.request-submitted': - 'Yêu cầu của bạn đã được gửi thành công', - 'new-request-form.answer-bot-modal.solve-error': 'Đã xảy ra lỗi khi đóng yêu cầu của bạn', - 'new-request-form.answer-bot-modal.solve-request': 'Có, đóng yêu cầu của tôi', - 'new-request-form.answer-bot-modal.title': - 'Trong thời gian chờ đợi, có bài viết nào trong số các bài viết này giải đáp được thắc mắc của bạn không?', - 'new-request-form.answer-bot-modal.view-article': 'Xem bài viết', - 'new-request-form.attachments.choose-file-label': 'Chọn một tập tin hoặc kéo và thả ở đây', - 'new-request-form.attachments.drop-files-label': 'Thả tập tin vào đây', - 'new-request-form.attachments.remove-file': 'Xóa tập tin', - 'new-request-form.attachments.stop-upload': 'Dừng tải lên', - 'new-request-form.attachments.upload-error-description': - 'Đã xảy ra lỗi khi tải lên {{fileName}}. Hãy thử lại hoặc tải lên một tệp khác.', - 'new-request-form.attachments.upload-error-title': 'Lỗi tải lên', - 'new-request-form.attachments.uploading': 'Đang tải lên {{fileName}}', - 'new-request-form.cc-field.container-label': 'Email CC đã chọn', - 'new-request-form.cc-field.email-added': '{{email}} đã được thêm', - 'new-request-form.cc-field.email-label': '{{email}} - Nhấn Backspace để loại bỏ', - 'new-request-form.cc-field.email-removed': '{{email}} đã bị loại bỏ', - 'new-request-form.cc-field.emails-added': '{{emails}} đã được thêm', - 'new-request-form.cc-field.invalid-email': 'Địa chỉ email không hợp lệ', - 'new-request-form.close-label': 'Đóng', - 'new-request-form.credit-card-digits-hint': '(4 chữ số cuối)', - 'new-request-form.dropdown.empty-option': 'Chọn một tùy chọn', - 'new-request-form.lookup-field.loading-options': 'Đang tải các mục...', - 'new-request-form.lookup-field.no-matches-found': 'Không tìm thấy kết quả phù hợp', - 'new-request-form.lookup-field.placeholder': 'Tìm kiếm {{label}}', - 'new-request-form.parent-request-link': 'Theo dõi để yêu cầu {{parentId}}', - 'new-request-form.required-fields-info': 'Các trường đánh dấu sao (*) là bắt buộc.', - 'new-request-form.submit': 'Gửi', - 'new-request-form.suggested-articles': 'Bài viết được đề xuất', - }, - }), - Fe = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '如果是的话,我们将关闭最近的请求 {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '此文章解答该问题了吗?', - 'new-request-form.answer-bot-modal.mark-irrelevant': '没有,我需要帮助', - 'new-request-form.answer-bot-modal.request-closed': '很好。此请求已关闭。', - 'new-request-form.answer-bot-modal.request-submitted': '您的请求已成功提交', - 'new-request-form.answer-bot-modal.solve-error': '关闭您的请求时出错', - 'new-request-form.answer-bot-modal.solve-request': '解答了,关闭我的请求', - 'new-request-form.answer-bot-modal.title': - '在等待的同时,看看这些文章中有没有可以解答该疑问的?', - 'new-request-form.answer-bot-modal.view-article': '查看文章', - 'new-request-form.attachments.choose-file-label': '选择文件或拖放到此处', - 'new-request-form.attachments.drop-files-label': '将文件放在此处', - 'new-request-form.attachments.remove-file': '移除文件', - 'new-request-form.attachments.stop-upload': '停止上传', - 'new-request-form.attachments.upload-error-description': - '上传 {{fileName}} 时出错。请重试或上传另一个文件。', - 'new-request-form.attachments.upload-error-title': '上传错误', - 'new-request-form.attachments.uploading': '上传 {{fileName}}', - 'new-request-form.cc-field.container-label': '选定的抄送电邮', - 'new-request-form.cc-field.email-added': '已添加 {{email}}', - 'new-request-form.cc-field.email-label': '{{email}} - 按 Backspace 键移除', - 'new-request-form.cc-field.email-removed': '已移除 {{email}}', - 'new-request-form.cc-field.emails-added': '已添加 {{emails}}', - 'new-request-form.cc-field.invalid-email': '无效电邮地址', - 'new-request-form.close-label': '关闭', - 'new-request-form.credit-card-digits-hint': '(最后 4 位数)', - 'new-request-form.dropdown.empty-option': '选择一个选项', - 'new-request-form.lookup-field.loading-options': '正在加载项目…', - 'new-request-form.lookup-field.no-matches-found': '未找到匹配项', - 'new-request-form.lookup-field.placeholder': '搜索 {{label}}', - 'new-request-form.parent-request-link': '跟进请求 {{parentId}}', - 'new-request-form.required-fields-info': '标有星号 (*) 的字段是必填字段。', - 'new-request-form.submit': '提交', - 'new-request-form.suggested-articles': '推荐文章', - }, - }), - Ye = Object.freeze({ - __proto__: null, - default: { - 'new-request-form.answer-bot-modal.footer-content': - '若是,我們可關閉近期的請求 {{requestId}}', - 'new-request-form.answer-bot-modal.footer-title': '此文章是否已回答該問題?', - 'new-request-form.answer-bot-modal.mark-irrelevant': '不,我仍需要幫助', - 'new-request-form.answer-bot-modal.request-closed': '太好了。此請求已關閉。', - 'new-request-form.answer-bot-modal.request-submitted': '已成功提交請求', - 'new-request-form.answer-bot-modal.solve-error': '關閉您的請求時發生錯誤', - 'new-request-form.answer-bot-modal.solve-request': '是,關閉我的請求', - 'new-request-form.answer-bot-modal.title': '在等待時,這些文章是否已回答該疑問?', - 'new-request-form.answer-bot-modal.view-article': '檢視文章', - 'new-request-form.attachments.choose-file-label': '選擇檔案,或將檔案拖放到這裡', - 'new-request-form.attachments.drop-files-label': '將檔案放置在此處', - 'new-request-form.attachments.remove-file': '移除檔案', - 'new-request-form.attachments.stop-upload': '停止上傳', - 'new-request-form.attachments.upload-error-description': - '上傳 {{fileName}} 時發生錯誤。請再試一次,或上傳另一個檔案。', - 'new-request-form.attachments.upload-error-title': '上傳錯誤', - 'new-request-form.attachments.uploading': '正在上傳 {{fileName}}', - 'new-request-form.cc-field.container-label': '已選取副本電子郵件地址', - 'new-request-form.cc-field.email-added': '已新增 {{email}}', - 'new-request-form.cc-field.email-label': '{{email}}:按 Backspace 鍵移除', - 'new-request-form.cc-field.email-removed': '已移除 {{email}}', - 'new-request-form.cc-field.emails-added': '已新增 {{emails}}', - 'new-request-form.cc-field.invalid-email': '無效電子郵件地址', - 'new-request-form.close-label': '關閉', - 'new-request-form.credit-card-digits-hint': '(最後 4 位數)', - 'new-request-form.dropdown.empty-option': '選取一個選項', - 'new-request-form.lookup-field.loading-options': '正在載入項目…', - 'new-request-form.lookup-field.no-matches-found': '找不到符合項目', - 'new-request-form.lookup-field.placeholder': '搜尋{{label}}', - 'new-request-form.parent-request-link': '請求 {{parentId}} 的後續跟進', - 'new-request-form.required-fields-info': '標有星號 (*) 的欄位為必填欄位。', - 'new-request-form.submit': '提交', - 'new-request-form.suggested-articles': '推薦文章', - }, - }); +var af = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var af$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: af, +}); + +var arXPseudo = { + 'new-request-form.answer-bot-modal.footer-content': + '[ผู้龍ḬḬϝ ḭḭṭ ḍṓṓḛḛṡ, ẁḛḛ ͼααṇ ͼḽṓṓṡḛḛ ẏẏṓṓṵṵṛ ṛḛḛͼḛḛṇṭ ṛḛḛʠṵṵḛḛṡṭ {{requestId}}龍ผู้]', + 'new-request-form.answer-bot-modal.footer-title': + '[ผู้龍Ḍṓṓḛḛṡ ṭḥḭḭṡ ααṛṭḭḭͼḽḛḛ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', + 'new-request-form.answer-bot-modal.mark-irrelevant': '[ผู้龍Ṅṓṓ, ḬḬ ṇḛḛḛḛḍ ḥḛḛḽṗ龍ผู้]', + 'new-request-form.answer-bot-modal.request-closed': + '[ผู้龍Ṅḭḭͼḛḛ. ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ḥααṡ ḅḛḛḛḛṇ ͼḽṓṓṡḛḛḍ.龍ผู้]', + 'new-request-form.answer-bot-modal.request-submitted': + '[ผู้龍ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ẁααṡ ṡṵṵͼͼḛḛṡṡϝṵṵḽḽẏẏ ṡṵṵḅṃḭḭṭṭḛḛḍ龍ผู้]', + 'new-request-form.answer-bot-modal.solve-error': + '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ͼḽṓṓṡḭḭṇḡ ẏẏṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', + 'new-request-form.answer-bot-modal.solve-request': '[ผู้龍ŶŶḛḛṡ, ͼḽṓṓṡḛḛ ṃẏẏ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', + 'new-request-form.answer-bot-modal.title': + '[ผู้龍Ŵḥḭḭḽḛḛ ẏẏṓṓṵṵ ẁααḭḭṭ, ḍṓṓ ααṇẏẏ ṓṓϝ ṭḥḛḛṡḛḛ ααṛṭḭḭͼḽḛḛṡ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', + 'new-request-form.answer-bot-modal.view-article': '[ผู้龍Ṿḭḭḛḛẁ ααṛṭḭḭͼḽḛḛ龍ผู้]', + 'new-request-form.attachments.choose-file-label': + '[ผู้龍Ḉḥṓṓṓṓṡḛḛ αα ϝḭḭḽḛḛ ṓṓṛ ḍṛααḡ ααṇḍ ḍṛṓṓṗ ḥḛḛṛḛḛ龍ผู้]', + 'new-request-form.attachments.drop-files-label': '[ผู้龍Ḍṛṓṓṗ ϝḭḭḽḛḛṡ ḥḛḛṛḛḛ龍ผู้]', + 'new-request-form.attachments.remove-file': '[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ龍ผู้]', + 'new-request-form.attachments.stop-upload': '[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍ龍ผู้]', + 'new-request-form.attachments.upload-error-description': + '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}. Ṫṛẏẏ ααḡααḭḭṇ ṓṓṛ ṵṵṗḽṓṓααḍ ααṇṓṓṭḥḛḛṛ ϝḭḭḽḛḛ.龍ผู้]', + 'new-request-form.attachments.upload-error-title': '[ผู้龍ṲṲṗḽṓṓααḍ ḛḛṛṛṓṓṛ龍ผู้]', + 'new-request-form.attachments.uploading': '[ผู้龍ṲṲṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]', + 'new-request-form.cc-field.container-label': '[ผู้龍Ṣḛḛḽḛḛͼṭḛḛḍ ḈḈ ḛḛṃααḭḭḽṡ龍ผู้]', + 'new-request-form.cc-field.email-added': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', + 'new-request-form.cc-field.email-label': + '[ผู้龍{{email}} - Ṕṛḛḛṡṡ Ḃααͼḳṡṗααͼḛḛ ṭṓṓ ṛḛḛṃṓṓṽḛḛ龍ผู้]', + 'new-request-form.cc-field.email-removed': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ṛḛḛṃṓṓṽḛḛḍ龍ผู้]', + 'new-request-form.cc-field.emails-added': '[ผู้龍{{emails}} ḥααṽḛḛ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', + 'new-request-form.cc-field.invalid-email': '[ผู้龍ḬḬṇṽααḽḭḭḍ ḛḛṃααḭḭḽ ααḍḍṛḛḛṡṡ龍ผู้]', + 'new-request-form.close-label': '[ผู้龍Ḉḽṓṓṡḛḛ龍ผู้]', + 'new-request-form.credit-card-digits-hint': '[ผู้龍(Ḻααṡṭ 4 ḍḭḭḡḭḭṭṡ)龍ผู้]', + 'new-request-form.dropdown.empty-option': '[ผู้龍Ṣḛḛḽḛḛͼṭ ααṇ ṓṓṗṭḭḭṓṓṇ龍ผู้]', + 'new-request-form.lookup-field.loading-options': '[ผู้龍Ḻṓṓααḍḭḭṇḡ ḭḭṭḛḛṃṡ...龍ผู้]', + 'new-request-form.lookup-field.no-matches-found': '[ผู้龍Ṅṓṓ ṃααṭͼḥḛḛṡ ϝṓṓṵṵṇḍ龍ผู้]', + 'new-request-form.lookup-field.placeholder': '[ผู้龍Ṣḛḛααṛͼḥ {{label}}龍ผู้]', + 'new-request-form.parent-request-link': '[ผู้龍Ḟṓṓḽḽṓṓẁ-ṵṵṗ ṭṓṓ ṛḛḛʠṵṵḛḛṡṭ {{parentId}}龍ผู้]', + 'new-request-form.required-fields-info': + '[ผู้龍Ḟḭḭḛḛḽḍṡ ṃααṛḳḛḛḍ ẁḭḭṭḥ ααṇ ααṡṭḛḛṛḭḭṡḳ (*) ααṛḛḛ ṛḛḛʠṵṵḭḭṛḛḛḍ.龍ผู้]', + 'new-request-form.submit': '[ผู้龍Ṣṵṵḅṃḭḭṭ龍ผู้]', + 'new-request-form.suggested-articles': '[ผู้龍Ṣṵṵḡḡḛḛṡṭḛḛḍ ααṛṭḭḭͼḽḛḛṡ龍ผู้]', +}; + +var arXPseudo$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: arXPseudo, +}); + +var ar = { + 'new-request-form.answer-bot-modal.footer-content': + 'في هذه الحالة يمكننا إغلاق الطلب الأخير {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'هل يجيب هذا المقال عن سؤالك؟', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'كلا، أحتاج إلى مساعدة', + 'new-request-form.answer-bot-modal.request-closed': 'رائع. تم إغلاق طلبك.', + 'new-request-form.answer-bot-modal.request-submitted': 'تم إرسال طلبك بنجاح', + 'new-request-form.answer-bot-modal.solve-error': 'حدث خطأ أثناء إغلاق طلبك', + 'new-request-form.answer-bot-modal.solve-request': 'نعم، أغلق هذا الطلب', + 'new-request-form.answer-bot-modal.title': + 'بينما تنتظر الرد، هل يجيب أي من المقالات التالية عن سؤالك؟', + 'new-request-form.answer-bot-modal.view-article': 'عرض المقال', + 'new-request-form.attachments.choose-file-label': 'اختر ملفًا أو قم بالسحب والإسقاط هنا', + 'new-request-form.attachments.drop-files-label': 'أسقِط الملفات هنا', + 'new-request-form.attachments.remove-file': 'إزالة الملف', + 'new-request-form.attachments.stop-upload': 'إيقاف التحميل', + 'new-request-form.attachments.upload-error-description': + 'حدث خطأ أثناء تحميل {{fileName}}. حاول مرة أخرى أو قم بتحميل ملف آخر.', + 'new-request-form.attachments.upload-error-title': 'خطأ في التحميل', + 'new-request-form.attachments.uploading': 'جارٍ تحميل {{fileName}}', + 'new-request-form.cc-field.container-label': 'عناوين البريد الإلكتروني المحددة في خانة النسخة', + 'new-request-form.cc-field.email-added': 'تمت إضافة {{email}}', + 'new-request-form.cc-field.email-label': '{{email}} - اضغط على Backspace للإزالة', + 'new-request-form.cc-field.email-removed': 'تمت إزالة {{email}}', + 'new-request-form.cc-field.emails-added': 'تمت إضافة {{emails}}', + 'new-request-form.cc-field.invalid-email': 'عنوان بريد إلكتروني غير صالح', + 'new-request-form.close-label': 'إغلاق', + 'new-request-form.credit-card-digits-hint': '(آخر 4 أرقام)', + 'new-request-form.dropdown.empty-option': 'حدّد خيارًا', + 'new-request-form.lookup-field.loading-options': 'جارٍ تحميل العناصر...', + 'new-request-form.lookup-field.no-matches-found': 'لم يتم العثور على نتائج مطابقة', + 'new-request-form.lookup-field.placeholder': 'بحث عن {{label}}', + 'new-request-form.parent-request-link': 'متابعة طلب {{parentId}}', + 'new-request-form.required-fields-info': 'الحقول التي عليها علامة النجمة (*) مطلوبة.', + 'new-request-form.submit': 'إرسال', + 'new-request-form.suggested-articles': 'مقالات مقترحة', +}; + +var ar$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ar, +}); + +var az = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var az$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: az, +}); + +var be = { + 'new-request-form.answer-bot-modal.footer-content': + 'Если да, мы можем закрыть запрос {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Есть ли в этой статье ответ на вопрос?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Нет, мне нужна помощь', + 'new-request-form.answer-bot-modal.request-closed': 'Превосходно. Запрос закрыт.', + 'new-request-form.answer-bot-modal.request-submitted': 'Ваш запрос отправлен', + 'new-request-form.answer-bot-modal.solve-error': 'Ошибка при закрытии запроса', + 'new-request-form.answer-bot-modal.solve-request': 'Да, закрыть мой запрос', + 'new-request-form.answer-bot-modal.title': + 'Пока вы ожидаете, есть ли в какой-то из этих статей ответ на ваш вопрос?', + 'new-request-form.answer-bot-modal.view-article': 'Просмотреть статью', + 'new-request-form.attachments.choose-file-label': 'Выберите файл или перетащите его сюда', + 'new-request-form.attachments.drop-files-label': 'Перетащите файлы сюда', + 'new-request-form.attachments.remove-file': 'Удалить файл', + 'new-request-form.attachments.stop-upload': 'Остановить выкладывание', + 'new-request-form.attachments.upload-error-description': + 'Ошибка при выкладывании {{fileName}}. Повторите попытку или выложите другой файл.', + 'new-request-form.attachments.upload-error-title': 'Ошибка выкладывания', + 'new-request-form.attachments.uploading': 'Выкладывание {{fileName}}', + 'new-request-form.cc-field.container-label': 'Выбранные письма для копии', + 'new-request-form.cc-field.email-added': 'Адрес {{email}} добавлен', + 'new-request-form.cc-field.email-label': '{{email}} — нажмите клавишу Backspace для удаления', + 'new-request-form.cc-field.email-removed': 'Адрес {{email}} удален', + 'new-request-form.cc-field.emails-added': 'Добавлены адреса {{emails}}', + 'new-request-form.cc-field.invalid-email': 'Недействительный адрес электронной почты', + 'new-request-form.close-label': 'Закрыть', + 'new-request-form.credit-card-digits-hint': '(последние 4 цифры)', + 'new-request-form.dropdown.empty-option': 'Выберите вариант', + 'new-request-form.lookup-field.loading-options': 'Загрузка элементов...', + 'new-request-form.lookup-field.no-matches-found': 'Соответствия не найдены', + 'new-request-form.lookup-field.placeholder': 'Поиск: {{label}}', + 'new-request-form.parent-request-link': 'Дополнение к запросу {{parentId}}', + 'new-request-form.required-fields-info': + 'Помеченные звездочкой (*) поля обязательны для заполнения.', + 'new-request-form.submit': 'Отправить', + 'new-request-form.suggested-articles': 'Предложенные статьи', +}; + +var be$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: be, +}); + +var bg = { + 'new-request-form.answer-bot-modal.footer-content': + 'Ако отговаря, можем да затворим заявката {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Отговори ли тази статия на въпроса ви?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Не, трябва ми помощ', + 'new-request-form.answer-bot-modal.request-closed': 'Чудесно. Заявката е затворена.', + 'new-request-form.answer-bot-modal.request-submitted': 'Заявката ви беше подадена успешно', + 'new-request-form.answer-bot-modal.solve-error': 'Възникна грешка при затваряне на вашата заявка', + 'new-request-form.answer-bot-modal.solve-request': 'Да, затворете заявката ми', + 'new-request-form.answer-bot-modal.title': + 'Докато чакате, вижте дали някоя от тези статии отговаря на въпроса ви.', + 'new-request-form.answer-bot-modal.view-article': 'Преглед на статията', + 'new-request-form.attachments.choose-file-label': 'Изберете файл или го плъзнете и пуснете тук', + 'new-request-form.attachments.drop-files-label': 'Пуснете файловете тук', + 'new-request-form.attachments.remove-file': 'Премахване на файл', + 'new-request-form.attachments.stop-upload': 'Спиране на качването', + 'new-request-form.attachments.upload-error-description': + 'Възникна грешка при качването на {{fileName}}. Опитайте отново или качете друг файл.', + 'new-request-form.attachments.upload-error-title': 'Грешка при качването', + 'new-request-form.attachments.uploading': 'Качва се {{fileName}}', + 'new-request-form.cc-field.container-label': 'Избрани имейли за копие', + 'new-request-form.cc-field.email-added': 'Имейл адресът {{email}} е добавен', + 'new-request-form.cc-field.email-label': '{{email}} – натиснете „Backspace“ за премахване', + 'new-request-form.cc-field.email-removed': 'Имейл адресът {{email}} е премахнат', + 'new-request-form.cc-field.emails-added': 'Имейл адресите {{emails}} са добавени', + 'new-request-form.cc-field.invalid-email': 'Невалиден имейл адрес', + 'new-request-form.close-label': 'Затваряне', + 'new-request-form.credit-card-digits-hint': '(последните 4 цифри)', + 'new-request-form.dropdown.empty-option': 'Изберете опция', + 'new-request-form.lookup-field.loading-options': 'Зареждане на елементите…', + 'new-request-form.lookup-field.no-matches-found': 'Няма открити съвпадения', + 'new-request-form.lookup-field.placeholder': 'Търсене на {{label}}', + 'new-request-form.parent-request-link': + 'Последващи действия във връзка със заявката {{parentId}}', + 'new-request-form.required-fields-info': + 'Полетата, отбелязани със звездичка (*), са задължителни.', + 'new-request-form.submit': 'Подаване', + 'new-request-form.suggested-articles': 'Предложени статии', +}; + +var bg$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: bg, +}); + +var bn = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var bn$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: bn, +}); + +var bs = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var bs$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: bs, +}); + +var ca = { + 'new-request-form.answer-bot-modal.footer-content': + 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', + 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', + 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', + 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', + 'new-request-form.answer-bot-modal.title': + 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', + 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', + 'new-request-form.attachments.choose-file-label': + 'Elegir un archivo o arrastrar y soltar uno aquí', + 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', + 'new-request-form.attachments.remove-file': 'Eliminar archivo', + 'new-request-form.attachments.stop-upload': 'Detener carga', + 'new-request-form.attachments.upload-error-description': + 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', + 'new-request-form.attachments.upload-error-title': 'Error de carga', + 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', + 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', + 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', + 'new-request-form.cc-field.email-label': + '{{email}}: presione la tecla de retroceso para eliminar', + 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', + 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', + 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', + 'new-request-form.close-label': 'Cerrar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Seleccione una opción', + 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', + 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', + 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', + 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', + 'new-request-form.required-fields-info': + 'Los campos marcados con un asterisco (*) son obligatorios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artículos recomendados', +}; + +var ca$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ca, +}); + +var cs = { + 'new-request-form.answer-bot-modal.footer-content': + 'Pokud ano, můžeme uzavřít nedávný požadavek {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Odpověděl tento článek na vaši otázku?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Ne, potřebuji pomoc', + 'new-request-form.answer-bot-modal.request-closed': 'Prima. Požadavek byl uzavřen.', + 'new-request-form.answer-bot-modal.request-submitted': 'Váš požadavek byl úspěšně odeslán.', + 'new-request-form.answer-bot-modal.solve-error': 'Při zavírání požadavku došlo k chybě.', + 'new-request-form.answer-bot-modal.solve-request': 'Ano, zavřít můj požadavek', + 'new-request-form.answer-bot-modal.title': + 'Odpověděl některý z těchto článků na vaši otázku, zatímco čekáte?', + 'new-request-form.answer-bot-modal.view-article': 'Zobrazit článek', + 'new-request-form.attachments.choose-file-label': 'Vyberte soubor nebo ho sem přetáhněte', + 'new-request-form.attachments.drop-files-label': 'Sem přetáhněte soubory.', + 'new-request-form.attachments.remove-file': 'Odstranit soubor', + 'new-request-form.attachments.stop-upload': 'Zastavit upload', + 'new-request-form.attachments.upload-error-description': + 'Při uploadování souboru {{fileName}}došlo k chybě. Zkuste to znovu nebo uploadujte jiný soubor.', + 'new-request-form.attachments.upload-error-title': 'Chyba při uploadu', + 'new-request-form.attachments.uploading': 'Uploaduje se soubor {{fileName}}', + 'new-request-form.cc-field.container-label': 'Vybrané e-maily v kopii', + 'new-request-form.cc-field.email-added': 'E-mail {{email}} byl přidán', + 'new-request-form.cc-field.email-label': + '{{email}} – Stisknutím klávesy Backspace proveďte odstranění.', + 'new-request-form.cc-field.email-removed': 'E-mail {{email}} byl odstraněn', + 'new-request-form.cc-field.emails-added': 'E-maily {{emails}} byly přidány', + 'new-request-form.cc-field.invalid-email': 'Neplatná e-mailová adresa', + 'new-request-form.close-label': 'Zavřít', + 'new-request-form.credit-card-digits-hint': '(Poslední 4 číslice)', + 'new-request-form.dropdown.empty-option': 'Vybrat volbu', + 'new-request-form.lookup-field.loading-options': 'Načítání položek…', + 'new-request-form.lookup-field.no-matches-found': 'Nebyly nalezeny žádné shody', + 'new-request-form.lookup-field.placeholder': 'Hledejte {{label}}', + 'new-request-form.parent-request-link': 'Navazující tiket pro požadavek {{parentId}}', + 'new-request-form.required-fields-info': 'Pole označená hvězdičkou (*) jsou povinná.', + 'new-request-form.submit': 'Odeslat', + 'new-request-form.suggested-articles': 'Doporučené články', +}; + +var cs$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: cs, +}); + +var cy = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var cy$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: cy, +}); + +var da = { + 'new-request-form.answer-bot-modal.footer-content': + 'Hvis den gør, kan vi lukke den seneste anmodning {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Besvarede denne artikel dit spørgsmål?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nej, jeg har brug for hjælp', + 'new-request-form.answer-bot-modal.request-closed': 'Fint. Anmodningen er blevet lukket.', + 'new-request-form.answer-bot-modal.request-submitted': 'Din anmodning er blevet sendt', + 'new-request-form.answer-bot-modal.solve-error': + 'Der opstod en fejl under lukning af din anmodning', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, luk min anmodning', + 'new-request-form.answer-bot-modal.title': + 'Mens du venter, er der da nogen af disse artikler, som besvarer dit spørgsmål?', + 'new-request-form.answer-bot-modal.view-article': 'Se artikel', + 'new-request-form.attachments.choose-file-label': 'Vælg en fil eller træk og slip her', + 'new-request-form.attachments.drop-files-label': 'Slip filerne her', + 'new-request-form.attachments.remove-file': 'Fjern fil', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'Der opstod en fejl under upload {{fileName}}. Prøv igen eller upload en anden fil.', + 'new-request-form.attachments.upload-error-title': 'Fejl under upload', + 'new-request-form.attachments.uploading': 'Uploader {{fileName}}', + 'new-request-form.cc-field.container-label': 'Valgte CC-mails', + 'new-request-form.cc-field.email-added': '{{email}} er blevet tilføjet', + 'new-request-form.cc-field.email-label': '{{email}} - Tryk på Backspace for at fjerne', + 'new-request-form.cc-field.email-removed': '{{email}} er blevet fjernet', + 'new-request-form.cc-field.emails-added': '{{emails}} er blevet tilføjet', + 'new-request-form.cc-field.invalid-email': 'Ugyldig e-mailadresse', + 'new-request-form.close-label': 'Luk', + 'new-request-form.credit-card-digits-hint': '(sidste 4 cifre)', + 'new-request-form.dropdown.empty-option': 'Foretag et valg', + 'new-request-form.lookup-field.loading-options': 'Indlæser elementer...', + 'new-request-form.lookup-field.no-matches-found': 'Ingen matchende resultater', + 'new-request-form.lookup-field.placeholder': 'Søgning i {{label}}', + 'new-request-form.parent-request-link': 'Følg op på anmodning {{parentId}}', + 'new-request-form.required-fields-info': 'Felter markeret med en stjerne (*) er obligatoriske.', + 'new-request-form.submit': 'Indsend', + 'new-request-form.suggested-articles': 'Foreslåede artikler', +}; + +var da$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: da, +}); + +var deDe = { + 'new-request-form.answer-bot-modal.footer-content': + 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', + 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', + 'new-request-form.answer-bot-modal.request-closed': 'Sehr gut. Ihre Anfrage wurde geschlossen.', + 'new-request-form.answer-bot-modal.request-submitted': + 'Ihre Anfrage wurde erfolgreich eingereicht', + 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', + 'new-request-form.answer-bot-modal.title': + 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', + 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', + 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', + 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', + 'new-request-form.attachments.remove-file': 'Datei entfernen', + 'new-request-form.attachments.stop-upload': 'Upload anhalten', + 'new-request-form.attachments.upload-error-description': + 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', + 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', + 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', + 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', + 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', + 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', + 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', + 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', + 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', + 'new-request-form.close-label': 'Schließen', + 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', + 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', + 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', + 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', + 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', + 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', + 'new-request-form.required-fields-info': + 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', + 'new-request-form.submit': 'Senden', + 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', +}; + +var deDe$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: deDe, +}); + +var deXInformal = { + 'new-request-form.answer-bot-modal.footer-content': + 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', + 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', + 'new-request-form.answer-bot-modal.request-closed': 'Sehr gut. Ihre Anfrage wurde geschlossen.', + 'new-request-form.answer-bot-modal.request-submitted': + 'Ihre Anfrage wurde erfolgreich eingereicht', + 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', + 'new-request-form.answer-bot-modal.title': + 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', + 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', + 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', + 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', + 'new-request-form.attachments.remove-file': 'Datei entfernen', + 'new-request-form.attachments.stop-upload': 'Upload anhalten', + 'new-request-form.attachments.upload-error-description': + 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', + 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', + 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', + 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', + 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', + 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', + 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', + 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', + 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', + 'new-request-form.close-label': 'Schließen', + 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', + 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', + 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', + 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', + 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', + 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', + 'new-request-form.required-fields-info': + 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', + 'new-request-form.submit': 'Senden', + 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', +}; + +var deXInformal$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: deXInformal, +}); + +var de = { + 'new-request-form.answer-bot-modal.footer-content': + 'Wenn ja, können wir die Anfrage {{requestId}} schließen.', + 'new-request-form.answer-bot-modal.footer-title': 'Hat dieser Beitrag die Frage beantwortet?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nein, ich brauche weitere Hilfe', + 'new-request-form.answer-bot-modal.request-closed': 'Sehr gut. Ihre Anfrage wurde geschlossen.', + 'new-request-form.answer-bot-modal.request-submitted': + 'Ihre Anfrage wurde erfolgreich eingereicht', + 'new-request-form.answer-bot-modal.solve-error': 'Fehler beim Schließen Ihrer Anfrage', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, Anfrage schließen', + 'new-request-form.answer-bot-modal.title': + 'Während Sie warten, wird Ihre Frage durch einen dieser Beiträge beantwortet?', + 'new-request-form.answer-bot-modal.view-article': 'Beitrag anzeigen', + 'new-request-form.attachments.choose-file-label': 'Datei auswählen oder hierher ziehen', + 'new-request-form.attachments.drop-files-label': 'Dateien hier ablegen', + 'new-request-form.attachments.remove-file': 'Datei entfernen', + 'new-request-form.attachments.stop-upload': 'Upload anhalten', + 'new-request-form.attachments.upload-error-description': + 'Fehler beim Hochladen von {{fileName}}. Versuchen Sie es erneut oder laden Sie eine andere Datei hoch.', + 'new-request-form.attachments.upload-error-title': 'Fehler beim Hochladen', + 'new-request-form.attachments.uploading': '{{fileName}} wird hochgeladen', + 'new-request-form.cc-field.container-label': 'Ausgewählte CC-E-Mails', + 'new-request-form.cc-field.email-added': '{{email}} wurde hinzugefügt', + 'new-request-form.cc-field.email-label': '{{email}} – Zum Entfernen die Rücktaste drücken', + 'new-request-form.cc-field.email-removed': '{{email}} wurde entfernt', + 'new-request-form.cc-field.emails-added': '{{emails}} wurden hinzugefügt', + 'new-request-form.cc-field.invalid-email': 'E-Mail-Adresse ungültig', + 'new-request-form.close-label': 'Schließen', + 'new-request-form.credit-card-digits-hint': '(Letzte vier Ziffern)', + 'new-request-form.dropdown.empty-option': 'Wählen Sie eine Option aus', + 'new-request-form.lookup-field.loading-options': 'Elemente werden geladen...', + 'new-request-form.lookup-field.no-matches-found': 'Keine Übereinstimmungen gefunden', + 'new-request-form.lookup-field.placeholder': 'Suche {{label}}', + 'new-request-form.parent-request-link': 'Folgeanfrage zu {{parentId}}', + 'new-request-form.required-fields-info': + 'Mit einem Sternchen (*) markierte Felder sind Pflichtfelder.', + 'new-request-form.submit': 'Senden', + 'new-request-form.suggested-articles': 'Vorgeschlagene Beiträge', +}; + +var de$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: de, +}); + +var el = { + 'new-request-form.answer-bot-modal.footer-content': + 'Αν ναι, μπορούμε να κλείσουμε το πρόσφατο αίτημα {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Απαντά στην ερώτηση το άρθρο;', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Όχι, χρειάζομαι βοήθεια', + 'new-request-form.answer-bot-modal.request-closed': 'Ωραία. Το αίτημα έχει κλείσει.', + 'new-request-form.answer-bot-modal.request-submitted': 'Το αίτημά σας υπεβλήθη με επιτυχία', + 'new-request-form.answer-bot-modal.solve-error': + 'Παρουσιάστηκε σφάλμα στο κλείσιμο του αιτήματός σας', + 'new-request-form.answer-bot-modal.solve-request': 'Ναι, να κλείσει το αίτημά μου', + 'new-request-form.answer-bot-modal.title': + 'Ενώ περιμένετε, απαντά στην ερώτηση κάποιο από αυτά τα άρθρα;', + 'new-request-form.answer-bot-modal.view-article': 'Προβολή άρθρου', + 'new-request-form.attachments.choose-file-label': 'Επιλέξτε ένα αρχείο ή σύρετε και αποθέστε εδώ', + 'new-request-form.attachments.drop-files-label': 'Αποθέστε τα αρχεία εδώ', + 'new-request-form.attachments.remove-file': 'Κατάργηση αρχείου', + 'new-request-form.attachments.stop-upload': 'Διακοπή αποστολής', + 'new-request-form.attachments.upload-error-description': + 'Υπήρξε σφάλμα κατά την αποστολή του {{fileName}}. Δοκιμάστε ξανά ή ανεβάστε άλλο αρχείο.', + 'new-request-form.attachments.upload-error-title': 'Σφάλμα αποστολής', + 'new-request-form.attachments.uploading': 'Γίνεται αποστολή {{fileName}}', + 'new-request-form.cc-field.container-label': 'Επιλεγμένα email για κοινοποίηση', + 'new-request-form.cc-field.email-added': 'Προστέθηκε το {{email}}', + 'new-request-form.cc-field.email-label': '{{email}} - Πατήστε Backspace για αφαίρεση', + 'new-request-form.cc-field.email-removed': 'Καταργήθηκε το {{email}}', + 'new-request-form.cc-field.emails-added': 'Οι διευθύνσεις {{emails}} έχουν προστεθεί', + 'new-request-form.cc-field.invalid-email': 'Μη έγκυρη διεύθυνση email', + 'new-request-form.close-label': 'Κλείσιμο', + 'new-request-form.credit-card-digits-hint': '(4 τελευταία ψηφία)', + 'new-request-form.dropdown.empty-option': 'Ενεργοποιήστε μια επιλογή', + 'new-request-form.lookup-field.loading-options': 'Γίνεται φόρτωση αντικειμένων...', + 'new-request-form.lookup-field.no-matches-found': 'Δεν βρέθηκαν αντιστοιχίσεις', + 'new-request-form.lookup-field.placeholder': 'Αναζήτηση σε {{label}}', + 'new-request-form.parent-request-link': 'Συμπληρωματικό στο αίτημα {{parentId}}', + 'new-request-form.required-fields-info': 'Τα πεδία με αστερίσκο (*) είναι υποχρεωτικά.', + 'new-request-form.submit': 'Υποβολή', + 'new-request-form.suggested-articles': 'Προτεινόμενα άρθρα', +}; + +var el$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: el, +}); + +var en001 = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var en001$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: en001, +}); + +var en150 = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var en150$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: en150, +}); + +var enAu = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enAu$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enAu, +}); + +var enCa = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enCa$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enCa, +}); + +var enGb = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enGb$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enGb, +}); + +var enMy = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enMy$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enMy, +}); + +var enPh = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enPh$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enPh, +}); + +var enSe = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enSe$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enSe, +}); + +var enUs = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enUs$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enUs, +}); + +var enXDev = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enXDev$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enXDev, +}); + +var enXKeys = { + 'new-request-form.answer-bot-modal.footer-content': + 'new-request-form.answer-bot-modal.footer-content', + 'new-request-form.answer-bot-modal.footer-title': + 'new-request-form.answer-bot-modal.footer-title', + 'new-request-form.answer-bot-modal.mark-irrelevant': + 'new-request-form.answer-bot-modal.mark-irrelevant', + 'new-request-form.answer-bot-modal.request-closed': + 'new-request-form.answer-bot-modal.request-closed', + 'new-request-form.answer-bot-modal.request-submitted': + 'new-request-form.answer-bot-modal.request-submitted', + 'new-request-form.answer-bot-modal.solve-error': 'new-request-form.answer-bot-modal.solve-error', + 'new-request-form.answer-bot-modal.solve-request': + 'new-request-form.answer-bot-modal.solve-request', + 'new-request-form.answer-bot-modal.title': 'new-request-form.answer-bot-modal.title', + 'new-request-form.answer-bot-modal.view-article': + 'new-request-form.answer-bot-modal.view-article', + 'new-request-form.attachments.choose-file-label': + 'new-request-form.attachments.choose-file-label', + 'new-request-form.attachments.drop-files-label': 'new-request-form.attachments.drop-files-label', + 'new-request-form.attachments.remove-file': 'new-request-form.attachments.remove-file', + 'new-request-form.attachments.stop-upload': 'new-request-form.attachments.stop-upload', + 'new-request-form.attachments.upload-error-description': + 'new-request-form.attachments.upload-error-description', + 'new-request-form.attachments.upload-error-title': + 'new-request-form.attachments.upload-error-title', + 'new-request-form.attachments.uploading': 'new-request-form.attachments.uploading', + 'new-request-form.cc-field.container-label': 'new-request-form.cc-field.container-label', + 'new-request-form.cc-field.email-added': 'new-request-form.cc-field.email-added', + 'new-request-form.cc-field.email-label': 'new-request-form.cc-field.email-label', + 'new-request-form.cc-field.email-removed': 'new-request-form.cc-field.email-removed', + 'new-request-form.cc-field.emails-added': 'new-request-form.cc-field.emails-added', + 'new-request-form.cc-field.invalid-email': 'new-request-form.cc-field.invalid-email', + 'new-request-form.close-label': 'new-request-form.close-label', + 'new-request-form.credit-card-digits-hint': 'new-request-form.credit-card-digits-hint', + 'new-request-form.dropdown.empty-option': 'new-request-form.dropdown.empty-option', + 'new-request-form.lookup-field.loading-options': 'new-request-form.lookup-field.loading-options', + 'new-request-form.lookup-field.no-matches-found': + 'new-request-form.lookup-field.no-matches-found', + 'new-request-form.lookup-field.placeholder': 'new-request-form.lookup-field.placeholder', + 'new-request-form.parent-request-link': 'new-request-form.parent-request-link', + 'new-request-form.required-fields-info': 'new-request-form.required-fields-info', + 'new-request-form.submit': 'new-request-form.submit', + 'new-request-form.suggested-articles': 'new-request-form.suggested-articles', +}; + +var enXKeys$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enXKeys, +}); + +var enXObsolete = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enXObsolete$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enXObsolete, +}); + +var enXPseudo = { + 'new-request-form.answer-bot-modal.footer-content': + '[ผู้龍ḬḬϝ ḭḭṭ ḍṓṓḛḛṡ, ẁḛḛ ͼααṇ ͼḽṓṓṡḛḛ ẏẏṓṓṵṵṛ ṛḛḛͼḛḛṇṭ ṛḛḛʠṵṵḛḛṡṭ {{requestId}}龍ผู้]', + 'new-request-form.answer-bot-modal.footer-title': + '[ผู้龍Ḍṓṓḛḛṡ ṭḥḭḭṡ ααṛṭḭḭͼḽḛḛ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', + 'new-request-form.answer-bot-modal.mark-irrelevant': '[ผู้龍Ṅṓṓ, ḬḬ ṇḛḛḛḛḍ ḥḛḛḽṗ龍ผู้]', + 'new-request-form.answer-bot-modal.request-closed': + '[ผู้龍Ṅḭḭͼḛḛ. ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ḥααṡ ḅḛḛḛḛṇ ͼḽṓṓṡḛḛḍ.龍ผู้]', + 'new-request-form.answer-bot-modal.request-submitted': + '[ผู้龍ŶŶṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ ẁααṡ ṡṵṵͼͼḛḛṡṡϝṵṵḽḽẏẏ ṡṵṵḅṃḭḭṭṭḛḛḍ龍ผู้]', + 'new-request-form.answer-bot-modal.solve-error': + '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ͼḽṓṓṡḭḭṇḡ ẏẏṓṓṵṵṛ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', + 'new-request-form.answer-bot-modal.solve-request': '[ผู้龍ŶŶḛḛṡ, ͼḽṓṓṡḛḛ ṃẏẏ ṛḛḛʠṵṵḛḛṡṭ龍ผู้]', + 'new-request-form.answer-bot-modal.title': + '[ผู้龍Ŵḥḭḭḽḛḛ ẏẏṓṓṵṵ ẁααḭḭṭ, ḍṓṓ ααṇẏẏ ṓṓϝ ṭḥḛḛṡḛḛ ααṛṭḭḭͼḽḛḛṡ ααṇṡẁḛḛṛ ẏẏṓṓṵṵṛ ʠṵṵḛḛṡṭḭḭṓṓṇ?龍ผู้]', + 'new-request-form.answer-bot-modal.view-article': '[ผู้龍Ṿḭḭḛḛẁ ααṛṭḭḭͼḽḛḛ龍ผู้]', + 'new-request-form.attachments.choose-file-label': + '[ผู้龍Ḉḥṓṓṓṓṡḛḛ αα ϝḭḭḽḛḛ ṓṓṛ ḍṛααḡ ααṇḍ ḍṛṓṓṗ ḥḛḛṛḛḛ龍ผู้]', + 'new-request-form.attachments.drop-files-label': '[ผู้龍Ḍṛṓṓṗ ϝḭḭḽḛḛṡ ḥḛḛṛḛḛ龍ผู้]', + 'new-request-form.attachments.remove-file': '[ผู้龍Ṛḛḛṃṓṓṽḛḛ ϝḭḭḽḛḛ龍ผู้]', + 'new-request-form.attachments.stop-upload': '[ผู้龍Ṣṭṓṓṗ ṵṵṗḽṓṓααḍ龍ผู้]', + 'new-request-form.attachments.upload-error-description': + '[ผู้龍Ṫḥḛḛṛḛḛ ẁααṡ ααṇ ḛḛṛṛṓṓṛ ṵṵṗḽṓṓααḍḭḭṇḡ {{fileName}}. Ṫṛẏẏ ααḡααḭḭṇ ṓṓṛ ṵṵṗḽṓṓααḍ ααṇṓṓṭḥḛḛṛ ϝḭḭḽḛḛ.龍ผู้]', + 'new-request-form.attachments.upload-error-title': '[ผู้龍ṲṲṗḽṓṓααḍ ḛḛṛṛṓṓṛ龍ผู้]', + 'new-request-form.attachments.uploading': '[ผู้龍ṲṲṗḽṓṓααḍḭḭṇḡ {{fileName}}龍ผู้]', + 'new-request-form.cc-field.container-label': '[ผู้龍Ṣḛḛḽḛḛͼṭḛḛḍ ḈḈ ḛḛṃααḭḭḽṡ龍ผู้]', + 'new-request-form.cc-field.email-added': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', + 'new-request-form.cc-field.email-label': + '[ผู้龍{{email}} - Ṕṛḛḛṡṡ Ḃααͼḳṡṗααͼḛḛ ṭṓṓ ṛḛḛṃṓṓṽḛḛ龍ผู้]', + 'new-request-form.cc-field.email-removed': '[ผู้龍{{email}} ḥααṡ ḅḛḛḛḛṇ ṛḛḛṃṓṓṽḛḛḍ龍ผู้]', + 'new-request-form.cc-field.emails-added': '[ผู้龍{{emails}} ḥααṽḛḛ ḅḛḛḛḛṇ ααḍḍḛḛḍ龍ผู้]', + 'new-request-form.cc-field.invalid-email': '[ผู้龍ḬḬṇṽααḽḭḭḍ ḛḛṃααḭḭḽ ααḍḍṛḛḛṡṡ龍ผู้]', + 'new-request-form.close-label': '[ผู้龍Ḉḽṓṓṡḛḛ龍ผู้]', + 'new-request-form.credit-card-digits-hint': '[ผู้龍(Ḻααṡṭ 4 ḍḭḭḡḭḭṭṡ)龍ผู้]', + 'new-request-form.dropdown.empty-option': '[ผู้龍Ṣḛḛḽḛḛͼṭ ααṇ ṓṓṗṭḭḭṓṓṇ龍ผู้]', + 'new-request-form.lookup-field.loading-options': '[ผู้龍Ḻṓṓααḍḭḭṇḡ ḭḭṭḛḛṃṡ...龍ผู้]', + 'new-request-form.lookup-field.no-matches-found': '[ผู้龍Ṅṓṓ ṃααṭͼḥḛḛṡ ϝṓṓṵṵṇḍ龍ผู้]', + 'new-request-form.lookup-field.placeholder': '[ผู้龍Ṣḛḛααṛͼḥ {{label}}龍ผู้]', + 'new-request-form.parent-request-link': '[ผู้龍Ḟṓṓḽḽṓṓẁ-ṵṵṗ ṭṓṓ ṛḛḛʠṵṵḛḛṡṭ {{parentId}}龍ผู้]', + 'new-request-form.required-fields-info': + '[ผู้龍Ḟḭḭḛḛḽḍṡ ṃααṛḳḛḛḍ ẁḭḭṭḥ ααṇ ααṡṭḛḛṛḭḭṡḳ (*) ααṛḛḛ ṛḛḛʠṵṵḭḭṛḛḛḍ.龍ผู้]', + 'new-request-form.submit': '[ผู้龍Ṣṵṵḅṃḭḭṭ龍ผู้]', + 'new-request-form.suggested-articles': '[ผู้龍Ṣṵṵḡḡḛḛṡṭḛḛḍ ααṛṭḭḭͼḽḛḛṡ龍ผู้]', +}; + +var enXPseudo$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enXPseudo, +}); + +var enXTest = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var enXTest$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: enXTest, +}); + +var es419 = { + 'new-request-form.answer-bot-modal.footer-content': + 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', + 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', + 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', + 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', + 'new-request-form.answer-bot-modal.title': + 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', + 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', + 'new-request-form.attachments.choose-file-label': + 'Elegir un archivo o arrastrar y soltar uno aquí', + 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', + 'new-request-form.attachments.remove-file': 'Eliminar archivo', + 'new-request-form.attachments.stop-upload': 'Detener carga', + 'new-request-form.attachments.upload-error-description': + 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', + 'new-request-form.attachments.upload-error-title': 'Error de carga', + 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', + 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', + 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', + 'new-request-form.cc-field.email-label': + '{{email}}: presione la tecla de retroceso para eliminar', + 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', + 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', + 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', + 'new-request-form.close-label': 'Cerrar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Seleccione una opción', + 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', + 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', + 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', + 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', + 'new-request-form.required-fields-info': + 'Los campos marcados con un asterisco (*) son obligatorios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artículos recomendados', +}; + +var es419$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: es419, +}); + +var esEs = { + 'new-request-form.answer-bot-modal.footer-content': + 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', + 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', + 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', + 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', + 'new-request-form.answer-bot-modal.title': + 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', + 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', + 'new-request-form.attachments.choose-file-label': + 'Elegir un archivo o arrastrar y soltar uno aquí', + 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', + 'new-request-form.attachments.remove-file': 'Eliminar archivo', + 'new-request-form.attachments.stop-upload': 'Detener carga', + 'new-request-form.attachments.upload-error-description': + 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', + 'new-request-form.attachments.upload-error-title': 'Error de carga', + 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', + 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', + 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', + 'new-request-form.cc-field.email-label': + '{{email}}: presione la tecla de retroceso para eliminar', + 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', + 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', + 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', + 'new-request-form.close-label': 'Cerrar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Seleccione una opción', + 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', + 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', + 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', + 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', + 'new-request-form.required-fields-info': + 'Los campos marcados con un asterisco (*) son obligatorios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artículos recomendados', +}; + +var esEs$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: esEs, +}); + +var es = { + 'new-request-form.answer-bot-modal.footer-content': + 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', + 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', + 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', + 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', + 'new-request-form.answer-bot-modal.title': + 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', + 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', + 'new-request-form.attachments.choose-file-label': + 'Elegir un archivo o arrastrar y soltar uno aquí', + 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', + 'new-request-form.attachments.remove-file': 'Eliminar archivo', + 'new-request-form.attachments.stop-upload': 'Detener carga', + 'new-request-form.attachments.upload-error-description': + 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', + 'new-request-form.attachments.upload-error-title': 'Error de carga', + 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', + 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', + 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', + 'new-request-form.cc-field.email-label': + '{{email}}: presione la tecla de retroceso para eliminar', + 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', + 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', + 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', + 'new-request-form.close-label': 'Cerrar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Seleccione una opción', + 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', + 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', + 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', + 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', + 'new-request-form.required-fields-info': + 'Los campos marcados con un asterisco (*) son obligatorios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artículos recomendados', +}; + +var es$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: es, +}); + +var et = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var et$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: et, +}); + +var eu = { + 'new-request-form.answer-bot-modal.footer-content': + 'De ser así, podemos cerrar la reciente solicitud {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '¿Responde la pregunta este artículo?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, necesito ayuda', + 'new-request-form.answer-bot-modal.request-closed': 'Excelente. La solicitud fue cerrada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Su solicitud se envió correctamente.', + 'new-request-form.answer-bot-modal.solve-error': 'Hubo un error al cerrar la solicitud', + 'new-request-form.answer-bot-modal.solve-request': 'Sí, cerrar mi solicitud', + 'new-request-form.answer-bot-modal.title': + 'Mientras espera, ¿alguno de estos artículos responde su pregunta?', + 'new-request-form.answer-bot-modal.view-article': 'Ver artículo', + 'new-request-form.attachments.choose-file-label': + 'Elegir un archivo o arrastrar y soltar uno aquí', + 'new-request-form.attachments.drop-files-label': 'Suelte los archivos aquí', + 'new-request-form.attachments.remove-file': 'Eliminar archivo', + 'new-request-form.attachments.stop-upload': 'Detener carga', + 'new-request-form.attachments.upload-error-description': + 'Hubo un error al cargar {{fileName}}. Vuelva a intentarlo o cargue otro archivo.', + 'new-request-form.attachments.upload-error-title': 'Error de carga', + 'new-request-form.attachments.uploading': 'Cargando {{fileName}}', + 'new-request-form.cc-field.container-label': 'Correos electrónicos de CC seleccionados', + 'new-request-form.cc-field.email-added': '{{email}} se ha agregado', + 'new-request-form.cc-field.email-label': + '{{email}}: presione la tecla de retroceso para eliminar', + 'new-request-form.cc-field.email-removed': '{{email}} se ha eliminado', + 'new-request-form.cc-field.emails-added': '{{emails}} se han agregado', + 'new-request-form.cc-field.invalid-email': 'Dirección de correo electrónico no válida', + 'new-request-form.close-label': 'Cerrar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Seleccione una opción', + 'new-request-form.lookup-field.loading-options': 'Cargando elementos...', + 'new-request-form.lookup-field.no-matches-found': 'No se encontraron coincidencias', + 'new-request-form.lookup-field.placeholder': 'Buscar {{label}}', + 'new-request-form.parent-request-link': 'Seguimiento de la solicitud {{parentId}}', + 'new-request-form.required-fields-info': + 'Los campos marcados con un asterisco (*) son obligatorios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artículos recomendados', +}; + +var eu$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: eu, +}); + +var faAf = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var faAf$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: faAf, +}); + +var fa = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var fa$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: fa, +}); + +var fi = { + 'new-request-form.answer-bot-modal.footer-content': + 'Jos se vastaa, voimme sulkea äskettäisen pyyntösi {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Vastaako tämä artikkeli kysymykseesi?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Ei, tarvitsen apua', + 'new-request-form.answer-bot-modal.request-closed': 'Hienoa. Pyyntösi on suljettu.', + 'new-request-form.answer-bot-modal.request-submitted': 'Pyyntösi lähettäminen onnistui', + 'new-request-form.answer-bot-modal.solve-error': 'Tapahtui virhe suljettaessa pyyntöäsi', + 'new-request-form.answer-bot-modal.solve-request': 'Kyllä, sulje pyyntöni', + 'new-request-form.answer-bot-modal.title': + 'Sillä aikaa kun odotat, vastaako mikään näistä artikkeleista kysymykseesi?', + 'new-request-form.answer-bot-modal.view-article': 'Näytä artikkeli', + 'new-request-form.attachments.choose-file-label': 'Valitse tiedosto tai vedä ja pudota se tähän', + 'new-request-form.attachments.drop-files-label': 'Pudota tiedostot tähän', + 'new-request-form.attachments.remove-file': 'Poista tiedosto', + 'new-request-form.attachments.stop-upload': 'Lopeta lataaminen', + 'new-request-form.attachments.upload-error-description': + 'Virhe ladattaessa tiedostoa {{fileName}}. Yritä uudelleen tai lataa toinen tiedosto.', + 'new-request-form.attachments.upload-error-title': 'Latausvirhe', + 'new-request-form.attachments.uploading': 'Ladataan tiedostoa {{fileName}}', + 'new-request-form.cc-field.container-label': 'Valitut kopiosähköpostit', + 'new-request-form.cc-field.email-added': '{{email}} on lisätty', + 'new-request-form.cc-field.email-label': '{{email}} - poista painamalla askelpalautinta', + 'new-request-form.cc-field.email-removed': '{{email}} on poistettu', + 'new-request-form.cc-field.emails-added': '{{emails}} on lisätty', + 'new-request-form.cc-field.invalid-email': 'Virheellinen sähköpostiosoite', + 'new-request-form.close-label': 'Sulje', + 'new-request-form.credit-card-digits-hint': '(4 viimeistä numeroa)', + 'new-request-form.dropdown.empty-option': 'Valitse vaihtoehto', + 'new-request-form.lookup-field.loading-options': 'Ladataan kohteita...', + 'new-request-form.lookup-field.no-matches-found': 'Vastineita ei löytynyt', + 'new-request-form.lookup-field.placeholder': 'Hae {{label}}', + 'new-request-form.parent-request-link': 'Jatkoa pyynnölle {{parentId}}', + 'new-request-form.required-fields-info': 'Tähdellä (*) merkityt kentät ovat pakollisia.', + 'new-request-form.submit': 'Lähetä', + 'new-request-form.suggested-articles': 'Ehdotetut artikkelit', +}; + +var fi$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: fi, +}); + +var fil = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var fil$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: fil, +}); + +var fo = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var fo$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: fo, +}); + +var frCa = { + 'new-request-form.answer-bot-modal.footer-content': + 'S’il y répond, nous pouvons clore la demande {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Cet article répond-il à la question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Non, j’ai besoin d’aide', + 'new-request-form.answer-bot-modal.request-closed': 'Super. La demande a été close.', + 'new-request-form.answer-bot-modal.request-submitted': 'Votre demande a été envoyée', + 'new-request-form.answer-bot-modal.solve-error': + 'Une erreur est survenue lors de la clôture de votre demande', + 'new-request-form.answer-bot-modal.solve-request': 'Oui, fermer ma demande', + 'new-request-form.answer-bot-modal.title': + 'Pendant que vous attendez, un de ces articles répond-il à votre question?', + 'new-request-form.answer-bot-modal.view-article': 'Afficher l’article', + 'new-request-form.attachments.choose-file-label': + 'Choisissez un fichier ou faites glisser et déposez ici', + 'new-request-form.attachments.drop-files-label': 'Déposez les fichiers ici', + 'new-request-form.attachments.remove-file': 'Supprimer le fichier', + 'new-request-form.attachments.stop-upload': 'Arrêter le chargement', + 'new-request-form.attachments.upload-error-description': + 'Une erreur est survenue lors du téléversement de {{fileName}}. Réessayez ou téléversez un autre fichier.', + 'new-request-form.attachments.upload-error-title': 'Erreur de téléversement', + 'new-request-form.attachments.uploading': 'Téléversement de {{fileName}}en cours…', + 'new-request-form.cc-field.container-label': 'Adresses courriel en CC sélectionnées', + 'new-request-form.cc-field.email-added': '{{email}} a été ajoutée', + 'new-request-form.cc-field.email-label': '{{email}} - Appuyez sur Retour arrière pour supprimer', + 'new-request-form.cc-field.email-removed': '{{email}} a été supprimée', + 'new-request-form.cc-field.emails-added': '{{emails}} ont été ajoutées', + 'new-request-form.cc-field.invalid-email': 'Adresse courriel non valide', + 'new-request-form.close-label': 'Fermer', + 'new-request-form.credit-card-digits-hint': '(4 derniers chiffres)', + 'new-request-form.dropdown.empty-option': 'Sélectionnez une option', + 'new-request-form.lookup-field.loading-options': 'Chargement des éléments en cours...', + 'new-request-form.lookup-field.no-matches-found': 'Aucun résultat', + 'new-request-form.lookup-field.placeholder': 'Rechercher {{label}}', + 'new-request-form.parent-request-link': 'Suivi de la demande {{parentId}}', + 'new-request-form.required-fields-info': + "Les champs marqués d'un astérisque (*) sont obligatoires.", + 'new-request-form.submit': 'Envoyer', + 'new-request-form.suggested-articles': 'Articles suggérés', +}; + +var frCa$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: frCa, +}); + +var fr = { + 'new-request-form.answer-bot-modal.footer-content': + 'S’il y répond, nous pouvons clore votre demande récente {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Cet article répond-il à la question ?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Non, j’ai besoin d’aide', + 'new-request-form.answer-bot-modal.request-closed': 'Super. Votre demande a été fermée.', + 'new-request-form.answer-bot-modal.request-submitted': 'Votre demande a été envoyée', + 'new-request-form.answer-bot-modal.solve-error': + 'Une erreur est survenue lors de la clôture de votre demande', + 'new-request-form.answer-bot-modal.solve-request': 'Oui, fermer ma demande', + 'new-request-form.answer-bot-modal.title': + 'En attendant, l’un de ces articles répond-il à votre question ?', + 'new-request-form.answer-bot-modal.view-article': 'Afficher l’article', + 'new-request-form.attachments.choose-file-label': + 'Choisissez un fichier ou faites un glisser-déposer ici', + 'new-request-form.attachments.drop-files-label': 'Déposez les fichiers ici', + 'new-request-form.attachments.remove-file': 'Supprimer le fichier', + 'new-request-form.attachments.stop-upload': 'Arrêter le chargement', + 'new-request-form.attachments.upload-error-description': + 'Une erreur est survenue lors du chargement de {{fileName}}. Réessayez ou chargez un autre fichier.', + 'new-request-form.attachments.upload-error-title': 'Erreur de chargement', + 'new-request-form.attachments.uploading': 'Chargement du fichier {{fileName}} en cours', + 'new-request-form.cc-field.container-label': 'E-mails en CC sélectionnés', + 'new-request-form.cc-field.email-added': '{{email}} a été ajouté', + 'new-request-form.cc-field.email-label': '{{email}} - Appuyez sur Retour arrière pour supprimer', + 'new-request-form.cc-field.email-removed': '{{email}} a été supprimé', + 'new-request-form.cc-field.emails-added': '{{emails}} ont été ajoutés', + 'new-request-form.cc-field.invalid-email': 'Adresse e-mail non valide', + 'new-request-form.close-label': 'Fermer', + 'new-request-form.credit-card-digits-hint': '(4 derniers chiffres)', + 'new-request-form.dropdown.empty-option': 'Sélectionnez une option', + 'new-request-form.lookup-field.loading-options': 'Chargement des éléments en cours...', + 'new-request-form.lookup-field.no-matches-found': 'Aucun résultat', + 'new-request-form.lookup-field.placeholder': 'Rechercher {{label}}', + 'new-request-form.parent-request-link': 'Suivi de la demande {{parentId}}', + 'new-request-form.required-fields-info': + "Les champs marqués d'un astérisque (*) sont obligatoires.", + 'new-request-form.submit': 'Envoyer', + 'new-request-form.suggested-articles': 'Articles suggérés', +}; + +var fr$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: fr, +}); + +var ga = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var ga$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ga, +}); + +var he = { + 'new-request-form.answer-bot-modal.footer-content': + 'אם כן, נוכל לסגור את בקשה {{requestId}} ששלחת לאחרונה', + 'new-request-form.answer-bot-modal.footer-title': 'האם המאמר הזה עונה על השאלה?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'לא, אני צריך עזרה', + 'new-request-form.answer-bot-modal.request-closed': 'נחמד. הבקשה נסגרה.', + 'new-request-form.answer-bot-modal.request-submitted': 'בקשתך נשלחה', + 'new-request-form.answer-bot-modal.solve-error': 'אירעה שגיאה בסגירת בקשתך', + 'new-request-form.answer-bot-modal.solve-request': 'כן, סגור את הבקשה שלי', + 'new-request-form.answer-bot-modal.title': 'בינתיים, האם אחד מהמאמרים האלה עונה על השאלה שלך?', + 'new-request-form.answer-bot-modal.view-article': 'הצג מאמר', + 'new-request-form.attachments.choose-file-label': 'בחר קובץ או גרור ושחרר כאן', + 'new-request-form.attachments.drop-files-label': 'שחרר את הקבצים כאן', + 'new-request-form.attachments.remove-file': 'הסר קובץ', + 'new-request-form.attachments.stop-upload': 'עצור העלאה', + 'new-request-form.attachments.upload-error-description': + 'אירעה שגיאה בהעלאת הקובץ {{fileName}}. נסה שוב או העלה קובץ אחר.', + 'new-request-form.attachments.upload-error-title': 'שגיאת העלאה', + 'new-request-form.attachments.uploading': 'מעלה את {{fileName}}', + 'new-request-form.cc-field.container-label': 'הודעות דוא"ל נבחרות עם עותק', + 'new-request-form.cc-field.email-added': 'כתובת הדוא"ל {{email}} נוספה', + 'new-request-form.cc-field.email-label': '{{email}} - לחץ על Backspace כדי להסיר', + 'new-request-form.cc-field.email-removed': 'כתובת הדוא"ל {{email}} הוסרה', + 'new-request-form.cc-field.emails-added': 'כתובת הדוא"ל {{emails}} נוספו', + 'new-request-form.cc-field.invalid-email': 'כתובת דואר אלקטרוני לא חוקית', + 'new-request-form.close-label': 'סגור', + 'new-request-form.credit-card-digits-hint': '(4 הספרות האחרונות)', + 'new-request-form.dropdown.empty-option': 'בחר אפשרות', + 'new-request-form.lookup-field.loading-options': 'טוען פריטים...', + 'new-request-form.lookup-field.no-matches-found': 'לא נמצאו התאמות', + 'new-request-form.lookup-field.placeholder': 'חיפוש {{label}}', + 'new-request-form.parent-request-link': 'מעקב לבקשה {{parentId}}', + 'new-request-form.required-fields-info': 'השדות המסומנים בכוכבית (*) הם שדות חובה.', + 'new-request-form.submit': 'שלח', + 'new-request-form.suggested-articles': 'מאמרים מוצעים', +}; + +var he$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: he, +}); + +var hi = { + 'new-request-form.answer-bot-modal.footer-content': + 'यदि ऐसा है, तो हम आपका हाल ही का अनुरोध बंद कर सकते है {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'क्या इस आलेख में आपके प्रश्न का उत्तर मिला?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'नहीं, मुझे सहायता चाहिए', + 'new-request-form.answer-bot-modal.request-closed': 'बढ़िया! आपका अनुरोध बंद कर दिया गया है।', + 'new-request-form.answer-bot-modal.request-submitted': 'आपका अनुरोध सफलतापूर्वक भेजा गया था', + 'new-request-form.answer-bot-modal.solve-error': 'आपका अनुरोध समाप्त करने में कोई त्रुटि थी', + 'new-request-form.answer-bot-modal.solve-request': 'हाँ, कृपया मेरा अनुरोध समाप्त करें', + 'new-request-form.answer-bot-modal.title': + 'प्रतीक्षा करते समय, क्या इन आलेखों से आपके प्रश्न का उत्तर मिलता है?', + 'new-request-form.answer-bot-modal.view-article': 'आलेख देखें', + 'new-request-form.attachments.choose-file-label': 'कोई फ़ाइल चुनें या यहां खींचें और छोड़ें', + 'new-request-form.attachments.drop-files-label': 'फाइलों को यहां छोड़ें', + 'new-request-form.attachments.remove-file': 'फ़ाइल हटाएं', + 'new-request-form.attachments.stop-upload': 'अपलोड बंद करें', + 'new-request-form.attachments.upload-error-description': + '{{fileName}}अपलोड करने में कोई त्रुटि थी। पुनः प्रयास करें या कोई अन्य फ़ाइल अपलोड करें।', + 'new-request-form.attachments.upload-error-title': 'त्रुटि अपलोड करें', + 'new-request-form.attachments.uploading': '{{fileName}} अपलोड हो रहा है', + 'new-request-form.cc-field.container-label': 'चयनित CC ईमेल', + 'new-request-form.cc-field.email-added': '{{email}} जोड़ा गया है', + 'new-request-form.cc-field.email-label': '{{email}} - हटाने के लिए बैकस्पेस दबाएं', + 'new-request-form.cc-field.email-removed': '{{email}} हटा दिया गया है', + 'new-request-form.cc-field.emails-added': '{{emails}} जोड़ा गया है', + 'new-request-form.cc-field.invalid-email': 'अमान्य ईमेल पता', + 'new-request-form.close-label': 'बंद करें', + 'new-request-form.credit-card-digits-hint': '(आखिरी 4 अक्षर)', + 'new-request-form.dropdown.empty-option': 'कोई विकल्प चुनें', + 'new-request-form.lookup-field.loading-options': 'आइटम लोड हो रहे हैं...', + 'new-request-form.lookup-field.no-matches-found': 'कोई मिलान नहीं मिले', + 'new-request-form.lookup-field.placeholder': 'खोज {{label}}', + 'new-request-form.parent-request-link': '{{parentId}} का अनुरोध करने के लिए फ़ॉलो-अप', + 'new-request-form.required-fields-info': 'तारांकन चिह्न (*) से चिह्नित फ़ील्ड आवश्यक हैं।', + 'new-request-form.submit': 'भेजें', + 'new-request-form.suggested-articles': 'सुझाए गए आलेख', +}; + +var hi$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: hi, +}); + +var hr = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var hr$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: hr, +}); + +var hu = { + 'new-request-form.answer-bot-modal.footer-content': + 'Ha igen, lezárhatjuk a legutóbbi kérelmét ({{requestId}})', + 'new-request-form.answer-bot-modal.footer-title': 'Megválaszolta a cikk a kérdését?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nem, segítségre van szükségem', + 'new-request-form.answer-bot-modal.request-closed': 'Remek! A kérelme ezzel le lett zárva.', + 'new-request-form.answer-bot-modal.request-submitted': 'A kérelme sikeresen be lett küldve', + 'new-request-form.answer-bot-modal.solve-error': 'Hiba történt a kérelme lezárásakor', + 'new-request-form.answer-bot-modal.solve-request': 'Igen, zárják le a kérelmemet', + 'new-request-form.answer-bot-modal.title': + 'Várakozás közben megtekintheti, hogy e cikkek közül választ ad-e valamelyik a kérdésére.', + 'new-request-form.answer-bot-modal.view-article': 'Cikk megtekintése', + 'new-request-form.attachments.choose-file-label': 'Válassza ki vagy húzza ide a kívánt fájlt', + 'new-request-form.attachments.drop-files-label': 'Húzza ide a fájlokat', + 'new-request-form.attachments.remove-file': 'Fájl eltávolítása', + 'new-request-form.attachments.stop-upload': 'Feltöltés leállítása', + 'new-request-form.attachments.upload-error-description': + 'Hiba történt a(z) {{fileName}} fájl feltöltése során. Próbálja meg újra, vagy töltsön fel egy másik fájlt.', + 'new-request-form.attachments.upload-error-title': 'Feltöltési hiba', + 'new-request-form.attachments.uploading': 'A(z) {{fileName}} fájl feltöltése folyamatban van', + 'new-request-form.cc-field.container-label': 'Másolatot kapó kiválasztott e-mail-címek', + 'new-request-form.cc-field.email-added': '{{email}} hozzáadva', + 'new-request-form.cc-field.email-label': + '{{email}} – Nyomja meg a Backspace billentyűt az eltávolításhoz', + 'new-request-form.cc-field.email-removed': '{{email}} eltávolítva', + 'new-request-form.cc-field.emails-added': '{{emails}} hozzáadva', + 'new-request-form.cc-field.invalid-email': 'Érvénytelen e-mail-cím', + 'new-request-form.close-label': 'Bezárás', + 'new-request-form.credit-card-digits-hint': '(Utolsó 4 számjegy)', + 'new-request-form.dropdown.empty-option': 'Válasszon egy lehetőséget', + 'new-request-form.lookup-field.loading-options': 'Elemek betöltése…', + 'new-request-form.lookup-field.no-matches-found': 'Nincs találat', + 'new-request-form.lookup-field.placeholder': '{{label}} keresése', + 'new-request-form.parent-request-link': 'Nyomon követés a(z) {{parentId}} kérelemhez', + 'new-request-form.required-fields-info': 'A csillaggal (*) jelzett mezők kitöltése kötelező.', + 'new-request-form.submit': 'Küldés', + 'new-request-form.suggested-articles': 'Javasolt cikkek', +}; + +var hu$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: hu, +}); + +var hy = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var hy$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: hy, +}); + +var id = { + 'new-request-form.answer-bot-modal.footer-content': + 'Jika demikian, kami dapat menutup permintaan Anda baru-baru ini {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Apakah artikel ini menjawab pertanyaan Anda?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Tidak, saya perlu bantuan', + 'new-request-form.answer-bot-modal.request-closed': 'Bagus. Permintaan Anda telah ditutup.', + 'new-request-form.answer-bot-modal.request-submitted': 'Permintaan Anda berhasil dikirimkan', + 'new-request-form.answer-bot-modal.solve-error': 'Ada kesalahan dalam menutup permintaan Anda', + 'new-request-form.answer-bot-modal.solve-request': 'Ya, tutup permintaan saya', + 'new-request-form.answer-bot-modal.title': + 'Sementara Anda menunggu, apakah ada di antara artikel-artikel ini yang menjawab pertanyaan Anda?', + 'new-request-form.answer-bot-modal.view-article': 'Lihat artikel', + 'new-request-form.attachments.choose-file-label': 'Pilih file atau tarik dan letakkan di sini', + 'new-request-form.attachments.drop-files-label': 'Letakkan file di sini', + 'new-request-form.attachments.remove-file': 'Hapus file', + 'new-request-form.attachments.stop-upload': 'Berhenti mengunggah', + 'new-request-form.attachments.upload-error-description': + 'Terjadi kesalahan saat mengunggah {{fileName}}. Cobalah lagi atau unggah file lain.', + 'new-request-form.attachments.upload-error-title': 'Kesalahan Mengunggah', + 'new-request-form.attachments.uploading': 'Mengunggah {{fileName}}', + 'new-request-form.cc-field.container-label': 'Email CC yang dipilih', + 'new-request-form.cc-field.email-added': '{{email}} telah ditambahkan', + 'new-request-form.cc-field.email-label': '{{email}} - Tekan Backspace untuk menghapus', + 'new-request-form.cc-field.email-removed': '{{email}} telah dihapus', + 'new-request-form.cc-field.emails-added': '{{emails}} telah ditambahkan', + 'new-request-form.cc-field.invalid-email': 'Alamat email tidak valid', + 'new-request-form.close-label': 'Tutup', + 'new-request-form.credit-card-digits-hint': '(4 digit terakhir)', + 'new-request-form.dropdown.empty-option': 'Pilih opsi', + 'new-request-form.lookup-field.loading-options': 'Memuat item...', + 'new-request-form.lookup-field.no-matches-found': 'Tidak ada kecocokan yang ditemukan', + 'new-request-form.lookup-field.placeholder': 'Cari {{label}}', + 'new-request-form.parent-request-link': 'Tindak lanjut atas permintaan {{parentId}}', + 'new-request-form.required-fields-info': + 'Bidang yang ditandai dengan tanda bintang (*) wajib diisi.', + 'new-request-form.submit': 'Kirim', + 'new-request-form.suggested-articles': 'Artikel yang disarankan', +}; + +var id$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: id, +}); + +var is = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var is$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: is, +}); + +var itCh = { + 'new-request-form.answer-bot-modal.footer-content': + 'In caso affermativo, possiamo chiudere la recente richiesta {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Questo articolo risponde alla domanda?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, ho bisogno di aiuto', + 'new-request-form.answer-bot-modal.request-closed': 'Ottimo! La richiesta è stata chiusa.', + 'new-request-form.answer-bot-modal.request-submitted': + 'La richiesta è stata inviata correttamente', + 'new-request-form.answer-bot-modal.solve-error': 'Errore durante la chiusura della richiesta', + 'new-request-form.answer-bot-modal.solve-request': 'Sì, chiudi la richiesta', + 'new-request-form.answer-bot-modal.title': + 'Nell’attesa, le informazioni in uno o più di questi articoli potrebbero rispondere alla domanda.', + 'new-request-form.answer-bot-modal.view-article': 'Visualizza articolo', + 'new-request-form.attachments.choose-file-label': 'Scegli un file o trascinalo qui', + 'new-request-form.attachments.drop-files-label': 'Trascina qui i file', + 'new-request-form.attachments.remove-file': 'Rimuovi file', + 'new-request-form.attachments.stop-upload': 'Interrompi caricamento', + 'new-request-form.attachments.upload-error-description': + 'Errore durante il caricamento di {{fileName}}. Riprova o carica un altro file.', + 'new-request-form.attachments.upload-error-title': 'Errore nel caricamento', + 'new-request-form.attachments.uploading': 'Caricamento di {{fileName}}', + 'new-request-form.cc-field.container-label': 'Indirizzi email CC selezionati', + 'new-request-form.cc-field.email-added': '{{email}} è stato aggiunto', + 'new-request-form.cc-field.email-label': '{{email}} - Premi Backspace per rimuovere', + 'new-request-form.cc-field.email-removed': '{{email}} è stato rimosso', + 'new-request-form.cc-field.emails-added': '{{emails}} sono stati aggiunti', + 'new-request-form.cc-field.invalid-email': 'Indirizzo email non valido', + 'new-request-form.close-label': 'Chiudi', + 'new-request-form.credit-card-digits-hint': '(Ultime 4 cifre)', + 'new-request-form.dropdown.empty-option': 'Seleziona un’opzione', + 'new-request-form.lookup-field.loading-options': 'Caricamento elementi in corso...', + 'new-request-form.lookup-field.no-matches-found': 'Nessuna corrispondenza trovata', + 'new-request-form.lookup-field.placeholder': 'Cerca {{label}}', + 'new-request-form.parent-request-link': 'Follow-up alla richiesta {{parentId}}', + 'new-request-form.required-fields-info': + 'I campi contrassegnati da un asterisco (*) sono obbligatori.', + 'new-request-form.submit': 'Invia', + 'new-request-form.suggested-articles': 'Articoli suggeriti', +}; + +var itCh$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: itCh, +}); + +var it = { + 'new-request-form.answer-bot-modal.footer-content': + 'In caso affermativo, possiamo chiudere la recente richiesta {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Questo articolo risponde alla domanda?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, ho bisogno di aiuto', + 'new-request-form.answer-bot-modal.request-closed': 'Ottimo! La richiesta è stata chiusa.', + 'new-request-form.answer-bot-modal.request-submitted': + 'La richiesta è stata inviata correttamente', + 'new-request-form.answer-bot-modal.solve-error': 'Errore durante la chiusura della richiesta', + 'new-request-form.answer-bot-modal.solve-request': 'Sì, chiudi la richiesta', + 'new-request-form.answer-bot-modal.title': + 'Nell’attesa, le informazioni in uno o più di questi articoli potrebbero rispondere alla domanda.', + 'new-request-form.answer-bot-modal.view-article': 'Visualizza articolo', + 'new-request-form.attachments.choose-file-label': 'Scegli un file o trascinalo qui', + 'new-request-form.attachments.drop-files-label': 'Trascina qui i file', + 'new-request-form.attachments.remove-file': 'Rimuovi file', + 'new-request-form.attachments.stop-upload': 'Interrompi caricamento', + 'new-request-form.attachments.upload-error-description': + 'Errore durante il caricamento di {{fileName}}. Riprova o carica un altro file.', + 'new-request-form.attachments.upload-error-title': 'Errore nel caricamento', + 'new-request-form.attachments.uploading': 'Caricamento di {{fileName}}', + 'new-request-form.cc-field.container-label': 'Indirizzi email CC selezionati', + 'new-request-form.cc-field.email-added': '{{email}} è stato aggiunto', + 'new-request-form.cc-field.email-label': '{{email}} - Premi Backspace per rimuovere', + 'new-request-form.cc-field.email-removed': '{{email}} è stato rimosso', + 'new-request-form.cc-field.emails-added': '{{emails}} sono stati aggiunti', + 'new-request-form.cc-field.invalid-email': 'Indirizzo email non valido', + 'new-request-form.close-label': 'Chiudi', + 'new-request-form.credit-card-digits-hint': '(Ultime 4 cifre)', + 'new-request-form.dropdown.empty-option': 'Seleziona un’opzione', + 'new-request-form.lookup-field.loading-options': 'Caricamento elementi in corso...', + 'new-request-form.lookup-field.no-matches-found': 'Nessuna corrispondenza trovata', + 'new-request-form.lookup-field.placeholder': 'Cerca {{label}}', + 'new-request-form.parent-request-link': 'Follow-up alla richiesta {{parentId}}', + 'new-request-form.required-fields-info': + 'I campi contrassegnati da un asterisco (*) sono obbligatori.', + 'new-request-form.submit': 'Invia', + 'new-request-form.suggested-articles': 'Articoli suggeriti', +}; + +var it$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: it, +}); + +var ja = { + 'new-request-form.answer-bot-modal.footer-content': + '質問が解決していれば、最新のリクエスト{{requestId}}を終了します', + 'new-request-form.answer-bot-modal.footer-title': 'この記事で疑問が解消されましたか?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'いいえ、ヘルプが必要です', + 'new-request-form.answer-bot-modal.request-closed': + 'お役に立てて嬉しいです。リクエストは終了しました。', + 'new-request-form.answer-bot-modal.request-submitted': 'リクエストは正しく送信されました', + 'new-request-form.answer-bot-modal.solve-error': 'リクエストを終了する際にエラーが発生しました', + 'new-request-form.answer-bot-modal.solve-request': 'はい、リクエストを終了', + 'new-request-form.answer-bot-modal.title': 'これらの記事のいずれかで疑問が解消されますか?', + 'new-request-form.answer-bot-modal.view-article': '記事を表示', + 'new-request-form.attachments.choose-file-label': + 'ファイルを選択するか、ここにドラッグアンドドロップします', + 'new-request-form.attachments.drop-files-label': 'ファイルをここにドロップ', + 'new-request-form.attachments.remove-file': 'ファイル削除', + 'new-request-form.attachments.stop-upload': 'アップロードを停止', + 'new-request-form.attachments.upload-error-description': + '{{fileName}}のアップロード中にエラーが発生しました。もう一度やり直すか、別のファイルをアップロードしてください。', + 'new-request-form.attachments.upload-error-title': 'アップロードエラー', + 'new-request-form.attachments.uploading': '{{fileName}}をアップロード中', + 'new-request-form.cc-field.container-label': '選択したCCメールアドレス', + 'new-request-form.cc-field.email-added': '{{email}}を追加しました', + 'new-request-form.cc-field.email-label': '{{email}} - 削除するにはBackspaceキーを押します', + 'new-request-form.cc-field.email-removed': '{{email}}を削除しました', + 'new-request-form.cc-field.emails-added': '{{emails}}を追加しました', + 'new-request-form.cc-field.invalid-email': 'メールアドレスが正しくありません', + 'new-request-form.close-label': '閉じる', + 'new-request-form.credit-card-digits-hint': '(下4桁)', + 'new-request-form.dropdown.empty-option': 'オプションを選択します', + 'new-request-form.lookup-field.loading-options': 'アイテムを読み込み中...', + 'new-request-form.lookup-field.no-matches-found': '一致するものが見つかりません', + 'new-request-form.lookup-field.placeholder': '{{label}}を検索', + 'new-request-form.parent-request-link': 'リクエスト{{parentId}}の補足', + 'new-request-form.required-fields-info': 'アスタリスク(*)が付いているフィールドは必須です。', + 'new-request-form.submit': '送信', + 'new-request-form.suggested-articles': 'おすすめの記事', +}; + +var ja$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ja, +}); + +var ka = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var ka$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ka, +}); + +var kk = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var kk$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: kk, +}); + +var klDk = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var klDk$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: klDk, +}); + +var ko = { + 'new-request-form.answer-bot-modal.footer-content': + '그렇다면 최근 요청 {{requestId}}을(를) 종료할 수 있습니다.', + 'new-request-form.answer-bot-modal.footer-title': '이 문서가 질문에 대한 답이 되었나요?', + 'new-request-form.answer-bot-modal.mark-irrelevant': '아니요, 도움이 필요합니다.', + 'new-request-form.answer-bot-modal.request-closed': + '도움이 되었다니 기쁩니다. 요청이 종료되었습니다.', + 'new-request-form.answer-bot-modal.request-submitted': '요청을 제출했습니다.', + 'new-request-form.answer-bot-modal.solve-error': '요청을 종료하는 중 오류가 발생했습니다.', + 'new-request-form.answer-bot-modal.solve-request': '예, 요청을 종료합니다', + 'new-request-form.answer-bot-modal.title': + '기다리는 동안 다음 문서 중에서 질문에 대한 답변을 찾으셨나요?', + 'new-request-form.answer-bot-modal.view-article': '문서 보기', + 'new-request-form.attachments.choose-file-label': + '파일을 선택하거나 여기에 드래그 앤 드롭하세요.', + 'new-request-form.attachments.drop-files-label': '파일을 여기에 드롭하세요', + 'new-request-form.attachments.remove-file': '파일 제거', + 'new-request-form.attachments.stop-upload': '업로드 중지', + 'new-request-form.attachments.upload-error-description': + '{{fileName}}을(를) 업로드하는 중 오류가 발생했습니다. 다시 시도하거나 다른 파일을 업로드하세요.', + 'new-request-form.attachments.upload-error-title': '업로드 오류', + 'new-request-form.attachments.uploading': '{{fileName}} 업로드 중', + 'new-request-form.cc-field.container-label': '선택한 참조 이메일', + 'new-request-form.cc-field.email-added': '{{email}}이(가) 추가되었습니다.', + 'new-request-form.cc-field.email-label': '{{email}} - 제거하려면 백스페이스 키를 누르세요.', + 'new-request-form.cc-field.email-removed': '{{email}}이(가) 제거되었습니다.', + 'new-request-form.cc-field.emails-added': '{{emails}}이(가) 추가되었습니다.', + 'new-request-form.cc-field.invalid-email': '올바르지 않은 이메일 주소', + 'new-request-form.close-label': '닫기', + 'new-request-form.credit-card-digits-hint': '(마지막 4자리)', + 'new-request-form.dropdown.empty-option': '옵션을 선택하세요.', + 'new-request-form.lookup-field.loading-options': '항목 로드 중...', + 'new-request-form.lookup-field.no-matches-found': '일치 항목을 찾지 못함', + 'new-request-form.lookup-field.placeholder': '{{label}} 검색', + 'new-request-form.parent-request-link': '요청 {{parentId}}에 대한 후속 작업', + 'new-request-form.required-fields-info': '별표(*)가 표시된 필드는 필수입니다.', + 'new-request-form.submit': '제출', + 'new-request-form.suggested-articles': '추천 문서', +}; + +var ko$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ko, +}); + +var ku = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var ku$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ku, +}); + +var lt = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var lt$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: lt, +}); + +var lv = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var lv$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: lv, +}); + +var mk = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var mk$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: mk, +}); + +var mn = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var mn$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: mn, +}); + +var ms = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var ms$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ms, +}); + +var mt = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var mt$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: mt, +}); + +var my = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var my$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: my, +}); + +var nlBe = { + 'new-request-form.answer-bot-modal.footer-content': + 'Als dat het geval is, kunnen wij uw recente aanvraag {{requestId}} sluiten', + 'new-request-form.answer-bot-modal.footer-title': 'Beantwoordt dit artikel uw vraag?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nee, ik heb hulp nodig', + 'new-request-form.answer-bot-modal.request-closed': 'Fijn. Uw aanvraag is gesloten.', + 'new-request-form.answer-bot-modal.request-submitted': 'Uw aanvraag is verzonden', + 'new-request-form.answer-bot-modal.solve-error': 'Fout tijdens het sluiten van uw aanvraag', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, mijn aanvraag sluiten', + 'new-request-form.answer-bot-modal.title': + 'Terwijl u wacht: beantwoordt een van deze artikelen uw vraag?', + 'new-request-form.answer-bot-modal.view-article': 'Artikel weergeven', + 'new-request-form.attachments.choose-file-label': 'Kies een bestand of versleep het hierheen', + 'new-request-form.attachments.drop-files-label': 'Zet bestanden hier neer', + 'new-request-form.attachments.remove-file': 'Bestand verwijderen', + 'new-request-form.attachments.stop-upload': 'Upload stoppen', + 'new-request-form.attachments.upload-error-description': + 'Fout tijdens uploaden van {{fileName}}. Probeer het opnieuw of upload een ander bestand.', + 'new-request-form.attachments.upload-error-title': 'Fout bij uploaden', + 'new-request-form.attachments.uploading': '{{fileName}} wordt geüpload', + 'new-request-form.cc-field.container-label': 'Geselecteerde e-mails in cc', + 'new-request-form.cc-field.email-added': '{{email}} is toegevoegd', + 'new-request-form.cc-field.email-label': '{{email}} - Druk op Backspace om te verwijderen', + 'new-request-form.cc-field.email-removed': '{{email}} is verwijderd', + 'new-request-form.cc-field.emails-added': '{{emails}} zijn toegevoegd', + 'new-request-form.cc-field.invalid-email': 'Ongeldig e-mailadres', + 'new-request-form.close-label': 'Sluiten', + 'new-request-form.credit-card-digits-hint': '(Laatste 4 cijfers)', + 'new-request-form.dropdown.empty-option': 'Selecteer een optie', + 'new-request-form.lookup-field.loading-options': 'Items laden...', + 'new-request-form.lookup-field.no-matches-found': 'Geen overeenkomsten gevonden', + 'new-request-form.lookup-field.placeholder': 'Zoeken in {{label}}', + 'new-request-form.parent-request-link': 'Follow-up van aanvraag {{parentId}}', + 'new-request-form.required-fields-info': 'Velden met een sterretje (*) zijn vereist.', + 'new-request-form.submit': 'Verzenden', + 'new-request-form.suggested-articles': 'Voorgestelde artikelen', +}; + +var nlBe$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: nlBe, +}); + +var nl = { + 'new-request-form.answer-bot-modal.footer-content': + 'Als dat het geval is, kunnen wij uw recente aanvraag {{requestId}} sluiten', + 'new-request-form.answer-bot-modal.footer-title': 'Beantwoordt dit artikel uw vraag?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nee, ik heb hulp nodig', + 'new-request-form.answer-bot-modal.request-closed': 'Fijn. Uw aanvraag is gesloten.', + 'new-request-form.answer-bot-modal.request-submitted': 'Uw aanvraag is verzonden', + 'new-request-form.answer-bot-modal.solve-error': 'Fout tijdens het sluiten van uw aanvraag', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, mijn aanvraag sluiten', + 'new-request-form.answer-bot-modal.title': + 'Terwijl u wacht: beantwoordt een van deze artikelen uw vraag?', + 'new-request-form.answer-bot-modal.view-article': 'Artikel weergeven', + 'new-request-form.attachments.choose-file-label': 'Kies een bestand of versleep het hierheen', + 'new-request-form.attachments.drop-files-label': 'Zet bestanden hier neer', + 'new-request-form.attachments.remove-file': 'Bestand verwijderen', + 'new-request-form.attachments.stop-upload': 'Upload stoppen', + 'new-request-form.attachments.upload-error-description': + 'Fout tijdens uploaden van {{fileName}}. Probeer het opnieuw of upload een ander bestand.', + 'new-request-form.attachments.upload-error-title': 'Fout bij uploaden', + 'new-request-form.attachments.uploading': '{{fileName}} wordt geüpload', + 'new-request-form.cc-field.container-label': 'Geselecteerde e-mails in cc', + 'new-request-form.cc-field.email-added': '{{email}} is toegevoegd', + 'new-request-form.cc-field.email-label': '{{email}} - Druk op Backspace om te verwijderen', + 'new-request-form.cc-field.email-removed': '{{email}} is verwijderd', + 'new-request-form.cc-field.emails-added': '{{emails}} zijn toegevoegd', + 'new-request-form.cc-field.invalid-email': 'Ongeldig e-mailadres', + 'new-request-form.close-label': 'Sluiten', + 'new-request-form.credit-card-digits-hint': '(Laatste 4 cijfers)', + 'new-request-form.dropdown.empty-option': 'Selecteer een optie', + 'new-request-form.lookup-field.loading-options': 'Items laden...', + 'new-request-form.lookup-field.no-matches-found': 'Geen overeenkomsten gevonden', + 'new-request-form.lookup-field.placeholder': 'Zoeken in {{label}}', + 'new-request-form.parent-request-link': 'Follow-up van aanvraag {{parentId}}', + 'new-request-form.required-fields-info': 'Velden met een sterretje (*) zijn vereist.', + 'new-request-form.submit': 'Verzenden', + 'new-request-form.suggested-articles': 'Voorgestelde artikelen', +}; + +var nl$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: nl, +}); + +var no = { + 'new-request-form.answer-bot-modal.footer-content': + 'Hvis den gjør det, kan vi avslutte den nylige forespørselen {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': + 'Fant du svar på spørsmålet i denne artikkelen?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nei, jeg trenger hjelp', + 'new-request-form.answer-bot-modal.request-closed': 'Flott! Forespørselen er avsluttet.', + 'new-request-form.answer-bot-modal.request-submitted': 'Forespørselen ble sendt inn', + 'new-request-form.answer-bot-modal.solve-error': + 'Det oppstod en feil under lukking av forespørselen', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, avslutt forespørselen', + 'new-request-form.answer-bot-modal.title': + 'Mens du venter: Kanskje en av disse artiklene har svar på spørsmålet ditt?', + 'new-request-form.answer-bot-modal.view-article': 'Vis artikkel', + 'new-request-form.attachments.choose-file-label': 'Velg en fil eller dra og slipp her', + 'new-request-form.attachments.drop-files-label': 'Slipp filene her', + 'new-request-form.attachments.remove-file': 'Fjern fil', + 'new-request-form.attachments.stop-upload': 'Stopp opplastingen', + 'new-request-form.attachments.upload-error-description': + 'Det oppstod en feil under opplastingen {{fileName}}. Prøv på nytt eller last opp en annen fil.', + 'new-request-form.attachments.upload-error-title': 'Feil under opplasting', + 'new-request-form.attachments.uploading': 'Laster opp {{fileName}}', + 'new-request-form.cc-field.container-label': 'Valgte e-poster kopi til', + 'new-request-form.cc-field.email-added': '{{email}} har blitt lagt til', + 'new-request-form.cc-field.email-label': '{{email}} - Trykk på Tilbaketasten for å fjerne', + 'new-request-form.cc-field.email-removed': '{{email}} er fjernet', + 'new-request-form.cc-field.emails-added': '{{emails}} er lagt til', + 'new-request-form.cc-field.invalid-email': 'Ugyldig e-postadresse', + 'new-request-form.close-label': 'Lukk', + 'new-request-form.credit-card-digits-hint': '(4 siste sifre)', + 'new-request-form.dropdown.empty-option': 'Velg et alternativ', + 'new-request-form.lookup-field.loading-options': 'Laster inn elementer...', + 'new-request-form.lookup-field.no-matches-found': 'Fant ingen samsvarende', + 'new-request-form.lookup-field.placeholder': 'Søk {{label}}', + 'new-request-form.parent-request-link': 'Oppfølging av forespørsel {{parentId}}', + 'new-request-form.required-fields-info': 'Felter merket med en stjerne (*) er obligatoriske.', + 'new-request-form.submit': 'Send inn', + 'new-request-form.suggested-articles': 'Foreslåtte artikler', +}; + +var no$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: no, +}); + +var pl = { + 'new-request-form.answer-bot-modal.footer-content': + 'Jeśli tak, możemy zamknąć zlecenie {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Czy artykuł dostarczył odpowiedzi na pytanie?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nie, potrzebuję pomocy', + 'new-request-form.answer-bot-modal.request-closed': 'Świetnie. Zlecenie zostało zamknięte.', + 'new-request-form.answer-bot-modal.request-submitted': 'Zlecenie zostało wysłane', + 'new-request-form.answer-bot-modal.solve-error': 'Podczas zamykania zlecenia wystąpił błąd', + 'new-request-form.answer-bot-modal.solve-request': 'Tak, zamknij zlecenie', + 'new-request-form.answer-bot-modal.title': + 'W czasie gdy oczekujesz na odpowiedź, może zechcesz nam powiedzieć, czy którykolwiek z tych artykułów zawiera odpowiedź na pytanie?', + 'new-request-form.answer-bot-modal.view-article': 'Wyświetl artykuł', + 'new-request-form.attachments.choose-file-label': 'Wybierz plik lub przeciągnij i upuść go tutaj', + 'new-request-form.attachments.drop-files-label': 'Upuść pliki tutaj', + 'new-request-form.attachments.remove-file': 'Usuń plik', + 'new-request-form.attachments.stop-upload': 'Zatrzymaj przesyłanie', + 'new-request-form.attachments.upload-error-description': + 'Podczas przesyłania wystąpił błąd {{fileName}}. Spróbuj ponownie lub prześlij inny plik.', + 'new-request-form.attachments.upload-error-title': 'Błąd przesyłania', + 'new-request-form.attachments.uploading': 'Przesyłanie {{fileName}}', + 'new-request-form.cc-field.container-label': 'Wybrane e-maile z pola DW', + 'new-request-form.cc-field.email-added': 'Dodano {{email}}', + 'new-request-form.cc-field.email-label': '{{email}} – naciśnij Backspace, aby usunąć', + 'new-request-form.cc-field.email-removed': 'Usunięto {{email}}', + 'new-request-form.cc-field.emails-added': 'Dodano {{emails}}', + 'new-request-form.cc-field.invalid-email': 'Nieprawidłowy adres e-mail', + 'new-request-form.close-label': 'Zamknij', + 'new-request-form.credit-card-digits-hint': '(ostatnie 4 cyfry)', + 'new-request-form.dropdown.empty-option': 'Wybierz opcję', + 'new-request-form.lookup-field.loading-options': 'Ładowanie elementów...', + 'new-request-form.lookup-field.no-matches-found': 'Nie znaleziono dopasowań', + 'new-request-form.lookup-field.placeholder': 'Szukaj {{label}}', + 'new-request-form.parent-request-link': 'Kontynuacja zlecenia {{parentId}}', + 'new-request-form.required-fields-info': 'Pola oznaczone gwiazdką (*) są wymagane.', + 'new-request-form.submit': 'Wyślij', + 'new-request-form.suggested-articles': 'Propozycje artykułów', +}; + +var pl$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: pl, +}); + +var ptBr = { + 'new-request-form.answer-bot-modal.footer-content': + 'Se sim, podemos fechar a solicitação recente {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Esse artigo responde à pergunta?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Não, preciso de ajuda', + 'new-request-form.answer-bot-modal.request-closed': 'Legal! A solicitação foi fechada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Sua solicitação foi enviada com êxito', + 'new-request-form.answer-bot-modal.solve-error': 'Erro ao fechar a solicitação', + 'new-request-form.answer-bot-modal.solve-request': 'Sim, feche a solicitação', + 'new-request-form.answer-bot-modal.title': + 'Enquanto você aguarda, algum desses artigos responde à pergunta?', + 'new-request-form.answer-bot-modal.view-article': 'Exibir artigo', + 'new-request-form.attachments.choose-file-label': 'Escolha um arquivo ou arraste e solte aqui', + 'new-request-form.attachments.drop-files-label': 'Solte os arquivos aqui', + 'new-request-form.attachments.remove-file': 'Remover arquivo', + 'new-request-form.attachments.stop-upload': 'Interromper carregamento', + 'new-request-form.attachments.upload-error-description': + 'Erro ao carregar {{fileName}}. Tente novamente ou carregue outro arquivo.', + 'new-request-form.attachments.upload-error-title': 'Erro de carregamento', + 'new-request-form.attachments.uploading': 'Carregando {{fileName}}', + 'new-request-form.cc-field.container-label': 'E-mails de cópia selecionados', + 'new-request-form.cc-field.email-added': '{{email}} foi adicionado', + 'new-request-form.cc-field.email-label': '{{email}} – Pressione Backspace para remover', + 'new-request-form.cc-field.email-removed': '{{email}} foi removido', + 'new-request-form.cc-field.emails-added': '{{emails}} foram adicionados', + 'new-request-form.cc-field.invalid-email': 'Endereço de e-mail inválido', + 'new-request-form.close-label': 'Fechar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Selecionar uma opção', + 'new-request-form.lookup-field.loading-options': 'Carregando itens...', + 'new-request-form.lookup-field.no-matches-found': 'Nenhuma correspondência encontrada', + 'new-request-form.lookup-field.placeholder': 'Pesquisar {{label}}', + 'new-request-form.parent-request-link': 'Acompanhamento da solicitação {{parentId}}', + 'new-request-form.required-fields-info': + 'Os campos marcados com um asterisco (*) são obrigatórios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artigos sugeridos', +}; + +var ptBr$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ptBr, +}); + +var pt = { + 'new-request-form.answer-bot-modal.footer-content': + 'Se sim, podemos fechar a solicitação recente {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Esse artigo responde à pergunta?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Não, preciso de ajuda', + 'new-request-form.answer-bot-modal.request-closed': 'Legal! A solicitação foi fechada.', + 'new-request-form.answer-bot-modal.request-submitted': 'Sua solicitação foi enviada com êxito', + 'new-request-form.answer-bot-modal.solve-error': 'Erro ao fechar a solicitação', + 'new-request-form.answer-bot-modal.solve-request': 'Sim, feche a solicitação', + 'new-request-form.answer-bot-modal.title': + 'Enquanto você aguarda, algum desses artigos responde à pergunta?', + 'new-request-form.answer-bot-modal.view-article': 'Exibir artigo', + 'new-request-form.attachments.choose-file-label': 'Escolha um arquivo ou arraste e solte aqui', + 'new-request-form.attachments.drop-files-label': 'Solte os arquivos aqui', + 'new-request-form.attachments.remove-file': 'Remover arquivo', + 'new-request-form.attachments.stop-upload': 'Interromper carregamento', + 'new-request-form.attachments.upload-error-description': + 'Erro ao carregar {{fileName}}. Tente novamente ou carregue outro arquivo.', + 'new-request-form.attachments.upload-error-title': 'Erro de carregamento', + 'new-request-form.attachments.uploading': 'Carregando {{fileName}}', + 'new-request-form.cc-field.container-label': 'E-mails de cópia selecionados', + 'new-request-form.cc-field.email-added': '{{email}} foi adicionado', + 'new-request-form.cc-field.email-label': '{{email}} – Pressione Backspace para remover', + 'new-request-form.cc-field.email-removed': '{{email}} foi removido', + 'new-request-form.cc-field.emails-added': '{{emails}} foram adicionados', + 'new-request-form.cc-field.invalid-email': 'Endereço de e-mail inválido', + 'new-request-form.close-label': 'Fechar', + 'new-request-form.credit-card-digits-hint': '(Últimos 4 dígitos)', + 'new-request-form.dropdown.empty-option': 'Selecionar uma opção', + 'new-request-form.lookup-field.loading-options': 'Carregando itens...', + 'new-request-form.lookup-field.no-matches-found': 'Nenhuma correspondência encontrada', + 'new-request-form.lookup-field.placeholder': 'Pesquisar {{label}}', + 'new-request-form.parent-request-link': 'Acompanhamento da solicitação {{parentId}}', + 'new-request-form.required-fields-info': + 'Os campos marcados com um asterisco (*) são obrigatórios.', + 'new-request-form.submit': 'Enviar', + 'new-request-form.suggested-articles': 'Artigos sugeridos', +}; + +var pt$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: pt, +}); + +var ro = { + 'new-request-form.answer-bot-modal.footer-content': + 'Dacă reușește, putem închide solicitarea recentă {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Acest articol răspunde la întrebare?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nu, am nevoie de ajutor', + 'new-request-form.answer-bot-modal.request-closed': 'Grozav. Solicitarea a fost închisă.', + 'new-request-form.answer-bot-modal.request-submitted': 'Solicitarea a fost transmisă cu succes', + 'new-request-form.answer-bot-modal.solve-error': 'A apărut o eroare la închiderea solicitării', + 'new-request-form.answer-bot-modal.solve-request': 'Da, închideți solicitarea', + 'new-request-form.answer-bot-modal.title': + 'Cât așteptați, vreunul dintre aceste articole răspunde la întrebarea dumneavoastră?', + 'new-request-form.answer-bot-modal.view-article': 'Vizualizare articol', + 'new-request-form.attachments.choose-file-label': 'Alegeți un fișier sau glisați și fixați aici', + 'new-request-form.attachments.drop-files-label': 'Glisați fișierele aici', + 'new-request-form.attachments.remove-file': 'Eliminare fișier', + 'new-request-form.attachments.stop-upload': 'Oprire încărcare', + 'new-request-form.attachments.upload-error-description': + 'A apărut o eroare la încărcarea {{fileName}}. Încercați din nou sau încărcați un alt fișier.', + 'new-request-form.attachments.upload-error-title': 'Eroare de încărcare', + 'new-request-form.attachments.uploading': 'Se încarcă {{fileName}}', + 'new-request-form.cc-field.container-label': 'E-mailuri CC selectate', + 'new-request-form.cc-field.email-added': '{{email}} a fost adăugată', + 'new-request-form.cc-field.email-label': '{{email}} - Apăsați Backspace pentru a elimina', + 'new-request-form.cc-field.email-removed': '{{email}} a fost eliminată', + 'new-request-form.cc-field.emails-added': '{{emails}} au fost adăugate', + 'new-request-form.cc-field.invalid-email': 'Adresă de e-mail nevalidă', + 'new-request-form.close-label': 'Închidere', + 'new-request-form.credit-card-digits-hint': '(Ultimele 4 cifre)', + 'new-request-form.dropdown.empty-option': 'Selectați o opțiune', + 'new-request-form.lookup-field.loading-options': 'Se încarcă articolele...', + 'new-request-form.lookup-field.no-matches-found': 'Nu s-au găsit corespondențe', + 'new-request-form.lookup-field.placeholder': 'Căutare {{label}}', + 'new-request-form.parent-request-link': 'Continuarea comunicării pentru solicitarea {{parentId}}', + 'new-request-form.required-fields-info': 'Câmpurile marcate cu un asterisc (*) sunt obligatorii.', + 'new-request-form.submit': 'Trimitere', + 'new-request-form.suggested-articles': 'Articole sugerate', +}; + +var ro$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ro, +}); + +var ru = { + 'new-request-form.answer-bot-modal.footer-content': + 'Если да, мы можем закрыть запрос {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Есть ли в этой статье ответ на вопрос?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Нет, мне нужна помощь', + 'new-request-form.answer-bot-modal.request-closed': 'Превосходно. Запрос закрыт.', + 'new-request-form.answer-bot-modal.request-submitted': 'Ваш запрос отправлен', + 'new-request-form.answer-bot-modal.solve-error': 'Ошибка при закрытии запроса', + 'new-request-form.answer-bot-modal.solve-request': 'Да, закрыть мой запрос', + 'new-request-form.answer-bot-modal.title': + 'Пока вы ожидаете, есть ли в какой-то из этих статей ответ на ваш вопрос?', + 'new-request-form.answer-bot-modal.view-article': 'Просмотреть статью', + 'new-request-form.attachments.choose-file-label': 'Выберите файл или перетащите его сюда', + 'new-request-form.attachments.drop-files-label': 'Перетащите файлы сюда', + 'new-request-form.attachments.remove-file': 'Удалить файл', + 'new-request-form.attachments.stop-upload': 'Остановить выкладывание', + 'new-request-form.attachments.upload-error-description': + 'Ошибка при выкладывании {{fileName}}. Повторите попытку или выложите другой файл.', + 'new-request-form.attachments.upload-error-title': 'Ошибка выкладывания', + 'new-request-form.attachments.uploading': 'Выкладывание {{fileName}}', + 'new-request-form.cc-field.container-label': 'Выбранные письма для копии', + 'new-request-form.cc-field.email-added': 'Адрес {{email}} добавлен', + 'new-request-form.cc-field.email-label': '{{email}} — нажмите клавишу Backspace для удаления', + 'new-request-form.cc-field.email-removed': 'Адрес {{email}} удален', + 'new-request-form.cc-field.emails-added': 'Добавлены адреса {{emails}}', + 'new-request-form.cc-field.invalid-email': 'Недействительный адрес электронной почты', + 'new-request-form.close-label': 'Закрыть', + 'new-request-form.credit-card-digits-hint': '(последние 4 цифры)', + 'new-request-form.dropdown.empty-option': 'Выберите вариант', + 'new-request-form.lookup-field.loading-options': 'Загрузка элементов...', + 'new-request-form.lookup-field.no-matches-found': 'Соответствия не найдены', + 'new-request-form.lookup-field.placeholder': 'Поиск: {{label}}', + 'new-request-form.parent-request-link': 'Дополнение к запросу {{parentId}}', + 'new-request-form.required-fields-info': + 'Помеченные звездочкой (*) поля обязательны для заполнения.', + 'new-request-form.submit': 'Отправить', + 'new-request-form.suggested-articles': 'Предложенные статьи', +}; + +var ru$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ru, +}); + +var sk = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var sk$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: sk, +}); + +var sl = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var sl$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: sl, +}); + +var sq = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var sq$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: sq, +}); + +var srMe = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var srMe$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: srMe, +}); + +var sr = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var sr$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: sr, +}); + +var sv = { + 'new-request-form.answer-bot-modal.footer-content': + 'Om den gör det kan vi stänga din förfrågan {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Besvarar denna artikel din fråga?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Nej, jag behöver hjälp', + 'new-request-form.answer-bot-modal.request-closed': 'Utmärkt. Din förfrågan har stängts.', + 'new-request-form.answer-bot-modal.request-submitted': 'Din förfrågan har skickats in', + 'new-request-form.answer-bot-modal.solve-error': 'Ett fel inträffade när din förfrågan stängdes', + 'new-request-form.answer-bot-modal.solve-request': 'Ja, stäng min förfrågan', + 'new-request-form.answer-bot-modal.title': + 'Medan du väntar, besvarar någon av dessa artiklar din fråga?', + 'new-request-form.answer-bot-modal.view-article': 'Visa artikel', + 'new-request-form.attachments.choose-file-label': 'Välj en fil eller dra och släpp den här', + 'new-request-form.attachments.drop-files-label': 'Släpp filer här', + 'new-request-form.attachments.remove-file': 'Ta bort fil', + 'new-request-form.attachments.stop-upload': 'Stoppa uppladdning', + 'new-request-form.attachments.upload-error-description': + 'Ett fel inträffade vid uppladdning av {{fileName}}. Försök igen eller ladda upp en annan fil.', + 'new-request-form.attachments.upload-error-title': 'Uppladdningsfel', + 'new-request-form.attachments.uploading': 'Laddar upp {{fileName}}', + 'new-request-form.cc-field.container-label': 'Valda kopierade e-postmeddelanden', + 'new-request-form.cc-field.email-added': '{{email}} har lagts till', + 'new-request-form.cc-field.email-label': '{{email}} – Tryck på backstegtangenten för att ta bort', + 'new-request-form.cc-field.email-removed': '{{email}} har tagits bort', + 'new-request-form.cc-field.emails-added': '{{emails}} har lagts till', + 'new-request-form.cc-field.invalid-email': 'Ogiltig e-postadress', + 'new-request-form.close-label': 'Stäng', + 'new-request-form.credit-card-digits-hint': '(4 sista siffror)', + 'new-request-form.dropdown.empty-option': 'Välj ett alternativ', + 'new-request-form.lookup-field.loading-options': 'Läser in objekt...', + 'new-request-form.lookup-field.no-matches-found': 'Inga träffar hittades', + 'new-request-form.lookup-field.placeholder': 'Sök {{label}}', + 'new-request-form.parent-request-link': 'Uppföljning av förfrågan {{parentId}}', + 'new-request-form.required-fields-info': 'Fält markerade med en asterisk (*) är obligatoriska.', + 'new-request-form.submit': 'Skicka in', + 'new-request-form.suggested-articles': 'Föreslagna artiklar', +}; + +var sv$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: sv, +}); + +var th = { + 'new-request-form.answer-bot-modal.footer-content': + 'หากใช่ เราจะสามารถปิดคำร้องขอ {{requestId}} ของคุณได้', + 'new-request-form.answer-bot-modal.footer-title': 'บทความนี้ได้ตอบข้อสงสัยของคุณหรือไม่', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'ไม่ ฉันต้องการความช่วยเหลือ', + 'new-request-form.answer-bot-modal.request-closed': 'ยอดเลย คำร้องขอของคุณปิดลงแล้ว', + 'new-request-form.answer-bot-modal.request-submitted': 'ส่งคำร้องขอของคุณเรียบร้อยแล้ว', + 'new-request-form.answer-bot-modal.solve-error': 'เกิดข้อผิดพลาดในการปิดคําร้องขอของคุณ', + 'new-request-form.answer-bot-modal.solve-request': 'ใช่ ปิดคำร้องขอของฉัน', + 'new-request-form.answer-bot-modal.title': 'ขณะที่กำลังรอ บทความเหล่านี้ตอบข้อสงสัยของคุณหรือไม่', + 'new-request-form.answer-bot-modal.view-article': 'ดูบทความ', + 'new-request-form.attachments.choose-file-label': 'เลือกไฟล์หรือลากแล้ววางที่นี่', + 'new-request-form.attachments.drop-files-label': 'วางไฟล์ที่นี่', + 'new-request-form.attachments.remove-file': 'ลบไฟล์ออก', + 'new-request-form.attachments.stop-upload': 'หยุดการอัปโหลด', + 'new-request-form.attachments.upload-error-description': + 'เกิดข้อผิดพลาดในการอัปโหลด {{fileName}} ลองอีกครั้งหรืออัปโหลดไฟล์อื่น', + 'new-request-form.attachments.upload-error-title': 'เกิดข้อผิดพลาดในการอัปโหลด', + 'new-request-form.attachments.uploading': 'กำลังอัปโหลด {{fileName}}', + 'new-request-form.cc-field.container-label': 'อีเมล สำเนาถึง ที่เลือก', + 'new-request-form.cc-field.email-added': '{{email}} ถูกเพิ่มแล้ว', + 'new-request-form.cc-field.email-label': '{{email}} - กด Backspace เพื่อลบ', + 'new-request-form.cc-field.email-removed': '{{email}} ถูกลบออกแล้ว', + 'new-request-form.cc-field.emails-added': '{{emails}} ถูกเพิ่มแล้ว', + 'new-request-form.cc-field.invalid-email': 'ที่อยู่อีเมลไม่ถูกต้อง', + 'new-request-form.close-label': 'ปิด', + 'new-request-form.credit-card-digits-hint': '(เลข 4 หลักสุดท้าย)', + 'new-request-form.dropdown.empty-option': 'เลือกตัวเลือก', + 'new-request-form.lookup-field.loading-options': 'กำลังโหลดรายการ...', + 'new-request-form.lookup-field.no-matches-found': 'ไม่พบรายการที่ตรงกัน', + 'new-request-form.lookup-field.placeholder': 'ค้นหา {{label}}', + 'new-request-form.parent-request-link': 'ติดตามคําร้องขอ {{parentId}}', + 'new-request-form.required-fields-info': 'ต้องกรองช่องที่มีเครื่องหมายดอกจัน (*)', + 'new-request-form.submit': 'ส่ง', + 'new-request-form.suggested-articles': 'บทความที่แนะนำ', +}; + +var th$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: th, +}); + +var tr = { + 'new-request-form.answer-bot-modal.footer-content': + 'Yanıtlıyorsa, bu son talebinizi kapatabiliriz {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Bu makale sorunuzu yanıtlıyor mu?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Hayır, yardıma ihtiyacım var', + 'new-request-form.answer-bot-modal.request-closed': 'Güzel! Talebiniz kapatıldı.', + 'new-request-form.answer-bot-modal.request-submitted': 'Talebiniz başarıyla gönderildi', + 'new-request-form.answer-bot-modal.solve-error': 'Talebiniz kapatılırken bir hata oluştu', + 'new-request-form.answer-bot-modal.solve-request': 'Evet, talebimi kapat', + 'new-request-form.answer-bot-modal.title': + 'Siz beklerken soralım: Bu makalelerden herhangi biri sorunuza yanıtladı mı?', + 'new-request-form.answer-bot-modal.view-article': 'Makaleyi görüntüle', + 'new-request-form.attachments.choose-file-label': + 'Bir dosya seçin veya buraya sürükleyip bırakın', + 'new-request-form.attachments.drop-files-label': 'Dosyaları buraya bırakın', + 'new-request-form.attachments.remove-file': 'Dosyayı kaldır', + 'new-request-form.attachments.stop-upload': 'Karşıya yüklemeyi durdur', + 'new-request-form.attachments.upload-error-description': + '{{fileName}} karşıya yüklenirken bir hata oluştu. Yeniden deneyin veya başka bir dosya yükleyin.', + 'new-request-form.attachments.upload-error-title': 'Karşıya yükleme hatası', + 'new-request-form.attachments.uploading': '{{fileName}} karşıya yükleniyor', + 'new-request-form.cc-field.container-label': 'Seçilen bilgi e-postası', + 'new-request-form.cc-field.email-added': '{{email}} eklendi', + 'new-request-form.cc-field.email-label': '{{email}} - Kaldırmak için Geri tuşuna basın', + 'new-request-form.cc-field.email-removed': '{{email}} kaldırıldı', + 'new-request-form.cc-field.emails-added': '{{emails}} eklendi', + 'new-request-form.cc-field.invalid-email': 'Geçersiz e-posta adresi', + 'new-request-form.close-label': 'Kapat', + 'new-request-form.credit-card-digits-hint': '(Son 4 hane)', + 'new-request-form.dropdown.empty-option': 'Bir seçim yapın', + 'new-request-form.lookup-field.loading-options': 'Öğeler yükleniyor...', + 'new-request-form.lookup-field.no-matches-found': 'Eşleşme bulunamadı', + 'new-request-form.lookup-field.placeholder': 'Ara {{label}}', + 'new-request-form.parent-request-link': '{{parentId}} talep etmek için ekleyin', + 'new-request-form.required-fields-info': + 'Yıldız işareti (*) ile işaretlenen alanların doldurulması zorunludur.', + 'new-request-form.submit': 'Gönder', + 'new-request-form.suggested-articles': 'Önerilen makaleler', +}; + +var tr$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: tr, +}); + +var uk = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var uk$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: uk, +}); + +var ur = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var ur$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: ur, +}); + +var uz = { + 'new-request-form.answer-bot-modal.footer-content': + 'If it does, we can close your recent request {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': 'Does this article answer your question?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'No, I need help', + 'new-request-form.answer-bot-modal.request-closed': 'Nice. Your request has been closed.', + 'new-request-form.answer-bot-modal.request-submitted': 'Your request was successfully submitted', + 'new-request-form.answer-bot-modal.solve-error': 'There was an error closing your request', + 'new-request-form.answer-bot-modal.solve-request': 'Yes, close my request', + 'new-request-form.answer-bot-modal.title': + 'While you wait, do any of these articles answer your question?', + 'new-request-form.answer-bot-modal.view-article': 'View article', + 'new-request-form.attachments.choose-file-label': 'Add file or drop files here', + 'new-request-form.attachments.drop-files-label': 'Drop files here', + 'new-request-form.attachments.remove-file': 'Remove file', + 'new-request-form.attachments.stop-upload': 'Stop upload', + 'new-request-form.attachments.upload-error-description': + 'There was an error uploading {{fileName}}. Try again or upload another file.', + 'new-request-form.attachments.upload-error-title': 'Upload error', + 'new-request-form.attachments.uploading': 'Uploading {{fileName}}', + 'new-request-form.cc-field.container-label': 'Selected CC emails', + 'new-request-form.cc-field.email-added': '{{email}} has been added', + 'new-request-form.cc-field.email-label': '{{email}} - Press Backspace to remove', + 'new-request-form.cc-field.email-removed': '{{email}} has been removed', + 'new-request-form.cc-field.emails-added': '{{emails}} have been added', + 'new-request-form.cc-field.invalid-email': 'Invalid email address', + 'new-request-form.close-label': 'Close', + 'new-request-form.credit-card-digits-hint': '(Last 4 digits)', + 'new-request-form.dropdown.empty-option': 'Select an option', + 'new-request-form.lookup-field.loading-options': 'Loading items...', + 'new-request-form.lookup-field.no-matches-found': 'No matches found', + 'new-request-form.lookup-field.placeholder': 'Search {{label}}', + 'new-request-form.parent-request-link': 'Follow-up to request {{parentId}}', + 'new-request-form.required-fields-info': 'Fields marked with an asterisk (*) are required.', + 'new-request-form.submit': 'Submit', + 'new-request-form.suggested-articles': 'Suggested articles', +}; + +var uz$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: uz, +}); + +var vi = { + 'new-request-form.answer-bot-modal.footer-content': + 'Nếu có, chúng tôi có thể đóng yêu cầu hiện tại {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': + 'Bài viết này có giải đáp được câu hỏi của bạn không?', + 'new-request-form.answer-bot-modal.mark-irrelevant': 'Không, tôi cần trợ giúp', + 'new-request-form.answer-bot-modal.request-closed': 'Tuyệt. Yêu cầu đã được đóng lại.', + 'new-request-form.answer-bot-modal.request-submitted': 'Yêu cầu của bạn đã được gửi thành công', + 'new-request-form.answer-bot-modal.solve-error': 'Đã xảy ra lỗi khi đóng yêu cầu của bạn', + 'new-request-form.answer-bot-modal.solve-request': 'Có, đóng yêu cầu của tôi', + 'new-request-form.answer-bot-modal.title': + 'Trong thời gian chờ đợi, có bài viết nào trong số các bài viết này giải đáp được thắc mắc của bạn không?', + 'new-request-form.answer-bot-modal.view-article': 'Xem bài viết', + 'new-request-form.attachments.choose-file-label': 'Chọn một tập tin hoặc kéo và thả ở đây', + 'new-request-form.attachments.drop-files-label': 'Thả tập tin vào đây', + 'new-request-form.attachments.remove-file': 'Xóa tập tin', + 'new-request-form.attachments.stop-upload': 'Dừng tải lên', + 'new-request-form.attachments.upload-error-description': + 'Đã xảy ra lỗi khi tải lên {{fileName}}. Hãy thử lại hoặc tải lên một tệp khác.', + 'new-request-form.attachments.upload-error-title': 'Lỗi tải lên', + 'new-request-form.attachments.uploading': 'Đang tải lên {{fileName}}', + 'new-request-form.cc-field.container-label': 'Email CC đã chọn', + 'new-request-form.cc-field.email-added': '{{email}} đã được thêm', + 'new-request-form.cc-field.email-label': '{{email}} - Nhấn Backspace để loại bỏ', + 'new-request-form.cc-field.email-removed': '{{email}} đã bị loại bỏ', + 'new-request-form.cc-field.emails-added': '{{emails}} đã được thêm', + 'new-request-form.cc-field.invalid-email': 'Địa chỉ email không hợp lệ', + 'new-request-form.close-label': 'Đóng', + 'new-request-form.credit-card-digits-hint': '(4 chữ số cuối)', + 'new-request-form.dropdown.empty-option': 'Chọn một tùy chọn', + 'new-request-form.lookup-field.loading-options': 'Đang tải các mục...', + 'new-request-form.lookup-field.no-matches-found': 'Không tìm thấy kết quả phù hợp', + 'new-request-form.lookup-field.placeholder': 'Tìm kiếm {{label}}', + 'new-request-form.parent-request-link': 'Theo dõi để yêu cầu {{parentId}}', + 'new-request-form.required-fields-info': 'Các trường đánh dấu sao (*) là bắt buộc.', + 'new-request-form.submit': 'Gửi', + 'new-request-form.suggested-articles': 'Bài viết được đề xuất', +}; + +var vi$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: vi, +}); + +var zhCn = { + 'new-request-form.answer-bot-modal.footer-content': + '如果是的话,我们将关闭最近的请求 {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '此文章解答该问题了吗?', + 'new-request-form.answer-bot-modal.mark-irrelevant': '没有,我需要帮助', + 'new-request-form.answer-bot-modal.request-closed': '很好。此请求已关闭。', + 'new-request-form.answer-bot-modal.request-submitted': '您的请求已成功提交', + 'new-request-form.answer-bot-modal.solve-error': '关闭您的请求时出错', + 'new-request-form.answer-bot-modal.solve-request': '解答了,关闭我的请求', + 'new-request-form.answer-bot-modal.title': '在等待的同时,看看这些文章中有没有可以解答该疑问的?', + 'new-request-form.answer-bot-modal.view-article': '查看文章', + 'new-request-form.attachments.choose-file-label': '选择文件或拖放到此处', + 'new-request-form.attachments.drop-files-label': '将文件放在此处', + 'new-request-form.attachments.remove-file': '移除文件', + 'new-request-form.attachments.stop-upload': '停止上传', + 'new-request-form.attachments.upload-error-description': + '上传 {{fileName}} 时出错。请重试或上传另一个文件。', + 'new-request-form.attachments.upload-error-title': '上传错误', + 'new-request-form.attachments.uploading': '上传 {{fileName}}', + 'new-request-form.cc-field.container-label': '选定的抄送电邮', + 'new-request-form.cc-field.email-added': '已添加 {{email}}', + 'new-request-form.cc-field.email-label': '{{email}} - 按 Backspace 键移除', + 'new-request-form.cc-field.email-removed': '已移除 {{email}}', + 'new-request-form.cc-field.emails-added': '已添加 {{emails}}', + 'new-request-form.cc-field.invalid-email': '无效电邮地址', + 'new-request-form.close-label': '关闭', + 'new-request-form.credit-card-digits-hint': '(最后 4 位数)', + 'new-request-form.dropdown.empty-option': '选择一个选项', + 'new-request-form.lookup-field.loading-options': '正在加载项目…', + 'new-request-form.lookup-field.no-matches-found': '未找到匹配项', + 'new-request-form.lookup-field.placeholder': '搜索 {{label}}', + 'new-request-form.parent-request-link': '跟进请求 {{parentId}}', + 'new-request-form.required-fields-info': '标有星号 (*) 的字段是必填字段。', + 'new-request-form.submit': '提交', + 'new-request-form.suggested-articles': '推荐文章', +}; + +var zhCn$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: zhCn, +}); + +var zhTw = { + 'new-request-form.answer-bot-modal.footer-content': '若是,我們可關閉近期的請求 {{requestId}}', + 'new-request-form.answer-bot-modal.footer-title': '此文章是否已回答該問題?', + 'new-request-form.answer-bot-modal.mark-irrelevant': '不,我仍需要幫助', + 'new-request-form.answer-bot-modal.request-closed': '太好了。此請求已關閉。', + 'new-request-form.answer-bot-modal.request-submitted': '已成功提交請求', + 'new-request-form.answer-bot-modal.solve-error': '關閉您的請求時發生錯誤', + 'new-request-form.answer-bot-modal.solve-request': '是,關閉我的請求', + 'new-request-form.answer-bot-modal.title': '在等待時,這些文章是否已回答該疑問?', + 'new-request-form.answer-bot-modal.view-article': '檢視文章', + 'new-request-form.attachments.choose-file-label': '選擇檔案,或將檔案拖放到這裡', + 'new-request-form.attachments.drop-files-label': '將檔案放置在此處', + 'new-request-form.attachments.remove-file': '移除檔案', + 'new-request-form.attachments.stop-upload': '停止上傳', + 'new-request-form.attachments.upload-error-description': + '上傳 {{fileName}} 時發生錯誤。請再試一次,或上傳另一個檔案。', + 'new-request-form.attachments.upload-error-title': '上傳錯誤', + 'new-request-form.attachments.uploading': '正在上傳 {{fileName}}', + 'new-request-form.cc-field.container-label': '已選取副本電子郵件地址', + 'new-request-form.cc-field.email-added': '已新增 {{email}}', + 'new-request-form.cc-field.email-label': '{{email}}:按 Backspace 鍵移除', + 'new-request-form.cc-field.email-removed': '已移除 {{email}}', + 'new-request-form.cc-field.emails-added': '已新增 {{emails}}', + 'new-request-form.cc-field.invalid-email': '無效電子郵件地址', + 'new-request-form.close-label': '關閉', + 'new-request-form.credit-card-digits-hint': '(最後 4 位數)', + 'new-request-form.dropdown.empty-option': '選取一個選項', + 'new-request-form.lookup-field.loading-options': '正在載入項目…', + 'new-request-form.lookup-field.no-matches-found': '找不到符合項目', + 'new-request-form.lookup-field.placeholder': '搜尋{{label}}', + 'new-request-form.parent-request-link': '請求 {{parentId}} 的後續跟進', + 'new-request-form.required-fields-info': '標有星號 (*) 的欄位為必填欄位。', + 'new-request-form.submit': '提交', + 'new-request-form.suggested-articles': '推薦文章', +}; + +var zhTw$1 = /*#__PURE__*/ Object.freeze({ + __proto__: null, + default: zhTw, +}); + export { - $, - I as A, - z as B, - C, - j as D, - T as E, - F, - Y as G, - D as H, - L as I, - A as J, - U as K, - O as L, - B as M, - V as N, - E as O, - P, - R as Q, - W as R, - H as S, - M as T, - Z as U, - K as V, - x as W, - J as X, - G as Y, - Q as Z, - X as _, - e as a, - ee as a0, - re as a1, - te as a2, - oe as a3, - ae as a4, - se as a5, - le as a6, - ne as a7, - ie as a8, - me as a9, - de as aa, - ue as ab, - fe as ac, - ce as ad, - we as ae, - qe as af, - pe as ag, - he as ah, - be as ai, - ge as aj, - ve as ak, - ke as al, - ye as am, - Se as an, - Ne as ao, - _e as ap, - Ie as aq, - ze as ar, - Ce as as, - je as at, - Te as au, - Fe as av, - Ye as aw, - r as b, - t as c, - o as d, - a as e, - s as f, - l as g, - n as h, - i, - m as j, - d as k, - u as l, - f as m, - c as n, - w as o, - q as p, - p as q, - h as r, - b as s, - g as t, - v as u, - k as v, - y as w, - S as x, - N as y, - _ as z, + ka$1 as $, + enXKeys$1 as A, + enXObsolete$1 as B, + enXPseudo$1 as C, + enXTest$1 as D, + es419$1 as E, + esEs$1 as F, + es$1 as G, + et$1 as H, + eu$1 as I, + faAf$1 as J, + fa$1 as K, + fi$1 as L, + fil$1 as M, + fo$1 as N, + frCa$1 as O, + fr$1 as P, + ga$1 as Q, + he$1 as R, + hi$1 as S, + hr$1 as T, + hu$1 as U, + hy$1 as V, + id$1 as W, + is$1 as X, + itCh$1 as Y, + it$1 as Z, + ja$1 as _, + af$1 as a, + kk$1 as a0, + klDk$1 as a1, + ko$1 as a2, + ku$1 as a3, + lt$1 as a4, + lv$1 as a5, + mk$1 as a6, + mn$1 as a7, + ms$1 as a8, + mt$1 as a9, + my$1 as aa, + nlBe$1 as ab, + nl$1 as ac, + no$1 as ad, + pl$1 as ae, + ptBr$1 as af, + pt$1 as ag, + ro$1 as ah, + ru$1 as ai, + sk$1 as aj, + sl$1 as ak, + sq$1 as al, + srMe$1 as am, + sr$1 as an, + sv$1 as ao, + th$1 as ap, + tr$1 as aq, + uk$1 as ar, + ur$1 as as, + uz$1 as at, + vi$1 as au, + zhCn$1 as av, + zhTw$1 as aw, + arXPseudo$1 as b, + ar$1 as c, + az$1 as d, + be$1 as e, + bg$1 as f, + bn$1 as g, + bs$1 as h, + ca$1 as i, + cs$1 as j, + cy$1 as k, + da$1 as l, + deDe$1 as m, + deXInformal$1 as n, + de$1 as o, + el$1 as p, + en001$1 as q, + en150$1 as r, + enAu$1 as s, + enCa$1 as t, + enGb$1 as u, + enMy$1 as v, + enPh$1 as w, + enSe$1 as x, + enUs$1 as y, + enXDev$1 as z, }; diff --git a/assets/shared-bundle.js b/assets/shared-bundle.js index 4aebce6e4..92643f55f 100644 --- a/assets/shared-bundle.js +++ b/assets/shared-bundle.js @@ -1,64 +1,85 @@ -function e(e, t) { - return ( - t.forEach(function (t) { - t && - 'string' != typeof t && - !Array.isArray(t) && - Object.keys(t).forEach(function (n) { - if ('default' !== n && !(n in e)) { - var r = Object.getOwnPropertyDescriptor(t, n); - Object.defineProperty( - e, - n, - r.get - ? r - : { - enumerable: !0, - get: function () { - return t[n]; - }, - } - ); - } - }); - }), - Object.freeze(e) - ); +function _mergeNamespaces(n, m) { + m.forEach(function (e) { + e && + typeof e !== 'string' && + !Array.isArray(e) && + Object.keys(e).forEach(function (k) { + if (k !== 'default' && !(k in n)) { + var d = Object.getOwnPropertyDescriptor(e, k); + Object.defineProperty( + n, + k, + d.get + ? d + : { + enumerable: true, + get: function () { + return e[k]; + }, + } + ); + } + }); + }); + return Object.freeze(n); } -var t = - 'undefined' != typeof globalThis + +var commonjsGlobal = + typeof globalThis !== 'undefined' ? globalThis - : 'undefined' != typeof window + : typeof window !== 'undefined' ? window - : 'undefined' != typeof global + : typeof global !== 'undefined' ? global - : 'undefined' != typeof self + : typeof self !== 'undefined' ? self : {}; -function n(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e; -} -var r, - o = { exports: {} }, - a = {}, - i = { exports: {} }, - s = {}; -i.exports = (function () { - if (r) return s; - r = 1; - var e = Symbol.for('react.element'), - t = Symbol.for('react.portal'), - n = Symbol.for('react.fragment'), - o = Symbol.for('react.strict_mode'), - a = Symbol.for('react.profiler'), - i = Symbol.for('react.provider'), - l = Symbol.for('react.context'), - c = Symbol.for('react.forward_ref'), - u = Symbol.for('react.suspense'), - d = Symbol.for('react.memo'), - p = Symbol.for('react.lazy'), - f = Symbol.iterator, - m = { + +function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; +} + +var jsxRuntime = { exports: {} }; + +var reactJsxRuntime_production_min = {}; + +var react = { exports: {} }; + +var react_production_min = {}; + +/** + * @license React + * react.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 hasRequiredReact_production_min; + +function requireReact_production_min() { + if (hasRequiredReact_production_min) return react_production_min; + hasRequiredReact_production_min = 1; + var l = Symbol.for('react.element'), + n = Symbol.for('react.portal'), + p = Symbol.for('react.fragment'), + q = Symbol.for('react.strict_mode'), + r = Symbol.for('react.profiler'), + t = Symbol.for('react.provider'), + u = Symbol.for('react.context'), + v = Symbol.for('react.forward_ref'), + w = Symbol.for('react.suspense'), + x = Symbol.for('react.memo'), + y = Symbol.for('react.lazy'), + z = Symbol.iterator; + function A(a) { + if (null === a || 'object' !== typeof a) return null; + a = (z && a[z]) || a['@@iterator']; + return 'function' === typeof a ? a : null; + } + var B = { isMounted: function () { return !1; }, @@ -66,10247 +87,11579 @@ i.exports = (function () { enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, - h = Object.assign, - g = {}; - function v(e, t, n) { - (this.props = e), (this.context = t), (this.refs = g), (this.updater = n || m); - } - function b() {} - function y(e, t, n) { - (this.props = e), (this.context = t), (this.refs = g), (this.updater = n || m); - } - (v.prototype.isReactComponent = {}), - (v.prototype.setState = function (e, t) { - if ('object' != typeof e && 'function' != typeof e && null != e) - throw Error( - 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.' - ); - this.updater.enqueueSetState(this, e, t, 'setState'); - }), - (v.prototype.forceUpdate = function (e) { - this.updater.enqueueForceUpdate(this, e, 'forceUpdate'); - }), - (b.prototype = v.prototype); - var w = (y.prototype = new b()); - (w.constructor = y), h(w, v.prototype), (w.isPureReactComponent = !0); - var x = Array.isArray, - k = Object.prototype.hasOwnProperty, - E = { current: null }, - S = { key: !0, ref: !0, __self: !0, __source: !0 }; - function C(t, n, r) { - var o, - a = {}, - i = null, - s = null; - if (null != n) - for (o in (void 0 !== n.ref && (s = n.ref), void 0 !== n.key && (i = '' + n.key), n)) - k.call(n, o) && !S.hasOwnProperty(o) && (a[o] = n[o]); - var l = arguments.length - 2; - if (1 === l) a.children = r; - else if (1 < l) { - for (var c = Array(l), u = 0; u < l; u++) c[u] = arguments[u + 2]; - a.children = c; - } - if (t && t.defaultProps) for (o in (l = t.defaultProps)) void 0 === a[o] && (a[o] = l[o]); - return { $$typeof: e, type: t, key: i, ref: s, props: a, _owner: E.current }; - } - function O(t) { - return 'object' == typeof t && null !== t && t.$$typeof === e; + C = Object.assign, + D = {}; + function E(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + E.prototype.isReactComponent = {}; + E.prototype.setState = function (a, b) { + if ('object' !== typeof a && 'function' !== typeof a && null != a) + throw Error( + 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.' + ); + this.updater.enqueueSetState(this, a, b, 'setState'); + }; + E.prototype.forceUpdate = function (a) { + this.updater.enqueueForceUpdate(this, a, 'forceUpdate'); + }; + function F() {} + F.prototype = E.prototype; + function G(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + var H = (G.prototype = new F()); + H.constructor = G; + C(H, E.prototype); + H.isPureReactComponent = !0; + var I = Array.isArray, + J = Object.prototype.hasOwnProperty, + K = { current: null }, + L = { key: !0, ref: !0, __self: !0, __source: !0 }; + function M(a, b, e) { + var d, + c = {}, + k = null, + h = null; + if (null != b) + for (d in (void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = '' + b.key), b)) + J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); + var g = arguments.length - 2; + if (1 === g) c.children = e; + else if (1 < g) { + for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2]; + c.children = f; + } + if (a && a.defaultProps) for (d in ((g = a.defaultProps), g)) void 0 === c[d] && (c[d] = g[d]); + return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current }; + } + function N(a, b) { + return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner }; + } + function O(a) { + return 'object' === typeof a && null !== a && a.$$typeof === l; + } + function escape(a) { + var b = { '=': '=0', ':': '=2' }; + return ( + '$' + + a.replace(/[=:]/g, function (a) { + return b[a]; + }) + ); } var P = /\/+/g; - function T(e, t) { - return 'object' == typeof e && null !== e && null != e.key - ? (function (e) { - var t = { '=': '=0', ':': '=2' }; - return ( - '$' + - e.replace(/[=:]/g, function (e) { - return t[e]; - }) - ); - })('' + e.key) - : t.toString(36); - } - function I(n, r, o, a, i) { - var s = typeof n; - ('undefined' !== s && 'boolean' !== s) || (n = null); - var l = !1; - if (null === n) l = !0; + function Q(a, b) { + return 'object' === typeof a && null !== a && null != a.key + ? escape('' + a.key) + : b.toString(36); + } + function R(a, b, e, d, c) { + var k = typeof a; + if ('undefined' === k || 'boolean' === k) a = null; + var h = !1; + if (null === a) h = !0; else - switch (s) { + switch (k) { case 'string': case 'number': - l = !0; + h = !0; break; case 'object': - switch (n.$$typeof) { - case e: - case t: - l = !0; + switch (a.$$typeof) { + case l: + case n: + h = !0; } } - if (l) + if (h) return ( - (i = i((l = n))), - (n = '' === a ? '.' + T(l, 0) : a), - x(i) - ? ((o = ''), - null != n && (o = n.replace(P, '$&/') + '/'), - I(i, r, o, '', function (e) { - return e; + (h = a), + (c = c(h)), + (a = '' === d ? '.' + Q(h, 0) : d), + I(c) + ? ((e = ''), + null != a && (e = a.replace(P, '$&/') + '/'), + R(c, b, e, '', function (a) { + return a; })) - : null != i && - (O(i) && - (i = (function (t, n) { - return { - $$typeof: e, - type: t.type, - key: n, - ref: t.ref, - props: t.props, - _owner: t._owner, - }; - })( - i, - o + - (!i.key || (l && l.key === i.key) ? '' : ('' + i.key).replace(P, '$&/') + '/') + - n + : null != c && + (O(c) && + (c = N( + c, + e + + (!c.key || (h && h.key === c.key) ? '' : ('' + c.key).replace(P, '$&/') + '/') + + a )), - r.push(i)), + b.push(c)), 1 ); - if (((l = 0), (a = '' === a ? '.' : a + ':'), x(n))) - for (var c = 0; c < n.length; c++) { - var u = a + T((s = n[c]), c); - l += I(s, r, o, u, i); - } - else if ( - ((u = (function (e) { - return null === e || 'object' != typeof e - ? null - : 'function' == typeof (e = (f && e[f]) || e['@@iterator']) - ? e - : null; - })(n)), - 'function' == typeof u) - ) - for (n = u.call(n), c = 0; !(s = n.next()).done; ) - l += I((s = s.value), r, o, (u = a + T(s, c++)), i); - else if ('object' === s) + h = 0; + d = '' === d ? '.' : d + ':'; + if (I(a)) + for (var g = 0; g < a.length; g++) { + k = a[g]; + var f = d + Q(k, g); + h += R(k, b, e, f, c); + } + else if (((f = A(a)), 'function' === typeof f)) + for (a = f.call(a), g = 0; !(k = a.next()).done; ) + (k = k.value), (f = d + Q(k, g++)), (h += R(k, b, e, f, c)); + else if ('object' === k) throw ( - ((r = String(n)), + ((b = String(a)), Error( 'Objects are not valid as a React child (found: ' + - ('[object Object]' === r ? 'object with keys {' + Object.keys(n).join(', ') + '}' : r) + + ('[object Object]' === b ? 'object with keys {' + Object.keys(a).join(', ') + '}' : b) + '). If you meant to render a collection of children, use an array instead.' )) ); - return l; + return h; } - function N(e, t, n) { - if (null == e) return e; - var r = [], - o = 0; - return ( - I(e, r, '', '', function (e) { - return t.call(n, e, o++); - }), - r - ); + function S(a, b, e) { + if (null == a) return a; + var d = [], + c = 0; + R(a, d, '', '', function (a) { + return b.call(e, a, c++); + }); + return d; } - function M(e) { - if (-1 === e._status) { - var t = e._result; - (t = t()).then( - function (t) { - (0 !== e._status && -1 !== e._status) || ((e._status = 1), (e._result = t)); + function T(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then( + function (b) { + if (0 === a._status || -1 === a._status) (a._status = 1), (a._result = b); }, - function (t) { - (0 !== e._status && -1 !== e._status) || ((e._status = 2), (e._result = t)); + function (b) { + if (0 === a._status || -1 === a._status) (a._status = 2), (a._result = b); } - ), - -1 === e._status && ((e._status = 0), (e._result = t)); + ); + -1 === a._status && ((a._status = 0), (a._result = b)); } - if (1 === e._status) return e._result.default; - throw e._result; + if (1 === a._status) return a._result.default; + throw a._result; } - var L = { current: null }, - R = { transition: null }, - A = { ReactCurrentDispatcher: L, ReactCurrentBatchConfig: R, ReactCurrentOwner: E }; - function D() { + var U = { current: null }, + V = { transition: null }, + W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K }; + function X() { throw Error('act(...) is not supported in production builds of React.'); } - return ( - (s.Children = { - map: N, - forEach: function (e, t, n) { - N( - e, - function () { - t.apply(this, arguments); - }, - n - ); - }, - count: function (e) { - var t = 0; - return ( - N(e, function () { - t++; - }), - t - ); - }, - toArray: function (e) { - return ( - N(e, function (e) { - return e; - }) || [] - ); - }, - only: function (e) { - if (!O(e)) - throw Error('React.Children.only expected to receive a single React element child.'); - return e; - }, - }), - (s.Component = v), - (s.Fragment = n), - (s.Profiler = a), - (s.PureComponent = y), - (s.StrictMode = o), - (s.Suspense = u), - (s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = A), - (s.act = D), - (s.cloneElement = function (t, n, r) { - if (null == t) - throw Error( - 'React.cloneElement(...): The argument must be a React element, but you passed ' + t + '.' - ); - var o = h({}, t.props), - a = t.key, - i = t.ref, - s = t._owner; - if (null != n) { - if ( - (void 0 !== n.ref && ((i = n.ref), (s = E.current)), - void 0 !== n.key && (a = '' + n.key), - t.type && t.type.defaultProps) - ) - var l = t.type.defaultProps; - for (c in n) - k.call(n, c) && - !S.hasOwnProperty(c) && - (o[c] = void 0 === n[c] && void 0 !== l ? l[c] : n[c]); - } - var c = arguments.length - 2; - if (1 === c) o.children = r; - else if (1 < c) { - l = Array(c); - for (var u = 0; u < c; u++) l[u] = arguments[u + 2]; - o.children = l; - } - return { $$typeof: e, type: t.type, key: a, ref: i, props: o, _owner: s }; - }), - (s.createContext = function (e) { + react_production_min.Children = { + map: S, + forEach: function (a, b, e) { + S( + a, + function () { + b.apply(this, arguments); + }, + e + ); + }, + count: function (a) { + var b = 0; + S(a, function () { + b++; + }); + return b; + }, + toArray: function (a) { return ( - ((e = { - $$typeof: l, - _currentValue: e, - _currentValue2: e, - _threadCount: 0, - Provider: null, - Consumer: null, - _defaultValue: null, - _globalName: null, - }).Provider = { $$typeof: i, _context: e }), - (e.Consumer = e) + S(a, function (a) { + return a; + }) || [] ); - }), - (s.createElement = C), - (s.createFactory = function (e) { - var t = C.bind(null, e); - return (t.type = e), t; - }), - (s.createRef = function () { - return { current: null }; - }), - (s.forwardRef = function (e) { - return { $$typeof: c, render: e }; - }), - (s.isValidElement = O), - (s.lazy = function (e) { - return { $$typeof: p, _payload: { _status: -1, _result: e }, _init: M }; - }), - (s.memo = function (e, t) { - return { $$typeof: d, type: e, compare: void 0 === t ? null : t }; - }), - (s.startTransition = function (e) { - var t = R.transition; - R.transition = {}; - try { - e(); - } finally { - R.transition = t; - } - }), - (s.unstable_act = D), - (s.useCallback = function (e, t) { - return L.current.useCallback(e, t); - }), - (s.useContext = function (e) { - return L.current.useContext(e); - }), - (s.useDebugValue = function () {}), - (s.useDeferredValue = function (e) { - return L.current.useDeferredValue(e); - }), - (s.useEffect = function (e, t) { - return L.current.useEffect(e, t); - }), - (s.useId = function () { - return L.current.useId(); - }), - (s.useImperativeHandle = function (e, t, n) { - return L.current.useImperativeHandle(e, t, n); - }), - (s.useInsertionEffect = function (e, t) { - return L.current.useInsertionEffect(e, t); - }), - (s.useLayoutEffect = function (e, t) { - return L.current.useLayoutEffect(e, t); - }), - (s.useMemo = function (e, t) { - return L.current.useMemo(e, t); - }), - (s.useReducer = function (e, t, n) { - return L.current.useReducer(e, t, n); - }), - (s.useRef = function (e) { - return L.current.useRef(e); - }), - (s.useState = function (e) { - return L.current.useState(e); - }), - (s.useSyncExternalStore = function (e, t, n) { - return L.current.useSyncExternalStore(e, t, n); - }), - (s.useTransition = function () { - return L.current.useTransition(); - }), - (s.version = '18.3.1'), - s - ); -})(); -var l, - c = i.exports, - u = n(c), - d = e({ __proto__: null, default: u }, [c]); -o.exports = (function () { - if (l) return a; - l = 1; - var e = c, - t = Symbol.for('react.element'), - n = Symbol.for('react.fragment'), - r = Object.prototype.hasOwnProperty, - o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, - i = { key: !0, ref: !0, __self: !0, __source: !0 }; - function s(e, n, a) { - var s, - l = {}, - c = null, - u = null; - for (s in (void 0 !== a && (c = '' + a), - void 0 !== n.key && (c = '' + n.key), - void 0 !== n.ref && (u = n.ref), - n)) - r.call(n, s) && !i.hasOwnProperty(s) && (l[s] = n[s]); - if (e && e.defaultProps) for (s in (n = e.defaultProps)) void 0 === l[s] && (l[s] = n[s]); - return { $$typeof: t, type: e, key: c, ref: u, props: l, _owner: o.current }; - } - return (a.Fragment = n), (a.jsx = s), (a.jsxs = s), a; -})(); -var p, - f, - m, - h = o.exports, - g = { exports: {} }, - v = {}, - b = { exports: {} }, - y = {}; -function w() { - return ( - f || - ((f = 1), - (b.exports = - (p || - ((p = 1), - (function (e) { - function t(e, t) { - var n = e.length; - e.push(t); - e: for (; 0 < n; ) { - var r = (n - 1) >>> 1, - a = e[r]; - if (!(0 < o(a, t))) break e; - (e[r] = t), (e[n] = a), (n = r); - } - } - function n(e) { - return 0 === e.length ? null : e[0]; - } - function r(e) { - if (0 === e.length) return null; - var t = e[0], - n = e.pop(); - if (n !== t) { - e[0] = n; - e: for (var r = 0, a = e.length, i = a >>> 1; r < i; ) { - var s = 2 * (r + 1) - 1, - l = e[s], - c = s + 1, - u = e[c]; - if (0 > o(l, n)) - c < a && 0 > o(u, l) - ? ((e[r] = u), (e[c] = n), (r = c)) - : ((e[r] = l), (e[s] = n), (r = s)); - else { - if (!(c < a && 0 > o(u, n))) break e; - (e[r] = u), (e[c] = n), (r = c); - } - } - } - return t; - } - function o(e, t) { - var n = e.sortIndex - t.sortIndex; - return 0 !== n ? n : e.id - t.id; - } - if ('object' == typeof performance && 'function' == typeof performance.now) { - var a = performance; - e.unstable_now = function () { - return a.now(); - }; - } else { - var i = Date, - s = i.now(); - e.unstable_now = function () { - return i.now() - s; - }; - } - var l = [], - c = [], - u = 1, - d = null, - p = 3, - f = !1, - m = !1, - h = !1, - g = 'function' == typeof setTimeout ? setTimeout : null, - v = 'function' == typeof clearTimeout ? clearTimeout : null, - b = 'undefined' != typeof setImmediate ? setImmediate : null; - function y(e) { - for (var o = n(c); null !== o; ) { - if (null === o.callback) r(c); - else { - if (!(o.startTime <= e)) break; - r(c), (o.sortIndex = o.expirationTime), t(l, o); - } - o = n(c); - } - } - function w(e) { - if (((h = !1), y(e), !m)) - if (null !== n(l)) (m = !0), L(x); - else { - var t = n(c); - null !== t && R(w, t.startTime - e); - } - } - function x(t, o) { - (m = !1), h && ((h = !1), v(C), (C = -1)), (f = !0); - var a = p; - try { - for (y(o), d = n(l); null !== d && (!(d.expirationTime > o) || (t && !T())); ) { - var i = d.callback; - if ('function' == typeof i) { - (d.callback = null), (p = d.priorityLevel); - var s = i(d.expirationTime <= o); - (o = e.unstable_now()), - 'function' == typeof s ? (d.callback = s) : d === n(l) && r(l), - y(o); - } else r(l); - d = n(l); - } - if (null !== d) var u = !0; - else { - var g = n(c); - null !== g && R(w, g.startTime - o), (u = !1); - } - return u; - } finally { - (d = null), (p = a), (f = !1); - } - } - 'undefined' != typeof navigator && - void 0 !== navigator.scheduling && - void 0 !== navigator.scheduling.isInputPending && - navigator.scheduling.isInputPending.bind(navigator.scheduling); - var k, - E = !1, - S = null, - C = -1, - O = 5, - P = -1; - function T() { - return !(e.unstable_now() - P < O); - } - function I() { - if (null !== S) { - var t = e.unstable_now(); - P = t; - var n = !0; - try { - n = S(!0, t); - } finally { - n ? k() : ((E = !1), (S = null)); - } - } else E = !1; - } - if ('function' == typeof b) - k = function () { - b(I); - }; - else if ('undefined' != typeof MessageChannel) { - var N = new MessageChannel(), - M = N.port2; - (N.port1.onmessage = I), - (k = function () { - M.postMessage(null); - }); - } else - k = function () { - g(I, 0); - }; - function L(e) { - (S = e), E || ((E = !0), k()); - } - function R(t, n) { - C = g(function () { - t(e.unstable_now()); - }, n); - } - (e.unstable_IdlePriority = 5), - (e.unstable_ImmediatePriority = 1), - (e.unstable_LowPriority = 4), - (e.unstable_NormalPriority = 3), - (e.unstable_Profiling = null), - (e.unstable_UserBlockingPriority = 2), - (e.unstable_cancelCallback = function (e) { - e.callback = null; - }), - (e.unstable_continueExecution = function () { - m || f || ((m = !0), L(x)); - }), - (e.unstable_forceFrameRate = function (e) { - 0 > e || 125 < e - ? console.error( - 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported' - ) - : (O = 0 < e ? Math.floor(1e3 / e) : 5); - }), - (e.unstable_getCurrentPriorityLevel = function () { - return p; - }), - (e.unstable_getFirstCallbackNode = function () { - return n(l); - }), - (e.unstable_next = function (e) { - switch (p) { - case 1: - case 2: - case 3: - var t = 3; - break; - default: - t = p; - } - var n = p; - p = t; - try { - return e(); - } finally { - p = n; - } - }), - (e.unstable_pauseExecution = function () {}), - (e.unstable_requestPaint = function () {}), - (e.unstable_runWithPriority = function (e, t) { - switch (e) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - e = 3; - } - var n = p; - p = e; - try { - return t(); - } finally { - p = n; - } - }), - (e.unstable_scheduleCallback = function (r, o, a) { - var i = e.unstable_now(); - switch ( - ((a = - 'object' == typeof a && null !== a && 'number' == typeof (a = a.delay) && 0 < a - ? i + a - : i), - r) - ) { - case 1: - var s = -1; - break; - case 2: - s = 250; - break; - case 5: - s = 1073741823; - break; - case 4: - s = 1e4; - break; - default: - s = 5e3; - } - return ( - (r = { - id: u++, - callback: o, - priorityLevel: r, - startTime: a, - expirationTime: (s = a + s), - sortIndex: -1, - }), - a > i - ? ((r.sortIndex = a), - t(c, r), - null === n(l) && r === n(c) && (h ? (v(C), (C = -1)) : (h = !0), R(w, a - i))) - : ((r.sortIndex = s), t(l, r), m || f || ((m = !0), L(x))), - r - ); - }), - (e.unstable_shouldYield = T), - (e.unstable_wrapCallback = function (e) { - var t = p; - return function () { - var n = p; - p = t; - try { - return e.apply(this, arguments); - } finally { - p = n; - } - }; - }); - })(y)), - y))), - b.exports - ); + }, + only: function (a) { + if (!O(a)) + throw Error('React.Children.only expected to receive a single React element child.'); + return a; + }, + }; + react_production_min.Component = E; + react_production_min.Fragment = p; + react_production_min.Profiler = r; + react_production_min.PureComponent = G; + react_production_min.StrictMode = q; + react_production_min.Suspense = w; + react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; + react_production_min.act = X; + react_production_min.cloneElement = function (a, b, e) { + if (null === a || void 0 === a) + throw Error( + 'React.cloneElement(...): The argument must be a React element, but you passed ' + a + '.' + ); + var d = C({}, a.props), + c = a.key, + k = a.ref, + h = a._owner; + if (null != b) { + void 0 !== b.ref && ((k = b.ref), (h = K.current)); + void 0 !== b.key && (c = '' + b.key); + if (a.type && a.type.defaultProps) var g = a.type.defaultProps; + for (f in b) + J.call(b, f) && + !L.hasOwnProperty(f) && + (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); + } + var f = arguments.length - 2; + if (1 === f) d.children = e; + else if (1 < f) { + g = Array(f); + for (var m = 0; m < f; m++) g[m] = arguments[m + 2]; + d.children = g; + } + return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h }; + }; + react_production_min.createContext = function (a) { + a = { + $$typeof: u, + _currentValue: a, + _currentValue2: a, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null, + }; + a.Provider = { $$typeof: t, _context: a }; + return (a.Consumer = a); + }; + react_production_min.createElement = M; + react_production_min.createFactory = function (a) { + var b = M.bind(null, a); + b.type = a; + return b; + }; + react_production_min.createRef = function () { + return { current: null }; + }; + react_production_min.forwardRef = function (a) { + return { $$typeof: v, render: a }; + }; + react_production_min.isValidElement = O; + react_production_min.lazy = function (a) { + return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T }; + }; + react_production_min.memo = function (a, b) { + return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; + }; + react_production_min.startTransition = function (a) { + var b = V.transition; + V.transition = {}; + try { + a(); + } finally { + V.transition = b; + } + }; + react_production_min.unstable_act = X; + react_production_min.useCallback = function (a, b) { + return U.current.useCallback(a, b); + }; + react_production_min.useContext = function (a) { + return U.current.useContext(a); + }; + react_production_min.useDebugValue = function () {}; + react_production_min.useDeferredValue = function (a) { + return U.current.useDeferredValue(a); + }; + react_production_min.useEffect = function (a, b) { + return U.current.useEffect(a, b); + }; + react_production_min.useId = function () { + return U.current.useId(); + }; + react_production_min.useImperativeHandle = function (a, b, e) { + return U.current.useImperativeHandle(a, b, e); + }; + react_production_min.useInsertionEffect = function (a, b) { + return U.current.useInsertionEffect(a, b); + }; + react_production_min.useLayoutEffect = function (a, b) { + return U.current.useLayoutEffect(a, b); + }; + react_production_min.useMemo = function (a, b) { + return U.current.useMemo(a, b); + }; + react_production_min.useReducer = function (a, b, e) { + return U.current.useReducer(a, b, e); + }; + react_production_min.useRef = function (a) { + return U.current.useRef(a); + }; + react_production_min.useState = function (a) { + return U.current.useState(a); + }; + react_production_min.useSyncExternalStore = function (a, b, e) { + return U.current.useSyncExternalStore(a, b, e); + }; + react_production_min.useTransition = function () { + return U.current.useTransition(); + }; + react_production_min.version = '18.3.1'; + return react_production_min; +} + +{ + react.exports = requireReact_production_min(); } + +var reactExports = react.exports; +var U$6 = /*@__PURE__*/ getDefaultExportFromCjs(reactExports); + +var t$5 = /*#__PURE__*/ _mergeNamespaces( + { + __proto__: null, + default: U$6, + }, + [reactExports] +); + /** * @license React - * react-dom.production.min.js + * 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. - */ !(function e() { - if ( - 'undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && - 'function' == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE - ) - try { - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e); - } catch (e) { - console.error(e); - } -})(), - (g.exports = (function () { - if (m) return v; - m = 1; - var e = c, - t = w(); - function n(e) { - for ( - var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, n = 1; - n < arguments.length; - n++ - ) - t += '&args[]=' + encodeURIComponent(arguments[n]); - return ( - 'Minified React error #' + - e + - '; visit ' + - t + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ); - } - var r = new Set(), - o = {}; - function a(e, t) { - i(e, t), i(e + 'Capture', t); - } - function i(e, t) { - for (o[e] = t, e = 0; e < t.length; e++) r.add(t[e]); - } - var s = !( - 'undefined' == typeof window || - void 0 === window.document || - void 0 === window.document.createElement - ), - l = Object.prototype.hasOwnProperty, - u = - /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + */ + +var hasRequiredReactJsxRuntime_production_min; + +function requireReactJsxRuntime_production_min() { + if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min; + hasRequiredReactJsxRuntime_production_min = 1; + var f = reactExports, + 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: !0, ref: !0, __self: !0, __source: !0 }; + function q(c, a, g) { + var b, d = {}, - p = {}; - function f(e, t, n, r, o, a, i) { - (this.acceptsBooleans = 2 === t || 3 === t || 4 === t), - (this.attributeName = r), - (this.attributeNamespace = o), - (this.mustUseProperty = n), - (this.propertyName = e), - (this.type = t), - (this.sanitizeURL = a), - (this.removeEmptyString = i); - } - var h = {}; - 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' - .split(' ') - .forEach(function (e) { - h[e] = new f(e, 0, !1, e, null, !1, !1); - }), - [ - ['acceptCharset', 'accept-charset'], - ['className', 'class'], - ['htmlFor', 'for'], - ['httpEquiv', 'http-equiv'], - ].forEach(function (e) { - var t = e[0]; - h[t] = new f(t, 1, !1, e[1], null, !1, !1); - }), - ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (e) { - h[e] = new f(e, 2, !1, e.toLowerCase(), null, !1, !1); - }), - ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function ( - e - ) { - h[e] = new f(e, 2, !1, e, null, !1, !1); - }), - 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' - .split(' ') - .forEach(function (e) { - h[e] = new f(e, 3, !1, e.toLowerCase(), null, !1, !1); - }), - ['checked', 'multiple', 'muted', 'selected'].forEach(function (e) { - h[e] = new f(e, 3, !0, e, null, !1, !1); - }), - ['capture', 'download'].forEach(function (e) { - h[e] = new f(e, 4, !1, e, null, !1, !1); - }), - ['cols', 'rows', 'size', 'span'].forEach(function (e) { - h[e] = new f(e, 6, !1, e, null, !1, !1); - }), - ['rowSpan', 'start'].forEach(function (e) { - h[e] = new f(e, 5, !1, e.toLowerCase(), null, !1, !1); - }); - var g = /[\-:]([a-z])/g; - function b(e) { - return e[1].toUpperCase(); - } - function y(e, t, n, r) { - var o = h.hasOwnProperty(t) ? h[t] : null; - (null !== o - ? 0 !== o.type - : r || - !(2 < t.length) || - ('o' !== t[0] && 'O' !== t[0]) || - ('n' !== t[1] && 'N' !== t[1])) && - ((function (e, t, n, r) { - if ( - null == t || - (function (e, t, n, r) { - if (null !== n && 0 === n.type) return !1; - switch (typeof t) { - case 'function': - case 'symbol': - return !0; - case 'boolean': - return ( - !r && - (null !== n - ? !n.acceptsBooleans - : 'data-' !== (e = e.toLowerCase().slice(0, 5)) && 'aria-' !== e) - ); - default: - return !1; - } - })(e, t, n, r) - ) - return !0; - if (r) return !1; - if (null !== n) - switch (n.type) { - case 3: - return !t; - case 4: - return !1 === t; - case 5: - return isNaN(t); - case 6: - return isNaN(t) || 1 > t; - } - return !1; - })(t, n, o, r) && (n = null), - r || null === o - ? (function (e) { - return ( - !!l.call(p, e) || (!l.call(d, e) && (u.test(e) ? (p[e] = !0) : ((d[e] = !0), !1))) - ); - })(t) && (null === n ? e.removeAttribute(t) : e.setAttribute(t, '' + n)) - : o.mustUseProperty - ? (e[o.propertyName] = null === n ? 3 !== o.type && '' : n) - : ((t = o.attributeName), - (r = o.attributeNamespace), - null === n - ? e.removeAttribute(t) - : ((n = 3 === (o = o.type) || (4 === o && !0 === n) ? '' : '' + n), - r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); - } - 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' - .split(' ') - .forEach(function (e) { - var t = e.replace(g, b); - h[t] = new f(t, 1, !1, e, null, !1, !1); - }), - 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' - .split(' ') - .forEach(function (e) { - var t = e.replace(g, b); - h[t] = new f(t, 1, !1, e, 'http://www.w3.org/1999/xlink', !1, !1); - }), - ['xml:base', 'xml:lang', 'xml:space'].forEach(function (e) { - var t = e.replace(g, b); - h[t] = new f(t, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1, !1); - }), - ['tabIndex', 'crossOrigin'].forEach(function (e) { - h[e] = new f(e, 1, !1, e.toLowerCase(), null, !1, !1); - }), - (h.xlinkHref = new f( - 'xlinkHref', - 1, - !1, - 'xlink:href', - 'http://www.w3.org/1999/xlink', - !0, - !1 - )), - ['src', 'href', 'action', 'formAction'].forEach(function (e) { - h[e] = new f(e, 1, !1, e.toLowerCase(), null, !0, !0); - }); - var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - k = Symbol.for('react.element'), - E = Symbol.for('react.portal'), - S = Symbol.for('react.fragment'), - C = Symbol.for('react.strict_mode'), - O = Symbol.for('react.profiler'), - P = Symbol.for('react.provider'), - T = Symbol.for('react.context'), - I = Symbol.for('react.forward_ref'), - N = Symbol.for('react.suspense'), - M = Symbol.for('react.suspense_list'), - L = Symbol.for('react.memo'), - R = Symbol.for('react.lazy'), - A = Symbol.for('react.offscreen'), - D = Symbol.iterator; - function j(e) { - return null === e || 'object' != typeof e - ? null - : 'function' == typeof (e = (D && e[D]) || e['@@iterator']) - ? e - : null; - } - var z, - F = Object.assign; - function _(e) { - if (void 0 === z) - try { - throw Error(); - } catch (e) { - var t = e.stack.trim().match(/\n( *(at )?)/); - z = (t && t[1]) || ''; - } - return '\n' + z + e; - } - var H = !1; - function $(e, t) { - if (!e || H) return ''; - H = !0; - var n = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - if (t) - if ( - ((t = function () { - throw Error(); - }), - Object.defineProperty(t.prototype, 'props', { - set: function () { - throw Error(); - }, - }), - 'object' == typeof Reflect && Reflect.construct) - ) { - try { - Reflect.construct(t, []); - } catch (e) { - var r = e; - } - Reflect.construct(e, [], t); - } else { - try { - t.call(); - } catch (e) { - r = e; - } - e.call(t.prototype); - } - else { - try { - throw Error(); - } catch (e) { - r = e; - } - e(); - } - } catch (t) { - if (t && r && 'string' == typeof t.stack) { - for ( - var o = t.stack.split('\n'), - a = r.stack.split('\n'), - i = o.length - 1, - s = a.length - 1; - 1 <= i && 0 <= s && o[i] !== a[s]; + 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; +} - ) - s--; - for (; 1 <= i && 0 <= s; i--, s--) - if (o[i] !== a[s]) { - if (1 !== i || 1 !== s) - do { - if ((i--, 0 > --s || o[i] !== a[s])) { - var l = '\n' + o[i].replace(' at new ', ' at '); - return ( - e.displayName && - l.includes('') && - (l = l.replace('', e.displayName)), - l - ); - } - } while (1 <= i && 0 <= s); - break; - } - } - } finally { - (H = !1), (Error.prepareStackTrace = n); - } - return (e = e ? e.displayName || e.name : '') ? _(e) : ''; - } - function B(e) { - switch (e.tag) { - case 5: - return _(e.type); - case 16: - return _('Lazy'); - case 13: - return _('Suspense'); - case 19: - return _('SuspenseList'); - case 0: - case 2: - case 15: - return $(e.type, !1); - case 11: - return $(e.type.render, !1); - case 1: - return $(e.type, !0); - default: - return ''; - } - } - function W(e) { - if (null == e) return null; - if ('function' == typeof e) return e.displayName || e.name || null; - if ('string' == typeof e) return e; - switch (e) { - case S: - return 'Fragment'; - case E: - return 'Portal'; - case O: - return 'Profiler'; - case C: - return 'StrictMode'; - case N: - return 'Suspense'; - case M: - return 'SuspenseList'; - } - if ('object' == typeof e) - switch (e.$$typeof) { - case T: - return (e.displayName || 'Context') + '.Consumer'; - case P: - return (e._context.displayName || 'Context') + '.Provider'; - case I: - var t = e.render; - return ( - (e = e.displayName) || - (e = - '' !== (e = t.displayName || t.name || '') - ? 'ForwardRef(' + e + ')' - : 'ForwardRef'), - e - ); - case L: - return null !== (t = e.displayName || null) ? t : W(e.type) || 'Memo'; - case R: - (t = e._payload), (e = e._init); - try { - return W(e(t)); - } catch (e) {} +{ + jsxRuntime.exports = requireReactJsxRuntime_production_min(); +} + +var jsxRuntimeExports = jsxRuntime.exports; + +var reactDom = { exports: {} }; + +var reactDom_production_min = {}; + +var scheduler = { exports: {} }; + +var scheduler_production_min = {}; + +/** + * @license React + * scheduler.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 hasRequiredScheduler_production_min; + +function requireScheduler_production_min() { + if (hasRequiredScheduler_production_min) return scheduler_production_min; + hasRequiredScheduler_production_min = 1; + (function (exports) { + function f(a, b) { + var c = a.length; + a.push(b); + a: for (; 0 < c; ) { + var d = (c - 1) >>> 1, + e = a[d]; + if (0 < g(e, b)) (a[d] = b), (a[c] = e), (c = d); + else break a; + } + } + function h(a) { + return 0 === a.length ? null : a[0]; + } + function k(a) { + if (0 === a.length) return null; + var b = a[0], + c = a.pop(); + if (c !== b) { + a[0] = c; + a: for (var d = 0, e = a.length, w = e >>> 1; d < w; ) { + var m = 2 * (d + 1) - 1, + C = a[m], + n = m + 1, + x = a[n]; + if (0 > g(C, c)) + n < e && 0 > g(x, C) + ? ((a[d] = x), (a[n] = c), (d = n)) + : ((a[d] = C), (a[m] = c), (d = m)); + else if (n < e && 0 > g(x, c)) (a[d] = x), (a[n] = c), (d = n); + else break a; } - return null; - } - function V(e) { - var t = e.type; - switch (e.tag) { - case 24: - return 'Cache'; - case 9: - return (t.displayName || 'Context') + '.Consumer'; - case 10: - return (t._context.displayName || 'Context') + '.Provider'; - case 18: - return 'DehydratedFragment'; - case 11: - return ( - (e = (e = t.render).displayName || e.name || ''), - t.displayName || ('' !== e ? 'ForwardRef(' + e + ')' : 'ForwardRef') - ); - case 7: - return 'Fragment'; - case 5: - return t; - case 4: - return 'Portal'; - case 3: - return 'Root'; - case 6: - return 'Text'; - case 16: - return W(t); - case 8: - return t === C ? 'StrictMode' : 'Mode'; - case 22: - return 'Offscreen'; - case 12: - return 'Profiler'; - case 21: - return 'Scope'; - case 13: - return 'Suspense'; - case 19: - return 'SuspenseList'; - case 25: - return 'TracingMarker'; - case 1: - case 0: - case 17: - case 2: - case 14: - case 15: - if ('function' == typeof t) return t.displayName || t.name || null; - if ('string' == typeof t) return t; - } - return null; - } - function U(e) { - switch (typeof e) { - case 'boolean': - case 'number': - case 'string': - case 'undefined': - case 'object': - return e; - default: - return ''; } + return b; } - function q(e) { - var t = e.type; - return (e = e.nodeName) && 'input' === e.toLowerCase() && ('checkbox' === t || 'radio' === t); - } - function Y(e) { - e._valueTracker || - (e._valueTracker = (function (e) { - var t = q(e) ? 'checked' : 'value', - n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), - r = '' + e[t]; - if ( - !e.hasOwnProperty(t) && - void 0 !== n && - 'function' == typeof n.get && - 'function' == typeof n.set - ) { - var o = n.get, - a = n.set; - return ( - Object.defineProperty(e, t, { - configurable: !0, - get: function () { - return o.call(this); - }, - set: function (e) { - (r = '' + e), a.call(this, e); - }, - }), - Object.defineProperty(e, t, { enumerable: n.enumerable }), - { - getValue: function () { - return r; - }, - setValue: function (e) { - r = '' + e; - }, - stopTracking: function () { - (e._valueTracker = null), delete e[t]; - }, - } - ); - } - })(e)); - } - function K(e) { - if (!e) return !1; - var t = e._valueTracker; - if (!t) return !0; - var n = t.getValue(), - r = ''; - return ( - e && (r = q(e) ? (e.checked ? 'true' : 'false') : e.value), - (e = r) !== n && (t.setValue(e), !0) - ); - } - function G(e) { - if (void 0 === (e = e || ('undefined' != typeof document ? document : void 0))) return null; - try { - return e.activeElement || e.body; - } catch (t) { - return e.body; - } - } - function Q(e, t) { - var n = t.checked; - return F({}, t, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: null != n ? n : e._wrapperState.initialChecked, - }); + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; } - function X(e, t) { - var n = null == t.defaultValue ? '' : t.defaultValue, - r = null != t.checked ? t.checked : t.defaultChecked; - (n = U(null != t.value ? t.value : n)), - (e._wrapperState = { - initialChecked: r, - initialValue: n, - controlled: - 'checkbox' === t.type || 'radio' === t.type ? null != t.checked : null != t.value, - }); + if ('object' === typeof performance && 'function' === typeof performance.now) { + var l = performance; + exports.unstable_now = function () { + return l.now(); + }; + } else { + var p = Date, + q = p.now(); + exports.unstable_now = function () { + return p.now() - q; + }; } - function J(e, t) { - null != (t = t.checked) && y(e, 'checked', t, !1); - } - function Z(e, t) { - J(e, t); - var n = U(t.value), - r = t.type; - if (null != n) - 'number' === r - ? ((0 === n && '' === e.value) || e.value != n) && (e.value = '' + n) - : e.value !== '' + n && (e.value = '' + n); - else if ('submit' === r || 'reset' === r) return void e.removeAttribute('value'); - t.hasOwnProperty('value') - ? te(e, t.type, n) - : t.hasOwnProperty('defaultValue') && te(e, t.type, U(t.defaultValue)), - null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked); - } - function ee(e, t, n) { - if (t.hasOwnProperty('value') || t.hasOwnProperty('defaultValue')) { - var r = t.type; - if (!(('submit' !== r && 'reset' !== r) || (void 0 !== t.value && null !== t.value))) - return; - (t = '' + e._wrapperState.initialValue), - n || t === e.value || (e.value = t), - (e.defaultValue = t); - } - '' !== (n = e.name) && (e.name = ''), - (e.defaultChecked = !!e._wrapperState.initialChecked), - '' !== n && (e.name = n); - } - function te(e, t, n) { - ('number' === t && G(e.ownerDocument) === e) || - (null == n - ? (e.defaultValue = '' + e._wrapperState.initialValue) - : e.defaultValue !== '' + n && (e.defaultValue = '' + n)); - } - var ne = Array.isArray; - function re(e, t, n, r) { - if (((e = e.options), t)) { - t = {}; - for (var o = 0; o < n.length; o++) t['$' + n[o]] = !0; - for (n = 0; n < e.length; n++) - (o = t.hasOwnProperty('$' + e[n].value)), - e[n].selected !== o && (e[n].selected = o), - o && r && (e[n].defaultSelected = !0); - } else { - for (n = '' + U(n), t = null, o = 0; o < e.length; o++) { - if (e[o].value === n) - return (e[o].selected = !0), void (r && (e[o].defaultSelected = !0)); - null !== t || e[o].disabled || (t = e[o]); + var r = [], + t = [], + u = 1, + v = null, + y = 3, + z = !1, + A = !1, + B = !1, + D = 'function' === typeof setTimeout ? setTimeout : null, + E = 'function' === typeof clearTimeout ? clearTimeout : null, + F = 'undefined' !== typeof setImmediate ? setImmediate : null; + 'undefined' !== typeof navigator && + void 0 !== navigator.scheduling && + void 0 !== navigator.scheduling.isInputPending && + navigator.scheduling.isInputPending.bind(navigator.scheduling); + function G(a) { + for (var b = h(t); null !== b; ) { + if (null === b.callback) k(t); + else if (b.startTime <= a) k(t), (b.sortIndex = b.expirationTime), f(r, b); + else break; + b = h(t); + } + } + function H(a) { + B = !1; + G(a); + if (!A) + if (null !== h(r)) (A = !0), I(J); + else { + var b = h(t); + null !== b && K(H, b.startTime - a); } - null !== t && (t.selected = !0); - } - } - function oe(e, t) { - if (null != t.dangerouslySetInnerHTML) throw Error(n(91)); - return F({}, t, { - value: void 0, - defaultValue: void 0, - children: '' + e._wrapperState.initialValue, - }); } - function ae(e, t) { - var r = t.value; - if (null == r) { - if (((r = t.children), (t = t.defaultValue), null != r)) { - if (null != t) throw Error(n(92)); - if (ne(r)) { - if (1 < r.length) throw Error(n(93)); - r = r[0]; - } - t = r; + function J(a, b) { + A = !1; + B && ((B = !1), E(L), (L = -1)); + z = !0; + var c = y; + try { + G(b); + for (v = h(r); null !== v && (!(v.expirationTime > b) || (a && !M())); ) { + var d = v.callback; + if ('function' === typeof d) { + v.callback = null; + y = v.priorityLevel; + var e = d(v.expirationTime <= b); + b = exports.unstable_now(); + 'function' === typeof e ? (v.callback = e) : v === h(r) && k(r); + G(b); + } else k(r); + v = h(r); } - null == t && (t = ''), (r = t); - } - e._wrapperState = { initialValue: U(r) }; - } - function ie(e, t) { - var n = U(t.value), - r = U(t.defaultValue); - null != n && - ((n = '' + n) !== e.value && (e.value = n), - null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)), - null != r && (e.defaultValue = '' + r); - } - function se(e) { - var t = e.textContent; - t === e._wrapperState.initialValue && '' !== t && null !== t && (e.value = t); - } - function le(e) { - switch (e) { - case 'svg': - return 'http://www.w3.org/2000/svg'; - case 'math': - return 'http://www.w3.org/1998/Math/MathML'; - default: - return 'http://www.w3.org/1999/xhtml'; - } - } - function ce(e, t) { - return null == e || 'http://www.w3.org/1999/xhtml' === e - ? le(t) - : 'http://www.w3.org/2000/svg' === e && 'foreignObject' === t - ? 'http://www.w3.org/1999/xhtml' - : e; - } - var ue, - de = (function (e) { - return 'undefined' != typeof MSApp && MSApp.execUnsafeLocalFunction - ? function (t, n, r, o) { - MSApp.execUnsafeLocalFunction(function () { - return e(t, n); - }); - } - : e; - })(function (e, t) { - if ('http://www.w3.org/2000/svg' !== e.namespaceURI || 'innerHTML' in e) e.innerHTML = t; + if (null !== v) var w = !0; else { - for ( - (ue = ue || document.createElement('div')).innerHTML = - '' + t.valueOf().toString() + '', - t = ue.firstChild; - e.firstChild; - - ) - e.removeChild(e.firstChild); - for (; t.firstChild; ) e.appendChild(t.firstChild); + var m = h(t); + null !== m && K(H, m.startTime - b); + w = !1; } - }); - function pe(e, t) { - if (t) { - var n = e.firstChild; - if (n && n === e.lastChild && 3 === n.nodeType) return void (n.nodeValue = t); - } - e.textContent = t; - } - var fe = { - animationIterationCount: !0, - aspectRatio: !0, - borderImageOutset: !0, - borderImageSlice: !0, - borderImageWidth: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - columns: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridArea: !0, - gridRow: !0, - gridRowEnd: !0, - gridRowSpan: !0, - gridRowStart: !0, - gridColumn: !0, - gridColumnEnd: !0, - gridColumnSpan: !0, - gridColumnStart: !0, - fontWeight: !0, - lineClamp: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - tabSize: !0, - widows: !0, - zIndex: !0, - zoom: !0, - fillOpacity: !0, - floodOpacity: !0, - stopOpacity: !0, - strokeDasharray: !0, - strokeDashoffset: !0, - strokeMiterlimit: !0, - strokeOpacity: !0, - strokeWidth: !0, - }, - me = ['Webkit', 'ms', 'Moz', 'O']; - function he(e, t, n) { - return null == t || 'boolean' == typeof t || '' === t - ? '' - : n || 'number' != typeof t || 0 === t || (fe.hasOwnProperty(e) && fe[e]) - ? ('' + t).trim() - : t + 'px'; - } - function ge(e, t) { - for (var n in ((e = e.style), t)) - if (t.hasOwnProperty(n)) { - var r = 0 === n.indexOf('--'), - o = he(n, t[n], r); - 'float' === n && (n = 'cssFloat'), r ? e.setProperty(n, o) : (e[n] = o); - } - } - Object.keys(fe).forEach(function (e) { - me.forEach(function (t) { - (t = t + e.charAt(0).toUpperCase() + e.substring(1)), (fe[t] = fe[e]); - }); - }); - var ve = F( - { menuitem: !0 }, - { - area: !0, - base: !0, - br: !0, - col: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0, - } - ); - function be(e, t) { - if (t) { - if (ve[e] && (null != t.children || null != t.dangerouslySetInnerHTML)) - throw Error(n(137, e)); - if (null != t.dangerouslySetInnerHTML) { - if (null != t.children) throw Error(n(60)); - if ( - 'object' != typeof t.dangerouslySetInnerHTML || - !('__html' in t.dangerouslySetInnerHTML) - ) - throw Error(n(61)); + return w; + } finally { + (v = null), (y = c), (z = !1); + } + } + var N = !1, + O = null, + L = -1, + P = 5, + Q = -1; + function M() { + return exports.unstable_now() - Q < P ? !1 : !0; + } + function R() { + if (null !== O) { + var a = exports.unstable_now(); + Q = a; + var b = !0; + try { + b = O(!0, a); + } finally { + b ? S() : ((N = !1), (O = null)); } - if (null != t.style && 'object' != typeof t.style) throw Error(n(62)); - } + } else N = !1; } - function ye(e, t) { - if (-1 === e.indexOf('-')) return 'string' == typeof t.is; - switch (e) { - case 'annotation-xml': - case 'color-profile': - case 'font-face': - case 'font-face-src': - case 'font-face-uri': - case 'font-face-format': - case 'font-face-name': - case 'missing-glyph': - return !1; + var S; + if ('function' === typeof F) + S = function () { + F(R); + }; + else if ('undefined' !== typeof MessageChannel) { + var T = new MessageChannel(), + U = T.port2; + T.port1.onmessage = R; + S = function () { + U.postMessage(null); + }; + } else + S = function () { + D(R, 0); + }; + function I(a) { + O = a; + N || ((N = !0), S()); + } + function K(a, b) { + L = D(function () { + a(exports.unstable_now()); + }, b); + } + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_cancelCallback = function (a) { + a.callback = null; + }; + exports.unstable_continueExecution = function () { + A || z || ((A = !0), I(J)); + }; + exports.unstable_forceFrameRate = function (a) { + 0 > a || 125 < a + ? console.error( + 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported' + ) + : (P = 0 < a ? Math.floor(1e3 / a) : 5); + }; + exports.unstable_getCurrentPriorityLevel = function () { + return y; + }; + exports.unstable_getFirstCallbackNode = function () { + return h(r); + }; + exports.unstable_next = function (a) { + switch (y) { + case 1: + case 2: + case 3: + var b = 3; + break; default: - return !0; - } - } - var we = null; - function xe(e) { - return ( - (e = e.target || e.srcElement || window).correspondingUseElement && - (e = e.correspondingUseElement), - 3 === e.nodeType ? e.parentNode : e - ); - } - var ke = null, - Ee = null, - Se = null; - function Ce(e) { - if ((e = wo(e))) { - if ('function' != typeof ke) throw Error(n(280)); - var t = e.stateNode; - t && ((t = ko(t)), ke(e.stateNode, e.type, t)); + b = y; } - } - function Oe(e) { - Ee ? (Se ? Se.push(e) : (Se = [e])) : (Ee = e); - } - function Pe() { - if (Ee) { - var e = Ee, - t = Se; - if (((Se = Ee = null), Ce(e), t)) for (e = 0; e < t.length; e++) Ce(t[e]); - } - } - function Te(e, t) { - return e(t); - } - function Ie() {} - var Ne = !1; - function Me(e, t, n) { - if (Ne) return e(t, n); - Ne = !0; + var c = y; + y = b; try { - return Te(e, t, n); + return a(); } finally { - (Ne = !1), (null !== Ee || null !== Se) && (Ie(), Pe()); - } - } - function Le(e, t) { - var r = e.stateNode; - if (null === r) return null; - var o = ko(r); - if (null === o) return null; - r = o[t]; - e: switch (t) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - case 'onMouseEnter': - (o = !o.disabled) || - (o = !( - 'button' === (e = e.type) || - 'input' === e || - 'select' === e || - 'textarea' === e - )), - (e = !o); - break e; + y = c; + } + }; + exports.unstable_pauseExecution = function () {}; + exports.unstable_requestPaint = function () {}; + exports.unstable_runWithPriority = function (a, b) { + switch (a) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; default: - e = !1; + a = 3; } - if (e) return null; - if (r && 'function' != typeof r) throw Error(n(231, t, typeof r)); - return r; - } - var Re = !1; - if (s) + var c = y; + y = a; try { - var Ae = {}; - Object.defineProperty(Ae, 'passive', { - get: function () { - Re = !0; - }, - }), - window.addEventListener('test', Ae, Ae), - window.removeEventListener('test', Ae, Ae); - } catch (e) { - Re = !1; + return b(); + } finally { + y = c; } - function De(e, t, n, r, o, a, i, s, l) { - var c = Array.prototype.slice.call(arguments, 3); - try { - t.apply(n, c); - } catch (e) { - this.onError(e); + }; + exports.unstable_scheduleCallback = function (a, b, c) { + var d = exports.unstable_now(); + 'object' === typeof c && null !== c + ? ((c = c.delay), (c = 'number' === typeof c && 0 < c ? d + c : d)) + : (c = d); + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1e4; + break; + default: + e = 5e3; } - } - var je = !1, - ze = null, - Fe = !1, - _e = null, - He = { - onError: function (e) { - (je = !0), (ze = e); - }, + e = c + e; + a = { + id: u++, + callback: b, + priorityLevel: a, + startTime: c, + expirationTime: e, + sortIndex: -1, }; - function $e(e, t, n, r, o, a, i, s, l) { - (je = !1), (ze = null), De.apply(He, arguments); - } - function Be(e) { - var t = e, - n = e; - if (e.alternate) for (; t.return; ) t = t.return; - else { - e = t; - do { - !!(4098 & (t = e).flags) && (n = t.return), (e = t.return); - } while (e); - } - return 3 === t.tag ? n : null; - } - function We(e) { - if (13 === e.tag) { - var t = e.memoizedState; - if ((null === t && null !== (e = e.alternate) && (t = e.memoizedState), null !== t)) - return t.dehydrated; - } - return null; - } - function Ve(e) { - if (Be(e) !== e) throw Error(n(188)); - } - function Ue(e) { - return ( - (e = (function (e) { - var t = e.alternate; - if (!t) { - if (null === (t = Be(e))) throw Error(n(188)); - return t !== e ? null : e; - } - for (var r = e, o = t; ; ) { - var a = r.return; - if (null === a) break; - var i = a.alternate; - if (null === i) { - if (null !== (o = a.return)) { - r = o; - continue; - } - break; - } - if (a.child === i.child) { - for (i = a.child; i; ) { - if (i === r) return Ve(a), e; - if (i === o) return Ve(a), t; - i = i.sibling; - } - throw Error(n(188)); - } - if (r.return !== o.return) (r = a), (o = i); - else { - for (var s = !1, l = a.child; l; ) { - if (l === r) { - (s = !0), (r = a), (o = i); - break; - } - if (l === o) { - (s = !0), (o = a), (r = i); - break; - } - l = l.sibling; - } - if (!s) { - for (l = i.child; l; ) { - if (l === r) { - (s = !0), (r = i), (o = a); - break; - } - if (l === o) { - (s = !0), (o = i), (r = a); - break; - } - l = l.sibling; - } - if (!s) throw Error(n(189)); - } - } - if (r.alternate !== o) throw Error(n(190)); - } - if (3 !== r.tag) throw Error(n(188)); - return r.stateNode.current === r ? e : t; - })(e)), - null !== e ? qe(e) : null - ); - } - function qe(e) { - if (5 === e.tag || 6 === e.tag) return e; - for (e = e.child; null !== e; ) { - var t = qe(e); - if (null !== t) return t; - e = e.sibling; - } - return null; - } - var Ye = t.unstable_scheduleCallback, - Ke = t.unstable_cancelCallback, - Ge = t.unstable_shouldYield, - Qe = t.unstable_requestPaint, - Xe = t.unstable_now, - Je = t.unstable_getCurrentPriorityLevel, - Ze = t.unstable_ImmediatePriority, - et = t.unstable_UserBlockingPriority, - tt = t.unstable_NormalPriority, - nt = t.unstable_LowPriority, - rt = t.unstable_IdlePriority, - ot = null, - at = null, - it = Math.clz32 - ? Math.clz32 - : function (e) { - return 0 === (e >>>= 0) ? 32 : (31 - ((st(e) / lt) | 0)) | 0; - }, - st = Math.log, - lt = Math.LN2, - ct = 64, - ut = 4194304; - function dt(e) { - switch (e & -e) { - case 1: - return 1; - case 2: - return 2; - case 4: - return 4; - case 8: - return 8; - case 16: - return 16; - case 32: - return 32; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return 4194240 & e; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return 130023424 & e; - case 134217728: - return 134217728; - case 268435456: - return 268435456; - case 536870912: - return 536870912; - case 1073741824: - return 1073741824; - default: - return e; - } - } - function pt(e, t) { - var n = e.pendingLanes; - if (0 === n) return 0; - var r = 0, - o = e.suspendedLanes, - a = e.pingedLanes, - i = 268435455 & n; - if (0 !== i) { - var s = i & ~o; - 0 !== s ? (r = dt(s)) : 0 != (a &= i) && (r = dt(a)); - } else 0 != (i = n & ~o) ? (r = dt(i)) : 0 !== a && (r = dt(a)); - if (0 === r) return 0; - if ( - 0 !== t && - t !== r && - !(t & o) && - ((o = r & -r) >= (a = t & -t) || (16 === o && 4194240 & a)) - ) - return t; - if ((4 & r && (r |= 16 & n), 0 !== (t = e.entangledLanes))) - for (e = e.entanglements, t &= r; 0 < t; ) - (o = 1 << (n = 31 - it(t))), (r |= e[n]), (t &= ~o); - return r; + c > d + ? ((a.sortIndex = c), + f(t, a), + null === h(r) && a === h(t) && (B ? (E(L), (L = -1)) : (B = !0), K(H, c - d))) + : ((a.sortIndex = e), f(r, a), A || z || ((A = !0), I(J))); + return a; + }; + exports.unstable_shouldYield = M; + exports.unstable_wrapCallback = function (a) { + var b = y; + return function () { + var c = y; + y = b; + try { + return a.apply(this, arguments); + } finally { + y = c; + } + }; + }; + })(scheduler_production_min); + return scheduler_production_min; +} + +var hasRequiredScheduler; + +function requireScheduler() { + if (hasRequiredScheduler) return scheduler.exports; + hasRequiredScheduler = 1; + + { + scheduler.exports = requireScheduler_production_min(); + } + return scheduler.exports; +} + +/** + * @license React + * react-dom.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 hasRequiredReactDom_production_min; + +function requireReactDom_production_min() { + if (hasRequiredReactDom_production_min) return reactDom_production_min; + hasRequiredReactDom_production_min = 1; + var aa = reactExports, + ca = requireScheduler(); + function p(a) { + for ( + var b = 'https://reactjs.org/docs/error-decoder.html?invariant=' + a, c = 1; + c < arguments.length; + c++ + ) + b += '&args[]=' + encodeURIComponent(arguments[c]); + return ( + 'Minified React error #' + + a + + '; visit ' + + b + + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' + ); + } + var da = new Set(), + ea = {}; + function fa(a, b) { + ha(a, b); + ha(a + 'Capture', b); + } + function ha(a, b) { + ea[a] = b; + for (a = 0; a < b.length; a++) da.add(b[a]); + } + var ia = !( + 'undefined' === typeof window || + 'undefined' === typeof window.document || + 'undefined' === typeof window.document.createElement + ), + ja = Object.prototype.hasOwnProperty, + ka = + /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, + la = {}, + ma = {}; + function oa(a) { + if (ja.call(ma, a)) return !0; + if (ja.call(la, a)) return !1; + if (ka.test(a)) return (ma[a] = !0); + la[a] = !0; + return !1; + } + function pa(a, b, c, d) { + if (null !== c && 0 === c.type) return !1; + switch (typeof b) { + case 'function': + case 'symbol': + return !0; + case 'boolean': + if (d) return !1; + if (null !== c) return !c.acceptsBooleans; + a = a.toLowerCase().slice(0, 5); + return 'data-' !== a && 'aria-' !== a; + default: + return !1; } - function ft(e, t) { - switch (e) { - case 1: - case 2: + } + function qa(a, b, c, d) { + if (null === b || 'undefined' === typeof b || pa(a, b, c, d)) return !0; + if (d) return !1; + if (null !== c) + switch (c.type) { + case 3: + return !b; case 4: - return t + 250; - case 8: - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return t + 5e3; - default: - return -1; - } - } - function mt(e) { - return 0 != (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0; - } - function ht() { - var e = ct; - return !(4194240 & (ct <<= 1)) && (ct = 64), e; - } - function gt(e) { - for (var t = [], n = 0; 31 > n; n++) t.push(e); - return t; - } - function vt(e, t, n) { - (e.pendingLanes |= t), - 536870912 !== t && ((e.suspendedLanes = 0), (e.pingedLanes = 0)), - ((e = e.eventTimes)[(t = 31 - it(t))] = n); - } - function bt(e, t) { - var n = (e.entangledLanes |= t); - for (e = e.entanglements; n; ) { - var r = 31 - it(n), - o = 1 << r; - (o & t) | (e[r] & t) && (e[r] |= t), (n &= ~o); - } - } - var yt = 0; - function wt(e) { - return 1 < (e &= -e) ? (4 < e ? (268435455 & e ? 16 : 536870912) : 4) : 1; - } - var xt, - kt, - Et, - St, - Ct, - Ot = !1, - Pt = [], - Tt = null, - It = null, - Nt = null, - Mt = new Map(), - Lt = new Map(), - Rt = [], - At = - 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split( - ' ' - ); - function Dt(e, t) { - switch (e) { - case 'focusin': - case 'focusout': - Tt = null; - break; - case 'dragenter': - case 'dragleave': - It = null; - break; - case 'mouseover': - case 'mouseout': - Nt = null; - break; - case 'pointerover': - case 'pointerout': - Mt.delete(t.pointerId); - break; - case 'gotpointercapture': - case 'lostpointercapture': - Lt.delete(t.pointerId); - } - } - function jt(e, t, n, r, o, a) { - return null === e || e.nativeEvent !== a - ? ((e = { - blockedOn: t, - domEventName: n, - eventSystemFlags: r, - nativeEvent: a, - targetContainers: [o], - }), - null !== t && null !== (t = wo(t)) && kt(t), - e) - : ((e.eventSystemFlags |= r), - (t = e.targetContainers), - null !== o && -1 === t.indexOf(o) && t.push(o), - e); - } - function zt(e) { - var t = yo(e.target); - if (null !== t) { - var n = Be(t); - if (null !== n) - if (13 === (t = n.tag)) { - if (null !== (t = We(n))) - return ( - (e.blockedOn = t), - void Ct(e.priority, function () { - Et(n); - }) - ); - } else if (3 === t && n.stateNode.current.memoizedState.isDehydrated) - return void (e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null); - } - e.blockedOn = null; - } - function Ft(e) { - if (null !== e.blockedOn) return !1; - for (var t = e.targetContainers; 0 < t.length; ) { - var n = Gt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); - if (null !== n) return null !== (t = wo(n)) && kt(t), (e.blockedOn = n), !1; - var r = new (n = e.nativeEvent).constructor(n.type, n); - (we = r), n.target.dispatchEvent(r), (we = null), t.shift(); - } - return !0; - } - function _t(e, t, n) { - Ft(e) && n.delete(t); - } - function Ht() { - (Ot = !1), - null !== Tt && Ft(Tt) && (Tt = null), - null !== It && Ft(It) && (It = null), - null !== Nt && Ft(Nt) && (Nt = null), - Mt.forEach(_t), - Lt.forEach(_t); - } - function $t(e, n) { - e.blockedOn === n && - ((e.blockedOn = null), - Ot || ((Ot = !0), t.unstable_scheduleCallback(t.unstable_NormalPriority, Ht))); - } - function Bt(e) { - function t(t) { - return $t(t, e); - } - if (0 < Pt.length) { - $t(Pt[0], e); - for (var n = 1; n < Pt.length; n++) { - var r = Pt[n]; - r.blockedOn === e && (r.blockedOn = null); - } + return !1 === b; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; } - for ( - null !== Tt && $t(Tt, e), - null !== It && $t(It, e), - null !== Nt && $t(Nt, e), - Mt.forEach(t), - Lt.forEach(t), - n = 0; - n < Rt.length; - n++ - ) - (r = Rt[n]).blockedOn === e && (r.blockedOn = null); - for (; 0 < Rt.length && null === (n = Rt[0]).blockedOn; ) - zt(n), null === n.blockedOn && Rt.shift(); - } - var Wt = x.ReactCurrentBatchConfig, - Vt = !0; - function Ut(e, t, n, r) { - var o = yt, - a = Wt.transition; - Wt.transition = null; + return !1; + } + function v(a, b, c, d, e, f, g) { + this.acceptsBooleans = 2 === b || 3 === b || 4 === b; + this.attributeName = d; + this.attributeNamespace = e; + this.mustUseProperty = c; + this.propertyName = a; + this.type = b; + this.sanitizeURL = f; + this.removeEmptyString = g; + } + var z = {}; + 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' + .split(' ') + .forEach(function (a) { + z[a] = new v(a, 0, !1, a, null, !1, !1); + }); + [ + ['acceptCharset', 'accept-charset'], + ['className', 'class'], + ['htmlFor', 'for'], + ['httpEquiv', 'http-equiv'], + ].forEach(function (a) { + var b = a[0]; + z[b] = new v(b, 1, !1, a[1], null, !1, !1); + }); + ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (a) { + z[a] = new v(a, 2, !1, a.toLowerCase(), null, !1, !1); + }); + ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (a) { + z[a] = new v(a, 2, !1, a, null, !1, !1); + }); + 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' + .split(' ') + .forEach(function (a) { + z[a] = new v(a, 3, !1, a.toLowerCase(), null, !1, !1); + }); + ['checked', 'multiple', 'muted', 'selected'].forEach(function (a) { + z[a] = new v(a, 3, !0, a, null, !1, !1); + }); + ['capture', 'download'].forEach(function (a) { + z[a] = new v(a, 4, !1, a, null, !1, !1); + }); + ['cols', 'rows', 'size', 'span'].forEach(function (a) { + z[a] = new v(a, 6, !1, a, null, !1, !1); + }); + ['rowSpan', 'start'].forEach(function (a) { + z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1); + }); + var ra = /[\-:]([a-z])/g; + function sa(a) { + return a[1].toUpperCase(); + } + 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' + .split(' ') + .forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, null, !1, !1); + }); + 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' + .split(' ') + .forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, 'http://www.w3.org/1999/xlink', !1, !1); + }); + ['xml:base', 'xml:lang', 'xml:space'].forEach(function (a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, !1, a, 'http://www.w3.org/XML/1998/namespace', !1, !1); + }); + ['tabIndex', 'crossOrigin'].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1); + }); + z.xlinkHref = new v('xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1); + ['src', 'href', 'action', 'formAction'].forEach(function (a) { + z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0); + }); + function ta(a, b, c, d) { + var e = z.hasOwnProperty(b) ? z[b] : null; + if ( + null !== e + ? 0 !== e.type + : d || !(2 < b.length) || ('o' !== b[0] && 'O' !== b[0]) || ('n' !== b[1] && 'N' !== b[1]) + ) + qa(b, c, e, d) && (c = null), + d || null === e + ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, '' + c)) + : e.mustUseProperty + ? (a[e.propertyName] = null === c ? (3 === e.type ? !1 : '') : c) + : ((b = e.attributeName), + (d = e.attributeNamespace), + null === c + ? a.removeAttribute(b) + : ((e = e.type), + (c = 3 === e || (4 === e && !0 === c) ? '' : '' + c), + d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))); + } + var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + va = Symbol.for('react.element'), + wa = Symbol.for('react.portal'), + ya = Symbol.for('react.fragment'), + za = Symbol.for('react.strict_mode'), + Aa = Symbol.for('react.profiler'), + Ba = Symbol.for('react.provider'), + Ca = Symbol.for('react.context'), + Da = Symbol.for('react.forward_ref'), + Ea = Symbol.for('react.suspense'), + Fa = Symbol.for('react.suspense_list'), + Ga = Symbol.for('react.memo'), + Ha = Symbol.for('react.lazy'); + var Ia = Symbol.for('react.offscreen'); + var Ja = Symbol.iterator; + function Ka(a) { + if (null === a || 'object' !== typeof a) return null; + a = (Ja && a[Ja]) || a['@@iterator']; + return 'function' === typeof a ? a : null; + } + var A = Object.assign, + La; + function Ma(a) { + if (void 0 === La) try { - (yt = 1), Yt(e, t, n, r); - } finally { - (yt = o), (Wt.transition = a); + throw Error(); + } catch (c) { + var b = c.stack.trim().match(/\n( *(at )?)/); + La = (b && b[1]) || ''; } - } - function qt(e, t, n, r) { - var o = yt, - a = Wt.transition; - Wt.transition = null; - try { - (yt = 4), Yt(e, t, n, r); - } finally { - (yt = o), (Wt.transition = a); + return '\n' + La + a; + } + var Na = !1; + function Oa(a, b) { + if (!a || Na) return ''; + Na = !0; + var c = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b) + if ( + ((b = function () { + throw Error(); + }), + Object.defineProperty(b.prototype, 'props', { + set: function () { + throw Error(); + }, + }), + 'object' === typeof Reflect && Reflect.construct) + ) { + try { + Reflect.construct(b, []); + } catch (l) { + var d = l; + } + Reflect.construct(a, [], b); + } else { + try { + b.call(); + } catch (l) { + d = l; + } + a.call(b.prototype); + } + else { + try { + throw Error(); + } catch (l) { + d = l; + } + a(); } - } - function Yt(e, t, n, r) { - if (Vt) { - var o = Gt(e, t, n, r); - if (null === o) Vr(e, t, r, Kt, n), Dt(e, r); - else if ( - (function (e, t, n, r, o) { - switch (t) { - case 'focusin': - return (Tt = jt(Tt, e, t, n, r, o)), !0; - case 'dragenter': - return (It = jt(It, e, t, n, r, o)), !0; - case 'mouseover': - return (Nt = jt(Nt, e, t, n, r, o)), !0; - case 'pointerover': - var a = o.pointerId; - return Mt.set(a, jt(Mt.get(a) || null, e, t, n, r, o)), !0; - case 'gotpointercapture': - return (a = o.pointerId), Lt.set(a, jt(Lt.get(a) || null, e, t, n, r, o)), !0; - } - return !1; - })(o, e, t, n, r) + } catch (l) { + if (l && d && 'string' === typeof l.stack) { + for ( + var e = l.stack.split('\n'), f = d.stack.split('\n'), g = e.length - 1, h = f.length - 1; + 1 <= g && 0 <= h && e[g] !== f[h]; + ) - r.stopPropagation(); - else if ((Dt(e, r), 4 & t && -1 < At.indexOf(e))) { - for (; null !== o; ) { - var a = wo(o); - if ((null !== a && xt(a), null === (a = Gt(e, t, n, r)) && Vr(e, t, r, Kt, n), a === o)) - break; - o = a; - } - null !== o && r.stopPropagation(); - } else Vr(e, t, r, null, n); - } - } - var Kt = null; - function Gt(e, t, n, r) { - if (((Kt = null), null !== (e = yo((e = xe(r)))))) - if (null === (t = Be(e))) e = null; - else if (13 === (n = t.tag)) { - if (null !== (e = We(t))) return e; - e = null; - } else if (3 === n) { - if (t.stateNode.current.memoizedState.isDehydrated) - return 3 === t.tag ? t.stateNode.containerInfo : null; - e = null; - } else t !== e && (e = null); - return (Kt = e), null; - } - function Qt(e) { - switch (e) { - case 'cancel': - case 'click': - case 'close': - case 'contextmenu': - case 'copy': - case 'cut': - case 'auxclick': - case 'dblclick': - case 'dragend': - case 'dragstart': - case 'drop': - case 'focusin': - case 'focusout': - case 'input': - case 'invalid': - case 'keydown': - case 'keypress': - case 'keyup': - case 'mousedown': - case 'mouseup': - case 'paste': - case 'pause': - case 'play': - case 'pointercancel': - case 'pointerdown': - case 'pointerup': - case 'ratechange': - case 'reset': - case 'resize': - case 'seeked': - case 'submit': - case 'touchcancel': - case 'touchend': - case 'touchstart': - case 'volumechange': - case 'change': - case 'selectionchange': - case 'textInput': - case 'compositionstart': - case 'compositionend': - case 'compositionupdate': - case 'beforeblur': - case 'afterblur': - case 'beforeinput': - case 'blur': - case 'fullscreenchange': - case 'focus': - case 'hashchange': - case 'popstate': - case 'select': - case 'selectstart': - return 1; - case 'drag': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'mousemove': - case 'mouseout': - case 'mouseover': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'scroll': - case 'toggle': - case 'touchmove': - case 'wheel': - case 'mouseenter': - case 'mouseleave': - case 'pointerenter': - case 'pointerleave': - return 4; - case 'message': - switch (Je()) { - case Ze: - return 1; - case et: - return 4; - case tt: - case nt: - return 16; - case rt: - return 536870912; - default: - return 16; + h--; + for (; 1 <= g && 0 <= h; g--, h--) + if (e[g] !== f[h]) { + if (1 !== g || 1 !== h) { + do + if ((g--, h--, 0 > h || e[g] !== f[h])) { + var k = '\n' + e[g].replace(' at new ', ' at '); + a.displayName && + k.includes('') && + (k = k.replace('', a.displayName)); + return k; + } + while (1 <= g && 0 <= h); + } + break; } - default: - return 16; - } - } - var Xt = null, - Jt = null, - Zt = null; - function en() { - if (Zt) return Zt; - var e, - t, - n = Jt, - r = n.length, - o = 'value' in Xt ? Xt.value : Xt.textContent, - a = o.length; - for (e = 0; e < r && n[e] === o[e]; e++); - var i = r - e; - for (t = 1; t <= i && n[r - t] === o[a - t]; t++); - return (Zt = o.slice(e, 1 < t ? 1 - t : void 0)); - } - function tn(e) { - var t = e.keyCode; - return ( - 'charCode' in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : (e = t), - 10 === e && (e = 13), - 32 <= e || 13 === e ? e : 0 - ); + } + } finally { + (Na = !1), (Error.prepareStackTrace = c); } - function nn() { - return !0; + return (a = a ? a.displayName || a.name : '') ? Ma(a) : ''; + } + function Pa(a) { + switch (a.tag) { + case 5: + return Ma(a.type); + case 16: + return Ma('Lazy'); + case 13: + return Ma('Suspense'); + case 19: + return Ma('SuspenseList'); + case 0: + case 2: + case 15: + return (a = Oa(a.type, !1)), a; + case 11: + return (a = Oa(a.type.render, !1)), a; + case 1: + return (a = Oa(a.type, !0)), a; + default: + return ''; } - function rn() { - return !1; - } - function on(e) { - function t(t, n, r, o, a) { - for (var i in ((this._reactName = t), - (this._targetInst = r), - (this.type = n), - (this.nativeEvent = o), - (this.target = a), - (this.currentTarget = null), - e)) - e.hasOwnProperty(i) && ((t = e[i]), (this[i] = t ? t(o) : o[i])); + } + function Qa(a) { + if (null == a) return null; + if ('function' === typeof a) return a.displayName || a.name || null; + if ('string' === typeof a) return a; + switch (a) { + case ya: + return 'Fragment'; + case wa: + return 'Portal'; + case Aa: + return 'Profiler'; + case za: + return 'StrictMode'; + case Ea: + return 'Suspense'; + case Fa: + return 'SuspenseList'; + } + if ('object' === typeof a) + switch (a.$$typeof) { + case Ca: + return (a.displayName || 'Context') + '.Consumer'; + case Ba: + return (a._context.displayName || 'Context') + '.Provider'; + case Da: + var b = a.render; + a = a.displayName; + a || + ((a = b.displayName || b.name || ''), + (a = '' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef')); + return a; + case Ga: + return (b = a.displayName || null), null !== b ? b : Qa(a.type) || 'Memo'; + case Ha: + b = a._payload; + a = a._init; + try { + return Qa(a(b)); + } catch (c) {} + } + return null; + } + function Ra(a) { + var b = a.type; + switch (a.tag) { + case 24: + return 'Cache'; + case 9: + return (b.displayName || 'Context') + '.Consumer'; + case 10: + return (b._context.displayName || 'Context') + '.Provider'; + case 18: + return 'DehydratedFragment'; + case 11: return ( - (this.isDefaultPrevented = ( - null != o.defaultPrevented ? o.defaultPrevented : !1 === o.returnValue - ) - ? nn - : rn), - (this.isPropagationStopped = rn), - this + (a = b.render), + (a = a.displayName || a.name || ''), + b.displayName || ('' !== a ? 'ForwardRef(' + a + ')' : 'ForwardRef') ); - } - return ( - F(t.prototype, { - preventDefault: function () { - this.defaultPrevented = !0; - var e = this.nativeEvent; - e && - (e.preventDefault - ? e.preventDefault() - : 'unknown' != typeof e.returnValue && (e.returnValue = !1), - (this.isDefaultPrevented = nn)); - }, - stopPropagation: function () { - var e = this.nativeEvent; - e && - (e.stopPropagation - ? e.stopPropagation() - : 'unknown' != typeof e.cancelBubble && (e.cancelBubble = !0), - (this.isPropagationStopped = nn)); - }, - persist: function () {}, - isPersistent: nn, - }), - t - ); + case 7: + return 'Fragment'; + case 5: + return b; + case 4: + return 'Portal'; + case 3: + return 'Root'; + case 6: + return 'Text'; + case 16: + return Qa(b); + case 8: + return b === za ? 'StrictMode' : 'Mode'; + case 22: + return 'Offscreen'; + case 12: + return 'Profiler'; + case 21: + return 'Scope'; + case 13: + return 'Suspense'; + case 19: + return 'SuspenseList'; + case 25: + return 'TracingMarker'; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ('function' === typeof b) return b.displayName || b.name || null; + if ('string' === typeof b) return b; } - var an, - sn, - ln, - cn = { - eventPhase: 0, - bubbles: 0, - cancelable: 0, - timeStamp: function (e) { - return e.timeStamp || Date.now(); - }, - defaultPrevented: 0, - isTrusted: 0, - }, - un = on(cn), - dn = F({}, cn, { view: 0, detail: 0 }), - pn = on(dn), - fn = F({}, dn, { - screenX: 0, - screenY: 0, - clientX: 0, - clientY: 0, - pageX: 0, - pageY: 0, - ctrlKey: 0, - shiftKey: 0, - altKey: 0, - metaKey: 0, - getModifierState: Cn, - button: 0, - buttons: 0, - relatedTarget: function (e) { - return void 0 === e.relatedTarget - ? e.fromElement === e.srcElement - ? e.toElement - : e.fromElement - : e.relatedTarget; - }, - movementX: function (e) { - return 'movementX' in e - ? e.movementX - : (e !== ln && - (ln && 'mousemove' === e.type - ? ((an = e.screenX - ln.screenX), (sn = e.screenY - ln.screenY)) - : (sn = an = 0), - (ln = e)), - an); - }, - movementY: function (e) { - return 'movementY' in e ? e.movementY : sn; - }, - }), - mn = on(fn), - hn = on(F({}, fn, { dataTransfer: 0 })), - gn = on(F({}, dn, { relatedTarget: 0 })), - vn = on(F({}, cn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), - bn = F({}, cn, { - clipboardData: function (e) { - return 'clipboardData' in e ? e.clipboardData : window.clipboardData; - }, - }), - yn = on(bn), - wn = on(F({}, cn, { data: 0 })), - xn = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified', - }, - kn = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta', - }, - En = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' }; - function Sn(e) { - var t = this.nativeEvent; - return t.getModifierState ? t.getModifierState(e) : !!(e = En[e]) && !!t[e]; - } - function Cn() { - return Sn; - } - var On = F({}, dn, { - key: function (e) { - if (e.key) { - var t = xn[e.key] || e.key; - if ('Unidentified' !== t) return t; - } - return 'keypress' === e.type - ? 13 === (e = tn(e)) - ? 'Enter' - : String.fromCharCode(e) - : 'keydown' === e.type || 'keyup' === e.type - ? kn[e.keyCode] || 'Unidentified' - : ''; - }, - code: 0, - location: 0, - ctrlKey: 0, - shiftKey: 0, - altKey: 0, - metaKey: 0, - repeat: 0, - locale: 0, - getModifierState: Cn, - charCode: function (e) { - return 'keypress' === e.type ? tn(e) : 0; + return null; + } + function Sa(a) { + switch (typeof a) { + case 'boolean': + case 'number': + case 'string': + case 'undefined': + return a; + case 'object': + return a; + default: + return ''; + } + } + function Ta(a) { + var b = a.type; + return (a = a.nodeName) && 'input' === a.toLowerCase() && ('checkbox' === b || 'radio' === b); + } + function Ua(a) { + var b = Ta(a) ? 'checked' : 'value', + c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), + d = '' + a[b]; + if ( + !a.hasOwnProperty(b) && + 'undefined' !== typeof c && + 'function' === typeof c.get && + 'function' === typeof c.set + ) { + var e = c.get, + f = c.set; + Object.defineProperty(a, b, { + configurable: !0, + get: function () { + return e.call(this); }, - keyCode: function (e) { - return 'keydown' === e.type || 'keyup' === e.type ? e.keyCode : 0; + set: function (a) { + d = '' + a; + f.call(this, a); }, - which: function (e) { - return 'keypress' === e.type - ? tn(e) - : 'keydown' === e.type || 'keyup' === e.type - ? e.keyCode - : 0; + }); + Object.defineProperty(a, b, { enumerable: c.enumerable }); + return { + getValue: function () { + return d; }, - }), - Pn = on(On), - Tn = on( - F({}, fn, { - pointerId: 0, - width: 0, - height: 0, - pressure: 0, - tangentialPressure: 0, - tiltX: 0, - tiltY: 0, - twist: 0, - pointerType: 0, - isPrimary: 0, - }) - ), - In = on( - F({}, dn, { - touches: 0, - targetTouches: 0, - changedTouches: 0, - altKey: 0, - metaKey: 0, - ctrlKey: 0, - shiftKey: 0, - getModifierState: Cn, - }) - ), - Nn = on(F({}, cn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), - Mn = F({}, fn, { - deltaX: function (e) { - return 'deltaX' in e ? e.deltaX : 'wheelDeltaX' in e ? -e.wheelDeltaX : 0; + setValue: function (a) { + d = '' + a; }, - deltaY: function (e) { - return 'deltaY' in e - ? e.deltaY - : 'wheelDeltaY' in e - ? -e.wheelDeltaY - : 'wheelDelta' in e - ? -e.wheelDelta - : 0; + stopTracking: function () { + a._valueTracker = null; + delete a[b]; }, - deltaZ: 0, - deltaMode: 0, - }), - Ln = on(Mn), - Rn = [9, 13, 27, 32], - An = s && 'CompositionEvent' in window, - Dn = null; - s && 'documentMode' in document && (Dn = document.documentMode); - var jn = s && 'TextEvent' in window && !Dn, - zn = s && (!An || (Dn && 8 < Dn && 11 >= Dn)), - Fn = String.fromCharCode(32), - _n = !1; - function Hn(e, t) { - switch (e) { - case 'keyup': - return -1 !== Rn.indexOf(t.keyCode); - case 'keydown': - return 229 !== t.keyCode; - case 'keypress': - case 'mousedown': - case 'focusout': - return !0; - default: - return !1; - } - } - function $n(e) { - return 'object' == typeof (e = e.detail) && 'data' in e ? e.data : null; - } - var Bn = !1, - Wn = { - color: !0, - date: !0, - datetime: !0, - 'datetime-local': !0, - email: !0, - month: !0, - number: !0, - password: !0, - range: !0, - search: !0, - tel: !0, - text: !0, - time: !0, - url: !0, - week: !0, }; - function Vn(e) { - var t = e && e.nodeName && e.nodeName.toLowerCase(); - return 'input' === t ? !!Wn[e.type] : 'textarea' === t; - } - function Un(e, t, n, r) { - Oe(r), - 0 < (t = qr(t, 'onChange')).length && - ((n = new un('onChange', 'change', null, n, r)), e.push({ event: n, listeners: t })); - } - var qn = null, - Yn = null; - function Kn(e) { - Fr(e, 0); - } - function Gn(e) { - if (K(xo(e))) return e; - } - function Qn(e, t) { - if ('change' === e) return t; - } - var Xn = !1; - if (s) { - var Jn; - if (s) { - var Zn = 'oninput' in document; - if (!Zn) { - var er = document.createElement('div'); - er.setAttribute('oninput', 'return;'), (Zn = 'function' == typeof er.oninput); - } - Jn = Zn; - } else Jn = !1; - Xn = Jn && (!document.documentMode || 9 < document.documentMode); - } - function tr() { - qn && (qn.detachEvent('onpropertychange', nr), (Yn = qn = null)); - } - function nr(e) { - if ('value' === e.propertyName && Gn(Yn)) { - var t = []; - Un(t, Yn, e, xe(e)), Me(Kn, t); - } - } - function rr(e, t, n) { - 'focusin' === e - ? (tr(), (Yn = n), (qn = t).attachEvent('onpropertychange', nr)) - : 'focusout' === e && tr(); - } - function or(e) { - if ('selectionchange' === e || 'keyup' === e || 'keydown' === e) return Gn(Yn); - } - function ar(e, t) { - if ('click' === e) return Gn(t); - } - function ir(e, t) { - if ('input' === e || 'change' === e) return Gn(t); - } - var sr = - 'function' == typeof Object.is - ? Object.is - : function (e, t) { - return (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t); - }; - function lr(e, t) { - if (sr(e, t)) return !0; - if ('object' != typeof e || null === e || 'object' != typeof t || null === t) return !1; - var n = Object.keys(e), - r = Object.keys(t); - if (n.length !== r.length) return !1; - for (r = 0; r < n.length; r++) { - var o = n[r]; - if (!l.call(t, o) || !sr(e[o], t[o])) return !1; - } - return !0; } - function cr(e) { - for (; e && e.firstChild; ) e = e.firstChild; - return e; + } + function Va(a) { + a._valueTracker || (a._valueTracker = Ua(a)); + } + function Wa(a) { + if (!a) return !1; + var b = a._valueTracker; + if (!b) return !0; + var c = b.getValue(); + var d = ''; + a && (d = Ta(a) ? (a.checked ? 'true' : 'false') : a.value); + a = d; + return a !== c ? (b.setValue(a), !0) : !1; + } + function Xa(a) { + a = a || ('undefined' !== typeof document ? document : void 0); + if ('undefined' === typeof a) return null; + try { + return a.activeElement || a.body; + } catch (b) { + return a.body; } - function ur(e, t) { - var n, - r = cr(e); - for (e = 0; r; ) { - if (3 === r.nodeType) { - if (((n = e + r.textContent.length), e <= t && n >= t)) return { node: r, offset: t - e }; - e = n; - } - e: { - for (; r; ) { - if (r.nextSibling) { - r = r.nextSibling; - break e; - } - r = r.parentNode; - } - r = void 0; + } + function Ya(a, b) { + var c = b.checked; + return A({}, b, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: null != c ? c : a._wrapperState.initialChecked, + }); + } + function Za(a, b) { + var c = null == b.defaultValue ? '' : b.defaultValue, + d = null != b.checked ? b.checked : b.defaultChecked; + c = Sa(null != b.value ? b.value : c); + a._wrapperState = { + initialChecked: d, + initialValue: c, + controlled: 'checkbox' === b.type || 'radio' === b.type ? null != b.checked : null != b.value, + }; + } + function ab(a, b) { + b = b.checked; + null != b && ta(a, 'checked', b, !1); + } + function bb(a, b) { + ab(a, b); + var c = Sa(b.value), + d = b.type; + if (null != c) + if ('number' === d) { + if ((0 === c && '' === a.value) || a.value != c) a.value = '' + c; + } else a.value !== '' + c && (a.value = '' + c); + else if ('submit' === d || 'reset' === d) { + a.removeAttribute('value'); + return; + } + b.hasOwnProperty('value') + ? cb(a, b.type, c) + : b.hasOwnProperty('defaultValue') && cb(a, b.type, Sa(b.defaultValue)); + null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); + } + function db(a, b, c) { + if (b.hasOwnProperty('value') || b.hasOwnProperty('defaultValue')) { + var d = b.type; + if (!(('submit' !== d && 'reset' !== d) || (void 0 !== b.value && null !== b.value))) return; + b = '' + a._wrapperState.initialValue; + c || b === a.value || (a.value = b); + a.defaultValue = b; + } + c = a.name; + '' !== c && (a.name = ''); + a.defaultChecked = !!a._wrapperState.initialChecked; + '' !== c && (a.name = c); + } + function cb(a, b, c) { + if ('number' !== b || Xa(a.ownerDocument) !== a) + null == c + ? (a.defaultValue = '' + a._wrapperState.initialValue) + : a.defaultValue !== '' + c && (a.defaultValue = '' + c); + } + var eb = Array.isArray; + function fb(a, b, c, d) { + a = a.options; + if (b) { + b = {}; + for (var e = 0; e < c.length; e++) b['$' + c[e]] = !0; + for (c = 0; c < a.length; c++) + (e = b.hasOwnProperty('$' + a[c].value)), + a[c].selected !== e && (a[c].selected = e), + e && d && (a[c].defaultSelected = !0); + } else { + c = '' + Sa(c); + b = null; + for (e = 0; e < a.length; e++) { + if (a[e].value === c) { + a[e].selected = !0; + d && (a[e].defaultSelected = !0); + return; } - r = cr(r); + null !== b || a[e].disabled || (b = a[e]); } + null !== b && (b.selected = !0); } - function dr(e, t) { - return ( - !(!e || !t) && - (e === t || - ((!e || 3 !== e.nodeType) && - (t && 3 === t.nodeType - ? dr(e, t.parentNode) - : 'contains' in e - ? e.contains(t) - : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t))))) - ); - } - function pr() { - for (var e = window, t = G(); t instanceof e.HTMLIFrameElement; ) { - try { - var n = 'string' == typeof t.contentWindow.location.href; - } catch (e) { - n = !1; + } + function gb(a, b) { + if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); + return A({}, b, { + value: void 0, + defaultValue: void 0, + children: '' + a._wrapperState.initialValue, + }); + } + function hb(a, b) { + var c = b.value; + if (null == c) { + c = b.children; + b = b.defaultValue; + if (null != c) { + if (null != b) throw Error(p(92)); + if (eb(c)) { + if (1 < c.length) throw Error(p(93)); + c = c[0]; } - if (!n) break; - t = G((e = t.contentWindow).document); + b = c; } - return t; + null == b && (b = ''); + c = b; } - function fr(e) { - var t = e && e.nodeName && e.nodeName.toLowerCase(); - return ( - t && - (('input' === t && - ('text' === e.type || - 'search' === e.type || - 'tel' === e.type || - 'url' === e.type || - 'password' === e.type)) || - 'textarea' === t || - 'true' === e.contentEditable) - ); + a._wrapperState = { initialValue: Sa(c) }; + } + function ib(a, b) { + var c = Sa(b.value), + d = Sa(b.defaultValue); + null != c && + ((c = '' + c), + c !== a.value && (a.value = c), + null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)); + null != d && (a.defaultValue = '' + d); + } + function jb(a) { + var b = a.textContent; + b === a._wrapperState.initialValue && '' !== b && null !== b && (a.value = b); + } + function kb(a) { + switch (a) { + case 'svg': + return 'http://www.w3.org/2000/svg'; + case 'math': + return 'http://www.w3.org/1998/Math/MathML'; + default: + return 'http://www.w3.org/1999/xhtml'; } - function mr(e) { - var t = pr(), - n = e.focusedElem, - r = e.selectionRange; - if (t !== n && n && n.ownerDocument && dr(n.ownerDocument.documentElement, n)) { - if (null !== r && fr(n)) - if (((t = r.start), void 0 === (e = r.end) && (e = t), 'selectionStart' in n)) - (n.selectionStart = t), (n.selectionEnd = Math.min(e, n.value.length)); - else if ( - (e = ((t = n.ownerDocument || document) && t.defaultView) || window).getSelection - ) { - e = e.getSelection(); - var o = n.textContent.length, - a = Math.min(r.start, o); - (r = void 0 === r.end ? a : Math.min(r.end, o)), - !e.extend && a > r && ((o = r), (r = a), (a = o)), - (o = ur(n, a)); - var i = ur(n, r); - o && - i && - (1 !== e.rangeCount || - e.anchorNode !== o.node || - e.anchorOffset !== o.offset || - e.focusNode !== i.node || - e.focusOffset !== i.offset) && - ((t = t.createRange()).setStart(o.node, o.offset), - e.removeAllRanges(), - a > r - ? (e.addRange(t), e.extend(i.node, i.offset)) - : (t.setEnd(i.node, i.offset), e.addRange(t))); - } - for (t = [], e = n; (e = e.parentNode); ) - 1 === e.nodeType && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); - for ('function' == typeof n.focus && n.focus(), n = 0; n < t.length; n++) - ((e = t[n]).element.scrollLeft = e.left), (e.element.scrollTop = e.top); - } - } - var hr = s && 'documentMode' in document && 11 >= document.documentMode, - gr = null, - vr = null, - br = null, - yr = !1; - function wr(e, t, n) { - var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument; - yr || - null == gr || - gr !== G(r) || - ((r = - 'selectionStart' in (r = gr) && fr(r) - ? { start: r.selectionStart, end: r.selectionEnd } - : { - anchorNode: (r = ( - (r.ownerDocument && r.ownerDocument.defaultView) || - window - ).getSelection()).anchorNode, - anchorOffset: r.anchorOffset, - focusNode: r.focusNode, - focusOffset: r.focusOffset, - }), - (br && lr(br, r)) || - ((br = r), - 0 < (r = qr(vr, 'onSelect')).length && - ((t = new un('onSelect', 'select', null, t, n)), - e.push({ event: t, listeners: r }), - (t.target = gr)))); - } - function xr(e, t) { - var n = {}; - return ( - (n[e.toLowerCase()] = t.toLowerCase()), - (n['Webkit' + e] = 'webkit' + t), - (n['Moz' + e] = 'moz' + t), - n - ); - } - var kr = { - animationend: xr('Animation', 'AnimationEnd'), - animationiteration: xr('Animation', 'AnimationIteration'), - animationstart: xr('Animation', 'AnimationStart'), - transitionend: xr('Transition', 'TransitionEnd'), - }, - Er = {}, - Sr = {}; - function Cr(e) { - if (Er[e]) return Er[e]; - if (!kr[e]) return e; - var t, - n = kr[e]; - for (t in n) if (n.hasOwnProperty(t) && t in Sr) return (Er[e] = n[t]); - return e; + } + function lb(a, b) { + return null == a || 'http://www.w3.org/1999/xhtml' === a + ? kb(b) + : 'http://www.w3.org/2000/svg' === a && 'foreignObject' === b + ? 'http://www.w3.org/1999/xhtml' + : a; + } + var mb, + nb = (function (a) { + return 'undefined' !== typeof MSApp && MSApp.execUnsafeLocalFunction + ? function (b, c, d, e) { + MSApp.execUnsafeLocalFunction(function () { + return a(b, c, d, e); + }); + } + : a; + })(function (a, b) { + if ('http://www.w3.org/2000/svg' !== a.namespaceURI || 'innerHTML' in a) a.innerHTML = b; + else { + mb = mb || document.createElement('div'); + mb.innerHTML = '' + b.valueOf().toString() + ''; + for (b = mb.firstChild; a.firstChild; ) a.removeChild(a.firstChild); + for (; b.firstChild; ) a.appendChild(b.firstChild); + } + }); + function ob(a, b) { + if (b) { + var c = a.firstChild; + if (c && c === a.lastChild && 3 === c.nodeType) { + c.nodeValue = b; + return; + } } - s && - ((Sr = document.createElement('div').style), - 'AnimationEvent' in window || - (delete kr.animationend.animation, - delete kr.animationiteration.animation, - delete kr.animationstart.animation), - 'TransitionEvent' in window || delete kr.transitionend.transition); - var Or = Cr('animationend'), - Pr = Cr('animationiteration'), - Tr = Cr('animationstart'), - Ir = Cr('transitionend'), - Nr = new Map(), - Mr = - 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split( - ' ' - ); - function Lr(e, t) { - Nr.set(e, t), a(t, [e]); - } - for (var Rr = 0; Rr < Mr.length; Rr++) { - var Ar = Mr[Rr]; - Lr(Ar.toLowerCase(), 'on' + (Ar[0].toUpperCase() + Ar.slice(1))); - } - Lr(Or, 'onAnimationEnd'), - Lr(Pr, 'onAnimationIteration'), - Lr(Tr, 'onAnimationStart'), - Lr('dblclick', 'onDoubleClick'), - Lr('focusin', 'onFocus'), - Lr('focusout', 'onBlur'), - Lr(Ir, 'onTransitionEnd'), - i('onMouseEnter', ['mouseout', 'mouseover']), - i('onMouseLeave', ['mouseout', 'mouseover']), - i('onPointerEnter', ['pointerout', 'pointerover']), - i('onPointerLeave', ['pointerout', 'pointerover']), - a('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')), - a( - 'onSelect', - 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split( - ' ' + a.textContent = b; + } + var pb = { + animationIterationCount: !0, + aspectRatio: !0, + borderImageOutset: !0, + borderImageSlice: !0, + borderImageWidth: !0, + boxFlex: !0, + boxFlexGroup: !0, + boxOrdinalGroup: !0, + columnCount: !0, + columns: !0, + flex: !0, + flexGrow: !0, + flexPositive: !0, + flexShrink: !0, + flexNegative: !0, + flexOrder: !0, + gridArea: !0, + gridRow: !0, + gridRowEnd: !0, + gridRowSpan: !0, + gridRowStart: !0, + gridColumn: !0, + gridColumnEnd: !0, + gridColumnSpan: !0, + gridColumnStart: !0, + fontWeight: !0, + lineClamp: !0, + lineHeight: !0, + opacity: !0, + order: !0, + orphans: !0, + tabSize: !0, + widows: !0, + zIndex: !0, + zoom: !0, + fillOpacity: !0, + floodOpacity: !0, + stopOpacity: !0, + strokeDasharray: !0, + strokeDashoffset: !0, + strokeMiterlimit: !0, + strokeOpacity: !0, + strokeWidth: !0, + }, + qb = ['Webkit', 'ms', 'Moz', 'O']; + Object.keys(pb).forEach(function (a) { + qb.forEach(function (b) { + b = b + a.charAt(0).toUpperCase() + a.substring(1); + pb[b] = pb[a]; + }); + }); + function rb(a, b, c) { + return null == b || 'boolean' === typeof b || '' === b + ? '' + : c || 'number' !== typeof b || 0 === b || (pb.hasOwnProperty(a) && pb[a]) + ? ('' + b).trim() + : b + 'px'; + } + function sb(a, b) { + a = a.style; + for (var c in b) + if (b.hasOwnProperty(c)) { + var d = 0 === c.indexOf('--'), + e = rb(c, b[c], d); + 'float' === c && (c = 'cssFloat'); + d ? a.setProperty(c, e) : (a[c] = e); + } + } + var tb = A( + { menuitem: !0 }, + { + area: !0, + base: !0, + br: !0, + col: !0, + embed: !0, + hr: !0, + img: !0, + input: !0, + keygen: !0, + link: !0, + meta: !0, + param: !0, + source: !0, + track: !0, + wbr: !0, + } + ); + function ub(a, b) { + if (b) { + if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) + throw Error(p(137, a)); + if (null != b.dangerouslySetInnerHTML) { + if (null != b.children) throw Error(p(60)); + if ( + 'object' !== typeof b.dangerouslySetInnerHTML || + !('__html' in b.dangerouslySetInnerHTML) ) - ), - a('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']), - a('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')), - a( - 'onCompositionStart', - 'compositionstart focusout keydown keypress keyup mousedown'.split(' ') - ), - a( - 'onCompositionUpdate', - 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ') - ); - var Dr = - 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split( - ' ' - ), - jr = new Set('cancel close invalid load scroll toggle'.split(' ').concat(Dr)); - function zr(e, t, r) { - var o = e.type || 'unknown-event'; - (e.currentTarget = r), - (function (e, t, r, o, a, i, s, l, c) { - if (($e.apply(this, arguments), je)) { - if (!je) throw Error(n(198)); - var u = ze; - (je = !1), (ze = null), Fe || ((Fe = !0), (_e = u)); - } - })(o, t, void 0, e), - (e.currentTarget = null); - } - function Fr(e, t) { - t = !!(4 & t); - for (var n = 0; n < e.length; n++) { - var r = e[n], - o = r.event; - r = r.listeners; - e: { - var a = void 0; - if (t) - for (var i = r.length - 1; 0 <= i; i--) { - var s = r[i], - l = s.instance, - c = s.currentTarget; - if (((s = s.listener), l !== a && o.isPropagationStopped())) break e; - zr(o, s, c), (a = l); - } - else - for (i = 0; i < r.length; i++) { - if ( - ((l = (s = r[i]).instance), - (c = s.currentTarget), - (s = s.listener), - l !== a && o.isPropagationStopped()) - ) - break e; - zr(o, s, c), (a = l); - } - } + throw Error(p(61)); } - if (Fe) throw ((e = _e), (Fe = !1), (_e = null), e); + if (null != b.style && 'object' !== typeof b.style) throw Error(p(62)); } - function _r(e, t) { - var n = t[go]; - void 0 === n && (n = t[go] = new Set()); - var r = e + '__bubble'; - n.has(r) || (Wr(t, e, 2, !1), n.add(r)); + } + function vb(a, b) { + if (-1 === a.indexOf('-')) return 'string' === typeof b.is; + switch (a) { + case 'annotation-xml': + case 'color-profile': + case 'font-face': + case 'font-face-src': + case 'font-face-uri': + case 'font-face-format': + case 'font-face-name': + case 'missing-glyph': + return !1; + default: + return !0; } - function Hr(e, t, n) { - var r = 0; - t && (r |= 4), Wr(n, e, r, t); + } + var wb = null; + function xb(a) { + a = a.target || a.srcElement || window; + a.correspondingUseElement && (a = a.correspondingUseElement); + return 3 === a.nodeType ? a.parentNode : a; + } + var yb = null, + zb = null, + Ab = null; + function Bb(a) { + if ((a = Cb(a))) { + if ('function' !== typeof yb) throw Error(p(280)); + var b = a.stateNode; + b && ((b = Db(b)), yb(a.stateNode, a.type, b)); } - var $r = '_reactListening' + Math.random().toString(36).slice(2); - function Br(e) { - if (!e[$r]) { - (e[$r] = !0), - r.forEach(function (t) { - 'selectionchange' !== t && (jr.has(t) || Hr(t, !1, e), Hr(t, !0, e)); - }); - var t = 9 === e.nodeType ? e : e.ownerDocument; - null === t || t[$r] || ((t[$r] = !0), Hr('selectionchange', !1, t)); - } + } + function Eb(a) { + zb ? (Ab ? Ab.push(a) : (Ab = [a])) : (zb = a); + } + function Fb() { + if (zb) { + var a = zb, + b = Ab; + Ab = zb = null; + Bb(a); + if (b) for (a = 0; a < b.length; a++) Bb(b[a]); } - function Wr(e, t, n, r) { - switch (Qt(t)) { - case 1: - var o = Ut; - break; - case 4: - o = qt; - break; - default: - o = Yt; - } - (n = o.bind(null, t, n, e)), - (o = void 0), - !Re || ('touchstart' !== t && 'touchmove' !== t && 'wheel' !== t) || (o = !0), - r - ? void 0 !== o - ? e.addEventListener(t, n, { capture: !0, passive: o }) - : e.addEventListener(t, n, !0) - : void 0 !== o - ? e.addEventListener(t, n, { passive: o }) - : e.addEventListener(t, n, !1); - } - function Vr(e, t, n, r, o) { - var a = r; - if (!(1 & t || 2 & t || null === r)) - e: for (;;) { - if (null === r) return; - var i = r.tag; - if (3 === i || 4 === i) { - var s = r.stateNode.containerInfo; - if (s === o || (8 === s.nodeType && s.parentNode === o)) break; - if (4 === i) - for (i = r.return; null !== i; ) { - var l = i.tag; - if ( - (3 === l || 4 === l) && - ((l = i.stateNode.containerInfo) === o || - (8 === l.nodeType && l.parentNode === o)) - ) - return; - i = i.return; - } - for (; null !== s; ) { - if (null === (i = yo(s))) return; - if (5 === (l = i.tag) || 6 === l) { - r = a = i; - continue e; - } - s = s.parentNode; - } - } - r = r.return; - } - Me(function () { - var r = a, - o = xe(n), - i = []; - e: { - var s = Nr.get(e); - if (void 0 !== s) { - var l = un, - c = e; - switch (e) { - case 'keypress': - if (0 === tn(n)) break e; - case 'keydown': - case 'keyup': - l = Pn; - break; - case 'focusin': - (c = 'focus'), (l = gn); - break; - case 'focusout': - (c = 'blur'), (l = gn); - break; - case 'beforeblur': - case 'afterblur': - l = gn; - break; - case 'click': - if (2 === n.button) break e; - case 'auxclick': - case 'dblclick': - case 'mousedown': - case 'mousemove': - case 'mouseup': - case 'mouseout': - case 'mouseover': - case 'contextmenu': - l = mn; - break; - case 'drag': - case 'dragend': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'dragstart': - case 'drop': - l = hn; - break; - case 'touchcancel': - case 'touchend': - case 'touchmove': - case 'touchstart': - l = In; - break; - case Or: - case Pr: - case Tr: - l = vn; - break; - case Ir: - l = Nn; - break; - case 'scroll': - l = pn; - break; - case 'wheel': - l = Ln; - break; - case 'copy': - case 'cut': - case 'paste': - l = yn; - break; - case 'gotpointercapture': - case 'lostpointercapture': - case 'pointercancel': - case 'pointerdown': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'pointerup': - l = Tn; - } - var u = !!(4 & t), - d = !u && 'scroll' === e, - p = u ? (null !== s ? s + 'Capture' : null) : s; - u = []; - for (var f, m = r; null !== m; ) { - var h = (f = m).stateNode; - if ( - (5 === f.tag && - null !== h && - ((f = h), null !== p && null != (h = Le(m, p)) && u.push(Ur(m, h, f))), - d) - ) - break; - m = m.return; - } - 0 < u.length && ((s = new l(s, c, null, n, o)), i.push({ event: s, listeners: u })); - } - } - if (!(7 & t)) { - if ( - ((l = 'mouseout' === e || 'pointerout' === e), - (!(s = 'mouseover' === e || 'pointerover' === e) || - n === we || - !(c = n.relatedTarget || n.fromElement) || - (!yo(c) && !c[ho])) && - (l || s) && - ((s = - o.window === o - ? o - : (s = o.ownerDocument) - ? s.defaultView || s.parentWindow - : window), - l - ? ((l = r), - null !== (c = (c = n.relatedTarget || n.toElement) ? yo(c) : null) && - (c !== (d = Be(c)) || (5 !== c.tag && 6 !== c.tag)) && - (c = null)) - : ((l = null), (c = r)), - l !== c)) - ) { - if ( - ((u = mn), - (h = 'onMouseLeave'), - (p = 'onMouseEnter'), - (m = 'mouse'), - ('pointerout' !== e && 'pointerover' !== e) || - ((u = Tn), (h = 'onPointerLeave'), (p = 'onPointerEnter'), (m = 'pointer')), - (d = null == l ? s : xo(l)), - (f = null == c ? s : xo(c)), - ((s = new u(h, m + 'leave', l, n, o)).target = d), - (s.relatedTarget = f), - (h = null), - yo(o) === r && - (((u = new u(p, m + 'enter', c, n, o)).target = f), (u.relatedTarget = d), (h = u)), - (d = h), - l && c) - ) - e: { - for (p = c, m = 0, f = u = l; f; f = Yr(f)) m++; - for (f = 0, h = p; h; h = Yr(h)) f++; - for (; 0 < m - f; ) (u = Yr(u)), m--; - for (; 0 < f - m; ) (p = Yr(p)), f--; - for (; m--; ) { - if (u === p || (null !== p && u === p.alternate)) break e; - (u = Yr(u)), (p = Yr(p)); - } - u = null; - } - else u = null; - null !== l && Kr(i, s, l, u, !1), null !== c && null !== d && Kr(i, d, c, u, !0); - } - if ( - 'select' === (l = (s = r ? xo(r) : window).nodeName && s.nodeName.toLowerCase()) || - ('input' === l && 'file' === s.type) - ) - var g = Qn; - else if (Vn(s)) - if (Xn) g = ir; - else { - g = or; - var v = rr; - } - else - (l = s.nodeName) && - 'input' === l.toLowerCase() && - ('checkbox' === s.type || 'radio' === s.type) && - (g = ar); - switch ( - (g && (g = g(e, r)) - ? Un(i, g, n, o) - : (v && v(e, s, r), - 'focusout' === e && - (v = s._wrapperState) && - v.controlled && - 'number' === s.type && - te(s, 'number', s.value)), - (v = r ? xo(r) : window), - e) - ) { - case 'focusin': - (Vn(v) || 'true' === v.contentEditable) && ((gr = v), (vr = r), (br = null)); - break; - case 'focusout': - br = vr = gr = null; - break; - case 'mousedown': - yr = !0; - break; - case 'contextmenu': - case 'mouseup': - case 'dragend': - (yr = !1), wr(i, n, o); - break; - case 'selectionchange': - if (hr) break; - case 'keydown': - case 'keyup': - wr(i, n, o); - } - var b; - if (An) - e: { - switch (e) { - case 'compositionstart': - var y = 'onCompositionStart'; - break e; - case 'compositionend': - y = 'onCompositionEnd'; - break e; - case 'compositionupdate': - y = 'onCompositionUpdate'; - break e; - } - y = void 0; - } - else - Bn - ? Hn(e, n) && (y = 'onCompositionEnd') - : 'keydown' === e && 229 === n.keyCode && (y = 'onCompositionStart'); - y && - (zn && - 'ko' !== n.locale && - (Bn || 'onCompositionStart' !== y - ? 'onCompositionEnd' === y && Bn && (b = en()) - : ((Jt = 'value' in (Xt = o) ? Xt.value : Xt.textContent), (Bn = !0))), - 0 < (v = qr(r, y)).length && - ((y = new wn(y, e, null, n, o)), - i.push({ event: y, listeners: v }), - (b || null !== (b = $n(n))) && (y.data = b))), - (b = jn - ? (function (e, t) { - switch (e) { - case 'compositionend': - return $n(t); - case 'keypress': - return 32 !== t.which ? null : ((_n = !0), Fn); - case 'textInput': - return (e = t.data) === Fn && _n ? null : e; - default: - return null; - } - })(e, n) - : (function (e, t) { - if (Bn) - return 'compositionend' === e || (!An && Hn(e, t)) - ? ((e = en()), (Zt = Jt = Xt = null), (Bn = !1), e) - : null; - switch (e) { - case 'paste': - default: - return null; - case 'keypress': - if (!(t.ctrlKey || t.altKey || t.metaKey) || (t.ctrlKey && t.altKey)) { - if (t.char && 1 < t.char.length) return t.char; - if (t.which) return String.fromCharCode(t.which); - } - return null; - case 'compositionend': - return zn && 'ko' !== t.locale ? null : t.data; - } - })(e, n)) && - 0 < (r = qr(r, 'onBeforeInput')).length && - ((o = new wn('onBeforeInput', 'beforeinput', null, n, o)), - i.push({ event: o, listeners: r }), - (o.data = b)); - } - Fr(i, t); + } + function Gb(a, b) { + return a(b); + } + function Hb() {} + var Ib = !1; + function Jb(a, b, c) { + if (Ib) return a(b, c); + Ib = !0; + try { + return Gb(a, b, c); + } finally { + if (((Ib = !1), null !== zb || null !== Ab)) Hb(), Fb(); + } + } + function Kb(a, b) { + var c = a.stateNode; + if (null === c) return null; + var d = Db(c); + if (null === d) return null; + c = d[b]; + a: switch (b) { + case 'onClick': + case 'onClickCapture': + case 'onDoubleClick': + case 'onDoubleClickCapture': + case 'onMouseDown': + case 'onMouseDownCapture': + case 'onMouseMove': + case 'onMouseMoveCapture': + case 'onMouseUp': + case 'onMouseUpCapture': + case 'onMouseEnter': + (d = !d.disabled) || + ((a = a.type), + (d = !('button' === a || 'input' === a || 'select' === a || 'textarea' === a))); + a = !d; + break a; + default: + a = !1; + } + if (a) return null; + if (c && 'function' !== typeof c) throw Error(p(231, b, typeof c)); + return c; + } + var Lb = !1; + if (ia) + try { + var Mb = {}; + Object.defineProperty(Mb, 'passive', { + get: function () { + Lb = !0; + }, }); + window.addEventListener('test', Mb, Mb); + window.removeEventListener('test', Mb, Mb); + } catch (a) { + Lb = !1; } - function Ur(e, t, n) { - return { instance: e, listener: t, currentTarget: n }; + function Nb(a, b, c, d, e, f, g, h, k) { + var l = Array.prototype.slice.call(arguments, 3); + try { + b.apply(c, l); + } catch (m) { + this.onError(m); } - function qr(e, t) { - for (var n = t + 'Capture', r = []; null !== e; ) { - var o = e, - a = o.stateNode; - 5 === o.tag && - null !== a && - ((o = a), - null != (a = Le(e, n)) && r.unshift(Ur(e, a, o)), - null != (a = Le(e, t)) && r.push(Ur(e, a, o))), - (e = e.return); - } - return r; + } + var Ob = !1, + Pb = null, + Qb = !1, + Rb = null, + Sb = { + onError: function (a) { + Ob = !0; + Pb = a; + }, + }; + function Tb(a, b, c, d, e, f, g, h, k) { + Ob = !1; + Pb = null; + Nb.apply(Sb, arguments); + } + function Ub(a, b, c, d, e, f, g, h, k) { + Tb.apply(this, arguments); + if (Ob) { + if (Ob) { + var l = Pb; + Ob = !1; + Pb = null; + } else throw Error(p(198)); + Qb || ((Qb = !0), (Rb = l)); } - function Yr(e) { - if (null === e) return null; - do { - e = e.return; - } while (e && 5 !== e.tag); - return e || null; - } - function Kr(e, t, n, r, o) { - for (var a = t._reactName, i = []; null !== n && n !== r; ) { - var s = n, - l = s.alternate, - c = s.stateNode; - if (null !== l && l === r) break; - 5 === s.tag && - null !== c && - ((s = c), - o - ? null != (l = Le(n, a)) && i.unshift(Ur(n, l, s)) - : o || (null != (l = Le(n, a)) && i.push(Ur(n, l, s)))), - (n = n.return); - } - 0 !== i.length && e.push({ event: t, listeners: i }); - } - var Gr = /\r\n?/g, - Qr = /\u0000|\uFFFD/g; - function Xr(e) { - return ('string' == typeof e ? e : '' + e).replace(Gr, '\n').replace(Qr, ''); - } - function Jr(e, t, r) { - if (((t = Xr(t)), Xr(e) !== t && r)) throw Error(n(425)); - } - function Zr() {} - var eo = null, - to = null; - function no(e, t) { - return ( - 'textarea' === e || - 'noscript' === e || - 'string' == typeof t.children || - 'number' == typeof t.children || - ('object' == typeof t.dangerouslySetInnerHTML && - null !== t.dangerouslySetInnerHTML && - null != t.dangerouslySetInnerHTML.__html) - ); + } + function Vb(a) { + var b = a, + c = a; + if (a.alternate) for (; b.return; ) b = b.return; + else { + a = b; + do (b = a), 0 !== (b.flags & 4098) && (c = b.return), (a = b.return); + while (a); } - var ro = 'function' == typeof setTimeout ? setTimeout : void 0, - oo = 'function' == typeof clearTimeout ? clearTimeout : void 0, - ao = 'function' == typeof Promise ? Promise : void 0, - io = - 'function' == typeof queueMicrotask - ? queueMicrotask - : void 0 !== ao - ? function (e) { - return ao.resolve(null).then(e).catch(so); - } - : ro; - function so(e) { - setTimeout(function () { - throw e; - }); + return 3 === b.tag ? c : null; + } + function Wb(a) { + if (13 === a.tag) { + var b = a.memoizedState; + null === b && ((a = a.alternate), null !== a && (b = a.memoizedState)); + if (null !== b) return b.dehydrated; } - function lo(e, t) { - var n = t, - r = 0; - do { - var o = n.nextSibling; - if ((e.removeChild(n), o && 8 === o.nodeType)) - if ('/$' === (n = o.data)) { - if (0 === r) return e.removeChild(o), void Bt(t); - r--; - } else ('$' !== n && '$?' !== n && '$!' !== n) || r++; - n = o; - } while (n); - Bt(t); - } - function co(e) { - for (; null != e; e = e.nextSibling) { - var t = e.nodeType; - if (1 === t || 3 === t) break; - if (8 === t) { - if ('$' === (t = e.data) || '$!' === t || '$?' === t) break; - if ('/$' === t) return null; + return null; + } + function Xb(a) { + if (Vb(a) !== a) throw Error(p(188)); + } + function Yb(a) { + var b = a.alternate; + if (!b) { + b = Vb(a); + if (null === b) throw Error(p(188)); + return b !== a ? null : a; + } + for (var c = a, d = b; ; ) { + var e = c.return; + if (null === e) break; + var f = e.alternate; + if (null === f) { + d = e.return; + if (null !== d) { + c = d; + continue; } + break; } - return e; - } - function uo(e) { - e = e.previousSibling; - for (var t = 0; e; ) { - if (8 === e.nodeType) { - var n = e.data; - if ('$' === n || '$!' === n || '$?' === n) { - if (0 === t) return e; - t--; - } else '/$' === n && t++; + if (e.child === f.child) { + for (f = e.child; f; ) { + if (f === c) return Xb(e), a; + if (f === d) return Xb(e), b; + f = f.sibling; } - e = e.previousSibling; + throw Error(p(188)); } - return null; - } - var po = Math.random().toString(36).slice(2), - fo = '__reactFiber$' + po, - mo = '__reactProps$' + po, - ho = '__reactContainer$' + po, - go = '__reactEvents$' + po, - vo = '__reactListeners$' + po, - bo = '__reactHandles$' + po; - function yo(e) { - var t = e[fo]; - if (t) return t; - for (var n = e.parentNode; n; ) { - if ((t = n[ho] || n[fo])) { - if (((n = t.alternate), null !== t.child || (null !== n && null !== n.child))) - for (e = uo(e); null !== e; ) { - if ((n = e[fo])) return n; - e = uo(e); + if (c.return !== d.return) (c = e), (d = f); + else { + for (var g = !1, h = e.child; h; ) { + if (h === c) { + g = !0; + c = e; + d = f; + break; + } + if (h === d) { + g = !0; + d = e; + c = f; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f.child; h; ) { + if (h === c) { + g = !0; + c = f; + d = e; + break; } - return t; + if (h === d) { + g = !0; + d = f; + c = e; + break; + } + h = h.sibling; + } + if (!g) throw Error(p(189)); } - n = (e = n).parentNode; } - return null; + if (c.alternate !== d) throw Error(p(190)); } - function wo(e) { - return !(e = e[fo] || e[ho]) || (5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag) - ? null - : e; - } - function xo(e) { - if (5 === e.tag || 6 === e.tag) return e.stateNode; - throw Error(n(33)); - } - function ko(e) { - return e[mo] || null; - } - var Eo = [], - So = -1; - function Co(e) { - return { current: e }; - } - function Oo(e) { - 0 > So || ((e.current = Eo[So]), (Eo[So] = null), So--); - } - function Po(e, t) { - So++, (Eo[So] = e.current), (e.current = t); - } - var To = {}, - Io = Co(To), - No = Co(!1), - Mo = To; - function Lo(e, t) { - var n = e.type.contextTypes; - if (!n) return To; - var r = e.stateNode; - if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) - return r.__reactInternalMemoizedMaskedChildContext; - var o, - a = {}; - for (o in n) a[o] = t[o]; - return ( - r && - (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t), - (e.__reactInternalMemoizedMaskedChildContext = a)), - a - ); + if (3 !== c.tag) throw Error(p(188)); + return c.stateNode.current === c ? a : b; + } + function Zb(a) { + a = Yb(a); + return null !== a ? $b(a) : null; + } + function $b(a) { + if (5 === a.tag || 6 === a.tag) return a; + for (a = a.child; null !== a; ) { + var b = $b(a); + if (null !== b) return b; + a = a.sibling; + } + return null; + } + var ac = ca.unstable_scheduleCallback, + bc = ca.unstable_cancelCallback, + cc = ca.unstable_shouldYield, + dc = ca.unstable_requestPaint, + B = ca.unstable_now, + ec = ca.unstable_getCurrentPriorityLevel, + fc = ca.unstable_ImmediatePriority, + gc = ca.unstable_UserBlockingPriority, + hc = ca.unstable_NormalPriority, + ic = ca.unstable_LowPriority, + jc = ca.unstable_IdlePriority, + kc = null, + lc = null; + function mc(a) { + if (lc && 'function' === typeof lc.onCommitFiberRoot) + try { + lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128)); + } catch (b) {} + } + var oc = Math.clz32 ? Math.clz32 : nc, + pc = Math.log, + qc = Math.LN2; + function nc(a) { + a >>>= 0; + return 0 === a ? 32 : (31 - ((pc(a) / qc) | 0)) | 0; + } + var rc = 64, + sc = 4194304; + function tc(a) { + switch (a & -a) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a; + } + } + function uc(a, b) { + var c = a.pendingLanes; + if (0 === c) return 0; + var d = 0, + e = a.suspendedLanes, + f = a.pingedLanes, + g = c & 268435455; + if (0 !== g) { + var h = g & ~e; + 0 !== h ? (d = tc(h)) : ((f &= g), 0 !== f && (d = tc(f))); + } else (g = c & ~e), 0 !== g ? (d = tc(g)) : 0 !== f && (d = tc(f)); + if (0 === d) return 0; + if ( + 0 !== b && + b !== d && + 0 === (b & e) && + ((e = d & -d), (f = b & -b), e >= f || (16 === e && 0 !== (f & 4194240))) + ) + return b; + 0 !== (d & 4) && (d |= c & 16); + b = a.entangledLanes; + if (0 !== b) + for (a = a.entanglements, b &= d; 0 < b; ) + (c = 31 - oc(b)), (e = 1 << c), (d |= a[c]), (b &= ~e); + return d; + } + function vc(a, b) { + switch (a) { + case 1: + case 2: + case 4: + return b + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; } - function Ro(e) { - return null != e.childContextTypes; + } + function wc(a, b) { + for ( + var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; + 0 < f; + + ) { + var g = 31 - oc(f), + h = 1 << g, + k = e[g]; + if (-1 === k) { + if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b); + } else k <= b && (a.expiredLanes |= h); + f &= ~h; } - function Ao() { - Oo(No), Oo(Io); + } + function xc(a) { + a = a.pendingLanes & -1073741825; + return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; + } + function yc() { + var a = rc; + rc <<= 1; + 0 === (rc & 4194240) && (rc = 64); + return a; + } + function zc(a) { + for (var b = [], c = 0; 31 > c; c++) b.push(a); + return b; + } + function Ac(a, b, c) { + a.pendingLanes |= b; + 536870912 !== b && ((a.suspendedLanes = 0), (a.pingedLanes = 0)); + a = a.eventTimes; + b = 31 - oc(b); + a[b] = c; + } + function Bc(a, b) { + var c = a.pendingLanes & ~b; + a.pendingLanes = b; + a.suspendedLanes = 0; + a.pingedLanes = 0; + a.expiredLanes &= b; + a.mutableReadLanes &= b; + a.entangledLanes &= b; + b = a.entanglements; + var d = a.eventTimes; + for (a = a.expirationTimes; 0 < c; ) { + var e = 31 - oc(c), + f = 1 << e; + b[e] = 0; + d[e] = -1; + a[e] = -1; + c &= ~f; } - function Do(e, t, r) { - if (Io.current !== To) throw Error(n(168)); - Po(Io, t), Po(No, r); + } + function Cc(a, b) { + var c = (a.entangledLanes |= b); + for (a = a.entanglements; c; ) { + var d = 31 - oc(c), + e = 1 << d; + (e & b) | (a[d] & b) && (a[d] |= b); + c &= ~e; } - function jo(e, t, r) { - var o = e.stateNode; - if (((t = t.childContextTypes), 'function' != typeof o.getChildContext)) return r; - for (var a in (o = o.getChildContext())) - if (!(a in t)) throw Error(n(108, V(e) || 'Unknown', a)); - return F({}, r, o); + } + var C = 0; + function Dc(a) { + a &= -a; + return 1 < a ? (4 < a ? (0 !== (a & 268435455) ? 16 : 536870912) : 4) : 1; + } + var Ec, + Fc, + Gc, + Hc, + Ic, + Jc = !1, + Kc = [], + Lc = null, + Mc = null, + Nc = null, + Oc = new Map(), + Pc = new Map(), + Qc = [], + Rc = + 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split( + ' ' + ); + function Sc(a, b) { + switch (a) { + case 'focusin': + case 'focusout': + Lc = null; + break; + case 'dragenter': + case 'dragleave': + Mc = null; + break; + case 'mouseover': + case 'mouseout': + Nc = null; + break; + case 'pointerover': + case 'pointerout': + Oc.delete(b.pointerId); + break; + case 'gotpointercapture': + case 'lostpointercapture': + Pc.delete(b.pointerId); } - function zo(e) { + } + function Tc(a, b, c, d, e, f) { + if (null === a || a.nativeEvent !== f) return ( - (e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || To), - (Mo = Io.current), - Po(Io, e), - Po(No, No.current), - !0 + (a = { + blockedOn: b, + domEventName: c, + eventSystemFlags: d, + nativeEvent: f, + targetContainers: [e], + }), + null !== b && ((b = Cb(b)), null !== b && Fc(b)), + a ); + a.eventSystemFlags |= d; + b = a.targetContainers; + null !== e && -1 === b.indexOf(e) && b.push(e); + return a; + } + function Uc(a, b, c, d, e) { + switch (b) { + case 'focusin': + return (Lc = Tc(Lc, a, b, c, d, e)), !0; + case 'dragenter': + return (Mc = Tc(Mc, a, b, c, d, e)), !0; + case 'mouseover': + return (Nc = Tc(Nc, a, b, c, d, e)), !0; + case 'pointerover': + var f = e.pointerId; + Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e)); + return !0; + case 'gotpointercapture': + return (f = e.pointerId), Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), !0; } - function Fo(e, t, r) { - var o = e.stateNode; - if (!o) throw Error(n(169)); - r - ? ((e = jo(e, t, Mo)), - (o.__reactInternalMemoizedMergedChildContext = e), - Oo(No), - Oo(Io), - Po(Io, e)) - : Oo(No), - Po(No, r); - } - var _o = null, - Ho = !1, - $o = !1; - function Bo(e) { - null === _o ? (_o = [e]) : _o.push(e); - } - function Wo() { - if (!$o && null !== _o) { - $o = !0; - var e = 0, - t = yt; - try { - var n = _o; - for (yt = 1; e < n.length; e++) { - var r = n[e]; - do { - r = r(!0); - } while (null !== r); + return !1; + } + function Vc(a) { + var b = Wc(a.target); + if (null !== b) { + var c = Vb(b); + if (null !== c) + if (((b = c.tag), 13 === b)) { + if (((b = Wb(c)), null !== b)) { + a.blockedOn = b; + Ic(a.priority, function () { + Gc(c); + }); + return; } - (_o = null), (Ho = !1); - } catch (t) { - throw (null !== _o && (_o = _o.slice(e + 1)), Ye(Ze, Wo), t); - } finally { - (yt = t), ($o = !1); + } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { + a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; + return; } - } - return null; } - var Vo = [], - Uo = 0, - qo = null, - Yo = 0, - Ko = [], - Go = 0, - Qo = null, - Xo = 1, - Jo = ''; - function Zo(e, t) { - (Vo[Uo++] = Yo), (Vo[Uo++] = qo), (qo = e), (Yo = t); - } - function ea(e, t, n) { - (Ko[Go++] = Xo), (Ko[Go++] = Jo), (Ko[Go++] = Qo), (Qo = e); - var r = Xo; - e = Jo; - var o = 32 - it(r) - 1; - (r &= ~(1 << o)), (n += 1); - var a = 32 - it(t) + o; - if (30 < a) { - var i = o - (o % 5); - (a = (r & ((1 << i) - 1)).toString(32)), - (r >>= i), - (o -= i), - (Xo = (1 << (32 - it(t) + o)) | (n << o) | r), - (Jo = a + e); - } else (Xo = (1 << a) | (n << o) | r), (Jo = e); - } - function ta(e) { - null !== e.return && (Zo(e, 1), ea(e, 1, 0)); - } - function na(e) { - for (; e === qo; ) (qo = Vo[--Uo]), (Vo[Uo] = null), (Yo = Vo[--Uo]), (Vo[Uo] = null); - for (; e === Qo; ) - (Qo = Ko[--Go]), - (Ko[Go] = null), - (Jo = Ko[--Go]), - (Ko[Go] = null), - (Xo = Ko[--Go]), - (Ko[Go] = null); - } - var ra = null, - oa = null, - aa = !1, - ia = null; - function sa(e, t) { - var n = Mc(5, null, null, 0); - (n.elementType = 'DELETED'), - (n.stateNode = t), - (n.return = e), - null === (t = e.deletions) ? ((e.deletions = [n]), (e.flags |= 16)) : t.push(n); - } - function la(e, t) { - switch (e.tag) { - case 5: - var n = e.type; - return ( - null !== - (t = 1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && - ((e.stateNode = t), (ra = e), (oa = co(t.firstChild)), !0) - ); - case 6: - return ( - null !== (t = '' === e.pendingProps || 3 !== t.nodeType ? null : t) && - ((e.stateNode = t), (ra = e), (oa = null), !0) - ); - case 13: - return ( - null !== (t = 8 !== t.nodeType ? null : t) && - ((n = null !== Qo ? { id: Xo, overflow: Jo } : null), - (e.memoizedState = { dehydrated: t, treeContext: n, retryLane: 1073741824 }), - ((n = Mc(18, null, null, 0)).stateNode = t), - (n.return = e), - (e.child = n), - (ra = e), - (oa = null), - !0) - ); - default: - return !1; - } + a.blockedOn = null; + } + function Xc(a) { + if (null !== a.blockedOn) return !1; + for (var b = a.targetContainers; 0 < b.length; ) { + var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent); + if (null === c) { + c = a.nativeEvent; + var d = new c.constructor(c.type, c); + wb = d; + c.target.dispatchEvent(d); + wb = null; + } else return (b = Cb(c)), null !== b && Fc(b), (a.blockedOn = c), !1; + b.shift(); + } + return !0; + } + function Zc(a, b, c) { + Xc(a) && c.delete(b); + } + function $c() { + Jc = !1; + null !== Lc && Xc(Lc) && (Lc = null); + null !== Mc && Xc(Mc) && (Mc = null); + null !== Nc && Xc(Nc) && (Nc = null); + Oc.forEach(Zc); + Pc.forEach(Zc); + } + function ad(a, b) { + a.blockedOn === b && + ((a.blockedOn = null), + Jc || ((Jc = !0), ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); + } + function bd(a) { + function b(b) { + return ad(b, a); + } + if (0 < Kc.length) { + ad(Kc[0], a); + for (var c = 1; c < Kc.length; c++) { + var d = Kc[c]; + d.blockedOn === a && (d.blockedOn = null); + } + } + null !== Lc && ad(Lc, a); + null !== Mc && ad(Mc, a); + null !== Nc && ad(Nc, a); + Oc.forEach(b); + Pc.forEach(b); + for (c = 0; c < Qc.length; c++) (d = Qc[c]), d.blockedOn === a && (d.blockedOn = null); + for (; 0 < Qc.length && ((c = Qc[0]), null === c.blockedOn); ) + Vc(c), null === c.blockedOn && Qc.shift(); + } + var cd = ua.ReactCurrentBatchConfig, + dd = !0; + function ed(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + (C = 1), fd(a, b, c, d); + } finally { + (C = e), (cd.transition = f); } - function ca(e) { - return !(!(1 & e.mode) || 128 & e.flags); + } + function gd(a, b, c, d) { + var e = C, + f = cd.transition; + cd.transition = null; + try { + (C = 4), fd(a, b, c, d); + } finally { + (C = e), (cd.transition = f); } - function ua(e) { - if (aa) { - var t = oa; - if (t) { - var r = t; - if (!la(e, t)) { - if (ca(e)) throw Error(n(418)); - t = co(r.nextSibling); - var o = ra; - t && la(e, t) ? sa(o, r) : ((e.flags = (-4097 & e.flags) | 2), (aa = !1), (ra = e)); - } - } else { - if (ca(e)) throw Error(n(418)); - (e.flags = (-4097 & e.flags) | 2), (aa = !1), (ra = e); + } + function fd(a, b, c, d) { + if (dd) { + var e = Yc(a, b, c, d); + if (null === e) hd(a, b, d, id, c), Sc(a, d); + else if (Uc(e, a, b, c, d)) d.stopPropagation(); + else if ((Sc(a, d), b & 4 && -1 < Rc.indexOf(a))) { + for (; null !== e; ) { + var f = Cb(e); + null !== f && Ec(f); + f = Yc(a, b, c, d); + null === f && hd(a, b, d, id, c); + if (f === e) break; + e = f; } - } - } - function da(e) { - for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag; ) e = e.return; - ra = e; + null !== e && d.stopPropagation(); + } else hd(a, b, d, null, c); } - function pa(e) { - if (e !== ra) return !1; - if (!aa) return da(e), (aa = !0), !1; - var t; - if ( - ((t = 3 !== e.tag) && - !(t = 5 !== e.tag) && - (t = 'head' !== (t = e.type) && 'body' !== t && !no(e.type, e.memoizedProps)), - t && (t = oa)) - ) { - if (ca(e)) throw (fa(), Error(n(418))); - for (; t; ) sa(e, t), (t = co(t.nextSibling)); - } - if ((da(e), 13 === e.tag)) { - if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null)) throw Error(n(317)); - e: { - for (e = e.nextSibling, t = 0; e; ) { - if (8 === e.nodeType) { - var r = e.data; - if ('/$' === r) { - if (0 === t) { - oa = co(e.nextSibling); - break e; - } - t--; - } else ('$' !== r && '$!' !== r && '$?' !== r) || t++; - } - e = e.nextSibling; - } - oa = null; + } + var id = null; + function Yc(a, b, c, d) { + id = null; + a = xb(d); + a = Wc(a); + if (null !== a) + if (((b = Vb(a)), null === b)) a = null; + else if (((c = b.tag), 13 === c)) { + a = Wb(b); + if (null !== a) return a; + a = null; + } else if (3 === c) { + if (b.stateNode.current.memoizedState.isDehydrated) + return 3 === b.tag ? b.stateNode.containerInfo : null; + a = null; + } else b !== a && (a = null); + id = a; + return null; + } + function jd(a) { + switch (a) { + case 'cancel': + case 'click': + case 'close': + case 'contextmenu': + case 'copy': + case 'cut': + case 'auxclick': + case 'dblclick': + case 'dragend': + case 'dragstart': + case 'drop': + case 'focusin': + case 'focusout': + case 'input': + case 'invalid': + case 'keydown': + case 'keypress': + case 'keyup': + case 'mousedown': + case 'mouseup': + case 'paste': + case 'pause': + case 'play': + case 'pointercancel': + case 'pointerdown': + case 'pointerup': + case 'ratechange': + case 'reset': + case 'resize': + case 'seeked': + case 'submit': + case 'touchcancel': + case 'touchend': + case 'touchstart': + case 'volumechange': + case 'change': + case 'selectionchange': + case 'textInput': + case 'compositionstart': + case 'compositionend': + case 'compositionupdate': + case 'beforeblur': + case 'afterblur': + case 'beforeinput': + case 'blur': + case 'fullscreenchange': + case 'focus': + case 'hashchange': + case 'popstate': + case 'select': + case 'selectstart': + return 1; + case 'drag': + case 'dragenter': + case 'dragexit': + case 'dragleave': + case 'dragover': + case 'mousemove': + case 'mouseout': + case 'mouseover': + case 'pointermove': + case 'pointerout': + case 'pointerover': + case 'scroll': + case 'toggle': + case 'touchmove': + case 'wheel': + case 'mouseenter': + case 'mouseleave': + case 'pointerenter': + case 'pointerleave': + return 4; + case 'message': + switch (ec()) { + case fc: + return 1; + case gc: + return 4; + case hc: + case ic: + return 16; + case jc: + return 536870912; + default: + return 16; } - } else oa = ra ? co(e.stateNode.nextSibling) : null; - return !0; - } - function fa() { - for (var e = oa; e; ) e = co(e.nextSibling); - } - function ma() { - (oa = ra = null), (aa = !1); - } - function ha(e) { - null === ia ? (ia = [e]) : ia.push(e); + default: + return 16; } - var ga = x.ReactCurrentBatchConfig; - function va(e, t, r) { - if (null !== (e = r.ref) && 'function' != typeof e && 'object' != typeof e) { - if (r._owner) { - if ((r = r._owner)) { - if (1 !== r.tag) throw Error(n(309)); - var o = r.stateNode; - } - if (!o) throw Error(n(147, e)); - var a = o, - i = '' + e; - return null !== t && - null !== t.ref && - 'function' == typeof t.ref && - t.ref._stringRef === i - ? t.ref - : ((t = function (e) { - var t = a.refs; - null === e ? delete t[i] : (t[i] = e); - }), - (t._stringRef = i), - t); + } + var kd = null, + ld = null, + md = null; + function nd() { + if (md) return md; + var a, + b = ld, + c = b.length, + d, + e = 'value' in kd ? kd.value : kd.textContent, + f = e.length; + for (a = 0; a < c && b[a] === e[a]; a++); + var g = c - a; + for (d = 1; d <= g && b[c - d] === e[f - d]; d++); + return (md = e.slice(a, 1 < d ? 1 - d : void 0)); + } + function od(a) { + var b = a.keyCode; + 'charCode' in a ? ((a = a.charCode), 0 === a && 13 === b && (a = 13)) : (a = b); + 10 === a && (a = 13); + return 32 <= a || 13 === a ? a : 0; + } + function pd() { + return !0; + } + function qd() { + return !1; + } + function rd(a) { + function b(b, d, e, f, g) { + this._reactName = b; + this._targetInst = e; + this.type = d; + this.nativeEvent = f; + this.target = g; + this.currentTarget = null; + for (var c in a) a.hasOwnProperty(c) && ((b = a[c]), (this[c] = b ? b(f) : f[c])); + this.isDefaultPrevented = ( + null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue + ) + ? pd + : qd; + this.isPropagationStopped = qd; + return this; + } + A(b.prototype, { + preventDefault: function () { + this.defaultPrevented = !0; + var a = this.nativeEvent; + a && + (a.preventDefault + ? a.preventDefault() + : 'unknown' !== typeof a.returnValue && (a.returnValue = !1), + (this.isDefaultPrevented = pd)); + }, + stopPropagation: function () { + var a = this.nativeEvent; + a && + (a.stopPropagation + ? a.stopPropagation() + : 'unknown' !== typeof a.cancelBubble && (a.cancelBubble = !0), + (this.isPropagationStopped = pd)); + }, + persist: function () {}, + isPersistent: pd, + }); + return b; + } + var sd = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function (a) { + return a.timeStamp || Date.now(); + }, + defaultPrevented: 0, + isTrusted: 0, + }, + td = rd(sd), + ud = A({}, sd, { view: 0, detail: 0 }), + vd = rd(ud), + wd, + xd, + yd, + Ad = A({}, ud, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: zd, + button: 0, + buttons: 0, + relatedTarget: function (a) { + return void 0 === a.relatedTarget + ? a.fromElement === a.srcElement + ? a.toElement + : a.fromElement + : a.relatedTarget; + }, + movementX: function (a) { + if ('movementX' in a) return a.movementX; + a !== yd && + (yd && 'mousemove' === a.type + ? ((wd = a.screenX - yd.screenX), (xd = a.screenY - yd.screenY)) + : (xd = wd = 0), + (yd = a)); + return wd; + }, + movementY: function (a) { + return 'movementY' in a ? a.movementY : xd; + }, + }), + Bd = rd(Ad), + Cd = A({}, Ad, { dataTransfer: 0 }), + Dd = rd(Cd), + Ed = A({}, ud, { relatedTarget: 0 }), + Fd = rd(Ed), + Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), + Hd = rd(Gd), + Id = A({}, sd, { + clipboardData: function (a) { + return 'clipboardData' in a ? a.clipboardData : window.clipboardData; + }, + }), + Jd = rd(Id), + Kd = A({}, sd, { data: 0 }), + Ld = rd(Kd), + Md = { + Esc: 'Escape', + Spacebar: ' ', + Left: 'ArrowLeft', + Up: 'ArrowUp', + Right: 'ArrowRight', + Down: 'ArrowDown', + Del: 'Delete', + Win: 'OS', + Menu: 'ContextMenu', + Apps: 'ContextMenu', + Scroll: 'ScrollLock', + MozPrintableKey: 'Unidentified', + }, + Nd = { + 8: 'Backspace', + 9: 'Tab', + 12: 'Clear', + 13: 'Enter', + 16: 'Shift', + 17: 'Control', + 18: 'Alt', + 19: 'Pause', + 20: 'CapsLock', + 27: 'Escape', + 32: ' ', + 33: 'PageUp', + 34: 'PageDown', + 35: 'End', + 36: 'Home', + 37: 'ArrowLeft', + 38: 'ArrowUp', + 39: 'ArrowRight', + 40: 'ArrowDown', + 45: 'Insert', + 46: 'Delete', + 112: 'F1', + 113: 'F2', + 114: 'F3', + 115: 'F4', + 116: 'F5', + 117: 'F6', + 118: 'F7', + 119: 'F8', + 120: 'F9', + 121: 'F10', + 122: 'F11', + 123: 'F12', + 144: 'NumLock', + 145: 'ScrollLock', + 224: 'Meta', + }, + Od = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' }; + function Pd(a) { + var b = this.nativeEvent; + return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1; + } + function zd() { + return Pd; + } + var Qd = A({}, ud, { + key: function (a) { + if (a.key) { + var b = Md[a.key] || a.key; + if ('Unidentified' !== b) return b; } - if ('string' != typeof e) throw Error(n(284)); - if (!r._owner) throw Error(n(290, e)); - } - return e; - } - function ba(e, t) { - throw ( - ((e = Object.prototype.toString.call(t)), - Error( - n( - 31, - '[object Object]' === e ? 'object with keys {' + Object.keys(t).join(', ') + '}' : e - ) - )) - ); + return 'keypress' === a.type + ? ((a = od(a)), 13 === a ? 'Enter' : String.fromCharCode(a)) + : 'keydown' === a.type || 'keyup' === a.type + ? Nd[a.keyCode] || 'Unidentified' + : ''; + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: zd, + charCode: function (a) { + return 'keypress' === a.type ? od(a) : 0; + }, + keyCode: function (a) { + return 'keydown' === a.type || 'keyup' === a.type ? a.keyCode : 0; + }, + which: function (a) { + return 'keypress' === a.type + ? od(a) + : 'keydown' === a.type || 'keyup' === a.type + ? a.keyCode + : 0; + }, + }), + Rd = rd(Qd), + Sd = A({}, Ad, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0, + }), + Td = rd(Sd), + Ud = A({}, ud, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: zd, + }), + Vd = rd(Ud), + Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), + Xd = rd(Wd), + Yd = A({}, Ad, { + deltaX: function (a) { + return 'deltaX' in a ? a.deltaX : 'wheelDeltaX' in a ? -a.wheelDeltaX : 0; + }, + deltaY: function (a) { + return 'deltaY' in a + ? a.deltaY + : 'wheelDeltaY' in a + ? -a.wheelDeltaY + : 'wheelDelta' in a + ? -a.wheelDelta + : 0; + }, + deltaZ: 0, + deltaMode: 0, + }), + Zd = rd(Yd), + $d = [9, 13, 27, 32], + ae = ia && 'CompositionEvent' in window, + be = null; + ia && 'documentMode' in document && (be = document.documentMode); + var ce = ia && 'TextEvent' in window && !be, + de = ia && (!ae || (be && 8 < be && 11 >= be)), + ee = String.fromCharCode(32), + fe = !1; + function ge(a, b) { + switch (a) { + case 'keyup': + return -1 !== $d.indexOf(b.keyCode); + case 'keydown': + return 229 !== b.keyCode; + case 'keypress': + case 'mousedown': + case 'focusout': + return !0; + default: + return !1; } - function ya(e) { - return (0, e._init)(e._payload); + } + function he(a) { + a = a.detail; + return 'object' === typeof a && 'data' in a ? a.data : null; + } + var ie = !1; + function je(a, b) { + switch (a) { + case 'compositionend': + return he(b); + case 'keypress': + if (32 !== b.which) return null; + fe = !0; + return ee; + case 'textInput': + return (a = b.data), a === ee && fe ? null : a; + default: + return null; } - function wa(e) { - function t(t, n) { - if (e) { - var r = t.deletions; - null === r ? ((t.deletions = [n]), (t.flags |= 16)) : r.push(n); - } - } - function r(n, r) { - if (!e) return null; - for (; null !== r; ) t(n, r), (r = r.sibling); + } + function ke(a, b) { + if (ie) + return 'compositionend' === a || (!ae && ge(a, b)) + ? ((a = nd()), (md = ld = kd = null), (ie = !1), a) + : null; + switch (a) { + case 'paste': return null; - } - function o(e, t) { - for (e = new Map(); null !== t; ) - null !== t.key ? e.set(t.key, t) : e.set(t.index, t), (t = t.sibling); - return e; - } - function a(e, t) { - return ((e = Rc(e, t)).index = 0), (e.sibling = null), e; - } - function i(t, n, r) { - return ( - (t.index = r), - e - ? null !== (r = t.alternate) - ? (r = r.index) < n - ? ((t.flags |= 2), n) - : r - : ((t.flags |= 2), n) - : ((t.flags |= 1048576), n) - ); - } - function s(t) { - return e && null === t.alternate && (t.flags |= 2), t; - } - function l(e, t, n, r) { - return null === t || 6 !== t.tag - ? (((t = zc(n, e.mode, r)).return = e), t) - : (((t = a(t, n)).return = e), t); - } - function c(e, t, n, r) { - var o = n.type; - return o === S - ? d(e, t, n.props.children, r, n.key) - : null !== t && - (t.elementType === o || - ('object' == typeof o && null !== o && o.$$typeof === R && ya(o) === t.type)) - ? (((r = a(t, n.props)).ref = va(e, t, n)), (r.return = e), r) - : (((r = Ac(n.type, n.key, n.props, null, e.mode, r)).ref = va(e, t, n)), - (r.return = e), - r); - } - function u(e, t, n, r) { - return null === t || - 4 !== t.tag || - t.stateNode.containerInfo !== n.containerInfo || - t.stateNode.implementation !== n.implementation - ? (((t = Fc(n, e.mode, r)).return = e), t) - : (((t = a(t, n.children || [])).return = e), t); - } - function d(e, t, n, r, o) { - return null === t || 7 !== t.tag - ? (((t = Dc(n, e.mode, r, o)).return = e), t) - : (((t = a(t, n)).return = e), t); - } - function p(e, t, n) { - if (('string' == typeof t && '' !== t) || 'number' == typeof t) - return ((t = zc('' + t, e.mode, n)).return = e), t; - if ('object' == typeof t && null !== t) { - switch (t.$$typeof) { - case k: - return ( - ((n = Ac(t.type, t.key, t.props, null, e.mode, n)).ref = va(e, null, t)), - (n.return = e), - n - ); - case E: - return ((t = Fc(t, e.mode, n)).return = e), t; - case R: - return p(e, (0, t._init)(t._payload), n); - } - if (ne(t) || j(t)) return ((t = Dc(t, e.mode, n, null)).return = e), t; - ba(e, t); + case 'keypress': + if (!(b.ctrlKey || b.altKey || b.metaKey) || (b.ctrlKey && b.altKey)) { + if (b.char && 1 < b.char.length) return b.char; + if (b.which) return String.fromCharCode(b.which); } return null; - } - function f(e, t, n, r) { - var o = null !== t ? t.key : null; - if (('string' == typeof n && '' !== n) || 'number' == typeof n) - return null !== o ? null : l(e, t, '' + n, r); - if ('object' == typeof n && null !== n) { - switch (n.$$typeof) { - case k: - return n.key === o ? c(e, t, n, r) : null; - case E: - return n.key === o ? u(e, t, n, r) : null; - case R: - return f(e, t, (o = n._init)(n._payload), r); - } - if (ne(n) || j(n)) return null !== o ? null : d(e, t, n, r, null); - ba(e, n); - } + case 'compositionend': + return de && 'ko' !== b.locale ? null : b.data; + default: return null; - } - function m(e, t, n, r, o) { - if (('string' == typeof r && '' !== r) || 'number' == typeof r) - return l(t, (e = e.get(n) || null), '' + r, o); - if ('object' == typeof r && null !== r) { - switch (r.$$typeof) { - case k: - return c(t, (e = e.get(null === r.key ? n : r.key) || null), r, o); - case E: - return u(t, (e = e.get(null === r.key ? n : r.key) || null), r, o); - case R: - return m(e, t, n, (0, r._init)(r._payload), o); + } + } + var le = { + color: !0, + date: !0, + datetime: !0, + 'datetime-local': !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0, + }; + function me(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return 'input' === b ? !!le[a.type] : 'textarea' === b ? !0 : !1; + } + function ne(a, b, c, d) { + Eb(d); + b = oe(b, 'onChange'); + 0 < b.length && + ((c = new td('onChange', 'change', null, c, d)), a.push({ event: c, listeners: b })); + } + var pe = null, + qe = null; + function re(a) { + se(a, 0); + } + function te(a) { + var b = ue(a); + if (Wa(b)) return a; + } + function ve(a, b) { + if ('change' === a) return b; + } + var we = !1; + if (ia) { + var xe; + if (ia) { + var ye = 'oninput' in document; + if (!ye) { + var ze = document.createElement('div'); + ze.setAttribute('oninput', 'return;'); + ye = 'function' === typeof ze.oninput; + } + xe = ye; + } else xe = !1; + we = xe && (!document.documentMode || 9 < document.documentMode); + } + function Ae() { + pe && (pe.detachEvent('onpropertychange', Be), (qe = pe = null)); + } + function Be(a) { + if ('value' === a.propertyName && te(qe)) { + var b = []; + ne(b, qe, a, xb(a)); + Jb(re, b); + } + } + function Ce(a, b, c) { + 'focusin' === a + ? (Ae(), (pe = b), (qe = c), pe.attachEvent('onpropertychange', Be)) + : 'focusout' === a && Ae(); + } + function De(a) { + if ('selectionchange' === a || 'keyup' === a || 'keydown' === a) return te(qe); + } + function Ee(a, b) { + if ('click' === a) return te(b); + } + function Fe(a, b) { + if ('input' === a || 'change' === a) return te(b); + } + function Ge(a, b) { + return (a === b && (0 !== a || 1 / a === 1 / b)) || (a !== a && b !== b); + } + var He = 'function' === typeof Object.is ? Object.is : Ge; + function Ie(a, b) { + if (He(a, b)) return !0; + if ('object' !== typeof a || null === a || 'object' !== typeof b || null === b) return !1; + var c = Object.keys(a), + d = Object.keys(b); + if (c.length !== d.length) return !1; + for (d = 0; d < c.length; d++) { + var e = c[d]; + if (!ja.call(b, e) || !He(a[e], b[e])) return !1; + } + return !0; + } + function Je(a) { + for (; a && a.firstChild; ) a = a.firstChild; + return a; + } + function Ke(a, b) { + var c = Je(a); + a = 0; + for (var d; c; ) { + if (3 === c.nodeType) { + d = a + c.textContent.length; + if (a <= b && d >= b) return { node: c, offset: b - a }; + a = d; + } + a: { + for (; c; ) { + if (c.nextSibling) { + c = c.nextSibling; + break a; } - if (ne(r) || j(r)) return d(t, (e = e.get(n) || null), r, o, null); - ba(t, r); + c = c.parentNode; } - return null; + c = void 0; } - function h(n, a, s, l) { - for ( - var c = null, u = null, d = a, h = (a = 0), g = null; - null !== d && h < s.length; - h++ - ) { - d.index > h ? ((g = d), (d = null)) : (g = d.sibling); - var v = f(n, d, s[h], l); - if (null === v) { - null === d && (d = g); - break; - } - e && d && null === v.alternate && t(n, d), - (a = i(v, a, h)), - null === u ? (c = v) : (u.sibling = v), - (u = v), - (d = g); - } - if (h === s.length) return r(n, d), aa && Zo(n, h), c; - if (null === d) { - for (; h < s.length; h++) - null !== (d = p(n, s[h], l)) && - ((a = i(d, a, h)), null === u ? (c = d) : (u.sibling = d), (u = d)); - return aa && Zo(n, h), c; - } - for (d = o(n, d); h < s.length; h++) - null !== (g = m(d, n, h, s[h], l)) && - (e && null !== g.alternate && d.delete(null === g.key ? h : g.key), - (a = i(g, a, h)), - null === u ? (c = g) : (u.sibling = g), - (u = g)); - return ( - e && - d.forEach(function (e) { - return t(n, e); - }), - aa && Zo(n, h), - c - ); + c = Je(c); + } + } + function Le(a, b) { + return a && b + ? a === b + ? !0 + : a && 3 === a.nodeType + ? !1 + : b && 3 === b.nodeType + ? Le(a, b.parentNode) + : 'contains' in a + ? a.contains(b) + : a.compareDocumentPosition + ? !!(a.compareDocumentPosition(b) & 16) + : !1 + : !1; + } + function Me() { + for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement; ) { + try { + var c = 'string' === typeof b.contentWindow.location.href; + } catch (d) { + c = !1; } - function g(a, s, l, c) { - var u = j(l); - if ('function' != typeof u) throw Error(n(150)); - if (null == (l = u.call(l))) throw Error(n(151)); - for ( - var d = (u = null), h = s, g = (s = 0), v = null, b = l.next(); - null !== h && !b.done; - g++, b = l.next() + if (c) a = b.contentWindow; + else break; + b = Xa(a.document); + } + return b; + } + function Ne(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return ( + b && + (('input' === b && + ('text' === a.type || + 'search' === a.type || + 'tel' === a.type || + 'url' === a.type || + 'password' === a.type)) || + 'textarea' === b || + 'true' === a.contentEditable) + ); + } + function Oe(a) { + var b = Me(), + c = a.focusedElem, + d = a.selectionRange; + if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { + if (null !== d && Ne(c)) + if (((b = d.start), (a = d.end), void 0 === a && (a = b), 'selectionStart' in c)) + (c.selectionStart = b), (c.selectionEnd = Math.min(a, c.value.length)); + else if ( + ((a = ((b = c.ownerDocument || document) && b.defaultView) || window), a.getSelection) ) { - h.index > g ? ((v = h), (h = null)) : (v = h.sibling); - var y = f(a, h, b.value, c); - if (null === y) { - null === h && (h = v); - break; - } - e && h && null === y.alternate && t(a, h), - (s = i(y, s, g)), - null === d ? (u = y) : (d.sibling = y), - (d = y), - (h = v); - } - if (b.done) return r(a, h), aa && Zo(a, g), u; - if (null === h) { - for (; !b.done; g++, b = l.next()) - null !== (b = p(a, b.value, c)) && - ((s = i(b, s, g)), null === d ? (u = b) : (d.sibling = b), (d = b)); - return aa && Zo(a, g), u; - } - for (h = o(a, h); !b.done; g++, b = l.next()) - null !== (b = m(h, a, g, b.value, c)) && - (e && null !== b.alternate && h.delete(null === b.key ? g : b.key), - (s = i(b, s, g)), - null === d ? (u = b) : (d.sibling = b), - (d = b)); - return ( + a = a.getSelection(); + var e = c.textContent.length, + f = Math.min(d.start, e); + d = void 0 === d.end ? f : Math.min(d.end, e); + !a.extend && f > d && ((e = d), (d = f), (f = e)); + e = Ke(c, f); + var g = Ke(c, d); e && - h.forEach(function (e) { - return t(a, e); - }), - aa && Zo(a, g), - u - ); - } - return function e(n, o, i, l) { - if ( - ('object' == typeof i && - null !== i && - i.type === S && - null === i.key && - (i = i.props.children), - 'object' == typeof i && null !== i) - ) { - switch (i.$$typeof) { - case k: - e: { - for (var c = i.key, u = o; null !== u; ) { - if (u.key === c) { - if ((c = i.type) === S) { - if (7 === u.tag) { - r(n, u.sibling), ((o = a(u, i.props.children)).return = n), (n = o); - break e; - } - } else if ( - u.elementType === c || - ('object' == typeof c && null !== c && c.$$typeof === R && ya(c) === u.type) - ) { - r(n, u.sibling), - ((o = a(u, i.props)).ref = va(n, u, i)), - (o.return = n), - (n = o); - break e; - } - r(n, u); - break; - } - t(n, u), (u = u.sibling); - } - i.type === S - ? (((o = Dc(i.props.children, n.mode, l, i.key)).return = n), (n = o)) - : (((l = Ac(i.type, i.key, i.props, null, n.mode, l)).ref = va(n, o, i)), - (l.return = n), - (n = l)); - } - return s(n); - case E: - e: { - for (u = i.key; null !== o; ) { - if (o.key === u) { - if ( - 4 === o.tag && - o.stateNode.containerInfo === i.containerInfo && - o.stateNode.implementation === i.implementation - ) { - r(n, o.sibling), ((o = a(o, i.children || [])).return = n), (n = o); - break e; - } - r(n, o); - break; - } - t(n, o), (o = o.sibling); - } - ((o = Fc(i, n.mode, l)).return = n), (n = o); - } - return s(n); - case R: - return e(n, o, (u = i._init)(i._payload), l); - } - if (ne(i)) return h(n, o, i, l); - if (j(i)) return g(n, o, i, l); - ba(n, i); - } - return ('string' == typeof i && '' !== i) || 'number' == typeof i - ? ((i = '' + i), - null !== o && 6 === o.tag - ? (r(n, o.sibling), ((o = a(o, i)).return = n), (n = o)) - : (r(n, o), ((o = zc(i, n.mode, l)).return = n), (n = o)), - s(n)) - : r(n, o); - }; - } - var xa = wa(!0), - ka = wa(!1), - Ea = Co(null), - Sa = null, - Ca = null, - Oa = null; - function Pa() { - Oa = Ca = Sa = null; - } - function Ta(e) { - var t = Ea.current; - Oo(Ea), (e._currentValue = t); - } - function Ia(e, t, n) { - for (; null !== e; ) { - var r = e.alternate; - if ( - ((e.childLanes & t) !== t - ? ((e.childLanes |= t), null !== r && (r.childLanes |= t)) - : null !== r && (r.childLanes & t) !== t && (r.childLanes |= t), - e === n) - ) - break; - e = e.return; - } - } - function Na(e, t) { - (Sa = e), - (Oa = Ca = null), - null !== (e = e.dependencies) && - null !== e.firstContext && - (!!(e.lanes & t) && (ys = !0), (e.firstContext = null)); - } - function Ma(e) { - var t = e._currentValue; - if (Oa !== e) - if (((e = { context: e, memoizedValue: t, next: null }), null === Ca)) { - if (null === Sa) throw Error(n(308)); - (Ca = e), (Sa.dependencies = { lanes: 0, firstContext: e }); - } else Ca = Ca.next = e; - return t; - } - var La = null; - function Ra(e) { - null === La ? (La = [e]) : La.push(e); + g && + (1 !== a.rangeCount || + a.anchorNode !== e.node || + a.anchorOffset !== e.offset || + a.focusNode !== g.node || + a.focusOffset !== g.offset) && + ((b = b.createRange()), + b.setStart(e.node, e.offset), + a.removeAllRanges(), + f > d + ? (a.addRange(b), a.extend(g.node, g.offset)) + : (b.setEnd(g.node, g.offset), a.addRange(b))); + } + b = []; + for (a = c; (a = a.parentNode); ) + 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop }); + 'function' === typeof c.focus && c.focus(); + for (c = 0; c < b.length; c++) + (a = b[c]), (a.element.scrollLeft = a.left), (a.element.scrollTop = a.top); } - function Aa(e, t, n, r) { - var o = t.interleaved; - return ( - null === o ? ((n.next = n), Ra(t)) : ((n.next = o.next), (o.next = n)), - (t.interleaved = n), - Da(e, r) + } + var Pe = ia && 'documentMode' in document && 11 >= document.documentMode, + Qe = null, + Re = null, + Se = null, + Te = !1; + function Ue(a, b, c) { + var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; + Te || + null == Qe || + Qe !== Xa(d) || + ((d = Qe), + 'selectionStart' in d && Ne(d) + ? (d = { start: d.selectionStart, end: d.selectionEnd }) + : ((d = ((d.ownerDocument && d.ownerDocument.defaultView) || window).getSelection()), + (d = { + anchorNode: d.anchorNode, + anchorOffset: d.anchorOffset, + focusNode: d.focusNode, + focusOffset: d.focusOffset, + })), + (Se && Ie(Se, d)) || + ((Se = d), + (d = oe(Re, 'onSelect')), + 0 < d.length && + ((b = new td('onSelect', 'select', null, b, c)), + a.push({ event: b, listeners: d }), + (b.target = Qe)))); + } + function Ve(a, b) { + var c = {}; + c[a.toLowerCase()] = b.toLowerCase(); + c['Webkit' + a] = 'webkit' + b; + c['Moz' + a] = 'moz' + b; + return c; + } + var We = { + animationend: Ve('Animation', 'AnimationEnd'), + animationiteration: Ve('Animation', 'AnimationIteration'), + animationstart: Ve('Animation', 'AnimationStart'), + transitionend: Ve('Transition', 'TransitionEnd'), + }, + Xe = {}, + Ye = {}; + ia && + ((Ye = document.createElement('div').style), + 'AnimationEvent' in window || + (delete We.animationend.animation, + delete We.animationiteration.animation, + delete We.animationstart.animation), + 'TransitionEvent' in window || delete We.transitionend.transition); + function Ze(a) { + if (Xe[a]) return Xe[a]; + if (!We[a]) return a; + var b = We[a], + c; + for (c in b) if (b.hasOwnProperty(c) && c in Ye) return (Xe[a] = b[c]); + return a; + } + var $e = Ze('animationend'), + af = Ze('animationiteration'), + bf = Ze('animationstart'), + cf = Ze('transitionend'), + df = new Map(), + ef = + 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split( + ' ' ); - } - function Da(e, t) { - e.lanes |= t; - var n = e.alternate; - for (null !== n && (n.lanes |= t), n = e, e = e.return; null !== e; ) - (e.childLanes |= t), - null !== (n = e.alternate) && (n.childLanes |= t), - (n = e), - (e = e.return); - return 3 === n.tag ? n.stateNode : null; - } - var ja = !1; - function za(e) { - e.updateQueue = { - baseState: e.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { pending: null, interleaved: null, lanes: 0 }, - effects: null, - }; - } - function Fa(e, t) { - (e = e.updateQueue), - t.updateQueue === e && - (t.updateQueue = { - baseState: e.baseState, - firstBaseUpdate: e.firstBaseUpdate, - lastBaseUpdate: e.lastBaseUpdate, - shared: e.shared, - effects: e.effects, - }); - } - function _a(e, t) { - return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null }; - } - function Ha(e, t, n) { - var r = e.updateQueue; - if (null === r) return null; - if (((r = r.shared), 2 & Tl)) { - var o = r.pending; - return ( - null === o ? (t.next = t) : ((t.next = o.next), (o.next = t)), (r.pending = t), Da(e, n) - ); + function ff(a, b) { + df.set(a, b); + fa(b, [a]); + } + for (var gf = 0; gf < ef.length; gf++) { + var hf = ef[gf], + jf = hf.toLowerCase(), + kf = hf[0].toUpperCase() + hf.slice(1); + ff(jf, 'on' + kf); + } + ff($e, 'onAnimationEnd'); + ff(af, 'onAnimationIteration'); + ff(bf, 'onAnimationStart'); + ff('dblclick', 'onDoubleClick'); + ff('focusin', 'onFocus'); + ff('focusout', 'onBlur'); + ff(cf, 'onTransitionEnd'); + ha('onMouseEnter', ['mouseout', 'mouseover']); + ha('onMouseLeave', ['mouseout', 'mouseover']); + ha('onPointerEnter', ['pointerout', 'pointerover']); + ha('onPointerLeave', ['pointerout', 'pointerover']); + fa('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')); + fa( + 'onSelect', + 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split( + ' ' + ) + ); + fa('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']); + fa('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')); + fa('onCompositionStart', 'compositionstart focusout keydown keypress keyup mousedown'.split(' ')); + fa( + 'onCompositionUpdate', + 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ') + ); + var lf = + 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split( + ' ' + ), + mf = new Set('cancel close invalid load scroll toggle'.split(' ').concat(lf)); + function nf(a, b, c) { + var d = a.type || 'unknown-event'; + a.currentTarget = c; + Ub(d, b, void 0, a); + a.currentTarget = null; + } + function se(a, b) { + b = 0 !== (b & 4); + for (var c = 0; c < a.length; c++) { + var d = a[c], + e = d.event; + d = d.listeners; + a: { + var f = void 0; + if (b) + for (var g = d.length - 1; 0 <= g; g--) { + var h = d[g], + k = h.instance, + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } + else + for (g = 0; g < d.length; g++) { + h = d[g]; + k = h.instance; + l = h.currentTarget; + h = h.listener; + if (k !== f && e.isPropagationStopped()) break a; + nf(e, h, l); + f = k; + } } - return ( - null === (o = r.interleaved) ? ((t.next = t), Ra(r)) : ((t.next = o.next), (o.next = t)), - (r.interleaved = t), - Da(e, n) - ); } - function $a(e, t, n) { - if (null !== (t = t.updateQueue) && ((t = t.shared), 4194240 & n)) { - var r = t.lanes; - (n |= r &= e.pendingLanes), (t.lanes = n), bt(e, n); - } + if (Qb) throw ((a = Rb), (Qb = !1), (Rb = null), a); + } + function D(a, b) { + var c = b[of]; + void 0 === c && (c = b[of] = new Set()); + var d = a + '__bubble'; + c.has(d) || (pf(b, a, 2, !1), c.add(d)); + } + function qf(a, b, c) { + var d = 0; + b && (d |= 4); + pf(c, a, d, b); + } + var rf = '_reactListening' + Math.random().toString(36).slice(2); + function sf(a) { + if (!a[rf]) { + a[rf] = !0; + da.forEach(function (b) { + 'selectionchange' !== b && (mf.has(b) || qf(b, !1, a), qf(b, !0, a)); + }); + var b = 9 === a.nodeType ? a : a.ownerDocument; + null === b || b[rf] || ((b[rf] = !0), qf('selectionchange', !1, b)); } - function Ba(e, t) { - var n = e.updateQueue, - r = e.alternate; - if (null !== r && n === (r = r.updateQueue)) { - var o = null, - a = null; - if (null !== (n = n.firstBaseUpdate)) { - do { - var i = { - eventTime: n.eventTime, - lane: n.lane, - tag: n.tag, - payload: n.payload, - callback: n.callback, - next: null, - }; - null === a ? (o = a = i) : (a = a.next = i), (n = n.next); - } while (null !== n); - null === a ? (o = a = t) : (a = a.next = t); - } else o = a = t; - return ( - (n = { - baseState: r.baseState, - firstBaseUpdate: o, - lastBaseUpdate: a, - shared: r.shared, - effects: r.effects, - }), - void (e.updateQueue = n) - ); + } + function pf(a, b, c, d) { + switch (jd(b)) { + case 1: + var e = ed; + break; + case 4: + e = gd; + break; + default: + e = fd; + } + c = e.bind(null, b, c, a); + e = void 0; + !Lb || ('touchstart' !== b && 'touchmove' !== b && 'wheel' !== b) || (e = !0); + d + ? void 0 !== e + ? a.addEventListener(b, c, { capture: !0, passive: e }) + : a.addEventListener(b, c, !0) + : void 0 !== e + ? a.addEventListener(b, c, { passive: e }) + : a.addEventListener(b, c, !1); + } + function hd(a, b, c, d, e) { + var f = d; + if (0 === (b & 1) && 0 === (b & 2) && null !== d) + a: for (;;) { + if (null === d) return; + var g = d.tag; + if (3 === g || 4 === g) { + var h = d.stateNode.containerInfo; + if (h === e || (8 === h.nodeType && h.parentNode === e)) break; + if (4 === g) + for (g = d.return; null !== g; ) { + var k = g.tag; + if (3 === k || 4 === k) + if ( + ((k = g.stateNode.containerInfo), + k === e || (8 === k.nodeType && k.parentNode === e)) + ) + return; + g = g.return; + } + for (; null !== h; ) { + g = Wc(h); + if (null === g) return; + k = g.tag; + if (5 === k || 6 === k) { + d = f = g; + continue a; + } + h = h.parentNode; + } + } + d = d.return; + } + Jb(function () { + var d = f, + e = xb(c), + g = []; + a: { + var h = df.get(a); + if (void 0 !== h) { + var k = td, + n = a; + switch (a) { + case 'keypress': + if (0 === od(c)) break a; + case 'keydown': + case 'keyup': + k = Rd; + break; + case 'focusin': + n = 'focus'; + k = Fd; + break; + case 'focusout': + n = 'blur'; + k = Fd; + break; + case 'beforeblur': + case 'afterblur': + k = Fd; + break; + case 'click': + if (2 === c.button) break a; + case 'auxclick': + case 'dblclick': + case 'mousedown': + case 'mousemove': + case 'mouseup': + case 'mouseout': + case 'mouseover': + case 'contextmenu': + k = Bd; + break; + case 'drag': + case 'dragend': + case 'dragenter': + case 'dragexit': + case 'dragleave': + case 'dragover': + case 'dragstart': + case 'drop': + k = Dd; + break; + case 'touchcancel': + case 'touchend': + case 'touchmove': + case 'touchstart': + k = Vd; + break; + case $e: + case af: + case bf: + k = Hd; + break; + case cf: + k = Xd; + break; + case 'scroll': + k = vd; + break; + case 'wheel': + k = Zd; + break; + case 'copy': + case 'cut': + case 'paste': + k = Jd; + break; + case 'gotpointercapture': + case 'lostpointercapture': + case 'pointercancel': + case 'pointerdown': + case 'pointermove': + case 'pointerout': + case 'pointerover': + case 'pointerup': + k = Td; + } + var t = 0 !== (b & 4), + J = !t && 'scroll' === a, + x = t ? (null !== h ? h + 'Capture' : null) : h; + t = []; + for (var w = d, u; null !== w; ) { + u = w; + var F = u.stateNode; + 5 === u.tag && + null !== F && + ((u = F), null !== x && ((F = Kb(w, x)), null != F && t.push(tf(w, F, u)))); + if (J) break; + w = w.return; + } + 0 < t.length && ((h = new k(h, n, null, c, e)), g.push({ event: h, listeners: t })); + } } - null === (e = n.lastBaseUpdate) ? (n.firstBaseUpdate = t) : (e.next = t), - (n.lastBaseUpdate = t); - } - function Wa(e, t, n, r) { - var o = e.updateQueue; - ja = !1; - var a = o.firstBaseUpdate, - i = o.lastBaseUpdate, - s = o.shared.pending; - if (null !== s) { - o.shared.pending = null; - var l = s, - c = l.next; - (l.next = null), null === i ? (a = c) : (i.next = c), (i = l); - var u = e.alternate; - null !== u && - (s = (u = u.updateQueue).lastBaseUpdate) !== i && - (null === s ? (u.firstBaseUpdate = c) : (s.next = c), (u.lastBaseUpdate = l)); - } - if (null !== a) { - var d = o.baseState; - for (i = 0, u = c = l = null, s = a; ; ) { - var p = s.lane, - f = s.eventTime; - if ((r & p) === p) { - null !== u && - (u = u.next = - { - eventTime: f, - lane: 0, - tag: s.tag, - payload: s.payload, - callback: s.callback, - next: null, - }); - e: { - var m = e, - h = s; - switch (((p = t), (f = n), h.tag)) { - case 1: - if ('function' == typeof (m = h.payload)) { - d = m.call(f, d, p); - break e; + if (0 === (b & 7)) { + a: { + h = 'mouseover' === a || 'pointerover' === a; + k = 'mouseout' === a || 'pointerout' === a; + if (h && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a; + if (k || h) { + h = + e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window; + if (k) { + if ( + ((n = c.relatedTarget || c.toElement), + (k = d), + (n = n ? Wc(n) : null), + null !== n && ((J = Vb(n)), n !== J || (5 !== n.tag && 6 !== n.tag))) + ) + n = null; + } else (k = null), (n = d); + if (k !== n) { + t = Bd; + F = 'onMouseLeave'; + x = 'onMouseEnter'; + w = 'mouse'; + if ('pointerout' === a || 'pointerover' === a) + (t = Td), (F = 'onPointerLeave'), (x = 'onPointerEnter'), (w = 'pointer'); + J = null == k ? h : ue(k); + u = null == n ? h : ue(n); + h = new t(F, w + 'leave', k, c, e); + h.target = J; + h.relatedTarget = u; + F = null; + Wc(e) === d && + ((t = new t(x, w + 'enter', n, c, e)), + (t.target = u), + (t.relatedTarget = J), + (F = t)); + J = F; + if (k && n) + b: { + t = k; + x = n; + w = 0; + for (u = t; u; u = vf(u)) w++; + u = 0; + for (F = x; F; F = vf(F)) u++; + for (; 0 < w - u; ) (t = vf(t)), w--; + for (; 0 < u - w; ) (x = vf(x)), u--; + for (; w--; ) { + if (t === x || (null !== x && t === x.alternate)) break b; + t = vf(t); + x = vf(x); } - d = m; - break e; - case 3: - m.flags = (-65537 & m.flags) | 128; - case 0: - if (null == (p = 'function' == typeof (m = h.payload) ? m.call(f, d, p) : m)) - break e; - d = F({}, d, p); - break e; - case 2: - ja = !0; - } + t = null; + } + else t = null; + null !== k && wf(g, h, k, t, !1); + null !== n && null !== J && wf(g, J, n, t, !0); } - null !== s.callback && - 0 !== s.lane && - ((e.flags |= 64), null === (p = o.effects) ? (o.effects = [s]) : p.push(s)); - } else - (f = { - eventTime: f, - lane: p, - tag: s.tag, - payload: s.payload, - callback: s.callback, - next: null, - }), - null === u ? ((c = u = f), (l = d)) : (u = u.next = f), - (i |= p); - if (null === (s = s.next)) { - if (null === (s = o.shared.pending)) break; - (s = (p = s).next), (p.next = null), (o.lastBaseUpdate = p), (o.shared.pending = null); } } - if ( - (null === u && (l = d), - (o.baseState = l), - (o.firstBaseUpdate = c), - (o.lastBaseUpdate = u), - null !== (t = o.shared.interleaved)) - ) { - o = t; - do { - (i |= o.lane), (o = o.next); - } while (o !== t); - } else null === a && (o.shared.lanes = 0); - (jl |= i), (e.lanes = i), (e.memoizedState = d); - } - } - function Va(e, t, r) { - if (((e = t.effects), (t.effects = null), null !== e)) - for (t = 0; t < e.length; t++) { - var o = e[t], - a = o.callback; - if (null !== a) { - if (((o.callback = null), (o = r), 'function' != typeof a)) throw Error(n(191, a)); - a.call(o); + a: { + h = d ? ue(d) : window; + k = h.nodeName && h.nodeName.toLowerCase(); + if ('select' === k || ('input' === k && 'file' === h.type)) var na = ve; + else if (me(h)) + if (we) na = Fe; + else { + na = De; + var xa = Ce; + } + else + (k = h.nodeName) && + 'input' === k.toLowerCase() && + ('checkbox' === h.type || 'radio' === h.type) && + (na = Ee); + if (na && (na = na(a, d))) { + ne(g, na, c, e); + break a; } + xa && xa(a, h, d); + 'focusout' === a && + (xa = h._wrapperState) && + xa.controlled && + 'number' === h.type && + cb(h, 'number', h.value); } - } - var Ua = {}, - qa = Co(Ua), - Ya = Co(Ua), - Ka = Co(Ua); - function Ga(e) { - if (e === Ua) throw Error(n(174)); - return e; - } - function Qa(e, t) { - switch ((Po(Ka, t), Po(Ya, e), Po(qa, Ua), (e = t.nodeType))) { - case 9: - case 11: - t = (t = t.documentElement) ? t.namespaceURI : ce(null, ''); - break; - default: - t = ce((t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), (e = e.tagName)); - } - Oo(qa), Po(qa, t); - } - function Xa() { - Oo(qa), Oo(Ya), Oo(Ka); - } - function Ja(e) { - Ga(Ka.current); - var t = Ga(qa.current), - n = ce(t, e.type); - t !== n && (Po(Ya, e), Po(qa, n)); - } - function Za(e) { - Ya.current === e && (Oo(qa), Oo(Ya)); - } - var ei = Co(0); - function ti(e) { - for (var t = e; null !== t; ) { - if (13 === t.tag) { - var n = t.memoizedState; - if (null !== n && (null === (n = n.dehydrated) || '$?' === n.data || '$!' === n.data)) - return t; - } else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) { - if (128 & t.flags) return t; - } else if (null !== t.child) { - (t.child.return = t), (t = t.child); - continue; - } - if (t === e) break; - for (; null === t.sibling; ) { - if (null === t.return || t.return === e) return null; - t = t.return; + xa = d ? ue(d) : window; + switch (a) { + case 'focusin': + if (me(xa) || 'true' === xa.contentEditable) (Qe = xa), (Re = d), (Se = null); + break; + case 'focusout': + Se = Re = Qe = null; + break; + case 'mousedown': + Te = !0; + break; + case 'contextmenu': + case 'mouseup': + case 'dragend': + Te = !1; + Ue(g, c, e); + break; + case 'selectionchange': + if (Pe) break; + case 'keydown': + case 'keyup': + Ue(g, c, e); } - (t.sibling.return = t.return), (t = t.sibling); - } - return null; - } - var ni = []; - function ri() { - for (var e = 0; e < ni.length; e++) ni[e]._workInProgressVersionPrimary = null; - ni.length = 0; - } - var oi = x.ReactCurrentDispatcher, - ai = x.ReactCurrentBatchConfig, - ii = 0, - si = null, - li = null, - ci = null, - ui = !1, - di = !1, - pi = 0, - fi = 0; - function mi() { - throw Error(n(321)); - } - function hi(e, t) { - if (null === t) return !1; - for (var n = 0; n < t.length && n < e.length; n++) if (!sr(e[n], t[n])) return !1; - return !0; + var $a; + if (ae) + b: { + switch (a) { + case 'compositionstart': + var ba = 'onCompositionStart'; + break b; + case 'compositionend': + ba = 'onCompositionEnd'; + break b; + case 'compositionupdate': + ba = 'onCompositionUpdate'; + break b; + } + ba = void 0; + } + else + ie + ? ge(a, c) && (ba = 'onCompositionEnd') + : 'keydown' === a && 229 === c.keyCode && (ba = 'onCompositionStart'); + ba && + (de && + 'ko' !== c.locale && + (ie || 'onCompositionStart' !== ba + ? 'onCompositionEnd' === ba && ie && ($a = nd()) + : ((kd = e), (ld = 'value' in kd ? kd.value : kd.textContent), (ie = !0))), + (xa = oe(d, ba)), + 0 < xa.length && + ((ba = new Ld(ba, a, null, c, e)), + g.push({ event: ba, listeners: xa }), + $a ? (ba.data = $a) : (($a = he(c)), null !== $a && (ba.data = $a)))); + if (($a = ce ? je(a, c) : ke(a, c))) + (d = oe(d, 'onBeforeInput')), + 0 < d.length && + ((e = new Ld('onBeforeInput', 'beforeinput', null, c, e)), + g.push({ event: e, listeners: d }), + (e.data = $a)); + } + se(g, b); + }); + } + function tf(a, b, c) { + return { instance: a, listener: b, currentTarget: c }; + } + function oe(a, b) { + for (var c = b + 'Capture', d = []; null !== a; ) { + var e = a, + f = e.stateNode; + 5 === e.tag && + null !== f && + ((e = f), + (f = Kb(a, c)), + null != f && d.unshift(tf(a, f, e)), + (f = Kb(a, b)), + null != f && d.push(tf(a, f, e))); + a = a.return; + } + return d; + } + function vf(a) { + if (null === a) return null; + do a = a.return; + while (a && 5 !== a.tag); + return a ? a : null; + } + function wf(a, b, c, d, e) { + for (var f = b._reactName, g = []; null !== c && c !== d; ) { + var h = c, + k = h.alternate, + l = h.stateNode; + if (null !== k && k === d) break; + 5 === h.tag && + null !== l && + ((h = l), + e + ? ((k = Kb(c, f)), null != k && g.unshift(tf(c, k, h))) + : e || ((k = Kb(c, f)), null != k && g.push(tf(c, k, h)))); + c = c.return; } - function gi(e, t, r, o, a, i) { - if ( - ((ii = i), - (si = t), - (t.memoizedState = null), - (t.updateQueue = null), - (t.lanes = 0), - (oi.current = null === e || null === e.memoizedState ? Zi : es), - (e = r(o, a)), - di) - ) { - i = 0; - do { - if (((di = !1), (pi = 0), 25 <= i)) throw Error(n(301)); - (i += 1), (ci = li = null), (t.updateQueue = null), (oi.current = ts), (e = r(o, a)); - } while (di); + 0 !== g.length && a.push({ event: b, listeners: g }); + } + var xf = /\r\n?/g, + yf = /\u0000|\uFFFD/g; + function zf(a) { + return ('string' === typeof a ? a : '' + a).replace(xf, '\n').replace(yf, ''); + } + function Af(a, b, c) { + b = zf(b); + if (zf(a) !== b && c) throw Error(p(425)); + } + function Bf() {} + var Cf = null, + Df = null; + function Ef(a, b) { + return ( + 'textarea' === a || + 'noscript' === a || + 'string' === typeof b.children || + 'number' === typeof b.children || + ('object' === typeof b.dangerouslySetInnerHTML && + null !== b.dangerouslySetInnerHTML && + null != b.dangerouslySetInnerHTML.__html) + ); + } + var Ff = 'function' === typeof setTimeout ? setTimeout : void 0, + Gf = 'function' === typeof clearTimeout ? clearTimeout : void 0, + Hf = 'function' === typeof Promise ? Promise : void 0, + Jf = + 'function' === typeof queueMicrotask + ? queueMicrotask + : 'undefined' !== typeof Hf + ? function (a) { + return Hf.resolve(null).then(a).catch(If); + } + : Ff; + function If(a) { + setTimeout(function () { + throw a; + }); + } + function Kf(a, b) { + var c = b, + d = 0; + do { + var e = c.nextSibling; + a.removeChild(c); + if (e && 8 === e.nodeType) + if (((c = e.data), '/$' === c)) { + if (0 === d) { + a.removeChild(e); + bd(b); + return; + } + d--; + } else ('$' !== c && '$?' !== c && '$!' !== c) || d++; + c = e; + } while (c); + bd(b); + } + function Lf(a) { + for (; null != a; a = a.nextSibling) { + var b = a.nodeType; + if (1 === b || 3 === b) break; + if (8 === b) { + b = a.data; + if ('$' === b || '$!' === b || '$?' === b) break; + if ('/$' === b) return null; } - if ( - ((oi.current = Ji), - (t = null !== li && null !== li.next), - (ii = 0), - (ci = li = si = null), - (ui = !1), - t) - ) - throw Error(n(300)); - return e; } - function vi() { - var e = 0 !== pi; - return (pi = 0), e; - } - function bi() { - var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; - return null === ci ? (si.memoizedState = ci = e) : (ci = ci.next = e), ci; - } - function yi() { - if (null === li) { - var e = si.alternate; - e = null !== e ? e.memoizedState : null; - } else e = li.next; - var t = null === ci ? si.memoizedState : ci.next; - if (null !== t) (ci = t), (li = e); - else { - if (null === e) throw Error(n(310)); - (e = { - memoizedState: (li = e).memoizedState, - baseState: li.baseState, - baseQueue: li.baseQueue, - queue: li.queue, - next: null, - }), - null === ci ? (si.memoizedState = ci = e) : (ci = ci.next = e); - } - return ci; - } - function wi(e, t) { - return 'function' == typeof t ? t(e) : t; - } - function xi(e) { - var t = yi(), - r = t.queue; - if (null === r) throw Error(n(311)); - r.lastRenderedReducer = e; - var o = li, - a = o.baseQueue, - i = r.pending; - if (null !== i) { - if (null !== a) { - var s = a.next; - (a.next = i.next), (i.next = s); - } - (o.baseQueue = a = i), (r.pending = null); - } - if (null !== a) { - (i = a.next), (o = o.baseState); - var l = (s = null), - c = null, - u = i; - do { - var d = u.lane; - if ((ii & d) === d) - null !== c && - (c = c.next = - { - lane: 0, - action: u.action, - hasEagerState: u.hasEagerState, - eagerState: u.eagerState, - next: null, - }), - (o = u.hasEagerState ? u.eagerState : e(o, u.action)); - else { - var p = { - lane: d, - action: u.action, - hasEagerState: u.hasEagerState, - eagerState: u.eagerState, - next: null, - }; - null === c ? ((l = c = p), (s = o)) : (c = c.next = p), (si.lanes |= d), (jl |= d); + return a; + } + function Mf(a) { + a = a.previousSibling; + for (var b = 0; a; ) { + if (8 === a.nodeType) { + var c = a.data; + if ('$' === c || '$!' === c || '$?' === c) { + if (0 === b) return a; + b--; + } else '/$' === c && b++; + } + a = a.previousSibling; + } + return null; + } + var Nf = Math.random().toString(36).slice(2), + Of = '__reactFiber$' + Nf, + Pf = '__reactProps$' + Nf, + uf = '__reactContainer$' + Nf, + of = '__reactEvents$' + Nf, + Qf = '__reactListeners$' + Nf, + Rf = '__reactHandles$' + Nf; + function Wc(a) { + var b = a[Of]; + if (b) return b; + for (var c = a.parentNode; c; ) { + if ((b = c[uf] || c[Of])) { + c = b.alternate; + if (null !== b.child || (null !== c && null !== c.child)) + for (a = Mf(a); null !== a; ) { + if ((c = a[Of])) return c; + a = Mf(a); } - u = u.next; - } while (null !== u && u !== i); - null === c ? (s = o) : (c.next = l), - sr(o, t.memoizedState) || (ys = !0), - (t.memoizedState = o), - (t.baseState = s), - (t.baseQueue = c), - (r.lastRenderedState = o); - } - if (null !== (e = r.interleaved)) { - a = e; - do { - (i = a.lane), (si.lanes |= i), (jl |= i), (a = a.next); - } while (a !== e); - } else null === a && (r.lanes = 0); - return [t.memoizedState, r.dispatch]; - } - function ki(e) { - var t = yi(), - r = t.queue; - if (null === r) throw Error(n(311)); - r.lastRenderedReducer = e; - var o = r.dispatch, - a = r.pending, - i = t.memoizedState; - if (null !== a) { - r.pending = null; - var s = (a = a.next); - do { - (i = e(i, s.action)), (s = s.next); - } while (s !== a); - sr(i, t.memoizedState) || (ys = !0), - (t.memoizedState = i), - null === t.baseQueue && (t.baseState = i), - (r.lastRenderedState = i); - } - return [i, o]; - } - function Ei() {} - function Si(e, t) { - var r = si, - o = yi(), - a = t(), - i = !sr(o.memoizedState, a); - if ( - (i && ((o.memoizedState = a), (ys = !0)), - (o = o.queue), - ji(Pi.bind(null, r, o, e), [e]), - o.getSnapshot !== t || i || (null !== ci && 1 & ci.memoizedState.tag)) - ) { - if (((r.flags |= 2048), Mi(9, Oi.bind(null, r, o, a, t), void 0, null), null === Il)) - throw Error(n(349)); - 30 & ii || Ci(r, t, a); + return b; } - return a; + a = c; + c = a.parentNode; } - function Ci(e, t, n) { - (e.flags |= 16384), - (e = { getSnapshot: t, value: n }), - null === (t = si.updateQueue) - ? ((t = { lastEffect: null, stores: null }), (si.updateQueue = t), (t.stores = [e])) - : null === (n = t.stores) - ? (t.stores = [e]) - : n.push(e); - } - function Oi(e, t, n, r) { - (t.value = n), (t.getSnapshot = r), Ti(t) && Ii(e); - } - function Pi(e, t, n) { - return n(function () { - Ti(t) && Ii(e); - }); - } - function Ti(e) { - var t = e.getSnapshot; - e = e.value; + return null; + } + function Cb(a) { + a = a[Of] || a[uf]; + return !a || (5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag) ? null : a; + } + function ue(a) { + if (5 === a.tag || 6 === a.tag) return a.stateNode; + throw Error(p(33)); + } + function Db(a) { + return a[Pf] || null; + } + var Sf = [], + Tf = -1; + function Uf(a) { + return { current: a }; + } + function E(a) { + 0 > Tf || ((a.current = Sf[Tf]), (Sf[Tf] = null), Tf--); + } + function G(a, b) { + Tf++; + Sf[Tf] = a.current; + a.current = b; + } + var Vf = {}, + H = Uf(Vf), + Wf = Uf(!1), + Xf = Vf; + function Yf(a, b) { + var c = a.type.contextTypes; + if (!c) return Vf; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) + return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, + f; + for (f in c) e[f] = b[f]; + d && + ((a = a.stateNode), + (a.__reactInternalMemoizedUnmaskedChildContext = b), + (a.__reactInternalMemoizedMaskedChildContext = e)); + return e; + } + function Zf(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; + } + function $f() { + E(Wf); + E(H); + } + function ag(a, b, c) { + if (H.current !== Vf) throw Error(p(168)); + G(H, b); + G(Wf, c); + } + function bg(a, b, c) { + var d = a.stateNode; + b = b.childContextTypes; + if ('function' !== typeof d.getChildContext) return c; + d = d.getChildContext(); + for (var e in d) if (!(e in b)) throw Error(p(108, Ra(a) || 'Unknown', e)); + return A({}, c, d); + } + function cg(a) { + a = ((a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext) || Vf; + Xf = H.current; + G(H, a); + G(Wf, Wf.current); + return !0; + } + function dg(a, b, c) { + var d = a.stateNode; + if (!d) throw Error(p(169)); + c + ? ((a = bg(a, b, Xf)), + (d.__reactInternalMemoizedMergedChildContext = a), + E(Wf), + E(H), + G(H, a)) + : E(Wf); + G(Wf, c); + } + var eg = null, + fg = !1, + gg = !1; + function hg(a) { + null === eg ? (eg = [a]) : eg.push(a); + } + function ig(a) { + fg = !0; + hg(a); + } + function jg() { + if (!gg && null !== eg) { + gg = !0; + var a = 0, + b = C; try { - var n = t(); - return !sr(e, n); + var c = eg; + for (C = 1; a < c.length; a++) { + var d = c[a]; + do d = d(!0); + while (null !== d); + } + eg = null; + fg = !1; } catch (e) { - return !0; + throw (null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e); + } finally { + (C = b), (gg = !1); } } - function Ii(e) { - var t = Da(e, 1); - null !== t && nc(t, e, 1, -1); - } - function Ni(e) { - var t = bi(); - return ( - 'function' == typeof e && (e = e()), - (t.memoizedState = t.baseState = e), - (e = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: wi, - lastRenderedState: e, - }), - (t.queue = e), - (e = e.dispatch = Ki.bind(null, si, e)), - [t.memoizedState, e] - ); - } - function Mi(e, t, n, r) { - return ( - (e = { tag: e, create: t, destroy: n, deps: r, next: null }), - null === (t = si.updateQueue) - ? ((t = { lastEffect: null, stores: null }), - (si.updateQueue = t), - (t.lastEffect = e.next = e)) - : null === (n = t.lastEffect) - ? (t.lastEffect = e.next = e) - : ((r = n.next), (n.next = e), (e.next = r), (t.lastEffect = e)), - e - ); + return null; + } + var kg = [], + lg = 0, + mg = null, + ng = 0, + og = [], + pg = 0, + qg = null, + rg = 1, + sg = ''; + function tg(a, b) { + kg[lg++] = ng; + kg[lg++] = mg; + mg = a; + ng = b; + } + function ug(a, b, c) { + og[pg++] = rg; + og[pg++] = sg; + og[pg++] = qg; + qg = a; + var d = rg; + a = sg; + var e = 32 - oc(d) - 1; + d &= ~(1 << e); + c += 1; + var f = 32 - oc(b) + e; + if (30 < f) { + var g = e - (e % 5); + f = (d & ((1 << g) - 1)).toString(32); + d >>= g; + e -= g; + rg = (1 << (32 - oc(b) + e)) | (c << e) | d; + sg = f + a; + } else (rg = (1 << f) | (c << e) | d), (sg = a); + } + function vg(a) { + null !== a.return && (tg(a, 1), ug(a, 1, 0)); + } + function wg(a) { + for (; a === mg; ) (mg = kg[--lg]), (kg[lg] = null), (ng = kg[--lg]), (kg[lg] = null); + for (; a === qg; ) + (qg = og[--pg]), + (og[pg] = null), + (sg = og[--pg]), + (og[pg] = null), + (rg = og[--pg]), + (og[pg] = null); + } + var xg = null, + yg = null, + I = !1, + zg = null; + function Ag(a, b) { + var c = Bg(5, null, null, 0); + c.elementType = 'DELETED'; + c.stateNode = b; + c.return = a; + b = a.deletions; + null === b ? ((a.deletions = [c]), (a.flags |= 16)) : b.push(c); + } + function Cg(a, b) { + switch (a.tag) { + case 5: + var c = a.type; + b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b; + return null !== b ? ((a.stateNode = b), (xg = a), (yg = Lf(b.firstChild)), !0) : !1; + case 6: + return ( + (b = '' === a.pendingProps || 3 !== b.nodeType ? null : b), + null !== b ? ((a.stateNode = b), (xg = a), (yg = null), !0) : !1 + ); + case 13: + return ( + (b = 8 !== b.nodeType ? null : b), + null !== b + ? ((c = null !== qg ? { id: rg, overflow: sg } : null), + (a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }), + (c = Bg(18, null, null, 0)), + (c.stateNode = b), + (c.return = a), + (a.child = c), + (xg = a), + (yg = null), + !0) + : !1 + ); + default: + return !1; } - function Li() { - return yi().memoizedState; + } + function Dg(a) { + return 0 !== (a.mode & 1) && 0 === (a.flags & 128); + } + function Eg(a) { + if (I) { + var b = yg; + if (b) { + var c = b; + if (!Cg(a, b)) { + if (Dg(a)) throw Error(p(418)); + b = Lf(c.nextSibling); + var d = xg; + b && Cg(a, b) ? Ag(d, c) : ((a.flags = (a.flags & -4097) | 2), (I = !1), (xg = a)); + } + } else { + if (Dg(a)) throw Error(p(418)); + a.flags = (a.flags & -4097) | 2; + I = !1; + xg = a; + } } - function Ri(e, t, n, r) { - var o = bi(); - (si.flags |= e), (o.memoizedState = Mi(1 | t, n, void 0, void 0 === r ? null : r)); + } + function Fg(a) { + for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return; + xg = a; + } + function Gg(a) { + if (a !== xg) return !1; + if (!I) return Fg(a), (I = !0), !1; + var b; + (b = 3 !== a.tag) && + !(b = 5 !== a.tag) && + ((b = a.type), (b = 'head' !== b && 'body' !== b && !Ef(a.type, a.memoizedProps))); + if (b && (b = yg)) { + if (Dg(a)) throw (Hg(), Error(p(418))); + for (; b; ) Ag(a, b), (b = Lf(b.nextSibling)); + } + Fg(a); + if (13 === a.tag) { + a = a.memoizedState; + a = null !== a ? a.dehydrated : null; + if (!a) throw Error(p(317)); + a: { + a = a.nextSibling; + for (b = 0; a; ) { + if (8 === a.nodeType) { + var c = a.data; + if ('/$' === c) { + if (0 === b) { + yg = Lf(a.nextSibling); + break a; + } + b--; + } else ('$' !== c && '$!' !== c && '$?' !== c) || b++; + } + a = a.nextSibling; + } + yg = null; + } + } else yg = xg ? Lf(a.stateNode.nextSibling) : null; + return !0; + } + function Hg() { + for (var a = yg; a; ) a = Lf(a.nextSibling); + } + function Ig() { + yg = xg = null; + I = !1; + } + function Jg(a) { + null === zg ? (zg = [a]) : zg.push(a); + } + var Kg = ua.ReactCurrentBatchConfig; + function Lg(a, b, c) { + a = c.ref; + if (null !== a && 'function' !== typeof a && 'object' !== typeof a) { + if (c._owner) { + c = c._owner; + if (c) { + if (1 !== c.tag) throw Error(p(309)); + var d = c.stateNode; + } + if (!d) throw Error(p(147, a)); + var e = d, + f = '' + a; + if (null !== b && null !== b.ref && 'function' === typeof b.ref && b.ref._stringRef === f) + return b.ref; + b = function (a) { + var b = e.refs; + null === a ? delete b[f] : (b[f] = a); + }; + b._stringRef = f; + return b; + } + if ('string' !== typeof a) throw Error(p(284)); + if (!c._owner) throw Error(p(290, a)); } - function Ai(e, t, n, r) { - var o = yi(); - r = void 0 === r ? null : r; - var a = void 0; - if (null !== li) { - var i = li.memoizedState; - if (((a = i.destroy), null !== r && hi(r, i.deps))) - return void (o.memoizedState = Mi(t, n, a, r)); + return a; + } + function Mg(a, b) { + a = Object.prototype.toString.call(b); + throw Error( + p(31, '[object Object]' === a ? 'object with keys {' + Object.keys(b).join(', ') + '}' : a) + ); + } + function Ng(a) { + var b = a._init; + return b(a._payload); + } + function Og(a) { + function b(b, c) { + if (a) { + var d = b.deletions; + null === d ? ((b.deletions = [c]), (b.flags |= 16)) : d.push(c); } - (si.flags |= e), (o.memoizedState = Mi(1 | t, n, a, r)); } - function Di(e, t) { - return Ri(8390656, 8, e, t); + function c(c, d) { + if (!a) return null; + for (; null !== d; ) b(c, d), (d = d.sibling); + return null; } - function ji(e, t) { - return Ai(2048, 8, e, t); + function d(a, b) { + for (a = new Map(); null !== b; ) + null !== b.key ? a.set(b.key, b) : a.set(b.index, b), (b = b.sibling); + return a; } - function zi(e, t) { - return Ai(4, 2, e, t); + function e(a, b) { + a = Pg(a, b); + a.index = 0; + a.sibling = null; + return a; } - function Fi(e, t) { - return Ai(4, 4, e, t); + function f(b, c, d) { + b.index = d; + if (!a) return (b.flags |= 1048576), c; + d = b.alternate; + if (null !== d) return (d = d.index), d < c ? ((b.flags |= 2), c) : d; + b.flags |= 2; + return c; + } + function g(b) { + a && null === b.alternate && (b.flags |= 2); + return b; + } + function h(a, b, c, d) { + if (null === b || 6 !== b.tag) return (b = Qg(c, a.mode, d)), (b.return = a), b; + b = e(b, c); + b.return = a; + return b; + } + function k(a, b, c, d) { + var f = c.type; + if (f === ya) return m(a, b, c.props.children, d, c.key); + if ( + null !== b && + (b.elementType === f || + ('object' === typeof f && null !== f && f.$$typeof === Ha && Ng(f) === b.type)) + ) + return (d = e(b, c.props)), (d.ref = Lg(a, b, c)), (d.return = a), d; + d = Rg(c.type, c.key, c.props, null, a.mode, d); + d.ref = Lg(a, b, c); + d.return = a; + return d; } - function _i(e, t) { - return 'function' == typeof t - ? ((e = e()), - t(e), - function () { - t(null); - }) - : null != t - ? ((e = e()), - (t.current = e), - function () { - t.current = null; - }) - : void 0; - } - function Hi(e, t, n) { - return (n = null != n ? n.concat([e]) : null), Ai(4, 4, _i.bind(null, t, e), n); - } - function $i() {} - function Bi(e, t) { - var n = yi(); - t = void 0 === t ? null : t; - var r = n.memoizedState; - return null !== r && null !== t && hi(t, r[1]) ? r[0] : ((n.memoizedState = [e, t]), e); - } - function Wi(e, t) { - var n = yi(); - t = void 0 === t ? null : t; - var r = n.memoizedState; - return null !== r && null !== t && hi(t, r[1]) - ? r[0] - : ((e = e()), (n.memoizedState = [e, t]), e); - } - function Vi(e, t, n) { - return 21 & ii - ? (sr(n, t) || ((n = ht()), (si.lanes |= n), (jl |= n), (e.baseState = !0)), t) - : (e.baseState && ((e.baseState = !1), (ys = !0)), (e.memoizedState = n)); - } - function Ui(e, t) { - var n = yt; - (yt = 0 !== n && 4 > n ? n : 4), e(!0); - var r = ai.transition; - ai.transition = {}; - try { - e(!1), t(); - } finally { - (yt = n), (ai.transition = r); + function l(a, b, c, d) { + if ( + null === b || + 4 !== b.tag || + b.stateNode.containerInfo !== c.containerInfo || + b.stateNode.implementation !== c.implementation + ) + return (b = Sg(c, a.mode, d)), (b.return = a), b; + b = e(b, c.children || []); + b.return = a; + return b; + } + function m(a, b, c, d, f) { + if (null === b || 7 !== b.tag) return (b = Tg(c, a.mode, d, f)), (b.return = a), b; + b = e(b, c); + b.return = a; + return b; + } + function q(a, b, c) { + if (('string' === typeof b && '' !== b) || 'number' === typeof b) + return (b = Qg('' + b, a.mode, c)), (b.return = a), b; + if ('object' === typeof b && null !== b) { + switch (b.$$typeof) { + case va: + return ( + (c = Rg(b.type, b.key, b.props, null, a.mode, c)), + (c.ref = Lg(a, null, b)), + (c.return = a), + c + ); + case wa: + return (b = Sg(b, a.mode, c)), (b.return = a), b; + case Ha: + var d = b._init; + return q(a, d(b._payload), c); + } + if (eb(b) || Ka(b)) return (b = Tg(b, a.mode, c, null)), (b.return = a), b; + Mg(a, b); } + return null; } - function qi() { - return yi().memoizedState; - } - function Yi(e, t, n) { - var r = tc(e); - (n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }), - Gi(e) ? Qi(t, n) : null !== (n = Aa(e, t, n, r)) && (nc(n, e, r, ec()), Xi(n, t, r)); + function r(a, b, c, d) { + var e = null !== b ? b.key : null; + if (('string' === typeof c && '' !== c) || 'number' === typeof c) + return null !== e ? null : h(a, b, '' + c, d); + if ('object' === typeof c && null !== c) { + switch (c.$$typeof) { + case va: + return c.key === e ? k(a, b, c, d) : null; + case wa: + return c.key === e ? l(a, b, c, d) : null; + case Ha: + return (e = c._init), r(a, b, e(c._payload), d); + } + if (eb(c) || Ka(c)) return null !== e ? null : m(a, b, c, d, null); + Mg(a, c); + } + return null; } - function Ki(e, t, n) { - var r = tc(e), - o = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }; - if (Gi(e)) Qi(t, o); - else { - var a = e.alternate; - if (0 === e.lanes && (null === a || 0 === a.lanes) && null !== (a = t.lastRenderedReducer)) - try { - var i = t.lastRenderedState, - s = a(i, n); - if (((o.hasEagerState = !0), (o.eagerState = s), sr(s, i))) { - var l = t.interleaved; - return ( - null === l ? ((o.next = o), Ra(t)) : ((o.next = l.next), (l.next = o)), - void (t.interleaved = o) - ); - } - } catch (e) {} - null !== (n = Aa(e, t, o, r)) && (nc(n, e, r, (o = ec())), Xi(n, t, r)); - } - } - function Gi(e) { - var t = e.alternate; - return e === si || (null !== t && t === si); - } - function Qi(e, t) { - di = ui = !0; - var n = e.pending; - null === n ? (t.next = t) : ((t.next = n.next), (n.next = t)), (e.pending = t); - } - function Xi(e, t, n) { - if (4194240 & n) { - var r = t.lanes; - (n |= r &= e.pendingLanes), (t.lanes = n), bt(e, n); - } - } - var Ji = { - readContext: Ma, - useCallback: mi, - useContext: mi, - useEffect: mi, - useImperativeHandle: mi, - useInsertionEffect: mi, - useLayoutEffect: mi, - useMemo: mi, - useReducer: mi, - useRef: mi, - useState: mi, - useDebugValue: mi, - useDeferredValue: mi, - useTransition: mi, - useMutableSource: mi, - useSyncExternalStore: mi, - useId: mi, - unstable_isNewReconciler: !1, - }, - Zi = { - readContext: Ma, - useCallback: function (e, t) { - return (bi().memoizedState = [e, void 0 === t ? null : t]), e; - }, - useContext: Ma, - useEffect: Di, - useImperativeHandle: function (e, t, n) { - return (n = null != n ? n.concat([e]) : null), Ri(4194308, 4, _i.bind(null, t, e), n); - }, - useLayoutEffect: function (e, t) { - return Ri(4194308, 4, e, t); - }, - useInsertionEffect: function (e, t) { - return Ri(4, 2, e, t); - }, - useMemo: function (e, t) { - var n = bi(); - return (t = void 0 === t ? null : t), (e = e()), (n.memoizedState = [e, t]), e; - }, - useReducer: function (e, t, n) { - var r = bi(); - return ( - (t = void 0 !== n ? n(t) : t), - (r.memoizedState = r.baseState = t), - (e = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: e, - lastRenderedState: t, - }), - (r.queue = e), - (e = e.dispatch = Yi.bind(null, si, e)), - [r.memoizedState, e] - ); - }, - useRef: function (e) { - return (e = { current: e }), (bi().memoizedState = e); - }, - useState: Ni, - useDebugValue: $i, - useDeferredValue: function (e) { - return (bi().memoizedState = e); - }, - useTransition: function () { - var e = Ni(!1), - t = e[0]; - return (e = Ui.bind(null, e[1])), (bi().memoizedState = e), [t, e]; - }, - useMutableSource: function () {}, - useSyncExternalStore: function (e, t, r) { - var o = si, - a = bi(); - if (aa) { - if (void 0 === r) throw Error(n(407)); - r = r(); - } else { - if (((r = t()), null === Il)) throw Error(n(349)); - 30 & ii || Ci(o, t, r); - } - a.memoizedState = r; - var i = { value: r, getSnapshot: t }; - return ( - (a.queue = i), - Di(Pi.bind(null, o, i, e), [e]), - (o.flags |= 2048), - Mi(9, Oi.bind(null, o, i, r, t), void 0, null), - r - ); - }, - useId: function () { - var e = bi(), - t = Il.identifierPrefix; - if (aa) { - var n = Jo; - (t = ':' + t + 'R' + (n = (Xo & ~(1 << (32 - it(Xo) - 1))).toString(32) + n)), - 0 < (n = pi++) && (t += 'H' + n.toString(32)), - (t += ':'); - } else t = ':' + t + 'r' + (n = fi++).toString(32) + ':'; - return (e.memoizedState = t); - }, - unstable_isNewReconciler: !1, - }, - es = { - readContext: Ma, - useCallback: Bi, - useContext: Ma, - useEffect: ji, - useImperativeHandle: Hi, - useInsertionEffect: zi, - useLayoutEffect: Fi, - useMemo: Wi, - useReducer: xi, - useRef: Li, - useState: function () { - return xi(wi); - }, - useDebugValue: $i, - useDeferredValue: function (e) { - return Vi(yi(), li.memoizedState, e); - }, - useTransition: function () { - return [xi(wi)[0], yi().memoizedState]; - }, - useMutableSource: Ei, - useSyncExternalStore: Si, - useId: qi, - unstable_isNewReconciler: !1, - }, - ts = { - readContext: Ma, - useCallback: Bi, - useContext: Ma, - useEffect: ji, - useImperativeHandle: Hi, - useInsertionEffect: zi, - useLayoutEffect: Fi, - useMemo: Wi, - useReducer: ki, - useRef: Li, - useState: function () { - return ki(wi); - }, - useDebugValue: $i, - useDeferredValue: function (e) { - var t = yi(); - return null === li ? (t.memoizedState = e) : Vi(t, li.memoizedState, e); - }, - useTransition: function () { - return [ki(wi)[0], yi().memoizedState]; - }, - useMutableSource: Ei, - useSyncExternalStore: Si, - useId: qi, - unstable_isNewReconciler: !1, - }; - function ns(e, t) { - if (e && e.defaultProps) { - for (var n in ((t = F({}, t)), (e = e.defaultProps))) void 0 === t[n] && (t[n] = e[n]); - return t; + function y(a, b, c, d, e) { + if (('string' === typeof d && '' !== d) || 'number' === typeof d) + return (a = a.get(c) || null), h(b, a, '' + d, e); + if ('object' === typeof d && null !== d) { + switch (d.$$typeof) { + case va: + return (a = a.get(null === d.key ? c : d.key) || null), k(b, a, d, e); + case wa: + return (a = a.get(null === d.key ? c : d.key) || null), l(b, a, d, e); + case Ha: + var f = d._init; + return y(a, b, c, f(d._payload), e); + } + if (eb(d) || Ka(d)) return (a = a.get(c) || null), m(b, a, d, e, null); + Mg(b, d); } - return t; + return null; } - function rs(e, t, n, r) { - (n = null == (n = n(r, (t = e.memoizedState))) ? t : F({}, t, n)), - (e.memoizedState = n), - 0 === e.lanes && (e.updateQueue.baseState = n); + function n(e, g, h, k) { + for (var l = null, m = null, u = g, w = (g = 0), x = null; null !== u && w < h.length; w++) { + u.index > w ? ((x = u), (u = null)) : (x = u.sibling); + var n = r(e, u, h[w], k); + if (null === n) { + null === u && (u = x); + break; + } + a && u && null === n.alternate && b(e, u); + g = f(n, g, w); + null === m ? (l = n) : (m.sibling = n); + m = n; + u = x; + } + if (w === h.length) return c(e, u), I && tg(e, w), l; + if (null === u) { + for (; w < h.length; w++) + (u = q(e, h[w], k)), + null !== u && ((g = f(u, g, w)), null === m ? (l = u) : (m.sibling = u), (m = u)); + I && tg(e, w); + return l; + } + for (u = d(e, u); w < h.length; w++) + (x = y(u, e, w, h[w], k)), + null !== x && + (a && null !== x.alternate && u.delete(null === x.key ? w : x.key), + (g = f(x, g, w)), + null === m ? (l = x) : (m.sibling = x), + (m = x)); + a && + u.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function t(e, g, h, k) { + var l = Ka(h); + if ('function' !== typeof l) throw Error(p(150)); + h = l.call(h); + if (null == h) throw Error(p(151)); + for ( + var u = (l = null), m = g, w = (g = 0), x = null, n = h.next(); + null !== m && !n.done; + w++, n = h.next() + ) { + m.index > w ? ((x = m), (m = null)) : (x = m.sibling); + var t = r(e, m, n.value, k); + if (null === t) { + null === m && (m = x); + break; + } + a && m && null === t.alternate && b(e, m); + g = f(t, g, w); + null === u ? (l = t) : (u.sibling = t); + u = t; + m = x; + } + if (n.done) return c(e, m), I && tg(e, w), l; + if (null === m) { + for (; !n.done; w++, n = h.next()) + (n = q(e, n.value, k)), + null !== n && ((g = f(n, g, w)), null === u ? (l = n) : (u.sibling = n), (u = n)); + I && tg(e, w); + return l; + } + for (m = d(e, m); !n.done; w++, n = h.next()) + (n = y(m, e, w, n.value, k)), + null !== n && + (a && null !== n.alternate && m.delete(null === n.key ? w : n.key), + (g = f(n, g, w)), + null === u ? (l = n) : (u.sibling = n), + (u = n)); + a && + m.forEach(function (a) { + return b(e, a); + }); + I && tg(e, w); + return l; + } + function J(a, d, f, h) { + 'object' === typeof f && + null !== f && + f.type === ya && + null === f.key && + (f = f.props.children); + if ('object' === typeof f && null !== f) { + switch (f.$$typeof) { + case va: + a: { + for (var k = f.key, l = d; null !== l; ) { + if (l.key === k) { + k = f.type; + if (k === ya) { + if (7 === l.tag) { + c(a, l.sibling); + d = e(l, f.props.children); + d.return = a; + a = d; + break a; + } + } else if ( + l.elementType === k || + ('object' === typeof k && null !== k && k.$$typeof === Ha && Ng(k) === l.type) + ) { + c(a, l.sibling); + d = e(l, f.props); + d.ref = Lg(a, l, f); + d.return = a; + a = d; + break a; + } + c(a, l); + break; + } else b(a, l); + l = l.sibling; + } + f.type === ya + ? ((d = Tg(f.props.children, a.mode, h, f.key)), (d.return = a), (a = d)) + : ((h = Rg(f.type, f.key, f.props, null, a.mode, h)), + (h.ref = Lg(a, d, f)), + (h.return = a), + (a = h)); + } + return g(a); + case wa: + a: { + for (l = f.key; null !== d; ) { + if (d.key === l) + if ( + 4 === d.tag && + d.stateNode.containerInfo === f.containerInfo && + d.stateNode.implementation === f.implementation + ) { + c(a, d.sibling); + d = e(d, f.children || []); + d.return = a; + a = d; + break a; + } else { + c(a, d); + break; + } + else b(a, d); + d = d.sibling; + } + d = Sg(f, a.mode, h); + d.return = a; + a = d; + } + return g(a); + case Ha: + return (l = f._init), J(a, d, l(f._payload), h); + } + if (eb(f)) return n(a, d, f, h); + if (Ka(f)) return t(a, d, f, h); + Mg(a, f); + } + return ('string' === typeof f && '' !== f) || 'number' === typeof f + ? ((f = '' + f), + null !== d && 6 === d.tag + ? (c(a, d.sibling), (d = e(d, f)), (d.return = a), (a = d)) + : (c(a, d), (d = Qg(f, a.mode, h)), (d.return = a), (a = d)), + g(a)) + : c(a, d); + } + return J; + } + var Ug = Og(!0), + Vg = Og(!1), + Wg = Uf(null), + Xg = null, + Yg = null, + Zg = null; + function $g() { + Zg = Yg = Xg = null; + } + function ah(a) { + var b = Wg.current; + E(Wg); + a._currentValue = b; + } + function bh(a, b, c) { + for (; null !== a; ) { + var d = a.alternate; + (a.childLanes & b) !== b + ? ((a.childLanes |= b), null !== d && (d.childLanes |= b)) + : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); + if (a === c) break; + a = a.return; } - var os = { - isMounted: function (e) { - return !!(e = e._reactInternals) && Be(e) === e; - }, - enqueueSetState: function (e, t, n) { - e = e._reactInternals; - var r = ec(), - o = tc(e), - a = _a(r, o); - (a.payload = t), - null != n && (a.callback = n), - null !== (t = Ha(e, a, o)) && (nc(t, e, o, r), $a(t, e, o)); - }, - enqueueReplaceState: function (e, t, n) { - e = e._reactInternals; - var r = ec(), - o = tc(e), - a = _a(r, o); - (a.tag = 1), - (a.payload = t), - null != n && (a.callback = n), - null !== (t = Ha(e, a, o)) && (nc(t, e, o, r), $a(t, e, o)); - }, - enqueueForceUpdate: function (e, t) { - e = e._reactInternals; - var n = ec(), - r = tc(e), - o = _a(n, r); - (o.tag = 2), - null != t && (o.callback = t), - null !== (t = Ha(e, o, r)) && (nc(t, e, r, n), $a(t, e, r)); - }, + } + function ch(a, b) { + Xg = a; + Zg = Yg = null; + a = a.dependencies; + null !== a && + null !== a.firstContext && + (0 !== (a.lanes & b) && (dh = !0), (a.firstContext = null)); + } + function eh(a) { + var b = a._currentValue; + if (Zg !== a) + if (((a = { context: a, memoizedValue: b, next: null }), null === Yg)) { + if (null === Xg) throw Error(p(308)); + Yg = a; + Xg.dependencies = { lanes: 0, firstContext: a }; + } else Yg = Yg.next = a; + return b; + } + var fh = null; + function gh(a) { + null === fh ? (fh = [a]) : fh.push(a); + } + function hh(a, b, c, d) { + var e = b.interleaved; + null === e ? ((c.next = c), gh(b)) : ((c.next = e.next), (e.next = c)); + b.interleaved = c; + return ih(a, d); + } + function ih(a, b) { + a.lanes |= b; + var c = a.alternate; + null !== c && (c.lanes |= b); + c = a; + for (a = a.return; null !== a; ) + (a.childLanes |= b), + (c = a.alternate), + null !== c && (c.childLanes |= b), + (c = a), + (a = a.return); + return 3 === c.tag ? c.stateNode : null; + } + var jh = !1; + function kh(a) { + a.updateQueue = { + baseState: a.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { pending: null, interleaved: null, lanes: 0 }, + effects: null, }; - function as(e, t, n, r, o, a, i) { - return 'function' == typeof (e = e.stateNode).shouldComponentUpdate - ? e.shouldComponentUpdate(r, a, i) - : !(t.prototype && t.prototype.isPureReactComponent && lr(n, r) && lr(o, a)); - } - function is(e, t, n) { - var r = !1, - o = To, - a = t.contextType; - return ( - 'object' == typeof a && null !== a - ? (a = Ma(a)) - : ((o = Ro(t) ? Mo : Io.current), - (a = (r = null != (r = t.contextTypes)) ? Lo(e, o) : To)), - (t = new t(n, a)), - (e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null), - (t.updater = os), - (e.stateNode = t), - (t._reactInternals = e), - r && - (((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = o), - (e.__reactInternalMemoizedMaskedChildContext = a)), - t - ); + } + function lh(a, b) { + a = a.updateQueue; + b.updateQueue === a && + (b.updateQueue = { + baseState: a.baseState, + firstBaseUpdate: a.firstBaseUpdate, + lastBaseUpdate: a.lastBaseUpdate, + shared: a.shared, + effects: a.effects, + }); + } + function mh(a, b) { + return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null }; + } + function nh(a, b, c) { + var d = a.updateQueue; + if (null === d) return null; + d = d.shared; + if (0 !== (K & 2)) { + var e = d.pending; + null === e ? (b.next = b) : ((b.next = e.next), (e.next = b)); + d.pending = b; + return ih(a, c); + } + e = d.interleaved; + null === e ? ((b.next = b), gh(d)) : ((b.next = e.next), (e.next = b)); + d.interleaved = b; + return ih(a, c); + } + function oh(a, b, c) { + b = b.updateQueue; + if (null !== b && ((b = b.shared), 0 !== (c & 4194240))) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); } - function ss(e, t, n, r) { - (e = t.state), - 'function' == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r), - 'function' == typeof t.UNSAFE_componentWillReceiveProps && - t.UNSAFE_componentWillReceiveProps(n, r), - t.state !== e && os.enqueueReplaceState(t, t.state, null); - } - function ls(e, t, n, r) { - var o = e.stateNode; - (o.props = n), (o.state = e.memoizedState), (o.refs = {}), za(e); - var a = t.contextType; - 'object' == typeof a && null !== a - ? (o.context = Ma(a)) - : ((a = Ro(t) ? Mo : Io.current), (o.context = Lo(e, a))), - (o.state = e.memoizedState), - 'function' == typeof (a = t.getDerivedStateFromProps) && - (rs(e, t, a, n), (o.state = e.memoizedState)), - 'function' == typeof t.getDerivedStateFromProps || - 'function' == typeof o.getSnapshotBeforeUpdate || - ('function' != typeof o.UNSAFE_componentWillMount && - 'function' != typeof o.componentWillMount) || - ((t = o.state), - 'function' == typeof o.componentWillMount && o.componentWillMount(), - 'function' == typeof o.UNSAFE_componentWillMount && o.UNSAFE_componentWillMount(), - t !== o.state && os.enqueueReplaceState(o, o.state, null), - Wa(e, n, o, r), - (o.state = e.memoizedState)), - 'function' == typeof o.componentDidMount && (e.flags |= 4194308); - } - function cs(e, t) { - try { - var n = '', - r = t; + } + function ph(a, b) { + var c = a.updateQueue, + d = a.alternate; + if (null !== d && ((d = d.updateQueue), c === d)) { + var e = null, + f = null; + c = c.firstBaseUpdate; + if (null !== c) { do { - (n += B(r)), (r = r.return); - } while (r); - var o = n; - } catch (e) { - o = '\nError generating stack: ' + e.message + '\n' + e.stack; - } - return { value: e, source: t, stack: o, digest: null }; + var g = { + eventTime: c.eventTime, + lane: c.lane, + tag: c.tag, + payload: c.payload, + callback: c.callback, + next: null, + }; + null === f ? (e = f = g) : (f = f.next = g); + c = c.next; + } while (null !== c); + null === f ? (e = f = b) : (f = f.next = b); + } else e = f = b; + c = { + baseState: d.baseState, + firstBaseUpdate: e, + lastBaseUpdate: f, + shared: d.shared, + effects: d.effects, + }; + a.updateQueue = c; + return; } - function us(e, t, n) { - return { value: e, source: null, stack: null != n ? n : null, digest: null != t ? t : null }; + a = c.lastBaseUpdate; + null === a ? (c.firstBaseUpdate = b) : (a.next = b); + c.lastBaseUpdate = b; + } + function qh(a, b, c, d) { + var e = a.updateQueue; + jh = !1; + var f = e.firstBaseUpdate, + g = e.lastBaseUpdate, + h = e.shared.pending; + if (null !== h) { + e.shared.pending = null; + var k = h, + l = k.next; + k.next = null; + null === g ? (f = l) : (g.next = l); + g = k; + var m = a.alternate; + null !== m && + ((m = m.updateQueue), + (h = m.lastBaseUpdate), + h !== g && (null === h ? (m.firstBaseUpdate = l) : (h.next = l), (m.lastBaseUpdate = k))); + } + if (null !== f) { + var q = e.baseState; + g = 0; + m = l = k = null; + h = f; + do { + var r = h.lane, + y = h.eventTime; + if ((d & r) === r) { + null !== m && + (m = m.next = + { + eventTime: y, + lane: 0, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null, + }); + a: { + var n = a, + t = h; + r = b; + y = c; + switch (t.tag) { + case 1: + n = t.payload; + if ('function' === typeof n) { + q = n.call(y, q, r); + break a; + } + q = n; + break a; + case 3: + n.flags = (n.flags & -65537) | 128; + case 0: + n = t.payload; + r = 'function' === typeof n ? n.call(y, q, r) : n; + if (null === r || void 0 === r) break a; + q = A({}, q, r); + break a; + case 2: + jh = !0; + } + } + null !== h.callback && + 0 !== h.lane && + ((a.flags |= 64), (r = e.effects), null === r ? (e.effects = [h]) : r.push(h)); + } else + (y = { + eventTime: y, + lane: r, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null, + }), + null === m ? ((l = m = y), (k = q)) : (m = m.next = y), + (g |= r); + h = h.next; + if (null === h) + if (((h = e.shared.pending), null === h)) break; + else + (r = h), + (h = r.next), + (r.next = null), + (e.lastBaseUpdate = r), + (e.shared.pending = null); + } while (1); + null === m && (k = q); + e.baseState = k; + e.firstBaseUpdate = l; + e.lastBaseUpdate = m; + b = e.shared.interleaved; + if (null !== b) { + e = b; + do (g |= e.lane), (e = e.next); + while (e !== b); + } else null === f && (e.shared.lanes = 0); + rh |= g; + a.lanes = g; + a.memoizedState = q; } - function ds(e, t) { - try { - console.error(t.value); - } catch (e) { - setTimeout(function () { - throw e; - }); + } + function sh(a, b, c) { + a = b.effects; + b.effects = null; + if (null !== a) + for (b = 0; b < a.length; b++) { + var d = a[b], + e = d.callback; + if (null !== e) { + d.callback = null; + d = c; + if ('function' !== typeof e) throw Error(p(191, e)); + e.call(d); + } } + } + var th = {}, + uh = Uf(th), + vh = Uf(th), + wh = Uf(th); + function xh(a) { + if (a === th) throw Error(p(174)); + return a; + } + function yh(a, b) { + G(wh, b); + G(vh, a); + G(uh, th); + a = b.nodeType; + switch (a) { + case 9: + case 11: + b = (b = b.documentElement) ? b.namespaceURI : lb(null, ''); + break; + default: + (a = 8 === a ? b.parentNode : b), + (b = a.namespaceURI || null), + (a = a.tagName), + (b = lb(b, a)); } - var ps = 'function' == typeof WeakMap ? WeakMap : Map; - function fs(e, t, n) { - ((n = _a(-1, n)).tag = 3), (n.payload = { element: null }); - var r = t.value; - return ( - (n.callback = function () { - Vl || ((Vl = !0), (Ul = r)), ds(0, t); - }), - n - ); - } - function ms(e, t, n) { - (n = _a(-1, n)).tag = 3; - var r = e.type.getDerivedStateFromError; - if ('function' == typeof r) { - var o = t.value; - (n.payload = function () { - return r(o); - }), - (n.callback = function () { - ds(0, t); - }); - } - var a = e.stateNode; - return ( - null !== a && - 'function' == typeof a.componentDidCatch && - (n.callback = function () { - ds(0, t), - 'function' != typeof r && (null === ql ? (ql = new Set([this])) : ql.add(this)); - var e = t.stack; - this.componentDidCatch(t.value, { componentStack: null !== e ? e : '' }); - }), - n - ); + E(uh); + G(uh, b); + } + function zh() { + E(uh); + E(vh); + E(wh); + } + function Ah(a) { + xh(wh.current); + var b = xh(uh.current); + var c = lb(b, a.type); + b !== c && (G(vh, a), G(uh, c)); + } + function Bh(a) { + vh.current === a && (E(uh), E(vh)); + } + var L = Uf(0); + function Ch(a) { + for (var b = a; null !== b; ) { + if (13 === b.tag) { + var c = b.memoizedState; + if (null !== c && ((c = c.dehydrated), null === c || '$?' === c.data || '$!' === c.data)) + return b; + } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { + if (0 !== (b.flags & 128)) return b; + } else if (null !== b.child) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; } - function hs(e, t, n) { - var r = e.pingCache; - if (null === r) { - r = e.pingCache = new ps(); - var o = new Set(); - r.set(t, o); - } else void 0 === (o = r.get(t)) && ((o = new Set()), r.set(t, o)); - o.has(n) || (o.add(n), (e = Cc.bind(null, e, t, n)), t.then(e, e)); + return null; + } + var Dh = []; + function Eh() { + for (var a = 0; a < Dh.length; a++) Dh[a]._workInProgressVersionPrimary = null; + Dh.length = 0; + } + var Fh = ua.ReactCurrentDispatcher, + Gh = ua.ReactCurrentBatchConfig, + Hh = 0, + M = null, + N = null, + O = null, + Ih = !1, + Jh = !1, + Kh = 0, + Lh = 0; + function P() { + throw Error(p(321)); + } + function Mh(a, b) { + if (null === b) return !1; + for (var c = 0; c < b.length && c < a.length; c++) if (!He(a[c], b[c])) return !1; + return !0; + } + function Nh(a, b, c, d, e, f) { + Hh = f; + M = b; + b.memoizedState = null; + b.updateQueue = null; + b.lanes = 0; + Fh.current = null === a || null === a.memoizedState ? Oh : Ph; + a = c(d, e); + if (Jh) { + f = 0; + do { + Jh = !1; + Kh = 0; + if (25 <= f) throw Error(p(301)); + f += 1; + O = N = null; + b.updateQueue = null; + Fh.current = Qh; + a = c(d, e); + } while (Jh); + } + Fh.current = Rh; + b = null !== N && null !== N.next; + Hh = 0; + O = N = M = null; + Ih = !1; + if (b) throw Error(p(300)); + return a; + } + function Sh() { + var a = 0 !== Kh; + Kh = 0; + return a; + } + function Th() { + var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; + null === O ? (M.memoizedState = O = a) : (O = O.next = a); + return O; + } + function Uh() { + if (null === N) { + var a = M.alternate; + a = null !== a ? a.memoizedState : null; + } else a = N.next; + var b = null === O ? M.memoizedState : O.next; + if (null !== b) (O = b), (N = a); + else { + if (null === a) throw Error(p(310)); + N = a; + a = { + memoizedState: N.memoizedState, + baseState: N.baseState, + baseQueue: N.baseQueue, + queue: N.queue, + next: null, + }; + null === O ? (M.memoizedState = O = a) : (O = O.next = a); } - function gs(e) { + return O; + } + function Vh(a, b) { + return 'function' === typeof b ? b(a) : b; + } + function Wh(a) { + var b = Uh(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = N, + e = d.baseQueue, + f = c.pending; + if (null !== f) { + if (null !== e) { + var g = e.next; + e.next = f.next; + f.next = g; + } + d.baseQueue = e = f; + c.pending = null; + } + if (null !== e) { + f = e.next; + d = d.baseState; + var h = (g = null), + k = null, + l = f; do { - var t; - if ( - ((t = 13 === e.tag) && (t = null === (t = e.memoizedState) || null !== t.dehydrated), t) - ) - return e; - e = e.return; - } while (null !== e); - return null; + var m = l.lane; + if ((Hh & m) === m) + null !== k && + (k = k.next = + { + lane: 0, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null, + }), + (d = l.hasEagerState ? l.eagerState : a(d, l.action)); + else { + var q = { + lane: m, + action: l.action, + hasEagerState: l.hasEagerState, + eagerState: l.eagerState, + next: null, + }; + null === k ? ((h = k = q), (g = d)) : (k = k.next = q); + M.lanes |= m; + rh |= m; + } + l = l.next; + } while (null !== l && l !== f); + null === k ? (g = d) : (k.next = h); + He(d, b.memoizedState) || (dh = !0); + b.memoizedState = d; + b.baseState = g; + b.baseQueue = k; + c.lastRenderedState = d; + } + a = c.interleaved; + if (null !== a) { + e = a; + do (f = e.lane), (M.lanes |= f), (rh |= f), (e = e.next); + while (e !== a); + } else null === e && (c.lanes = 0); + return [b.memoizedState, c.dispatch]; + } + function Xh(a) { + var b = Uh(), + c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = c.dispatch, + e = c.pending, + f = b.memoizedState; + if (null !== e) { + c.pending = null; + var g = (e = e.next); + do (f = a(f, g.action)), (g = g.next); + while (g !== e); + He(f, b.memoizedState) || (dh = !0); + b.memoizedState = f; + null === b.baseQueue && (b.baseState = f); + c.lastRenderedState = f; + } + return [f, d]; + } + function Yh() {} + function Zh(a, b) { + var c = M, + d = Uh(), + e = b(), + f = !He(d.memoizedState, e); + f && ((d.memoizedState = e), (dh = !0)); + d = d.queue; + $h(ai.bind(null, c, d, a), [a]); + if (d.getSnapshot !== b || f || (null !== O && O.memoizedState.tag & 1)) { + c.flags |= 2048; + bi(9, ci.bind(null, c, d, e, b), void 0, null); + if (null === Q) throw Error(p(349)); + 0 !== (Hh & 30) || di(c, b, e); } - function vs(e, t, n, r, o) { - return 1 & e.mode - ? ((e.flags |= 65536), (e.lanes = o), e) - : (e === t - ? (e.flags |= 65536) - : ((e.flags |= 128), - (n.flags |= 131072), - (n.flags &= -52805), - 1 === n.tag && - (null === n.alternate ? (n.tag = 17) : (((t = _a(-1, 1)).tag = 2), Ha(n, t, 1))), - (n.lanes |= 1)), - e); - } - var bs = x.ReactCurrentOwner, - ys = !1; - function ws(e, t, n, r) { - t.child = null === e ? ka(t, null, n, r) : xa(t, e.child, n, r); - } - function xs(e, t, n, r, o) { - n = n.render; - var a = t.ref; - return ( - Na(t, o), - (r = gi(e, t, n, r, a, o)), - (n = vi()), - null === e || ys - ? (aa && n && ta(t), (t.flags |= 1), ws(e, t, r, o), t.child) - : ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~o), Vs(e, t, o)) - ); + return e; + } + function di(a, b, c) { + a.flags |= 16384; + a = { getSnapshot: b, value: c }; + b = M.updateQueue; + null === b + ? ((b = { lastEffect: null, stores: null }), (M.updateQueue = b), (b.stores = [a])) + : ((c = b.stores), null === c ? (b.stores = [a]) : c.push(a)); + } + function ci(a, b, c, d) { + b.value = c; + b.getSnapshot = d; + ei(b) && fi(a); + } + function ai(a, b, c) { + return c(function () { + ei(b) && fi(a); + }); + } + function ei(a) { + var b = a.getSnapshot; + a = a.value; + try { + var c = b(); + return !He(a, c); + } catch (d) { + return !0; } - function ks(e, t, n, r, o) { - if (null === e) { - var a = n.type; - return 'function' != typeof a || - Lc(a) || - void 0 !== a.defaultProps || - null !== n.compare || - void 0 !== n.defaultProps - ? (((e = Ac(n.type, null, r, t, t.mode, o)).ref = t.ref), (e.return = t), (t.child = e)) - : ((t.tag = 15), (t.type = a), Es(e, t, a, r, o)); - } - if (((a = e.child), !(e.lanes & o))) { - var i = a.memoizedProps; - if ((n = null !== (n = n.compare) ? n : lr)(i, r) && e.ref === t.ref) return Vs(e, t, o); + } + function fi(a) { + var b = ih(a, 1); + null !== b && gi(b, a, 1, -1); + } + function hi(a) { + var b = Th(); + 'function' === typeof a && (a = a()); + b.memoizedState = b.baseState = a; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Vh, + lastRenderedState: a, + }; + b.queue = a; + a = a.dispatch = ii.bind(null, M, a); + return [b.memoizedState, a]; + } + function bi(a, b, c, d) { + a = { tag: a, create: b, destroy: c, deps: d, next: null }; + b = M.updateQueue; + null === b + ? ((b = { lastEffect: null, stores: null }), (M.updateQueue = b), (b.lastEffect = a.next = a)) + : ((c = b.lastEffect), + null === c + ? (b.lastEffect = a.next = a) + : ((d = c.next), (c.next = a), (a.next = d), (b.lastEffect = a))); + return a; + } + function ji() { + return Uh().memoizedState; + } + function ki(a, b, c, d) { + var e = Th(); + M.flags |= a; + e.memoizedState = bi(1 | b, c, void 0, void 0 === d ? null : d); + } + function li(a, b, c, d) { + var e = Uh(); + d = void 0 === d ? null : d; + var f = void 0; + if (null !== N) { + var g = N.memoizedState; + f = g.destroy; + if (null !== d && Mh(d, g.deps)) { + e.memoizedState = bi(b, c, f, d); + return; } - return (t.flags |= 1), ((e = Rc(a, r)).ref = t.ref), (e.return = t), (t.child = e); } - function Es(e, t, n, r, o) { - if (null !== e) { - var a = e.memoizedProps; - if (lr(a, r) && e.ref === t.ref) { - if (((ys = !1), (t.pendingProps = r = a), !(e.lanes & o))) - return (t.lanes = e.lanes), Vs(e, t, o); - 131072 & e.flags && (ys = !0); - } - } - return Os(e, t, n, r, o); - } - function Ss(e, t, n) { - var r = t.pendingProps, - o = r.children, - a = null !== e ? e.memoizedState : null; - if ('hidden' === r.mode) - if (1 & t.mode) { - if (!(1073741824 & n)) - return ( - (e = null !== a ? a.baseLanes | n : n), - (t.lanes = t.childLanes = 1073741824), - (t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }), - (t.updateQueue = null), - Po(Rl, Ll), - (Ll |= e), - null - ); - (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), - (r = null !== a ? a.baseLanes : n), - Po(Rl, Ll), - (Ll |= r); - } else - (t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), - Po(Rl, Ll), - (Ll |= n); - else - null !== a ? ((r = a.baseLanes | n), (t.memoizedState = null)) : (r = n), - Po(Rl, Ll), - (Ll |= r); - return ws(e, t, o, n), t.child; - } - function Cs(e, t) { - var n = t.ref; - ((null === e && null !== n) || (null !== e && e.ref !== n)) && - ((t.flags |= 512), (t.flags |= 2097152)); - } - function Os(e, t, n, r, o) { - var a = Ro(n) ? Mo : Io.current; + M.flags |= a; + e.memoizedState = bi(1 | b, c, f, d); + } + function mi(a, b) { + return ki(8390656, 8, a, b); + } + function $h(a, b) { + return li(2048, 8, a, b); + } + function ni(a, b) { + return li(4, 2, a, b); + } + function oi(a, b) { + return li(4, 4, a, b); + } + function pi(a, b) { + if ('function' === typeof b) return ( - (a = Lo(t, a)), - Na(t, o), - (n = gi(e, t, n, r, a, o)), - (r = vi()), - null === e || ys - ? (aa && r && ta(t), (t.flags |= 1), ws(e, t, n, o), t.child) - : ((t.updateQueue = e.updateQueue), (t.flags &= -2053), (e.lanes &= ~o), Vs(e, t, o)) + (a = a()), + b(a), + function () { + b(null); + } ); - } - function Ps(e, t, n, r, o) { - if (Ro(n)) { - var a = !0; - zo(t); - } else a = !1; - if ((Na(t, o), null === t.stateNode)) Ws(e, t), is(t, n, r), ls(t, n, r, o), (r = !0); - else if (null === e) { - var i = t.stateNode, - s = t.memoizedProps; - i.props = s; - var l = i.context, - c = n.contextType; - c = 'object' == typeof c && null !== c ? Ma(c) : Lo(t, (c = Ro(n) ? Mo : Io.current)); - var u = n.getDerivedStateFromProps, - d = 'function' == typeof u || 'function' == typeof i.getSnapshotBeforeUpdate; - d || - ('function' != typeof i.UNSAFE_componentWillReceiveProps && - 'function' != typeof i.componentWillReceiveProps) || - ((s !== r || l !== c) && ss(t, i, r, c)), - (ja = !1); - var p = t.memoizedState; - (i.state = p), - Wa(t, r, i, o), - (l = t.memoizedState), - s !== r || p !== l || No.current || ja - ? ('function' == typeof u && (rs(t, n, u, r), (l = t.memoizedState)), - (s = ja || as(t, n, s, r, p, l, c)) - ? (d || - ('function' != typeof i.UNSAFE_componentWillMount && - 'function' != typeof i.componentWillMount) || - ('function' == typeof i.componentWillMount && i.componentWillMount(), - 'function' == typeof i.UNSAFE_componentWillMount && - i.UNSAFE_componentWillMount()), - 'function' == typeof i.componentDidMount && (t.flags |= 4194308)) - : ('function' == typeof i.componentDidMount && (t.flags |= 4194308), - (t.memoizedProps = r), - (t.memoizedState = l)), - (i.props = r), - (i.state = l), - (i.context = c), - (r = s)) - : ('function' == typeof i.componentDidMount && (t.flags |= 4194308), (r = !1)); - } else { - (i = t.stateNode), - Fa(e, t), - (s = t.memoizedProps), - (c = t.type === t.elementType ? s : ns(t.type, s)), - (i.props = c), - (d = t.pendingProps), - (p = i.context), - (l = - 'object' == typeof (l = n.contextType) && null !== l - ? Ma(l) - : Lo(t, (l = Ro(n) ? Mo : Io.current))); - var f = n.getDerivedStateFromProps; - (u = 'function' == typeof f || 'function' == typeof i.getSnapshotBeforeUpdate) || - ('function' != typeof i.UNSAFE_componentWillReceiveProps && - 'function' != typeof i.componentWillReceiveProps) || - ((s !== d || p !== l) && ss(t, i, r, l)), - (ja = !1), - (p = t.memoizedState), - (i.state = p), - Wa(t, r, i, o); - var m = t.memoizedState; - s !== d || p !== m || No.current || ja - ? ('function' == typeof f && (rs(t, n, f, r), (m = t.memoizedState)), - (c = ja || as(t, n, c, r, p, m, l) || !1) - ? (u || - ('function' != typeof i.UNSAFE_componentWillUpdate && - 'function' != typeof i.componentWillUpdate) || - ('function' == typeof i.componentWillUpdate && i.componentWillUpdate(r, m, l), - 'function' == typeof i.UNSAFE_componentWillUpdate && - i.UNSAFE_componentWillUpdate(r, m, l)), - 'function' == typeof i.componentDidUpdate && (t.flags |= 4), - 'function' == typeof i.getSnapshotBeforeUpdate && (t.flags |= 1024)) - : ('function' != typeof i.componentDidUpdate || - (s === e.memoizedProps && p === e.memoizedState) || - (t.flags |= 4), - 'function' != typeof i.getSnapshotBeforeUpdate || - (s === e.memoizedProps && p === e.memoizedState) || - (t.flags |= 1024), - (t.memoizedProps = r), - (t.memoizedState = m)), - (i.props = r), - (i.state = m), - (i.context = l), - (r = c)) - : ('function' != typeof i.componentDidUpdate || - (s === e.memoizedProps && p === e.memoizedState) || - (t.flags |= 4), - 'function' != typeof i.getSnapshotBeforeUpdate || - (s === e.memoizedProps && p === e.memoizedState) || - (t.flags |= 1024), - (r = !1)); - } - return Ts(e, t, n, r, a, o); - } - function Ts(e, t, n, r, o, a) { - Cs(e, t); - var i = !!(128 & t.flags); - if (!r && !i) return o && Fo(t, n, !1), Vs(e, t, a); - (r = t.stateNode), (bs.current = t); - var s = i && 'function' != typeof n.getDerivedStateFromError ? null : r.render(); + if (null !== b && void 0 !== b) return ( - (t.flags |= 1), - null !== e && i - ? ((t.child = xa(t, e.child, null, a)), (t.child = xa(t, null, s, a))) - : ws(e, t, s, a), - (t.memoizedState = r.state), - o && Fo(t, n, !0), - t.child + (a = a()), + (b.current = a), + function () { + b.current = null; + } ); + } + function qi(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return li(4, 4, pi.bind(null, b, a), c); + } + function ri() {} + function si(a, b) { + var c = Uh(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Mh(b, d[1])) return d[0]; + c.memoizedState = [a, b]; + return a; + } + function ti(a, b) { + var c = Uh(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Mh(b, d[1])) return d[0]; + a = a(); + c.memoizedState = [a, b]; + return a; + } + function ui(a, b, c) { + if (0 === (Hh & 21)) + return a.baseState && ((a.baseState = !1), (dh = !0)), (a.memoizedState = c); + He(c, b) || ((c = yc()), (M.lanes |= c), (rh |= c), (a.baseState = !0)); + return b; + } + function vi(a, b) { + var c = C; + C = 0 !== c && 4 > c ? c : 4; + a(!0); + var d = Gh.transition; + Gh.transition = {}; + try { + a(!1), b(); + } finally { + (C = c), (Gh.transition = d); + } + } + function wi() { + return Uh().memoizedState; + } + function xi(a, b, c) { + var d = yi(a); + c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }; + if (zi(a)) Ai(b, c); + else if (((c = hh(a, b, c, d)), null !== c)) { + var e = R(); + gi(c, a, d, e); + Bi(c, b, d); } - function Is(e) { - var t = e.stateNode; - t.pendingContext - ? Do(0, t.pendingContext, t.pendingContext !== t.context) - : t.context && Do(0, t.context, !1), - Qa(e, t.containerInfo); - } - function Ns(e, t, n, r, o) { - return ma(), ha(o), (t.flags |= 256), ws(e, t, n, r), t.child; - } - var Ms, - Ls, - Rs, - As, - Ds = { dehydrated: null, treeContext: null, retryLane: 0 }; - function js(e) { - return { baseLanes: e, cachePool: null, transitions: null }; - } - function zs(e, t, r) { - var o, - a = t.pendingProps, - i = ei.current, - s = !1, - l = !!(128 & t.flags); + } + function ii(a, b, c) { + var d = yi(a), + e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }; + if (zi(a)) Ai(b, e); + else { + var f = a.alternate; if ( - ((o = l) || (o = (null === e || null !== e.memoizedState) && !!(2 & i)), - o ? ((s = !0), (t.flags &= -129)) : (null !== e && null === e.memoizedState) || (i |= 1), - Po(ei, 1 & i), - null === e) + 0 === a.lanes && + (null === f || 0 === f.lanes) && + ((f = b.lastRenderedReducer), null !== f) ) - return ( - ua(t), - null !== (e = t.memoizedState) && null !== (e = e.dehydrated) - ? (1 & t.mode - ? '$!' === e.data - ? (t.lanes = 8) - : (t.lanes = 1073741824) - : (t.lanes = 1), - null) - : ((l = a.children), - (e = a.fallback), - s - ? ((a = t.mode), - (s = t.child), - (l = { mode: 'hidden', children: l }), - 1 & a || null === s - ? (s = jc(l, a, 0, null)) - : ((s.childLanes = 0), (s.pendingProps = l)), - (e = Dc(e, a, r, null)), - (s.return = t), - (e.return = t), - (s.sibling = e), - (t.child = s), - (t.child.memoizedState = js(r)), - (t.memoizedState = Ds), - e) - : Fs(t, l)) - ); - if (null !== (i = e.memoizedState) && null !== (o = i.dehydrated)) - return (function (e, t, r, o, a, i, s) { - if (r) - return 256 & t.flags - ? ((t.flags &= -257), _s(e, t, s, (o = us(Error(n(422)))))) - : null !== t.memoizedState - ? ((t.child = e.child), (t.flags |= 128), null) - : ((i = o.fallback), - (a = t.mode), - (o = jc({ mode: 'visible', children: o.children }, a, 0, null)), - ((i = Dc(i, a, s, null)).flags |= 2), - (o.return = t), - (i.return = t), - (o.sibling = i), - (t.child = o), - 1 & t.mode && xa(t, e.child, null, s), - (t.child.memoizedState = js(s)), - (t.memoizedState = Ds), - i); - if (!(1 & t.mode)) return _s(e, t, s, null); - if ('$!' === a.data) { - if ((o = a.nextSibling && a.nextSibling.dataset)) var l = o.dgst; - return (o = l), _s(e, t, s, (o = us((i = Error(n(419))), o, void 0))); - } - if (((l = !!(s & e.childLanes)), ys || l)) { - if (null !== (o = Il)) { - switch (s & -s) { - case 4: - a = 2; - break; - case 16: - a = 8; - break; - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - a = 32; - break; - case 536870912: - a = 268435456; - break; - default: - a = 0; - } - 0 !== (a = a & (o.suspendedLanes | s) ? 0 : a) && - a !== i.retryLane && - ((i.retryLane = a), Da(e, a), nc(o, e, a, -1)); - } - return hc(), _s(e, t, s, (o = us(Error(n(421))))); + try { + var g = b.lastRenderedState, + h = f(g, c); + e.hasEagerState = !0; + e.eagerState = h; + if (He(h, g)) { + var k = b.interleaved; + null === k ? ((e.next = e), gh(b)) : ((e.next = k.next), (k.next = e)); + b.interleaved = e; + return; } - return '$?' === a.data - ? ((t.flags |= 128), - (t.child = e.child), - (t = Pc.bind(null, e)), - (a._reactRetry = t), - null) - : ((e = i.treeContext), - (oa = co(a.nextSibling)), - (ra = t), - (aa = !0), - (ia = null), - null !== e && - ((Ko[Go++] = Xo), - (Ko[Go++] = Jo), - (Ko[Go++] = Qo), - (Xo = e.id), - (Jo = e.overflow), - (Qo = t)), - ((t = Fs(t, o.children)).flags |= 4096), - t); - })(e, t, l, a, o, i, r); - if (s) { - (s = a.fallback), (l = t.mode), (o = (i = e.child).sibling); - var c = { mode: 'hidden', children: a.children }; - return ( - 1 & l || t.child === i - ? ((a = Rc(i, c)).subtreeFlags = 14680064 & i.subtreeFlags) - : (((a = t.child).childLanes = 0), (a.pendingProps = c), (t.deletions = null)), - null !== o ? (s = Rc(o, s)) : ((s = Dc(s, l, r, null)).flags |= 2), - (s.return = t), - (a.return = t), - (a.sibling = s), - (t.child = a), - (a = s), - (s = t.child), - (l = - null === (l = e.child.memoizedState) - ? js(r) - : { baseLanes: l.baseLanes | r, cachePool: null, transitions: l.transitions }), - (s.memoizedState = l), - (s.childLanes = e.childLanes & ~r), - (t.memoizedState = Ds), - a - ); - } - return ( - (e = (s = e.child).sibling), - (a = Rc(s, { mode: 'visible', children: a.children })), - !(1 & t.mode) && (a.lanes = r), - (a.return = t), - (a.sibling = null), - null !== e && - (null === (r = t.deletions) ? ((t.deletions = [e]), (t.flags |= 16)) : r.push(e)), - (t.child = a), - (t.memoizedState = null), - a - ); + } catch (l) { + } finally { + } + c = hh(a, b, e, d); + null !== c && ((e = R()), gi(c, a, d, e), Bi(c, b, d)); } - function Fs(e, t) { - return ( - ((t = jc({ mode: 'visible', children: t }, e.mode, 0, null)).return = e), (e.child = t) - ); + } + function zi(a) { + var b = a.alternate; + return a === M || (null !== b && b === M); + } + function Ai(a, b) { + Jh = Ih = !0; + var c = a.pending; + null === c ? (b.next = b) : ((b.next = c.next), (c.next = b)); + a.pending = b; + } + function Bi(a, b, c) { + if (0 !== (c & 4194240)) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } + } + var Rh = { + readContext: eh, + useCallback: P, + useContext: P, + useEffect: P, + useImperativeHandle: P, + useInsertionEffect: P, + useLayoutEffect: P, + useMemo: P, + useReducer: P, + useRef: P, + useState: P, + useDebugValue: P, + useDeferredValue: P, + useTransition: P, + useMutableSource: P, + useSyncExternalStore: P, + useId: P, + unstable_isNewReconciler: !1, + }, + Oh = { + readContext: eh, + useCallback: function (a, b) { + Th().memoizedState = [a, void 0 === b ? null : b]; + return a; + }, + useContext: eh, + useEffect: mi, + useImperativeHandle: function (a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ki(4194308, 4, pi.bind(null, b, a), c); + }, + useLayoutEffect: function (a, b) { + return ki(4194308, 4, a, b); + }, + useInsertionEffect: function (a, b) { + return ki(4, 2, a, b); + }, + useMemo: function (a, b) { + var c = Th(); + b = void 0 === b ? null : b; + a = a(); + c.memoizedState = [a, b]; + return a; + }, + useReducer: function (a, b, c) { + var d = Th(); + b = void 0 !== c ? c(b) : b; + d.memoizedState = d.baseState = b; + a = { + pending: null, + interleaved: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: a, + lastRenderedState: b, + }; + d.queue = a; + a = a.dispatch = xi.bind(null, M, a); + return [d.memoizedState, a]; + }, + useRef: function (a) { + var b = Th(); + a = { current: a }; + return (b.memoizedState = a); + }, + useState: hi, + useDebugValue: ri, + useDeferredValue: function (a) { + return (Th().memoizedState = a); + }, + useTransition: function () { + var a = hi(!1), + b = a[0]; + a = vi.bind(null, a[1]); + Th().memoizedState = a; + return [b, a]; + }, + useMutableSource: function () {}, + useSyncExternalStore: function (a, b, c) { + var d = M, + e = Th(); + if (I) { + if (void 0 === c) throw Error(p(407)); + c = c(); + } else { + c = b(); + if (null === Q) throw Error(p(349)); + 0 !== (Hh & 30) || di(d, b, c); + } + e.memoizedState = c; + var f = { value: c, getSnapshot: b }; + e.queue = f; + mi(ai.bind(null, d, f, a), [a]); + d.flags |= 2048; + bi(9, ci.bind(null, d, f, c, b), void 0, null); + return c; + }, + useId: function () { + var a = Th(), + b = Q.identifierPrefix; + if (I) { + var c = sg; + var d = rg; + c = (d & ~(1 << (32 - oc(d) - 1))).toString(32) + c; + b = ':' + b + 'R' + c; + c = Kh++; + 0 < c && (b += 'H' + c.toString(32)); + b += ':'; + } else (c = Lh++), (b = ':' + b + 'r' + c.toString(32) + ':'); + return (a.memoizedState = b); + }, + unstable_isNewReconciler: !1, + }, + Ph = { + readContext: eh, + useCallback: si, + useContext: eh, + useEffect: $h, + useImperativeHandle: qi, + useInsertionEffect: ni, + useLayoutEffect: oi, + useMemo: ti, + useReducer: Wh, + useRef: ji, + useState: function () { + return Wh(Vh); + }, + useDebugValue: ri, + useDeferredValue: function (a) { + var b = Uh(); + return ui(b, N.memoizedState, a); + }, + useTransition: function () { + var a = Wh(Vh)[0], + b = Uh().memoizedState; + return [a, b]; + }, + useMutableSource: Yh, + useSyncExternalStore: Zh, + useId: wi, + unstable_isNewReconciler: !1, + }, + Qh = { + readContext: eh, + useCallback: si, + useContext: eh, + useEffect: $h, + useImperativeHandle: qi, + useInsertionEffect: ni, + useLayoutEffect: oi, + useMemo: ti, + useReducer: Xh, + useRef: ji, + useState: function () { + return Xh(Vh); + }, + useDebugValue: ri, + useDeferredValue: function (a) { + var b = Uh(); + return null === N ? (b.memoizedState = a) : ui(b, N.memoizedState, a); + }, + useTransition: function () { + var a = Xh(Vh)[0], + b = Uh().memoizedState; + return [a, b]; + }, + useMutableSource: Yh, + useSyncExternalStore: Zh, + useId: wi, + unstable_isNewReconciler: !1, + }; + function Ci(a, b) { + if (a && a.defaultProps) { + b = A({}, b); + a = a.defaultProps; + for (var c in a) void 0 === b[c] && (b[c] = a[c]); + return b; + } + return b; + } + function Di(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : A({}, b, c); + a.memoizedState = c; + 0 === a.lanes && (a.updateQueue.baseState = c); + } + var Ei = { + isMounted: function (a) { + return (a = a._reactInternals) ? Vb(a) === a : !1; + }, + enqueueSetState: function (a, b, c) { + a = a._reactInternals; + var d = R(), + e = yi(a), + f = mh(d, e); + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = nh(a, f, e); + null !== b && (gi(b, a, e, d), oh(b, a, e)); + }, + enqueueReplaceState: function (a, b, c) { + a = a._reactInternals; + var d = R(), + e = yi(a), + f = mh(d, e); + f.tag = 1; + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = nh(a, f, e); + null !== b && (gi(b, a, e, d), oh(b, a, e)); + }, + enqueueForceUpdate: function (a, b) { + a = a._reactInternals; + var c = R(), + d = yi(a), + e = mh(c, d); + e.tag = 2; + void 0 !== b && null !== b && (e.callback = b); + b = nh(a, e, d); + null !== b && (gi(b, a, d, c), oh(b, a, d)); + }, + }; + function Fi(a, b, c, d, e, f, g) { + a = a.stateNode; + return 'function' === typeof a.shouldComponentUpdate + ? a.shouldComponentUpdate(d, f, g) + : b.prototype && b.prototype.isPureReactComponent + ? !Ie(c, d) || !Ie(e, f) + : !0; + } + function Gi(a, b, c) { + var d = !1, + e = Vf; + var f = b.contextType; + 'object' === typeof f && null !== f + ? (f = eh(f)) + : ((e = Zf(b) ? Xf : H.current), + (d = b.contextTypes), + (f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf)); + b = new b(c, f); + a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; + b.updater = Ei; + a.stateNode = b; + b._reactInternals = a; + d && + ((a = a.stateNode), + (a.__reactInternalMemoizedUnmaskedChildContext = e), + (a.__reactInternalMemoizedMaskedChildContext = f)); + return b; + } + function Hi(a, b, c, d) { + a = b.state; + 'function' === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); + 'function' === typeof b.UNSAFE_componentWillReceiveProps && + b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && Ei.enqueueReplaceState(b, b.state, null); + } + function Ii(a, b, c, d) { + var e = a.stateNode; + e.props = c; + e.state = a.memoizedState; + e.refs = {}; + kh(a); + var f = b.contextType; + 'object' === typeof f && null !== f + ? (e.context = eh(f)) + : ((f = Zf(b) ? Xf : H.current), (e.context = Yf(a, f))); + e.state = a.memoizedState; + f = b.getDerivedStateFromProps; + 'function' === typeof f && (Di(a, b, f, c), (e.state = a.memoizedState)); + 'function' === typeof b.getDerivedStateFromProps || + 'function' === typeof e.getSnapshotBeforeUpdate || + ('function' !== typeof e.UNSAFE_componentWillMount && + 'function' !== typeof e.componentWillMount) || + ((b = e.state), + 'function' === typeof e.componentWillMount && e.componentWillMount(), + 'function' === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), + b !== e.state && Ei.enqueueReplaceState(e, e.state, null), + qh(a, c, e, d), + (e.state = a.memoizedState)); + 'function' === typeof e.componentDidMount && (a.flags |= 4194308); + } + function Ji(a, b) { + try { + var c = '', + d = b; + do (c += Pa(d)), (d = d.return); + while (d); + var e = c; + } catch (f) { + e = '\nError generating stack: ' + f.message + '\n' + f.stack; + } + return { value: a, source: b, stack: e, digest: null }; + } + function Ki(a, b, c) { + return { value: a, source: null, stack: null != c ? c : null, digest: null != b ? b : null }; + } + function Li(a, b) { + try { + console.error(b.value); + } catch (c) { + setTimeout(function () { + throw c; + }); + } + } + var Mi = 'function' === typeof WeakMap ? WeakMap : Map; + function Ni(a, b, c) { + c = mh(-1, c); + c.tag = 3; + c.payload = { element: null }; + var d = b.value; + c.callback = function () { + Oi || ((Oi = !0), (Pi = d)); + Li(a, b); + }; + return c; + } + function Qi(a, b, c) { + c = mh(-1, c); + c.tag = 3; + var d = a.type.getDerivedStateFromError; + if ('function' === typeof d) { + var e = b.value; + c.payload = function () { + return d(e); + }; + c.callback = function () { + Li(a, b); + }; } - function _s(e, t, n, r) { + var f = a.stateNode; + null !== f && + 'function' === typeof f.componentDidCatch && + (c.callback = function () { + Li(a, b); + 'function' !== typeof d && (null === Ri ? (Ri = new Set([this])) : Ri.add(this)); + var c = b.stack; + this.componentDidCatch(b.value, { componentStack: null !== c ? c : '' }); + }); + return c; + } + function Si(a, b, c) { + var d = a.pingCache; + if (null === d) { + d = a.pingCache = new Mi(); + var e = new Set(); + d.set(b, e); + } else (e = d.get(b)), void 0 === e && ((e = new Set()), d.set(b, e)); + e.has(c) || (e.add(c), (a = Ti.bind(null, a, b, c)), b.then(a, a)); + } + function Ui(a) { + do { + var b; + if ((b = 13 === a.tag)) + (b = a.memoizedState), (b = null !== b ? (null !== b.dehydrated ? !0 : !1) : !0); + if (b) return a; + a = a.return; + } while (null !== a); + return null; + } + function Vi(a, b, c, d, e) { + if (0 === (a.mode & 1)) return ( - null !== r && ha(r), - xa(t, e.child, null, n), - ((e = Fs(t, t.pendingProps.children)).flags |= 2), - (t.memoizedState = null), - e + a === b + ? (a.flags |= 65536) + : ((a.flags |= 128), + (c.flags |= 131072), + (c.flags &= -52805), + 1 === c.tag && + (null === c.alternate ? (c.tag = 17) : ((b = mh(-1, 1)), (b.tag = 2), nh(c, b, 1))), + (c.lanes |= 1)), + a ); - } - function Hs(e, t, n) { - e.lanes |= t; - var r = e.alternate; - null !== r && (r.lanes |= t), Ia(e.return, t, n); - } - function $s(e, t, n, r, o) { - var a = e.memoizedState; - null === a - ? (e.memoizedState = { - isBackwards: t, - rendering: null, - renderingStartTime: 0, - last: r, - tail: n, - tailMode: o, - }) - : ((a.isBackwards = t), - (a.rendering = null), - (a.renderingStartTime = 0), - (a.last = r), - (a.tail = n), - (a.tailMode = o)); - } - function Bs(e, t, n) { - var r = t.pendingProps, - o = r.revealOrder, - a = r.tail; - if ((ws(e, t, r.children, n), 2 & (r = ei.current))) (r = (1 & r) | 2), (t.flags |= 128); + a.flags |= 65536; + a.lanes = e; + return a; + } + var Wi = ua.ReactCurrentOwner, + dh = !1; + function Xi(a, b, c, d) { + b.child = null === a ? Vg(b, null, c, d) : Ug(b, a.child, c, d); + } + function Yi(a, b, c, d, e) { + c = c.render; + var f = b.ref; + ch(b, e); + d = Nh(a, b, c, d, f, e); + c = Sh(); + if (null !== a && !dh) + return (b.updateQueue = a.updateQueue), (b.flags &= -2053), (a.lanes &= ~e), Zi(a, b, e); + I && c && vg(b); + b.flags |= 1; + Xi(a, b, d, e); + return b.child; + } + function $i(a, b, c, d, e) { + if (null === a) { + var f = c.type; + if ( + 'function' === typeof f && + !aj(f) && + void 0 === f.defaultProps && + null === c.compare && + void 0 === c.defaultProps + ) + return (b.tag = 15), (b.type = f), bj(a, b, f, d, e); + a = Rg(c.type, null, d, b, b.mode, e); + a.ref = b.ref; + a.return = b; + return (b.child = a); + } + f = a.child; + if (0 === (a.lanes & e)) { + var g = f.memoizedProps; + c = c.compare; + c = null !== c ? c : Ie; + if (c(g, d) && a.ref === b.ref) return Zi(a, b, e); + } + b.flags |= 1; + a = Pg(f, d); + a.ref = b.ref; + a.return = b; + return (b.child = a); + } + function bj(a, b, c, d, e) { + if (null !== a) { + var f = a.memoizedProps; + if (Ie(f, d) && a.ref === b.ref) + if (((dh = !1), (b.pendingProps = d = f), 0 !== (a.lanes & e))) + 0 !== (a.flags & 131072) && (dh = !0); + else return (b.lanes = a.lanes), Zi(a, b, e); + } + return cj(a, b, c, d, e); + } + function dj(a, b, c) { + var d = b.pendingProps, + e = d.children, + f = null !== a ? a.memoizedState : null; + if ('hidden' === d.mode) + if (0 === (b.mode & 1)) + (b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), + G(ej, fj), + (fj |= c); else { - if (null !== e && 128 & e.flags) - e: for (e = t.child; null !== e; ) { - if (13 === e.tag) null !== e.memoizedState && Hs(e, n, t); - else if (19 === e.tag) Hs(e, n, t); - else if (null !== e.child) { - (e.child.return = e), (e = e.child); - continue; - } - if (e === t) break e; - for (; null === e.sibling; ) { - if (null === e.return || e.return === t) break e; - e = e.return; - } - (e.sibling.return = e.return), (e = e.sibling); - } - r &= 1; - } - if ((Po(ei, r), 1 & t.mode)) - switch (o) { - case 'forwards': - for (n = t.child, o = null; null !== n; ) - null !== (e = n.alternate) && null === ti(e) && (o = n), (n = n.sibling); - null === (n = o) - ? ((o = t.child), (t.child = null)) - : ((o = n.sibling), (n.sibling = null)), - $s(t, !1, o, n, a); + if (0 === (c & 1073741824)) + return ( + (a = null !== f ? f.baseLanes | c : c), + (b.lanes = b.childLanes = 1073741824), + (b.memoizedState = { baseLanes: a, cachePool: null, transitions: null }), + (b.updateQueue = null), + G(ej, fj), + (fj |= a), + null + ); + b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }; + d = null !== f ? f.baseLanes : c; + G(ej, fj); + fj |= d; + } + else + null !== f ? ((d = f.baseLanes | c), (b.memoizedState = null)) : (d = c), + G(ej, fj), + (fj |= d); + Xi(a, b, e, c); + return b.child; + } + function gj(a, b) { + var c = b.ref; + if ((null === a && null !== c) || (null !== a && a.ref !== c)) + (b.flags |= 512), (b.flags |= 2097152); + } + function cj(a, b, c, d, e) { + var f = Zf(c) ? Xf : H.current; + f = Yf(b, f); + ch(b, e); + c = Nh(a, b, c, d, f, e); + d = Sh(); + if (null !== a && !dh) + return (b.updateQueue = a.updateQueue), (b.flags &= -2053), (a.lanes &= ~e), Zi(a, b, e); + I && d && vg(b); + b.flags |= 1; + Xi(a, b, c, e); + return b.child; + } + function hj(a, b, c, d, e) { + if (Zf(c)) { + var f = !0; + cg(b); + } else f = !1; + ch(b, e); + if (null === b.stateNode) ij(a, b), Gi(b, c, d), Ii(b, c, d, e), (d = !0); + else if (null === a) { + var g = b.stateNode, + h = b.memoizedProps; + g.props = h; + var k = g.context, + l = c.contextType; + 'object' === typeof l && null !== l + ? (l = eh(l)) + : ((l = Zf(c) ? Xf : H.current), (l = Yf(b, l))); + var m = c.getDerivedStateFromProps, + q = 'function' === typeof m || 'function' === typeof g.getSnapshotBeforeUpdate; + q || + ('function' !== typeof g.UNSAFE_componentWillReceiveProps && + 'function' !== typeof g.componentWillReceiveProps) || + ((h !== d || k !== l) && Hi(b, g, d, l)); + jh = !1; + var r = b.memoizedState; + g.state = r; + qh(b, d, g, e); + k = b.memoizedState; + h !== d || r !== k || Wf.current || jh + ? ('function' === typeof m && (Di(b, c, m, d), (k = b.memoizedState)), + (h = jh || Fi(b, c, h, d, r, k, l)) + ? (q || + ('function' !== typeof g.UNSAFE_componentWillMount && + 'function' !== typeof g.componentWillMount) || + ('function' === typeof g.componentWillMount && g.componentWillMount(), + 'function' === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), + 'function' === typeof g.componentDidMount && (b.flags |= 4194308)) + : ('function' === typeof g.componentDidMount && (b.flags |= 4194308), + (b.memoizedProps = d), + (b.memoizedState = k)), + (g.props = d), + (g.state = k), + (g.context = l), + (d = h)) + : ('function' === typeof g.componentDidMount && (b.flags |= 4194308), (d = !1)); + } else { + g = b.stateNode; + lh(a, b); + h = b.memoizedProps; + l = b.type === b.elementType ? h : Ci(b.type, h); + g.props = l; + q = b.pendingProps; + r = g.context; + k = c.contextType; + 'object' === typeof k && null !== k + ? (k = eh(k)) + : ((k = Zf(c) ? Xf : H.current), (k = Yf(b, k))); + var y = c.getDerivedStateFromProps; + (m = 'function' === typeof y || 'function' === typeof g.getSnapshotBeforeUpdate) || + ('function' !== typeof g.UNSAFE_componentWillReceiveProps && + 'function' !== typeof g.componentWillReceiveProps) || + ((h !== q || r !== k) && Hi(b, g, d, k)); + jh = !1; + r = b.memoizedState; + g.state = r; + qh(b, d, g, e); + var n = b.memoizedState; + h !== q || r !== n || Wf.current || jh + ? ('function' === typeof y && (Di(b, c, y, d), (n = b.memoizedState)), + (l = jh || Fi(b, c, l, d, r, n, k) || !1) + ? (m || + ('function' !== typeof g.UNSAFE_componentWillUpdate && + 'function' !== typeof g.componentWillUpdate) || + ('function' === typeof g.componentWillUpdate && g.componentWillUpdate(d, n, k), + 'function' === typeof g.UNSAFE_componentWillUpdate && + g.UNSAFE_componentWillUpdate(d, n, k)), + 'function' === typeof g.componentDidUpdate && (b.flags |= 4), + 'function' === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) + : ('function' !== typeof g.componentDidUpdate || + (h === a.memoizedProps && r === a.memoizedState) || + (b.flags |= 4), + 'function' !== typeof g.getSnapshotBeforeUpdate || + (h === a.memoizedProps && r === a.memoizedState) || + (b.flags |= 1024), + (b.memoizedProps = d), + (b.memoizedState = n)), + (g.props = d), + (g.state = n), + (g.context = k), + (d = l)) + : ('function' !== typeof g.componentDidUpdate || + (h === a.memoizedProps && r === a.memoizedState) || + (b.flags |= 4), + 'function' !== typeof g.getSnapshotBeforeUpdate || + (h === a.memoizedProps && r === a.memoizedState) || + (b.flags |= 1024), + (d = !1)); + } + return jj(a, b, c, d, f, e); + } + function jj(a, b, c, d, e, f) { + gj(a, b); + var g = 0 !== (b.flags & 128); + if (!d && !g) return e && dg(b, c, !1), Zi(a, b, f); + d = b.stateNode; + Wi.current = b; + var h = g && 'function' !== typeof c.getDerivedStateFromError ? null : d.render(); + b.flags |= 1; + null !== a && g + ? ((b.child = Ug(b, a.child, null, f)), (b.child = Ug(b, null, h, f))) + : Xi(a, b, h, f); + b.memoizedState = d.state; + e && dg(b, c, !0); + return b.child; + } + function kj(a) { + var b = a.stateNode; + b.pendingContext + ? ag(a, b.pendingContext, b.pendingContext !== b.context) + : b.context && ag(a, b.context, !1); + yh(a, b.containerInfo); + } + function lj(a, b, c, d, e) { + Ig(); + Jg(e); + b.flags |= 256; + Xi(a, b, c, d); + return b.child; + } + var mj = { dehydrated: null, treeContext: null, retryLane: 0 }; + function nj(a) { + return { baseLanes: a, cachePool: null, transitions: null }; + } + function oj(a, b, c) { + var d = b.pendingProps, + e = L.current, + f = !1, + g = 0 !== (b.flags & 128), + h; + (h = g) || (h = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2)); + if (h) (f = !0), (b.flags &= -129); + else if (null === a || null !== a.memoizedState) e |= 1; + G(L, e & 1); + if (null === a) { + Eg(b); + a = b.memoizedState; + if (null !== a && ((a = a.dehydrated), null !== a)) + return ( + 0 === (b.mode & 1) + ? (b.lanes = 1) + : '$!' === a.data + ? (b.lanes = 8) + : (b.lanes = 1073741824), + null + ); + g = d.children; + a = d.fallback; + return f + ? ((d = b.mode), + (f = b.child), + (g = { mode: 'hidden', children: g }), + 0 === (d & 1) && null !== f + ? ((f.childLanes = 0), (f.pendingProps = g)) + : (f = pj(g, d, 0, null)), + (a = Tg(a, d, c, null)), + (f.return = b), + (a.return = b), + (f.sibling = a), + (b.child = f), + (b.child.memoizedState = nj(c)), + (b.memoizedState = mj), + a) + : qj(b, g); + } + e = a.memoizedState; + if (null !== e && ((h = e.dehydrated), null !== h)) return rj(a, b, g, d, h, e, c); + if (f) { + f = d.fallback; + g = b.mode; + e = a.child; + h = e.sibling; + var k = { mode: 'hidden', children: d.children }; + 0 === (g & 1) && b.child !== e + ? ((d = b.child), (d.childLanes = 0), (d.pendingProps = k), (b.deletions = null)) + : ((d = Pg(e, k)), (d.subtreeFlags = e.subtreeFlags & 14680064)); + null !== h ? (f = Pg(h, f)) : ((f = Tg(f, g, c, null)), (f.flags |= 2)); + f.return = b; + d.return = b; + d.sibling = f; + b.child = d; + d = f; + f = b.child; + g = a.child.memoizedState; + g = + null === g + ? nj(c) + : { baseLanes: g.baseLanes | c, cachePool: null, transitions: g.transitions }; + f.memoizedState = g; + f.childLanes = a.childLanes & ~c; + b.memoizedState = mj; + return d; + } + f = a.child; + a = f.sibling; + d = Pg(f, { mode: 'visible', children: d.children }); + 0 === (b.mode & 1) && (d.lanes = c); + d.return = b; + d.sibling = null; + null !== a && + ((c = b.deletions), null === c ? ((b.deletions = [a]), (b.flags |= 16)) : c.push(a)); + b.child = d; + b.memoizedState = null; + return d; + } + function qj(a, b) { + b = pj({ mode: 'visible', children: b }, a.mode, 0, null); + b.return = a; + return (a.child = b); + } + function sj(a, b, c, d) { + null !== d && Jg(d); + Ug(b, a.child, null, c); + a = qj(b, b.pendingProps.children); + a.flags |= 2; + b.memoizedState = null; + return a; + } + function rj(a, b, c, d, e, f, g) { + if (c) { + if (b.flags & 256) return (b.flags &= -257), (d = Ki(Error(p(422)))), sj(a, b, g, d); + if (null !== b.memoizedState) return (b.child = a.child), (b.flags |= 128), null; + f = d.fallback; + e = b.mode; + d = pj({ mode: 'visible', children: d.children }, e, 0, null); + f = Tg(f, e, g, null); + f.flags |= 2; + d.return = b; + f.return = b; + d.sibling = f; + b.child = d; + 0 !== (b.mode & 1) && Ug(b, a.child, null, g); + b.child.memoizedState = nj(g); + b.memoizedState = mj; + return f; + } + if (0 === (b.mode & 1)) return sj(a, b, g, null); + if ('$!' === e.data) { + d = e.nextSibling && e.nextSibling.dataset; + if (d) var h = d.dgst; + d = h; + f = Error(p(419)); + d = Ki(f, d, void 0); + return sj(a, b, g, d); + } + h = 0 !== (g & a.childLanes); + if (dh || h) { + d = Q; + if (null !== d) { + switch (g & -g) { + case 4: + e = 2; break; - case 'backwards': - for (n = null, o = t.child, t.child = null; null !== o; ) { - if (null !== (e = o.alternate) && null === ti(e)) { - t.child = o; - break; - } - (e = o.sibling), (o.sibling = n), (n = o), (o = e); - } - $s(t, !0, n, null, a); + case 16: + e = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + e = 32; break; - case 'together': - $s(t, !1, null, null, void 0); + case 536870912: + e = 268435456; break; default: - t.memoizedState = null; + e = 0; } - else t.memoizedState = null; - return t.child; + e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e; + 0 !== e && e !== f.retryLane && ((f.retryLane = e), ih(a, e), gi(d, a, e, -1)); + } + tj(); + d = Ki(Error(p(421))); + return sj(a, b, g, d); } - function Ws(e, t) { - !(1 & t.mode) && null !== e && ((e.alternate = null), (t.alternate = null), (t.flags |= 2)); + if ('$?' === e.data) + return ( + (b.flags |= 128), (b.child = a.child), (b = uj.bind(null, a)), (e._reactRetry = b), null + ); + a = f.treeContext; + yg = Lf(e.nextSibling); + xg = b; + I = !0; + zg = null; + null !== a && + ((og[pg++] = rg), (og[pg++] = sg), (og[pg++] = qg), (rg = a.id), (sg = a.overflow), (qg = b)); + b = qj(b, d.children); + b.flags |= 4096; + return b; + } + function vj(a, b, c) { + a.lanes |= b; + var d = a.alternate; + null !== d && (d.lanes |= b); + bh(a.return, b, c); + } + function wj(a, b, c, d, e) { + var f = a.memoizedState; + null === f + ? (a.memoizedState = { + isBackwards: b, + rendering: null, + renderingStartTime: 0, + last: d, + tail: c, + tailMode: e, + }) + : ((f.isBackwards = b), + (f.rendering = null), + (f.renderingStartTime = 0), + (f.last = d), + (f.tail = c), + (f.tailMode = e)); + } + function xj(a, b, c) { + var d = b.pendingProps, + e = d.revealOrder, + f = d.tail; + Xi(a, b, d.children, c); + d = L.current; + if (0 !== (d & 2)) (d = (d & 1) | 2), (b.flags |= 128); + else { + if (null !== a && 0 !== (a.flags & 128)) + a: for (a = b.child; null !== a; ) { + if (13 === a.tag) null !== a.memoizedState && vj(a, c, b); + else if (19 === a.tag) vj(a, c, b); + else if (null !== a.child) { + a.child.return = a; + a = a.child; + continue; + } + if (a === b) break a; + for (; null === a.sibling; ) { + if (null === a.return || a.return === b) break a; + a = a.return; + } + a.sibling.return = a.return; + a = a.sibling; + } + d &= 1; } - function Vs(e, t, r) { - if ((null !== e && (t.dependencies = e.dependencies), (jl |= t.lanes), !(r & t.childLanes))) - return null; - if (null !== e && t.child !== e.child) throw Error(n(153)); - if (null !== t.child) { - for (r = Rc((e = t.child), e.pendingProps), t.child = r, r.return = t; null !== e.sibling; ) - (e = e.sibling), ((r = r.sibling = Rc(e, e.pendingProps)).return = t); - r.sibling = null; - } - return t.child; - } - function Us(e, t) { - if (!aa) - switch (e.tailMode) { - case 'hidden': - t = e.tail; - for (var n = null; null !== t; ) null !== t.alternate && (n = t), (t = t.sibling); - null === n ? (e.tail = null) : (n.sibling = null); - break; - case 'collapsed': - n = e.tail; - for (var r = null; null !== n; ) null !== n.alternate && (r = n), (n = n.sibling); - null === r - ? t || null === e.tail - ? (e.tail = null) - : (e.tail.sibling = null) - : (r.sibling = null); - } - } - function qs(e) { - var t = null !== e.alternate && e.alternate.child === e.child, - n = 0, - r = 0; - if (t) - for (var o = e.child; null !== o; ) - (n |= o.lanes | o.childLanes), - (r |= 14680064 & o.subtreeFlags), - (r |= 14680064 & o.flags), - (o.return = e), - (o = o.sibling); - else - for (o = e.child; null !== o; ) - (n |= o.lanes | o.childLanes), - (r |= o.subtreeFlags), - (r |= o.flags), - (o.return = e), - (o = o.sibling); - return (e.subtreeFlags |= r), (e.childLanes = n), t; - } - function Ys(e, t, r) { - var a = t.pendingProps; - switch ((na(t), t.tag)) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return qs(t), null; - case 1: - case 17: - return Ro(t.type) && Ao(), qs(t), null; - case 3: - return ( - (a = t.stateNode), - Xa(), - Oo(No), - Oo(Io), - ri(), - a.pendingContext && ((a.context = a.pendingContext), (a.pendingContext = null)), - (null !== e && null !== e.child) || - (pa(t) - ? (t.flags |= 4) - : null === e || - (e.memoizedState.isDehydrated && !(256 & t.flags)) || - ((t.flags |= 1024), null !== ia && (ic(ia), (ia = null)))), - Ls(e, t), - qs(t), - null - ); - case 5: - Za(t); - var i = Ga(Ka.current); - if (((r = t.type), null !== e && null != t.stateNode)) - Rs(e, t, r, a, i), e.ref !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); - else { - if (!a) { - if (null === t.stateNode) throw Error(n(166)); - return qs(t), null; + G(L, d); + if (0 === (b.mode & 1)) b.memoizedState = null; + else + switch (e) { + case 'forwards': + c = b.child; + for (e = null; null !== c; ) + (a = c.alternate), null !== a && null === Ch(a) && (e = c), (c = c.sibling); + c = e; + null === c ? ((e = b.child), (b.child = null)) : ((e = c.sibling), (c.sibling = null)); + wj(b, !1, e, c, f); + break; + case 'backwards': + c = null; + e = b.child; + for (b.child = null; null !== e; ) { + a = e.alternate; + if (null !== a && null === Ch(a)) { + b.child = e; + break; + } + a = e.sibling; + e.sibling = c; + c = e; + e = a; + } + wj(b, !0, c, null, f); + break; + case 'together': + wj(b, !1, null, null, void 0); + break; + default: + b.memoizedState = null; + } + return b.child; + } + function ij(a, b) { + 0 === (b.mode & 1) && + null !== a && + ((a.alternate = null), (b.alternate = null), (b.flags |= 2)); + } + function Zi(a, b, c) { + null !== a && (b.dependencies = a.dependencies); + rh |= b.lanes; + if (0 === (c & b.childLanes)) return null; + if (null !== a && b.child !== a.child) throw Error(p(153)); + if (null !== b.child) { + a = b.child; + c = Pg(a, a.pendingProps); + b.child = c; + for (c.return = b; null !== a.sibling; ) + (a = a.sibling), (c = c.sibling = Pg(a, a.pendingProps)), (c.return = b); + c.sibling = null; + } + return b.child; + } + function yj(a, b, c) { + switch (b.tag) { + case 3: + kj(b); + Ig(); + break; + case 5: + Ah(b); + break; + case 1: + Zf(b.type) && cg(b); + break; + case 4: + yh(b, b.stateNode.containerInfo); + break; + case 10: + var d = b.type._context, + e = b.memoizedProps.value; + G(Wg, d._currentValue); + d._currentValue = e; + break; + case 13: + d = b.memoizedState; + if (null !== d) { + if (null !== d.dehydrated) return G(L, L.current & 1), (b.flags |= 128), null; + if (0 !== (c & b.child.childLanes)) return oj(a, b, c); + G(L, L.current & 1); + a = Zi(a, b, c); + return null !== a ? a.sibling : null; + } + G(L, L.current & 1); + break; + case 19: + d = 0 !== (c & b.childLanes); + if (0 !== (a.flags & 128)) { + if (d) return xj(a, b, c); + b.flags |= 128; + } + e = b.memoizedState; + null !== e && ((e.rendering = null), (e.tail = null), (e.lastEffect = null)); + G(L, L.current); + if (d) break; + else return null; + case 22: + case 23: + return (b.lanes = 0), dj(a, b, c); + } + return Zi(a, b, c); + } + var zj, Aj, Bj, Cj; + zj = function (a, b) { + for (var c = b.child; null !== c; ) { + if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode); + else if (4 !== c.tag && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === b) break; + for (; null === c.sibling; ) { + if (null === c.return || c.return === b) return; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } + }; + Aj = function () {}; + Bj = function (a, b, c, d) { + var e = a.memoizedProps; + if (e !== d) { + a = b.stateNode; + xh(uh.current); + var f = null; + switch (c) { + case 'input': + e = Ya(a, e); + d = Ya(a, d); + f = []; + break; + case 'select': + e = A({}, e, { value: void 0 }); + d = A({}, d, { value: void 0 }); + f = []; + break; + case 'textarea': + e = gb(a, e); + d = gb(a, d); + f = []; + break; + default: + 'function' !== typeof e.onClick && 'function' === typeof d.onClick && (a.onclick = Bf); + } + ub(c, d); + var g; + c = null; + for (l in e) + if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) + if ('style' === l) { + var h = e[l]; + for (g in h) h.hasOwnProperty(g) && (c || (c = {}), (c[g] = '')); + } else + 'dangerouslySetInnerHTML' !== l && + 'children' !== l && + 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + 'autoFocus' !== l && + (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null)); + for (l in d) { + var k = d[l]; + h = null != e ? e[l] : void 0; + if (d.hasOwnProperty(l) && k !== h && (null != k || null != h)) + if ('style' === l) + if (h) { + for (g in h) + !h.hasOwnProperty(g) || (k && k.hasOwnProperty(g)) || (c || (c = {}), (c[g] = '')); + for (g in k) k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), (c[g] = k[g])); + } else c || (f || (f = []), f.push(l, c)), (c = k); + else + 'dangerouslySetInnerHTML' === l + ? ((k = k ? k.__html : void 0), + (h = h ? h.__html : void 0), + null != k && h !== k && (f = f || []).push(l, k)) + : 'children' === l + ? ('string' !== typeof k && 'number' !== typeof k) || (f = f || []).push(l, '' + k) + : 'suppressContentEditableWarning' !== l && + 'suppressHydrationWarning' !== l && + (ea.hasOwnProperty(l) + ? (null != k && 'onScroll' === l && D('scroll', a), f || h === k || (f = [])) + : (f = f || []).push(l, k)); + } + c && (f = f || []).push('style', c); + var l = f; + if ((b.updateQueue = l)) b.flags |= 4; + } + }; + Cj = function (a, b, c, d) { + c !== d && (b.flags |= 4); + }; + function Dj(a, b) { + if (!I) + switch (a.tailMode) { + case 'hidden': + b = a.tail; + for (var c = null; null !== b; ) null !== b.alternate && (c = b), (b = b.sibling); + null === c ? (a.tail = null) : (c.sibling = null); + break; + case 'collapsed': + c = a.tail; + for (var d = null; null !== c; ) null !== c.alternate && (d = c), (c = c.sibling); + null === d + ? b || null === a.tail + ? (a.tail = null) + : (a.tail.sibling = null) + : (d.sibling = null); + } + } + function S(a) { + var b = null !== a.alternate && a.alternate.child === a.child, + c = 0, + d = 0; + if (b) + for (var e = a.child; null !== e; ) + (c |= e.lanes | e.childLanes), + (d |= e.subtreeFlags & 14680064), + (d |= e.flags & 14680064), + (e.return = a), + (e = e.sibling); + else + for (e = a.child; null !== e; ) + (c |= e.lanes | e.childLanes), + (d |= e.subtreeFlags), + (d |= e.flags), + (e.return = a), + (e = e.sibling); + a.subtreeFlags |= d; + a.childLanes = c; + return b; + } + function Ej(a, b, c) { + var d = b.pendingProps; + wg(b); + switch (b.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S(b), null; + case 1: + return Zf(b.type) && $f(), S(b), null; + case 3: + d = b.stateNode; + zh(); + E(Wf); + E(H); + Eh(); + d.pendingContext && ((d.context = d.pendingContext), (d.pendingContext = null)); + if (null === a || null === a.child) + Gg(b) + ? (b.flags |= 4) + : null === a || + (a.memoizedState.isDehydrated && 0 === (b.flags & 256)) || + ((b.flags |= 1024), null !== zg && (Fj(zg), (zg = null))); + Aj(a, b); + S(b); + return null; + case 5: + Bh(b); + var e = xh(wh.current); + c = b.type; + if (null !== a && null != b.stateNode) + Bj(a, b, c, d, e), a.ref !== b.ref && ((b.flags |= 512), (b.flags |= 2097152)); + else { + if (!d) { + if (null === b.stateNode) throw Error(p(166)); + S(b); + return null; + } + a = xh(uh.current); + if (Gg(b)) { + d = b.stateNode; + c = b.type; + var f = b.memoizedProps; + d[Of] = b; + d[Pf] = f; + a = 0 !== (b.mode & 1); + switch (c) { + case 'dialog': + D('cancel', d); + D('close', d); + break; + case 'iframe': + case 'object': + case 'embed': + D('load', d); + break; + case 'video': + case 'audio': + for (e = 0; e < lf.length; e++) D(lf[e], d); + break; + case 'source': + D('error', d); + break; + case 'img': + case 'image': + case 'link': + D('error', d); + D('load', d); + break; + case 'details': + D('toggle', d); + break; + case 'input': + Za(d, f); + D('invalid', d); + break; + case 'select': + d._wrapperState = { wasMultiple: !!f.multiple }; + D('invalid', d); + break; + case 'textarea': + hb(d, f), D('invalid', d); + } + ub(c, f); + e = null; + for (var g in f) + if (f.hasOwnProperty(g)) { + var h = f[g]; + 'children' === g + ? 'string' === typeof h + ? d.textContent !== h && + (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), + (e = ['children', h])) + : 'number' === typeof h && + d.textContent !== '' + h && + (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), + (e = ['children', '' + h])) + : ea.hasOwnProperty(g) && null != h && 'onScroll' === g && D('scroll', d); + } + switch (c) { + case 'input': + Va(d); + db(d, f, !0); + break; + case 'textarea': + Va(d); + jb(d); + break; + case 'select': + case 'option': + break; + default: + 'function' === typeof f.onClick && (d.onclick = Bf); } - if (((e = Ga(qa.current)), pa(t))) { - (a = t.stateNode), (r = t.type); - var s = t.memoizedProps; - switch (((a[fo] = t), (a[mo] = s), (e = !!(1 & t.mode)), r)) { + d = e; + b.updateQueue = d; + null !== d && (b.flags |= 4); + } else { + g = 9 === e.nodeType ? e : e.ownerDocument; + 'http://www.w3.org/1999/xhtml' === a && (a = kb(c)); + 'http://www.w3.org/1999/xhtml' === a + ? 'script' === c + ? ((a = g.createElement('div')), + (a.innerHTML = ''), - (e = e.removeChild(e.firstChild))) - : 'string' == typeof a.is - ? (e = l.createElement(r, { is: a.is })) - : ((e = l.createElement(r)), - 'select' === r && - ((l = e), a.multiple ? (l.multiple = !0) : a.size && (l.size = a.size))) - : (e = l.createElementNS(e, r)), - (e[fo] = t), - (e[mo] = a), - Ms(e, t, !1, !1), - (t.stateNode = e); - e: { - switch (((l = ye(r, a)), r)) { - case 'dialog': - _r('cancel', e), _r('close', e), (i = a); - break; - case 'iframe': - case 'object': - case 'embed': - _r('load', e), (i = a); - break; - case 'video': - case 'audio': - for (i = 0; i < Dr.length; i++) _r(Dr[i], e); - i = a; - break; - case 'source': - _r('error', e), (i = a); - break; - case 'img': - case 'image': - case 'link': - _r('error', e), _r('load', e), (i = a); - break; - case 'details': - _r('toggle', e), (i = a); - break; - case 'input': - X(e, a), (i = Q(e, a)), _r('invalid', e); - break; - case 'option': - default: - i = a; - break; - case 'select': - (e._wrapperState = { wasMultiple: !!a.multiple }), - (i = F({}, a, { value: void 0 })), - _r('invalid', e); - break; - case 'textarea': - ae(e, a), (i = oe(e, a)), _r('invalid', e); - } - for (s in (be(r, i), (c = i))) - if (c.hasOwnProperty(s)) { - var u = c[s]; - 'style' === s - ? ge(e, u) - : 'dangerouslySetInnerHTML' === s - ? null != (u = u ? u.__html : void 0) && de(e, u) - : 'children' === s - ? 'string' == typeof u - ? ('textarea' !== r || '' !== u) && pe(e, u) - : 'number' == typeof u && pe(e, '' + u) - : 'suppressContentEditableWarning' !== s && - 'suppressHydrationWarning' !== s && - 'autoFocus' !== s && - (o.hasOwnProperty(s) - ? null != u && 'onScroll' === s && _r('scroll', e) - : null != u && y(e, s, u, l)); - } - switch (r) { - case 'input': - Y(e), ee(e, a, !1); - break; - case 'textarea': - Y(e), se(e); - break; - case 'option': - null != a.value && e.setAttribute('value', '' + U(a.value)); - break; - case 'select': - (e.multiple = !!a.multiple), - null != (s = a.value) - ? re(e, !!a.multiple, s, !1) - : null != a.defaultValue && re(e, !!a.multiple, a.defaultValue, !0); - break; - default: - 'function' == typeof i.onClick && (e.onclick = Zr); - } - switch (r) { - case 'button': - case 'input': - case 'select': - case 'textarea': - a = !!a.autoFocus; - break e; - case 'img': - a = !0; - break e; - default: - a = !1; - } + switch (c) { + case 'button': + case 'input': + case 'select': + case 'textarea': + d = !!d.autoFocus; + break a; + case 'img': + d = !0; + break a; + default: + d = !1; } - a && (t.flags |= 4); } - null !== t.ref && ((t.flags |= 512), (t.flags |= 2097152)); + d && (b.flags |= 4); } - return qs(t), null; - case 6: - if (e && null != t.stateNode) As(e, t, e.memoizedProps, a); - else { - if ('string' != typeof a && null === t.stateNode) throw Error(n(166)); - if (((r = Ga(Ka.current)), Ga(qa.current), pa(t))) { - if ( - ((a = t.stateNode), - (r = t.memoizedProps), - (a[fo] = t), - (s = a.nodeValue !== r) && null !== (e = ra)) - ) - switch (e.tag) { + null !== b.ref && ((b.flags |= 512), (b.flags |= 2097152)); + } + S(b); + return null; + case 6: + if (a && null != b.stateNode) Cj(a, b, a.memoizedProps, d); + else { + if ('string' !== typeof d && null === b.stateNode) throw Error(p(166)); + c = xh(wh.current); + xh(uh.current); + if (Gg(b)) { + d = b.stateNode; + c = b.memoizedProps; + d[Of] = b; + if ((f = d.nodeValue !== c)) + if (((a = xg), null !== a)) + switch (a.tag) { case 3: - Jr(a.nodeValue, r, !!(1 & e.mode)); + Af(d.nodeValue, c, 0 !== (a.mode & 1)); break; case 5: - !0 !== e.memoizedProps.suppressHydrationWarning && - Jr(a.nodeValue, r, !!(1 & e.mode)); - } - s && (t.flags |= 4); - } else - ((a = (9 === r.nodeType ? r : r.ownerDocument).createTextNode(a))[fo] = t), - (t.stateNode = a); - } - return qs(t), null; - case 13: - if ( - (Oo(ei), - (a = t.memoizedState), - null === e || (null !== e.memoizedState && null !== e.memoizedState.dehydrated)) - ) { - if (aa && null !== oa && 1 & t.mode && !(128 & t.flags)) - fa(), ma(), (t.flags |= 98560), (s = !1); - else if (((s = pa(t)), null !== a && null !== a.dehydrated)) { - if (null === e) { - if (!s) throw Error(n(318)); - if (!(s = null !== (s = t.memoizedState) ? s.dehydrated : null)) - throw Error(n(317)); - s[fo] = t; - } else ma(), !(128 & t.flags) && (t.memoizedState = null), (t.flags |= 4); - qs(t), (s = !1); - } else null !== ia && (ic(ia), (ia = null)), (s = !0); - if (!s) return 65536 & t.flags ? t : null; - } - return 128 & t.flags - ? ((t.lanes = r), t) - : ((a = null !== a) != (null !== e && null !== e.memoizedState) && - a && - ((t.child.flags |= 8192), - 1 & t.mode && (null === e || 1 & ei.current ? 0 === Al && (Al = 3) : hc())), - null !== t.updateQueue && (t.flags |= 4), - qs(t), - null); - case 4: - return Xa(), Ls(e, t), null === e && Br(t.stateNode.containerInfo), qs(t), null; - case 10: - return Ta(t.type._context), qs(t), null; - case 19: - if ((Oo(ei), null === (s = t.memoizedState))) return qs(t), null; - if (((a = !!(128 & t.flags)), null === (l = s.rendering))) - if (a) Us(s, !1); - else { - if (0 !== Al || (null !== e && 128 & e.flags)) - for (e = t.child; null !== e; ) { - if (null !== (l = ti(e))) { - for ( - t.flags |= 128, - Us(s, !1), - null !== (a = l.updateQueue) && ((t.updateQueue = a), (t.flags |= 4)), - t.subtreeFlags = 0, - a = r, - r = t.child; - null !== r; - - ) - (e = a), - ((s = r).flags &= 14680066), - null === (l = s.alternate) - ? ((s.childLanes = 0), - (s.lanes = e), - (s.child = null), - (s.subtreeFlags = 0), - (s.memoizedProps = null), - (s.memoizedState = null), - (s.updateQueue = null), - (s.dependencies = null), - (s.stateNode = null)) - : ((s.childLanes = l.childLanes), - (s.lanes = l.lanes), - (s.child = l.child), - (s.subtreeFlags = 0), - (s.deletions = null), - (s.memoizedProps = l.memoizedProps), - (s.memoizedState = l.memoizedState), - (s.updateQueue = l.updateQueue), - (s.type = l.type), - (e = l.dependencies), - (s.dependencies = - null === e - ? null - : { lanes: e.lanes, firstContext: e.firstContext })), - (r = r.sibling); - return Po(ei, (1 & ei.current) | 2), t.child; - } - e = e.sibling; + !0 !== a.memoizedProps.suppressHydrationWarning && + Af(d.nodeValue, c, 0 !== (a.mode & 1)); } - null !== s.tail && - Xe() > Bl && - ((t.flags |= 128), (a = !0), Us(s, !1), (t.lanes = 4194304)); - } + f && (b.flags |= 4); + } else + (d = (9 === c.nodeType ? c : c.ownerDocument).createTextNode(d)), + (d[Of] = b), + (b.stateNode = d); + } + S(b); + return null; + case 13: + E(L); + d = b.memoizedState; + if (null === a || (null !== a.memoizedState && null !== a.memoizedState.dehydrated)) { + if (I && null !== yg && 0 !== (b.mode & 1) && 0 === (b.flags & 128)) + Hg(), Ig(), (b.flags |= 98560), (f = !1); + else if (((f = Gg(b)), null !== d && null !== d.dehydrated)) { + if (null === a) { + if (!f) throw Error(p(318)); + f = b.memoizedState; + f = null !== f ? f.dehydrated : null; + if (!f) throw Error(p(317)); + f[Of] = b; + } else Ig(), 0 === (b.flags & 128) && (b.memoizedState = null), (b.flags |= 4); + S(b); + f = !1; + } else null !== zg && (Fj(zg), (zg = null)), (f = !0); + if (!f) return b.flags & 65536 ? b : null; + } + if (0 !== (b.flags & 128)) return (b.lanes = c), b; + d = null !== d; + d !== (null !== a && null !== a.memoizedState) && + d && + ((b.child.flags |= 8192), + 0 !== (b.mode & 1) && (null === a || 0 !== (L.current & 1) ? 0 === T && (T = 3) : tj())); + null !== b.updateQueue && (b.flags |= 4); + S(b); + return null; + case 4: + return zh(), Aj(a, b), null === a && sf(b.stateNode.containerInfo), S(b), null; + case 10: + return ah(b.type._context), S(b), null; + case 17: + return Zf(b.type) && $f(), S(b), null; + case 19: + E(L); + f = b.memoizedState; + if (null === f) return S(b), null; + d = 0 !== (b.flags & 128); + g = f.rendering; + if (null === g) + if (d) Dj(f, !1); else { - if (!a) - if (null !== (e = ti(l))) { - if ( - ((t.flags |= 128), - (a = !0), - null !== (r = e.updateQueue) && ((t.updateQueue = r), (t.flags |= 4)), - Us(s, !0), - null === s.tail && 'hidden' === s.tailMode && !l.alternate && !aa) - ) - return qs(t), null; - } else - 2 * Xe() - s.renderingStartTime > Bl && - 1073741824 !== r && - ((t.flags |= 128), (a = !0), Us(s, !1), (t.lanes = 4194304)); - s.isBackwards - ? ((l.sibling = t.child), (t.child = l)) - : (null !== (r = s.last) ? (r.sibling = l) : (t.child = l), (s.last = l)); + if (0 !== T || (null !== a && 0 !== (a.flags & 128))) + for (a = b.child; null !== a; ) { + g = Ch(a); + if (null !== g) { + b.flags |= 128; + Dj(f, !1); + d = g.updateQueue; + null !== d && ((b.updateQueue = d), (b.flags |= 4)); + b.subtreeFlags = 0; + d = c; + for (c = b.child; null !== c; ) + (f = c), + (a = d), + (f.flags &= 14680066), + (g = f.alternate), + null === g + ? ((f.childLanes = 0), + (f.lanes = a), + (f.child = null), + (f.subtreeFlags = 0), + (f.memoizedProps = null), + (f.memoizedState = null), + (f.updateQueue = null), + (f.dependencies = null), + (f.stateNode = null)) + : ((f.childLanes = g.childLanes), + (f.lanes = g.lanes), + (f.child = g.child), + (f.subtreeFlags = 0), + (f.deletions = null), + (f.memoizedProps = g.memoizedProps), + (f.memoizedState = g.memoizedState), + (f.updateQueue = g.updateQueue), + (f.type = g.type), + (a = g.dependencies), + (f.dependencies = + null === a ? null : { lanes: a.lanes, firstContext: a.firstContext })), + (c = c.sibling); + G(L, (L.current & 1) | 2); + return b.child; + } + a = a.sibling; + } + null !== f.tail && + B() > Gj && + ((b.flags |= 128), (d = !0), Dj(f, !1), (b.lanes = 4194304)); } - return null !== s.tail - ? ((t = s.tail), - (s.rendering = t), - (s.tail = t.sibling), - (s.renderingStartTime = Xe()), - (t.sibling = null), - (r = ei.current), - Po(ei, a ? (1 & r) | 2 : 1 & r), - t) - : (qs(t), null); - case 22: - case 23: - return ( - dc(), - (a = null !== t.memoizedState), - null !== e && (null !== e.memoizedState) !== a && (t.flags |= 8192), - a && 1 & t.mode - ? !!(1073741824 & Ll) && (qs(t), 6 & t.subtreeFlags && (t.flags |= 8192)) - : qs(t), - null - ); - case 24: - case 25: - return null; - } - throw Error(n(156, t.tag)); - } - function Ks(e, t) { - switch ((na(t), t.tag)) { - case 1: - return ( - Ro(t.type) && Ao(), 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null - ); - case 3: + else { + if (!d) + if (((a = Ch(g)), null !== a)) { + if ( + ((b.flags |= 128), + (d = !0), + (c = a.updateQueue), + null !== c && ((b.updateQueue = c), (b.flags |= 4)), + Dj(f, !0), + null === f.tail && 'hidden' === f.tailMode && !g.alternate && !I) + ) + return S(b), null; + } else + 2 * B() - f.renderingStartTime > Gj && + 1073741824 !== c && + ((b.flags |= 128), (d = !0), Dj(f, !1), (b.lanes = 4194304)); + f.isBackwards + ? ((g.sibling = b.child), (b.child = g)) + : ((c = f.last), null !== c ? (c.sibling = g) : (b.child = g), (f.last = g)); + } + if (null !== f.tail) return ( - Xa(), - Oo(No), - Oo(Io), - ri(), - 65536 & (e = t.flags) && !(128 & e) ? ((t.flags = (-65537 & e) | 128), t) : null + (b = f.tail), + (f.rendering = b), + (f.tail = b.sibling), + (f.renderingStartTime = B()), + (b.sibling = null), + (c = L.current), + G(L, d ? (c & 1) | 2 : c & 1), + b ); - case 5: - return Za(t), null; - case 13: - if ((Oo(ei), null !== (e = t.memoizedState) && null !== e.dehydrated)) { - if (null === t.alternate) throw Error(n(340)); - ma(); - } - return 65536 & (e = t.flags) ? ((t.flags = (-65537 & e) | 128), t) : null; - case 19: - return Oo(ei), null; - case 4: - return Xa(), null; - case 10: - return Ta(t.type._context), null; - case 22: - case 23: - return dc(), null; - default: - return null; - } + S(b); + return null; + case 22: + case 23: + return ( + Hj(), + (d = null !== b.memoizedState), + null !== a && (null !== a.memoizedState) !== d && (b.flags |= 8192), + d && 0 !== (b.mode & 1) + ? 0 !== (fj & 1073741824) && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) + : S(b), + null + ); + case 24: + return null; + case 25: + return null; } - (Ms = function (e, t) { - for (var n = t.child; null !== n; ) { - if (5 === n.tag || 6 === n.tag) e.appendChild(n.stateNode); - else if (4 !== n.tag && null !== n.child) { - (n.child.return = n), (n = n.child); - continue; + throw Error(p(156, b.tag)); + } + function Ij(a, b) { + wg(b); + switch (b.tag) { + case 1: + return ( + Zf(b.type) && $f(), (a = b.flags), a & 65536 ? ((b.flags = (a & -65537) | 128), b) : null + ); + case 3: + return ( + zh(), + E(Wf), + E(H), + Eh(), + (a = b.flags), + 0 !== (a & 65536) && 0 === (a & 128) ? ((b.flags = (a & -65537) | 128), b) : null + ); + case 5: + return Bh(b), null; + case 13: + E(L); + a = b.memoizedState; + if (null !== a && null !== a.dehydrated) { + if (null === b.alternate) throw Error(p(340)); + Ig(); } - if (n === t) break; - for (; null === n.sibling; ) { - if (null === n.return || n.return === t) return; - n = n.return; + a = b.flags; + return a & 65536 ? ((b.flags = (a & -65537) | 128), b) : null; + case 19: + return E(L), null; + case 4: + return zh(), null; + case 10: + return ah(b.type._context), null; + case 22: + case 23: + return Hj(), null; + case 24: + return null; + default: + return null; + } + } + var Jj = !1, + U = !1, + Kj = 'function' === typeof WeakSet ? WeakSet : Set, + V = null; + function Lj(a, b) { + var c = a.ref; + if (null !== c) + if ('function' === typeof c) + try { + c(null); + } catch (d) { + W(a, b, d); } - (n.sibling.return = n.return), (n = n.sibling); - } - }), - (Ls = function () {}), - (Rs = function (e, t, n, r) { - var a = e.memoizedProps; - if (a !== r) { - (e = t.stateNode), Ga(qa.current); - var i, - s = null; - switch (n) { - case 'input': - (a = Q(e, a)), (r = Q(e, r)), (s = []); - break; - case 'select': - (a = F({}, a, { value: void 0 })), (r = F({}, r, { value: void 0 })), (s = []); - break; - case 'textarea': - (a = oe(e, a)), (r = oe(e, r)), (s = []); - break; - default: - 'function' != typeof a.onClick && 'function' == typeof r.onClick && (e.onclick = Zr); - } - for (u in (be(n, r), (n = null), a)) - if (!r.hasOwnProperty(u) && a.hasOwnProperty(u) && null != a[u]) - if ('style' === u) { - var l = a[u]; - for (i in l) l.hasOwnProperty(i) && (n || (n = {}), (n[i] = '')); - } else - 'dangerouslySetInnerHTML' !== u && - 'children' !== u && - 'suppressContentEditableWarning' !== u && - 'suppressHydrationWarning' !== u && - 'autoFocus' !== u && - (o.hasOwnProperty(u) ? s || (s = []) : (s = s || []).push(u, null)); - for (u in r) { - var c = r[u]; - if ( - ((l = null != a ? a[u] : void 0), - r.hasOwnProperty(u) && c !== l && (null != c || null != l)) - ) - if ('style' === u) - if (l) { - for (i in l) - !l.hasOwnProperty(i) || - (c && c.hasOwnProperty(i)) || - (n || (n = {}), (n[i] = '')); - for (i in c) - c.hasOwnProperty(i) && l[i] !== c[i] && (n || (n = {}), (n[i] = c[i])); - } else n || (s || (s = []), s.push(u, n)), (n = c); - else - 'dangerouslySetInnerHTML' === u - ? ((c = c ? c.__html : void 0), - (l = l ? l.__html : void 0), - null != c && l !== c && (s = s || []).push(u, c)) - : 'children' === u - ? ('string' != typeof c && 'number' != typeof c) || (s = s || []).push(u, '' + c) - : 'suppressContentEditableWarning' !== u && - 'suppressHydrationWarning' !== u && - (o.hasOwnProperty(u) - ? (null != c && 'onScroll' === u && _r('scroll', e), s || l === c || (s = [])) - : (s = s || []).push(u, c)); - } - n && (s = s || []).push('style', n); - var u = s; - (t.updateQueue = u) && (t.flags |= 4); + else c.current = null; + } + function Mj(a, b, c) { + try { + c(); + } catch (d) { + W(a, b, d); + } + } + var Nj = !1; + function Oj(a, b) { + Cf = dd; + a = Me(); + if (Ne(a)) { + if ('selectionStart' in a) var c = { start: a.selectionStart, end: a.selectionEnd }; + else + a: { + c = ((c = a.ownerDocument) && c.defaultView) || window; + var d = c.getSelection && c.getSelection(); + if (d && 0 !== d.rangeCount) { + c = d.anchorNode; + var e = d.anchorOffset, + f = d.focusNode; + d = d.focusOffset; + try { + c.nodeType, f.nodeType; + } catch (F) { + c = null; + break a; + } + var g = 0, + h = -1, + k = -1, + l = 0, + m = 0, + q = a, + r = null; + b: for (;;) { + for (var y; ; ) { + q !== c || (0 !== e && 3 !== q.nodeType) || (h = g + e); + q !== f || (0 !== d && 3 !== q.nodeType) || (k = g + d); + 3 === q.nodeType && (g += q.nodeValue.length); + if (null === (y = q.firstChild)) break; + r = q; + q = y; + } + for (;;) { + if (q === a) break b; + r === c && ++l === e && (h = g); + r === f && ++m === d && (k = g); + if (null !== (y = q.nextSibling)) break; + q = r; + r = q.parentNode; + } + q = y; + } + c = -1 === h || -1 === k ? null : { start: h, end: k }; + } else c = null; } - }), - (As = function (e, t, n, r) { - n !== r && (t.flags |= 4); - }); - var Gs = !1, - Qs = !1, - Xs = 'function' == typeof WeakSet ? WeakSet : Set, - Js = null; - function Zs(e, t) { - var n = e.ref; - if (null !== n) - if ('function' == typeof n) + c = c || { start: 0, end: 0 }; + } else c = null; + Df = { focusedElem: a, selectionRange: c }; + dd = !1; + for (V = b; null !== V; ) + if (((b = V), (a = b.child), 0 !== (b.subtreeFlags & 1028) && null !== a)) + (a.return = b), (V = a); + else + for (; null !== V; ) { + b = V; try { - n(null); - } catch (n) { - Sc(e, t, n); + var n = b.alternate; + if (0 !== (b.flags & 1024)) + switch (b.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== n) { + var t = n.memoizedProps, + J = n.memoizedState, + x = b.stateNode, + w = x.getSnapshotBeforeUpdate( + b.elementType === b.type ? t : Ci(b.type, t), + J + ); + x.__reactInternalSnapshotBeforeUpdate = w; + } + break; + case 3: + var u = b.stateNode.containerInfo; + 1 === u.nodeType + ? (u.textContent = '') + : 9 === u.nodeType && u.documentElement && u.removeChild(u.documentElement); + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + throw Error(p(163)); + } + } catch (F) { + W(b, b.return, F); } - else n.current = null; - } - function el(e, t, n) { - try { - n(); - } catch (n) { - Sc(e, t, n); - } - } - var tl = !1; - function nl(e, t, n) { - var r = t.updateQueue; - if (null !== (r = null !== r ? r.lastEffect : null)) { - var o = (r = r.next); - do { - if ((o.tag & e) === e) { - var a = o.destroy; - (o.destroy = void 0), void 0 !== a && el(t, n, a); + a = b.sibling; + if (null !== a) { + a.return = b.return; + V = a; + break; } - o = o.next; - } while (o !== r); - } + V = b.return; + } + n = Nj; + Nj = !1; + return n; + } + function Pj(a, b, c) { + var d = b.updateQueue; + d = null !== d ? d.lastEffect : null; + if (null !== d) { + var e = (d = d.next); + do { + if ((e.tag & a) === a) { + var f = e.destroy; + e.destroy = void 0; + void 0 !== f && Mj(b, c, f); + } + e = e.next; + } while (e !== d); } - function rl(e, t) { - if (null !== (t = null !== (t = t.updateQueue) ? t.lastEffect : null)) { - var n = (t = t.next); - do { - if ((n.tag & e) === e) { - var r = n.create; - n.destroy = r(); - } - n = n.next; - } while (n !== t); - } - } - function ol(e) { - var t = e.ref; - if (null !== t) { - var n = e.stateNode; - e.tag, (e = n), 'function' == typeof t ? t(e) : (t.current = e); - } - } - function al(e) { - var t = e.alternate; - null !== t && ((e.alternate = null), al(t)), - (e.child = null), - (e.deletions = null), - (e.sibling = null), - 5 === e.tag && - null !== (t = e.stateNode) && - (delete t[fo], delete t[mo], delete t[go], delete t[vo], delete t[bo]), - (e.stateNode = null), - (e.return = null), - (e.dependencies = null), - (e.memoizedProps = null), - (e.memoizedState = null), - (e.pendingProps = null), - (e.stateNode = null), - (e.updateQueue = null); - } - function il(e) { - return 5 === e.tag || 3 === e.tag || 4 === e.tag; - } - function sl(e) { - e: for (;;) { - for (; null === e.sibling; ) { - if (null === e.return || il(e.return)) return null; - e = e.return; + } + function Qj(a, b) { + b = b.updateQueue; + b = null !== b ? b.lastEffect : null; + if (null !== b) { + var c = (b = b.next); + do { + if ((c.tag & a) === a) { + var d = c.create; + c.destroy = d(); } - for ( - e.sibling.return = e.return, e = e.sibling; - 5 !== e.tag && 6 !== e.tag && 18 !== e.tag; - - ) { - if (2 & e.flags) continue e; - if (null === e.child || 4 === e.tag) continue e; - (e.child.return = e), (e = e.child); - } - if (!(2 & e.flags)) return e.stateNode; - } - } - function ll(e, t, n) { - var r = e.tag; - if (5 === r || 6 === r) - (e = e.stateNode), - t - ? 8 === n.nodeType - ? n.parentNode.insertBefore(e, t) - : n.insertBefore(e, t) - : (8 === n.nodeType ? (t = n.parentNode).insertBefore(e, n) : (t = n).appendChild(e), - null != (n = n._reactRootContainer) || null !== t.onclick || (t.onclick = Zr)); - else if (4 !== r && null !== (e = e.child)) - for (ll(e, t, n), e = e.sibling; null !== e; ) ll(e, t, n), (e = e.sibling); - } - function cl(e, t, n) { - var r = e.tag; - if (5 === r || 6 === r) (e = e.stateNode), t ? n.insertBefore(e, t) : n.appendChild(e); - else if (4 !== r && null !== (e = e.child)) - for (cl(e, t, n), e = e.sibling; null !== e; ) cl(e, t, n), (e = e.sibling); - } - var ul = null, - dl = !1; - function pl(e, t, n) { - for (n = n.child; null !== n; ) fl(e, t, n), (n = n.sibling); - } - function fl(e, t, n) { - if (at && 'function' == typeof at.onCommitFiberUnmount) - try { - at.onCommitFiberUnmount(ot, n); - } catch (e) {} - switch (n.tag) { + c = c.next; + } while (c !== b); + } + } + function Rj(a) { + var b = a.ref; + if (null !== b) { + var c = a.stateNode; + switch (a.tag) { case 5: - Qs || Zs(n, t); - case 6: - var r = ul, - o = dl; - (ul = null), - pl(e, t, n), - (dl = o), - null !== (ul = r) && - (dl - ? ((e = ul), - (n = n.stateNode), - 8 === e.nodeType ? e.parentNode.removeChild(n) : e.removeChild(n)) - : ul.removeChild(n.stateNode)); - break; - case 18: - null !== ul && - (dl - ? ((e = ul), - (n = n.stateNode), - 8 === e.nodeType ? lo(e.parentNode, n) : 1 === e.nodeType && lo(e, n), - Bt(e)) - : lo(ul, n.stateNode)); - break; - case 4: - (r = ul), - (o = dl), - (ul = n.stateNode.containerInfo), - (dl = !0), - pl(e, t, n), - (ul = r), - (dl = o); - break; - case 0: - case 11: - case 14: - case 15: - if (!Qs && null !== (r = n.updateQueue) && null !== (r = r.lastEffect)) { - o = r = r.next; - do { - var a = o, - i = a.destroy; - (a = a.tag), void 0 !== i && (2 & a || 4 & a) && el(n, t, i), (o = o.next); - } while (o !== r); - } - pl(e, t, n); - break; - case 1: - if (!Qs && (Zs(n, t), 'function' == typeof (r = n.stateNode).componentWillUnmount)) - try { - (r.props = n.memoizedProps), (r.state = n.memoizedState), r.componentWillUnmount(); - } catch (e) { - Sc(n, t, e); - } - pl(e, t, n); - break; - case 21: - pl(e, t, n); - break; - case 22: - 1 & n.mode - ? ((Qs = (r = Qs) || null !== n.memoizedState), pl(e, t, n), (Qs = r)) - : pl(e, t, n); + a = c; break; default: - pl(e, t, n); - } - } - function ml(e) { - var t = e.updateQueue; - if (null !== t) { - e.updateQueue = null; - var n = e.stateNode; - null === n && (n = e.stateNode = new Xs()), - t.forEach(function (t) { - var r = Tc.bind(null, e, t); - n.has(t) || (n.add(t), t.then(r, r)); - }); + a = c; } + 'function' === typeof b ? b(a) : (b.current = a); } - function hl(e, t) { - var r = t.deletions; - if (null !== r) - for (var o = 0; o < r.length; o++) { - var a = r[o]; - try { - var i = e, - s = t, - l = s; - e: for (; null !== l; ) { - switch (l.tag) { - case 5: - (ul = l.stateNode), (dl = !1); - break e; - case 3: - case 4: - (ul = l.stateNode.containerInfo), (dl = !0); - break e; - } - l = l.return; - } - if (null === ul) throw Error(n(160)); - fl(i, s, a), (ul = null), (dl = !1); - var c = a.alternate; - null !== c && (c.return = null), (a.return = null); - } catch (e) { - Sc(a, t, e); - } + } + function Sj(a) { + var b = a.alternate; + null !== b && ((a.alternate = null), Sj(b)); + a.child = null; + a.deletions = null; + a.sibling = null; + 5 === a.tag && + ((b = a.stateNode), + null !== b && (delete b[Of], delete b[Pf], delete b[of], delete b[Qf], delete b[Rf])); + a.stateNode = null; + a.return = null; + a.dependencies = null; + a.memoizedProps = null; + a.memoizedState = null; + a.pendingProps = null; + a.stateNode = null; + a.updateQueue = null; + } + function Tj(a) { + return 5 === a.tag || 3 === a.tag || 4 === a.tag; + } + function Uj(a) { + a: for (;;) { + for (; null === a.sibling; ) { + if (null === a.return || Tj(a.return)) return null; + a = a.return; + } + a.sibling.return = a.return; + for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) { + if (a.flags & 2) continue a; + if (null === a.child || 4 === a.tag) continue a; + else (a.child.return = a), (a = a.child); + } + if (!(a.flags & 2)) return a.stateNode; + } + } + function Vj(a, b, c) { + var d = a.tag; + if (5 === d || 6 === d) + (a = a.stateNode), + b + ? 8 === c.nodeType + ? c.parentNode.insertBefore(a, b) + : c.insertBefore(a, b) + : (8 === c.nodeType + ? ((b = c.parentNode), b.insertBefore(a, c)) + : ((b = c), b.appendChild(a)), + (c = c._reactRootContainer), + (null !== c && void 0 !== c) || null !== b.onclick || (b.onclick = Bf)); + else if (4 !== d && ((a = a.child), null !== a)) + for (Vj(a, b, c), a = a.sibling; null !== a; ) Vj(a, b, c), (a = a.sibling); + } + function Wj(a, b, c) { + var d = a.tag; + if (5 === d || 6 === d) (a = a.stateNode), b ? c.insertBefore(a, b) : c.appendChild(a); + else if (4 !== d && ((a = a.child), null !== a)) + for (Wj(a, b, c), a = a.sibling; null !== a; ) Wj(a, b, c), (a = a.sibling); + } + var X = null, + Xj = !1; + function Yj(a, b, c) { + for (c = c.child; null !== c; ) Zj(a, b, c), (c = c.sibling); + } + function Zj(a, b, c) { + if (lc && 'function' === typeof lc.onCommitFiberUnmount) + try { + lc.onCommitFiberUnmount(kc, c); + } catch (h) {} + switch (c.tag) { + case 5: + U || Lj(c, b); + case 6: + var d = X, + e = Xj; + X = null; + Yj(a, b, c); + X = d; + Xj = e; + null !== X && + (Xj + ? ((a = X), + (c = c.stateNode), + 8 === a.nodeType ? a.parentNode.removeChild(c) : a.removeChild(c)) + : X.removeChild(c.stateNode)); + break; + case 18: + null !== X && + (Xj + ? ((a = X), + (c = c.stateNode), + 8 === a.nodeType ? Kf(a.parentNode, c) : 1 === a.nodeType && Kf(a, c), + bd(a)) + : Kf(X, c.stateNode)); + break; + case 4: + d = X; + e = Xj; + X = c.stateNode.containerInfo; + Xj = !0; + Yj(a, b, c); + X = d; + Xj = e; + break; + case 0: + case 11: + case 14: + case 15: + if (!U && ((d = c.updateQueue), null !== d && ((d = d.lastEffect), null !== d))) { + e = d = d.next; + do { + var f = e, + g = f.destroy; + f = f.tag; + void 0 !== g && (0 !== (f & 2) ? Mj(c, b, g) : 0 !== (f & 4) && Mj(c, b, g)); + e = e.next; + } while (e !== d); } - if (12854 & t.subtreeFlags) for (t = t.child; null !== t; ) gl(t, e), (t = t.sibling); + Yj(a, b, c); + break; + case 1: + if (!U && (Lj(c, b), (d = c.stateNode), 'function' === typeof d.componentWillUnmount)) + try { + (d.props = c.memoizedProps), (d.state = c.memoizedState), d.componentWillUnmount(); + } catch (h) { + W(c, b, h); + } + Yj(a, b, c); + break; + case 21: + Yj(a, b, c); + break; + case 22: + c.mode & 1 + ? ((U = (d = U) || null !== c.memoizedState), Yj(a, b, c), (U = d)) + : Yj(a, b, c); + break; + default: + Yj(a, b, c); } - function gl(e, t) { - var r = e.alternate, - o = e.flags; - switch (e.tag) { - case 0: - case 11: - case 14: - case 15: - if ((hl(t, e), vl(e), 4 & o)) { - try { - nl(3, e, e.return), rl(3, e); - } catch (t) { - Sc(e, e.return, t); - } - try { - nl(5, e, e.return); - } catch (t) { - Sc(e, e.return, t); + } + function ak(a) { + var b = a.updateQueue; + if (null !== b) { + a.updateQueue = null; + var c = a.stateNode; + null === c && (c = a.stateNode = new Kj()); + b.forEach(function (b) { + var d = bk.bind(null, a, b); + c.has(b) || (c.add(b), b.then(d, d)); + }); + } + } + function ck(a, b) { + var c = b.deletions; + if (null !== c) + for (var d = 0; d < c.length; d++) { + var e = c[d]; + try { + var f = a, + g = b, + h = g; + a: for (; null !== h; ) { + switch (h.tag) { + case 5: + X = h.stateNode; + Xj = !1; + break a; + case 3: + X = h.stateNode.containerInfo; + Xj = !0; + break a; + case 4: + X = h.stateNode.containerInfo; + Xj = !0; + break a; } + h = h.return; } - break; - case 1: - hl(t, e), vl(e), 512 & o && null !== r && Zs(r, r.return); - break; - case 5: - if ((hl(t, e), vl(e), 512 & o && null !== r && Zs(r, r.return), 32 & e.flags)) { - var a = e.stateNode; + if (null === X) throw Error(p(160)); + Zj(f, g, e); + X = null; + Xj = !1; + var k = e.alternate; + null !== k && (k.return = null); + e.return = null; + } catch (l) { + W(e, b, l); + } + } + if (b.subtreeFlags & 12854) for (b = b.child; null !== b; ) dk(b, a), (b = b.sibling); + } + function dk(a, b) { + var c = a.alternate, + d = a.flags; + switch (a.tag) { + case 0: + case 11: + case 14: + case 15: + ck(b, a); + ek(a); + if (d & 4) { + try { + Pj(3, a, a.return), Qj(3, a); + } catch (t) { + W(a, a.return, t); + } + try { + Pj(5, a, a.return); + } catch (t) { + W(a, a.return, t); + } + } + break; + case 1: + ck(b, a); + ek(a); + d & 512 && null !== c && Lj(c, c.return); + break; + case 5: + ck(b, a); + ek(a); + d & 512 && null !== c && Lj(c, c.return); + if (a.flags & 32) { + var e = a.stateNode; + try { + ob(e, ''); + } catch (t) { + W(a, a.return, t); + } + } + if (d & 4 && ((e = a.stateNode), null != e)) { + var f = a.memoizedProps, + g = null !== c ? c.memoizedProps : f, + h = a.type, + k = a.updateQueue; + a.updateQueue = null; + if (null !== k) try { - pe(a, ''); + 'input' === h && 'radio' === f.type && null != f.name && ab(e, f); + vb(h, g); + var l = vb(h, f); + for (g = 0; g < k.length; g += 2) { + var m = k[g], + q = k[g + 1]; + 'style' === m + ? sb(e, q) + : 'dangerouslySetInnerHTML' === m + ? nb(e, q) + : 'children' === m + ? ob(e, q) + : ta(e, m, q, l); + } + switch (h) { + case 'input': + bb(e, f); + break; + case 'textarea': + ib(e, f); + break; + case 'select': + var r = e._wrapperState.wasMultiple; + e._wrapperState.wasMultiple = !!f.multiple; + var y = f.value; + null != y + ? fb(e, !!f.multiple, y, !1) + : r !== !!f.multiple && + (null != f.defaultValue + ? fb(e, !!f.multiple, f.defaultValue, !0) + : fb(e, !!f.multiple, f.multiple ? [] : '', !1)); + } + e[Pf] = f; } catch (t) { - Sc(e, e.return, t); + W(a, a.return, t); } + } + break; + case 6: + ck(b, a); + ek(a); + if (d & 4) { + if (null === a.stateNode) throw Error(p(162)); + e = a.stateNode; + f = a.memoizedProps; + try { + e.nodeValue = f; + } catch (t) { + W(a, a.return, t); } - if (4 & o && null != (a = e.stateNode)) { - var i = e.memoizedProps, - s = null !== r ? r.memoizedProps : i, - l = e.type, - c = e.updateQueue; - if (((e.updateQueue = null), null !== c)) - try { - 'input' === l && 'radio' === i.type && null != i.name && J(a, i), ye(l, s); - var u = ye(l, i); - for (s = 0; s < c.length; s += 2) { - var d = c[s], - p = c[s + 1]; - 'style' === d - ? ge(a, p) - : 'dangerouslySetInnerHTML' === d - ? de(a, p) - : 'children' === d - ? pe(a, p) - : y(a, d, p, u); - } - switch (l) { - case 'input': - Z(a, i); + } + break; + case 3: + ck(b, a); + ek(a); + if (d & 4 && null !== c && c.memoizedState.isDehydrated) + try { + bd(b.containerInfo); + } catch (t) { + W(a, a.return, t); + } + break; + case 4: + ck(b, a); + ek(a); + break; + case 13: + ck(b, a); + ek(a); + e = a.child; + e.flags & 8192 && + ((f = null !== e.memoizedState), + (e.stateNode.isHidden = f), + !f || (null !== e.alternate && null !== e.alternate.memoizedState) || (fk = B())); + d & 4 && ak(a); + break; + case 22: + m = null !== c && null !== c.memoizedState; + a.mode & 1 ? ((U = (l = U) || m), ck(b, a), (U = l)) : ck(b, a); + ek(a); + if (d & 8192) { + l = null !== a.memoizedState; + if ((a.stateNode.isHidden = l) && !m && 0 !== (a.mode & 1)) + for (V = a, m = a.child; null !== m; ) { + for (q = V = m; null !== V; ) { + r = V; + y = r.child; + switch (r.tag) { + case 0: + case 11: + case 14: + case 15: + Pj(4, r, r.return); break; - case 'textarea': - ie(a, i); + case 1: + Lj(r, r.return); + var n = r.stateNode; + if ('function' === typeof n.componentWillUnmount) { + d = r; + c = r.return; + try { + (b = d), + (n.props = b.memoizedProps), + (n.state = b.memoizedState), + n.componentWillUnmount(); + } catch (t) { + W(d, c, t); + } + } + break; + case 5: + Lj(r, r.return); break; - case 'select': - var f = a._wrapperState.wasMultiple; - a._wrapperState.wasMultiple = !!i.multiple; - var m = i.value; - null != m - ? re(a, !!i.multiple, m, !1) - : f !== !!i.multiple && - (null != i.defaultValue - ? re(a, !!i.multiple, i.defaultValue, !0) - : re(a, !!i.multiple, i.multiple ? [] : '', !1)); + case 22: + if (null !== r.memoizedState) { + gk(q); + continue; + } } - a[mo] = i; - } catch (t) { - Sc(e, e.return, t); + null !== y ? ((y.return = r), (V = y)) : gk(q); } - } - break; - case 6: - if ((hl(t, e), vl(e), 4 & o)) { - if (null === e.stateNode) throw Error(n(162)); - (a = e.stateNode), (i = e.memoizedProps); - try { - a.nodeValue = i; - } catch (t) { - Sc(e, e.return, t); - } - } - break; - case 3: - if ((hl(t, e), vl(e), 4 & o && null !== r && r.memoizedState.isDehydrated)) - try { - Bt(t.containerInfo); - } catch (t) { - Sc(e, e.return, t); + m = m.sibling; } - break; - case 4: - default: - hl(t, e), vl(e); - break; - case 13: - hl(t, e), - vl(e), - 8192 & (a = e.child).flags && - ((i = null !== a.memoizedState), - (a.stateNode.isHidden = i), - !i || (null !== a.alternate && null !== a.alternate.memoizedState) || ($l = Xe())), - 4 & o && ml(e); - break; - case 22: - if ( - ((d = null !== r && null !== r.memoizedState), - 1 & e.mode ? ((Qs = (u = Qs) || d), hl(t, e), (Qs = u)) : hl(t, e), - vl(e), - 8192 & o) - ) { - if (((u = null !== e.memoizedState), (e.stateNode.isHidden = u) && !d && 1 & e.mode)) - for (Js = e, d = e.child; null !== d; ) { - for (p = Js = d; null !== Js; ) { - switch (((m = (f = Js).child), f.tag)) { - case 0: - case 11: - case 14: - case 15: - nl(4, f, f.return); - break; - case 1: - Zs(f, f.return); - var h = f.stateNode; - if ('function' == typeof h.componentWillUnmount) { - (o = f), (r = f.return); - try { - (t = o), - (h.props = t.memoizedProps), - (h.state = t.memoizedState), - h.componentWillUnmount(); - } catch (e) { - Sc(o, r, e); - } - } - break; - case 5: - Zs(f, f.return); - break; - case 22: - if (null !== f.memoizedState) { - xl(p); - continue; - } - } - null !== m ? ((m.return = f), (Js = m)) : xl(p); + a: for (m = null, q = a; ; ) { + if (5 === q.tag) { + if (null === m) { + m = q; + try { + (e = q.stateNode), + l + ? ((f = e.style), + 'function' === typeof f.setProperty + ? f.setProperty('display', 'none', 'important') + : (f.display = 'none')) + : ((h = q.stateNode), + (k = q.memoizedProps.style), + (g = + void 0 !== k && null !== k && k.hasOwnProperty('display') + ? k.display + : null), + (h.style.display = rb('display', g))); + } catch (t) { + W(a, a.return, t); } - d = d.sibling; } - e: for (d = null, p = e; ; ) { - if (5 === p.tag) { - if (null === d) { - d = p; - try { - (a = p.stateNode), - u - ? 'function' == typeof (i = a.style).setProperty - ? i.setProperty('display', 'none', 'important') - : (i.display = 'none') - : ((l = p.stateNode), - (s = - null != (c = p.memoizedProps.style) && c.hasOwnProperty('display') - ? c.display - : null), - (l.style.display = he('display', s))); - } catch (t) { - Sc(e, e.return, t); - } + } else if (6 === q.tag) { + if (null === m) + try { + q.stateNode.nodeValue = l ? '' : q.memoizedProps; + } catch (t) { + W(a, a.return, t); } - } else if (6 === p.tag) { - if (null === d) - try { - p.stateNode.nodeValue = u ? '' : p.memoizedProps; - } catch (t) { - Sc(e, e.return, t); - } - } else if ( - ((22 !== p.tag && 23 !== p.tag) || null === p.memoizedState || p === e) && - null !== p.child - ) { - (p.child.return = p), (p = p.child); - continue; - } - if (p === e) break e; - for (; null === p.sibling; ) { - if (null === p.return || p.return === e) break e; - d === p && (d = null), (p = p.return); - } - d === p && (d = null), (p.sibling.return = p.return), (p = p.sibling); + } else if ( + ((22 !== q.tag && 23 !== q.tag) || null === q.memoizedState || q === a) && + null !== q.child + ) { + q.child.return = q; + q = q.child; + continue; } + if (q === a) break a; + for (; null === q.sibling; ) { + if (null === q.return || q.return === a) break a; + m === q && (m = null); + q = q.return; + } + m === q && (m = null); + q.sibling.return = q.return; + q = q.sibling; } - break; - case 19: - hl(t, e), vl(e), 4 & o && ml(e); - case 21: - } + } + break; + case 19: + ck(b, a); + ek(a); + d & 4 && ak(a); + break; + case 21: + break; + default: + ck(b, a), ek(a); } - function vl(e) { - var t = e.flags; - if (2 & t) { - try { - e: { - for (var r = e.return; null !== r; ) { - if (il(r)) { - var o = r; - break e; - } - r = r.return; + } + function ek(a) { + var b = a.flags; + if (b & 2) { + try { + a: { + for (var c = a.return; null !== c; ) { + if (Tj(c)) { + var d = c; + break a; } - throw Error(n(160)); - } - switch (o.tag) { - case 5: - var a = o.stateNode; - 32 & o.flags && (pe(a, ''), (o.flags &= -33)), cl(e, sl(e), a); - break; - case 3: - case 4: - var i = o.stateNode.containerInfo; - ll(e, sl(e), i); - break; - default: - throw Error(n(161)); + c = c.return; } - } catch (t) { - Sc(e, e.return, t); - } - e.flags &= -3; - } - 4096 & t && (e.flags &= -4097); - } - function bl(e, t, n) { - (Js = e), yl(e); - } - function yl(e, t, n) { - for (var r = !!(1 & e.mode); null !== Js; ) { - var o = Js, - a = o.child; - if (22 === o.tag && r) { - var i = null !== o.memoizedState || Gs; - if (!i) { - var s = o.alternate, - l = (null !== s && null !== s.memoizedState) || Qs; - s = Gs; - var c = Qs; - if (((Gs = i), (Qs = l) && !c)) - for (Js = o; null !== Js; ) - (l = (i = Js).child), - 22 === i.tag && null !== i.memoizedState - ? kl(o) - : null !== l - ? ((l.return = i), (Js = l)) - : kl(o); - for (; null !== a; ) (Js = a), yl(a), (a = a.sibling); - (Js = o), (Gs = s), (Qs = c); - } - wl(e); - } else 8772 & o.subtreeFlags && null !== a ? ((a.return = o), (Js = a)) : wl(e); + throw Error(p(160)); + } + switch (d.tag) { + case 5: + var e = d.stateNode; + d.flags & 32 && (ob(e, ''), (d.flags &= -33)); + var f = Uj(a); + Wj(a, f, e); + break; + case 3: + case 4: + var g = d.stateNode.containerInfo, + h = Uj(a); + Vj(a, h, g); + break; + default: + throw Error(p(161)); + } + } catch (k) { + W(a, a.return, k); } + a.flags &= -3; } - function wl(e) { - for (; null !== Js; ) { - var t = Js; - if (8772 & t.flags) { - var r = t.alternate; - try { - if (8772 & t.flags) - switch (t.tag) { - case 0: - case 11: - case 15: - Qs || rl(5, t); - break; - case 1: - var o = t.stateNode; - if (4 & t.flags && !Qs) - if (null === r) o.componentDidMount(); - else { - var a = - t.elementType === t.type ? r.memoizedProps : ns(t.type, r.memoizedProps); - o.componentDidUpdate( - a, - r.memoizedState, - o.__reactInternalSnapshotBeforeUpdate - ); - } - var i = t.updateQueue; - null !== i && Va(t, i, o); - break; - case 3: - var s = t.updateQueue; - if (null !== s) { - if (((r = null), null !== t.child)) - switch (t.child.tag) { - case 5: - case 1: - r = t.child.stateNode; - } - Va(t, s, r); + b & 4096 && (a.flags &= -4097); + } + function hk(a, b, c) { + V = a; + ik(a); + } + function ik(a, b, c) { + for (var d = 0 !== (a.mode & 1); null !== V; ) { + var e = V, + f = e.child; + if (22 === e.tag && d) { + var g = null !== e.memoizedState || Jj; + if (!g) { + var h = e.alternate, + k = (null !== h && null !== h.memoizedState) || U; + h = Jj; + var l = U; + Jj = g; + if ((U = k) && !l) + for (V = e; null !== V; ) + (g = V), + (k = g.child), + 22 === g.tag && null !== g.memoizedState + ? jk(e) + : null !== k + ? ((k.return = g), (V = k)) + : jk(e); + for (; null !== f; ) (V = f), ik(f), (f = f.sibling); + V = e; + Jj = h; + U = l; + } + kk(a); + } else 0 !== (e.subtreeFlags & 8772) && null !== f ? ((f.return = e), (V = f)) : kk(a); + } + } + function kk(a) { + for (; null !== V; ) { + var b = V; + if (0 !== (b.flags & 8772)) { + var c = b.alternate; + try { + if (0 !== (b.flags & 8772)) + switch (b.tag) { + case 0: + case 11: + case 15: + U || Qj(5, b); + break; + case 1: + var d = b.stateNode; + if (b.flags & 4 && !U) + if (null === c) d.componentDidMount(); + else { + var e = + b.elementType === b.type ? c.memoizedProps : Ci(b.type, c.memoizedProps); + d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate); } - break; - case 5: - var l = t.stateNode; - if (null === r && 4 & t.flags) { - r = l; - var c = t.memoizedProps; - switch (t.type) { - case 'button': - case 'input': - case 'select': - case 'textarea': - c.autoFocus && r.focus(); + var f = b.updateQueue; + null !== f && sh(b, f, d); + break; + case 3: + var g = b.updateQueue; + if (null !== g) { + c = null; + if (null !== b.child) + switch (b.child.tag) { + case 5: + c = b.child.stateNode; break; - case 'img': - c.src && (r.src = c.src); + case 1: + c = b.child.stateNode; } + sh(b, g, c); + } + break; + case 5: + var h = b.stateNode; + if (null === c && b.flags & 4) { + c = h; + var k = b.memoizedProps; + switch (b.type) { + case 'button': + case 'input': + case 'select': + case 'textarea': + k.autoFocus && c.focus(); + break; + case 'img': + k.src && (c.src = k.src); } - break; - case 6: - case 4: - case 12: - case 19: - case 17: - case 21: - case 22: - case 23: - case 25: - break; - case 13: - if (null === t.memoizedState) { - var u = t.alternate; - if (null !== u) { - var d = u.memoizedState; - if (null !== d) { - var p = d.dehydrated; - null !== p && Bt(p); - } + } + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + if (null === b.memoizedState) { + var l = b.alternate; + if (null !== l) { + var m = l.memoizedState; + if (null !== m) { + var q = m.dehydrated; + null !== q && bd(q); } } - break; - default: - throw Error(n(163)); - } - Qs || (512 & t.flags && ol(t)); - } catch (e) { - Sc(t, t.return, e); - } - } - if (t === e) { - Js = null; - break; - } - if (null !== (r = t.sibling)) { - (r.return = t.return), (Js = r); - break; + } + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + throw Error(p(163)); + } + U || (b.flags & 512 && Rj(b)); + } catch (r) { + W(b, b.return, r); } - Js = t.return; } + if (b === a) { + V = null; + break; + } + c = b.sibling; + if (null !== c) { + c.return = b.return; + V = c; + break; + } + V = b.return; } - function xl(e) { - for (; null !== Js; ) { - var t = Js; - if (t === e) { - Js = null; - break; - } - var n = t.sibling; - if (null !== n) { - (n.return = t.return), (Js = n); - break; - } - Js = t.return; + } + function gk(a) { + for (; null !== V; ) { + var b = V; + if (b === a) { + V = null; + break; + } + var c = b.sibling; + if (null !== c) { + c.return = b.return; + V = c; + break; } + V = b.return; } - function kl(e) { - for (; null !== Js; ) { - var t = Js; - try { - switch (t.tag) { - case 0: - case 11: - case 15: - var n = t.return; - try { - rl(4, t); - } catch (e) { - Sc(t, n, e); - } - break; - case 1: - var r = t.stateNode; - if ('function' == typeof r.componentDidMount) { - var o = t.return; - try { - r.componentDidMount(); - } catch (e) { - Sc(t, o, e); - } - } - var a = t.return; - try { - ol(t); - } catch (e) { - Sc(t, a, e); - } - break; - case 5: - var i = t.return; + } + function jk(a) { + for (; null !== V; ) { + var b = V; + try { + switch (b.tag) { + case 0: + case 11: + case 15: + var c = b.return; + try { + Qj(4, b); + } catch (k) { + W(b, c, k); + } + break; + case 1: + var d = b.stateNode; + if ('function' === typeof d.componentDidMount) { + var e = b.return; try { - ol(t); - } catch (e) { - Sc(t, i, e); + d.componentDidMount(); + } catch (k) { + W(b, e, k); } - } - } catch (e) { - Sc(t, t.return, e); - } - if (t === e) { - Js = null; - break; + } + var f = b.return; + try { + Rj(b); + } catch (k) { + W(b, f, k); + } + break; + case 5: + var g = b.return; + try { + Rj(b); + } catch (k) { + W(b, g, k); + } } - var s = t.sibling; - if (null !== s) { - (s.return = t.return), (Js = s); - break; - } - Js = t.return; - } - } - var El, - Sl = Math.ceil, - Cl = x.ReactCurrentDispatcher, - Ol = x.ReactCurrentOwner, - Pl = x.ReactCurrentBatchConfig, - Tl = 0, - Il = null, - Nl = null, - Ml = 0, - Ll = 0, - Rl = Co(0), - Al = 0, - Dl = null, - jl = 0, - zl = 0, - Fl = 0, - _l = null, - Hl = null, - $l = 0, - Bl = 1 / 0, - Wl = null, - Vl = !1, - Ul = null, - ql = null, - Yl = !1, - Kl = null, - Gl = 0, - Ql = 0, - Xl = null, - Jl = -1, - Zl = 0; - function ec() { - return 6 & Tl ? Xe() : -1 !== Jl ? Jl : (Jl = Xe()); - } - function tc(e) { - return 1 & e.mode - ? 2 & Tl && 0 !== Ml - ? Ml & -Ml - : null !== ga.transition - ? (0 === Zl && (Zl = ht()), Zl) - : 0 !== (e = yt) - ? e - : (e = void 0 === (e = window.event) ? 16 : Qt(e.type)) - : 1; - } - function nc(e, t, r, o) { - if (50 < Ql) throw ((Ql = 0), (Xl = null), Error(n(185))); - vt(e, r, o), - (2 & Tl && e === Il) || - (e === Il && (!(2 & Tl) && (zl |= r), 4 === Al && sc(e, Ml)), - rc(e, o), - 1 === r && 0 === Tl && !(1 & t.mode) && ((Bl = Xe() + 500), Ho && Wo())); - } - function rc(e, t) { - var n = e.callbackNode; - !(function (e, t) { - for ( - var n = e.suspendedLanes, r = e.pingedLanes, o = e.expirationTimes, a = e.pendingLanes; - 0 < a; - - ) { - var i = 31 - it(a), - s = 1 << i, - l = o[i]; - -1 === l ? (s & n && !(s & r)) || (o[i] = ft(s, t)) : l <= t && (e.expiredLanes |= s), - (a &= ~s); - } - })(e, t); - var r = pt(e, e === Il ? Ml : 0); - if (0 === r) null !== n && Ke(n), (e.callbackNode = null), (e.callbackPriority = 0); - else if (((t = r & -r), e.callbackPriority !== t)) { - if ((null != n && Ke(n), 1 === t)) - 0 === e.tag - ? (function (e) { - (Ho = !0), Bo(e); - })(lc.bind(null, e)) - : Bo(lc.bind(null, e)), - io(function () { - !(6 & Tl) && Wo(); - }), - (n = null); - else { - switch (wt(r)) { - case 1: - n = Ze; - break; - case 4: - n = et; - break; - case 16: - default: - n = tt; - break; - case 536870912: - n = rt; - } - n = Ic(n, oc.bind(null, e)); - } - (e.callbackPriority = t), (e.callbackNode = n); + } catch (k) { + W(b, b.return, k); + } + if (b === a) { + V = null; + break; } + var h = b.sibling; + if (null !== h) { + h.return = b.return; + V = h; + break; + } + V = b.return; } - function oc(e, t) { - if (((Jl = -1), (Zl = 0), 6 & Tl)) throw Error(n(327)); - var r = e.callbackNode; - if (kc() && e.callbackNode !== r) return null; - var o = pt(e, e === Il ? Ml : 0); - if (0 === o) return null; - if (30 & o || o & e.expiredLanes || t) t = gc(e, o); + } + var lk = Math.ceil, + mk = ua.ReactCurrentDispatcher, + nk = ua.ReactCurrentOwner, + ok = ua.ReactCurrentBatchConfig, + K = 0, + Q = null, + Y = null, + Z = 0, + fj = 0, + ej = Uf(0), + T = 0, + pk = null, + rh = 0, + qk = 0, + rk = 0, + sk = null, + tk = null, + fk = 0, + Gj = Infinity, + uk = null, + Oi = !1, + Pi = null, + Ri = null, + vk = !1, + wk = null, + xk = 0, + yk = 0, + zk = null, + Ak = -1, + Bk = 0; + function R() { + return 0 !== (K & 6) ? B() : -1 !== Ak ? Ak : (Ak = B()); + } + function yi(a) { + if (0 === (a.mode & 1)) return 1; + if (0 !== (K & 2) && 0 !== Z) return Z & -Z; + if (null !== Kg.transition) return 0 === Bk && (Bk = yc()), Bk; + a = C; + if (0 !== a) return a; + a = window.event; + a = void 0 === a ? 16 : jd(a.type); + return a; + } + function gi(a, b, c, d) { + if (50 < yk) throw ((yk = 0), (zk = null), Error(p(185))); + Ac(a, c, d); + if (0 === (K & 2) || a !== Q) + a === Q && (0 === (K & 2) && (qk |= c), 4 === T && Ck(a, Z)), + Dk(a, d), + 1 === c && 0 === K && 0 === (b.mode & 1) && ((Gj = B() + 500), fg && jg()); + } + function Dk(a, b) { + var c = a.callbackNode; + wc(a, b); + var d = uc(a, a === Q ? Z : 0); + if (0 === d) null !== c && bc(c), (a.callbackNode = null), (a.callbackPriority = 0); + else if (((b = d & -d), a.callbackPriority !== b)) { + null != c && bc(c); + if (1 === b) + 0 === a.tag ? ig(Ek.bind(null, a)) : hg(Ek.bind(null, a)), + Jf(function () { + 0 === (K & 6) && jg(); + }), + (c = null); else { - t = o; - var a = Tl; - Tl |= 2; - var i = mc(); - for ((Il === e && Ml === t) || ((Wl = null), (Bl = Xe() + 500), pc(e, t)); ; ) - try { - bc(); + switch (Dc(d)) { + case 1: + c = fc; break; - } catch (t) { - fc(e, t); - } - Pa(), (Cl.current = i), (Tl = a), null !== Nl ? (t = 0) : ((Il = null), (Ml = 0), (t = Al)); + case 4: + c = gc; + break; + case 16: + c = hc; + break; + case 536870912: + c = jc; + break; + default: + c = hc; + } + c = Fk(c, Gk.bind(null, a)); } - if (0 !== t) { - if ((2 === t && 0 !== (a = mt(e)) && ((o = a), (t = ac(e, a))), 1 === t)) - throw ((r = Dl), pc(e, 0), sc(e, o), rc(e, Xe()), r); - if (6 === t) sc(e, o); - else { - if ( - ((a = e.current.alternate), - !( - 30 & o || - (function (e) { - for (var t = e; ; ) { - if (16384 & t.flags) { - var n = t.updateQueue; - if (null !== n && null !== (n = n.stores)) - for (var r = 0; r < n.length; r++) { - var o = n[r], - a = o.getSnapshot; - o = o.value; - try { - if (!sr(a(), o)) return !1; - } catch (e) { - return !1; - } - } - } - if (((n = t.child), 16384 & t.subtreeFlags && null !== n)) - (n.return = t), (t = n); - else { - if (t === e) break; - for (; null === t.sibling; ) { - if (null === t.return || t.return === e) return !0; - t = t.return; - } - (t.sibling.return = t.return), (t = t.sibling); - } - } - return !0; - })(a) || - ((t = gc(e, o)), - 2 === t && ((i = mt(e)), 0 !== i && ((o = i), (t = ac(e, i)))), - 1 !== t) - )) - ) - throw ((r = Dl), pc(e, 0), sc(e, o), rc(e, Xe()), r); - switch (((e.finishedWork = a), (e.finishedLanes = o), t)) { - case 0: - case 1: - throw Error(n(345)); - case 2: - case 5: - xc(e, Hl, Wl); - break; - case 3: - if ((sc(e, o), (130023424 & o) === o && 10 < (t = $l + 500 - Xe()))) { - if (0 !== pt(e, 0)) break; - if (((a = e.suspendedLanes) & o) !== o) { - ec(), (e.pingedLanes |= e.suspendedLanes & a); - break; - } - e.timeoutHandle = ro(xc.bind(null, e, Hl, Wl), t); + a.callbackPriority = b; + a.callbackNode = c; + } + } + function Gk(a, b) { + Ak = -1; + Bk = 0; + if (0 !== (K & 6)) throw Error(p(327)); + var c = a.callbackNode; + if (Hk() && a.callbackNode !== c) return null; + var d = uc(a, a === Q ? Z : 0); + if (0 === d) return null; + if (0 !== (d & 30) || 0 !== (d & a.expiredLanes) || b) b = Ik(a, d); + else { + b = d; + var e = K; + K |= 2; + var f = Jk(); + if (Q !== a || Z !== b) (uk = null), (Gj = B() + 500), Kk(a, b); + do + try { + Lk(); + break; + } catch (h) { + Mk(a, h); + } + while (1); + $g(); + mk.current = f; + K = e; + null !== Y ? (b = 0) : ((Q = null), (Z = 0), (b = T)); + } + if (0 !== b) { + 2 === b && ((e = xc(a)), 0 !== e && ((d = e), (b = Nk(a, e)))); + if (1 === b) throw ((c = pk), Kk(a, 0), Ck(a, d), Dk(a, B()), c); + if (6 === b) Ck(a, d); + else { + e = a.current.alternate; + if ( + 0 === (d & 30) && + !Ok(e) && + ((b = Ik(a, d)), 2 === b && ((f = xc(a)), 0 !== f && ((d = f), (b = Nk(a, f)))), 1 === b) + ) + throw ((c = pk), Kk(a, 0), Ck(a, d), Dk(a, B()), c); + a.finishedWork = e; + a.finishedLanes = d; + switch (b) { + case 0: + case 1: + throw Error(p(345)); + case 2: + Pk(a, tk, uk); + break; + case 3: + Ck(a, d); + if ((d & 130023424) === d && ((b = fk + 500 - B()), 10 < b)) { + if (0 !== uc(a, 0)) break; + e = a.suspendedLanes; + if ((e & d) !== d) { + R(); + a.pingedLanes |= a.suspendedLanes & e; break; } - xc(e, Hl, Wl); + a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), b); break; - case 4: - if ((sc(e, o), (4194240 & o) === o)) break; - for (t = e.eventTimes, a = -1; 0 < o; ) { - var s = 31 - it(o); - (i = 1 << s), (s = t[s]) > a && (a = s), (o &= ~i); - } - if ( - ((o = a), - 10 < - (o = - (120 > (o = Xe() - o) - ? 120 - : 480 > o - ? 480 - : 1080 > o - ? 1080 - : 1920 > o - ? 1920 - : 3e3 > o - ? 3e3 - : 4320 > o - ? 4320 - : 1960 * Sl(o / 1960)) - o)) - ) { - e.timeoutHandle = ro(xc.bind(null, e, Hl, Wl), o); - break; - } - xc(e, Hl, Wl); + } + Pk(a, tk, uk); + break; + case 4: + Ck(a, d); + if ((d & 4194240) === d) break; + b = a.eventTimes; + for (e = -1; 0 < d; ) { + var g = 31 - oc(d); + f = 1 << g; + g = b[g]; + g > e && (e = g); + d &= ~f; + } + d = e; + d = B() - d; + d = + (120 > d + ? 120 + : 480 > d + ? 480 + : 1080 > d + ? 1080 + : 1920 > d + ? 1920 + : 3e3 > d + ? 3e3 + : 4320 > d + ? 4320 + : 1960 * lk(d / 1960)) - d; + if (10 < d) { + a.timeoutHandle = Ff(Pk.bind(null, a, tk, uk), d); break; - default: - throw Error(n(329)); + } + Pk(a, tk, uk); + break; + case 5: + Pk(a, tk, uk); + break; + default: + throw Error(p(329)); + } + } + } + Dk(a, B()); + return a.callbackNode === c ? Gk.bind(null, a) : null; + } + function Nk(a, b) { + var c = sk; + a.current.memoizedState.isDehydrated && (Kk(a, b).flags |= 256); + a = Ik(a, b); + 2 !== a && ((b = tk), (tk = c), null !== b && Fj(b)); + return a; + } + function Fj(a) { + null === tk ? (tk = a) : tk.push.apply(tk, a); + } + function Ok(a) { + for (var b = a; ; ) { + if (b.flags & 16384) { + var c = b.updateQueue; + if (null !== c && ((c = c.stores), null !== c)) + for (var d = 0; d < c.length; d++) { + var e = c[d], + f = e.getSnapshot; + e = e.value; + try { + if (!He(f(), e)) return !1; + } catch (g) { + return !1; + } } + } + c = b.child; + if (b.subtreeFlags & 16384 && null !== c) (c.return = b), (b = c); + else { + if (b === a) break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) return !0; + b = b.return; } + b.sibling.return = b.return; + b = b.sibling; } - return rc(e, Xe()), e.callbackNode === r ? oc.bind(null, e) : null; } - function ac(e, t) { - var n = _l; - return ( - e.current.memoizedState.isDehydrated && (pc(e, t).flags |= 256), - 2 !== (e = gc(e, t)) && ((t = Hl), (Hl = n), null !== t && ic(t)), - e - ); + return !0; + } + function Ck(a, b) { + b &= ~rk; + b &= ~qk; + a.suspendedLanes |= b; + a.pingedLanes &= ~b; + for (a = a.expirationTimes; 0 < b; ) { + var c = 31 - oc(b), + d = 1 << c; + a[c] = -1; + b &= ~d; } - function ic(e) { - null === Hl ? (Hl = e) : Hl.push.apply(Hl, e); + } + function Ek(a) { + if (0 !== (K & 6)) throw Error(p(327)); + Hk(); + var b = uc(a, 0); + if (0 === (b & 1)) return Dk(a, B()), null; + var c = Ik(a, b); + if (0 !== a.tag && 2 === c) { + var d = xc(a); + 0 !== d && ((b = d), (c = Nk(a, d))); + } + if (1 === c) throw ((c = pk), Kk(a, 0), Ck(a, b), Dk(a, B()), c); + if (6 === c) throw Error(p(345)); + a.finishedWork = a.current.alternate; + a.finishedLanes = b; + Pk(a, tk, uk); + Dk(a, B()); + return null; + } + function Qk(a, b) { + var c = K; + K |= 1; + try { + return a(b); + } finally { + (K = c), 0 === K && ((Gj = B() + 500), fg && jg()); } - function sc(e, t) { - for ( - t &= ~Fl, t &= ~zl, e.suspendedLanes |= t, e.pingedLanes &= ~t, e = e.expirationTimes; - 0 < t; - - ) { - var n = 31 - it(t), - r = 1 << n; - (e[n] = -1), (t &= ~r); - } - } - function lc(e) { - if (6 & Tl) throw Error(n(327)); - kc(); - var t = pt(e, 0); - if (!(1 & t)) return rc(e, Xe()), null; - var r = gc(e, t); - if (0 !== e.tag && 2 === r) { - var o = mt(e); - 0 !== o && ((t = o), (r = ac(e, o))); - } - if (1 === r) throw ((r = Dl), pc(e, 0), sc(e, t), rc(e, Xe()), r); - if (6 === r) throw Error(n(345)); - return ( - (e.finishedWork = e.current.alternate), - (e.finishedLanes = t), - xc(e, Hl, Wl), - rc(e, Xe()), - null - ); + } + function Rk(a) { + null !== wk && 0 === wk.tag && 0 === (K & 6) && Hk(); + var b = K; + K |= 1; + var c = ok.transition, + d = C; + try { + if (((ok.transition = null), (C = 1), a)) return a(); + } finally { + (C = d), (ok.transition = c), (K = b), 0 === (K & 6) && jg(); } - function cc(e, t) { - var n = Tl; - Tl |= 1; - try { - return e(t); - } finally { - 0 === (Tl = n) && ((Bl = Xe() + 500), Ho && Wo()); - } + } + function Hj() { + fj = ej.current; + E(ej); + } + function Kk(a, b) { + a.finishedWork = null; + a.finishedLanes = 0; + var c = a.timeoutHandle; + -1 !== c && ((a.timeoutHandle = -1), Gf(c)); + if (null !== Y) + for (c = Y.return; null !== c; ) { + var d = c; + wg(d); + switch (d.tag) { + case 1: + d = d.type.childContextTypes; + null !== d && void 0 !== d && $f(); + break; + case 3: + zh(); + E(Wf); + E(H); + Eh(); + break; + case 5: + Bh(d); + break; + case 4: + zh(); + break; + case 13: + E(L); + break; + case 19: + E(L); + break; + case 10: + ah(d.type._context); + break; + case 22: + case 23: + Hj(); + } + c = c.return; + } + Q = a; + Y = a = Pg(a.current, null); + Z = fj = b; + T = 0; + pk = null; + rk = qk = rh = 0; + tk = sk = null; + if (null !== fh) { + for (b = 0; b < fh.length; b++) + if (((c = fh[b]), (d = c.interleaved), null !== d)) { + c.interleaved = null; + var e = d.next, + f = c.pending; + if (null !== f) { + var g = f.next; + f.next = e; + d.next = g; + } + c.pending = d; + } + fh = null; } - function uc(e) { - null !== Kl && 0 === Kl.tag && !(6 & Tl) && kc(); - var t = Tl; - Tl |= 1; - var n = Pl.transition, - r = yt; + return a; + } + function Mk(a, b) { + do { + var c = Y; try { - if (((Pl.transition = null), (yt = 1), e)) return e(); - } finally { - (yt = r), (Pl.transition = n), !(6 & (Tl = t)) && Wo(); - } - } - function dc() { - (Ll = Rl.current), Oo(Rl); - } - function pc(e, t) { - (e.finishedWork = null), (e.finishedLanes = 0); - var n = e.timeoutHandle; - if ((-1 !== n && ((e.timeoutHandle = -1), oo(n)), null !== Nl)) - for (n = Nl.return; null !== n; ) { - var r = n; - switch ((na(r), r.tag)) { - case 1: - null != (r = r.type.childContextTypes) && Ao(); - break; - case 3: - Xa(), Oo(No), Oo(Io), ri(); - break; - case 5: - Za(r); - break; - case 4: - Xa(); - break; - case 13: - case 19: - Oo(ei); - break; - case 10: - Ta(r.type._context); - break; - case 22: - case 23: - dc(); + $g(); + Fh.current = Rh; + if (Ih) { + for (var d = M.memoizedState; null !== d; ) { + var e = d.queue; + null !== e && (e.pending = null); + d = d.next; } - n = n.return; + Ih = !1; } - if ( - ((Il = e), - (Nl = e = Rc(e.current, null)), - (Ml = Ll = t), - (Al = 0), - (Dl = null), - (Fl = zl = jl = 0), - (Hl = _l = null), - null !== La) - ) { - for (t = 0; t < La.length; t++) - if (null !== (r = (n = La[t]).interleaved)) { - n.interleaved = null; - var o = r.next, - a = n.pending; - if (null !== a) { - var i = a.next; - (a.next = o), (r.next = i); - } - n.pending = r; - } - La = null; - } - return e; - } - function fc(e, t) { - for (;;) { - var r = Nl; - try { - if ((Pa(), (oi.current = Ji), ui)) { - for (var o = si.memoizedState; null !== o; ) { - var a = o.queue; - null !== a && (a.pending = null), (o = o.next); + Hh = 0; + O = N = M = null; + Jh = !1; + Kh = 0; + nk.current = null; + if (null === c || null === c.return) { + T = 1; + pk = b; + Y = null; + break; + } + a: { + var f = a, + g = c.return, + h = c, + k = b; + b = Z; + h.flags |= 32768; + if (null !== k && 'object' === typeof k && 'function' === typeof k.then) { + var l = k, + m = h, + q = m.tag; + if (0 === (m.mode & 1) && (0 === q || 11 === q || 15 === q)) { + var r = m.alternate; + r + ? ((m.updateQueue = r.updateQueue), + (m.memoizedState = r.memoizedState), + (m.lanes = r.lanes)) + : ((m.updateQueue = null), (m.memoizedState = null)); } - ui = !1; - } - if ( - ((ii = 0), - (ci = li = si = null), - (di = !1), - (pi = 0), - (Ol.current = null), - null === r || null === r.return) - ) { - (Al = 1), (Dl = t), (Nl = null); - break; - } - e: { - var i = e, - s = r.return, - l = r, - c = t; - if ( - ((t = Ml), - (l.flags |= 32768), - null !== c && 'object' == typeof c && 'function' == typeof c.then) - ) { - var u = c, - d = l, - p = d.tag; - if (!(1 & d.mode || (0 !== p && 11 !== p && 15 !== p))) { - var f = d.alternate; - f - ? ((d.updateQueue = f.updateQueue), - (d.memoizedState = f.memoizedState), - (d.lanes = f.lanes)) - : ((d.updateQueue = null), (d.memoizedState = null)); - } - var m = gs(s); - if (null !== m) { - (m.flags &= -257), vs(m, s, l, 0, t), 1 & m.mode && hs(i, u, t), (c = u); - var h = (t = m).updateQueue; - if (null === h) { - var g = new Set(); - g.add(c), (t.updateQueue = g); - } else h.add(c); - break e; - } - if (!(1 & t)) { - hs(i, u, t), hc(); - break e; - } - c = Error(n(426)); - } else if (aa && 1 & l.mode) { - var v = gs(s); - if (null !== v) { - !(65536 & v.flags) && (v.flags |= 256), vs(v, s, l, 0, t), ha(cs(c, l)); - break e; + var y = Ui(g); + if (null !== y) { + y.flags &= -257; + Vi(y, g, h, f, b); + y.mode & 1 && Si(f, l, b); + b = y; + k = l; + var n = b.updateQueue; + if (null === n) { + var t = new Set(); + t.add(k); + b.updateQueue = t; + } else n.add(k); + break a; + } else { + if (0 === (b & 1)) { + Si(f, l, b); + tj(); + break a; } + k = Error(p(426)); + } + } else if (I && h.mode & 1) { + var J = Ui(g); + if (null !== J) { + 0 === (J.flags & 65536) && (J.flags |= 256); + Vi(J, g, h, f, b); + Jg(Ji(k, h)); + break a; } - (i = c = cs(c, l)), - 4 !== Al && (Al = 2), - null === _l ? (_l = [i]) : _l.push(i), - (i = s); - do { - switch (i.tag) { - case 3: - (i.flags |= 65536), (t &= -t), (i.lanes |= t), Ba(i, fs(0, c, t)); - break e; - case 1: - l = c; - var b = i.type, - y = i.stateNode; - if ( - !( - 128 & i.flags || - ('function' != typeof b.getDerivedStateFromError && - (null === y || - 'function' != typeof y.componentDidCatch || - (null !== ql && ql.has(y)))) - ) - ) { - (i.flags |= 65536), (t &= -t), (i.lanes |= t), Ba(i, ms(i, l, t)); - break e; - } - } - i = i.return; - } while (null !== i); } - wc(r); - } catch (e) { - (t = e), Nl === r && null !== r && (Nl = r = r.return); - continue; + f = k = Ji(k, h); + 4 !== T && (T = 2); + null === sk ? (sk = [f]) : sk.push(f); + f = g; + do { + switch (f.tag) { + case 3: + f.flags |= 65536; + b &= -b; + f.lanes |= b; + var x = Ni(f, k, b); + ph(f, x); + break a; + case 1: + h = k; + var w = f.type, + u = f.stateNode; + if ( + 0 === (f.flags & 128) && + ('function' === typeof w.getDerivedStateFromError || + (null !== u && + 'function' === typeof u.componentDidCatch && + (null === Ri || !Ri.has(u)))) + ) { + f.flags |= 65536; + b &= -b; + f.lanes |= b; + var F = Qi(f, h, b); + ph(f, F); + break a; + } + } + f = f.return; + } while (null !== f); } - break; + Sk(c); + } catch (na) { + b = na; + Y === c && null !== c && (Y = c = c.return); + continue; } - } - function mc() { - var e = Cl.current; - return (Cl.current = Ji), null === e ? Ji : e; - } - function hc() { - (0 !== Al && 3 !== Al && 2 !== Al) || (Al = 4), - null === Il || (!(268435455 & jl) && !(268435455 & zl)) || sc(Il, Ml); - } - function gc(e, t) { - var r = Tl; - Tl |= 2; - var o = mc(); - for ((Il === e && Ml === t) || ((Wl = null), pc(e, t)); ; ) - try { - vc(); - break; - } catch (t) { - fc(e, t); + break; + } while (1); + } + function Jk() { + var a = mk.current; + mk.current = Rh; + return null === a ? Rh : a; + } + function tj() { + if (0 === T || 3 === T || 2 === T) T = 4; + null === Q || (0 === (rh & 268435455) && 0 === (qk & 268435455)) || Ck(Q, Z); + } + function Ik(a, b) { + var c = K; + K |= 2; + var d = Jk(); + if (Q !== a || Z !== b) (uk = null), Kk(a, b); + do + try { + Tk(); + break; + } catch (e) { + Mk(a, e); + } + while (1); + $g(); + K = c; + mk.current = d; + if (null !== Y) throw Error(p(261)); + Q = null; + Z = 0; + return T; + } + function Tk() { + for (; null !== Y; ) Uk(Y); + } + function Lk() { + for (; null !== Y && !cc(); ) Uk(Y); + } + function Uk(a) { + var b = Vk(a.alternate, a, fj); + a.memoizedProps = a.pendingProps; + null === b ? Sk(a) : (Y = b); + nk.current = null; + } + function Sk(a) { + var b = a; + do { + var c = b.alternate; + a = b.return; + if (0 === (b.flags & 32768)) { + if (((c = Ej(c, b, fj)), null !== c)) { + Y = c; + return; } - if ((Pa(), (Tl = r), (Cl.current = o), null !== Nl)) throw Error(n(261)); - return (Il = null), (Ml = 0), Al; - } - function vc() { - for (; null !== Nl; ) yc(Nl); - } - function bc() { - for (; null !== Nl && !Ge(); ) yc(Nl); - } - function yc(e) { - var t = El(e.alternate, e, Ll); - (e.memoizedProps = e.pendingProps), null === t ? wc(e) : (Nl = t), (Ol.current = null); + } else { + c = Ij(c, b); + if (null !== c) { + c.flags &= 32767; + Y = c; + return; + } + if (null !== a) (a.flags |= 32768), (a.subtreeFlags = 0), (a.deletions = null); + else { + T = 6; + Y = null; + return; + } + } + b = b.sibling; + if (null !== b) { + Y = b; + return; + } + Y = b = a; + } while (null !== b); + 0 === T && (T = 5); + } + function Pk(a, b, c) { + var d = C, + e = ok.transition; + try { + (ok.transition = null), (C = 1), Wk(a, b, c, d); + } finally { + (ok.transition = e), (C = d); } - function wc(e) { - var t = e; - do { - var n = t.alternate; - if (((e = t.return), 32768 & t.flags)) { - if (null !== (n = Ks(n, t))) return (n.flags &= 32767), void (Nl = n); - if (null === e) return (Al = 6), void (Nl = null); - (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null); - } else if (null !== (n = Ys(n, t, Ll))) return void (Nl = n); - if (null !== (t = t.sibling)) return void (Nl = t); - Nl = t = e; - } while (null !== t); - 0 === Al && (Al = 5); - } - function xc(e, t, r) { - var o = yt, - a = Pl.transition; + return null; + } + function Wk(a, b, c, d) { + do Hk(); + while (null !== wk); + if (0 !== (K & 6)) throw Error(p(327)); + c = a.finishedWork; + var e = a.finishedLanes; + if (null === c) return null; + a.finishedWork = null; + a.finishedLanes = 0; + if (c === a.current) throw Error(p(177)); + a.callbackNode = null; + a.callbackPriority = 0; + var f = c.lanes | c.childLanes; + Bc(a, f); + a === Q && ((Y = Q = null), (Z = 0)); + (0 === (c.subtreeFlags & 2064) && 0 === (c.flags & 2064)) || + vk || + ((vk = !0), + Fk(hc, function () { + Hk(); + return null; + })); + f = 0 !== (c.flags & 15990); + if (0 !== (c.subtreeFlags & 15990) || f) { + f = ok.transition; + ok.transition = null; + var g = C; + C = 1; + var h = K; + K |= 4; + nk.current = null; + Oj(a, c); + dk(c, a); + Oe(Df); + dd = !!Cf; + Df = Cf = null; + a.current = c; + hk(c); + dc(); + K = h; + C = g; + ok.transition = f; + } else a.current = c; + vk && ((vk = !1), (wk = a), (xk = e)); + f = a.pendingLanes; + 0 === f && (Ri = null); + mc(c.stateNode); + Dk(a, B()); + if (null !== b) + for (d = a.onRecoverableError, c = 0; c < b.length; c++) + (e = b[c]), d(e.value, { componentStack: e.stack, digest: e.digest }); + if (Oi) throw ((Oi = !1), (a = Pi), (Pi = null), a); + 0 !== (xk & 1) && 0 !== a.tag && Hk(); + f = a.pendingLanes; + 0 !== (f & 1) ? (a === zk ? yk++ : ((yk = 0), (zk = a))) : (yk = 0); + jg(); + return null; + } + function Hk() { + if (null !== wk) { + var a = Dc(xk), + b = ok.transition, + c = C; try { - (Pl.transition = null), - (yt = 1), - (function (e, t, r, o) { - do { - kc(); - } while (null !== Kl); - if (6 & Tl) throw Error(n(327)); - r = e.finishedWork; - var a = e.finishedLanes; - if (null === r) return null; - if (((e.finishedWork = null), (e.finishedLanes = 0), r === e.current)) - throw Error(n(177)); - (e.callbackNode = null), (e.callbackPriority = 0); - var i = r.lanes | r.childLanes; - if ( - ((function (e, t) { - var n = e.pendingLanes & ~t; - (e.pendingLanes = t), - (e.suspendedLanes = 0), - (e.pingedLanes = 0), - (e.expiredLanes &= t), - (e.mutableReadLanes &= t), - (e.entangledLanes &= t), - (t = e.entanglements); - var r = e.eventTimes; - for (e = e.expirationTimes; 0 < n; ) { - var o = 31 - it(n), - a = 1 << o; - (t[o] = 0), (r[o] = -1), (e[o] = -1), (n &= ~a); - } - })(e, i), - e === Il && ((Nl = Il = null), (Ml = 0)), - (!(2064 & r.subtreeFlags) && !(2064 & r.flags)) || - Yl || - ((Yl = !0), - Ic(tt, function () { - return kc(), null; - })), - (i = !!(15990 & r.flags)), - 15990 & r.subtreeFlags || i) - ) { - (i = Pl.transition), (Pl.transition = null); - var s = yt; - yt = 1; - var l = Tl; - (Tl |= 4), - (Ol.current = null), - (function (e, t) { - if (((eo = Vt), fr((e = pr())))) { - if ('selectionStart' in e) - var r = { start: e.selectionStart, end: e.selectionEnd }; - else - e: { - var o = - (r = ((r = e.ownerDocument) && r.defaultView) || window).getSelection && - r.getSelection(); - if (o && 0 !== o.rangeCount) { - r = o.anchorNode; - var a = o.anchorOffset, - i = o.focusNode; - o = o.focusOffset; - try { - r.nodeType, i.nodeType; - } catch (e) { - r = null; - break e; - } - var s = 0, - l = -1, - c = -1, - u = 0, - d = 0, - p = e, - f = null; - t: for (;;) { - for ( - var m; - p !== r || (0 !== a && 3 !== p.nodeType) || (l = s + a), - p !== i || (0 !== o && 3 !== p.nodeType) || (c = s + o), - 3 === p.nodeType && (s += p.nodeValue.length), - null !== (m = p.firstChild); - - ) - (f = p), (p = m); - for (;;) { - if (p === e) break t; - if ( - (f === r && ++u === a && (l = s), - f === i && ++d === o && (c = s), - null !== (m = p.nextSibling)) - ) - break; - f = (p = f).parentNode; - } - p = m; - } - r = -1 === l || -1 === c ? null : { start: l, end: c }; - } else r = null; - } - r = r || { start: 0, end: 0 }; - } else r = null; - for (to = { focusedElem: e, selectionRange: r }, Vt = !1, Js = t; null !== Js; ) - if (((e = (t = Js).child), 1028 & t.subtreeFlags && null !== e)) - (e.return = t), (Js = e); + ok.transition = null; + C = 16 > a ? 16 : a; + if (null === wk) var d = !1; + else { + a = wk; + wk = null; + xk = 0; + if (0 !== (K & 6)) throw Error(p(331)); + var e = K; + K |= 4; + for (V = a.current; null !== V; ) { + var f = V, + g = f.child; + if (0 !== (V.flags & 16)) { + var h = f.deletions; + if (null !== h) { + for (var k = 0; k < h.length; k++) { + var l = h[k]; + for (V = l; null !== V; ) { + var m = V; + switch (m.tag) { + case 0: + case 11: + case 15: + Pj(8, m, f); + } + var q = m.child; + if (null !== q) (q.return = m), (V = q); else - for (; null !== Js; ) { - t = Js; - try { - var h = t.alternate; - if (1024 & t.flags) - switch (t.tag) { - case 0: - case 11: - case 15: - case 5: - case 6: - case 4: - case 17: - break; - case 1: - if (null !== h) { - var g = h.memoizedProps, - v = h.memoizedState, - b = t.stateNode, - y = b.getSnapshotBeforeUpdate( - t.elementType === t.type ? g : ns(t.type, g), - v - ); - b.__reactInternalSnapshotBeforeUpdate = y; - } - break; - case 3: - var w = t.stateNode.containerInfo; - 1 === w.nodeType - ? (w.textContent = '') - : 9 === w.nodeType && - w.documentElement && - w.removeChild(w.documentElement); - break; - default: - throw Error(n(163)); - } - } catch (e) { - Sc(t, t.return, e); + for (; null !== V; ) { + m = V; + var r = m.sibling, + y = m.return; + Sj(m); + if (m === l) { + V = null; + break; } - if (null !== (e = t.sibling)) { - (e.return = t.return), (Js = e); + if (null !== r) { + r.return = y; + V = r; break; } - Js = t.return; + V = y; } - (h = tl), (tl = !1); - })(e, r), - gl(r, e), - mr(to), - (Vt = !!eo), - (to = eo = null), - (e.current = r), - bl(r), - Qe(), - (Tl = l), - (yt = s), - (Pl.transition = i); - } else e.current = r; - if ( - (Yl && ((Yl = !1), (Kl = e), (Gl = a)), - 0 === (i = e.pendingLanes) && (ql = null), - (function (e) { - if (at && 'function' == typeof at.onCommitFiberRoot) - try { - at.onCommitFiberRoot(ot, e, void 0, !(128 & ~e.current.flags)); - } catch (e) {} - })(r.stateNode), - rc(e, Xe()), - null !== t) - ) - for (o = e.onRecoverableError, r = 0; r < t.length; r++) - o((a = t[r]).value, { componentStack: a.stack, digest: a.digest }); - if (Vl) throw ((Vl = !1), (e = Ul), (Ul = null), e); - !!(1 & Gl) && 0 !== e.tag && kc(), - 1 & (i = e.pendingLanes) ? (e === Xl ? Ql++ : ((Ql = 0), (Xl = e))) : (Ql = 0), - Wo(); - })(e, t, r, o); - } finally { - (Pl.transition = a), (yt = o); - } - return null; - } - function kc() { - if (null !== Kl) { - var e = wt(Gl), - t = Pl.transition, - r = yt; - try { - if (((Pl.transition = null), (yt = 16 > e ? 16 : e), null === Kl)) var o = !1; - else { - if (((e = Kl), (Kl = null), (Gl = 0), 6 & Tl)) throw Error(n(331)); - var a = Tl; - for (Tl |= 4, Js = e.current; null !== Js; ) { - var i = Js, - s = i.child; - if (16 & Js.flags) { - var l = i.deletions; - if (null !== l) { - for (var c = 0; c < l.length; c++) { - var u = l[c]; - for (Js = u; null !== Js; ) { - var d = Js; - switch (d.tag) { - case 0: - case 11: - case 15: - nl(8, d, i); - } - var p = d.child; - if (null !== p) (p.return = d), (Js = p); - else - for (; null !== Js; ) { - var f = (d = Js).sibling, - m = d.return; - if ((al(d), d === u)) { - Js = null; - break; - } - if (null !== f) { - (f.return = m), (Js = f); - break; - } - Js = m; - } - } } - var h = i.alternate; - if (null !== h) { - var g = h.child; - if (null !== g) { - h.child = null; - do { - var v = g.sibling; - (g.sibling = null), (g = v); - } while (null !== g); - } + } + var n = f.alternate; + if (null !== n) { + var t = n.child; + if (null !== t) { + n.child = null; + do { + var J = t.sibling; + t.sibling = null; + t = J; + } while (null !== t); } - Js = i; } + V = f; } - if (2064 & i.subtreeFlags && null !== s) (s.return = i), (Js = s); - else - e: for (; null !== Js; ) { - if (2048 & (i = Js).flags) - switch (i.tag) { + } + if (0 !== (f.subtreeFlags & 2064) && null !== g) (g.return = f), (V = g); + else + b: for (; null !== V; ) { + f = V; + if (0 !== (f.flags & 2048)) + switch (f.tag) { + case 0: + case 11: + case 15: + Pj(9, f, f.return); + } + var x = f.sibling; + if (null !== x) { + x.return = f.return; + V = x; + break b; + } + V = f.return; + } + } + var w = a.current; + for (V = w; null !== V; ) { + g = V; + var u = g.child; + if (0 !== (g.subtreeFlags & 2064) && null !== u) (u.return = g), (V = u); + else + b: for (g = w; null !== V; ) { + h = V; + if (0 !== (h.flags & 2048)) + try { + switch (h.tag) { case 0: case 11: case 15: - nl(9, i, i.return); + Qj(9, h); } - var b = i.sibling; - if (null !== b) { - (b.return = i.return), (Js = b); - break e; + } catch (na) { + W(h, h.return, na); } - Js = i.return; + if (h === g) { + V = null; + break b; } - } - var y = e.current; - for (Js = y; null !== Js; ) { - var w = (s = Js).child; - if (2064 & s.subtreeFlags && null !== w) (w.return = s), (Js = w); - else - e: for (s = y; null !== Js; ) { - if (2048 & (l = Js).flags) - try { - switch (l.tag) { - case 0: - case 11: - case 15: - rl(9, l); - } - } catch (e) { - Sc(l, l.return, e); - } - if (l === s) { - Js = null; - break e; - } - var x = l.sibling; - if (null !== x) { - (x.return = l.return), (Js = x); - break e; - } - Js = l.return; + var F = h.sibling; + if (null !== F) { + F.return = h.return; + V = F; + break b; } - } - if (((Tl = a), Wo(), at && 'function' == typeof at.onPostCommitFiberRoot)) - try { - at.onPostCommitFiberRoot(ot, e); - } catch (e) {} - o = !0; + V = h.return; + } } - return o; - } finally { - (yt = r), (Pl.transition = t); + K = e; + jg(); + if (lc && 'function' === typeof lc.onPostCommitFiberRoot) + try { + lc.onPostCommitFiberRoot(kc, a); + } catch (na) {} + d = !0; } + return d; + } finally { + (C = c), (ok.transition = b); } - return !1; - } - function Ec(e, t, n) { - (e = Ha(e, (t = fs(0, (t = cs(n, t)), 1)), 1)), - (t = ec()), - null !== e && (vt(e, 1, t), rc(e, t)); } - function Sc(e, t, n) { - if (3 === e.tag) Ec(e, e, n); - else - for (; null !== t; ) { - if (3 === t.tag) { - Ec(t, e, n); + return !1; + } + function Xk(a, b, c) { + b = Ji(c, b); + b = Ni(a, b, 1); + a = nh(a, b, 1); + b = R(); + null !== a && (Ac(a, 1, b), Dk(a, b)); + } + function W(a, b, c) { + if (3 === a.tag) Xk(a, a, c); + else + for (; null !== b; ) { + if (3 === b.tag) { + Xk(b, a, c); + break; + } else if (1 === b.tag) { + var d = b.stateNode; + if ( + 'function' === typeof b.type.getDerivedStateFromError || + ('function' === typeof d.componentDidCatch && (null === Ri || !Ri.has(d))) + ) { + a = Ji(c, a); + a = Qi(b, a, 1); + b = nh(b, a, 1); + a = R(); + null !== b && (Ac(b, 1, a), Dk(b, a)); break; } - if (1 === t.tag) { - var r = t.stateNode; + } + b = b.return; + } + } + function Ti(a, b, c) { + var d = a.pingCache; + null !== d && d.delete(b); + b = R(); + a.pingedLanes |= a.suspendedLanes & c; + Q === a && + (Z & c) === c && + (4 === T || (3 === T && (Z & 130023424) === Z && 500 > B() - fk) ? Kk(a, 0) : (rk |= c)); + Dk(a, b); + } + function Yk(a, b) { + 0 === b && + (0 === (a.mode & 1) + ? (b = 1) + : ((b = sc), (sc <<= 1), 0 === (sc & 130023424) && (sc = 4194304))); + var c = R(); + a = ih(a, b); + null !== a && (Ac(a, b, c), Dk(a, c)); + } + function uj(a) { + var b = a.memoizedState, + c = 0; + null !== b && (c = b.retryLane); + Yk(a, c); + } + function bk(a, b) { + var c = 0; + switch (a.tag) { + case 13: + var d = a.stateNode; + var e = a.memoizedState; + null !== e && (c = e.retryLane); + break; + case 19: + d = a.stateNode; + break; + default: + throw Error(p(314)); + } + null !== d && d.delete(b); + Yk(a, c); + } + var Vk; + Vk = function (a, b, c) { + if (null !== a) + if (a.memoizedProps !== b.pendingProps || Wf.current) dh = !0; + else { + if (0 === (a.lanes & c) && 0 === (b.flags & 128)) return (dh = !1), yj(a, b, c); + dh = 0 !== (a.flags & 131072) ? !0 : !1; + } + else (dh = !1), I && 0 !== (b.flags & 1048576) && ug(b, ng, b.index); + b.lanes = 0; + switch (b.tag) { + case 2: + var d = b.type; + ij(a, b); + a = b.pendingProps; + var e = Yf(b, H.current); + ch(b, c); + e = Nh(null, b, d, a, e, c); + var f = Sh(); + b.flags |= 1; + 'object' === typeof e && + null !== e && + 'function' === typeof e.render && + void 0 === e.$$typeof + ? ((b.tag = 1), + (b.memoizedState = null), + (b.updateQueue = null), + Zf(d) ? ((f = !0), cg(b)) : (f = !1), + (b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null), + kh(b), + (e.updater = Ei), + (b.stateNode = e), + (e._reactInternals = b), + Ii(b, d, a, c), + (b = jj(null, b, d, !0, f, c))) + : ((b.tag = 0), I && f && vg(b), Xi(null, b, e, c), (b = b.child)); + return b; + case 16: + d = b.elementType; + a: { + ij(a, b); + a = b.pendingProps; + e = d._init; + d = e(d._payload); + b.type = d; + e = b.tag = Zk(d); + a = Ci(d, a); + switch (e) { + case 0: + b = cj(null, b, d, a, c); + break a; + case 1: + b = hj(null, b, d, a, c); + break a; + case 11: + b = Yi(null, b, d, a, c); + break a; + case 14: + b = $i(null, b, d, Ci(d.type, a), c); + break a; + } + throw Error(p(306, d, '')); + } + return b; + case 0: + return ( + (d = b.type), + (e = b.pendingProps), + (e = b.elementType === d ? e : Ci(d, e)), + cj(a, b, d, e, c) + ); + case 1: + return ( + (d = b.type), + (e = b.pendingProps), + (e = b.elementType === d ? e : Ci(d, e)), + hj(a, b, d, e, c) + ); + case 3: + a: { + kj(b); + if (null === a) throw Error(p(387)); + d = b.pendingProps; + f = b.memoizedState; + e = f.element; + lh(a, b); + qh(b, d, null, c); + var g = b.memoizedState; + d = g.element; + if (f.isDehydrated) if ( - 'function' == typeof t.type.getDerivedStateFromError || - ('function' == typeof r.componentDidCatch && (null === ql || !ql.has(r))) + ((f = { + element: d, + isDehydrated: !1, + cache: g.cache, + pendingSuspenseBoundaries: g.pendingSuspenseBoundaries, + transitions: g.transitions, + }), + (b.updateQueue.baseState = f), + (b.memoizedState = f), + b.flags & 256) ) { - (t = Ha(t, (e = ms(t, (e = cs(n, e)), 1)), 1)), - (e = ec()), - null !== t && (vt(t, 1, e), rc(t, e)); - break; + e = Ji(Error(p(423)), b); + b = lj(a, b, d, c, e); + break a; + } else if (d !== e) { + e = Ji(Error(p(424)), b); + b = lj(a, b, d, c, e); + break a; + } else + for ( + yg = Lf(b.stateNode.containerInfo.firstChild), + xg = b, + I = !0, + zg = null, + c = Vg(b, null, d, c), + b.child = c; + c; + + ) + (c.flags = (c.flags & -3) | 4096), (c = c.sibling); + else { + Ig(); + if (d === e) { + b = Zi(a, b, c); + break a; } + Xi(a, b, d, c); } - t = t.return; - } - } - function Cc(e, t, n) { - var r = e.pingCache; - null !== r && r.delete(t), - (t = ec()), - (e.pingedLanes |= e.suspendedLanes & n), - Il === e && - (Ml & n) === n && - (4 === Al || (3 === Al && (130023424 & Ml) === Ml && 500 > Xe() - $l) - ? pc(e, 0) - : (Fl |= n)), - rc(e, t); - } - function Oc(e, t) { - 0 === t && (1 & e.mode ? ((t = ut), !(130023424 & (ut <<= 1)) && (ut = 4194304)) : (t = 1)); - var n = ec(); - null !== (e = Da(e, t)) && (vt(e, t, n), rc(e, n)); - } - function Pc(e) { - var t = e.memoizedState, - n = 0; - null !== t && (n = t.retryLane), Oc(e, n); - } - function Tc(e, t) { - var r = 0; - switch (e.tag) { - case 13: - var o = e.stateNode, - a = e.memoizedState; - null !== a && (r = a.retryLane); - break; - case 19: - o = e.stateNode; + b = b.child; + } + return b; + case 5: + return ( + Ah(b), + null === a && Eg(b), + (d = b.type), + (e = b.pendingProps), + (f = null !== a ? a.memoizedProps : null), + (g = e.children), + Ef(d, e) ? (g = null) : null !== f && Ef(d, f) && (b.flags |= 32), + gj(a, b), + Xi(a, b, g, c), + b.child + ); + case 6: + return null === a && Eg(b), null; + case 13: + return oj(a, b, c); + case 4: + return ( + yh(b, b.stateNode.containerInfo), + (d = b.pendingProps), + null === a ? (b.child = Ug(b, null, d, c)) : Xi(a, b, d, c), + b.child + ); + case 11: + return ( + (d = b.type), + (e = b.pendingProps), + (e = b.elementType === d ? e : Ci(d, e)), + Yi(a, b, d, e, c) + ); + case 7: + return Xi(a, b, b.pendingProps, c), b.child; + case 8: + return Xi(a, b, b.pendingProps.children, c), b.child; + case 12: + return Xi(a, b, b.pendingProps.children, c), b.child; + case 10: + a: { + d = b.type._context; + e = b.pendingProps; + f = b.memoizedProps; + g = e.value; + G(Wg, d._currentValue); + d._currentValue = g; + if (null !== f) + if (He(f.value, g)) { + if (f.children === e.children && !Wf.current) { + b = Zi(a, b, c); + break a; + } + } else + for (f = b.child, null !== f && (f.return = b); null !== f; ) { + var h = f.dependencies; + if (null !== h) { + g = f.child; + for (var k = h.firstContext; null !== k; ) { + if (k.context === d) { + if (1 === f.tag) { + k = mh(-1, c & -c); + k.tag = 2; + var l = f.updateQueue; + if (null !== l) { + l = l.shared; + var m = l.pending; + null === m ? (k.next = k) : ((k.next = m.next), (m.next = k)); + l.pending = k; + } + } + f.lanes |= c; + k = f.alternate; + null !== k && (k.lanes |= c); + bh(f.return, c, b); + h.lanes |= c; + break; + } + k = k.next; + } + } else if (10 === f.tag) g = f.type === b.type ? null : f.child; + else if (18 === f.tag) { + g = f.return; + if (null === g) throw Error(p(341)); + g.lanes |= c; + h = g.alternate; + null !== h && (h.lanes |= c); + bh(g, c, b); + g = f.sibling; + } else g = f.child; + if (null !== g) g.return = f; + else + for (g = f; null !== g; ) { + if (g === b) { + g = null; + break; + } + f = g.sibling; + if (null !== f) { + f.return = g.return; + g = f; + break; + } + g = g.return; + } + f = g; + } + Xi(a, b, e.children, c); + b = b.child; + } + return b; + case 9: + return ( + (e = b.type), + (d = b.pendingProps.children), + ch(b, c), + (e = eh(e)), + (d = d(e)), + (b.flags |= 1), + Xi(a, b, d, c), + b.child + ); + case 14: + return (d = b.type), (e = Ci(d, b.pendingProps)), (e = Ci(d.type, e)), $i(a, b, d, e, c); + case 15: + return bj(a, b, b.type, b.pendingProps, c); + case 17: + return ( + (d = b.type), + (e = b.pendingProps), + (e = b.elementType === d ? e : Ci(d, e)), + ij(a, b), + (b.tag = 1), + Zf(d) ? ((a = !0), cg(b)) : (a = !1), + ch(b, c), + Gi(b, d, e), + Ii(b, d, e, c), + jj(null, b, d, !0, a, c) + ); + case 19: + return xj(a, b, c); + case 22: + return dj(a, b, c); + } + throw Error(p(156, b.tag)); + }; + function Fk(a, b) { + return ac(a, b); + } + function $k(a, b, c, d) { + this.tag = a; + this.key = c; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = b; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = d; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function Bg(a, b, c, d) { + return new $k(a, b, c, d); + } + function aj(a) { + a = a.prototype; + return !(!a || !a.isReactComponent); + } + function Zk(a) { + if ('function' === typeof a) return aj(a) ? 1 : 0; + if (void 0 !== a && null !== a) { + a = a.$$typeof; + if (a === Da) return 11; + if (a === Ga) return 14; + } + return 2; + } + function Pg(a, b) { + var c = a.alternate; + null === c + ? ((c = Bg(a.tag, b, a.key, a.mode)), + (c.elementType = a.elementType), + (c.type = a.type), + (c.stateNode = a.stateNode), + (c.alternate = a), + (a.alternate = c)) + : ((c.pendingProps = b), + (c.type = a.type), + (c.flags = 0), + (c.subtreeFlags = 0), + (c.deletions = null)); + c.flags = a.flags & 14680064; + c.childLanes = a.childLanes; + c.lanes = a.lanes; + c.child = a.child; + c.memoizedProps = a.memoizedProps; + c.memoizedState = a.memoizedState; + c.updateQueue = a.updateQueue; + b = a.dependencies; + c.dependencies = null === b ? null : { lanes: b.lanes, firstContext: b.firstContext }; + c.sibling = a.sibling; + c.index = a.index; + c.ref = a.ref; + return c; + } + function Rg(a, b, c, d, e, f) { + var g = 2; + d = a; + if ('function' === typeof a) aj(a) && (g = 1); + else if ('string' === typeof a) g = 5; + else + a: switch (a) { + case ya: + return Tg(c.children, e, f, b); + case za: + g = 8; + e |= 8; break; + case Aa: + return (a = Bg(12, c, b, e | 2)), (a.elementType = Aa), (a.lanes = f), a; + case Ea: + return (a = Bg(13, c, b, e)), (a.elementType = Ea), (a.lanes = f), a; + case Fa: + return (a = Bg(19, c, b, e)), (a.elementType = Fa), (a.lanes = f), a; + case Ia: + return pj(c, e, f, b); default: - throw Error(n(314)); - } - null !== o && o.delete(t), Oc(e, r); - } - function Ic(e, t) { - return Ye(e, t); - } - function Nc(e, t, n, r) { - (this.tag = e), - (this.key = n), - (this.sibling = - this.child = - this.return = - this.stateNode = - this.type = - this.elementType = - null), - (this.index = 0), - (this.ref = null), - (this.pendingProps = t), - (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), - (this.mode = r), - (this.subtreeFlags = this.flags = 0), - (this.deletions = null), - (this.childLanes = this.lanes = 0), - (this.alternate = null); - } - function Mc(e, t, n, r) { - return new Nc(e, t, n, r); - } - function Lc(e) { - return !(!(e = e.prototype) || !e.isReactComponent); - } - function Rc(e, t) { - var n = e.alternate; - return ( - null === n - ? (((n = Mc(e.tag, t, e.key, e.mode)).elementType = e.elementType), - (n.type = e.type), - (n.stateNode = e.stateNode), - (n.alternate = e), - (e.alternate = n)) - : ((n.pendingProps = t), - (n.type = e.type), - (n.flags = 0), - (n.subtreeFlags = 0), - (n.deletions = null)), - (n.flags = 14680064 & e.flags), - (n.childLanes = e.childLanes), - (n.lanes = e.lanes), - (n.child = e.child), - (n.memoizedProps = e.memoizedProps), - (n.memoizedState = e.memoizedState), - (n.updateQueue = e.updateQueue), - (t = e.dependencies), - (n.dependencies = null === t ? null : { lanes: t.lanes, firstContext: t.firstContext }), - (n.sibling = e.sibling), - (n.index = e.index), - (n.ref = e.ref), - n - ); - } - function Ac(e, t, r, o, a, i) { - var s = 2; - if (((o = e), 'function' == typeof e)) Lc(e) && (s = 1); - else if ('string' == typeof e) s = 5; - else - e: switch (e) { - case S: - return Dc(r.children, a, i, t); - case C: - (s = 8), (a |= 8); - break; - case O: - return ((e = Mc(12, r, t, 2 | a)).elementType = O), (e.lanes = i), e; - case N: - return ((e = Mc(13, r, t, a)).elementType = N), (e.lanes = i), e; - case M: - return ((e = Mc(19, r, t, a)).elementType = M), (e.lanes = i), e; - case A: - return jc(r, a, i, t); - default: - if ('object' == typeof e && null !== e) - switch (e.$$typeof) { - case P: - s = 10; - break e; - case T: - s = 9; - break e; - case I: - s = 11; - break e; - case L: - s = 14; - break e; - case R: - (s = 16), (o = null); - break e; - } - throw Error(n(130, null == e ? e : typeof e, '')); + if ('object' === typeof a && null !== a) + switch (a.$$typeof) { + case Ba: + g = 10; + break a; + case Ca: + g = 9; + break a; + case Da: + g = 11; + break a; + case Ga: + g = 14; + break a; + case Ha: + g = 16; + d = null; + break a; + } + throw Error(p(130, null == a ? a : typeof a, '')); + } + b = Bg(g, c, b, e); + b.elementType = a; + b.type = d; + b.lanes = f; + return b; + } + function Tg(a, b, c, d) { + a = Bg(7, a, d, b); + a.lanes = c; + return a; + } + function pj(a, b, c, d) { + a = Bg(22, a, d, b); + a.elementType = Ia; + a.lanes = c; + a.stateNode = { isHidden: !1 }; + return a; + } + function Qg(a, b, c) { + a = Bg(6, a, null, b); + a.lanes = c; + return a; + } + function Sg(a, b, c) { + b = Bg(4, null !== a.children ? a.children : [], a.key, b); + b.lanes = c; + b.stateNode = { + containerInfo: a.containerInfo, + pendingChildren: null, + implementation: a.implementation, + }; + return b; + } + function al(a, b, c, d, e) { + this.tag = b; + this.containerInfo = a; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = zc(0); + this.expirationTimes = zc(-1); + this.entangledLanes = + this.finishedLanes = + this.mutableReadLanes = + this.expiredLanes = + this.pingedLanes = + this.suspendedLanes = + this.pendingLanes = + 0; + this.entanglements = zc(0); + this.identifierPrefix = d; + this.onRecoverableError = e; + this.mutableSourceEagerHydrationData = null; + } + function bl(a, b, c, d, e, f, g, h, k) { + a = new al(a, b, c, h, k); + 1 === b ? ((b = 1), !0 === f && (b |= 8)) : (b = 0); + f = Bg(3, null, null, b); + a.current = f; + f.stateNode = a; + f.memoizedState = { + element: d, + isDehydrated: c, + cache: null, + transitions: null, + pendingSuspenseBoundaries: null, + }; + kh(f); + return a; + } + function cl(a, b, c) { + var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; + return { + $$typeof: wa, + key: null == d ? null : '' + d, + children: a, + containerInfo: b, + implementation: c, + }; + } + function dl(a) { + if (!a) return Vf; + a = a._reactInternals; + a: { + if (Vb(a) !== a || 1 !== a.tag) throw Error(p(170)); + var b = a; + do { + switch (b.tag) { + case 3: + b = b.stateNode.context; + break a; + case 1: + if (Zf(b.type)) { + b = b.stateNode.__reactInternalMemoizedMergedChildContext; + break a; + } } - return ((t = Mc(s, r, t, a)).elementType = e), (t.type = o), (t.lanes = i), t; + b = b.return; + } while (null !== b); + throw Error(p(171)); } - function Dc(e, t, n, r) { - return ((e = Mc(7, e, r, t)).lanes = n), e; + if (1 === a.tag) { + var c = a.type; + if (Zf(c)) return bg(a, c, b); } - function jc(e, t, n, r) { - return ( - ((e = Mc(22, e, r, t)).elementType = A), (e.lanes = n), (e.stateNode = { isHidden: !1 }), e - ); + return b; + } + function el(a, b, c, d, e, f, g, h, k) { + a = bl(c, d, !0, a, e, f, g, h, k); + a.context = dl(null); + c = a.current; + d = R(); + e = yi(c); + f = mh(d, e); + f.callback = void 0 !== b && null !== b ? b : null; + nh(c, f, e); + a.current.lanes = e; + Ac(a, e, d); + Dk(a, d); + return a; + } + function fl(a, b, c, d) { + var e = b.current, + f = R(), + g = yi(e); + c = dl(c); + null === b.context ? (b.context = c) : (b.pendingContext = c); + b = mh(f, g); + b.payload = { element: a }; + d = void 0 === d ? null : d; + null !== d && (b.callback = d); + a = nh(e, b, g); + null !== a && (gi(a, e, g, f), oh(a, e, g)); + return g; + } + function gl(a) { + a = a.current; + if (!a.child) return null; + switch (a.child.tag) { + case 5: + return a.child.stateNode; + default: + return a.child.stateNode; } - function zc(e, t, n) { - return ((e = Mc(6, e, null, t)).lanes = n), e; + } + function hl(a, b) { + a = a.memoizedState; + if (null !== a && null !== a.dehydrated) { + var c = a.retryLane; + a.retryLane = 0 !== c && c < b ? c : b; } - function Fc(e, t, n) { - return ( - ((t = Mc(4, null !== e.children ? e.children : [], e.key, t)).lanes = n), - (t.stateNode = { - containerInfo: e.containerInfo, - pendingChildren: null, - implementation: e.implementation, - }), - t - ); + } + function il(a, b) { + hl(a, b); + (a = a.alternate) && hl(a, b); + } + function jl() { + return null; + } + var kl = + 'function' === typeof reportError + ? reportError + : function (a) { + console.error(a); + }; + function ll(a) { + this._internalRoot = a; + } + ml.prototype.render = ll.prototype.render = function (a) { + var b = this._internalRoot; + if (null === b) throw Error(p(409)); + fl(a, b, null, null); + }; + ml.prototype.unmount = ll.prototype.unmount = function () { + var a = this._internalRoot; + if (null !== a) { + this._internalRoot = null; + var b = a.containerInfo; + Rk(function () { + fl(null, a, null, null); + }); + b[uf] = null; } - function _c(e, t, n, r, o) { - (this.tag = t), - (this.containerInfo = e), - (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), - (this.timeoutHandle = -1), - (this.callbackNode = this.pendingContext = this.context = null), - (this.callbackPriority = 0), - (this.eventTimes = gt(0)), - (this.expirationTimes = gt(-1)), - (this.entangledLanes = - this.finishedLanes = - this.mutableReadLanes = - this.expiredLanes = - this.pingedLanes = - this.suspendedLanes = - this.pendingLanes = - 0), - (this.entanglements = gt(0)), - (this.identifierPrefix = r), - (this.onRecoverableError = o), - (this.mutableSourceEagerHydrationData = null); - } - function Hc(e, t, n, r, o, a, i, s, l) { - return ( - (e = new _c(e, t, n, s, l)), - 1 === t ? ((t = 1), !0 === a && (t |= 8)) : (t = 0), - (a = Mc(3, null, null, t)), - (e.current = a), - (a.stateNode = e), - (a.memoizedState = { - element: r, - isDehydrated: n, - cache: null, - transitions: null, - pendingSuspenseBoundaries: null, - }), - za(a), - e - ); + }; + function ml(a) { + this._internalRoot = a; + } + ml.prototype.unstable_scheduleHydration = function (a) { + if (a) { + var b = Hc(); + a = { blockedOn: null, target: a, priority: b }; + for (var c = 0; c < Qc.length && 0 !== b && b < Qc[c].priority; c++); + Qc.splice(c, 0, a); + 0 === c && Vc(a); } - function $c(e) { - if (!e) return To; - e: { - if (Be((e = e._reactInternals)) !== e || 1 !== e.tag) throw Error(n(170)); - var t = e; - do { - switch (t.tag) { - case 3: - t = t.stateNode.context; - break e; - case 1: - if (Ro(t.type)) { - t = t.stateNode.__reactInternalMemoizedMergedChildContext; - break e; - } - } - t = t.return; - } while (null !== t); - throw Error(n(171)); - } - if (1 === e.tag) { - var r = e.type; - if (Ro(r)) return jo(e, r, t); + }; + function nl(a) { + return !(!a || (1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType)); + } + function ol(a) { + return !( + !a || + (1 !== a.nodeType && + 9 !== a.nodeType && + 11 !== a.nodeType && + (8 !== a.nodeType || ' react-mount-point-unstable ' !== a.nodeValue)) + ); + } + function pl() {} + function ql(a, b, c, d, e) { + if (e) { + if ('function' === typeof d) { + var f = d; + d = function () { + var a = gl(g); + f.call(a); + }; } - return t; - } - function Bc(e, t, n, r, o, a, i, s, l) { - return ( - ((e = Hc(n, r, !0, e, 0, a, 0, s, l)).context = $c(null)), - (n = e.current), - ((a = _a((r = ec()), (o = tc(n)))).callback = null != t ? t : null), - Ha(n, a, o), - (e.current.lanes = o), - vt(e, o, r), - rc(e, r), - e - ); + var g = el(b, d, a, 0, null, !1, !1, '', pl); + a._reactRootContainer = g; + a[uf] = g.current; + sf(8 === a.nodeType ? a.parentNode : a); + Rk(); + return g; + } + for (; (e = a.lastChild); ) a.removeChild(e); + if ('function' === typeof d) { + var h = d; + d = function () { + var a = gl(k); + h.call(a); + }; } - function Wc(e, t, n, r) { - var o = t.current, - a = ec(), - i = tc(o); - return ( - (n = $c(n)), - null === t.context ? (t.context = n) : (t.pendingContext = n), - ((t = _a(a, i)).payload = { element: e }), - null !== (r = void 0 === r ? null : r) && (t.callback = r), - null !== (e = Ha(o, t, i)) && (nc(e, o, i, a), $a(e, o, i)), - i - ); + var k = bl(a, 0, !1, null, null, !1, !1, '', pl); + a._reactRootContainer = k; + a[uf] = k.current; + sf(8 === a.nodeType ? a.parentNode : a); + Rk(function () { + fl(b, k, c, d); + }); + return k; + } + function rl(a, b, c, d, e) { + var f = c._reactRootContainer; + if (f) { + var g = f; + if ('function' === typeof e) { + var h = e; + e = function () { + var a = gl(g); + h.call(a); + }; + } + fl(b, g, a, e); + } else g = ql(c, b, a, e, d); + return gl(g); + } + Ec = function (a) { + switch (a.tag) { + case 3: + var b = a.stateNode; + if (b.current.memoizedState.isDehydrated) { + var c = tc(b.pendingLanes); + 0 !== c && (Cc(b, c | 1), Dk(b, B()), 0 === (K & 6) && ((Gj = B() + 500), jg())); + } + break; + case 13: + Rk(function () { + var b = ih(a, 1); + if (null !== b) { + var c = R(); + gi(b, a, 1, c); + } + }), + il(a, 1); } - function Vc(e) { - return (e = e.current).child ? (e.child.tag, e.child.stateNode) : null; + }; + Fc = function (a) { + if (13 === a.tag) { + var b = ih(a, 134217728); + if (null !== b) { + var c = R(); + gi(b, a, 134217728, c); + } + il(a, 134217728); } - function Uc(e, t) { - if (null !== (e = e.memoizedState) && null !== e.dehydrated) { - var n = e.retryLane; - e.retryLane = 0 !== n && n < t ? n : t; + }; + Gc = function (a) { + if (13 === a.tag) { + var b = yi(a), + c = ih(a, b); + if (null !== c) { + var d = R(); + gi(c, a, b, d); } + il(a, b); } - function qc(e, t) { - Uc(e, t), (e = e.alternate) && Uc(e, t); + }; + Hc = function () { + return C; + }; + Ic = function (a, b) { + var c = C; + try { + return (C = a), b(); + } finally { + C = c; } - El = function (e, t, r) { - if (null !== e) - if (e.memoizedProps !== t.pendingProps || No.current) ys = !0; - else { - if (!(e.lanes & r || 128 & t.flags)) - return ( - (ys = !1), - (function (e, t, n) { - switch (t.tag) { - case 3: - Is(t), ma(); - break; - case 5: - Ja(t); - break; - case 1: - Ro(t.type) && zo(t); - break; - case 4: - Qa(t, t.stateNode.containerInfo); - break; - case 10: - var r = t.type._context, - o = t.memoizedProps.value; - Po(Ea, r._currentValue), (r._currentValue = o); - break; - case 13: - if (null !== (r = t.memoizedState)) - return null !== r.dehydrated - ? (Po(ei, 1 & ei.current), (t.flags |= 128), null) - : n & t.child.childLanes - ? zs(e, t, n) - : (Po(ei, 1 & ei.current), null !== (e = Vs(e, t, n)) ? e.sibling : null); - Po(ei, 1 & ei.current); - break; - case 19: - if (((r = !!(n & t.childLanes)), 128 & e.flags)) { - if (r) return Bs(e, t, n); - t.flags |= 128; - } - if ( - (null !== (o = t.memoizedState) && - ((o.rendering = null), (o.tail = null), (o.lastEffect = null)), - Po(ei, ei.current), - r) - ) - break; - return null; - case 22: - case 23: - return (t.lanes = 0), Ss(e, t, n); - } - return Vs(e, t, n); - })(e, t, r) - ); - ys = !!(131072 & e.flags); - } - else (ys = !1), aa && 1048576 & t.flags && ea(t, Yo, t.index); - switch (((t.lanes = 0), t.tag)) { - case 2: - var o = t.type; - Ws(e, t), (e = t.pendingProps); - var a = Lo(t, Io.current); - Na(t, r), (a = gi(null, t, o, e, a, r)); - var i = vi(); - return ( - (t.flags |= 1), - 'object' == typeof a && - null !== a && - 'function' == typeof a.render && - void 0 === a.$$typeof - ? ((t.tag = 1), - (t.memoizedState = null), - (t.updateQueue = null), - Ro(o) ? ((i = !0), zo(t)) : (i = !1), - (t.memoizedState = null !== a.state && void 0 !== a.state ? a.state : null), - za(t), - (a.updater = os), - (t.stateNode = a), - (a._reactInternals = t), - ls(t, o, e, r), - (t = Ts(null, t, o, !0, i, r))) - : ((t.tag = 0), aa && i && ta(t), ws(null, t, a, r), (t = t.child)), - t - ); - case 16: - o = t.elementType; - e: { - switch ( - (Ws(e, t), - (e = t.pendingProps), - (o = (a = o._init)(o._payload)), - (t.type = o), - (a = t.tag = - (function (e) { - if ('function' == typeof e) return Lc(e) ? 1 : 0; - if (null != e) { - if ((e = e.$$typeof) === I) return 11; - if (e === L) return 14; - } - return 2; - })(o)), - (e = ns(o, e)), - a) - ) { - case 0: - t = Os(null, t, o, e, r); - break e; - case 1: - t = Ps(null, t, o, e, r); - break e; - case 11: - t = xs(null, t, o, e, r); - break e; - case 14: - t = ks(null, t, o, ns(o.type, e), r); - break e; + }; + yb = function (a, b, c) { + switch (b) { + case 'input': + bb(a, c); + b = c.name; + if ('radio' === c.type && null != b) { + for (c = a; c.parentNode; ) c = c.parentNode; + c = c.querySelectorAll('input[name=' + JSON.stringify('' + b) + '][type="radio"]'); + for (b = 0; b < c.length; b++) { + var d = c[b]; + if (d !== a && d.form === a.form) { + var e = Db(d); + if (!e) throw Error(p(90)); + Wa(d); + bb(d, e); } - throw Error(n(306, o, '')); } - return t; - case 0: - return ( - (o = t.type), - (a = t.pendingProps), - Os(e, t, o, (a = t.elementType === o ? a : ns(o, a)), r) - ); - case 1: - return ( - (o = t.type), - (a = t.pendingProps), - Ps(e, t, o, (a = t.elementType === o ? a : ns(o, a)), r) - ); - case 3: - e: { - if ((Is(t), null === e)) throw Error(n(387)); - (o = t.pendingProps), (a = (i = t.memoizedState).element), Fa(e, t), Wa(t, o, null, r); - var s = t.memoizedState; - if (((o = s.element), i.isDehydrated)) { - if ( - ((i = { - element: o, - isDehydrated: !1, - cache: s.cache, - pendingSuspenseBoundaries: s.pendingSuspenseBoundaries, - transitions: s.transitions, - }), - (t.updateQueue.baseState = i), - (t.memoizedState = i), - 256 & t.flags) - ) { - t = Ns(e, t, o, r, (a = cs(Error(n(423)), t))); - break e; - } - if (o !== a) { - t = Ns(e, t, o, r, (a = cs(Error(n(424)), t))); - break e; - } - for ( - oa = co(t.stateNode.containerInfo.firstChild), - ra = t, - aa = !0, - ia = null, - r = ka(t, null, o, r), - t.child = r; - r; + } + break; + case 'textarea': + ib(a, c); + break; + case 'select': + (b = c.value), null != b && fb(a, !!c.multiple, b, !1); + } + }; + Gb = Qk; + Hb = Rk; + var sl = { usingClientEntryPoint: !1, Events: [Cb, ue, Db, Eb, Fb, Qk] }, + tl = { + findFiberByHostInstance: Wc, + bundleType: 0, + version: '18.3.1', + rendererPackageName: 'react-dom', + }; + var ul = { + bundleType: tl.bundleType, + version: tl.version, + rendererPackageName: tl.rendererPackageName, + rendererConfig: tl.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ua.ReactCurrentDispatcher, + findHostInstanceByFiber: function (a) { + a = Zb(a); + return null === a ? null : a.stateNode; + }, + findFiberByHostInstance: tl.findFiberByHostInstance || jl, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: '18.3.1-next-f1338f8080-20240426', + }; + if ('undefined' !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + var vl = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!vl.isDisabled && vl.supportsFiber) + try { + (kc = vl.inject(ul)), (lc = vl); + } catch (a) {} + } + reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl; + reactDom_production_min.createPortal = function (a, b) { + var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; + if (!nl(b)) throw Error(p(200)); + return cl(a, b, null, c); + }; + reactDom_production_min.createRoot = function (a, b) { + if (!nl(a)) throw Error(p(299)); + var c = !1, + d = '', + e = kl; + null !== b && + void 0 !== b && + (!0 === b.unstable_strictMode && (c = !0), + void 0 !== b.identifierPrefix && (d = b.identifierPrefix), + void 0 !== b.onRecoverableError && (e = b.onRecoverableError)); + b = bl(a, 1, !1, null, null, c, !1, d, e); + a[uf] = b.current; + sf(8 === a.nodeType ? a.parentNode : a); + return new ll(b); + }; + reactDom_production_min.findDOMNode = function (a) { + if (null == a) return null; + if (1 === a.nodeType) return a; + var b = a._reactInternals; + if (void 0 === b) { + if ('function' === typeof a.render) throw Error(p(188)); + a = Object.keys(a).join(','); + throw Error(p(268, a)); + } + a = Zb(b); + a = null === a ? null : a.stateNode; + return a; + }; + reactDom_production_min.flushSync = function (a) { + return Rk(a); + }; + reactDom_production_min.hydrate = function (a, b, c) { + if (!ol(b)) throw Error(p(200)); + return rl(null, a, b, !0, c); + }; + reactDom_production_min.hydrateRoot = function (a, b, c) { + if (!nl(a)) throw Error(p(405)); + var d = (null != c && c.hydratedSources) || null, + e = !1, + f = '', + g = kl; + null !== c && + void 0 !== c && + (!0 === c.unstable_strictMode && (e = !0), + void 0 !== c.identifierPrefix && (f = c.identifierPrefix), + void 0 !== c.onRecoverableError && (g = c.onRecoverableError)); + b = el(b, null, a, 1, null != c ? c : null, e, !1, f, g); + a[uf] = b.current; + sf(a); + if (d) + for (a = 0; a < d.length; a++) + (c = d[a]), + (e = c._getVersion), + (e = e(c._source)), + null == b.mutableSourceEagerHydrationData + ? (b.mutableSourceEagerHydrationData = [c, e]) + : b.mutableSourceEagerHydrationData.push(c, e); + return new ml(b); + }; + reactDom_production_min.render = function (a, b, c) { + if (!ol(b)) throw Error(p(200)); + return rl(null, a, b, !1, c); + }; + reactDom_production_min.unmountComponentAtNode = function (a) { + if (!ol(a)) throw Error(p(40)); + return a._reactRootContainer + ? (Rk(function () { + rl(null, null, a, !1, function () { + a._reactRootContainer = null; + a[uf] = null; + }); + }), + !0) + : !1; + }; + reactDom_production_min.unstable_batchedUpdates = Qk; + reactDom_production_min.unstable_renderSubtreeIntoContainer = function (a, b, c, d) { + if (!ol(c)) throw Error(p(200)); + if (null == a || void 0 === a._reactInternals) throw Error(p(38)); + return rl(a, b, c, !1, d); + }; + reactDom_production_min.version = '18.3.1-next-f1338f8080-20240426'; + return reactDom_production_min; +} - ) - (r.flags = (-3 & r.flags) | 4096), (r = r.sibling); - } else { - if ((ma(), o === a)) { - t = Vs(e, t, r); - break e; - } - ws(e, t, o, r); - } - t = t.child; - } - return t; - case 5: - return ( - Ja(t), - null === e && ua(t), - (o = t.type), - (a = t.pendingProps), - (i = null !== e ? e.memoizedProps : null), - (s = a.children), - no(o, a) ? (s = null) : null !== i && no(o, i) && (t.flags |= 32), - Cs(e, t), - ws(e, t, s, r), - t.child - ); - case 6: - return null === e && ua(t), null; - case 13: - return zs(e, t, r); - case 4: - return ( - Qa(t, t.stateNode.containerInfo), - (o = t.pendingProps), - null === e ? (t.child = xa(t, null, o, r)) : ws(e, t, o, r), - t.child - ); - case 11: - return ( - (o = t.type), - (a = t.pendingProps), - xs(e, t, o, (a = t.elementType === o ? a : ns(o, a)), r) - ); - case 7: - return ws(e, t, t.pendingProps, r), t.child; - case 8: - case 12: - return ws(e, t, t.pendingProps.children, r), t.child; - case 10: - e: { - if ( - ((o = t.type._context), - (a = t.pendingProps), - (i = t.memoizedProps), - (s = a.value), - Po(Ea, o._currentValue), - (o._currentValue = s), - null !== i) - ) - if (sr(i.value, s)) { - if (i.children === a.children && !No.current) { - t = Vs(e, t, r); - break e; - } - } else - for (null !== (i = t.child) && (i.return = t); null !== i; ) { - var l = i.dependencies; - if (null !== l) { - s = i.child; - for (var c = l.firstContext; null !== c; ) { - if (c.context === o) { - if (1 === i.tag) { - (c = _a(-1, r & -r)).tag = 2; - var u = i.updateQueue; - if (null !== u) { - var d = (u = u.shared).pending; - null === d ? (c.next = c) : ((c.next = d.next), (d.next = c)), - (u.pending = c); - } - } - (i.lanes |= r), - null !== (c = i.alternate) && (c.lanes |= r), - Ia(i.return, r, t), - (l.lanes |= r); - break; - } - c = c.next; - } - } else if (10 === i.tag) s = i.type === t.type ? null : i.child; - else if (18 === i.tag) { - if (null === (s = i.return)) throw Error(n(341)); - (s.lanes |= r), - null !== (l = s.alternate) && (l.lanes |= r), - Ia(s, r, t), - (s = i.sibling); - } else s = i.child; - if (null !== s) s.return = i; - else - for (s = i; null !== s; ) { - if (s === t) { - s = null; - break; - } - if (null !== (i = s.sibling)) { - (i.return = s.return), (s = i); - break; - } - s = s.return; - } - i = s; - } - ws(e, t, a.children, r), (t = t.child); - } - return t; - case 9: - return ( - (a = t.type), - (o = t.pendingProps.children), - Na(t, r), - (o = o((a = Ma(a)))), - (t.flags |= 1), - ws(e, t, o, r), - t.child - ); - case 14: - return (a = ns((o = t.type), t.pendingProps)), ks(e, t, o, (a = ns(o.type, a)), r); - case 15: - return Es(e, t, t.type, t.pendingProps, r); - case 17: - return ( - (o = t.type), - (a = t.pendingProps), - (a = t.elementType === o ? a : ns(o, a)), - Ws(e, t), - (t.tag = 1), - Ro(o) ? ((e = !0), zo(t)) : (e = !1), - Na(t, r), - is(t, o, a), - ls(t, o, a, r), - Ts(null, t, o, !0, e, r) - ); - case 19: - return Bs(e, t, r); - case 22: - return Ss(e, t, r); - } - throw Error(n(156, t.tag)); - }; - var Yc = - 'function' == typeof reportError - ? reportError - : function (e) { - console.error(e); - }; - function Kc(e) { - this._internalRoot = e; - } - function Gc(e) { - this._internalRoot = e; - } - function Qc(e) { - return !(!e || (1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType)); - } - function Xc(e) { - return !( - !e || - (1 !== e.nodeType && - 9 !== e.nodeType && - 11 !== e.nodeType && - (8 !== e.nodeType || ' react-mount-point-unstable ' !== e.nodeValue)) - ); - } - function Jc() {} - function Zc(e, t, n, r, o) { - var a = n._reactRootContainer; - if (a) { - var i = a; - if ('function' == typeof o) { - var s = o; - o = function () { - var e = Vc(i); - s.call(e); - }; - } - Wc(t, i, e, o); - } else - i = (function (e, t, n, r, o) { - if (o) { - if ('function' == typeof r) { - var a = r; - r = function () { - var e = Vc(i); - a.call(e); - }; - } - var i = Bc(t, r, e, 0, null, !1, 0, '', Jc); - return ( - (e._reactRootContainer = i), - (e[ho] = i.current), - Br(8 === e.nodeType ? e.parentNode : e), - uc(), - i - ); - } - for (; (o = e.lastChild); ) e.removeChild(o); - if ('function' == typeof r) { - var s = r; - r = function () { - var e = Vc(l); - s.call(e); - }; - } - var l = Hc(e, 0, !1, null, 0, !1, 0, '', Jc); - return ( - (e._reactRootContainer = l), - (e[ho] = l.current), - Br(8 === e.nodeType ? e.parentNode : e), - uc(function () { - Wc(t, l, n, r); - }), - l - ); - })(n, t, e, o, r); - return Vc(i); - } - (Gc.prototype.render = Kc.prototype.render = - function (e) { - var t = this._internalRoot; - if (null === t) throw Error(n(409)); - Wc(e, t, null, null); - }), - (Gc.prototype.unmount = Kc.prototype.unmount = - function () { - var e = this._internalRoot; - if (null !== e) { - this._internalRoot = null; - var t = e.containerInfo; - uc(function () { - Wc(null, e, null, null); - }), - (t[ho] = null); - } - }), - (Gc.prototype.unstable_scheduleHydration = function (e) { - if (e) { - var t = St(); - e = { blockedOn: null, target: e, priority: t }; - for (var n = 0; n < Rt.length && 0 !== t && t < Rt[n].priority; n++); - Rt.splice(n, 0, e), 0 === n && zt(e); - } - }), - (xt = function (e) { - switch (e.tag) { - case 3: - var t = e.stateNode; - if (t.current.memoizedState.isDehydrated) { - var n = dt(t.pendingLanes); - 0 !== n && (bt(t, 1 | n), rc(t, Xe()), !(6 & Tl) && ((Bl = Xe() + 500), Wo())); - } - break; - case 13: - uc(function () { - var t = Da(e, 1); - if (null !== t) { - var n = ec(); - nc(t, e, 1, n); - } - }), - qc(e, 1); - } - }), - (kt = function (e) { - if (13 === e.tag) { - var t = Da(e, 134217728); - null !== t && nc(t, e, 134217728, ec()), qc(e, 134217728); - } - }), - (Et = function (e) { - if (13 === e.tag) { - var t = tc(e), - n = Da(e, t); - null !== n && nc(n, e, t, ec()), qc(e, t); - } - }), - (St = function () { - return yt; - }), - (Ct = function (e, t) { - var n = yt; - try { - return (yt = e), t(); - } finally { - yt = n; - } - }), - (ke = function (e, t, r) { - switch (t) { - case 'input': - if ((Z(e, r), (t = r.name), 'radio' === r.type && null != t)) { - for (r = e; r.parentNode; ) r = r.parentNode; - for ( - r = r.querySelectorAll('input[name=' + JSON.stringify('' + t) + '][type="radio"]'), - t = 0; - t < r.length; - t++ - ) { - var o = r[t]; - if (o !== e && o.form === e.form) { - var a = ko(o); - if (!a) throw Error(n(90)); - K(o), Z(o, a); - } - } - } - break; - case 'textarea': - ie(e, r); - break; - case 'select': - null != (t = r.value) && re(e, !!r.multiple, t, !1); - } - }), - (Te = cc), - (Ie = uc); - var eu = { usingClientEntryPoint: !1, Events: [wo, xo, ko, Oe, Pe, cc] }, - tu = { - findFiberByHostInstance: yo, - bundleType: 0, - version: '18.3.1', - rendererPackageName: 'react-dom', - }, - nu = { - bundleType: tu.bundleType, - version: tu.version, - rendererPackageName: tu.rendererPackageName, - rendererConfig: tu.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: x.ReactCurrentDispatcher, - findHostInstanceByFiber: function (e) { - return null === (e = Ue(e)) ? null : e.stateNode; - }, - findFiberByHostInstance: - tu.findFiberByHostInstance || - function () { - return null; - }, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: '18.3.1-next-f1338f8080-20240426', - }; - if ('undefined' != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var ru = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (!ru.isDisabled && ru.supportsFiber) - try { - (ot = ru.inject(nu)), (at = ru); - } catch (e) {} - } - return ( - (v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = eu), - (v.createPortal = function (e, t) { - var r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; - if (!Qc(t)) throw Error(n(200)); - return (function (e, t, n) { - var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; - return { - $$typeof: E, - key: null == r ? null : '' + r, - children: e, - containerInfo: t, - implementation: n, - }; - })(e, t, null, r); - }), - (v.createRoot = function (e, t) { - if (!Qc(e)) throw Error(n(299)); - var r = !1, - o = '', - a = Yc; - return ( - null != t && - (!0 === t.unstable_strictMode && (r = !0), - void 0 !== t.identifierPrefix && (o = t.identifierPrefix), - void 0 !== t.onRecoverableError && (a = t.onRecoverableError)), - (t = Hc(e, 1, !1, null, 0, r, 0, o, a)), - (e[ho] = t.current), - Br(8 === e.nodeType ? e.parentNode : e), - new Kc(t) - ); - }), - (v.findDOMNode = function (e) { - if (null == e) return null; - if (1 === e.nodeType) return e; - var t = e._reactInternals; - if (void 0 === t) { - if ('function' == typeof e.render) throw Error(n(188)); - throw ((e = Object.keys(e).join(',')), Error(n(268, e))); - } - return null === (e = Ue(t)) ? null : e.stateNode; - }), - (v.flushSync = function (e) { - return uc(e); - }), - (v.hydrate = function (e, t, r) { - if (!Xc(t)) throw Error(n(200)); - return Zc(null, e, t, !0, r); - }), - (v.hydrateRoot = function (e, t, r) { - if (!Qc(e)) throw Error(n(405)); - var o = (null != r && r.hydratedSources) || null, - a = !1, - i = '', - s = Yc; - if ( - (null != r && - (!0 === r.unstable_strictMode && (a = !0), - void 0 !== r.identifierPrefix && (i = r.identifierPrefix), - void 0 !== r.onRecoverableError && (s = r.onRecoverableError)), - (t = Bc(t, null, e, 1, null != r ? r : null, a, 0, i, s)), - (e[ho] = t.current), - Br(e), - o) - ) - for (e = 0; e < o.length; e++) - (a = (a = (r = o[e])._getVersion)(r._source)), - null == t.mutableSourceEagerHydrationData - ? (t.mutableSourceEagerHydrationData = [r, a]) - : t.mutableSourceEagerHydrationData.push(r, a); - return new Gc(t); - }), - (v.render = function (e, t, r) { - if (!Xc(t)) throw Error(n(200)); - return Zc(null, e, t, !1, r); - }), - (v.unmountComponentAtNode = function (e) { - if (!Xc(e)) throw Error(n(40)); - return ( - !!e._reactRootContainer && - (uc(function () { - Zc(null, null, e, !1, function () { - (e._reactRootContainer = null), (e[ho] = null); - }); - }), - !0) - ); - }), - (v.unstable_batchedUpdates = cc), - (v.unstable_renderSubtreeIntoContainer = function (e, t, r, o) { - if (!Xc(r)) throw Error(n(200)); - if (null == e || void 0 === e._reactInternals) throw Error(n(38)); - return Zc(e, t, r, !1, o); - }), - (v.version = '18.3.1-next-f1338f8080-20240426'), - v - ); - })()); -var x = g.exports, - k = n(x); -const E = 'HC_FLASH_NOTIFICATIONS'; -function S(e) { +function checkDCE() { + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if ( + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' + ) { + return; + } + try { + // Verify that the code above has been dead code eliminated (DCE'd). + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); + } catch (err) { + // DevTools shouldn't crash React, no matter what. + // We should still report in case we break this code. + console.error(err); + } +} + +{ + // DCE check should happen before ReactDOM bundle executes so that + // DevTools can report bad minification during injection. + checkDCE(); + reactDom.exports = requireReactDom_production_min(); +} + +var reactDomExports = reactDom.exports; +var ReactDOM = /*@__PURE__*/ getDefaultExportFromCjs(reactDomExports); + +const FLASH_NOTIFICATIONS_KEY = 'HC_FLASH_NOTIFICATIONS'; + +function addFlashNotification(notification) { try { - const t = window.sessionStorage.getItem(E), - n = t ? JSON.parse(t) : []; - n.push(e), window.sessionStorage.setItem(E, JSON.stringify(n)); + const currentValue = window.sessionStorage.getItem(FLASH_NOTIFICATIONS_KEY); + const notifications = currentValue ? JSON.parse(currentValue) : []; + notifications.push(notification); + window.sessionStorage.setItem(FLASH_NOTIFICATIONS_KEY, JSON.stringify(notifications)); } catch (e) { console.error('Cannot add flash notification', e); } } -const C = (e) => 'string' == typeof e, - O = () => { - let e, t; - const n = new Promise((n, r) => { - (e = n), (t = r); - }); - return (n.resolve = e), (n.reject = t), n; - }, - P = (e) => (null == e ? '' : '' + e), - T = /###/g, - I = (e) => (e && e.indexOf('###') > -1 ? e.replace(T, '.') : e), - N = (e) => !e || C(e), - M = (e, t, n) => { - const r = C(t) ? t.split('.') : t; - let o = 0; - for (; o < r.length - 1; ) { - if (N(e)) return {}; - const t = I(r[o]); - !e[t] && n && (e[t] = new n()), - (e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}), - ++o; - } - return N(e) ? {} : { obj: e, k: I(r[o]) }; - }, - L = (e, t, n) => { - const { obj: r, k: o } = M(e, t, Object); - if (void 0 !== r || 1 === t.length) return void (r[o] = n); - let a = t[t.length - 1], - i = t.slice(0, t.length - 1), - s = M(e, i, Object); - for (; void 0 === s.obj && i.length; ) - (a = `${i[i.length - 1]}.${a}`), - (i = i.slice(0, i.length - 1)), - (s = M(e, i, Object)), - s && s.obj && void 0 !== s.obj[`${s.k}.${a}`] && (s.obj = void 0); - s.obj[`${s.k}.${a}`] = n; - }, - R = (e, t) => { - const { obj: n, k: r } = M(e, t); - if (n) return n[r]; - }, - A = (e, t, n) => { - for (const r in t) - '__proto__' !== r && - 'constructor' !== r && - (r in e - ? C(e[r]) || e[r] instanceof String || C(t[r]) || t[r] instanceof String - ? n && (e[r] = t[r]) - : A(e[r], t[r], n) - : (e[r] = t[r])); - return e; - }, - D = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); -var j = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', '/': '/' }; -const z = (e) => (C(e) ? e.replace(/[&<>"'\/]/g, (e) => j[e]) : e); -const F = [' ', ',', '?', '!', ';'], - _ = new (class { - constructor(e) { - (this.capacity = e), (this.regExpMap = new Map()), (this.regExpQueue = []); - } - getRegExp(e) { - const t = this.regExpMap.get(e); - if (void 0 !== t) return t; - const n = new RegExp(e); - return ( - this.regExpQueue.length === this.capacity && - this.regExpMap.delete(this.regExpQueue.shift()), - this.regExpMap.set(e, n), - this.regExpQueue.push(e), - n - ); + +const isString$1 = (obj) => typeof obj === 'string'; +const defer = () => { + let res; + let rej; + const promise = new Promise((resolve, reject) => { + res = resolve; + rej = reject; + }); + promise.resolve = res; + promise.reject = rej; + return promise; +}; +const makeString = (object) => { + if (object == null) return ''; + return '' + object; +}; +const copy = (a, s, t) => { + a.forEach((m) => { + if (s[m]) t[m] = s[m]; + }); +}; +const lastOfPathSeparatorRegExp = /###/g; +const cleanKey = (key) => + key && key.indexOf('###') > -1 ? key.replace(lastOfPathSeparatorRegExp, '.') : key; +const canNotTraverseDeeper = (object) => !object || isString$1(object); +const getLastOfPath = (object, path, Empty) => { + const stack = !isString$1(path) ? path : path.split('.'); + let stackIndex = 0; + while (stackIndex < stack.length - 1) { + if (canNotTraverseDeeper(object)) return {}; + const key = cleanKey(stack[stackIndex]); + if (!object[key] && Empty) object[key] = new Empty(); + if (Object.prototype.hasOwnProperty.call(object, key)) { + object = object[key]; + } else { + object = {}; } - })(20), - H = function (e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '.'; - if (!e) return; - if (e[t]) return e[t]; - const r = t.split(n); - let o = e; - for (let e = 0; e < r.length; ) { - if (!o || 'object' != typeof o) return; - let t, - a = ''; - for (let i = e; i < r.length; ++i) - if ((i !== e && (a += n), (a += r[i]), (t = o[a]), void 0 !== t)) { - if (['string', 'number', 'boolean'].indexOf(typeof t) > -1 && i < r.length - 1) continue; - e += i - e + 1; - break; + ++stackIndex; + } + if (canNotTraverseDeeper(object)) return {}; + return { + obj: object, + k: cleanKey(stack[stackIndex]), + }; +}; +const setPath = (object, path, newValue) => { + const { obj, k } = getLastOfPath(object, path, Object); + if (obj !== undefined || path.length === 1) { + obj[k] = newValue; + return; + } + let e = path[path.length - 1]; + let p = path.slice(0, path.length - 1); + let last = getLastOfPath(object, p, Object); + while (last.obj === undefined && p.length) { + e = `${p[p.length - 1]}.${e}`; + p = p.slice(0, p.length - 1); + last = getLastOfPath(object, p, Object); + if (last && last.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') { + last.obj = undefined; + } + } + last.obj[`${last.k}.${e}`] = newValue; +}; +const pushPath = (object, path, newValue, concat) => { + const { obj, k } = getLastOfPath(object, path, Object); + obj[k] = obj[k] || []; + obj[k].push(newValue); +}; +const getPath = (object, path) => { + const { obj, k } = getLastOfPath(object, path); + if (!obj) return undefined; + return obj[k]; +}; +const getPathWithDefaults = (data, defaultData, key) => { + const value = getPath(data, key); + if (value !== undefined) { + return value; + } + return getPath(defaultData, key); +}; +const deepExtend = (target, source, overwrite) => { + for (const prop in source) { + if (prop !== '__proto__' && prop !== 'constructor') { + if (prop in target) { + if ( + isString$1(target[prop]) || + target[prop] instanceof String || + isString$1(source[prop]) || + source[prop] instanceof String + ) { + if (overwrite) target[prop] = source[prop]; + } else { + deepExtend(target[prop], source[prop], overwrite); + } + } else { + target[prop] = source[prop]; + } + } + } + return target; +}; +const regexEscape = (str) => str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); +var _entityMap = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + "'": ''', + '/': '/', +}; +const escape$1 = (data) => { + if (isString$1(data)) { + return data.replace(/[&<>"'\/]/g, (s) => _entityMap[s]); + } + return data; +}; +class RegExpCache { + constructor(capacity) { + this.capacity = capacity; + this.regExpMap = new Map(); + this.regExpQueue = []; + } + getRegExp(pattern) { + const regExpFromCache = this.regExpMap.get(pattern); + if (regExpFromCache !== undefined) { + return regExpFromCache; + } + const regExpNew = new RegExp(pattern); + if (this.regExpQueue.length === this.capacity) { + this.regExpMap.delete(this.regExpQueue.shift()); + } + this.regExpMap.set(pattern, regExpNew); + this.regExpQueue.push(pattern); + return regExpNew; + } +} +const chars = [' ', ',', '?', '!', ';']; +const looksLikeObjectPathRegExpCache = new RegExpCache(20); +const looksLikeObjectPath = (key, nsSeparator, keySeparator) => { + nsSeparator = nsSeparator || ''; + keySeparator = keySeparator || ''; + const possibleChars = chars.filter( + (c) => nsSeparator.indexOf(c) < 0 && keySeparator.indexOf(c) < 0 + ); + if (possibleChars.length === 0) return true; + const r = looksLikeObjectPathRegExpCache.getRegExp( + `(${possibleChars.map((c) => (c === '?' ? '\\?' : c)).join('|')})` + ); + let matched = !r.test(key); + if (!matched) { + const ki = key.indexOf(keySeparator); + if (ki > 0 && !r.test(key.substring(0, ki))) { + matched = true; + } + } + return matched; +}; +const deepFind = function (obj, path) { + let keySeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.'; + if (!obj) return undefined; + if (obj[path]) return obj[path]; + const tokens = path.split(keySeparator); + let current = obj; + for (let i = 0; i < tokens.length; ) { + if (!current || typeof current !== 'object') { + return undefined; + } + let next; + let nextPath = ''; + for (let j = i; j < tokens.length; ++j) { + if (j !== i) { + nextPath += keySeparator; + } + nextPath += tokens[j]; + next = current[nextPath]; + if (next !== undefined) { + if (['string', 'number', 'boolean'].indexOf(typeof next) > -1 && j < tokens.length - 1) { + continue; } - o = t; + i += j - i + 1; + break; + } } - return o; + current = next; + } + return current; +}; +const getCleanedCode = (code) => code && code.replace('_', '-'); + +const consoleLogger = { + type: 'logger', + log(args) { + this.output('log', args); }, - $ = (e) => e && e.replace('_', '-'), - B = { - type: 'logger', - log(e) { - this.output('log', e); - }, - warn(e) { - this.output('warn', e); - }, - error(e) { - this.output('error', e); - }, - output(e, t) { - console && console[e] && console[e].apply(console, t); - }, - }; -class W { - constructor(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - this.init(e, t); + warn(args) { + this.output('warn', args); + }, + error(args) { + this.output('error', args); + }, + output(type, args) { + if (console && console[type]) console[type].apply(console, args); + }, +}; +class Logger { + constructor(concreteLogger) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + this.init(concreteLogger, options); } - init(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - (this.prefix = t.prefix || 'i18next:'), - (this.logger = e || B), - (this.options = t), - (this.debug = t.debug); + init(concreteLogger) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + this.prefix = options.prefix || 'i18next:'; + this.logger = concreteLogger || consoleLogger; + this.options = options; + this.debug = options.debug; } log() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return this.forward(t, 'log', '', !0); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return this.forward(args, 'log', '', true); } warn() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return this.forward(t, 'warn', '', !0); + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + return this.forward(args, 'warn', '', true); } error() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return this.forward(t, 'error', ''); + for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { + args[_key3] = arguments[_key3]; + } + return this.forward(args, 'error', ''); } deprecate() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return this.forward(t, 'warn', 'WARNING DEPRECATED: ', !0); + for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { + args[_key4] = arguments[_key4]; + } + return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true); } - forward(e, t, n, r) { - return r && !this.debug - ? null - : (C(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e)); + forward(args, lvl, prefix, debugOnly) { + if (debugOnly && !this.debug) return null; + if (isString$1(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`; + return this.logger[lvl](args); } - create(e) { - return new W(this.logger, { prefix: `${this.prefix}:${e}:`, ...this.options }); + create(moduleName) { + return new Logger(this.logger, { + ...{ + prefix: `${this.prefix}:${moduleName}:`, + }, + ...this.options, + }); } - clone(e) { - return ((e = e || this.options).prefix = e.prefix || this.prefix), new W(this.logger, e); + clone(options) { + options = options || this.options; + options.prefix = options.prefix || this.prefix; + return new Logger(this.logger, options); } } -var V = new W(); -class U { +var baseLogger = new Logger(); + +class EventEmitter { constructor() { this.observers = {}; } - on(e, t) { - return ( - e.split(' ').forEach((e) => { - this.observers[e] || (this.observers[e] = new Map()); - const n = this.observers[e].get(t) || 0; - this.observers[e].set(t, n + 1); - }), - this - ); + on(events, listener) { + events.split(' ').forEach((event) => { + if (!this.observers[event]) this.observers[event] = new Map(); + const numListeners = this.observers[event].get(listener) || 0; + this.observers[event].set(listener, numListeners + 1); + }); + return this; } - off(e, t) { - this.observers[e] && (t ? this.observers[e].delete(t) : delete this.observers[e]); + off(event, listener) { + if (!this.observers[event]) return; + if (!listener) { + delete this.observers[event]; + return; + } + this.observers[event].delete(listener); } - emit(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) - n[r - 1] = arguments[r]; - if (this.observers[e]) { - Array.from(this.observers[e].entries()).forEach((e) => { - let [t, r] = e; - for (let e = 0; e < r; e++) t(...n); + emit(event) { + for ( + var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + if (this.observers[event]) { + const cloned = Array.from(this.observers[event].entries()); + cloned.forEach((_ref) => { + let [observer, numTimesAdded] = _ref; + for (let i = 0; i < numTimesAdded; i++) { + observer(...args); + } }); } if (this.observers['*']) { - Array.from(this.observers['*'].entries()).forEach((t) => { - let [r, o] = t; - for (let t = 0; t < o; t++) r.apply(r, [e, ...n]); + const cloned = Array.from(this.observers['*'].entries()); + cloned.forEach((_ref2) => { + let [observer, numTimesAdded] = _ref2; + for (let i = 0; i < numTimesAdded; i++) { + observer.apply(observer, [event, ...args]); + } }); } } } -class q extends U { - constructor(e) { - let t = - arguments.length > 1 && void 0 !== arguments[1] + +class ResourceStore extends EventEmitter { + constructor(data) { + let options = + arguments.length > 1 && arguments[1] !== undefined ? arguments[1] - : { ns: ['translation'], defaultNS: 'translation' }; - super(), - (this.data = e || {}), - (this.options = t), - void 0 === this.options.keySeparator && (this.options.keySeparator = '.'), - void 0 === this.options.ignoreJSONStructure && (this.options.ignoreJSONStructure = !0); - } - addNamespaces(e) { - this.options.ns.indexOf(e) < 0 && this.options.ns.push(e); - } - removeNamespaces(e) { - const t = this.options.ns.indexOf(e); - t > -1 && this.options.ns.splice(t, 1); - } - getResource(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; - const o = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator, - a = - void 0 !== r.ignoreJSONStructure ? r.ignoreJSONStructure : this.options.ignoreJSONStructure; - let i; - e.indexOf('.') > -1 - ? (i = e.split('.')) - : ((i = [e, t]), - n && (Array.isArray(n) ? i.push(...n) : C(n) && o ? i.push(...n.split(o)) : i.push(n))); - const s = R(this.data, i); - return ( - !s && !t && !n && e.indexOf('.') > -1 && ((e = i[0]), (t = i[1]), (n = i.slice(2).join('.'))), - !s && a && C(n) ? H(this.data && this.data[e] && this.data[e][t], n, o) : s - ); + : { + ns: ['translation'], + defaultNS: 'translation', + }; + super(); + this.data = data || {}; + this.options = options; + if (this.options.keySeparator === undefined) { + this.options.keySeparator = '.'; + } + if (this.options.ignoreJSONStructure === undefined) { + this.options.ignoreJSONStructure = true; + } } - addResource(e, t, n, r) { - let o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : { silent: !1 }; - const a = void 0 !== o.keySeparator ? o.keySeparator : this.options.keySeparator; - let i = [e, t]; - n && (i = i.concat(a ? n.split(a) : n)), - e.indexOf('.') > -1 && ((i = e.split('.')), (r = t), (t = i[1])), - this.addNamespaces(t), - L(this.data, i, r), - o.silent || this.emit('added', e, t, n, r); - } - addResources(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : { silent: !1 }; - for (const r in n) - (C(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 }); - r.silent || this.emit('added', e, t, n); - } - addResourceBundle(e, t, n, r, o) { - let a = - arguments.length > 5 && void 0 !== arguments[5] - ? arguments[5] - : { silent: !1, skipCopy: !1 }, - i = [e, t]; - e.indexOf('.') > -1 && ((i = e.split('.')), (r = n), (n = t), (t = i[1])), - this.addNamespaces(t); - let s = R(this.data, i) || {}; - a.skipCopy || (n = JSON.parse(JSON.stringify(n))), - r ? A(s, n, o) : (s = { ...s, ...n }), - L(this.data, i, s), - a.silent || this.emit('added', e, t, n); - } - removeResourceBundle(e, t) { - this.hasResourceBundle(e, t) && delete this.data[e][t], - this.removeNamespaces(t), - this.emit('removed', e, t); - } - hasResourceBundle(e, t) { - return void 0 !== this.getResource(e, t); - } - getResourceBundle(e, t) { - return ( - t || (t = this.options.defaultNS), - 'v1' === this.options.compatibilityAPI - ? { ...this.getResource(e, t) } - : this.getResource(e, t) - ); + addNamespaces(ns) { + if (this.options.ns.indexOf(ns) < 0) { + this.options.ns.push(ns); + } + } + removeNamespaces(ns) { + const index = this.options.ns.indexOf(ns); + if (index > -1) { + this.options.ns.splice(index, 1); + } + } + getResource(lng, ns, key) { + let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + const keySeparator = + options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator; + const ignoreJSONStructure = + options.ignoreJSONStructure !== undefined + ? options.ignoreJSONStructure + : this.options.ignoreJSONStructure; + let path; + if (lng.indexOf('.') > -1) { + path = lng.split('.'); + } else { + path = [lng, ns]; + if (key) { + if (Array.isArray(key)) { + path.push(...key); + } else if (isString$1(key) && keySeparator) { + path.push(...key.split(keySeparator)); + } else { + path.push(key); + } + } + } + const result = getPath(this.data, path); + if (!result && !ns && !key && lng.indexOf('.') > -1) { + lng = path[0]; + ns = path[1]; + key = path.slice(2).join('.'); + } + if (result || !ignoreJSONStructure || !isString$1(key)) return result; + return deepFind(this.data && this.data[lng] && this.data[lng][ns], key, keySeparator); + } + addResource(lng, ns, key, value) { + let options = + arguments.length > 4 && arguments[4] !== undefined + ? arguments[4] + : { + silent: false, + }; + const keySeparator = + options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator; + let path = [lng, ns]; + if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key); + if (lng.indexOf('.') > -1) { + path = lng.split('.'); + value = ns; + ns = path[1]; + } + this.addNamespaces(ns); + setPath(this.data, path, value); + if (!options.silent) this.emit('added', lng, ns, key, value); + } + addResources(lng, ns, resources) { + let options = + arguments.length > 3 && arguments[3] !== undefined + ? arguments[3] + : { + silent: false, + }; + for (const m in resources) { + if (isString$1(resources[m]) || Array.isArray(resources[m])) + this.addResource(lng, ns, m, resources[m], { + silent: true, + }); + } + if (!options.silent) this.emit('added', lng, ns, resources); + } + addResourceBundle(lng, ns, resources, deep, overwrite) { + let options = + arguments.length > 5 && arguments[5] !== undefined + ? arguments[5] + : { + silent: false, + skipCopy: false, + }; + let path = [lng, ns]; + if (lng.indexOf('.') > -1) { + path = lng.split('.'); + deep = resources; + resources = ns; + ns = path[1]; + } + this.addNamespaces(ns); + let pack = getPath(this.data, path) || {}; + if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources)); + if (deep) { + deepExtend(pack, resources, overwrite); + } else { + pack = { + ...pack, + ...resources, + }; + } + setPath(this.data, path, pack); + if (!options.silent) this.emit('added', lng, ns, resources); + } + removeResourceBundle(lng, ns) { + if (this.hasResourceBundle(lng, ns)) { + delete this.data[lng][ns]; + } + this.removeNamespaces(ns); + this.emit('removed', lng, ns); + } + hasResourceBundle(lng, ns) { + return this.getResource(lng, ns) !== undefined; + } + getResourceBundle(lng, ns) { + if (!ns) ns = this.options.defaultNS; + if (this.options.compatibilityAPI === 'v1') + return { + ...{}, + ...this.getResource(lng, ns), + }; + return this.getResource(lng, ns); } - getDataByLanguage(e) { - return this.data[e]; + getDataByLanguage(lng) { + return this.data[lng]; } - hasLanguageSomeTranslations(e) { - const t = this.getDataByLanguage(e); - return !!((t && Object.keys(t)) || []).find((e) => t[e] && Object.keys(t[e]).length > 0); + hasLanguageSomeTranslations(lng) { + const data = this.getDataByLanguage(lng); + const n = (data && Object.keys(data)) || []; + return !!n.find((v) => data[v] && Object.keys(data[v]).length > 0); } toJSON() { return this.data; } } -var Y = { + +var postProcessor = { processors: {}, - addPostProcessor(e) { - this.processors[e.name] = e; + addPostProcessor(module) { + this.processors[module.name] = module; }, - handle(e, t, n, r, o) { - return ( - e.forEach((e) => { - this.processors[e] && (t = this.processors[e].process(t, n, r, o)); - }), - t - ); + handle(processors, value, key, options, translator) { + processors.forEach((processor) => { + if (this.processors[processor]) + value = this.processors[processor].process(value, key, options, translator); + }); + return value; }, }; -const K = {}; -class G extends U { - constructor(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - super(), - ((e, t, n) => { - e.forEach((e) => { - t[e] && (n[e] = t[e]); - }); - })( - [ - 'resourceStore', - 'languageUtils', - 'pluralResolver', - 'interpolator', - 'backendConnector', - 'i18nFormat', - 'utils', - ], - e, - this - ), - (this.options = t), - void 0 === this.options.keySeparator && (this.options.keySeparator = '.'), - (this.logger = V.create('translator')); - } - changeLanguage(e) { - e && (this.language = e); - } - exists(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} }; - if (null == e) return !1; - const n = this.resolve(e, t); - return n && void 0 !== n.res; - } - extractFromKey(e, t) { - let n = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator; - void 0 === n && (n = ':'); - const r = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator; - let o = t.ns || this.options.defaultNS || []; - const a = n && e.indexOf(n) > -1, - i = !( - this.options.userDefinedKeySeparator || - t.keySeparator || - this.options.userDefinedNsSeparator || - t.nsSeparator || - ((e, t, n) => { - (t = t || ''), (n = n || ''); - const r = F.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0); - if (0 === r.length) return !0; - const o = _.getRegExp(`(${r.map((e) => ('?' === e ? '\\?' : e)).join('|')})`); - let a = !o.test(e); - if (!a) { - const t = e.indexOf(n); - t > 0 && !o.test(e.substring(0, t)) && (a = !0); - } - return a; - })(e, n, r) - ); - if (a && !i) { - const t = e.match(this.interpolator.nestingRegexp); - if (t && t.length > 0) return { key: e, namespaces: o }; - const a = e.split(n); - (n !== r || (n === r && this.options.ns.indexOf(a[0]) > -1)) && (o = a.shift()), - (e = a.join(r)); + +const checkedLoadedFor = {}; +class Translator extends EventEmitter { + constructor(services) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + super(); + copy( + [ + 'resourceStore', + 'languageUtils', + 'pluralResolver', + 'interpolator', + 'backendConnector', + 'i18nFormat', + 'utils', + ], + services, + this + ); + this.options = options; + if (this.options.keySeparator === undefined) { + this.options.keySeparator = '.'; } - return C(o) && (o = [o]), { key: e, namespaces: o }; + this.logger = baseLogger.create('translator'); } - translate(e, t, n) { - if ( - ('object' != typeof t && - this.options.overloadTranslationOptionHandler && - (t = this.options.overloadTranslationOptionHandler(arguments)), - 'object' == typeof t && (t = { ...t }), - t || (t = {}), - null == e) - ) - return ''; - Array.isArray(e) || (e = [String(e)]); - const r = void 0 !== t.returnDetails ? t.returnDetails : this.options.returnDetails, - o = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator, - { key: a, namespaces: i } = this.extractFromKey(e[e.length - 1], t), - s = i[i.length - 1], - l = t.lng || this.language, - c = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode; - if (l && 'cimode' === l.toLowerCase()) { - if (c) { - const e = t.nsSeparator || this.options.nsSeparator; - return r - ? { - res: `${s}${e}${a}`, - usedKey: a, - exactUsedKey: a, - usedLng: l, - usedNS: s, - usedParams: this.getUsedParamsDetails(t), - } - : `${s}${e}${a}`; - } - return r - ? { - res: a, - usedKey: a, - exactUsedKey: a, - usedLng: l, - usedNS: s, - usedParams: this.getUsedParamsDetails(t), - } - : a; + changeLanguage(lng) { + if (lng) this.language = lng; + } + exists(key) { + let options = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : { + interpolation: {}, + }; + if (key === undefined || key === null) { + return false; } - const u = this.resolve(e, t); - let d = u && u.res; - const p = (u && u.usedKey) || a, - f = (u && u.exactUsedKey) || a, - m = Object.prototype.toString.apply(d), - h = void 0 !== t.joinArrays ? t.joinArrays : this.options.joinArrays, - g = !this.i18nFormat || this.i18nFormat.handleAsObject, - v = !C(d) && 'boolean' != typeof d && 'number' != typeof d; - if ( - !( - g && - d && - v && - ['[object Number]', '[object Function]', '[object RegExp]'].indexOf(m) < 0 - ) || - (C(h) && Array.isArray(d)) - ) - if (g && C(h) && Array.isArray(d)) - (d = d.join(h)), d && (d = this.extendTranslation(d, e, t, n)); - else { - let r = !1, - i = !1; - const c = void 0 !== t.count && !C(t.count), - p = G.hasDefaultValue(t), - f = c ? this.pluralResolver.getSuffix(l, t.count, t) : '', - m = t.ordinal && c ? this.pluralResolver.getSuffix(l, t.count, { ordinal: !1 }) : '', - h = c && !t.ordinal && 0 === t.count && this.pluralResolver.shouldUseIntlApi(), - g = - (h && t[`defaultValue${this.options.pluralSeparator}zero`]) || - t[`defaultValue${f}`] || - t[`defaultValue${m}`] || - t.defaultValue; - !this.isValidLookup(d) && p && ((r = !0), (d = g)), - this.isValidLookup(d) || ((i = !0), (d = a)); - const v = - (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && i - ? void 0 - : d, - b = p && g !== d && this.options.updateMissing; - if (i || r || b) { - if ((this.logger.log(b ? 'updateKey' : 'missingKey', l, s, a, b ? g : d), o)) { - const e = this.resolve(a, { ...t, keySeparator: !1 }); - e && - e.res && - this.logger.warn( - 'Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.' - ); - } - let e = []; - const n = this.languageUtils.getFallbackCodes( - this.options.fallbackLng, - t.lng || this.language - ); - if ('fallback' === this.options.saveMissingTo && n && n[0]) - for (let t = 0; t < n.length; t++) e.push(n[t]); - else - 'all' === this.options.saveMissingTo - ? (e = this.languageUtils.toResolveHierarchy(t.lng || this.language)) - : e.push(t.lng || this.language); - const r = (e, n, r) => { - const o = p && r !== d ? r : v; - this.options.missingKeyHandler - ? this.options.missingKeyHandler(e, s, n, o, b, t) - : this.backendConnector && - this.backendConnector.saveMissing && - this.backendConnector.saveMissing(e, s, n, o, b, t), - this.emit('missingKey', e, s, n, d); + const resolved = this.resolve(key, options); + return resolved && resolved.res !== undefined; + } + extractFromKey(key, options) { + let nsSeparator = + options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator; + if (nsSeparator === undefined) nsSeparator = ':'; + const keySeparator = + options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator; + let namespaces = options.ns || this.options.defaultNS || []; + const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1; + const seemsNaturalLanguage = + !this.options.userDefinedKeySeparator && + !options.keySeparator && + !this.options.userDefinedNsSeparator && + !options.nsSeparator && + !looksLikeObjectPath(key, nsSeparator, keySeparator); + if (wouldCheckForNsInKey && !seemsNaturalLanguage) { + const m = key.match(this.interpolator.nestingRegexp); + if (m && m.length > 0) { + return { + key, + namespaces, + }; + } + const parts = key.split(nsSeparator); + if ( + nsSeparator !== keySeparator || + (nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) + ) + namespaces = parts.shift(); + key = parts.join(keySeparator); + } + if (isString$1(namespaces)) namespaces = [namespaces]; + return { + key, + namespaces, + }; + } + translate(keys, options, lastKey) { + if (typeof options !== 'object' && this.options.overloadTranslationOptionHandler) { + options = this.options.overloadTranslationOptionHandler(arguments); + } + if (typeof options === 'object') + options = { + ...options, + }; + if (!options) options = {}; + if (keys === undefined || keys === null) return ''; + if (!Array.isArray(keys)) keys = [String(keys)]; + const returnDetails = + options.returnDetails !== undefined ? options.returnDetails : this.options.returnDetails; + const keySeparator = + options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator; + const { key, namespaces } = this.extractFromKey(keys[keys.length - 1], options); + const namespace = namespaces[namespaces.length - 1]; + const lng = options.lng || this.language; + const appendNamespaceToCIMode = + options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode; + if (lng && lng.toLowerCase() === 'cimode') { + if (appendNamespaceToCIMode) { + const nsSeparator = options.nsSeparator || this.options.nsSeparator; + if (returnDetails) { + return { + res: `${namespace}${nsSeparator}${key}`, + usedKey: key, + exactUsedKey: key, + usedLng: lng, + usedNS: namespace, + usedParams: this.getUsedParamsDetails(options), }; - this.options.saveMissing && - (this.options.saveMissingPlurals && c - ? e.forEach((e) => { - const n = this.pluralResolver.getSuffixes(e, t); - h && - t[`defaultValue${this.options.pluralSeparator}zero`] && - n.indexOf(`${this.options.pluralSeparator}zero`) < 0 && - n.push(`${this.options.pluralSeparator}zero`), - n.forEach((n) => { - r([e], a + n, t[`defaultValue${n}`] || g); - }); - }) - : r(e, a, g)); - } - (d = this.extendTranslation(d, e, t, u, n)), - i && d === a && this.options.appendNamespaceToMissingKey && (d = `${s}:${a}`), - (i || r) && - this.options.parseMissingKeyHandler && - (d = - 'v1' !== this.options.compatibilityAPI - ? this.options.parseMissingKeyHandler( - this.options.appendNamespaceToMissingKey ? `${s}:${a}` : a, - r ? d : void 0 - ) - : this.options.parseMissingKeyHandler(d)); + } + return `${namespace}${nsSeparator}${key}`; } - else { - if (!t.returnObjects && !this.options.returnObjects) { - this.options.returnedObjectHandler || + if (returnDetails) { + return { + res: key, + usedKey: key, + exactUsedKey: key, + usedLng: lng, + usedNS: namespace, + usedParams: this.getUsedParamsDetails(options), + }; + } + return key; + } + const resolved = this.resolve(keys, options); + let res = resolved && resolved.res; + const resUsedKey = (resolved && resolved.usedKey) || key; + const resExactUsedKey = (resolved && resolved.exactUsedKey) || key; + const resType = Object.prototype.toString.apply(res); + const noObject = ['[object Number]', '[object Function]', '[object RegExp]']; + const joinArrays = + options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays; + const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject; + const handleAsObject = !isString$1(res) && typeof res !== 'boolean' && typeof res !== 'number'; + if ( + handleAsObjectInI18nFormat && + res && + handleAsObject && + noObject.indexOf(resType) < 0 && + !(isString$1(joinArrays) && Array.isArray(res)) + ) { + if (!options.returnObjects && !this.options.returnObjects) { + if (!this.options.returnedObjectHandler) { this.logger.warn('accessing an object - but returnObjects options is not enabled!'); - const e = this.options.returnedObjectHandler - ? this.options.returnedObjectHandler(p, d, { ...t, ns: i }) - : `key '${a} (${this.language})' returned an object instead of string.`; - return r ? ((u.res = e), (u.usedParams = this.getUsedParamsDetails(t)), u) : e; - } - if (o) { - const e = Array.isArray(d), - n = e ? [] : {}, - r = e ? f : p; - for (const e in d) - if (Object.prototype.hasOwnProperty.call(d, e)) { - const a = `${r}${o}${e}`; - (n[e] = this.translate(a, { ...t, joinArrays: !1, ns: i })), - n[e] === a && (n[e] = d[e]); + } + const r = this.options.returnedObjectHandler + ? this.options.returnedObjectHandler(resUsedKey, res, { + ...options, + ns: namespaces, + }) + : `key '${key} (${this.language})' returned an object instead of string.`; + if (returnDetails) { + resolved.res = r; + resolved.usedParams = this.getUsedParamsDetails(options); + return resolved; + } + return r; + } + if (keySeparator) { + const resTypeIsArray = Array.isArray(res); + const copy = resTypeIsArray ? [] : {}; + const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey; + for (const m in res) { + if (Object.prototype.hasOwnProperty.call(res, m)) { + const deepKey = `${newKeyToUse}${keySeparator}${m}`; + copy[m] = this.translate(deepKey, { + ...options, + ...{ + joinArrays: false, + ns: namespaces, + }, + }); + if (copy[m] === deepKey) copy[m] = res[m]; + } + } + res = copy; + } + } else if (handleAsObjectInI18nFormat && isString$1(joinArrays) && Array.isArray(res)) { + res = res.join(joinArrays); + if (res) res = this.extendTranslation(res, keys, options, lastKey); + } else { + let usedDefault = false; + let usedKey = false; + const needsPluralHandling = options.count !== undefined && !isString$1(options.count); + const hasDefaultValue = Translator.hasDefaultValue(options); + const defaultValueSuffix = needsPluralHandling + ? this.pluralResolver.getSuffix(lng, options.count, options) + : ''; + const defaultValueSuffixOrdinalFallback = + options.ordinal && needsPluralHandling + ? this.pluralResolver.getSuffix(lng, options.count, { + ordinal: false, + }) + : ''; + const needsZeroSuffixLookup = + needsPluralHandling && + !options.ordinal && + options.count === 0 && + this.pluralResolver.shouldUseIntlApi(); + const defaultValue = + (needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`]) || + options[`defaultValue${defaultValueSuffix}`] || + options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || + options.defaultValue; + if (!this.isValidLookup(res) && hasDefaultValue) { + usedDefault = true; + res = defaultValue; + } + if (!this.isValidLookup(res)) { + usedKey = true; + res = key; + } + const missingKeyNoValueFallbackToKey = + options.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey; + const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res; + const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing; + if (usedKey || usedDefault || updateMissing) { + this.logger.log( + updateMissing ? 'updateKey' : 'missingKey', + lng, + namespace, + key, + updateMissing ? defaultValue : res + ); + if (keySeparator) { + const fk = this.resolve(key, { + ...options, + keySeparator: false, + }); + if (fk && fk.res) + this.logger.warn( + 'Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.' + ); + } + let lngs = []; + const fallbackLngs = this.languageUtils.getFallbackCodes( + this.options.fallbackLng, + options.lng || this.language + ); + if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) { + for (let i = 0; i < fallbackLngs.length; i++) { + lngs.push(fallbackLngs[i]); + } + } else if (this.options.saveMissingTo === 'all') { + lngs = this.languageUtils.toResolveHierarchy(options.lng || this.language); + } else { + lngs.push(options.lng || this.language); + } + const send = (l, k, specificDefaultValue) => { + const defaultForMissing = + hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing; + if (this.options.missingKeyHandler) { + this.options.missingKeyHandler( + l, + namespace, + k, + defaultForMissing, + updateMissing, + options + ); + } else if (this.backendConnector && this.backendConnector.saveMissing) { + this.backendConnector.saveMissing( + l, + namespace, + k, + defaultForMissing, + updateMissing, + options + ); + } + this.emit('missingKey', l, namespace, k, res); + }; + if (this.options.saveMissing) { + if (this.options.saveMissingPlurals && needsPluralHandling) { + lngs.forEach((language) => { + const suffixes = this.pluralResolver.getSuffixes(language, options); + if ( + needsZeroSuffixLookup && + options[`defaultValue${this.options.pluralSeparator}zero`] && + suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0 + ) { + suffixes.push(`${this.options.pluralSeparator}zero`); + } + suffixes.forEach((suffix) => { + send([language], key + suffix, options[`defaultValue${suffix}`] || defaultValue); + }); + }); + } else { + send(lngs, key, defaultValue); } - d = n; + } + } + res = this.extendTranslation(res, keys, options, resolved, lastKey); + if (usedKey && res === key && this.options.appendNamespaceToMissingKey) + res = `${namespace}:${key}`; + if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) { + if (this.options.compatibilityAPI !== 'v1') { + res = this.options.parseMissingKeyHandler( + this.options.appendNamespaceToMissingKey ? `${namespace}:${key}` : key, + usedDefault ? res : undefined + ); + } else { + res = this.options.parseMissingKeyHandler(res); + } } } - return r ? ((u.res = d), (u.usedParams = this.getUsedParamsDetails(t)), u) : d; + if (returnDetails) { + resolved.res = res; + resolved.usedParams = this.getUsedParamsDetails(options); + return resolved; + } + return res; } - extendTranslation(e, t, n, r, o) { - var a = this; - if (this.i18nFormat && this.i18nFormat.parse) - e = this.i18nFormat.parse( - e, - { ...this.options.interpolation.defaultVariables, ...n }, - n.lng || this.language || r.usedLng, - r.usedNS, - r.usedKey, - { resolved: r } + extendTranslation(res, key, options, resolved, lastKey) { + var _this = this; + if (this.i18nFormat && this.i18nFormat.parse) { + res = this.i18nFormat.parse( + res, + { + ...this.options.interpolation.defaultVariables, + ...options, + }, + options.lng || this.language || resolved.usedLng, + resolved.usedNS, + resolved.usedKey, + { + resolved, + } ); - else if (!n.skipInterpolation) { - n.interpolation && + } else if (!options.skipInterpolation) { + if (options.interpolation) this.interpolator.init({ - ...n, - interpolation: { ...this.options.interpolation, ...n.interpolation }, + ...options, + ...{ + interpolation: { + ...this.options.interpolation, + ...options.interpolation, + }, + }, }); - const i = - C(e) && - (n && n.interpolation && void 0 !== n.interpolation.skipOnVariables - ? n.interpolation.skipOnVariables + const skipOnVariables = + isString$1(res) && + (options && options.interpolation && options.interpolation.skipOnVariables !== undefined + ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables); - let s; - if (i) { - const t = e.match(this.interpolator.nestingRegexp); - s = t && t.length; - } - let l = n.replace && !C(n.replace) ? n.replace : n; - if ( - (this.options.interpolation.defaultVariables && - (l = { ...this.options.interpolation.defaultVariables, ...l }), - (e = this.interpolator.interpolate(e, l, n.lng || this.language || r.usedLng, n)), - i) - ) { - const t = e.match(this.interpolator.nestingRegexp); - s < (t && t.length) && (n.nest = !1); - } - !n.lng && - 'v1' !== this.options.compatibilityAPI && - r && - r.res && - (n.lng = this.language || r.usedLng), - !1 !== n.nest && - (e = this.interpolator.nest( - e, - function () { - for (var e = arguments.length, r = new Array(e), i = 0; i < e; i++) - r[i] = arguments[i]; - return o && o[0] === r[0] && !n.context - ? (a.logger.warn( - `It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}` - ), - null) - : a.translate(...r, t); - }, - n - )), - n.interpolation && this.interpolator.reset(); + let nestBef; + if (skipOnVariables) { + const nb = res.match(this.interpolator.nestingRegexp); + nestBef = nb && nb.length; + } + let data = options.replace && !isString$1(options.replace) ? options.replace : options; + if (this.options.interpolation.defaultVariables) + data = { + ...this.options.interpolation.defaultVariables, + ...data, + }; + res = this.interpolator.interpolate( + res, + data, + options.lng || this.language || resolved.usedLng, + options + ); + if (skipOnVariables) { + const na = res.match(this.interpolator.nestingRegexp); + const nestAft = na && na.length; + if (nestBef < nestAft) options.nest = false; + } + if (!options.lng && this.options.compatibilityAPI !== 'v1' && resolved && resolved.res) + options.lng = this.language || resolved.usedLng; + if (options.nest !== false) + res = this.interpolator.nest( + res, + function () { + for ( + var _len = arguments.length, args = new Array(_len), _key = 0; + _key < _len; + _key++ + ) { + args[_key] = arguments[_key]; + } + if (lastKey && lastKey[0] === args[0] && !options.context) { + _this.logger.warn( + `It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}` + ); + return null; + } + return _this.translate(...args, key); + }, + options + ); + if (options.interpolation) this.interpolator.reset(); } - const i = n.postProcess || this.options.postProcess, - s = C(i) ? [i] : i; - return ( - null != e && - s && - s.length && - !1 !== n.applyPostProcessor && - (e = Y.handle( - s, - e, - t, - this.options && this.options.postProcessPassResolved - ? { i18nResolved: { ...r, usedParams: this.getUsedParamsDetails(n) }, ...n } - : n, - this - )), - e - ); + const postProcess = options.postProcess || this.options.postProcess; + const postProcessorNames = isString$1(postProcess) ? [postProcess] : postProcess; + if ( + res !== undefined && + res !== null && + postProcessorNames && + postProcessorNames.length && + options.applyPostProcessor !== false + ) { + res = postProcessor.handle( + postProcessorNames, + res, + key, + this.options && this.options.postProcessPassResolved + ? { + i18nResolved: { + ...resolved, + usedParams: this.getUsedParamsDetails(options), + }, + ...options, + } + : options, + this + ); + } + return res; } - resolve(e) { - let t, - n, - r, - o, - a, - i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - return ( - C(e) && (e = [e]), - e.forEach((e) => { - if (this.isValidLookup(t)) return; - const s = this.extractFromKey(e, i), - l = s.key; - n = l; - let c = s.namespaces; - this.options.fallbackNS && (c = c.concat(this.options.fallbackNS)); - const u = void 0 !== i.count && !C(i.count), - d = u && !i.ordinal && 0 === i.count && this.pluralResolver.shouldUseIntlApi(), - p = - void 0 !== i.context && - (C(i.context) || 'number' == typeof i.context) && - '' !== i.context, - f = i.lngs - ? i.lngs - : this.languageUtils.toResolveHierarchy(i.lng || this.language, i.fallbackLng); - c.forEach((e) => { - this.isValidLookup(t) || - ((a = e), - !K[`${f[0]}-${e}`] && - this.utils && - this.utils.hasLoadedNamespace && - !this.utils.hasLoadedNamespace(a) && - ((K[`${f[0]}-${e}`] = !0), - this.logger.warn( - `key "${n}" for languages "${f.join( - ', ' - )}" won't get resolved as namespace "${a}" was not yet loaded`, - 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!' - )), - f.forEach((n) => { - if (this.isValidLookup(t)) return; - o = n; - const a = [l]; - if (this.i18nFormat && this.i18nFormat.addLookupKeys) - this.i18nFormat.addLookupKeys(a, l, n, e, i); - else { - let e; - u && (e = this.pluralResolver.getSuffix(n, i.count, i)); - const t = `${this.options.pluralSeparator}zero`, - r = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`; - if ( - (u && - (a.push(l + e), - i.ordinal && - 0 === e.indexOf(r) && - a.push(l + e.replace(r, this.options.pluralSeparator)), - d && a.push(l + t)), - p) - ) { - const n = `${l}${this.options.contextSeparator}${i.context}`; - a.push(n), - u && - (a.push(n + e), - i.ordinal && - 0 === e.indexOf(r) && - a.push(n + e.replace(r, this.options.pluralSeparator)), - d && a.push(n + t)); + resolve(keys) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + let found; + let usedKey; + let exactUsedKey; + let usedLng; + let usedNS; + if (isString$1(keys)) keys = [keys]; + keys.forEach((k) => { + if (this.isValidLookup(found)) return; + const extracted = this.extractFromKey(k, options); + const key = extracted.key; + usedKey = key; + let namespaces = extracted.namespaces; + if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS); + const needsPluralHandling = options.count !== undefined && !isString$1(options.count); + const needsZeroSuffixLookup = + needsPluralHandling && + !options.ordinal && + options.count === 0 && + this.pluralResolver.shouldUseIntlApi(); + const needsContextHandling = + options.context !== undefined && + (isString$1(options.context) || typeof options.context === 'number') && + options.context !== ''; + const codes = options.lngs + ? options.lngs + : this.languageUtils.toResolveHierarchy(options.lng || this.language, options.fallbackLng); + namespaces.forEach((ns) => { + if (this.isValidLookup(found)) return; + usedNS = ns; + if ( + !checkedLoadedFor[`${codes[0]}-${ns}`] && + this.utils && + this.utils.hasLoadedNamespace && + !this.utils.hasLoadedNamespace(usedNS) + ) { + checkedLoadedFor[`${codes[0]}-${ns}`] = true; + this.logger.warn( + `key "${usedKey}" for languages "${codes.join( + ', ' + )}" won't get resolved as namespace "${usedNS}" was not yet loaded`, + 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!' + ); + } + codes.forEach((code) => { + if (this.isValidLookup(found)) return; + usedLng = code; + const finalKeys = [key]; + if (this.i18nFormat && this.i18nFormat.addLookupKeys) { + this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options); + } else { + let pluralSuffix; + if (needsPluralHandling) + pluralSuffix = this.pluralResolver.getSuffix(code, options.count, options); + const zeroSuffix = `${this.options.pluralSeparator}zero`; + const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`; + if (needsPluralHandling) { + finalKeys.push(key + pluralSuffix); + if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) { + finalKeys.push( + key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator) + ); + } + if (needsZeroSuffixLookup) { + finalKeys.push(key + zeroSuffix); + } + } + if (needsContextHandling) { + const contextKey = `${key}${this.options.contextSeparator}${options.context}`; + finalKeys.push(contextKey); + if (needsPluralHandling) { + finalKeys.push(contextKey + pluralSuffix); + if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) { + finalKeys.push( + contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator) + ); + } + if (needsZeroSuffixLookup) { + finalKeys.push(contextKey + zeroSuffix); } } - let s; - for (; (s = a.pop()); ) - this.isValidLookup(t) || ((r = s), (t = this.getResource(n, e, s, i))); - })); + } + } + let possibleKey; + while ((possibleKey = finalKeys.pop())) { + if (!this.isValidLookup(found)) { + exactUsedKey = possibleKey; + found = this.getResource(code, ns, possibleKey, options); + } + } }); - }), - { res: t, usedKey: n, exactUsedKey: r, usedLng: o, usedNS: a } - ); + }); + }); + return { + res: found, + usedKey, + exactUsedKey, + usedLng, + usedNS, + }; } - isValidLookup(e) { - return !( - void 0 === e || - (!this.options.returnNull && null === e) || - (!this.options.returnEmptyString && '' === e) + isValidLookup(res) { + return ( + res !== undefined && + !(!this.options.returnNull && res === null) && + !(!this.options.returnEmptyString && res === '') ); } - getResource(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; - return this.i18nFormat && this.i18nFormat.getResource - ? this.i18nFormat.getResource(e, t, n, r) - : this.resourceStore.getResource(e, t, n, r); + getResource(code, ns, key) { + let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + if (this.i18nFormat && this.i18nFormat.getResource) + return this.i18nFormat.getResource(code, ns, key, options); + return this.resourceStore.getResource(code, ns, key, options); } getUsedParamsDetails() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - const t = [ - 'defaultValue', - 'ordinal', - 'context', - 'replace', - 'lng', - 'lngs', - 'fallbackLng', - 'ns', - 'keySeparator', - 'nsSeparator', - 'returnObjects', - 'returnDetails', - 'joinArrays', - 'postProcess', - 'interpolation', - ], - n = e.replace && !C(e.replace); - let r = n ? e.replace : e; - if ( - (n && void 0 !== e.count && (r.count = e.count), - this.options.interpolation.defaultVariables && - (r = { ...this.options.interpolation.defaultVariables, ...r }), - !n) - ) { - r = { ...r }; - for (const e of t) delete r[e]; + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + const optionsKeys = [ + 'defaultValue', + 'ordinal', + 'context', + 'replace', + 'lng', + 'lngs', + 'fallbackLng', + 'ns', + 'keySeparator', + 'nsSeparator', + 'returnObjects', + 'returnDetails', + 'joinArrays', + 'postProcess', + 'interpolation', + ]; + const useOptionsReplaceForData = options.replace && !isString$1(options.replace); + let data = useOptionsReplaceForData ? options.replace : options; + if (useOptionsReplaceForData && typeof options.count !== 'undefined') { + data.count = options.count; + } + if (this.options.interpolation.defaultVariables) { + data = { + ...this.options.interpolation.defaultVariables, + ...data, + }; } - return r; + if (!useOptionsReplaceForData) { + data = { + ...data, + }; + for (const key of optionsKeys) { + delete data[key]; + } + } + return data; } - static hasDefaultValue(e) { - const t = 'defaultValue'; - for (const n in e) - if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, 12) && void 0 !== e[n]) - return !0; - return !1; + static hasDefaultValue(options) { + const prefix = 'defaultValue'; + for (const option in options) { + if ( + Object.prototype.hasOwnProperty.call(options, option) && + prefix === option.substring(0, prefix.length) && + undefined !== options[option] + ) { + return true; + } + } + return false; } } -const Q = (e) => e.charAt(0).toUpperCase() + e.slice(1); -class X { - constructor(e) { - (this.options = e), - (this.supportedLngs = this.options.supportedLngs || !1), - (this.logger = V.create('languageUtils')); + +const capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1); +class LanguageUtil { + constructor(options) { + this.options = options; + this.supportedLngs = this.options.supportedLngs || false; + this.logger = baseLogger.create('languageUtils'); } - getScriptPartFromCode(e) { - if (!(e = $(e)) || e.indexOf('-') < 0) return null; - const t = e.split('-'); - return 2 === t.length - ? null - : (t.pop(), - 'x' === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join('-'))); + getScriptPartFromCode(code) { + code = getCleanedCode(code); + if (!code || code.indexOf('-') < 0) return null; + const p = code.split('-'); + if (p.length === 2) return null; + p.pop(); + if (p[p.length - 1].toLowerCase() === 'x') return null; + return this.formatLanguageCode(p.join('-')); } - getLanguagePartFromCode(e) { - if (!(e = $(e)) || e.indexOf('-') < 0) return e; - const t = e.split('-'); - return this.formatLanguageCode(t[0]); + getLanguagePartFromCode(code) { + code = getCleanedCode(code); + if (!code || code.indexOf('-') < 0) return code; + const p = code.split('-'); + return this.formatLanguageCode(p[0]); } - formatLanguageCode(e) { - if (C(e) && e.indexOf('-') > -1) { - if ('undefined' != typeof Intl && void 0 !== Intl.getCanonicalLocales) + formatLanguageCode(code) { + if (isString$1(code) && code.indexOf('-') > -1) { + if (typeof Intl !== 'undefined' && typeof Intl.getCanonicalLocales !== 'undefined') { try { - let t = Intl.getCanonicalLocales(e)[0]; - if ((t && this.options.lowerCaseLng && (t = t.toLowerCase()), t)) return t; + let formattedCode = Intl.getCanonicalLocales(code)[0]; + if (formattedCode && this.options.lowerCaseLng) { + formattedCode = formattedCode.toLowerCase(); + } + if (formattedCode) return formattedCode; } catch (e) {} - const t = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab']; - let n = e.split('-'); - return ( - this.options.lowerCaseLng - ? (n = n.map((e) => e.toLowerCase())) - : 2 === n.length - ? ((n[0] = n[0].toLowerCase()), - (n[1] = n[1].toUpperCase()), - t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Q(n[1].toLowerCase()))) - : 3 === n.length && - ((n[0] = n[0].toLowerCase()), - 2 === n[1].length && (n[1] = n[1].toUpperCase()), - 'sgn' !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), - t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Q(n[1].toLowerCase())), - t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Q(n[2].toLowerCase()))), - n.join('-') - ); - } - return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e; - } - isSupportedCode(e) { - return ( - ('languageOnly' === this.options.load || this.options.nonExplicitSupportedLngs) && - (e = this.getLanguagePartFromCode(e)), - !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1 - ); - } - getBestMatchFromCodes(e) { - if (!e) return null; - let t; - return ( - e.forEach((e) => { - if (t) return; - const n = this.formatLanguageCode(e); - (this.options.supportedLngs && !this.isSupportedCode(n)) || (t = n); - }), - !t && - this.options.supportedLngs && - e.forEach((e) => { - if (t) return; - const n = this.getLanguagePartFromCode(e); - if (this.isSupportedCode(n)) return (t = n); - t = this.options.supportedLngs.find((e) => - e === n - ? e - : e.indexOf('-') < 0 && n.indexOf('-') < 0 - ? void 0 - : (e.indexOf('-') > 0 && - n.indexOf('-') < 0 && - e.substring(0, e.indexOf('-')) === n) || - (0 === e.indexOf(n) && n.length > 1) - ? e - : void 0 - ); - }), - t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), - t - ); - } - getFallbackCodes(e, t) { - if (!e) return []; - if (('function' == typeof e && (e = e(t)), C(e) && (e = [e]), Array.isArray(e))) return e; - if (!t) return e.default || []; - let n = e[t]; - return ( - n || (n = e[this.getScriptPartFromCode(t)]), - n || (n = e[this.formatLanguageCode(t)]), - n || (n = e[this.getLanguagePartFromCode(t)]), - n || (n = e.default), - n || [] - ); + } + const specialCases = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab']; + let p = code.split('-'); + if (this.options.lowerCaseLng) { + p = p.map((part) => part.toLowerCase()); + } else if (p.length === 2) { + p[0] = p[0].toLowerCase(); + p[1] = p[1].toUpperCase(); + if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase()); + } else if (p.length === 3) { + p[0] = p[0].toLowerCase(); + if (p[1].length === 2) p[1] = p[1].toUpperCase(); + if (p[0] !== 'sgn' && p[2].length === 2) p[2] = p[2].toUpperCase(); + if (specialCases.indexOf(p[1].toLowerCase()) > -1) p[1] = capitalize(p[1].toLowerCase()); + if (specialCases.indexOf(p[2].toLowerCase()) > -1) p[2] = capitalize(p[2].toLowerCase()); + } + return p.join('-'); + } + return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code; } - toResolveHierarchy(e, t) { - const n = this.getFallbackCodes(t || this.options.fallbackLng || [], e), - r = [], - o = (e) => { - e && - (this.isSupportedCode(e) - ? r.push(e) - : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`)); - }; + isSupportedCode(code) { + if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) { + code = this.getLanguagePartFromCode(code); + } return ( - C(e) && (e.indexOf('-') > -1 || e.indexOf('_') > -1) - ? ('languageOnly' !== this.options.load && o(this.formatLanguageCode(e)), - 'languageOnly' !== this.options.load && - 'currentOnly' !== this.options.load && - o(this.getScriptPartFromCode(e)), - 'currentOnly' !== this.options.load && o(this.getLanguagePartFromCode(e))) - : C(e) && o(this.formatLanguageCode(e)), - n.forEach((e) => { - r.indexOf(e) < 0 && o(this.formatLanguageCode(e)); - }), - r + !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1 ); } -} -let J = [ - { - lngs: [ - 'ach', - 'ak', - 'am', - 'arn', - 'br', - 'fil', - 'gun', - 'ln', - 'mfe', - 'mg', - 'mi', - 'oc', - 'pt', - 'pt-BR', - 'tg', - 'tl', - 'ti', - 'tr', - 'uz', - 'wa', - ], - nr: [1, 2], - fc: 1, - }, - { - lngs: [ - 'af', - 'an', - 'ast', - 'az', - 'bg', - 'bn', - 'ca', - 'da', - 'de', - 'dev', - 'el', - 'en', - 'eo', - 'es', - 'et', - 'eu', - 'fi', - 'fo', - 'fur', - 'fy', - 'gl', - 'gu', - 'ha', - 'hi', - 'hu', - 'hy', - 'ia', - 'it', - 'kk', - 'kn', - 'ku', - 'lb', - 'mai', - 'ml', - 'mn', - 'mr', - 'nah', - 'nap', - 'nb', - 'ne', - 'nl', - 'nn', - 'no', - 'nso', - 'pa', - 'pap', - 'pms', - 'ps', - 'pt-PT', - 'rm', - 'sco', - 'se', - 'si', - 'so', - 'son', - 'sq', - 'sv', - 'sw', - 'ta', - 'te', - 'tk', - 'ur', - 'yo', - ], - nr: [1, 2], - fc: 2, - }, - { - lngs: [ - 'ay', - 'bo', - 'cgg', - 'fa', - 'ht', - 'id', - 'ja', - 'jbo', - 'ka', - 'km', - 'ko', - 'ky', - 'lo', - 'ms', - 'sah', - 'su', - 'th', - 'tt', - 'ug', - 'vi', - 'wo', - 'zh', - ], - nr: [1], - fc: 3, - }, - { lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'], nr: [1, 2, 5], fc: 4 }, - { lngs: ['ar'], nr: [0, 1, 2, 3, 11, 100], fc: 5 }, - { lngs: ['cs', 'sk'], nr: [1, 2, 5], fc: 6 }, - { lngs: ['csb', 'pl'], nr: [1, 2, 5], fc: 7 }, - { lngs: ['cy'], nr: [1, 2, 3, 8], fc: 8 }, - { lngs: ['fr'], nr: [1, 2], fc: 9 }, - { lngs: ['ga'], nr: [1, 2, 3, 7, 11], fc: 10 }, - { lngs: ['gd'], nr: [1, 2, 3, 20], fc: 11 }, - { lngs: ['is'], nr: [1, 2], fc: 12 }, - { lngs: ['jv'], nr: [0, 1], fc: 13 }, - { lngs: ['kw'], nr: [1, 2, 3, 4], fc: 14 }, - { lngs: ['lt'], nr: [1, 2, 10], fc: 15 }, - { lngs: ['lv'], nr: [1, 2, 0], fc: 16 }, - { lngs: ['mk'], nr: [1, 2], fc: 17 }, - { lngs: ['mnk'], nr: [0, 1, 2], fc: 18 }, - { lngs: ['mt'], nr: [1, 2, 11, 20], fc: 19 }, - { lngs: ['or'], nr: [2, 1], fc: 2 }, - { lngs: ['ro'], nr: [1, 2, 20], fc: 20 }, - { lngs: ['sl'], nr: [5, 1, 2, 3], fc: 21 }, - { lngs: ['he', 'iw'], nr: [1, 2, 20, 21], fc: 22 }, - ], - Z = { - 1: (e) => Number(e > 1), - 2: (e) => Number(1 != e), - 3: (e) => 0, - 4: (e) => - Number( - e % 10 == 1 && e % 100 != 11 - ? 0 - : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) - ? 1 - : 2 - ), - 5: (e) => - Number( - 0 == e - ? 0 - : 1 == e - ? 1 - : 2 == e - ? 2 - : e % 100 >= 3 && e % 100 <= 10 - ? 3 - : e % 100 >= 11 - ? 4 - : 5 - ), - 6: (e) => Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2), - 7: (e) => - Number(1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2), - 8: (e) => Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3), - 9: (e) => Number(e >= 2), - 10: (e) => Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4), - 11: (e) => Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3), - 12: (e) => Number(e % 10 != 1 || e % 100 == 11), - 13: (e) => Number(0 !== e), - 14: (e) => Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3), - 15: (e) => - Number( - e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2 - ), - 16: (e) => Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2), - 17: (e) => Number(1 == e || (e % 10 == 1 && e % 100 != 11) ? 0 : 1), - 18: (e) => Number(0 == e ? 0 : 1 == e ? 1 : 2), - 19: (e) => - Number( - 1 == e - ? 0 - : 0 == e || (e % 100 > 1 && e % 100 < 11) - ? 1 - : e % 100 > 10 && e % 100 < 20 - ? 2 - : 3 - ), - 20: (e) => Number(1 == e ? 0 : 0 == e || (e % 100 > 0 && e % 100 < 20) ? 1 : 2), - 21: (e) => Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0), - 22: (e) => Number(1 == e ? 0 : 2 == e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3), - }; -const ee = ['v1', 'v2', 'v3'], - te = ['v4'], - ne = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }; -class re { - constructor(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - (this.languageUtils = e), - (this.options = t), - (this.logger = V.create('pluralResolver')), - (this.options.compatibilityJSON && !te.includes(this.options.compatibilityJSON)) || - ('undefined' != typeof Intl && Intl.PluralRules) || - ((this.options.compatibilityJSON = 'v3'), - this.logger.error( - 'Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.' - )), - (this.rules = (() => { - const e = {}; - return ( - J.forEach((t) => { - t.lngs.forEach((n) => { - e[n] = { numbers: t.nr, plurals: Z[t.fc] }; - }); - }), - e - ); - })()), - (this.pluralRulesCache = {}); - } - addRule(e, t) { - this.rules[e] = t; - } - clearCache() { - this.pluralRulesCache = {}; - } - getRule(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - if (this.shouldUseIntlApi()) - try { - const n = $('dev' === e ? 'en' : e), - r = t.ordinal ? 'ordinal' : 'cardinal', - o = JSON.stringify({ cleanedCode: n, type: r }); - if (o in this.pluralRulesCache) return this.pluralRulesCache[o]; - const a = new Intl.PluralRules(n, { type: r }); - return (this.pluralRulesCache[o] = a), a; - } catch (e) { - return; - } - return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)]; - } - needsPlural(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - const n = this.getRule(e, t); - return this.shouldUseIntlApi() - ? n && n.resolvedOptions().pluralCategories.length > 1 - : n && n.numbers.length > 1; - } - getPluralFormsOfKey(e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - return this.getSuffixes(e, n).map((e) => `${t}${e}`); - } - getSuffixes(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - const n = this.getRule(e, t); - return n - ? this.shouldUseIntlApi() - ? n - .resolvedOptions() - .pluralCategories.sort((e, t) => ne[e] - ne[t]) - .map( - (e) => - `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ''}${e}` - ) - : n.numbers.map((n) => this.getSuffix(e, n, t)) - : []; - } - getSuffix(e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - const r = this.getRule(e, n); - return r - ? this.shouldUseIntlApi() - ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ''}${r.select( - t - )}` - : this.getSuffixRetroCompatible(r, t) - : (this.logger.warn(`no plural rule found for: ${e}`), ''); - } - getSuffixRetroCompatible(e, t) { - const n = e.noAbs ? e.plurals(t) : e.plurals(Math.abs(t)); - let r = e.numbers[n]; - this.options.simplifyPluralSuffix && - 2 === e.numbers.length && - 1 === e.numbers[0] && - (2 === r ? (r = 'plural') : 1 === r && (r = '')); - const o = () => - this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString(); - return 'v1' === this.options.compatibilityJSON - ? 1 === r - ? '' - : 'number' == typeof r - ? `_plural_${r.toString()}` - : o() - : 'v2' === this.options.compatibilityJSON || - (this.options.simplifyPluralSuffix && 2 === e.numbers.length && 1 === e.numbers[0]) - ? o() - : this.options.prepend && n.toString() - ? this.options.prepend + n.toString() - : n.toString(); - } - shouldUseIntlApi() { - return !ee.includes(this.options.compatibilityJSON); - } -} -const oe = function (e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : '.', - o = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4], - a = ((e, t, n) => { - const r = R(e, n); - return void 0 !== r ? r : R(t, n); - })(e, t, n); - return !a && o && C(n) && ((a = H(e, n, r)), void 0 === a && (a = H(t, n, r))), a; - }, - ae = (e) => e.replace(/\$/g, '$$$$'); -class ie { - constructor() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - (this.logger = V.create('interpolator')), - (this.options = e), - (this.format = (e.interpolation && e.interpolation.format) || ((e) => e)), - this.init(e); - } - init() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - e.interpolation || (e.interpolation = { escapeValue: !0 }); - const { - escape: t, - escapeValue: n, - useRawValueToEscape: r, - prefix: o, - prefixEscaped: a, - suffix: i, - suffixEscaped: s, - formatSeparator: l, - unescapeSuffix: c, - unescapePrefix: u, - nestingPrefix: d, - nestingPrefixEscaped: p, - nestingSuffix: f, - nestingSuffixEscaped: m, - nestingOptionsSeparator: h, - maxReplaces: g, - alwaysFormat: v, - } = e.interpolation; - (this.escape = void 0 !== t ? t : z), - (this.escapeValue = void 0 === n || n), - (this.useRawValueToEscape = void 0 !== r && r), - (this.prefix = o ? D(o) : a || '{{'), - (this.suffix = i ? D(i) : s || '}}'), - (this.formatSeparator = l || ','), - (this.unescapePrefix = c ? '' : u || '-'), - (this.unescapeSuffix = this.unescapePrefix ? '' : c || ''), - (this.nestingPrefix = d ? D(d) : p || D('$t(')), - (this.nestingSuffix = f ? D(f) : m || D(')')), - (this.nestingOptionsSeparator = h || ','), - (this.maxReplaces = g || 1e3), - (this.alwaysFormat = void 0 !== v && v), - this.resetRegExp(); - } - reset() { - this.options && this.init(this.options); - } - resetRegExp() { - const e = (e, t) => (e && e.source === t ? ((e.lastIndex = 0), e) : new RegExp(t, 'g')); - (this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`)), - (this.regexpUnescape = e( - this.regexpUnescape, - `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}` - )), - (this.nestingRegexp = e( - this.nestingRegexp, - `${this.nestingPrefix}(.+?)${this.nestingSuffix}` - )); - } - interpolate(e, t, n, r) { - let o, a, i; - const s = - (this.options && - this.options.interpolation && - this.options.interpolation.defaultVariables) || - {}, - l = (e) => { - if (e.indexOf(this.formatSeparator) < 0) { - const o = oe(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure); - return this.alwaysFormat - ? this.format(o, void 0, n, { ...r, ...t, interpolationkey: e }) - : o; - } - const o = e.split(this.formatSeparator), - a = o.shift().trim(), - i = o.join(this.formatSeparator).trim(); - return this.format( - oe(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), - i, - n, - { ...r, ...t, interpolationkey: a } - ); - }; - this.resetRegExp(); - const c = (r && r.missingInterpolationHandler) || this.options.missingInterpolationHandler, - u = - r && r.interpolation && void 0 !== r.interpolation.skipOnVariables - ? r.interpolation.skipOnVariables - : this.options.interpolation.skipOnVariables; - return ( - [ - { regex: this.regexpUnescape, safeValue: (e) => ae(e) }, - { regex: this.regexp, safeValue: (e) => (this.escapeValue ? ae(this.escape(e)) : ae(e)) }, - ].forEach((t) => { - for (i = 0; (o = t.regex.exec(e)); ) { - const n = o[1].trim(); - if (((a = l(n)), void 0 === a)) - if ('function' == typeof c) { - const t = c(e, o, r); - a = C(t) ? t : ''; - } else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = ''; - else { - if (u) { - a = o[0]; - continue; - } - this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), (a = ''); - } - else C(a) || this.useRawValueToEscape || (a = P(a)); - const s = t.safeValue(a); + getBestMatchFromCodes(codes) { + if (!codes) return null; + let found; + codes.forEach((code) => { + if (found) return; + const cleanedLng = this.formatLanguageCode(code); + if (!this.options.supportedLngs || this.isSupportedCode(cleanedLng)) found = cleanedLng; + }); + if (!found && this.options.supportedLngs) { + codes.forEach((code) => { + if (found) return; + const lngOnly = this.getLanguagePartFromCode(code); + if (this.isSupportedCode(lngOnly)) return (found = lngOnly); + found = this.options.supportedLngs.find((supportedLng) => { + if (supportedLng === lngOnly) return supportedLng; + if (supportedLng.indexOf('-') < 0 && lngOnly.indexOf('-') < 0) return; if ( - ((e = e.replace(o[0], s)), - u - ? ((t.regex.lastIndex += a.length), (t.regex.lastIndex -= o[0].length)) - : (t.regex.lastIndex = 0), - i++, - i >= this.maxReplaces) + supportedLng.indexOf('-') > 0 && + lngOnly.indexOf('-') < 0 && + supportedLng.substring(0, supportedLng.indexOf('-')) === lngOnly ) - break; - } - }), - e - ); + return supportedLng; + if (supportedLng.indexOf(lngOnly) === 0 && lngOnly.length > 1) return supportedLng; + }); + }); + } + if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0]; + return found; } - nest(e, t) { - let n, - r, - o, - a = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - const i = (e, t) => { - const n = this.nestingOptionsSeparator; - if (e.indexOf(n) < 0) return e; - const r = e.split(new RegExp(`${n}[ ]*{`)); - let a = `{${r[1]}`; - (e = r[0]), (a = this.interpolate(a, o)); - const i = a.match(/'/g), - s = a.match(/"/g); - ((i && i.length % 2 == 0 && !s) || s.length % 2 != 0) && (a = a.replace(/'/g, '"')); - try { - (o = JSON.parse(a)), t && (o = { ...t, ...o }); - } catch (t) { - return ( - this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), - `${e}${n}${a}` - ); + getFallbackCodes(fallbacks, code) { + if (!fallbacks) return []; + if (typeof fallbacks === 'function') fallbacks = fallbacks(code); + if (isString$1(fallbacks)) fallbacks = [fallbacks]; + if (Array.isArray(fallbacks)) return fallbacks; + if (!code) return fallbacks.default || []; + let found = fallbacks[code]; + if (!found) found = fallbacks[this.getScriptPartFromCode(code)]; + if (!found) found = fallbacks[this.formatLanguageCode(code)]; + if (!found) found = fallbacks[this.getLanguagePartFromCode(code)]; + if (!found) found = fallbacks.default; + return found || []; + } + toResolveHierarchy(code, fallbackCode) { + const fallbackCodes = this.getFallbackCodes( + fallbackCode || this.options.fallbackLng || [], + code + ); + const codes = []; + const addCode = (c) => { + if (!c) return; + if (this.isSupportedCode(c)) { + codes.push(c); + } else { + this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`); } - return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, e; }; - for (; (n = this.nestingRegexp.exec(e)); ) { - let s = []; - (o = { ...a }), - (o = o.replace && !C(o.replace) ? o.replace : o), - (o.applyPostProcessor = !1), - delete o.defaultValue; - let l = !1; - if (-1 !== n[0].indexOf(this.formatSeparator) && !/{.*}/.test(n[1])) { - const e = n[1].split(this.formatSeparator).map((e) => e.trim()); - (n[1] = e.shift()), (s = e), (l = !0); - } - if (((r = t(i.call(this, n[1].trim(), o), o)), r && n[0] === e && !C(r))) return r; - C(r) || (r = P(r)), - r || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), (r = '')), - l && - (r = s.reduce( - (e, t) => this.format(e, t, a.lng, { ...a, interpolationkey: n[1].trim() }), - r.trim() - )), - (e = e.replace(n[0], r)), - (this.regexp.lastIndex = 0); - } - return e; + if (isString$1(code) && (code.indexOf('-') > -1 || code.indexOf('_') > -1)) { + if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code)); + if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') + addCode(this.getScriptPartFromCode(code)); + if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code)); + } else if (isString$1(code)) { + addCode(this.formatLanguageCode(code)); + } + fallbackCodes.forEach((fc) => { + if (codes.indexOf(fc) < 0) addCode(this.formatLanguageCode(fc)); + }); + return codes; } } -const se = (e) => { - const t = {}; - return (n, r, o) => { - let a = o; - o && - o.interpolationkey && - o.formatParams && - o.formatParams[o.interpolationkey] && - o[o.interpolationkey] && - (a = { ...a, [o.interpolationkey]: void 0 }); - const i = r + JSON.stringify(a); - let s = t[i]; - return s || ((s = e($(r), o)), (t[i] = s)), s(n); - }; -}; -class le { - constructor() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - (this.logger = V.create('formatter')), - (this.options = e), - (this.formats = { - number: se((e, t) => { - const n = new Intl.NumberFormat(e, { ...t }); - return (e) => n.format(e); - }), - currency: se((e, t) => { - const n = new Intl.NumberFormat(e, { ...t, style: 'currency' }); - return (e) => n.format(e); - }), - datetime: se((e, t) => { - const n = new Intl.DateTimeFormat(e, { ...t }); - return (e) => n.format(e); - }), - relativetime: se((e, t) => { - const n = new Intl.RelativeTimeFormat(e, { ...t }); - return (e) => n.format(e, t.range || 'day'); - }), - list: se((e, t) => { - const n = new Intl.ListFormat(e, { ...t }); - return (e) => n.format(e); - }), - }), - this.init(e); - } - init(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} }; - this.formatSeparator = t.interpolation.formatSeparator || ','; + +let sets = [ + { + lngs: [ + 'ach', + 'ak', + 'am', + 'arn', + 'br', + 'fil', + 'gun', + 'ln', + 'mfe', + 'mg', + 'mi', + 'oc', + 'pt', + 'pt-BR', + 'tg', + 'tl', + 'ti', + 'tr', + 'uz', + 'wa', + ], + nr: [1, 2], + fc: 1, + }, + { + lngs: [ + 'af', + 'an', + 'ast', + 'az', + 'bg', + 'bn', + 'ca', + 'da', + 'de', + 'dev', + 'el', + 'en', + 'eo', + 'es', + 'et', + 'eu', + 'fi', + 'fo', + 'fur', + 'fy', + 'gl', + 'gu', + 'ha', + 'hi', + 'hu', + 'hy', + 'ia', + 'it', + 'kk', + 'kn', + 'ku', + 'lb', + 'mai', + 'ml', + 'mn', + 'mr', + 'nah', + 'nap', + 'nb', + 'ne', + 'nl', + 'nn', + 'no', + 'nso', + 'pa', + 'pap', + 'pms', + 'ps', + 'pt-PT', + 'rm', + 'sco', + 'se', + 'si', + 'so', + 'son', + 'sq', + 'sv', + 'sw', + 'ta', + 'te', + 'tk', + 'ur', + 'yo', + ], + nr: [1, 2], + fc: 2, + }, + { + lngs: [ + 'ay', + 'bo', + 'cgg', + 'fa', + 'ht', + 'id', + 'ja', + 'jbo', + 'ka', + 'km', + 'ko', + 'ky', + 'lo', + 'ms', + 'sah', + 'su', + 'th', + 'tt', + 'ug', + 'vi', + 'wo', + 'zh', + ], + nr: [1], + fc: 3, + }, + { + lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'], + nr: [1, 2, 5], + fc: 4, + }, + { + lngs: ['ar'], + nr: [0, 1, 2, 3, 11, 100], + fc: 5, + }, + { + lngs: ['cs', 'sk'], + nr: [1, 2, 5], + fc: 6, + }, + { + lngs: ['csb', 'pl'], + nr: [1, 2, 5], + fc: 7, + }, + { + lngs: ['cy'], + nr: [1, 2, 3, 8], + fc: 8, + }, + { + lngs: ['fr'], + nr: [1, 2], + fc: 9, + }, + { + lngs: ['ga'], + nr: [1, 2, 3, 7, 11], + fc: 10, + }, + { + lngs: ['gd'], + nr: [1, 2, 3, 20], + fc: 11, + }, + { + lngs: ['is'], + nr: [1, 2], + fc: 12, + }, + { + lngs: ['jv'], + nr: [0, 1], + fc: 13, + }, + { + lngs: ['kw'], + nr: [1, 2, 3, 4], + fc: 14, + }, + { + lngs: ['lt'], + nr: [1, 2, 10], + fc: 15, + }, + { + lngs: ['lv'], + nr: [1, 2, 0], + fc: 16, + }, + { + lngs: ['mk'], + nr: [1, 2], + fc: 17, + }, + { + lngs: ['mnk'], + nr: [0, 1, 2], + fc: 18, + }, + { + lngs: ['mt'], + nr: [1, 2, 11, 20], + fc: 19, + }, + { + lngs: ['or'], + nr: [2, 1], + fc: 2, + }, + { + lngs: ['ro'], + nr: [1, 2, 20], + fc: 20, + }, + { + lngs: ['sl'], + nr: [5, 1, 2, 3], + fc: 21, + }, + { + lngs: ['he', 'iw'], + nr: [1, 2, 20, 21], + fc: 22, + }, +]; +let _rulesPluralsTypes = { + 1: (n) => Number(n > 1), + 2: (n) => Number(n != 1), + 3: (n) => 0, + 4: (n) => + Number( + n % 10 == 1 && n % 100 != 11 + ? 0 + : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) + ? 1 + : 2 + ), + 5: (n) => + Number( + n == 0 + ? 0 + : n == 1 + ? 1 + : n == 2 + ? 2 + : n % 100 >= 3 && n % 100 <= 10 + ? 3 + : n % 100 >= 11 + ? 4 + : 5 + ), + 6: (n) => Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2), + 7: (n) => + Number(n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2), + 8: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3), + 9: (n) => Number(n >= 2), + 10: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4), + 11: (n) => Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3), + 12: (n) => Number(n % 10 != 1 || n % 100 == 11), + 13: (n) => Number(n !== 0), + 14: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3), + 15: (n) => + Number( + n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2 + ), + 16: (n) => Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2), + 17: (n) => Number(n == 1 || (n % 10 == 1 && n % 100 != 11) ? 0 : 1), + 18: (n) => Number(n == 0 ? 0 : n == 1 ? 1 : 2), + 19: (n) => + Number( + n == 1 + ? 0 + : n == 0 || (n % 100 > 1 && n % 100 < 11) + ? 1 + : n % 100 > 10 && n % 100 < 20 + ? 2 + : 3 + ), + 20: (n) => Number(n == 1 ? 0 : n == 0 || (n % 100 > 0 && n % 100 < 20) ? 1 : 2), + 21: (n) => Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0), + 22: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3), +}; +const nonIntlVersions = ['v1', 'v2', 'v3']; +const intlVersions = ['v4']; +const suffixesOrder = { + zero: 0, + one: 1, + two: 2, + few: 3, + many: 4, + other: 5, +}; +const createRules = () => { + const rules = {}; + sets.forEach((set) => { + set.lngs.forEach((l) => { + rules[l] = { + numbers: set.nr, + plurals: _rulesPluralsTypes[set.fc], + }; + }); + }); + return rules; +}; +class PluralResolver { + constructor(languageUtils) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + this.languageUtils = languageUtils; + this.options = options; + this.logger = baseLogger.create('pluralResolver'); + if ( + (!this.options.compatibilityJSON || intlVersions.includes(this.options.compatibilityJSON)) && + (typeof Intl === 'undefined' || !Intl.PluralRules) + ) { + this.options.compatibilityJSON = 'v3'; + this.logger.error( + 'Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.' + ); + } + this.rules = createRules(); + this.pluralRulesCache = {}; } - add(e, t) { - this.formats[e.toLowerCase().trim()] = t; + addRule(lng, obj) { + this.rules[lng] = obj; } - addCached(e, t) { - this.formats[e.toLowerCase().trim()] = se(t); + clearCache() { + this.pluralRulesCache = {}; } - format(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; - const o = t.split(this.formatSeparator); - if ( - o.length > 1 && - o[0].indexOf('(') > 1 && - o[0].indexOf(')') < 0 && - o.find((e) => e.indexOf(')') > -1) - ) { - const e = o.findIndex((e) => e.indexOf(')') > -1); - o[0] = [o[0], ...o.splice(1, e)].join(this.formatSeparator); - } - const a = o.reduce((e, t) => { - const { formatName: o, formatOptions: a } = ((e) => { - let t = e.toLowerCase().trim(); - const n = {}; - if (e.indexOf('(') > -1) { - const r = e.split('('); - t = r[0].toLowerCase().trim(); - const o = r[1].substring(0, r[1].length - 1); - 'currency' === t && o.indexOf(':') < 0 - ? n.currency || (n.currency = o.trim()) - : 'relativetime' === t && o.indexOf(':') < 0 - ? n.range || (n.range = o.trim()) - : o.split(';').forEach((e) => { - if (e) { - const [t, ...r] = e.split(':'), - o = r - .join(':') - .trim() - .replace(/^'+|'+$/g, ''), - a = t.trim(); - n[a] || (n[a] = o), - 'false' === o && (n[a] = !1), - 'true' === o && (n[a] = !0), - isNaN(o) || (n[a] = parseInt(o, 10)); - } - }); - } - return { formatName: t, formatOptions: n }; - })(t); - if (this.formats[o]) { - let t = e; - try { - const i = (r && r.formatParams && r.formatParams[r.interpolationkey]) || {}, - s = i.locale || i.lng || r.locale || r.lng || n; - t = this.formats[o](e, s, { ...a, ...r, ...i }); - } catch (e) { - this.logger.warn(e); + getRule(code) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + if (this.shouldUseIntlApi()) { + try { + const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code); + const type = options.ordinal ? 'ordinal' : 'cardinal'; + const cacheKey = JSON.stringify({ + cleanedCode, + type, + }); + if (cacheKey in this.pluralRulesCache) { + return this.pluralRulesCache[cacheKey]; } - return t; + const rule = new Intl.PluralRules(cleanedCode, { + type, + }); + this.pluralRulesCache[cacheKey] = rule; + return rule; + } catch (err) { + return; } - return this.logger.warn(`there was no format function for ${o}`), e; - }, e); - return a; + } + return this.rules[code] || this.rules[this.languageUtils.getLanguagePartFromCode(code)]; } -} -class ce extends U { - constructor(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; - super(), - (this.backend = e), - (this.store = t), - (this.services = n), - (this.languageUtils = n.languageUtils), - (this.options = r), - (this.logger = V.create('backendConnector')), - (this.waitingReads = []), - (this.maxParallelReads = r.maxParallelReads || 10), - (this.readingCalls = 0), - (this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5), - (this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350), - (this.state = {}), - (this.queue = []), - this.backend && this.backend.init && this.backend.init(n, r.backend, r); - } - queueLoad(e, t, n, r) { - const o = {}, - a = {}, - i = {}, - s = {}; - return ( - e.forEach((e) => { - let r = !0; - t.forEach((t) => { - const i = `${e}|${t}`; - !n.reload && this.store.hasResourceBundle(e, t) - ? (this.state[i] = 2) - : this.state[i] < 0 || - (1 === this.state[i] - ? void 0 === a[i] && (a[i] = !0) - : ((this.state[i] = 1), - (r = !1), - void 0 === a[i] && (a[i] = !0), - void 0 === o[i] && (o[i] = !0), - void 0 === s[t] && (s[t] = !0))); - }), - r || (i[e] = !0); - }), - (Object.keys(o).length || Object.keys(a).length) && - this.queue.push({ - pending: a, - pendingCount: Object.keys(a).length, - loaded: {}, - errors: [], - callback: r, - }), - { - toLoad: Object.keys(o), - pending: Object.keys(a), - toLoadLanguages: Object.keys(i), - toLoadNamespaces: Object.keys(s), - } - ); + needsPlural(code) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const rule = this.getRule(code, options); + if (this.shouldUseIntlApi()) { + return rule && rule.resolvedOptions().pluralCategories.length > 1; + } + return rule && rule.numbers.length > 1; } - loaded(e, t, n) { - const r = e.split('|'), - o = r[0], - a = r[1]; - t && this.emit('failedLoading', o, a, t), - !t && n && this.store.addResourceBundle(o, a, n, void 0, void 0, { skipCopy: !0 }), - (this.state[e] = t ? -1 : 2), - t && n && (this.state[e] = 0); - const i = {}; - this.queue.forEach((n) => { - ((e, t, n) => { - const { obj: r, k: o } = M(e, t, Object); - (r[o] = r[o] || []), r[o].push(n); - })(n.loaded, [o], a), - ((e, t) => { - void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--); - })(n, e), - t && n.errors.push(t), - 0 !== n.pendingCount || - n.done || - (Object.keys(n.loaded).forEach((e) => { - i[e] || (i[e] = {}); - const t = n.loaded[e]; - t.length && - t.forEach((t) => { - void 0 === i[e][t] && (i[e][t] = !0); - }); - }), - (n.done = !0), - n.errors.length ? n.callback(n.errors) : n.callback()); - }), - this.emit('loaded', i), - (this.queue = this.queue.filter((e) => !e.done)); - } - read(e, t, n) { - let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0, - o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : this.retryTimeout, - a = arguments.length > 5 ? arguments[5] : void 0; - if (!e.length) return a(null, {}); - if (this.readingCalls >= this.maxParallelReads) - return void this.waitingReads.push({ - lng: e, - ns: t, - fcName: n, - tried: r, - wait: o, - callback: a, - }); - this.readingCalls++; - const i = (i, s) => { - if ((this.readingCalls--, this.waitingReads.length > 0)) { - const e = this.waitingReads.shift(); - this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback); - } - i && s && r < this.maxRetries - ? setTimeout(() => { - this.read.call(this, e, t, n, r + 1, 2 * o, a); - }, o) - : a(i, s); - }, - s = this.backend[n].bind(this.backend); - if (2 !== s.length) return s(e, t, i); - try { - const n = s(e, t); - n && 'function' == typeof n.then ? n.then((e) => i(null, e)).catch(i) : i(null, n); - } catch (e) { - i(e); + getPluralFormsOfKey(code, key) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + return this.getSuffixes(code, options).map((suffix) => `${key}${suffix}`); + } + getSuffixes(code) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const rule = this.getRule(code, options); + if (!rule) { + return []; + } + if (this.shouldUseIntlApi()) { + return rule + .resolvedOptions() + .pluralCategories.sort( + (pluralCategory1, pluralCategory2) => + suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2] + ) + .map( + (pluralCategory) => + `${this.options.prepend}${ + options.ordinal ? `ordinal${this.options.prepend}` : '' + }${pluralCategory}` + ); } + return rule.numbers.map((number) => this.getSuffix(code, number, options)); } - prepareLoading(e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, - r = arguments.length > 3 ? arguments[3] : void 0; - if (!this.backend) - return ( - this.logger.warn('No backend was added via i18next.use. Will not load resources.'), r && r() - ); - C(e) && (e = this.languageUtils.toResolveHierarchy(e)), C(t) && (t = [t]); - const o = this.queueLoad(e, t, n, r); - if (!o.toLoad.length) return o.pending.length || r(), null; - o.toLoad.forEach((e) => { - this.loadOne(e); - }); + getSuffix(code, count) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + const rule = this.getRule(code, options); + if (rule) { + if (this.shouldUseIntlApi()) { + return `${this.options.prepend}${ + options.ordinal ? `ordinal${this.options.prepend}` : '' + }${rule.select(count)}`; + } + return this.getSuffixRetroCompatible(rule, count); + } + this.logger.warn(`no plural rule found for: ${code}`); + return ''; } - load(e, t, n) { - this.prepareLoading(e, t, {}, n); - } - reload(e, t, n) { - this.prepareLoading(e, t, { reload: !0 }, n); - } - loadOne(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ''; - const n = e.split('|'), - r = n[0], - o = n[1]; - this.read(r, o, 'read', void 0, void 0, (n, a) => { - n && this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`, n), - !n && a && this.logger.log(`${t}loaded namespace ${o} for language ${r}`, a), - this.loaded(e, n, a); - }); + getSuffixRetroCompatible(rule, count) { + const idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count)); + let suffix = rule.numbers[idx]; + if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) { + if (suffix === 2) { + suffix = 'plural'; + } else if (suffix === 1) { + suffix = ''; + } + } + const returnSuffix = () => + this.options.prepend && suffix.toString() + ? this.options.prepend + suffix.toString() + : suffix.toString(); + if (this.options.compatibilityJSON === 'v1') { + if (suffix === 1) return ''; + if (typeof suffix === 'number') return `_plural_${suffix.toString()}`; + return returnSuffix(); + } else if (this.options.compatibilityJSON === 'v2') { + return returnSuffix(); + } else if ( + this.options.simplifyPluralSuffix && + rule.numbers.length === 2 && + rule.numbers[0] === 1 + ) { + return returnSuffix(); + } + return this.options.prepend && idx.toString() + ? this.options.prepend + idx.toString() + : idx.toString(); } - saveMissing(e, t, n, r, o) { - let a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {}, - i = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : () => {}; - if ( - this.services.utils && - this.services.utils.hasLoadedNamespace && - !this.services.utils.hasLoadedNamespace(t) - ) - this.logger.warn( - `did not save key "${n}" as the namespace "${t}" was not yet loaded`, - 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!' + shouldUseIntlApi() { + return !nonIntlVersions.includes(this.options.compatibilityJSON); + } +} + +const deepFindWithDefaults = function (data, defaultData, key) { + let keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.'; + let ignoreJSONStructure = + arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + let path = getPathWithDefaults(data, defaultData, key); + if (!path && ignoreJSONStructure && isString$1(key)) { + path = deepFind(data, key, keySeparator); + if (path === undefined) path = deepFind(defaultData, key, keySeparator); + } + return path; +}; +const regexSafe = (val) => val.replace(/\$/g, '$$$$'); +class Interpolator { + constructor() { + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.logger = baseLogger.create('interpolator'); + this.options = options; + this.format = (options.interpolation && options.interpolation.format) || ((value) => value); + this.init(options); + } + init() { + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + if (!options.interpolation) + options.interpolation = { + escapeValue: true, + }; + const { + escape: escape$1$1, + escapeValue, + useRawValueToEscape, + prefix, + prefixEscaped, + suffix, + suffixEscaped, + formatSeparator, + unescapeSuffix, + unescapePrefix, + nestingPrefix, + nestingPrefixEscaped, + nestingSuffix, + nestingSuffixEscaped, + nestingOptionsSeparator, + maxReplaces, + alwaysFormat, + } = options.interpolation; + this.escape = escape$1$1 !== undefined ? escape$1$1 : escape$1; + this.escapeValue = escapeValue !== undefined ? escapeValue : true; + this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false; + this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{'; + this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}'; + this.formatSeparator = formatSeparator || ','; + this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix || '-'; + this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix || ''; + this.nestingPrefix = nestingPrefix + ? regexEscape(nestingPrefix) + : nestingPrefixEscaped || regexEscape('$t('); + this.nestingSuffix = nestingSuffix + ? regexEscape(nestingSuffix) + : nestingSuffixEscaped || regexEscape(')'); + this.nestingOptionsSeparator = nestingOptionsSeparator || ','; + this.maxReplaces = maxReplaces || 1000; + this.alwaysFormat = alwaysFormat !== undefined ? alwaysFormat : false; + this.resetRegExp(); + } + reset() { + if (this.options) this.init(this.options); + } + resetRegExp() { + const getOrResetRegExp = (existingRegExp, pattern) => { + if (existingRegExp && existingRegExp.source === pattern) { + existingRegExp.lastIndex = 0; + return existingRegExp; + } + return new RegExp(pattern, 'g'); + }; + this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`); + this.regexpUnescape = getOrResetRegExp( + this.regexpUnescape, + `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}` + ); + this.nestingRegexp = getOrResetRegExp( + this.nestingRegexp, + `${this.nestingPrefix}(.+?)${this.nestingSuffix}` + ); + } + interpolate(str, data, lng, options) { + let match; + let value; + let replaces; + const defaultData = + (this.options && this.options.interpolation && this.options.interpolation.defaultVariables) || + {}; + const handleFormat = (key) => { + if (key.indexOf(this.formatSeparator) < 0) { + const path = deepFindWithDefaults( + data, + defaultData, + key, + this.options.keySeparator, + this.options.ignoreJSONStructure + ); + return this.alwaysFormat + ? this.format(path, undefined, lng, { + ...options, + ...data, + interpolationkey: key, + }) + : path; + } + const p = key.split(this.formatSeparator); + const k = p.shift().trim(); + const f = p.join(this.formatSeparator).trim(); + return this.format( + deepFindWithDefaults( + data, + defaultData, + k, + this.options.keySeparator, + this.options.ignoreJSONStructure + ), + f, + lng, + { + ...options, + ...data, + interpolationkey: k, + } ); - else if (null != n && '' !== n) { - if (this.backend && this.backend.create) { - const s = { ...a, isUpdate: o }, - l = this.backend.create.bind(this.backend); - if (l.length < 6) - try { - let o; - (o = 5 === l.length ? l(e, t, n, r, s) : l(e, t, n, r)), - o && 'function' == typeof o.then ? o.then((e) => i(null, e)).catch(i) : i(null, o); - } catch (e) { - i(e); + }; + this.resetRegExp(); + const missingInterpolationHandler = + (options && options.missingInterpolationHandler) || this.options.missingInterpolationHandler; + const skipOnVariables = + options && options.interpolation && options.interpolation.skipOnVariables !== undefined + ? options.interpolation.skipOnVariables + : this.options.interpolation.skipOnVariables; + const todos = [ + { + regex: this.regexpUnescape, + safeValue: (val) => regexSafe(val), + }, + { + regex: this.regexp, + safeValue: (val) => (this.escapeValue ? regexSafe(this.escape(val)) : regexSafe(val)), + }, + ]; + todos.forEach((todo) => { + replaces = 0; + while ((match = todo.regex.exec(str))) { + const matchedVar = match[1].trim(); + value = handleFormat(matchedVar); + if (value === undefined) { + if (typeof missingInterpolationHandler === 'function') { + const temp = missingInterpolationHandler(str, match, options); + value = isString$1(temp) ? temp : ''; + } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) { + value = ''; + } else if (skipOnVariables) { + value = match[0]; + continue; + } else { + this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`); + value = ''; } - else l(e, t, n, r, i, s); - } - e && e[0] && this.store.addResource(e[0], t, n, r); - } - } -} -const ue = () => ({ - debug: !1, - initImmediate: !0, - ns: ['translation'], - defaultNS: ['translation'], - fallbackLng: ['dev'], - fallbackNS: !1, - supportedLngs: !1, - nonExplicitSupportedLngs: !1, - load: 'all', - preload: !1, - simplifyPluralSuffix: !0, - keySeparator: '.', - nsSeparator: ':', - pluralSeparator: '_', - contextSeparator: '_', - partialBundledLanguages: !1, - saveMissing: !1, - updateMissing: !1, - saveMissingTo: 'fallback', - saveMissingPlurals: !0, - missingKeyHandler: !1, - missingInterpolationHandler: !1, - postProcess: !1, - postProcessPassResolved: !1, - returnNull: !1, - returnEmptyString: !0, - returnObjects: !1, - joinArrays: !1, - returnedObjectHandler: !1, - parseMissingKeyHandler: !1, - appendNamespaceToMissingKey: !1, - appendNamespaceToCIMode: !1, - overloadTranslationOptionHandler: (e) => { - let t = {}; + } else if (!isString$1(value) && !this.useRawValueToEscape) { + value = makeString(value); + } + const safeValue = todo.safeValue(value); + str = str.replace(match[0], safeValue); + if (skipOnVariables) { + todo.regex.lastIndex += value.length; + todo.regex.lastIndex -= match[0].length; + } else { + todo.regex.lastIndex = 0; + } + replaces++; + if (replaces >= this.maxReplaces) { + break; + } + } + }); + return str; + } + nest(str, fc) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + let match; + let value; + let clonedOptions; + const handleHasOptions = (key, inheritedOptions) => { + const sep = this.nestingOptionsSeparator; + if (key.indexOf(sep) < 0) return key; + const c = key.split(new RegExp(`${sep}[ ]*{`)); + let optionsString = `{${c[1]}`; + key = c[0]; + optionsString = this.interpolate(optionsString, clonedOptions); + const matchedSingleQuotes = optionsString.match(/'/g); + const matchedDoubleQuotes = optionsString.match(/"/g); if ( - ('object' == typeof e[1] && (t = e[1]), - C(e[1]) && (t.defaultValue = e[1]), - C(e[2]) && (t.tDescription = e[2]), - 'object' == typeof e[2] || 'object' == typeof e[3]) + (matchedSingleQuotes && matchedSingleQuotes.length % 2 === 0 && !matchedDoubleQuotes) || + matchedDoubleQuotes.length % 2 !== 0 ) { - const n = e[3] || e[2]; - Object.keys(n).forEach((e) => { - t[e] = n[e]; - }); + optionsString = optionsString.replace(/'/g, '"'); } - return t; - }, - interpolation: { - escapeValue: !0, - format: (e) => e, - prefix: '{{', - suffix: '}}', - formatSeparator: ',', - unescapePrefix: '-', - nestingPrefix: '$t(', - nestingSuffix: ')', - nestingOptionsSeparator: ',', - maxReplaces: 1e3, - skipOnVariables: !0, - }, - }), - de = (e) => ( - C(e.ns) && (e.ns = [e.ns]), - C(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), - C(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), - e.supportedLngs && - e.supportedLngs.indexOf('cimode') < 0 && - (e.supportedLngs = e.supportedLngs.concat(['cimode'])), - e - ), - pe = () => {}; -class fe extends U { - constructor() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - t = arguments.length > 1 ? arguments[1] : void 0; - var n; - if ( - (super(), - (this.options = de(e)), - (this.services = {}), - (this.logger = V), - (this.modules = { external: [] }), - (n = this), - Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e) => { - 'function' == typeof n[e] && (n[e] = n[e].bind(n)); - }), - t && !this.isInitialized && !e.isClone) - ) { - if (!this.options.initImmediate) return this.init(e, t), this; - setTimeout(() => { - this.init(e, t); - }, 0); + try { + clonedOptions = JSON.parse(optionsString); + if (inheritedOptions) + clonedOptions = { + ...inheritedOptions, + ...clonedOptions, + }; + } catch (e) { + this.logger.warn(`failed parsing options string in nesting for key ${key}`, e); + return `${key}${sep}${optionsString}`; + } + if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) + delete clonedOptions.defaultValue; + return key; + }; + while ((match = this.nestingRegexp.exec(str))) { + let formatters = []; + clonedOptions = { + ...options, + }; + clonedOptions = + clonedOptions.replace && !isString$1(clonedOptions.replace) + ? clonedOptions.replace + : clonedOptions; + clonedOptions.applyPostProcessor = false; + delete clonedOptions.defaultValue; + let doReduce = false; + if (match[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match[1])) { + const r = match[1].split(this.formatSeparator).map((elem) => elem.trim()); + match[1] = r.shift(); + formatters = r; + doReduce = true; + } + value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions); + if (value && match[0] === str && !isString$1(value)) return value; + if (!isString$1(value)) value = makeString(value); + if (!value) { + this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`); + value = ''; + } + if (doReduce) { + value = formatters.reduce( + (v, f) => + this.format(v, f, options.lng, { + ...options, + interpolationkey: match[1].trim(), + }), + value.trim() + ); + } + str = str.replace(match[0], value); + this.regexp.lastIndex = 0; } + return str; } - init() { - var e = this; - let t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - n = arguments.length > 1 ? arguments[1] : void 0; - (this.isInitializing = !0), - 'function' == typeof t && ((n = t), (t = {})), - !t.defaultNS && - !1 !== t.defaultNS && - t.ns && - (C(t.ns) - ? (t.defaultNS = t.ns) - : t.ns.indexOf('translation') < 0 && (t.defaultNS = t.ns[0])); - const r = ue(); - (this.options = { ...r, ...this.options, ...de(t) }), - 'v1' !== this.options.compatibilityAPI && - (this.options.interpolation = { ...r.interpolation, ...this.options.interpolation }), - void 0 !== t.keySeparator && (this.options.userDefinedKeySeparator = t.keySeparator), - void 0 !== t.nsSeparator && (this.options.userDefinedNsSeparator = t.nsSeparator); - const o = (e) => (e ? ('function' == typeof e ? new e() : e) : null); - if (!this.options.isClone) { - let t; - this.modules.logger - ? V.init(o(this.modules.logger), this.options) - : V.init(null, this.options), - this.modules.formatter - ? (t = this.modules.formatter) - : 'undefined' != typeof Intl && (t = le); - const n = new X(this.options); - this.store = new q(this.options.resources, this.options); - const a = this.services; - (a.logger = V), - (a.resourceStore = this.store), - (a.languageUtils = n), - (a.pluralResolver = new re(n, { - prepend: this.options.pluralSeparator, - compatibilityJSON: this.options.compatibilityJSON, - simplifyPluralSuffix: this.options.simplifyPluralSuffix, - })), - !t || - (this.options.interpolation.format && - this.options.interpolation.format !== r.interpolation.format) || - ((a.formatter = o(t)), - a.formatter.init(a, this.options), - (this.options.interpolation.format = a.formatter.format.bind(a.formatter))), - (a.interpolator = new ie(this.options)), - (a.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }), - (a.backendConnector = new ce(o(this.modules.backend), a.resourceStore, a, this.options)), - a.backendConnector.on('*', function (t) { - for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) - r[o - 1] = arguments[o]; - e.emit(t, ...r); - }), - this.modules.languageDetector && - ((a.languageDetector = o(this.modules.languageDetector)), - a.languageDetector.init && - a.languageDetector.init(a, this.options.detection, this.options)), - this.modules.i18nFormat && - ((a.i18nFormat = o(this.modules.i18nFormat)), - a.i18nFormat.init && a.i18nFormat.init(this)), - (this.translator = new G(this.services, this.options)), - this.translator.on('*', function (t) { - for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) - r[o - 1] = arguments[o]; - e.emit(t, ...r); - }), - this.modules.external.forEach((e) => { - e.init && e.init(this); - }); +} + +const parseFormatStr = (formatStr) => { + let formatName = formatStr.toLowerCase().trim(); + const formatOptions = {}; + if (formatStr.indexOf('(') > -1) { + const p = formatStr.split('('); + formatName = p[0].toLowerCase().trim(); + const optStr = p[1].substring(0, p[1].length - 1); + if (formatName === 'currency' && optStr.indexOf(':') < 0) { + if (!formatOptions.currency) formatOptions.currency = optStr.trim(); + } else if (formatName === 'relativetime' && optStr.indexOf(':') < 0) { + if (!formatOptions.range) formatOptions.range = optStr.trim(); + } else { + const opts = optStr.split(';'); + opts.forEach((opt) => { + if (opt) { + const [key, ...rest] = opt.split(':'); + const val = rest + .join(':') + .trim() + .replace(/^'+|'+$/g, ''); + const trimmedKey = key.trim(); + if (!formatOptions[trimmedKey]) formatOptions[trimmedKey] = val; + if (val === 'false') formatOptions[trimmedKey] = false; + if (val === 'true') formatOptions[trimmedKey] = true; + if (!isNaN(val)) formatOptions[trimmedKey] = parseInt(val, 10); + } + }); } + } + return { + formatName, + formatOptions, + }; +}; +const createCachedFormatter = (fn) => { + const cache = {}; + return (val, lng, options) => { + let optForCache = options; if ( - ((this.format = this.options.interpolation.format), - n || (n = pe), - this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) + options && + options.interpolationkey && + options.formatParams && + options.formatParams[options.interpolationkey] && + options[options.interpolationkey] ) { - const e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng); - e.length > 0 && 'dev' !== e[0] && (this.options.lng = e[0]); - } - this.services.languageDetector || - this.options.lng || - this.logger.warn('init: no languageDetector is used and no lng is defined'); - ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'].forEach((t) => { - this[t] = function () { - return e.store[t](...arguments); - }; - }); - ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'].forEach((t) => { - this[t] = function () { - return e.store[t](...arguments), e; - }; - }); - const a = O(), - i = () => { - const e = (e, t) => { - (this.isInitializing = !1), - this.isInitialized && - !this.initializedStoreOnce && - this.logger.warn( - 'init: i18next is already initialized. You should call init just once!' - ), - (this.isInitialized = !0), - this.options.isClone || this.logger.log('initialized', this.options), - this.emit('initialized', this.options), - a.resolve(t), - n(e, t); - }; - if (this.languages && 'v1' !== this.options.compatibilityAPI && !this.isInitialized) - return e(null, this.t.bind(this)); - this.changeLanguage(this.options.lng, e); + optForCache = { + ...optForCache, + [options.interpolationkey]: undefined, }; - return this.options.resources || !this.options.initImmediate ? i() : setTimeout(i, 0), a; + } + const key = lng + JSON.stringify(optForCache); + let formatter = cache[key]; + if (!formatter) { + formatter = fn(getCleanedCode(lng), options); + cache[key] = formatter; + } + return formatter(val); + }; +}; +class Formatter { + constructor() { + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + this.logger = baseLogger.create('formatter'); + this.options = options; + this.formats = { + number: createCachedFormatter((lng, opt) => { + const formatter = new Intl.NumberFormat(lng, { + ...opt, + }); + return (val) => formatter.format(val); + }), + currency: createCachedFormatter((lng, opt) => { + const formatter = new Intl.NumberFormat(lng, { + ...opt, + style: 'currency', + }); + return (val) => formatter.format(val); + }), + datetime: createCachedFormatter((lng, opt) => { + const formatter = new Intl.DateTimeFormat(lng, { + ...opt, + }); + return (val) => formatter.format(val); + }), + relativetime: createCachedFormatter((lng, opt) => { + const formatter = new Intl.RelativeTimeFormat(lng, { + ...opt, + }); + return (val) => formatter.format(val, opt.range || 'day'); + }), + list: createCachedFormatter((lng, opt) => { + const formatter = new Intl.ListFormat(lng, { + ...opt, + }); + return (val) => formatter.format(val); + }), + }; + this.init(options); + } + init(services) { + let options = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : { + interpolation: {}, + }; + this.formatSeparator = options.interpolation.formatSeparator || ','; + } + add(name, fc) { + this.formats[name.toLowerCase().trim()] = fc; } - loadResources(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : pe; - const n = C(e) ? e : this.language; + addCached(name, fc) { + this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc); + } + format(value, format, lng) { + let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + const formats = format.split(this.formatSeparator); if ( - ('function' == typeof e && (t = e), - !this.options.resources || this.options.partialBundledLanguages) + formats.length > 1 && + formats[0].indexOf('(') > 1 && + formats[0].indexOf(')') < 0 && + formats.find((f) => f.indexOf(')') > -1) ) { - if ( - n && - 'cimode' === n.toLowerCase() && - (!this.options.preload || 0 === this.options.preload.length) - ) - return t(); - const e = [], - r = (t) => { - if (!t) return; - if ('cimode' === t) return; - this.services.languageUtils.toResolveHierarchy(t).forEach((t) => { - 'cimode' !== t && e.indexOf(t) < 0 && e.push(t); + const lastIndex = formats.findIndex((f) => f.indexOf(')') > -1); + formats[0] = [formats[0], ...formats.splice(1, lastIndex)].join(this.formatSeparator); + } + const result = formats.reduce((mem, f) => { + const { formatName, formatOptions } = parseFormatStr(f); + if (this.formats[formatName]) { + let formatted = mem; + try { + const valOptions = + (options && options.formatParams && options.formatParams[options.interpolationkey]) || + {}; + const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng; + formatted = this.formats[formatName](mem, l, { + ...formatOptions, + ...options, + ...valOptions, }); - }; - if (n) r(n); - else { - this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => r(e)); + } catch (error) { + this.logger.warn(error); + } + return formatted; + } else { + this.logger.warn(`there was no format function for ${formatName}`); } - this.options.preload && this.options.preload.forEach((e) => r(e)), - this.services.backendConnector.load(e, this.options.ns, (e) => { - e || this.resolvedLanguage || !this.language || this.setResolvedLanguage(this.language), - t(e); - }); - } else t(null); + return mem; + }, value); + return result; } - reloadResources(e, t, n) { - const r = O(); - return ( - 'function' == typeof e && ((n = e), (e = void 0)), - 'function' == typeof t && ((n = t), (t = void 0)), - e || (e = this.languages), - t || (t = this.options.ns), - n || (n = pe), - this.services.backendConnector.reload(e, t, (e) => { - r.resolve(), n(e); - }), - r - ); +} + +const removePending = (q, name) => { + if (q.pending[name] !== undefined) { + delete q.pending[name]; + q.pendingCount--; } - use(e) { - if (!e) - throw new Error( - 'You are passing an undefined module! Please check the object you are passing to i18next.use()' - ); - if (!e.type) - throw new Error( - 'You are passing a wrong module! Please check the object you are passing to i18next.use()' - ); - return ( - 'backend' === e.type && (this.modules.backend = e), - ('logger' === e.type || (e.log && e.warn && e.error)) && (this.modules.logger = e), - 'languageDetector' === e.type && (this.modules.languageDetector = e), - 'i18nFormat' === e.type && (this.modules.i18nFormat = e), - 'postProcessor' === e.type && Y.addPostProcessor(e), - 'formatter' === e.type && (this.modules.formatter = e), - '3rdParty' === e.type && this.modules.external.push(e), - this - ); +}; +class Connector extends EventEmitter { + constructor(backend, store, services) { + let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + super(); + this.backend = backend; + this.store = store; + this.services = services; + this.languageUtils = services.languageUtils; + this.options = options; + this.logger = baseLogger.create('backendConnector'); + this.waitingReads = []; + this.maxParallelReads = options.maxParallelReads || 10; + this.readingCalls = 0; + this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5; + this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350; + this.state = {}; + this.queue = []; + if (this.backend && this.backend.init) { + this.backend.init(services, options.backend, options); + } } - setResolvedLanguage(e) { - if (e && this.languages && !(['cimode', 'dev'].indexOf(e) > -1)) - for (let e = 0; e < this.languages.length; e++) { - const t = this.languages[e]; - if (!(['cimode', 'dev'].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) { - this.resolvedLanguage = t; - break; + queueLoad(languages, namespaces, options, callback) { + const toLoad = {}; + const pending = {}; + const toLoadLanguages = {}; + const toLoadNamespaces = {}; + languages.forEach((lng) => { + let hasAllNamespaces = true; + namespaces.forEach((ns) => { + const name = `${lng}|${ns}`; + if (!options.reload && this.store.hasResourceBundle(lng, ns)) { + this.state[name] = 2; + } else if (this.state[name] < 0); + else if (this.state[name] === 1) { + if (pending[name] === undefined) pending[name] = true; + } else { + this.state[name] = 1; + hasAllNamespaces = false; + if (pending[name] === undefined) pending[name] = true; + if (toLoad[name] === undefined) toLoad[name] = true; + if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true; } - } + }); + if (!hasAllNamespaces) toLoadLanguages[lng] = true; + }); + if (Object.keys(toLoad).length || Object.keys(pending).length) { + this.queue.push({ + pending, + pendingCount: Object.keys(pending).length, + loaded: {}, + errors: [], + callback, + }); + } + return { + toLoad: Object.keys(toLoad), + pending: Object.keys(pending), + toLoadLanguages: Object.keys(toLoadLanguages), + toLoadNamespaces: Object.keys(toLoadNamespaces), + }; } - changeLanguage(e, t) { - var n = this; - this.isLanguageChangingTo = e; - const r = O(); - this.emit('languageChanging', e); - const o = (e) => { - (this.language = e), - (this.languages = this.services.languageUtils.toResolveHierarchy(e)), - (this.resolvedLanguage = void 0), - this.setResolvedLanguage(e); - }, - a = (e, a) => { - a - ? (o(a), - this.translator.changeLanguage(a), - (this.isLanguageChangingTo = void 0), - this.emit('languageChanged', a), - this.logger.log('languageChanged', a)) - : (this.isLanguageChangingTo = void 0), - r.resolve(function () { - return n.t(...arguments); - }), - t && - t(e, function () { - return n.t(...arguments); + loaded(name, err, data) { + const s = name.split('|'); + const lng = s[0]; + const ns = s[1]; + if (err) this.emit('failedLoading', lng, ns, err); + if (!err && data) { + this.store.addResourceBundle(lng, ns, data, undefined, undefined, { + skipCopy: true, + }); + } + this.state[name] = err ? -1 : 2; + if (err && data) this.state[name] = 0; + const loaded = {}; + this.queue.forEach((q) => { + pushPath(q.loaded, [lng], ns); + removePending(q, name); + if (err) q.errors.push(err); + if (q.pendingCount === 0 && !q.done) { + Object.keys(q.loaded).forEach((l) => { + if (!loaded[l]) loaded[l] = {}; + const loadedKeys = q.loaded[l]; + if (loadedKeys.length) { + loadedKeys.forEach((n) => { + if (loaded[l][n] === undefined) loaded[l][n] = true; }); + } + }); + q.done = true; + if (q.errors.length) { + q.callback(q.errors); + } else { + q.callback(); + } + } + }); + this.emit('loaded', loaded); + this.queue = this.queue.filter((q) => !q.done); + } + read(lng, ns, fcName) { + let tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + let wait = + arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout; + let callback = arguments.length > 5 ? arguments[5] : undefined; + if (!lng.length) return callback(null, {}); + if (this.readingCalls >= this.maxParallelReads) { + this.waitingReads.push({ + lng, + ns, + fcName, + tried, + wait, + callback, + }); + return; + } + this.readingCalls++; + const resolver = (err, data) => { + this.readingCalls--; + if (this.waitingReads.length > 0) { + const next = this.waitingReads.shift(); + this.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback); + } + if (err && data && tried < this.maxRetries) { + setTimeout(() => { + this.read.call(this, lng, ns, fcName, tried + 1, wait * 2, callback); + }, wait); + return; + } + callback(err, data); + }; + const fc = this.backend[fcName].bind(this.backend); + if (fc.length === 2) { + try { + const r = fc(lng, ns); + if (r && typeof r.then === 'function') { + r.then((data) => resolver(null, data)).catch(resolver); + } else { + resolver(null, r); + } + } catch (err) { + resolver(err); + } + return; + } + return fc(lng, ns, resolver); + } + prepareLoading(languages, namespaces) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + let callback = arguments.length > 3 ? arguments[3] : undefined; + if (!this.backend) { + this.logger.warn('No backend was added via i18next.use. Will not load resources.'); + return callback && callback(); + } + if (isString$1(languages)) languages = this.languageUtils.toResolveHierarchy(languages); + if (isString$1(namespaces)) namespaces = [namespaces]; + const toLoad = this.queueLoad(languages, namespaces, options, callback); + if (!toLoad.toLoad.length) { + if (!toLoad.pending.length) callback(); + return null; + } + toLoad.toLoad.forEach((name) => { + this.loadOne(name); + }); + } + load(languages, namespaces, callback) { + this.prepareLoading(languages, namespaces, {}, callback); + } + reload(languages, namespaces, callback) { + this.prepareLoading( + languages, + namespaces, + { + reload: true, }, - i = (t) => { - e || t || !this.services.languageDetector || (t = []); - const n = C(t) ? t : this.services.languageUtils.getBestMatchFromCodes(t); - n && - (this.language || o(n), - this.translator.language || this.translator.changeLanguage(n), - this.services.languageDetector && - this.services.languageDetector.cacheUserLanguage && - this.services.languageDetector.cacheUserLanguage(n)), - this.loadResources(n, (e) => { - a(e, n); - }); - }; - return ( - e || !this.services.languageDetector || this.services.languageDetector.async - ? !e && this.services.languageDetector && this.services.languageDetector.async - ? 0 === this.services.languageDetector.detect.length - ? this.services.languageDetector.detect().then(i) - : this.services.languageDetector.detect(i) - : i(e) - : i(this.services.languageDetector.detect()), - r + callback ); } - getFixedT(e, t, n) { - var r = this; - const o = function (e, t) { - let a; - if ('object' != typeof t) { - for (var i = arguments.length, s = new Array(i > 2 ? i - 2 : 0), l = 2; l < i; l++) - s[l - 2] = arguments[l]; - a = r.options.overloadTranslationOptionHandler([e, t].concat(s)); - } else a = { ...t }; - (a.lng = a.lng || o.lng), - (a.lngs = a.lngs || o.lngs), - (a.ns = a.ns || o.ns), - '' !== a.keyPrefix && (a.keyPrefix = a.keyPrefix || n || o.keyPrefix); - const c = r.options.keySeparator || '.'; - let u; - return ( - (u = - a.keyPrefix && Array.isArray(e) - ? e.map((e) => `${a.keyPrefix}${c}${e}`) - : a.keyPrefix - ? `${a.keyPrefix}${c}${e}` - : e), - r.t(u, a) + loadOne(name) { + let prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + const s = name.split('|'); + const lng = s[0]; + const ns = s[1]; + this.read(lng, ns, 'read', undefined, undefined, (err, data) => { + if (err) this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err); + if (!err && data) + this.logger.log(`${prefix}loaded namespace ${ns} for language ${lng}`, data); + this.loaded(name, err, data); + }); + } + saveMissing(languages, namespace, key, fallbackValue, isUpdate) { + let options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; + let clb = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : () => {}; + if ( + this.services.utils && + this.services.utils.hasLoadedNamespace && + !this.services.utils.hasLoadedNamespace(namespace) + ) { + this.logger.warn( + `did not save key "${key}" as the namespace "${namespace}" was not yet loaded`, + 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!' + ); + return; + } + if (key === undefined || key === null || key === '') return; + if (this.backend && this.backend.create) { + const opts = { + ...options, + isUpdate, + }; + const fc = this.backend.create.bind(this.backend); + if (fc.length < 6) { + try { + let r; + if (fc.length === 5) { + r = fc(languages, namespace, key, fallbackValue, opts); + } else { + r = fc(languages, namespace, key, fallbackValue); + } + if (r && typeof r.then === 'function') { + r.then((data) => clb(null, data)).catch(clb); + } else { + clb(null, r); + } + } catch (err) { + clb(err); + } + } else { + fc(languages, namespace, key, fallbackValue, clb, opts); + } + } + if (!languages || !languages[0]) return; + this.store.addResource(languages[0], namespace, key, fallbackValue); + } +} + +const get = () => ({ + debug: false, + initImmediate: true, + ns: ['translation'], + defaultNS: ['translation'], + fallbackLng: ['dev'], + fallbackNS: false, + supportedLngs: false, + nonExplicitSupportedLngs: false, + load: 'all', + preload: false, + simplifyPluralSuffix: true, + keySeparator: '.', + nsSeparator: ':', + pluralSeparator: '_', + contextSeparator: '_', + partialBundledLanguages: false, + saveMissing: false, + updateMissing: false, + saveMissingTo: 'fallback', + saveMissingPlurals: true, + missingKeyHandler: false, + missingInterpolationHandler: false, + postProcess: false, + postProcessPassResolved: false, + returnNull: false, + returnEmptyString: true, + returnObjects: false, + joinArrays: false, + returnedObjectHandler: false, + parseMissingKeyHandler: false, + appendNamespaceToMissingKey: false, + appendNamespaceToCIMode: false, + overloadTranslationOptionHandler: (args) => { + let ret = {}; + if (typeof args[1] === 'object') ret = args[1]; + if (isString$1(args[1])) ret.defaultValue = args[1]; + if (isString$1(args[2])) ret.tDescription = args[2]; + if (typeof args[2] === 'object' || typeof args[3] === 'object') { + const options = args[3] || args[2]; + Object.keys(options).forEach((key) => { + ret[key] = options[key]; + }); + } + return ret; + }, + interpolation: { + escapeValue: true, + format: (value) => value, + prefix: '{{', + suffix: '}}', + formatSeparator: ',', + unescapePrefix: '-', + nestingPrefix: '$t(', + nestingSuffix: ')', + nestingOptionsSeparator: ',', + maxReplaces: 1000, + skipOnVariables: true, + }, +}); +const transformOptions = (options) => { + if (isString$1(options.ns)) options.ns = [options.ns]; + if (isString$1(options.fallbackLng)) options.fallbackLng = [options.fallbackLng]; + if (isString$1(options.fallbackNS)) options.fallbackNS = [options.fallbackNS]; + if (options.supportedLngs && options.supportedLngs.indexOf('cimode') < 0) { + options.supportedLngs = options.supportedLngs.concat(['cimode']); + } + return options; +}; + +const noop$3 = () => {}; +const bindMemberFunctions = (inst) => { + const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst)); + mems.forEach((mem) => { + if (typeof inst[mem] === 'function') { + inst[mem] = inst[mem].bind(inst); + } + }); +}; +class I18n extends EventEmitter { + constructor() { + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + let callback = arguments.length > 1 ? arguments[1] : undefined; + super(); + this.options = transformOptions(options); + this.services = {}; + this.logger = baseLogger; + this.modules = { + external: [], + }; + bindMemberFunctions(this); + if (callback && !this.isInitialized && !options.isClone) { + if (!this.options.initImmediate) { + this.init(options, callback); + return this; + } + setTimeout(() => { + this.init(options, callback); + }, 0); + } + } + init() { + var _this = this; + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + let callback = arguments.length > 1 ? arguments[1] : undefined; + this.isInitializing = true; + if (typeof options === 'function') { + callback = options; + options = {}; + } + if (!options.defaultNS && options.defaultNS !== false && options.ns) { + if (isString$1(options.ns)) { + options.defaultNS = options.ns; + } else if (options.ns.indexOf('translation') < 0) { + options.defaultNS = options.ns[0]; + } + } + const defOpts = get(); + this.options = { + ...defOpts, + ...this.options, + ...transformOptions(options), + }; + if (this.options.compatibilityAPI !== 'v1') { + this.options.interpolation = { + ...defOpts.interpolation, + ...this.options.interpolation, + }; + } + if (options.keySeparator !== undefined) { + this.options.userDefinedKeySeparator = options.keySeparator; + } + if (options.nsSeparator !== undefined) { + this.options.userDefinedNsSeparator = options.nsSeparator; + } + const createClassOnDemand = (ClassOrObject) => { + if (!ClassOrObject) return null; + if (typeof ClassOrObject === 'function') return new ClassOrObject(); + return ClassOrObject; + }; + if (!this.options.isClone) { + if (this.modules.logger) { + baseLogger.init(createClassOnDemand(this.modules.logger), this.options); + } else { + baseLogger.init(null, this.options); + } + let formatter; + if (this.modules.formatter) { + formatter = this.modules.formatter; + } else if (typeof Intl !== 'undefined') { + formatter = Formatter; + } + const lu = new LanguageUtil(this.options); + this.store = new ResourceStore(this.options.resources, this.options); + const s = this.services; + s.logger = baseLogger; + s.resourceStore = this.store; + s.languageUtils = lu; + s.pluralResolver = new PluralResolver(lu, { + prepend: this.options.pluralSeparator, + compatibilityJSON: this.options.compatibilityJSON, + simplifyPluralSuffix: this.options.simplifyPluralSuffix, + }); + if ( + formatter && + (!this.options.interpolation.format || + this.options.interpolation.format === defOpts.interpolation.format) + ) { + s.formatter = createClassOnDemand(formatter); + s.formatter.init(s, this.options); + this.options.interpolation.format = s.formatter.format.bind(s.formatter); + } + s.interpolator = new Interpolator(this.options); + s.utils = { + hasLoadedNamespace: this.hasLoadedNamespace.bind(this), + }; + s.backendConnector = new Connector( + createClassOnDemand(this.modules.backend), + s.resourceStore, + s, + this.options + ); + s.backendConnector.on('*', function (event) { + for ( + var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + _this.emit(event, ...args); + }); + if (this.modules.languageDetector) { + s.languageDetector = createClassOnDemand(this.modules.languageDetector); + if (s.languageDetector.init) + s.languageDetector.init(s, this.options.detection, this.options); + } + if (this.modules.i18nFormat) { + s.i18nFormat = createClassOnDemand(this.modules.i18nFormat); + if (s.i18nFormat.init) s.i18nFormat.init(this); + } + this.translator = new Translator(this.services, this.options); + this.translator.on('*', function (event) { + for ( + var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) { + args[_key2 - 1] = arguments[_key2]; + } + _this.emit(event, ...args); + }); + this.modules.external.forEach((m) => { + if (m.init) m.init(this); + }); + } + this.format = this.options.interpolation.format; + if (!callback) callback = noop$3; + if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) { + const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng); + if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0]; + } + if (!this.services.languageDetector && !this.options.lng) { + this.logger.warn('init: no languageDetector is used and no lng is defined'); + } + const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage']; + storeApi.forEach((fcName) => { + this[fcName] = function () { + return _this.store[fcName](...arguments); + }; + }); + const storeApiChained = [ + 'addResource', + 'addResources', + 'addResourceBundle', + 'removeResourceBundle', + ]; + storeApiChained.forEach((fcName) => { + this[fcName] = function () { + _this.store[fcName](...arguments); + return _this; + }; + }); + const deferred = defer(); + const load = () => { + const finish = (err, t) => { + this.isInitializing = false; + if (this.isInitialized && !this.initializedStoreOnce) + this.logger.warn('init: i18next is already initialized. You should call init just once!'); + this.isInitialized = true; + if (!this.options.isClone) this.logger.log('initialized', this.options); + this.emit('initialized', this.options); + deferred.resolve(t); + callback(err, t); + }; + if (this.languages && this.options.compatibilityAPI !== 'v1' && !this.isInitialized) + return finish(null, this.t.bind(this)); + this.changeLanguage(this.options.lng, finish); + }; + if (this.options.resources || !this.options.initImmediate) { + load(); + } else { + setTimeout(load, 0); + } + return deferred; + } + loadResources(language) { + let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$3; + let usedCallback = callback; + const usedLng = isString$1(language) ? language : this.language; + if (typeof language === 'function') usedCallback = language; + if (!this.options.resources || this.options.partialBundledLanguages) { + if ( + usedLng && + usedLng.toLowerCase() === 'cimode' && + (!this.options.preload || this.options.preload.length === 0) + ) + return usedCallback(); + const toLoad = []; + const append = (lng) => { + if (!lng) return; + if (lng === 'cimode') return; + const lngs = this.services.languageUtils.toResolveHierarchy(lng); + lngs.forEach((l) => { + if (l === 'cimode') return; + if (toLoad.indexOf(l) < 0) toLoad.push(l); + }); + }; + if (!usedLng) { + const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng); + fallbacks.forEach((l) => append(l)); + } else { + append(usedLng); + } + if (this.options.preload) { + this.options.preload.forEach((l) => append(l)); + } + this.services.backendConnector.load(toLoad, this.options.ns, (e) => { + if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language); + usedCallback(e); + }); + } else { + usedCallback(null); + } + } + reloadResources(lngs, ns, callback) { + const deferred = defer(); + if (typeof lngs === 'function') { + callback = lngs; + lngs = undefined; + } + if (typeof ns === 'function') { + callback = ns; + ns = undefined; + } + if (!lngs) lngs = this.languages; + if (!ns) ns = this.options.ns; + if (!callback) callback = noop$3; + this.services.backendConnector.reload(lngs, ns, (err) => { + deferred.resolve(); + callback(err); + }); + return deferred; + } + use(module) { + if (!module) + throw new Error( + 'You are passing an undefined module! Please check the object you are passing to i18next.use()' + ); + if (!module.type) + throw new Error( + 'You are passing a wrong module! Please check the object you are passing to i18next.use()' ); + if (module.type === 'backend') { + this.modules.backend = module; + } + if (module.type === 'logger' || (module.log && module.warn && module.error)) { + this.modules.logger = module; + } + if (module.type === 'languageDetector') { + this.modules.languageDetector = module; + } + if (module.type === 'i18nFormat') { + this.modules.i18nFormat = module; + } + if (module.type === 'postProcessor') { + postProcessor.addPostProcessor(module); + } + if (module.type === 'formatter') { + this.modules.formatter = module; + } + if (module.type === '3rdParty') { + this.modules.external.push(module); + } + return this; + } + setResolvedLanguage(l) { + if (!l || !this.languages) return; + if (['cimode', 'dev'].indexOf(l) > -1) return; + for (let li = 0; li < this.languages.length; li++) { + const lngInLngs = this.languages[li]; + if (['cimode', 'dev'].indexOf(lngInLngs) > -1) continue; + if (this.store.hasLanguageSomeTranslations(lngInLngs)) { + this.resolvedLanguage = lngInLngs; + break; + } + } + } + changeLanguage(lng, callback) { + var _this2 = this; + this.isLanguageChangingTo = lng; + const deferred = defer(); + this.emit('languageChanging', lng); + const setLngProps = (l) => { + this.language = l; + this.languages = this.services.languageUtils.toResolveHierarchy(l); + this.resolvedLanguage = undefined; + this.setResolvedLanguage(l); + }; + const done = (err, l) => { + if (l) { + setLngProps(l); + this.translator.changeLanguage(l); + this.isLanguageChangingTo = undefined; + this.emit('languageChanged', l); + this.logger.log('languageChanged', l); + } else { + this.isLanguageChangingTo = undefined; + } + deferred.resolve(function () { + return _this2.t(...arguments); + }); + if (callback) + callback(err, function () { + return _this2.t(...arguments); + }); + }; + const setLng = (lngs) => { + if (!lng && !lngs && this.services.languageDetector) lngs = []; + const l = isString$1(lngs) ? lngs : this.services.languageUtils.getBestMatchFromCodes(lngs); + if (l) { + if (!this.language) { + setLngProps(l); + } + if (!this.translator.language) this.translator.changeLanguage(l); + if (this.services.languageDetector && this.services.languageDetector.cacheUserLanguage) + this.services.languageDetector.cacheUserLanguage(l); + } + this.loadResources(l, (err) => { + done(err, l); + }); + }; + if (!lng && this.services.languageDetector && !this.services.languageDetector.async) { + setLng(this.services.languageDetector.detect()); + } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) { + if (this.services.languageDetector.detect.length === 0) { + this.services.languageDetector.detect().then(setLng); + } else { + this.services.languageDetector.detect(setLng); + } + } else { + setLng(lng); + } + return deferred; + } + getFixedT(lng, ns, keyPrefix) { + var _this3 = this; + const fixedT = function (key, opts) { + let options; + if (typeof opts !== 'object') { + for ( + var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; + _key3 < _len3; + _key3++ + ) { + rest[_key3 - 2] = arguments[_key3]; + } + options = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest)); + } else { + options = { + ...opts, + }; + } + options.lng = options.lng || fixedT.lng; + options.lngs = options.lngs || fixedT.lngs; + options.ns = options.ns || fixedT.ns; + if (options.keyPrefix !== '') + options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix; + const keySeparator = _this3.options.keySeparator || '.'; + let resultKey; + if (options.keyPrefix && Array.isArray(key)) { + resultKey = key.map((k) => `${options.keyPrefix}${keySeparator}${k}`); + } else { + resultKey = options.keyPrefix ? `${options.keyPrefix}${keySeparator}${key}` : key; + } + return _this3.t(resultKey, options); }; - return C(e) ? (o.lng = e) : (o.lngs = e), (o.ns = t), (o.keyPrefix = n), o; + if (isString$1(lng)) { + fixedT.lng = lng; + } else { + fixedT.lngs = lng; + } + fixedT.ns = ns; + fixedT.keyPrefix = keyPrefix; + return fixedT; } t() { return this.translator && this.translator.translate(...arguments); @@ -10314,81 +11667,84 @@ class fe extends U { exists() { return this.translator && this.translator.exists(...arguments); } - setDefaultNamespace(e) { - this.options.defaultNS = e; + setDefaultNamespace(ns) { + this.options.defaultNS = ns; } - hasLoadedNamespace(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - if (!this.isInitialized) - return ( - this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages), !1 - ); - if (!this.languages || !this.languages.length) - return ( - this.logger.warn( - 'hasLoadedNamespace: i18n.languages were undefined or empty', - this.languages - ), - !1 + hasLoadedNamespace(ns) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + if (!this.isInitialized) { + this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages); + return false; + } + if (!this.languages || !this.languages.length) { + this.logger.warn( + 'hasLoadedNamespace: i18n.languages were undefined or empty', + this.languages ); - const n = t.lng || this.resolvedLanguage || this.languages[0], - r = !!this.options && this.options.fallbackLng, - o = this.languages[this.languages.length - 1]; - if ('cimode' === n.toLowerCase()) return !0; - const a = (e, t) => { - const n = this.services.backendConnector.state[`${e}|${t}`]; - return -1 === n || 0 === n || 2 === n; + return false; + } + const lng = options.lng || this.resolvedLanguage || this.languages[0]; + const fallbackLng = this.options ? this.options.fallbackLng : false; + const lastLng = this.languages[this.languages.length - 1]; + if (lng.toLowerCase() === 'cimode') return true; + const loadNotPending = (l, n) => { + const loadState = this.services.backendConnector.state[`${l}|${n}`]; + return loadState === -1 || loadState === 0 || loadState === 2; }; - if (t.precheck) { - const e = t.precheck(this, a); - if (void 0 !== e) return e; + if (options.precheck) { + const preResult = options.precheck(this, loadNotPending); + if (preResult !== undefined) return preResult; } - return ( - !!this.hasResourceBundle(n, e) || - !( - this.services.backendConnector.backend && - (!this.options.resources || this.options.partialBundledLanguages) - ) || - !(!a(n, e) || (r && !a(o, e))) - ); - } - loadNamespaces(e, t) { - const n = O(); - return this.options.ns - ? (C(e) && (e = [e]), - e.forEach((e) => { - this.options.ns.indexOf(e) < 0 && this.options.ns.push(e); - }), - this.loadResources((e) => { - n.resolve(), t && t(e); - }), - n) - : (t && t(), Promise.resolve()); - } - loadLanguages(e, t) { - const n = O(); - C(e) && (e = [e]); - const r = this.options.preload || [], - o = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e)); - return o.length - ? ((this.options.preload = r.concat(o)), - this.loadResources((e) => { - n.resolve(), t && t(e); - }), - n) - : (t && t(), Promise.resolve()); - } - dir(e) { + if (this.hasResourceBundle(lng, ns)) return true; if ( - (e || - (e = - this.resolvedLanguage || - (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), - !e) + !this.services.backendConnector.backend || + (this.options.resources && !this.options.partialBundledLanguages) ) - return 'rtl'; - const t = (this.services && this.services.languageUtils) || new X(ue()); - return [ + return true; + if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true; + return false; + } + loadNamespaces(ns, callback) { + const deferred = defer(); + if (!this.options.ns) { + if (callback) callback(); + return Promise.resolve(); + } + if (isString$1(ns)) ns = [ns]; + ns.forEach((n) => { + if (this.options.ns.indexOf(n) < 0) this.options.ns.push(n); + }); + this.loadResources((err) => { + deferred.resolve(); + if (callback) callback(err); + }); + return deferred; + } + loadLanguages(lngs, callback) { + const deferred = defer(); + if (isString$1(lngs)) lngs = [lngs]; + const preloaded = this.options.preload || []; + const newLngs = lngs.filter( + (lng) => preloaded.indexOf(lng) < 0 && this.services.languageUtils.isSupportedCode(lng) + ); + if (!newLngs.length) { + if (callback) callback(); + return Promise.resolve(); + } + this.options.preload = preloaded.concat(newLngs); + this.loadResources((err) => { + deferred.resolve(); + if (callback) callback(err); + }); + return deferred; + } + dir(lng) { + if (!lng) + lng = + this.resolvedLanguage || + (this.languages && this.languages.length > 0 ? this.languages[0] : this.language); + if (!lng) return 'rtl'; + const rtlLngs = [ 'ar', 'shu', 'sqr', @@ -10451,44 +11807,65 @@ class fe extends U { 'dv', 'sam', 'ckb', - ].indexOf(t.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf('-arab') > 1 + ]; + const languageUtils = (this.services && this.services.languageUtils) || new LanguageUtil(get()); + return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng)) > -1 || + lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr'; } static createInstance() { - return new fe( - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - arguments.length > 1 ? arguments[1] : void 0 - ); + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + let callback = arguments.length > 1 ? arguments[1] : undefined; + return new I18n(options, callback); } cloneInstance() { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : pe; - const n = e.forkResourceStore; - n && delete e.forkResourceStore; - const r = { ...this.options, ...e, isClone: !0 }, - o = new fe(r); - (void 0 === e.debug && void 0 === e.prefix) || (o.logger = o.logger.clone(e)); - return ( - ['store', 'services', 'language'].forEach((e) => { - o[e] = this[e]; - }), - (o.services = { ...this.services }), - (o.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) }), - n && ((o.store = new q(this.store.data, r)), (o.services.resourceStore = o.store)), - (o.translator = new G(o.services, r)), - o.translator.on('*', function (e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) - n[r - 1] = arguments[r]; - o.emit(e, ...n); - }), - o.init(r, t), - (o.translator.options = r), - (o.translator.backendConnector.services.utils = { - hasLoadedNamespace: o.hasLoadedNamespace.bind(o), - }), - o - ); + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$3; + const forkResourceStore = options.forkResourceStore; + if (forkResourceStore) delete options.forkResourceStore; + const mergedOptions = { + ...this.options, + ...options, + ...{ + isClone: true, + }, + }; + const clone = new I18n(mergedOptions); + if (options.debug !== undefined || options.prefix !== undefined) { + clone.logger = clone.logger.clone(options); + } + const membersToCopy = ['store', 'services', 'language']; + membersToCopy.forEach((m) => { + clone[m] = this[m]; + }); + clone.services = { + ...this.services, + }; + clone.services.utils = { + hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone), + }; + if (forkResourceStore) { + clone.store = new ResourceStore(this.store.data, mergedOptions); + clone.services.resourceStore = clone.store; + } + clone.translator = new Translator(clone.services, mergedOptions); + clone.translator.on('*', function (event) { + for ( + var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; + _key4 < _len4; + _key4++ + ) { + args[_key4 - 1] = arguments[_key4]; + } + clone.emit(event, ...args); + }); + clone.init(mergedOptions, callback); + clone.translator.options = mergedOptions; + clone.translator.backendConnector.services.utils = { + hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone), + }; + return clone; } toJSON() { return { @@ -10500,971 +11877,1203 @@ class fe extends U { }; } } -const me = fe.createInstance(); -async function he(e, t) { +const instance = I18n.createInstance(); +instance.createInstance = I18n.createInstance; + +instance.createInstance; +instance.dir; +instance.init; +instance.loadResources; +instance.reloadResources; +instance.use; +instance.changeLanguage; +instance.getFixedT; +instance.t; +instance.exists; +instance.setDefaultNamespace; +instance.hasLoadedNamespace; +instance.loadNamespaces; +instance.loadLanguages; + +async function loadTranslations(locale, dynamicImport) { try { - const { default: n } = await t(); - me.addResourceBundle(e, 'translation', n); - } catch (t) { - console.error(`Cannot load translations for ${e}`); - } -} -(me.createInstance = fe.createInstance), - me.createInstance, - me.dir, - me.init, - me.loadResources, - me.reloadResources, - me.use, - me.changeLanguage, - me.getFixedT, - me.t, - me.exists, - me.setDefaultNamespace, - me.hasLoadedNamespace, - me.loadNamespaces, - me.loadLanguages; -const ge = {}; -function ve() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - (xe(t[0]) && ge[t[0]]) || - (xe(t[0]) && (ge[t[0]] = new Date()), - (function () { - if (console && console.warn) { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - xe(t[0]) && (t[0] = `react-i18next:: ${t[0]}`), console.warn(...t); - } - })(...t)); -} -const be = (e, t) => () => { - if (e.isInitialized) t(); - else { - const n = () => { - setTimeout(() => { - e.off('initialized', n); - }, 0), - t(); - }; - e.on('initialized', n); - } - }, - ye = (e, t, n) => { - e.loadNamespaces(t, be(e, n)); - }, - we = (e, t, n, r) => { - xe(n) && (n = [n]), - n.forEach((t) => { - e.options.ns.indexOf(t) < 0 && e.options.ns.push(t); - }), - e.loadLanguages(t, be(e, r)); - }, - xe = (e) => 'string' == typeof e, - ke = - /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, - Ee = { - '&': '&', - '&': '&', - '<': '<', - '<': '<', - '>': '>', - '>': '>', - ''': "'", - ''': "'", - '"': '"', - '"': '"', - ' ': ' ', - ' ': ' ', - '©': '©', - '©': '©', - '®': '®', - '®': '®', - '…': '…', - '…': '…', - '/': '/', - '/': '/', - }, - Se = (e) => Ee[e]; -let Ce = { - bindI18n: 'languageChanged', - bindI18nStore: '', - transEmptyNodeValue: '', - transSupportBasicHtmlNodes: !0, - transWrapTextNodes: '', - transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'], - useSuspense: !0, - unescape: (e) => e.replace(ke, Se), -}; -let Oe; -const Pe = { - type: '3rdParty', - init(e) { - !(function () { - let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; - Ce = { ...Ce, ...e }; - })(e.options.react), - ((e) => { - Oe = e; - })(e); - }, - }, - Te = c.createContext(); -class Ie { - constructor() { - this.usedNamespaces = {}; - } - addUsedNamespaces(e) { - e.forEach((e) => { - this.usedNamespaces[e] || (this.usedNamespaces[e] = !0); - }); + const { default: translations } = await dynamicImport(); + instance.addResourceBundle(locale, 'translation', translations); + } catch (e) { + console.error(`Cannot load translations for ${locale}`); } - getUsedNamespaces = () => Object.keys(this.usedNamespaces); } -const Ne = (e, t, n, r) => e.getFixedT(t, n, r), - Me = function (e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - const { i18n: n } = t, - { i18n: r, defaultNS: o } = c.useContext(Te) || {}, - a = n || r || Oe; - if ((a && !a.reportNamespaces && (a.reportNamespaces = new Ie()), !a)) { - ve('You will need to pass in an i18next instance by using initReactI18next'); - const e = (e, t) => { - return xe(t) - ? t - : 'object' == typeof (n = t) && null !== n && xe(t.defaultValue) - ? t.defaultValue - : Array.isArray(e) - ? e[e.length - 1] - : e; - var n; - }, - t = [e, {}, !1]; - return (t.t = e), (t.i18n = {}), (t.ready = !1), t; + +function warn() { + if (console && console.warn) { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - a.options.react && - void 0 !== a.options.react.wait && - ve( - 'It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.' - ); - const i = { ...Ce, ...a.options.react, ...t }, - { useSuspense: s, keyPrefix: l } = i; - let u = e || o || (a.options && a.options.defaultNS); - (u = xe(u) ? [u] : u || ['translation']), - a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(u); - const d = - (a.isInitialized || a.initializedStoreOnce) && - u.every((e) => - (function (e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - return t.languages && t.languages.length - ? void 0 !== t.options.ignoreJSONStructure - ? t.hasLoadedNamespace(e, { - lng: n.lng, - precheck: (t, r) => { - if ( - n.bindI18n && - n.bindI18n.indexOf('languageChanging') > -1 && - t.services.backendConnector.backend && - t.isLanguageChangingTo && - !r(t.isLanguageChangingTo, e) - ) - return !1; - }, - }) - : (function (e, t) { - let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - const r = t.languages[0], - o = !!t.options && t.options.fallbackLng, - a = t.languages[t.languages.length - 1]; - if ('cimode' === r.toLowerCase()) return !0; - const i = (e, n) => { - const r = t.services.backendConnector.state[`${e}|${n}`]; - return -1 === r || 2 === r; - }; - return !( - (n.bindI18n && - n.bindI18n.indexOf('languageChanging') > -1 && - t.services.backendConnector.backend && - t.isLanguageChangingTo && - !i(t.isLanguageChangingTo, e)) || - (!t.hasResourceBundle(r, e) && - t.services.backendConnector.backend && - (!t.options.resources || t.options.partialBundledLanguages) && - (!i(r, e) || (o && !i(a, e)))) - ); - })(e, t, n) - : (ve('i18n.languages were undefined or empty', t.languages), !0); - })(e, a, i) - ), - p = ((e, t, n, r) => c.useCallback(Ne(e, t, n, r), [e, t, n, r]))( - a, - t.lng || null, - 'fallback' === i.nsMode ? u : u[0], - l - ), - f = () => p, - m = () => Ne(a, t.lng || null, 'fallback' === i.nsMode ? u : u[0], l), - [h, g] = c.useState(f); - let v = u.join(); - t.lng && (v = `${t.lng}${v}`); - const b = ((e, t) => { - const n = c.useRef(); - return ( - c.useEffect(() => { - n.current = t ? n.current : e; - }, [e, t]), - n.current - ); - })(v), - y = c.useRef(!0); - c.useEffect(() => { - const { bindI18n: e, bindI18nStore: n } = i; - (y.current = !0), - d || - s || - (t.lng - ? we(a, t.lng, u, () => { - y.current && g(m); - }) - : ye(a, u, () => { - y.current && g(m); - })), - d && b && b !== v && y.current && g(m); - const r = () => { - y.current && g(m); - }; - return ( - e && a && a.on(e, r), - n && a && a.store.on(n, r), - () => { - (y.current = !1), - e && a && e.split(' ').forEach((e) => a.off(e, r)), - n && a && n.split(' ').forEach((e) => a.store.off(e, r)); - } - ); - }, [a, v]), - c.useEffect(() => { - y.current && d && g(f); - }, [a, l, d]); - const w = [h, a, d]; - if (((w.t = h), (w.i18n = a), (w.ready = d), d)) return w; - if (!d && !s) return w; - throw new Promise((e) => { - t.lng ? we(a, t.lng, u, () => e()) : ye(a, u, () => e()); + if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`; + console.warn(...args); + } +} +const alreadyWarned = {}; +function warnOnce() { + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + if (isString(args[0]) && alreadyWarned[args[0]]) return; + if (isString(args[0])) alreadyWarned[args[0]] = new Date(); + warn(...args); +} +const loadedClb = (i18n, cb) => () => { + if (i18n.isInitialized) { + cb(); + } else { + const initialized = () => { + setTimeout(() => { + i18n.off('initialized', initialized); + }, 0); + cb(); + }; + i18n.on('initialized', initialized); + } +}; +const loadNamespaces = (i18n, ns, cb) => { + i18n.loadNamespaces(ns, loadedClb(i18n, cb)); +}; +const loadLanguages = (i18n, lng, ns, cb) => { + if (isString(ns)) ns = [ns]; + ns.forEach((n) => { + if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n); + }); + i18n.loadLanguages(lng, loadedClb(i18n, cb)); +}; +const oldI18nextHasLoadedNamespace = function (ns, i18n) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + const lng = i18n.languages[0]; + const fallbackLng = i18n.options ? i18n.options.fallbackLng : false; + const lastLng = i18n.languages[i18n.languages.length - 1]; + if (lng.toLowerCase() === 'cimode') return true; + const loadNotPending = (l, n) => { + const loadState = i18n.services.backendConnector.state[`${l}|${n}`]; + return loadState === -1 || loadState === 2; + }; + if ( + options.bindI18n && + options.bindI18n.indexOf('languageChanging') > -1 && + i18n.services.backendConnector.backend && + i18n.isLanguageChangingTo && + !loadNotPending(i18n.isLanguageChangingTo, ns) + ) + return false; + if (i18n.hasResourceBundle(lng, ns)) return true; + if ( + !i18n.services.backendConnector.backend || + (i18n.options.resources && !i18n.options.partialBundledLanguages) + ) + return true; + if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true; + return false; +}; +const hasLoadedNamespace = function (ns, i18n) { + let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + if (!i18n.languages || !i18n.languages.length) { + warnOnce('i18n.languages were undefined or empty', i18n.languages); + return true; + } + const isNewerI18next = i18n.options.ignoreJSONStructure !== undefined; + if (!isNewerI18next) { + return oldI18nextHasLoadedNamespace(ns, i18n, options); + } + return i18n.hasLoadedNamespace(ns, { + lng: options.lng, + precheck: (i18nInstance, loadNotPending) => { + if ( + options.bindI18n && + options.bindI18n.indexOf('languageChanging') > -1 && + i18nInstance.services.backendConnector.backend && + i18nInstance.isLanguageChangingTo && + !loadNotPending(i18nInstance.isLanguageChangingTo, ns) + ) + return false; + }, + }); +}; +const isString = (obj) => typeof obj === 'string'; +const isObject$3 = (obj) => typeof obj === 'object' && obj !== null; + +const matchHtmlEntity = + /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g; +const htmlEntities = { + '&': '&', + '&': '&', + '<': '<', + '<': '<', + '>': '>', + '>': '>', + ''': "'", + ''': "'", + '"': '"', + '"': '"', + ' ': ' ', + ' ': ' ', + '©': '©', + '©': '©', + '®': '®', + '®': '®', + '…': '…', + '…': '…', + '/': '/', + '/': '/', +}; +const unescapeHtmlEntity = (m) => htmlEntities[m]; +const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity); + +let defaultOptions$2 = { + bindI18n: 'languageChanged', + bindI18nStore: '', + transEmptyNodeValue: '', + transSupportBasicHtmlNodes: true, + transWrapTextNodes: '', + transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'], + useSuspense: true, + unescape, +}; +const setDefaults = function () { + let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + defaultOptions$2 = { + ...defaultOptions$2, + ...options, + }; +}; +const getDefaults = () => defaultOptions$2; + +let i18nInstance; +const setI18n = (instance) => { + i18nInstance = instance; +}; +const getI18n = () => i18nInstance; + +const initReactI18next = { + type: '3rdParty', + init(instance) { + setDefaults(instance.options.react); + setI18n(instance); + }, +}; + +const I18nContext = reactExports.createContext(); +class ReportNamespaces { + constructor() { + this.usedNamespaces = {}; + } + addUsedNamespaces(namespaces) { + namespaces.forEach((ns) => { + if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true; }); + } + getUsedNamespaces = () => Object.keys(this.usedNamespaces); +} + +const usePrevious = (value, ignore) => { + const ref = reactExports.useRef(); + reactExports.useEffect(() => { + ref.current = ignore ? ref.current : value; + }, [value, ignore]); + return ref.current; +}; +const alwaysNewT = (i18n, language, namespace, keyPrefix) => + i18n.getFixedT(language, namespace, keyPrefix); +const useMemoizedT = (i18n, language, namespace, keyPrefix) => + reactExports.useCallback(alwaysNewT(i18n, language, namespace, keyPrefix), [ + i18n, + language, + namespace, + keyPrefix, + ]); +const useTranslation = function (ns) { + let props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const { i18n: i18nFromProps } = props; + const { i18n: i18nFromContext, defaultNS: defaultNSFromContext } = + reactExports.useContext(I18nContext) || {}; + const i18n = i18nFromProps || i18nFromContext || getI18n(); + if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces(); + if (!i18n) { + warnOnce('You will need to pass in an i18next instance by using initReactI18next'); + const notReadyT = (k, optsOrDefaultValue) => { + if (isString(optsOrDefaultValue)) return optsOrDefaultValue; + if (isObject$3(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) + return optsOrDefaultValue.defaultValue; + return Array.isArray(k) ? k[k.length - 1] : k; + }; + const retNotReady = [notReadyT, {}, false]; + retNotReady.t = notReadyT; + retNotReady.i18n = {}; + retNotReady.ready = false; + return retNotReady; + } + if (i18n.options.react && i18n.options.react.wait !== undefined) + warnOnce( + 'It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.' + ); + const i18nOptions = { + ...getDefaults(), + ...i18n.options.react, + ...props, }; -function Le(e) { - me.use(Pe).init({ - resources: { [`${e}`]: {} }, - lng: e, - lowerCaseLng: !0, - interpolation: { escapeValue: !1 }, - keySeparator: !1, + const { useSuspense, keyPrefix } = i18nOptions; + let namespaces = ns || defaultNSFromContext || (i18n.options && i18n.options.defaultNS); + namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation']; + if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces); + const ready = + (i18n.isInitialized || i18n.initializedStoreOnce) && + namespaces.every((n) => hasLoadedNamespace(n, i18n, i18nOptions)); + const memoGetT = useMemoizedT( + i18n, + props.lng || null, + i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], + keyPrefix + ); + const getT = () => memoGetT; + const getNewT = () => + alwaysNewT( + i18n, + props.lng || null, + i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], + keyPrefix + ); + const [t, setT] = reactExports.useState(getT); + let joinedNS = namespaces.join(); + if (props.lng) joinedNS = `${props.lng}${joinedNS}`; + const previousJoinedNS = usePrevious(joinedNS); + const isMounted = reactExports.useRef(true); + reactExports.useEffect(() => { + const { bindI18n, bindI18nStore } = i18nOptions; + isMounted.current = true; + if (!ready && !useSuspense) { + if (props.lng) { + loadLanguages(i18n, props.lng, namespaces, () => { + if (isMounted.current) setT(getNewT); + }); + } else { + loadNamespaces(i18n, namespaces, () => { + if (isMounted.current) setT(getNewT); + }); + } + } + if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) { + setT(getNewT); + } + const boundReset = () => { + if (isMounted.current) setT(getNewT); + }; + if (bindI18n && i18n) i18n.on(bindI18n, boundReset); + if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset); + return () => { + isMounted.current = false; + if (bindI18n && i18n) bindI18n.split(' ').forEach((e) => i18n.off(e, boundReset)); + if (bindI18nStore && i18n) + bindI18nStore.split(' ').forEach((e) => i18n.store.off(e, boundReset)); + }; + }, [i18n, joinedNS]); + reactExports.useEffect(() => { + if (isMounted.current && ready) { + setT(getT); + } + }, [i18n, keyPrefix, ready]); + const ret = [t, i18n, ready]; + ret.t = t; + ret.i18n = i18n; + ret.ready = ready; + if (ready) return ret; + if (!ready && !useSuspense) return ret; + throw new Promise((resolve) => { + if (props.lng) { + loadLanguages(i18n, props.lng, namespaces, () => resolve()); + } else { + loadNamespaces(i18n, namespaces, () => resolve()); + } + }); +}; + +function initI18next(locale) { + instance.use(initReactI18next).init({ + resources: { + [`${locale}`]: {}, + }, + lng: locale, + lowerCaseLng: true, + interpolation: { + escapeValue: false, + }, + keySeparator: false, pluralSeparator: '.', }); } -var Re, - Ae = { exports: {} }, - De = {}; -Ae.exports = (function () { - if (Re) return De; - Re = 1; - var e, - t = Symbol.for('react.element'), - n = Symbol.for('react.portal'), - r = Symbol.for('react.fragment'), - o = Symbol.for('react.strict_mode'), - a = Symbol.for('react.profiler'), - i = Symbol.for('react.provider'), - s = Symbol.for('react.context'), - l = Symbol.for('react.server_context'), - c = Symbol.for('react.forward_ref'), - u = Symbol.for('react.suspense'), - d = Symbol.for('react.suspense_list'), + +var reactIs$2 = { exports: {} }; + +var reactIs_production_min$1 = {}; + +/** + * @license React + * react-is.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 hasRequiredReactIs_production_min$1; + +function requireReactIs_production_min$1() { + if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1; + hasRequiredReactIs_production_min$1 = 1; + var b = Symbol.for('react.element'), + c = Symbol.for('react.portal'), + d = Symbol.for('react.fragment'), + e = Symbol.for('react.strict_mode'), + f = Symbol.for('react.profiler'), + g = Symbol.for('react.provider'), + h = Symbol.for('react.context'), + k = Symbol.for('react.server_context'), + l = Symbol.for('react.forward_ref'), + m = Symbol.for('react.suspense'), + n = Symbol.for('react.suspense_list'), p = Symbol.for('react.memo'), - f = Symbol.for('react.lazy'), - m = Symbol.for('react.offscreen'); - function h(e) { - if ('object' == typeof e && null !== e) { - var m = e.$$typeof; - switch (m) { - case t: - switch ((e = e.type)) { - case r: - case a: - case o: - case u: + q = Symbol.for('react.lazy'), + t = Symbol.for('react.offscreen'), + u; + u = Symbol.for('react.module.reference'); + function v(a) { + if ('object' === typeof a && null !== a) { + var r = a.$$typeof; + switch (r) { + case b: + switch (((a = a.type), a)) { case d: - return e; + case f: + case e: + case m: + case n: + return a; default: - switch ((e = e && e.$$typeof)) { + switch (((a = a && a.$$typeof), a)) { + case k: + case h: case l: - case s: - case c: - case f: + case q: case p: - case i: - return e; + case g: + return a; default: - return m; + return r; } } - case n: - return m; + case c: + return r; } } } - return ( - (e = Symbol.for('react.module.reference')), - (De.ContextConsumer = s), - (De.ContextProvider = i), - (De.Element = t), - (De.ForwardRef = c), - (De.Fragment = r), - (De.Lazy = f), - (De.Memo = p), - (De.Portal = n), - (De.Profiler = a), - (De.StrictMode = o), - (De.Suspense = u), - (De.SuspenseList = d), - (De.isAsyncMode = function () { - return !1; - }), - (De.isConcurrentMode = function () { - return !1; - }), - (De.isContextConsumer = function (e) { - return h(e) === s; - }), - (De.isContextProvider = function (e) { - return h(e) === i; - }), - (De.isElement = function (e) { - return 'object' == typeof e && null !== e && e.$$typeof === t; - }), - (De.isForwardRef = function (e) { - return h(e) === c; - }), - (De.isFragment = function (e) { - return h(e) === r; - }), - (De.isLazy = function (e) { - return h(e) === f; - }), - (De.isMemo = function (e) { - return h(e) === p; - }), - (De.isPortal = function (e) { - return h(e) === n; - }), - (De.isProfiler = function (e) { - return h(e) === a; - }), - (De.isStrictMode = function (e) { - return h(e) === o; - }), - (De.isSuspense = function (e) { - return h(e) === u; - }), - (De.isSuspenseList = function (e) { - return h(e) === d; - }), - (De.isValidElementType = function (t) { - return ( - 'string' == typeof t || - 'function' == typeof t || - t === r || - t === a || - t === o || - t === u || - t === d || - t === m || - ('object' == typeof t && - null !== t && - (t.$$typeof === f || - t.$$typeof === p || - t.$$typeof === i || - t.$$typeof === s || - t.$$typeof === c || - t.$$typeof === e || - void 0 !== t.getModuleId)) - ); - }), - (De.typeOf = h), - De - ); -})(); -var je = Ae.exports; -function ze(e) { - function t(e, r, l, c, p) { + reactIs_production_min$1.ContextConsumer = h; + reactIs_production_min$1.ContextProvider = g; + reactIs_production_min$1.Element = b; + reactIs_production_min$1.ForwardRef = l; + reactIs_production_min$1.Fragment = d; + reactIs_production_min$1.Lazy = q; + reactIs_production_min$1.Memo = p; + reactIs_production_min$1.Portal = c; + reactIs_production_min$1.Profiler = f; + reactIs_production_min$1.StrictMode = e; + reactIs_production_min$1.Suspense = m; + reactIs_production_min$1.SuspenseList = n; + reactIs_production_min$1.isAsyncMode = function () { + return !1; + }; + reactIs_production_min$1.isConcurrentMode = function () { + return !1; + }; + reactIs_production_min$1.isContextConsumer = function (a) { + return v(a) === h; + }; + reactIs_production_min$1.isContextProvider = function (a) { + return v(a) === g; + }; + reactIs_production_min$1.isElement = function (a) { + return 'object' === typeof a && null !== a && a.$$typeof === b; + }; + reactIs_production_min$1.isForwardRef = function (a) { + return v(a) === l; + }; + reactIs_production_min$1.isFragment = function (a) { + return v(a) === d; + }; + reactIs_production_min$1.isLazy = function (a) { + return v(a) === q; + }; + reactIs_production_min$1.isMemo = function (a) { + return v(a) === p; + }; + reactIs_production_min$1.isPortal = function (a) { + return v(a) === c; + }; + reactIs_production_min$1.isProfiler = function (a) { + return v(a) === f; + }; + reactIs_production_min$1.isStrictMode = function (a) { + return v(a) === e; + }; + reactIs_production_min$1.isSuspense = function (a) { + return v(a) === m; + }; + reactIs_production_min$1.isSuspenseList = function (a) { + return v(a) === n; + }; + reactIs_production_min$1.isValidElementType = function (a) { + return 'string' === typeof a || + 'function' === typeof a || + a === d || + a === f || + a === e || + a === m || + a === n || + a === t || + ('object' === typeof a && + null !== a && + (a.$$typeof === q || + a.$$typeof === p || + a.$$typeof === g || + a.$$typeof === h || + a.$$typeof === l || + a.$$typeof === u || + void 0 !== a.getModuleId)) + ? !0 + : !1; + }; + reactIs_production_min$1.typeOf = v; + return reactIs_production_min$1; +} + +{ + reactIs$2.exports = requireReactIs_production_min$1(); +} + +var reactIsExports$1 = reactIs$2.exports; + +function stylis_min(W) { + function M(d, c, e, h, a) { for ( - var f, - m, - h, + var m = 0, + b = 0, + v = 0, + n = 0, + q, g, - w, - k = 0, - E = 0, - S = 0, - C = 0, - O = 0, - L = 0, - A = (h = f = 0), - j = 0, - z = 0, - F = 0, - _ = 0, - H = l.length, - $ = H - 1, - B = '', - W = '', - V = '', - U = ''; - j < H; + x = 0, + K = 0, + k, + u = (k = q = 0), + l = 0, + r = 0, + I = 0, + t = 0, + B = e.length, + J = B - 1, + y, + f = '', + p = '', + F = '', + G = '', + C; + l < B; ) { - if ( - ((m = l.charCodeAt(j)), - j === $ && - 0 !== E + C + S + k && - (0 !== E && (m = 47 === E ? 10 : 47), (C = S = k = 0), H++, $++), - 0 === E + C + S + k) - ) { - if (j === $ && (0 < z && (B = B.replace(d, '')), 0 < B.trim().length)) { - switch (m) { + g = e.charCodeAt(l); + l === J && + 0 !== b + n + v + m && + (0 !== b && (g = 47 === b ? 10 : 47), (n = v = m = 0), B++, J++); + + if (0 === b + n + v + m) { + if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) { + switch (g) { case 32: case 9: case 59: case 13: case 10: break; + default: - B += l.charAt(j); + f += e.charAt(l); } - m = 59; + + g = 59; } - switch (m) { + + switch (g) { case 123: - for (f = (B = B.trim()).charCodeAt(0), h = 1, _ = ++j; j < H; ) { - switch ((m = l.charCodeAt(j))) { + f = f.trim(); + q = f.charCodeAt(0); + k = 1; + + for (t = ++l; l < B; ) { + switch ((g = e.charCodeAt(l))) { case 123: - h++; + k++; break; + case 125: - h--; + k--; break; + case 47: - switch ((m = l.charCodeAt(j + 1))) { + switch ((g = e.charCodeAt(l + 1))) { case 42: case 47: - e: { - for (A = j + 1; A < $; ++A) - switch (l.charCodeAt(A)) { + a: { + for (u = l + 1; u < J; ++u) { + switch (e.charCodeAt(u)) { case 47: - if (42 === m && 42 === l.charCodeAt(A - 1) && j + 2 !== A) { - j = A + 1; - break e; + if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) { + l = u + 1; + break a; } + break; + case 10: - if (47 === m) { - j = A + 1; - break e; + if (47 === g) { + l = u + 1; + break a; } } - j = A; + } + + l = u; } } + break; + case 91: - m++; + g++; + case 40: - m++; + g++; + case 34: case 39: - for (; j++ < $ && l.charCodeAt(j) !== m; ); + for (; l++ < J && e.charCodeAt(l) !== g; ) {} } - if (0 === h) break; - j++; + + if (0 === k) break; + l++; } - if ( - ((h = l.substring(_, j)), - 0 === f && (f = (B = B.replace(u, '').trim()).charCodeAt(0)), - 64 === f) - ) { - switch ((0 < z && (B = B.replace(d, '')), (m = B.charCodeAt(1)))) { - case 100: - case 109: - case 115: - case 45: - z = r; - break; - default: - z = M; - } - if ( - ((_ = (h = t(r, z, h, m, p + 1)).length), - 0 < R && - ((w = s(3, h, (z = n(M, B, F)), r, T, P, _, m, p, c)), - (B = z.join('')), - void 0 !== w && 0 === (_ = (h = w.trim()).length) && ((m = 0), (h = ''))), - 0 < _) - ) - switch (m) { - case 115: - B = B.replace(x, i); + + k = e.substring(t, l); + 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0)); + + switch (q) { + case 64: + 0 < r && (f = f.replace(N, '')); + g = f.charCodeAt(1); + + switch (g) { case 100: case 109: + case 115: case 45: - h = B + '{' + h + '}'; - break; - case 107: - (h = (B = B.replace(v, '$1 $2')) + '{' + h + '}'), - (h = - 1 === N || (2 === N && a('@' + h, 3)) - ? '@-webkit-' + h + '@' + h - : '@' + h); + r = c; break; + default: - (h = B + h), 112 === c && ((W += h), (h = '')); + r = O; } - else h = ''; - } else h = t(r, n(r, B, F), h, c, p + 1); - (V += h), (h = F = z = A = f = 0), (B = ''), (m = l.charCodeAt(++j)); + + k = M(c, r, k, g, a + 1); + t = k.length; + 0 < A && + ((r = X(O, f, I)), + (C = H(3, k, r, c, D, z, t, g, a, h)), + (f = r.join('')), + void 0 !== C && 0 === (t = (k = C.trim()).length) && ((g = 0), (k = ''))); + if (0 < t) + switch (g) { + case 115: + f = f.replace(da, ea); + + case 100: + case 109: + case 45: + k = f + '{' + k + '}'; + break; + + case 107: + f = f.replace(fa, '$1 $2'); + k = f + '{' + k + '}'; + k = + 1 === w || (2 === w && L('@' + k, 3)) ? '@-webkit-' + k + '@' + k : '@' + k; + break; + + default: + (k = f + k), 112 === h && (k = ((p += k), '')); + } + else k = ''; + break; + + default: + k = M(c, X(c, f, I), k, h, a + 1); + } + + F += k; + k = I = r = u = q = 0; + f = ''; + g = e.charCodeAt(++l); break; + case 125: case 59: - if (1 < (_ = (B = (0 < z ? B.replace(d, '') : B).trim()).length)) + f = (0 < r ? f.replace(N, '') : f).trim(); + if (1 < (t = f.length)) switch ( - (0 === A && - ((f = B.charCodeAt(0)), 45 === f || (96 < f && 123 > f)) && - (_ = (B = B.replace(' ', ':')).length), - 0 < R && - void 0 !== (w = s(1, B, r, e, T, P, W.length, c, p, c)) && - 0 === (_ = (B = w.trim()).length) && - (B = '\0\0'), - (f = B.charCodeAt(0)), - (m = B.charCodeAt(1)), - f) + (0 === u && + ((q = f.charCodeAt(0)), 45 === q || (96 < q && 123 > q)) && + (t = (f = f.replace(' ', ':')).length), + 0 < A && + void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && + 0 === (t = (f = C.trim()).length) && + (f = '\x00\x00'), + (q = f.charCodeAt(0)), + (g = f.charCodeAt(1)), + q) ) { case 0: break; + case 64: - if (105 === m || 99 === m) { - U += B + l.charAt(j); + if (105 === g || 99 === g) { + G += f + e.charAt(l); break; } + default: - 58 !== B.charCodeAt(_ - 1) && (W += o(B, f, m, B.charCodeAt(2))); + 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); } - (F = z = A = f = 0), (B = ''), (m = l.charCodeAt(++j)); + I = r = u = q = 0; + f = ''; + g = e.charCodeAt(++l); } } - switch (m) { + + switch (g) { case 13: case 10: - 47 === E ? (E = 0) : 0 === 1 + f && 107 !== c && 0 < B.length && ((z = 1), (B += '\0')), - 0 < R * D && s(0, B, r, e, T, P, W.length, c, p, c), - (P = 1), - T++; + 47 === b ? (b = 0) : 0 === 1 + q && 107 !== h && 0 < f.length && ((r = 1), (f += '\x00')); + 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h); + z = 1; + D++; break; + case 59: case 125: - if (0 === E + C + S + k) { - P++; + if (0 === b + n + v + m) { + z++; break; } + default: - switch ((P++, (g = l.charAt(j)), m)) { + z++; + y = e.charAt(l); + + switch (g) { case 9: case 32: - if (0 === C + k + E) - switch (O) { + if (0 === n + m + b) + switch (x) { case 44: case 58: case 9: case 32: - g = ''; + y = ''; break; + default: - 32 !== m && (g = ' '); + 32 !== g && (y = ' '); } break; + case 0: - g = '\\0'; + y = '\\0'; break; + case 12: - g = '\\f'; + y = '\\f'; break; + case 11: - g = '\\v'; + y = '\\v'; break; + case 38: - 0 === C + E + k && ((z = F = 1), (g = '\f' + g)); + 0 === n + b + m && ((r = I = 1), (y = '\f' + y)); break; + case 108: - if (0 === C + E + k + I && 0 < A) - switch (j - A) { + if (0 === n + b + m + E && 0 < u) + switch (l - u) { case 2: - 112 === O && 58 === l.charCodeAt(j - 3) && (I = O); + 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); + case 8: - 111 === L && (I = L); + 111 === K && (E = K); } break; + case 58: - 0 === C + E + k && (A = j); + 0 === n + b + m && (u = l); break; + case 44: - 0 === E + S + C + k && ((z = 1), (g += '\r')); + 0 === b + v + n + m && ((r = 1), (y += '\r')); break; + case 34: case 39: - 0 === E && (C = C === m ? 0 : 0 === C ? m : C); + 0 === b && (n = n === g ? 0 : 0 === n ? g : n); break; + case 91: - 0 === C + E + S && k++; + 0 === n + b + v && m++; break; + case 93: - 0 === C + E + S && k--; + 0 === n + b + v && m--; break; + case 41: - 0 === C + E + k && S--; + 0 === n + b + m && v--; break; + case 40: - if (0 === C + E + k) { - if (0 === f) - if (2 * O + 3 * L == 533); - else f = 1; - S++; + if (0 === n + b + m) { + if (0 === q) + switch (2 * x + 3 * K) { + case 533: + break; + + default: + q = 1; + } + v++; } + break; + case 64: - 0 === E + S + C + k + A + h && (h = 1); + 0 === b + v + n + m + u + k && (k = 1); break; + case 42: case 47: - if (!(0 < C + k + S)) - switch (E) { + if (!(0 < n + m + v)) + switch (b) { case 0: - switch (2 * m + 3 * l.charCodeAt(j + 1)) { + switch (2 * g + 3 * e.charCodeAt(l + 1)) { case 235: - E = 47; + b = 47; break; + case 220: - (_ = j), (E = 42); + (t = l), (b = 42); } + break; + case 42: - 47 === m && - 42 === O && - _ + 2 !== j && - (33 === l.charCodeAt(_ + 2) && (W += l.substring(_, j + 1)), - (g = ''), - (E = 0)); + 47 === g && + 42 === x && + t + 2 !== l && + (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), + (y = ''), + (b = 0)); } } - 0 === E && (B += g); + + 0 === b && (f += y); } - (L = O), (O = m), j++; + + K = x; + x = g; + l++; } - if (0 < (_ = W.length)) { - if ( - ((z = r), 0 < R && void 0 !== (w = s(2, W, z, e, T, P, _, c, p, c)) && 0 === (W = w).length) - ) - return U + W + V; - if (((W = z.join(',') + '{' + W + '}'), 0 != N * I)) { - switch ((2 !== N || a(W, 2) || (I = 0), I)) { + + t = p.length; + + if (0 < t) { + r = c; + if (0 < A && ((C = H(2, p, r, d, D, z, t, h, a, h)), void 0 !== C && 0 === (p = C).length)) + return G + p + F; + p = r.join(',') + '{' + p + '}'; + + if (0 !== w * E) { + 2 !== w || L(p, 2) || (E = 0); + + switch (E) { case 111: - W = W.replace(y, ':-moz-$1') + W; + p = p.replace(ha, ':-moz-$1') + p; break; + case 112: - W = - W.replace(b, '::-webkit-input-$1') + - W.replace(b, '::-moz-$1') + - W.replace(b, ':-ms-input-$1') + - W; + p = + p.replace(Q, '::-webkit-input-$1') + + p.replace(Q, '::-moz-$1') + + p.replace(Q, ':-ms-input-$1') + + p; } - I = 0; + + E = 0; } } - return U + W + V; + + return G + p + F; } - function n(e, t, n) { - var o = t.trim().split(h); - t = o; - var a = o.length, - i = e.length; - switch (i) { + + function X(d, c, e) { + var h = c.trim().split(ia); + c = h; + var a = h.length, + m = d.length; + + switch (m) { case 0: case 1: - var s = 0; - for (e = 0 === i ? '' : e[0] + ' '; s < a; ++s) t[s] = r(e, t[s], n).trim(); + var b = 0; + + for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) { + c[b] = Z(d, c[b], e).trim(); + } + break; + default: - var l = (s = 0); - for (t = []; s < a; ++s) for (var c = 0; c < i; ++c) t[l++] = r(e[c] + ' ', o[s], n).trim(); + var v = (b = 0); + + for (c = []; b < a; ++b) { + for (var n = 0; n < m; ++n) { + c[v++] = Z(d[n] + ' ', h[b], e).trim(); + } + } } - return t; + + return c; } - function r(e, t, n) { - var r = t.charCodeAt(0); - switch ((33 > r && (r = (t = t.trim()).charCodeAt(0)), r)) { + + function Z(d, c, e) { + var h = c.charCodeAt(0); + 33 > h && (h = (c = c.trim()).charCodeAt(0)); + + switch (h) { case 38: - return t.replace(g, '$1' + e.trim()); + return c.replace(F, '$1' + d.trim()); + case 58: - return e.trim() + t.replace(g, '$1' + e.trim()); + return d.trim() + c.replace(F, '$1' + d.trim()); + default: - if (0 < 1 * n && 0 < t.indexOf('\f')) - return t.replace(g, (58 === e.charCodeAt(0) ? '' : '$1') + e.trim()); + if (0 < 1 * e && 0 < c.indexOf('\f')) + return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim()); } - return e + t; + + return d + c; } - function o(e, t, n, r) { - var i = e + ';', - s = 2 * t + 3 * n + 4 * r; - if (944 === s) { - e = i.indexOf(':', 9) + 1; - var l = i.substring(e, i.length - 1).trim(); - return ( - (l = i.substring(0, e).trim() + l + ';'), - 1 === N || (2 === N && a(l, 1)) ? '-webkit-' + l + l : l - ); + + function P(d, c, e, h) { + var a = d + ';', + m = 2 * c + 3 * e + 4 * h; + + if (944 === m) { + d = a.indexOf(':', 9) + 1; + var b = a.substring(d, a.length - 1).trim(); + b = a.substring(0, d).trim() + b + ';'; + return 1 === w || (2 === w && L(b, 1)) ? '-webkit-' + b + b : b; } - if (0 === N || (2 === N && !a(i, 1))) return i; - switch (s) { + + if (0 === w || (2 === w && !L(a, 1))) return a; + + switch (m) { case 1015: - return 97 === i.charCodeAt(10) ? '-webkit-' + i + i : i; + return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a; + case 951: - return 116 === i.charCodeAt(3) ? '-webkit-' + i + i : i; + return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a; + case 963: - return 110 === i.charCodeAt(5) ? '-webkit-' + i + i : i; + return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a; + case 1009: - if (100 !== i.charCodeAt(4)) break; + if (100 !== a.charCodeAt(4)) break; + case 969: case 942: - return '-webkit-' + i + i; + return '-webkit-' + a + a; + case 978: - return '-webkit-' + i + '-moz-' + i + i; + return '-webkit-' + a + '-moz-' + a + a; + case 1019: case 983: - return '-webkit-' + i + '-moz-' + i + '-ms-' + i + i; + return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a; + case 883: - if (45 === i.charCodeAt(8)) return '-webkit-' + i + i; - if (0 < i.indexOf('image-set(', 11)) return i.replace(O, '$1-webkit-$2') + i; + if (45 === a.charCodeAt(8)) return '-webkit-' + a + a; + if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a; break; + case 932: - if (45 === i.charCodeAt(4)) - switch (i.charCodeAt(5)) { + if (45 === a.charCodeAt(4)) + switch (a.charCodeAt(5)) { case 103: return ( '-webkit-box-' + - i.replace('-grow', '') + + a.replace('-grow', '') + '-webkit-' + - i + + a + '-ms-' + - i.replace('grow', 'positive') + - i + a.replace('grow', 'positive') + + a ); + case 115: - return '-webkit-' + i + '-ms-' + i.replace('shrink', 'negative') + i; + return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a; + case 98: - return '-webkit-' + i + '-ms-' + i.replace('basis', 'preferred-size') + i; + return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a; } - return '-webkit-' + i + '-ms-' + i + i; + return '-webkit-' + a + '-ms-' + a + a; + case 964: - return '-webkit-' + i + '-ms-flex-' + i + i; + return '-webkit-' + a + '-ms-flex-' + a + a; + case 1023: - if (99 !== i.charCodeAt(8)) break; - return ( - '-webkit-box-pack' + - (l = i - .substring(i.indexOf(':', 15)) - .replace('flex-', '') - .replace('space-between', 'justify')) + - '-webkit-' + - i + - '-ms-flex-pack' + - l + - i - ); + if (99 !== a.charCodeAt(8)) break; + b = a + .substring(a.indexOf(':', 15)) + .replace('flex-', '') + .replace('space-between', 'justify'); + return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a; + case 1005: - return f.test(i) ? i.replace(p, ':-webkit-') + i.replace(p, ':-moz-') + i : i; + return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a; + case 1e3: - switch ( - ((t = (l = i.substring(13).trim()).indexOf('-') + 1), l.charCodeAt(0) + l.charCodeAt(t)) - ) { + b = a.substring(13).trim(); + c = b.indexOf('-') + 1; + + switch (b.charCodeAt(0) + b.charCodeAt(c)) { case 226: - l = i.replace(w, 'tb'); + b = a.replace(G, 'tb'); break; + case 232: - l = i.replace(w, 'tb-rl'); + b = a.replace(G, 'tb-rl'); break; + case 220: - l = i.replace(w, 'lr'); + b = a.replace(G, 'lr'); break; + default: - return i; + return a; } - return '-webkit-' + i + '-ms-' + l + i; + + return '-webkit-' + a + '-ms-' + b + a; + case 1017: - if (-1 === i.indexOf('sticky', 9)) break; + if (-1 === a.indexOf('sticky', 9)) break; + case 975: - switch ( - ((t = (i = e).length - 10), - (s = - (l = (33 === i.charCodeAt(t) ? i.substring(0, t) : i) - .substring(e.indexOf(':', 7) + 1) - .trim()).charCodeAt(0) + - (0 | l.charCodeAt(7)))) - ) { + c = (a = d).length - 10; + b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a) + .substring(d.indexOf(':', 7) + 1) + .trim(); + + switch ((m = b.charCodeAt(0) + (b.charCodeAt(7) | 0))) { case 203: - if (111 > l.charCodeAt(8)) break; + if (111 > b.charCodeAt(8)) break; + case 115: - i = i.replace(l, '-webkit-' + l) + ';' + i; + a = a.replace(b, '-webkit-' + b) + ';' + a; break; + case 207: case 102: - i = - i.replace(l, '-webkit-' + (102 < s ? 'inline-' : '') + 'box') + + a = + a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + - i.replace(l, '-webkit-' + l) + + a.replace(b, '-webkit-' + b) + ';' + - i.replace(l, '-ms-' + l + 'box') + + a.replace(b, '-ms-' + b + 'box') + ';' + - i; + a; } - return i + ';'; + + return a + ';'; + case 938: - if (45 === i.charCodeAt(5)) - switch (i.charCodeAt(6)) { + if (45 === a.charCodeAt(5)) + switch (a.charCodeAt(6)) { case 105: return ( - (l = i.replace('-items', '')), - '-webkit-' + i + '-webkit-box-' + l + '-ms-flex-' + l + i + (b = a.replace('-items', '')), + '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a ); + case 115: - return '-webkit-' + i + '-ms-flex-item-' + i.replace(E, '') + i; + return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a; + default: return ( '-webkit-' + - i + + a + '-ms-flex-line-pack' + - i.replace('align-content', '').replace(E, '') + - i + a.replace('align-content', '').replace(ba, '') + + a ); } break; + case 973: case 989: - if (45 !== i.charCodeAt(3) || 122 === i.charCodeAt(4)) break; + if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; + case 931: case 953: - if (!0 === C.test(e)) - return 115 === (l = e.substring(e.indexOf(':') + 1)).charCodeAt(0) - ? o(e.replace('stretch', 'fill-available'), t, n, r).replace( + if (!0 === la.test(d)) + return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) + ? P(d.replace('stretch', 'fill-available'), c, e, h).replace( ':fill-available', ':stretch' ) - : i.replace(l, '-webkit-' + l) + i.replace(l, '-moz-' + l.replace('fill-', '')) + i; + : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a; break; + case 962: if ( - ((i = '-webkit-' + i + (102 === i.charCodeAt(5) ? '-ms-' + i : '') + i), - 211 === n + r && 105 === i.charCodeAt(13) && 0 < i.indexOf('transform', 10)) + ((a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a), + 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) ) - return i.substring(0, i.indexOf(';', 27) + 1).replace(m, '$1-webkit-$2') + i; + return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a; } - return i; + + return a; } - function a(e, t) { - var n = e.indexOf(1 === t ? ':' : '{'), - r = e.substring(0, 3 !== t ? n : 10); - return (n = e.substring(n + 1, e.length - 1)), A(2 !== t ? r : r.replace(S, '$1'), n, t); + + function L(d, c) { + var e = d.indexOf(1 === c ? ':' : '{'), + h = d.substring(0, 3 !== c ? e : 10); + e = d.substring(e + 1, d.length - 1); + return R(2 !== c ? h : h.replace(na, '$1'), e, c); } - function i(e, t) { - var n = o(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)); - return n !== t + ';' ? n.replace(k, ' or ($1)').substring(4) : '(' + t + ')'; + + function ea(d, c) { + var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); + return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')'; } - function s(e, t, n, r, o, a, i, s, l, u) { - for (var d, p = 0, f = t; p < R; ++p) - switch ((d = L[p].call(c, e, f, n, r, o, a, i, s, l, u))) { + + function H(d, c, e, h, a, m, b, v, n, q) { + for (var g = 0, x = c, w; g < A; ++g) { + switch ((w = S[g].call(B, d, x, e, h, a, m, b, v, n, q))) { case void 0: case !1: case !0: case null: break; + default: - f = d; + x = w; } - if (f !== t) return f; + } + + if (x !== c) return x; } - function l(e) { - return ( - void 0 !== (e = e.prefix) && - ((A = null), e ? ('function' != typeof e ? (N = 1) : ((N = 2), (A = e))) : (N = 0)), - l - ); + + function T(d) { + switch (d) { + case void 0: + case null: + A = S.length = 0; + break; + + default: + if ('function' === typeof d) S[A++] = d; + else if ('object' === typeof d) + for (var c = 0, e = d.length; c < e; ++c) { + T(d[c]); + } + else Y = !!d | 0; + } + + return T; + } + + function U(d) { + d = d.prefix; + void 0 !== d && + ((R = null), d ? ('function' !== typeof d ? (w = 1) : ((w = 2), (R = d))) : (w = 0)); + return U; } - function c(e, n) { - var r = e; - if ((33 > r.charCodeAt(0) && (r = r.trim()), (r = [r]), 0 < R)) { - var o = s(-1, n, r, r, T, P, 0, 0, 0, 0); - void 0 !== o && 'string' == typeof o && (n = o); + + function B(d, c) { + var e = d; + 33 > e.charCodeAt(0) && (e = e.trim()); + V = e; + e = [V]; + + if (0 < A) { + var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); + void 0 !== h && 'string' === typeof h && (c = h); } - var a = t(M, r, n, 0, 0); - return ( - 0 < R && void 0 !== (o = s(-2, a, r, r, T, P, a.length, 0, 0, 0)) && (a = o), - (I = 0), - (P = T = 1), - a - ); + + var a = M(O, e, c, 0, 0); + 0 < A && ((h = H(-2, a, e, e, D, z, a.length, 0, 0, 0)), void 0 !== h && (a = h)); + V = ''; + E = 0; + z = D = 1; + return a; } - var u = /^\0+/g, - d = /[\0\r\f]/g, - p = /: */g, - f = /zoo|gra/, - m = /([,: ])(transform)/g, - h = /,\r+?/g, - g = /([\t\r\n ])*\f?&/g, - v = /@(k\w+)\s*(\S*)\s*/, - b = /::(place)/g, - y = /:(read-only)/g, - w = /[svh]\w+-[tblr]{2}/, - x = /\(\s*(.*)\s*\)/g, - k = /([\s\S]*?);/g, - E = /-self|flex-/g, - S = /[^]*?(:[rp][el]a[\w-]+)[^]*/, - C = /stretch|:\s*\w+\-(?:conte|avail)/, - O = /([^-])(image-set\()/, - P = 1, - T = 1, - I = 0, - N = 1, - M = [], - L = [], - R = 0, - A = null, - D = 0; - return ( - (c.use = function e(t) { - switch (t) { - case void 0: - case null: - R = L.length = 0; - break; - default: - if ('function' == typeof t) L[R++] = t; - else if ('object' == typeof t) for (var n = 0, r = t.length; n < r; ++n) e(t[n]); - else D = 0 | !!t; - } - return e; - }), - (c.set = l), - void 0 !== e && l(e), - c - ); + + var ca = /^\0+/g, + N = /[\0\r\f]/g, + aa = /: */g, + ka = /zoo|gra/, + ma = /([,: ])(transform)/g, + ia = /,\r+?/g, + F = /([\t\r\n ])*\f?&/g, + fa = /@(k\w+)\s*(\S*)\s*/, + Q = /::(place)/g, + ha = /:(read-only)/g, + G = /[svh]\w+-[tblr]{2}/, + da = /\(\s*(.*)\s*\)/g, + oa = /([\s\S]*?);/g, + ba = /-self|flex-/g, + na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + la = /stretch|:\s*\w+\-(?:conte|avail)/, + ja = /([^-])(image-set\()/, + z = 1, + D = 1, + E = 0, + w = 1, + O = [], + S = [], + A = 0, + R = null, + Y = 0, + V = ''; + B.use = T; + B.set = U; + void 0 !== W && U(W); + return B; } -var Fe = { + +var unitlessKeys = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, @@ -11502,6 +13111,7 @@ var Fe = { zIndex: 1, zoom: 1, WebkitLineClamp: 1, + // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, @@ -11511,212 +13121,296 @@ var Fe = { strokeOpacity: 1, strokeWidth: 1, }; -function _e(e) { - var t = Object.create(null); - return function (n) { - return void 0 === t[n] && (t[n] = e(n)), t[n]; + +function memoize$2(fn) { + var cache = Object.create(null); + return function (arg) { + if (cache[arg] === undefined) cache[arg] = fn(arg); + return cache[arg]; }; } -var He, - $e = - /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, - Be = _e(function (e) { + +// eslint-disable-next-line no-undef +var reactPropsRegex = + /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 + +var isPropValid = /* #__PURE__ */ memoize$2( + function (prop) { return ( - $e.test(e) || (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91) + reactPropsRegex.test(prop) || + (prop.charCodeAt(0) === 111 && + /* o */ + prop.charCodeAt(1) === 110 && + /* n */ + prop.charCodeAt(2) < 91) ); - }), - We = { exports: {} }, - Ve = {}; -We.exports = (function () { - if (He) return Ve; - He = 1; - var e = 'function' == typeof Symbol && Symbol.for, - t = e ? Symbol.for('react.element') : 60103, - n = e ? Symbol.for('react.portal') : 60106, - r = e ? Symbol.for('react.fragment') : 60107, - o = e ? Symbol.for('react.strict_mode') : 60108, - a = e ? Symbol.for('react.profiler') : 60114, - i = e ? Symbol.for('react.provider') : 60109, - s = e ? Symbol.for('react.context') : 60110, - l = e ? Symbol.for('react.async_mode') : 60111, - c = e ? Symbol.for('react.concurrent_mode') : 60111, - u = e ? Symbol.for('react.forward_ref') : 60112, - d = e ? Symbol.for('react.suspense') : 60113, - p = e ? Symbol.for('react.suspense_list') : 60120, - f = e ? Symbol.for('react.memo') : 60115, - m = e ? Symbol.for('react.lazy') : 60116, - h = e ? Symbol.for('react.block') : 60121, - g = e ? Symbol.for('react.fundamental') : 60117, - v = e ? Symbol.for('react.responder') : 60118, - b = e ? Symbol.for('react.scope') : 60119; - function y(e) { - if ('object' == typeof e && null !== e) { - var p = e.$$typeof; - switch (p) { - case t: - switch ((e = e.type)) { + } + /* Z+1 */ +); + +var reactIs$1 = { exports: {} }; + +var reactIs_production_min = {}; + +/** @license React v16.13.1 + * react-is.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 hasRequiredReactIs_production_min; + +function requireReactIs_production_min() { + if (hasRequiredReactIs_production_min) return reactIs_production_min; + hasRequiredReactIs_production_min = 1; + var b = 'function' === typeof Symbol && Symbol.for, + c = b ? Symbol.for('react.element') : 60103, + d = b ? Symbol.for('react.portal') : 60106, + e = b ? Symbol.for('react.fragment') : 60107, + f = b ? Symbol.for('react.strict_mode') : 60108, + g = b ? Symbol.for('react.profiler') : 60114, + h = b ? Symbol.for('react.provider') : 60109, + k = b ? Symbol.for('react.context') : 60110, + l = b ? Symbol.for('react.async_mode') : 60111, + m = b ? Symbol.for('react.concurrent_mode') : 60111, + n = b ? Symbol.for('react.forward_ref') : 60112, + p = b ? Symbol.for('react.suspense') : 60113, + q = b ? Symbol.for('react.suspense_list') : 60120, + r = b ? Symbol.for('react.memo') : 60115, + t = b ? Symbol.for('react.lazy') : 60116, + v = b ? Symbol.for('react.block') : 60121, + w = b ? Symbol.for('react.fundamental') : 60117, + x = b ? Symbol.for('react.responder') : 60118, + y = b ? Symbol.for('react.scope') : 60119; + function z(a) { + if ('object' === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (((a = a.type), a)) { case l: - case c: - case r: - case a: - case o: - case d: - return e; + case m: + case e: + case g: + case f: + case p: + return a; default: - switch ((e = e && e.$$typeof)) { - case s: - case u: - case m: - case f: - case i: - return e; + switch (((a = a && a.$$typeof), a)) { + case k: + case n: + case t: + case r: + case h: + return a; default: - return p; + return u; } } - case n: - return p; + case d: + return u; } } } - function w(e) { - return y(e) === c; + function A(a) { + return z(a) === m; } - return ( - (Ve.AsyncMode = l), - (Ve.ConcurrentMode = c), - (Ve.ContextConsumer = s), - (Ve.ContextProvider = i), - (Ve.Element = t), - (Ve.ForwardRef = u), - (Ve.Fragment = r), - (Ve.Lazy = m), - (Ve.Memo = f), - (Ve.Portal = n), - (Ve.Profiler = a), - (Ve.StrictMode = o), - (Ve.Suspense = d), - (Ve.isAsyncMode = function (e) { - return w(e) || y(e) === l; - }), - (Ve.isConcurrentMode = w), - (Ve.isContextConsumer = function (e) { - return y(e) === s; - }), - (Ve.isContextProvider = function (e) { - return y(e) === i; - }), - (Ve.isElement = function (e) { - return 'object' == typeof e && null !== e && e.$$typeof === t; - }), - (Ve.isForwardRef = function (e) { - return y(e) === u; - }), - (Ve.isFragment = function (e) { - return y(e) === r; - }), - (Ve.isLazy = function (e) { - return y(e) === m; - }), - (Ve.isMemo = function (e) { - return y(e) === f; - }), - (Ve.isPortal = function (e) { - return y(e) === n; - }), - (Ve.isProfiler = function (e) { - return y(e) === a; - }), - (Ve.isStrictMode = function (e) { - return y(e) === o; - }), - (Ve.isSuspense = function (e) { - return y(e) === d; - }), - (Ve.isValidElementType = function (e) { - return ( - 'string' == typeof e || - 'function' == typeof e || - e === r || - e === c || - e === a || - e === o || - e === d || - e === p || - ('object' == typeof e && - null !== e && - (e.$$typeof === m || - e.$$typeof === f || - e.$$typeof === i || - e.$$typeof === s || - e.$$typeof === u || - e.$$typeof === g || - e.$$typeof === v || - e.$$typeof === b || - e.$$typeof === h)) - ); - }), - (Ve.typeOf = y), - Ve - ); -})(); -var Ue = We.exports, - qe = { - childContextTypes: !0, - contextType: !0, - contextTypes: !0, - defaultProps: !0, - displayName: !0, - getDefaultProps: !0, - getDerivedStateFromError: !0, - getDerivedStateFromProps: !0, - mixins: !0, - propTypes: !0, - type: !0, - }, - Ye = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, - Ke = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, - Ge = {}; -function Qe(e) { - return Ue.isMemo(e) ? Ke : Ge[e.$$typeof] || qe; -} -(Ge[Ue.ForwardRef] = { - $$typeof: !0, - render: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, -}), - (Ge[Ue.Memo] = Ke); -var Xe = Object.defineProperty, - Je = Object.getOwnPropertyNames, - Ze = Object.getOwnPropertySymbols, - et = Object.getOwnPropertyDescriptor, - tt = Object.getPrototypeOf, - nt = Object.prototype; -var rt = function e(t, n, r) { - if ('string' != typeof n) { - if (nt) { - var o = tt(n); - o && o !== nt && e(t, o, r); - } - var a = Je(n); - Ze && (a = a.concat(Ze(n))); - for (var i = Qe(t), s = Qe(n), l = 0; l < a.length; ++l) { - var c = a[l]; - if (!(Ye[c] || (r && r[c]) || (s && s[c]) || (i && i[c]))) { - var u = et(n, c); - try { - Xe(t, c, u); - } catch (e) {} - } + reactIs_production_min.AsyncMode = l; + reactIs_production_min.ConcurrentMode = m; + reactIs_production_min.ContextConsumer = k; + reactIs_production_min.ContextProvider = h; + reactIs_production_min.Element = c; + reactIs_production_min.ForwardRef = n; + reactIs_production_min.Fragment = e; + reactIs_production_min.Lazy = t; + reactIs_production_min.Memo = r; + reactIs_production_min.Portal = d; + reactIs_production_min.Profiler = g; + reactIs_production_min.StrictMode = f; + reactIs_production_min.Suspense = p; + reactIs_production_min.isAsyncMode = function (a) { + return A(a) || z(a) === l; + }; + reactIs_production_min.isConcurrentMode = A; + reactIs_production_min.isContextConsumer = function (a) { + return z(a) === k; + }; + reactIs_production_min.isContextProvider = function (a) { + return z(a) === h; + }; + reactIs_production_min.isElement = function (a) { + return 'object' === typeof a && null !== a && a.$$typeof === c; + }; + reactIs_production_min.isForwardRef = function (a) { + return z(a) === n; + }; + reactIs_production_min.isFragment = function (a) { + return z(a) === e; + }; + reactIs_production_min.isLazy = function (a) { + return z(a) === t; + }; + reactIs_production_min.isMemo = function (a) { + return z(a) === r; + }; + reactIs_production_min.isPortal = function (a) { + return z(a) === d; + }; + reactIs_production_min.isProfiler = function (a) { + return z(a) === g; + }; + reactIs_production_min.isStrictMode = function (a) { + return z(a) === f; + }; + reactIs_production_min.isSuspense = function (a) { + return z(a) === p; + }; + reactIs_production_min.isValidElementType = function (a) { + return ( + 'string' === typeof a || + 'function' === typeof a || + a === e || + a === m || + a === g || + a === f || + a === p || + a === q || + ('object' === typeof a && + null !== a && + (a.$$typeof === t || + a.$$typeof === r || + a.$$typeof === h || + a.$$typeof === k || + a.$$typeof === n || + a.$$typeof === w || + a.$$typeof === x || + a.$$typeof === y || + a.$$typeof === v)) + ); + }; + reactIs_production_min.typeOf = z; + return reactIs_production_min; +} + +{ + reactIs$1.exports = requireReactIs_production_min(); +} + +var reactIsExports = reactIs$1.exports; + +var reactIs = reactIsExports; + +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ +var REACT_STATICS = { + childContextTypes: true, + contextType: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + getDerivedStateFromError: true, + getDerivedStateFromProps: true, + mixins: true, + propTypes: true, + type: true, +}; +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true, +}; +var FORWARD_REF_STATICS = { + $$typeof: true, + render: true, + defaultProps: true, + displayName: true, + propTypes: true, +}; +var MEMO_STATICS = { + $$typeof: true, + compare: true, + defaultProps: true, + displayName: true, + propTypes: true, + type: true, +}; +var TYPE_STATICS = {}; +TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; +TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; + +function getStatics(component) { + // React v16.11 and below + if (reactIs.isMemo(component)) { + return MEMO_STATICS; + } // React v16.12 and above + + return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; +} + +var defineProperty$3 = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; +var getPrototypeOf$1 = Object.getPrototypeOf; +var objectPrototype = Object.prototype; +function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { + // don't hoist over string (html) components + if (objectPrototype) { + var inheritedComponent = getPrototypeOf$1(sourceComponent); + + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); } } - return t; - }, - ot = n(rt); -function at() { - return (at = + + var keys = getOwnPropertyNames(sourceComponent); + + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + var targetStatics = getStatics(targetComponent); + var sourceStatics = getStatics(sourceComponent); + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + + if ( + !KNOWN_STATICS[key] && + !(blacklist && blacklist[key]) && + !(sourceStatics && sourceStatics[key]) && + !(targetStatics && targetStatics[key]) + ) { + var descriptor = getOwnPropertyDescriptor$1(sourceComponent, key); + + try { + // Avoid failures from read-only properties + defineProperty$3(targetComponent, key, descriptor); + } catch (e) {} + } + } + } + + return targetComponent; +} + +var hoistNonReactStatics_cjs = hoistNonReactStatics; + +var f$9 = /*@__PURE__*/ getDefaultExportFromCjs(hoistNonReactStatics_cjs); + +function m$5() { + return (m$5 = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { @@ -11726,36 +13420,36 @@ function at() { return e; }).apply(this, arguments); } -var it = function (e, t) { +var y$4 = function (e, t) { for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]); return n; }, - st = function (e) { + v$1 = function (t) { return ( - null !== e && - 'object' == typeof e && - '[object Object]' === (e.toString ? e.toString() : Object.prototype.toString.call(e)) && - !je.typeOf(e) + null !== t && + 'object' == typeof t && + '[object Object]' === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && + !reactIsExports$1.typeOf(t) ); }, - lt = Object.freeze([]), - ct = Object.freeze({}); -function ut(e) { + g = Object.freeze([]), + S$3 = Object.freeze({}); +function w$5(e) { return 'function' == typeof e; } -function dt(e) { +function E$4(e) { return e.displayName || e.name || 'Component'; } -function pt(e) { +function b$3(e) { return e && 'string' == typeof e.styledComponentId; } -var ft = +var _$3 = ('undefined' != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR)) || 'data-styled', - mt = 'undefined' != typeof window && 'HTMLElement' in window, - ht = Boolean( + A$2 = 'undefined' != typeof window && 'HTMLElement' in window, + C$5 = Boolean( 'boolean' == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : 'undefined' != typeof process && @@ -11764,12 +13458,11 @@ var ft = '' !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? 'false' !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY - : void 0 !== process.env.SC_DISABLE_SPEEDY && - '' !== process.env.SC_DISABLE_SPEEDY && - 'false' !== process.env.SC_DISABLE_SPEEDY && - process.env.SC_DISABLE_SPEEDY) + : void 0 !== process.env.SC_DISABLE_SPEEDY && '' !== process.env.SC_DISABLE_SPEEDY + ? 'false' !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY + : 'production' !== 'production') ); -function gt(e) { +function R$3(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; throw new Error( @@ -11779,7 +13472,7 @@ function gt(e) { (n.length > 0 ? ' Args: ' + n.join(', ') : '') ); } -var vt = (function () { +var D$1 = (function () { function e(e) { (this.groupSizes = new Uint32Array(512)), (this.length = 512), (this.tag = e); } @@ -11792,12 +13485,12 @@ var vt = (function () { (t.insertRules = function (e, t) { if (e >= this.groupSizes.length) { for (var n = this.groupSizes, r = n.length, o = r; e >= o; ) - (o <<= 1) < 0 && gt(16, '' + e); + (o <<= 1) < 0 && R$3(16, '' + e); (this.groupSizes = new Uint32Array(o)), this.groupSizes.set(n), (this.length = o); - for (var a = r; a < o; a++) this.groupSizes[a] = 0; + for (var s = r; s < o; s++) this.groupSizes[s] = 0; } - for (var i = this.indexOfGroup(e + 1), s = 0, l = t.length; s < l; s++) - this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++); + for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) + this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++); }), (t.clearGroup = function (e) { if (e < this.length) { @@ -11811,69 +13504,72 @@ var vt = (function () { (t.getGroup = function (e) { var t = ''; if (e >= this.length || 0 === this.groupSizes[e]) return t; - for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, a = r; a < o; a++) - t += this.tag.getRule(a) + '/*!sc*/\n'; + for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) + t += this.tag.getRule(s) + '/*!sc*/\n'; return t; }), e ); })(), - bt = new Map(), - yt = new Map(), - wt = 1, - xt = function (e) { - if (bt.has(e)) return bt.get(e); - for (; yt.has(wt); ) wt++; - var t = wt++; - return bt.set(e, t), yt.set(t, e), t; + j$3 = new Map(), + T$4 = new Map(), + x$3 = 1, + k$1 = function (e) { + if (j$3.has(e)) return j$3.get(e); + for (; T$4.has(x$3); ) x$3++; + var t = x$3++; + return j$3.set(e, t), T$4.set(t, e), t; }, - kt = function (e) { - return yt.get(e); + V$1 = function (e) { + return T$4.get(e); }, - Et = function (e, t) { - t >= wt && (wt = t + 1), bt.set(e, t), yt.set(t, e); + z = function (e, t) { + t >= x$3 && (x$3 = t + 1), j$3.set(e, t), T$4.set(t, e); }, - St = 'style[' + ft + '][data-styled-version="5.3.11"]', - Ct = new RegExp('^' + ft + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), - Ot = function (e, t, n) { - for (var r, o = n.split(','), a = 0, i = o.length; a < i; a++) - (r = o[a]) && e.registerName(t, r); + B = 'style[' + _$3 + '][data-styled-version="5.3.11"]', + M$3 = new RegExp('^' + _$3 + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), + G$1 = function (e, t, n) { + for (var r, o = n.split(','), s = 0, i = o.length; s < i; s++) + (r = o[s]) && e.registerName(t, r); }, - Pt = function (e, t) { + L$2 = function (e, t) { for ( - var n = (t.textContent || '').split('/*!sc*/\n'), r = [], o = 0, a = n.length; - o < a; + var n = (t.textContent || '').split('/*!sc*/\n'), r = [], o = 0, s = n.length; + o < s; o++ ) { var i = n[o].trim(); if (i) { - var s = i.match(Ct); - if (s) { - var l = 0 | parseInt(s[1], 10), - c = s[2]; - 0 !== l && (Et(c, l), Ot(e, c, s[3]), e.getTag().insertRules(l, r)), (r.length = 0); + var a = i.match(M$3); + if (a) { + var c = 0 | parseInt(a[1], 10), + u = a[2]; + 0 !== c && (z(u, c), G$1(e, u, a[3]), e.getTag().insertRules(c, r)), (r.length = 0); } else r.push(i); } } }, - Tt = function (e) { + F$2 = function () { + return 'undefined' != typeof __webpack_nonce__ ? __webpack_nonce__ : null; + }, + Y = function (e) { var t = document.head, n = e || t, r = document.createElement('style'), o = (function (e) { for (var t = e.childNodes, n = t.length; n >= 0; n--) { var r = t[n]; - if (r && 1 === r.nodeType && r.hasAttribute(ft)) return r; + if (r && 1 === r.nodeType && r.hasAttribute(_$3)) return r; } })(n), - a = void 0 !== o ? o.nextSibling : null; - r.setAttribute(ft, 'active'), r.setAttribute('data-styled-version', '5.3.11'); - var i = 'undefined' != typeof __webpack_nonce__ ? __webpack_nonce__ : null; - return i && r.setAttribute('nonce', i), n.insertBefore(r, a), r; + s = void 0 !== o ? o.nextSibling : null; + r.setAttribute(_$3, 'active'), r.setAttribute('data-styled-version', '5.3.11'); + var i = F$2(); + return i && r.setAttribute('nonce', i), n.insertBefore(r, s), r; }, - It = (function () { + q = (function () { function e(e) { - var t = (this.element = Tt(e)); + var t = (this.element = Y(e)); t.appendChild(document.createTextNode('')), (this.sheet = (function (e) { if (e.sheet) return e.sheet; @@ -11881,7 +13577,7 @@ var vt = (function () { var o = t[n]; if (o.ownerNode === e) return o; } - gt(17); + R$3(17); })(t)), (this.length = 0); } @@ -11904,9 +13600,9 @@ var vt = (function () { e ); })(), - Nt = (function () { + H$3 = (function () { function e(e) { - var t = (this.element = Tt(e)); + var t = (this.element = Y(e)); (this.nodes = t.childNodes), (this.length = 0); } var t = e.prototype; @@ -11928,7 +13624,7 @@ var vt = (function () { e ); })(), - Mt = (function () { + $$2 = (function () { function e(e) { (this.rules = []), (this.length = 0); } @@ -11946,38 +13642,38 @@ var vt = (function () { e ); })(), - Lt = mt, - Rt = { isServer: !mt, useCSSOMInjection: !ht }, - At = (function () { + W$1 = A$2, + U$5 = { isServer: !A$2, useCSSOMInjection: !C$5 }, + J$1 = (function () { function e(e, t, n) { - void 0 === e && (e = ct), + void 0 === e && (e = S$3), void 0 === t && (t = {}), - (this.options = at({}, Rt, {}, e)), + (this.options = m$5({}, U$5, {}, e)), (this.gs = t), (this.names = new Map(n)), (this.server = !!e.isServer), !this.server && - mt && - Lt && - ((Lt = !1), + A$2 && + W$1 && + ((W$1 = !1), (function (e) { - for (var t = document.querySelectorAll(St), n = 0, r = t.length; n < r; n++) { + for (var t = document.querySelectorAll(B), n = 0, r = t.length; n < r; n++) { var o = t[n]; o && - 'active' !== o.getAttribute(ft) && - (Pt(e, o), o.parentNode && o.parentNode.removeChild(o)); + 'active' !== o.getAttribute(_$3) && + (L$2(e, o), o.parentNode && o.parentNode.removeChild(o)); } })(this)); } e.registerId = function (e) { - return xt(e); + return k$1(e); }; var t = e.prototype; return ( (t.reconstructWithOptions = function (t, n) { return ( void 0 === n && (n = !0), - new e(at({}, this.options, {}, t), this.gs, (n && this.names) || void 0) + new e(m$5({}, this.options, {}, t), this.gs, (n && this.names) || void 0) ); }), (t.allocateGSInstance = function (e) { @@ -11990,8 +13686,8 @@ var vt = (function () { ((n = (t = this.options).isServer), (r = t.useCSSOMInjection), (o = t.target), - (e = n ? new Mt(o) : r ? new It(o) : new Nt(o)), - new vt(e))) + (e = n ? new $$2(o) : r ? new q(o) : new H$3(o)), + new D$1(e))) ); var e, t, n, r, o; }), @@ -11999,20 +13695,20 @@ var vt = (function () { return this.names.has(e) && this.names.get(e).has(t); }), (t.registerName = function (e, t) { - if ((xt(e), this.names.has(e))) this.names.get(e).add(t); + if ((k$1(e), this.names.has(e))) this.names.get(e).add(t); else { var n = new Set(); n.add(t), this.names.set(e, n); } }), (t.insertRules = function (e, t, n) { - this.registerName(e, t), this.getTag().insertRules(xt(e), n); + this.registerName(e, t), this.getTag().insertRules(k$1(e), n); }), (t.clearNames = function (e) { this.names.has(e) && this.names.get(e).clear(); }), (t.clearRules = function (e) { - this.getTag().clearGroup(xt(e)), this.clearNames(e); + this.getTag().clearGroup(k$1(e)), this.clearNames(e); }), (t.clearTag = function () { this.tag = void 0; @@ -12020,18 +13716,18 @@ var vt = (function () { (t.toString = function () { return (function (e) { for (var t = e.getTag(), n = t.length, r = '', o = 0; o < n; o++) { - var a = kt(o); - if (void 0 !== a) { - var i = e.names.get(a), - s = t.getGroup(o); - if (i && s && i.size) { - var l = ft + '.g' + o + '[id="' + a + '"]', - c = ''; + var s = V$1(o); + if (void 0 !== s) { + var i = e.names.get(s), + a = t.getGroup(o); + if (i && a && i.size) { + var c = _$3 + '.g' + o + '[id="' + s + '"]', + u = ''; void 0 !== i && i.forEach(function (e) { - e.length > 0 && (c += e + ','); + e.length > 0 && (u += e + ','); }), - (r += '' + s + l + '{content:"' + c + '"}/*!sc*/\n'); + (r += '' + a + c + '{content:"' + u + '"}/*!sc*/\n'); } } } @@ -12041,41 +13737,40 @@ var vt = (function () { e ); })(), - Dt = /(a)(d)/gi, - jt = function (e) { + X$2 = /(a)(d)/gi, + Z$1 = function (e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; -function zt(e) { +function K$2(e) { var t, n = ''; - for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = jt(t % 52) + n; - return (jt(t % 52) + n).replace(Dt, '$1-$2'); + for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = Z$1(t % 52) + n; + return (Z$1(t % 52) + n).replace(X$2, '$1-$2'); } -var Ft = function (e, t) { +var Q$1 = function (e, t) { for (var n = t.length; n; ) e = (33 * e) ^ t.charCodeAt(--n); return e; }, - _t = function (e) { - return Ft(5381, e); + ee$1 = function (e) { + return Q$1(5381, e); }; -var Ht = _t('5.3.11'), - $t = (function () { +function te$2(e) { + for (var t = 0; t < e.length; t += 1) { + var n = e[t]; + if (w$5(n) && !b$3(n)) return !1; + } + return !0; +} +var ne = ee$1('5.3.11'), + re$2 = (function () { function e(e, t, n) { (this.rules = e), (this.staticRulesId = ''), - (this.isStatic = - (void 0 === n || n.isStatic) && - (function (e) { - for (var t = 0; t < e.length; t += 1) { - var n = e[t]; - if (ut(n) && !pt(n)) return !1; - } - return !0; - })(e)), + (this.isStatic = (void 0 === n || n.isStatic) && te$2(e)), (this.componentId = t), - (this.baseHash = Ft(Ht, t)), + (this.baseHash = Q$1(ne, t)), (this.baseStyle = n), - At.registerId(t); + J$1.registerId(t); } return ( (e.prototype.generateAndInjectStyles = function (e, t, n) { @@ -12088,35 +13783,35 @@ var Ht = _t('5.3.11'), if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId); else { - var a = tn(this.rules, e, t, n).join(''), - i = zt(Ft(this.baseHash, a) >>> 0); + var s = be(this.rules, e, t, n).join(''), + i = K$2(Q$1(this.baseHash, s) >>> 0); if (!t.hasNameForId(r, i)) { - var s = n(a, '.' + i, void 0, r); - t.insertRules(r, i, s); + var a = n(s, '.' + i, void 0, r); + t.insertRules(r, i, a); } o.push(i), (this.staticRulesId = i); } else { for ( - var l = this.rules.length, c = Ft(this.baseHash, n.hash), u = '', d = 0; - d < l; + var c = this.rules.length, u = Q$1(this.baseHash, n.hash), l = '', d = 0; + d < c; d++ ) { - var p = this.rules[d]; - if ('string' == typeof p) u += p; - else if (p) { - var f = tn(p, e, t, n), - m = Array.isArray(f) ? f.join('') : f; - (c = Ft(c, m + d)), (u += m); + var h = this.rules[d]; + if ('string' == typeof h) l += h; + else if (h) { + var p = be(h, e, t, n), + f = Array.isArray(p) ? p.join('') : p; + (u = Q$1(u, f + d)), (l += f); } } - if (u) { - var h = zt(c >>> 0); - if (!t.hasNameForId(r, h)) { - var g = n(u, '.' + h, void 0, r); - t.insertRules(r, h, g); + if (l) { + var m = K$2(u >>> 0); + if (!t.hasNameForId(r, m)) { + var y = n(l, '.' + m, void 0, r); + t.insertRules(r, m, y); } - o.push(h); + o.push(m); } } return o.join(' '); @@ -12124,104 +13819,111 @@ var Ht = _t('5.3.11'), e ); })(), - Bt = /^\s*\/\/.*$/gm, - Wt = [':', '[', '.', '#']; -var Vt = u.createContext(); -Vt.Consumer; -var Ut = u.createContext(), - qt = (Ut.Consumer, new At()), - Yt = (function (e) { - var t, - n, - r, - o, - a = void 0 === e ? ct : e, - i = a.options, - s = void 0 === i ? ct : i, - l = a.plugins, - c = void 0 === l ? lt : l, - u = new ze(s), - d = [], - p = (function (e) { - function t(t) { - if (t) - try { - e(t + '}'); - } catch (e) {} + oe = /^\s*\/\/.*$/gm, + se = [':', '[', '.', '#']; +function ie(e) { + var t, + n, + r, + o, + s = void 0 === e ? S$3 : e, + i = s.options, + a = void 0 === i ? S$3 : i, + c = s.plugins, + u = void 0 === c ? g : c, + l = new stylis_min(a), + h = [], + p = (function (e) { + function t(t) { + if (t) + try { + e(t + '}'); + } catch (e) {} + } + return function (n, r, o, s, i, a, c, u, l, d) { + switch (n) { + case 1: + if (0 === l && 64 === r.charCodeAt(0)) return e(r + ';'), ''; + break; + case 2: + if (0 === u) return r + '/*|*/'; + break; + case 3: + switch (u) { + case 102: + case 112: + return e(o[0] + r), ''; + default: + return r + (0 === d ? '/*|*/' : ''); + } + case -2: + r.split('/*|*/}').forEach(t); } - return function (n, r, o, a, i, s, l, c, u, d) { - switch (n) { - case 1: - if (0 === u && 64 === r.charCodeAt(0)) return e(r + ';'), ''; - break; - case 2: - if (0 === c) return r + '/*|*/'; - break; - case 3: - switch (c) { - case 102: - case 112: - return e(o[0] + r), ''; - default: - return r + (0 === d ? '/*|*/' : ''); - } - case -2: - r.split('/*|*/}').forEach(t); - } - }; - })(function (e) { - d.push(e); - }), - f = function (e, r, a) { - return (0 === r && -1 !== Wt.indexOf(a[n.length])) || a.match(o) ? e : '.' + t; }; - function m(e, a, i, s) { - void 0 === s && (s = '&'); - var l = e.replace(Bt, ''), - c = a && i ? i + ' ' + a + ' { ' + l + ' }' : l; - return ( - (t = s), - (n = a), - (r = new RegExp('\\' + n + '\\b', 'g')), - (o = new RegExp('(\\' + n + '\\b){2,}')), - u(i || !a ? '' : a, c) - ); - } + })(function (e) { + h.push(e); + }), + f = function (e, r, s) { + return (0 === r && -1 !== se.indexOf(s[n.length])) || s.match(o) ? e : '.' + t; + }; + function m(e, s, i, a) { + void 0 === a && (a = '&'); + var c = e.replace(oe, ''), + u = s && i ? i + ' ' + s + ' { ' + c + ' }' : c; return ( - u.use( - [].concat(c, [ - function (e, t, o) { - 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f)); - }, - p, - function (e) { - if (-2 === e) { - var t = d; - return (d = []), t; - } - }, - ]) - ), - (m.hash = c.length - ? c - .reduce(function (e, t) { - return t.name || gt(15), Ft(e, t.name); - }, 5381) - .toString() - : ''), - m + (t = a), + (n = s), + (r = new RegExp('\\' + n + '\\b', 'g')), + (o = new RegExp('(\\' + n + '\\b){2,}')), + l(i || !s ? '' : s, u) ); - })(); -var Kt = (function () { + } + return ( + l.use( + [].concat(u, [ + function (e, t, o) { + 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f)); + }, + p, + function (e) { + if (-2 === e) { + var t = h; + return (h = []), t; + } + }, + ]) + ), + (m.hash = u.length + ? u + .reduce(function (e, t) { + return t.name || R$3(15), Q$1(e, t.name); + }, 5381) + .toString() + : ''), + m + ); +} +var ae = U$6.createContext(); +ae.Consumer; +var ue$1 = U$6.createContext(), + le = (ue$1.Consumer, new J$1()), + de$1 = ie(); +function he$1() { + return reactExports.useContext(ae) || le; +} +function pe() { + return reactExports.useContext(ue$1) || de$1; +} +var me$1 = (function () { function e(e, t) { var n = this; (this.inject = function (e, t) { - void 0 === t && (t = Yt); + void 0 === t && (t = de$1); var r = n.name + t.hash; e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, '@keyframes')); }), (this.toString = function () { - return gt(12, String(n.name)); + return R$3(12, String(n.name)); }), (this.name = e), (this.id = 'sc-keyframes-' + e), @@ -12229,272 +13931,270 @@ var Kt = (function () { } return ( (e.prototype.getName = function (e) { - return void 0 === e && (e = Yt), this.name + e.hash; + return void 0 === e && (e = de$1), this.name + e.hash; }), e ); })(), - Gt = /([A-Z])/, - Qt = /([A-Z])/g, - Xt = /^ms-/, - Jt = function (e) { + ye$1 = /([A-Z])/, + ve$1 = /([A-Z])/g, + ge$1 = /^ms-/, + Se$1 = function (e) { return '-' + e.toLowerCase(); }; -function Zt(e) { - return Gt.test(e) ? e.replace(Qt, Jt).replace(Xt, '-ms-') : e; +function we$1(e) { + return ye$1.test(e) ? e.replace(ve$1, Se$1).replace(ge$1, '-ms-') : e; } -var en = function (e) { +var Ee = function (e) { return null == e || !1 === e || '' === e; }; -function tn(e, t, n, r) { +function be(e, n, r, o) { if (Array.isArray(e)) { - for (var o, a = [], i = 0, s = e.length; i < s; i += 1) - '' !== (o = tn(e[i], t, n, r)) && (Array.isArray(o) ? a.push.apply(a, o) : a.push(o)); - return a; + for (var s, i = [], a = 0, c = e.length; a < c; a += 1) + '' !== (s = be(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s)); + return i; + } + if (Ee(e)) return ''; + if (b$3(e)) return '.' + e.styledComponentId; + if (w$5(e)) { + if ('function' != typeof (l = e) || (l.prototype && l.prototype.isReactComponent) || !n) + return e; + var u = e(n); + return be(u, n, r, o); } - return en(e) - ? '' - : pt(e) - ? '.' + e.styledComponentId - : ut(e) - ? 'function' != typeof (l = e) || (l.prototype && l.prototype.isReactComponent) || !t - ? e - : tn(e(t), t, n, r) - : e instanceof Kt - ? n - ? (e.inject(n, r), e.getName(r)) + var l; + return e instanceof me$1 + ? r + ? (e.inject(r, o), e.getName(o)) : e - : st(e) + : v$1(e) ? (function e(t, n) { var r, o, - a = []; + s = []; for (var i in t) t.hasOwnProperty(i) && - !en(t[i]) && - ((Array.isArray(t[i]) && t[i].isCss) || ut(t[i]) - ? a.push(Zt(i) + ':', t[i], ';') - : st(t[i]) - ? a.push.apply(a, e(t[i], i)) - : a.push( - Zt(i) + + !Ee(t[i]) && + ((Array.isArray(t[i]) && t[i].isCss) || w$5(t[i]) + ? s.push(we$1(i) + ':', t[i], ';') + : v$1(t[i]) + ? s.push.apply(s, e(t[i], i)) + : s.push( + we$1(i) + ': ' + ((r = i), - (null == (o = t[i]) || 'boolean' == typeof o || '' === o + null == (o = t[i]) || 'boolean' == typeof o || '' === o ? '' - : 'number' != typeof o || 0 === o || r in Fe || r.startsWith('--') + : 'number' != typeof o || 0 === o || r in unitlessKeys || r.startsWith('--') ? String(o).trim() - : o + 'px') + ';') + : o + 'px') + + ';' )); - return n ? [n + ' {'].concat(a, ['}']) : a; + return n ? [n + ' {'].concat(s, ['}']) : s; })(e) : e.toString(); - var l; } -var nn = function (e) { +var _e$1 = function (e) { return Array.isArray(e) && (e.isCss = !0), e; }; -function rn(e) { +function Ne$1(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; - return ut(e) || st(e) - ? nn(tn(it(lt, [e].concat(n)))) + return w$5(e) || v$1(e) + ? _e$1(be(y$4(g, [e].concat(n)))) : 0 === n.length && 1 === e.length && 'string' == typeof e[0] ? e - : nn(tn(it(e, n))); + : _e$1(be(y$4(e, n))); } -var on = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, - an = /(^-|-$)/g; -function sn(e) { - return e.replace(on, '-').replace(an, ''); +var Pe = function (e, t, n) { + return void 0 === n && (n = S$3), (e.theme !== n.theme && e.theme) || t || n.theme; + }, + Oe$1 = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, + Re$1 = /(^-|-$)/g; +function De$2(e) { + return e.replace(Oe$1, '-').replace(Re$1, ''); } -var ln = function (e) { - return zt(_t(e) >>> 0); +var je$1 = function (e) { + return K$2(ee$1(e) >>> 0); }; -function cn(e) { - return 'string' == typeof e && !0; +function Te$1(e) { + return 'string' == typeof e && 'production' === 'production'; } -var un = function (e) { +var xe$1 = function (e) { return 'function' == typeof e || ('object' == typeof e && null !== e && !Array.isArray(e)); }, - dn = function (e) { + ke$1 = function (e) { return '__proto__' !== e && 'constructor' !== e && 'prototype' !== e; }; -function pn(e, t, n) { +function Ve(e, t, n) { var r = e[n]; - un(t) && un(r) ? fn(r, t) : (e[n] = t); + xe$1(t) && xe$1(r) ? ze$1(r, t) : (e[n] = t); } -function fn(e) { +function ze$1(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r]; - for (var o = 0, a = n; o < a.length; o++) { - var i = a[o]; - if (un(i)) for (var s in i) dn(s) && pn(e, i[s], s); + for (var o = 0, s = n; o < s.length; o++) { + var i = s[o]; + if (xe$1(i)) for (var a in i) ke$1(a) && Ve(e, i[a], a); } return e; } -var mn = u.createContext(); -function hn(e) { - var t = c.useContext(mn), - n = c.useMemo( +var Be$1 = U$6.createContext(); +Be$1.Consumer; +function Ge$2(e) { + var t = reactExports.useContext(Be$1), + n = reactExports.useMemo( function () { return (function (e, t) { - return e - ? ut(e) - ? e(t) - : Array.isArray(e) || 'object' != typeof e - ? gt(8) - : t - ? at({}, t, {}, e) - : e - : gt(14); + if (!e) return R$3(14); + if (w$5(e)) { + var n = e(t); + return n; + } + return Array.isArray(e) || 'object' != typeof e ? R$3(8) : t ? m$5({}, t, {}, e) : e; })(e.theme, t); }, [e.theme, t] ); - return e.children ? u.createElement(mn.Provider, { value: n }, e.children) : null; + return e.children ? U$6.createElement(Be$1.Provider, { value: n }, e.children) : null; } -mn.Consumer; -var gn = {}; -function vn(e, t, n) { - var r = pt(e), - o = !cn(e), +var Le$2 = {}; +function Fe$1(e, t, n) { + var o = b$3(e), + i = !Te$1(e), a = t.attrs, - i = void 0 === a ? lt : a, - s = t.componentId, - l = - void 0 === s + c = void 0 === a ? g : a, + l = t.componentId, + d = + void 0 === l ? (function (e, t) { - var n = 'string' != typeof e ? 'sc' : sn(e); - gn[n] = (gn[n] || 0) + 1; - var r = n + '-' + ln('5.3.11' + n + gn[n]); + var n = 'string' != typeof e ? 'sc' : De$2(e); + Le$2[n] = (Le$2[n] || 0) + 1; + var r = n + '-' + je$1('5.3.11' + n + Le$2[n]); return t ? t + '-' + r : r; })(t.displayName, t.parentComponentId) - : s, - d = t.displayName, - p = - void 0 === d + : l, + h = t.displayName, + y = + void 0 === h ? (function (e) { - return cn(e) ? 'styled.' + e : 'Styled(' + dt(e) + ')'; + return Te$1(e) ? 'styled.' + e : 'Styled(' + E$4(e) + ')'; })(e) - : d, - f = - t.displayName && t.componentId ? sn(t.displayName) + '-' + t.componentId : t.componentId || l, - m = r && e.attrs ? Array.prototype.concat(e.attrs, i).filter(Boolean) : i, - h = t.shouldForwardProp; - r && + : h, + v = + t.displayName && t.componentId + ? De$2(t.displayName) + '-' + t.componentId + : t.componentId || d, + _ = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, + N = t.shouldForwardProp; + o && e.shouldForwardProp && - (h = t.shouldForwardProp + (N = t.shouldForwardProp ? function (n, r, o) { return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o); } : e.shouldForwardProp); - var g, - v = new $t(n, f, r ? e.componentStyle : void 0), - b = v.isStatic && 0 === i.length, - y = function (e, t) { + var A, + C = new re$2(n, v, o ? e.componentStyle : void 0), + I = C.isStatic && 0 === c.length, + P = function (e, t) { return (function (e, t, n, r) { var o = e.attrs, - a = e.componentStyle, - i = e.defaultProps, - s = e.foldedComponentIds, + i = e.componentStyle, + a = e.defaultProps, + c = e.foldedComponentIds, l = e.shouldForwardProp, - u = e.styledComponentId, - d = e.target, - p = (function (e, t, n) { - void 0 === e && (e = ct); - var r = at({}, t, { theme: e }), + d = e.styledComponentId, + h = e.target, + f = (function (e, t, n) { + void 0 === e && (e = S$3); + var r = m$5({}, t, { theme: e }), o = {}; return ( n.forEach(function (e) { var t, n, - a, + s, i = e; - for (t in (ut(i) && (i = i(r)), i)) + for (t in (w$5(i) && (i = i(r)), i)) r[t] = o[t] = 'className' === t - ? ((n = o[t]), (a = i[t]), n && a ? n + ' ' + a : n || a) + ? ((n = o[t]), (s = i[t]), n && s ? n + ' ' + s : n || s) : i[t]; }), [r, o] ); - })( - (function (e, t, n) { - return void 0 === n && (n = ct), (e.theme !== n.theme && e.theme) || t || n.theme; - })(t, c.useContext(mn), i) || ct, - t, - o - ), - f = p[0], - m = p[1], - h = (function (e, t, n) { - var r = c.useContext(Vt) || qt, - o = c.useContext(Ut) || Yt; - return t ? e.generateAndInjectStyles(ct, r, o) : e.generateAndInjectStyles(n, r, o); - })(a, r, f), - g = n, - v = m.$as || t.$as || m.as || t.as || d, - b = cn(v), - y = m !== t ? at({}, t, {}, m) : t, - w = {}; - for (var x in y) - '$' !== x[0] && - 'as' !== x && - ('forwardedAs' === x - ? (w.as = y[x]) - : (l ? l(x, Be, v) : !b || Be(x)) && (w[x] = y[x])); + })(Pe(t, reactExports.useContext(Be$1), a) || S$3, t, o), + y = f[0], + v = f[1], + g = (function (e, t, n, r) { + var o = he$1(), + s = pe(), + i = t ? e.generateAndInjectStyles(S$3, o, s) : e.generateAndInjectStyles(n, o, s); + return i; + })(i, r, y), + E = n, + b = v.$as || t.$as || v.as || t.as || h, + _ = Te$1(b), + N = v !== t ? m$5({}, t, {}, v) : t, + A = {}; + for (var C in N) + '$' !== C[0] && + 'as' !== C && + ('forwardedAs' === C + ? (A.as = N[C]) + : (l ? l(C, isPropValid, b) : !_ || isPropValid(C)) && (A[C] = N[C])); return ( - t.style && m.style !== t.style && (w.style = at({}, t.style, {}, m.style)), - (w.className = Array.prototype - .concat(s, u, h !== u ? h : null, t.className, m.className) + t.style && v.style !== t.style && (A.style = m$5({}, t.style, {}, v.style)), + (A.className = Array.prototype + .concat(c, d, g !== d ? g : null, t.className, v.className) .filter(Boolean) .join(' ')), - (w.ref = g), - c.createElement(v, w) + (A.ref = E), + reactExports.createElement(b, A) ); - })(g, e, t, b); + })(A, e, t, I); }; return ( - (y.displayName = p), - ((g = u.forwardRef(y)).attrs = m), - (g.componentStyle = v), - (g.displayName = p), - (g.shouldForwardProp = h), - (g.foldedComponentIds = r + (P.displayName = y), + ((A = U$6.forwardRef(P)).attrs = _), + (A.componentStyle = C), + (A.displayName = y), + (A.shouldForwardProp = N), + (A.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) - : lt), - (g.styledComponentId = f), - (g.target = r ? e.target : e), - (g.withComponent = function (e) { + : g), + (A.styledComponentId = v), + (A.target = o ? e.target : e), + (A.withComponent = function (e) { var r = t.componentId, o = (function (e, t) { if (null == e) return {}; var n, r, o = {}, - a = Object.keys(e); - for (r = 0; r < a.length; r++) (n = a[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); + s = Object.keys(e); + for (r = 0; r < s.length; r++) (n = s[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(t, ['componentId']), - a = r && r + '-' + (cn(e) ? e : sn(dt(e))); - return vn(e, at({}, o, { attrs: m, componentId: a }), n); + s = r && r + '-' + (Te$1(e) ? e : De$2(E$4(e))); + return Fe$1(e, m$5({}, o, { attrs: _, componentId: s }), n); }), - Object.defineProperty(g, 'defaultProps', { + Object.defineProperty(A, 'defaultProps', { get: function () { return this._foldedDefaultProps; }, set: function (t) { - this._foldedDefaultProps = r ? fn({}, e.defaultProps, t) : t; + this._foldedDefaultProps = o ? ze$1({}, e.defaultProps, t) : t; }, }), - Object.defineProperty(g, 'toString', { + Object.defineProperty(A, 'toString', { value: function () { - return '.' + g.styledComponentId; + return '.' + A.styledComponentId; }, }), - o && - ot(g, e, { + i && + f$9(A, e, { attrs: !0, componentStyle: !0, displayName: !0, @@ -12504,33 +14204,27 @@ function vn(e, t, n) { target: !0, withComponent: !0, }), - g + A ); } -var bn = function (e) { - return (function e(t, n, r) { - if ((void 0 === r && (r = ct), !je.isValidElementType(n))) return gt(1, String(n)); - var o = function () { - return t(n, r, rn.apply(void 0, arguments)); +var Ye$2 = function (e) { + return (function e(t, r, o) { + if ((void 0 === o && (o = S$3), !reactIsExports$1.isValidElementType(r))) + return R$3(1, String(r)); + var s = function () { + return t(r, o, Ne$1.apply(void 0, arguments)); }; return ( - (o.withConfig = function (o) { - return e(t, n, at({}, r, {}, o)); + (s.withConfig = function (n) { + return e(t, r, m$5({}, o, {}, n)); }), - (o.attrs = function (o) { - return e(t, n, at({}, r, { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) })); + (s.attrs = function (n) { + return e(t, r, m$5({}, o, { attrs: Array.prototype.concat(o.attrs, n).filter(Boolean) })); }), - o + s ); - })(vn, e); + })(Fe$1, e); }; -function yn(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) - n[r - 1] = arguments[r]; - var o = rn.apply(void 0, [e].concat(n)).join(''), - a = ln(o); - return new Kt(a, o); -} [ 'a', 'abbr', @@ -12669,215 +14363,400 @@ function yn(e) { 'textPath', 'tspan', ].forEach(function (e) { - bn[e] = bn(e); + Ye$2[e] = Ye$2(e); }); -var wn, - xn, - kn, - En, - Sn = bn, - Cn = { exports: {} }; -Cn.exports = (function () { - if (En) return kn; - En = 1; - var e = xn ? wn : ((xn = 1), (wn = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED')); - function t() {} - function n() {} - return ( - (n.resetWarningCache = t), - (kn = function () { - function r(t, n, r, o, a, i) { - if (i !== e) { - var s = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types' - ); - throw ((s.name = 'Invariant Violation'), s); - } - } - function o() { - return r; - } - r.isRequired = r; - var a = { - array: r, - bigint: r, - bool: r, - func: r, - number: r, - object: r, - string: r, - symbol: r, - any: r, - arrayOf: o, - element: r, - elementType: r, - instanceOf: o, - node: r, - objectOf: o, - oneOf: o, - oneOfType: o, - shape: o, - exact: o, - checkPropTypes: n, - resetWarningCache: t, - }; - return (a.PropTypes = a), a; - }), - kn - ); -})()(); -var On = Cn.exports, - Pn = n(On); -const Tn = { - text: !0, - search: !0, - url: !0, - tel: !0, - email: !0, - password: !0, - number: !0, - date: !0, - month: !0, - week: !0, - time: !0, - datetime: !0, - 'datetime-local': !0, -}; -function In(e) { - let { - scope: t, - relativeDocument: n, - className: r = 'garden-focus-visible', - dataAttribute: o = 'data-garden-focus-visible', - } = void 0 === e ? {} : e; - if (!t) throw new Error('Error: the useFocusVisible() hook requires a "scope" property'); - const a = c.useRef(!1), - i = c.useRef(!1), - s = c.useRef(); - c.useEffect(() => { - let e = n; - e || (e = document); - const l = (e) => - !!( - e && - e !== t.current && - 'HTML' !== e.nodeName && - 'BODY' !== e.nodeName && - 'classList' in e && - 'contains' in e.classList - ), - c = (e) => !(!e || (!e.classList.contains(r) && !e.hasAttribute(o))), - u = (e) => { - c(e) || (e && e.classList.add(r), e && e.setAttribute(o, 'true')); - }, - d = (t) => { - t.metaKey || - t.altKey || - t.ctrlKey || - (l(e.activeElement) && u(e.activeElement), (a.current = !0)); - }, - p = () => { - a.current = !1; - }, - f = (e) => { - l(e.target) && - (a.current || - ((e) => { - const t = e.type, - n = e.tagName; - return ( - !('INPUT' !== n || !Tn[t] || e.readOnly) || - ('TEXTAREA' === n && !e.readOnly) || - !!e.isContentEditable - ); - })(e.target)) && - u(e.target); - }, - m = (e) => { - var t; - if (l(e.target) && c(e.target)) { - (i.current = !0), clearTimeout(s.current); - const n = setTimeout(() => { - (i.current = !1), clearTimeout(s.current); - }, 100); - (s.current = Number(n)), (t = e.target).classList.remove(r), t.removeAttribute(o); - } - }, - h = (e) => { - const t = e.target.nodeName; - (t && 'html' === t.toLowerCase()) || ((a.current = !1), g()); - }, - g = () => { - e.removeEventListener('mousemove', h), - e.removeEventListener('mousedown', h), - e.removeEventListener('mouseup', h), - e.removeEventListener('pointermove', h), - e.removeEventListener('pointerdown', h), - e.removeEventListener('pointerup', h), - e.removeEventListener('touchmove', h), - e.removeEventListener('touchstart', h), - e.removeEventListener('touchend', h); - }, - v = () => { - 'hidden' === e.visibilityState && i.current && (a.current = !0); - }, - b = t.current; - if (e && b) - return ( - e.addEventListener('keydown', d, !0), - e.addEventListener('mousedown', p, !0), - e.addEventListener('pointerdown', p, !0), - e.addEventListener('touchstart', p, !0), - e.addEventListener('visibilitychange', v, !0), - e.addEventListener('mousemove', h), - e.addEventListener('mousedown', h), - e.addEventListener('mouseup', h), - e.addEventListener('pointermove', h), - e.addEventListener('pointerdown', h), - e.addEventListener('pointerup', h), - e.addEventListener('touchmove', h), - e.addEventListener('touchstart', h), - e.addEventListener('touchend', h), - b && b.addEventListener('focus', f, !0), - b && b.addEventListener('blur', m, !0), - () => { - e.removeEventListener('keydown', d), - e.removeEventListener('mousedown', p), - e.removeEventListener('pointerdown', p), - e.removeEventListener('touchstart', p), - e.removeEventListener('visibilityChange', v), - g(), - b && b.removeEventListener('focus', f), - b && b.removeEventListener('blur', m), - clearTimeout(s.current); - } +function $e$1(e) { + for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) + n[r - 1] = arguments[r]; + var o = Ne$1.apply(void 0, [e].concat(n)).join(''), + s = je$1(o); + return new me$1(s, o); +} +var styled = Ye$2; + +var propTypes = { exports: {} }; + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +var ReactPropTypesSecret_1; +var hasRequiredReactPropTypesSecret; + +function requireReactPropTypesSecret() { + if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1; + hasRequiredReactPropTypesSecret = 1; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + ReactPropTypesSecret_1 = ReactPropTypesSecret; + return ReactPropTypesSecret_1; +} + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +var factoryWithThrowingShims; +var hasRequiredFactoryWithThrowingShims; + +function requireFactoryWithThrowingShims() { + if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims; + hasRequiredFactoryWithThrowingShims = 1; + + var ReactPropTypesSecret = requireReactPropTypesSecret(); + + function emptyFunction() {} + function emptyFunctionWithReset() {} + emptyFunctionWithReset.resetWarningCache = emptyFunction; + + factoryWithThrowingShims = function () { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' ); - }, [n, t, r, o]); -} -Pn.func, Pn.func, Pn.object, Pn.string, Pn.string; -var Nn = - 'undefined' != typeof window && window.document && window.document.createElement - ? c.useLayoutEffect - : c.useEffect, - Mn = !1, - Ln = 0; -function Rn() { - return ++Ln; -} -var An = d['useId'.toString()]; -function Dn() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return function (e) { - for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) - r[o - 1] = arguments[o]; - return t.some((t) => (t && t(e, ...r), e && e.defaultPrevented)); - }; -} -function jn() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - for (const e of t) if (void 0 !== e) return e; -} -const zn = { + err.name = 'Invariant Violation'; + throw err; + } + shim.isRequired = shim; + function getShim() { + return shim; + } // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bigint: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction, + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + return factoryWithThrowingShims; +} + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +{ + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + propTypes.exports = requireFactoryWithThrowingShims()(); +} + +var propTypesExports = propTypes.exports; +var PropTypes = /*@__PURE__*/ getDefaultExportFromCjs(propTypesExports); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const INPUT_TYPES_WHITE_LIST = { + text: true, + search: true, + url: true, + tel: true, + email: true, + password: true, + number: true, + date: true, + month: true, + week: true, + time: true, + datetime: true, + 'datetime-local': true, +}; +function useFocusVisible(_temp) { + let { + scope, + relativeDocument, + className = 'garden-focus-visible', + dataAttribute = 'data-garden-focus-visible', + } = _temp === void 0 ? {} : _temp; + if (!scope) { + throw new Error('Error: the useFocusVisible() hook requires a "scope" property'); + } + const hadKeyboardEvent = reactExports.useRef(false); + const hadFocusVisibleRecently = reactExports.useRef(false); + const hadFocusVisibleRecentlyTimeout = reactExports.useRef(); + reactExports.useEffect(() => { + let environment = relativeDocument; + if (!environment) { + environment = document; + } + const isValidFocusTarget = (el) => { + if ( + el && + el !== scope.current && + el.nodeName !== 'HTML' && + el.nodeName !== 'BODY' && + 'classList' in el && + 'contains' in el.classList + ) { + return true; + } + return false; + }; + const focusTriggersKeyboardModality = (el) => { + const type = el.type; + const tagName = el.tagName; + if (tagName === 'INPUT' && INPUT_TYPES_WHITE_LIST[type] && !el.readOnly) { + return true; + } + if (tagName === 'TEXTAREA' && !el.readOnly) { + return true; + } + if (el.isContentEditable) { + return true; + } + return false; + }; + const isFocused = (el) => { + if (el && (el.classList.contains(className) || el.hasAttribute(dataAttribute))) { + return true; + } + return false; + }; + const addFocusVisibleClass = (el) => { + if (isFocused(el)) { + return; + } + el && el.classList.add(className); + el && el.setAttribute(dataAttribute, 'true'); + }; + const removeFocusVisibleClass = (el) => { + el.classList.remove(className); + el.removeAttribute(dataAttribute); + }; + const onKeyDown = (e) => { + if (e.metaKey || e.altKey || e.ctrlKey) { + return; + } + if (isValidFocusTarget(environment.activeElement)) { + addFocusVisibleClass(environment.activeElement); + } + hadKeyboardEvent.current = true; + }; + const onPointerDown = () => { + hadKeyboardEvent.current = false; + }; + const onFocus = (e) => { + if (!isValidFocusTarget(e.target)) { + return; + } + if (hadKeyboardEvent.current || focusTriggersKeyboardModality(e.target)) { + addFocusVisibleClass(e.target); + } + }; + const onBlur = (e) => { + if (!isValidFocusTarget(e.target)) { + return; + } + if (isFocused(e.target)) { + hadFocusVisibleRecently.current = true; + clearTimeout(hadFocusVisibleRecentlyTimeout.current); + const timeoutId = setTimeout(() => { + hadFocusVisibleRecently.current = false; + clearTimeout(hadFocusVisibleRecentlyTimeout.current); + }, 100); + hadFocusVisibleRecentlyTimeout.current = Number(timeoutId); + removeFocusVisibleClass(e.target); + } + }; + const onInitialPointerMove = (e) => { + const nodeName = e.target.nodeName; + if (nodeName && nodeName.toLowerCase() === 'html') { + return; + } + hadKeyboardEvent.current = false; + removeInitialPointerMoveListeners(); + }; + const addInitialPointerMoveListeners = () => { + environment.addEventListener('mousemove', onInitialPointerMove); + environment.addEventListener('mousedown', onInitialPointerMove); + environment.addEventListener('mouseup', onInitialPointerMove); + environment.addEventListener('pointermove', onInitialPointerMove); + environment.addEventListener('pointerdown', onInitialPointerMove); + environment.addEventListener('pointerup', onInitialPointerMove); + environment.addEventListener('touchmove', onInitialPointerMove); + environment.addEventListener('touchstart', onInitialPointerMove); + environment.addEventListener('touchend', onInitialPointerMove); + }; + const removeInitialPointerMoveListeners = () => { + environment.removeEventListener('mousemove', onInitialPointerMove); + environment.removeEventListener('mousedown', onInitialPointerMove); + environment.removeEventListener('mouseup', onInitialPointerMove); + environment.removeEventListener('pointermove', onInitialPointerMove); + environment.removeEventListener('pointerdown', onInitialPointerMove); + environment.removeEventListener('pointerup', onInitialPointerMove); + environment.removeEventListener('touchmove', onInitialPointerMove); + environment.removeEventListener('touchstart', onInitialPointerMove); + environment.removeEventListener('touchend', onInitialPointerMove); + }; + const onVisibilityChange = () => { + if (environment.visibilityState === 'hidden') { + if (hadFocusVisibleRecently.current) { + hadKeyboardEvent.current = true; + } + } + }; + const currentScope = scope.current; + if (!environment || !currentScope) { + return; + } + environment.addEventListener('keydown', onKeyDown, true); + environment.addEventListener('mousedown', onPointerDown, true); + environment.addEventListener('pointerdown', onPointerDown, true); + environment.addEventListener('touchstart', onPointerDown, true); + environment.addEventListener('visibilitychange', onVisibilityChange, true); + addInitialPointerMoveListeners(); + currentScope && currentScope.addEventListener('focus', onFocus, true); + currentScope && currentScope.addEventListener('blur', onBlur, true); + return () => { + environment.removeEventListener('keydown', onKeyDown); + environment.removeEventListener('mousedown', onPointerDown); + environment.removeEventListener('pointerdown', onPointerDown); + environment.removeEventListener('touchstart', onPointerDown); + environment.removeEventListener('visibilityChange', onVisibilityChange); + removeInitialPointerMoveListeners(); + currentScope && currentScope.removeEventListener('focus', onFocus); + currentScope && currentScope.removeEventListener('blur', onBlur); + clearTimeout(hadFocusVisibleRecentlyTimeout.current); + }; + }, [relativeDocument, scope, className, dataAttribute]); +} +({ + children: PropTypes.func, + render: PropTypes.func, + relativeDocument: PropTypes.object, + className: PropTypes.string, + dataAttribute: PropTypes.string, +}); + +/** + * @reach/utils v0.18.0 + * + * Copyright (c) 2018-2022, React Training LLC + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */ + +// src/can-use-dom.ts +function canUseDOM$1() { + return !!(typeof window !== 'undefined' && window.document && window.document.createElement); +} +var useIsomorphicLayoutEffect$1 = canUseDOM$1() + ? reactExports.useLayoutEffect + : reactExports.useEffect; + +var serverHandoffComplete = false; +var id = 0; +function genId() { + return ++id; +} +var maybeReactUseId = t$5['useId'.toString()]; +function useId$1(providedId) { + if (maybeReactUseId !== void 0) { + let generatedId = maybeReactUseId(); + return providedId ?? generatedId; + } + let initialId = providedId ?? (serverHandoffComplete ? genId() : null); + let [id2, setId] = reactExports.useState(initialId); + useIsomorphicLayoutEffect$1(() => { + if (id2 === null) { + setId(genId()); + } + }, []); + reactExports.useEffect(() => { + if (serverHandoffComplete === false) { + serverHandoffComplete = true; + } + }, []); + return providedId ?? id2 ?? void 0; +} + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +function composeEventHandlers$1() { + for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) { + fns[_key] = arguments[_key]; + } + return function (event) { + for ( + var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; + _key2 < _len2; + _key2++ + ) { + args[_key2 - 1] = arguments[_key2]; + } + return fns.some((fn) => { + fn && fn(event, ...args); + return event && event.defaultPrevented; + }); + }; +} + +function getControlledValue() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + for (const value of values) { + if (value !== undefined) { + return value; + } + } + return undefined; +} + +const KEYS = { ALT: 'Alt', ASTERISK: '*', BACKSPACE: 'Backspace', @@ -12905,612 +14784,1030 @@ const zn = { UNIDENTIFIED: 'Unidentified', UP: 'ArrowUp', }; -let Fn = 0; -const _n = (e) => - (function (e) { - if (void 0 !== An) { - let t = An(); - return e ?? t; - } - let t = e ?? (Mn ? Rn() : null), - [n, r] = c.useState(t); - return ( - Nn(() => { - null === n && r(Rn()); - }, []), - c.useEffect(() => { - !1 === Mn && (Mn = !0); - }, []), - e ?? n ?? void 0 - ); - })(e) || 'id:' + Fn++, - Hn = { - black: '#000', - white: '#fff', - product: { - support: '#00a656', - message: '#37b8af', - explore: '#30aabc', - gather: '#f6c8be', - guide: '#eb4962', - connect: '#ff6224', - chat: '#f79a3e', - talk: '#efc93d', - sell: '#c38f00', - }, - grey: { - 100: '#f8f9f9', - 200: '#e9ebed', - 300: '#d8dcde', - 400: '#c2c8cc', - 500: '#87929d', - 600: '#68737d', - 700: '#49545c', - 800: '#2f3941', - }, - blue: { - 100: '#edf7ff', - 200: '#cee2f2', - 300: '#adcce4', - 400: '#5293c7', - 500: '#337fbd', - 600: '#1f73b7', - 700: '#144a75', - 800: '#0f3554', - }, - red: { - 100: '#fff0f1', - 200: '#f5d5d8', - 300: '#f5b5ba', - 400: '#e35b66', - 500: '#d93f4c', - 600: '#cc3340', - 700: '#8c232c', - 800: '#681219', - }, - yellow: { - 100: '#fff7ed', - 200: '#ffeedb', - 300: '#fed6a8', - 400: '#ffb057', - 500: '#f79a3e', - 600: '#ed8f1c', - 700: '#ad5918', - 800: '#703815', - }, - green: { - 100: '#edf8f4', - 200: '#d1e8df', - 300: '#aecfc2', - 400: '#5eae91', - 500: '#228f67', - 600: '#038153', - 700: '#186146', - 800: '#0b3b29', - }, - kale: { - 100: '#f5fcfc', - 200: '#daeded', - 300: '#bdd9d7', - 400: '#90bbbb', - 500: '#498283', - 600: '#17494d', - 700: '#03363d', - 800: '#012b30', - }, - fuschia: { 400: '#d653c2', 600: '#a81897', M400: '#cf62a8', M600: '#a8458c' }, - pink: { 400: '#ec4d63', 600: '#d42054', M400: '#d57287', M600: '#b23a5d' }, - crimson: { 400: '#e34f32', 600: '#c72a1c', M400: '#cc6c5b', M600: '#b24a3c' }, - orange: { 400: '#de701d', 600: '#bf5000', M400: '#d4772c', M600: '#b35827' }, - lemon: { 400: '#ffd424', 600: '#ffbb10', M400: '#e7a500', M600: '#c38f00' }, - lime: { 400: '#43b324', 600: '#2e8200', M400: '#519e2d', M600: '#47782c' }, - mint: { 400: '#00a656', 600: '#058541', M400: '#299c66', M600: '#2e8057' }, - teal: { 400: '#02a191', 600: '#028079', M400: '#2d9e8f', M600: '#3c7873' }, - azure: { 400: '#3091ec', 600: '#1371d6', M400: '#5f8dcf', M600: '#3a70b2' }, - royal: { 400: '#5d7df5', 600: '#3353e2', M400: '#7986d8', M600: '#4b61c3' }, - purple: { 400: '#b552e2', 600: '#6a27b8', M400: '#b072cc', M600: '#9358b0' }, + +let idCounter$1 = 0; +const useId = (id) => useId$1(id) || `id:${idCounter$1++}`; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ +const PALETTE = { + black: '#000', + white: '#fff', + product: { + support: '#00a656', + message: '#37b8af', + explore: '#30aabc', + gather: '#f6c8be', + guide: '#eb4962', + connect: '#ff6224', + chat: '#f79a3e', + talk: '#efc93d', + sell: '#c38f00', }, - $n = { sm: '2px', md: '4px' }, - Bn = { solid: 'solid' }, - Wn = { sm: '1px', md: '3px' }, - Vn = { sm: `${Wn.sm} ${Bn.solid}`, md: `${Wn.md} ${Bn.solid}` }, - Un = { xs: '0px', sm: '576px', md: '768px', lg: '992px', xl: '1200px' }, - qn = { - background: Hn.white, - foreground: Hn.grey[800], - primaryHue: 'blue', - dangerHue: 'red', - warningHue: 'yellow', - successHue: 'green', - neutralHue: 'grey', - chromeHue: 'kale', + grey: { + 100: '#f8f9f9', + 200: '#e9ebed', + 300: '#d8dcde', + 400: '#c2c8cc', + 500: '#87929d', + 600: '#68737d', + 700: '#49545c', + 800: '#2f3941', }, - Yn = { - mono: ['SFMono-Regular', 'Consolas', '"Liberation Mono"', 'Menlo', 'Courier', 'monospace'].join( - ',' - ), - system: [ - 'system-ui', - '-apple-system', - 'BlinkMacSystemFont', - '"Segoe UI"', - 'Roboto', - 'Oxygen-Sans', - 'Ubuntu', - 'Cantarell', - '"Helvetica Neue"', - 'Arial', - 'sans-serif', - ].join(','), + blue: { + 100: '#edf7ff', + 200: '#cee2f2', + 300: '#adcce4', + 400: '#5293c7', + 500: '#337fbd', + 600: '#1f73b7', + 700: '#144a75', + 800: '#0f3554', }, - Kn = { sm: '16px', md: '20px', lg: '24px', xl: '28px', xxl: '32px', xxxl: '44px' }, - Gn = { ...Hn }; -delete Gn.product; -const Qn = { xs: '1px', sm: '2px', md: '3px' }, - Xn = { - borders: Vn, - borderRadii: $n, - borderStyles: Bn, - borderWidths: Wn, - breakpoints: Un, - colors: { base: 'light', ...qn }, - components: {}, - fonts: Yn, - fontSizes: { - xs: '10px', - sm: '12px', - md: '14px', - lg: '18px', - xl: '22px', - xxl: '26px', - xxxl: '36px', - }, - fontWeights: { - thin: 100, - extralight: 200, - light: 300, - regular: 400, - medium: 500, - semibold: 600, - bold: 700, - extrabold: 800, - black: 900, - }, - iconSizes: { sm: '12px', md: '16px', lg: '26px' }, - lineHeights: Kn, - palette: Gn, - rtl: !1, - shadowWidths: Qn, - shadows: { - xs: (e) => `0 0 0 ${Qn.xs} ${e}`, - sm: (e) => `0 0 0 ${Qn.sm} ${e}`, - md: (e) => `0 0 0 ${Qn.md} ${e}`, - lg: (e, t, n) => `0 ${e} ${t} 0 ${n}`, - }, - space: { - base: 4, - xxs: '4px', - xs: '8px', - sm: '12px', - md: '20px', - lg: '32px', - xl: '40px', - xxl: '48px', - }, + red: { + 100: '#fff0f1', + 200: '#f5d5d8', + 300: '#f5b5ba', + 400: '#e35b66', + 500: '#d93f4c', + 600: '#cc3340', + 700: '#8c232c', + 800: '#681219', }, - Jn = (e) => { - const [t, n] = c.useState(); - return ( - c.useEffect(() => { - e && e.document ? n(e.document) : n(document); - }, [e]), - t - ); + yellow: { + 100: '#fff7ed', + 200: '#ffeedb', + 300: '#fed6a8', + 400: '#ffb057', + 500: '#f79a3e', + 600: '#ed8f1c', + 700: '#ad5918', + 800: '#703815', }, - Zn = (e) => { - let { theme: t, focusVisibleRef: n, children: r, ...o } = e; - const a = c.useRef(null), - i = Jn(t); - return ( - In({ scope: null === n ? u.createRef() : jn(n, a), relativeDocument: i }), - u.createElement( - hn, - Object.assign({ theme: t }, o), - void 0 === n ? u.createElement('div', { ref: a }, r) : r - ) - ); - }; -function er(e, t) { - const n = t.theme && t.theme.components; - if (!n) return; - const r = n[e]; - return 'function' == typeof r ? r(t) : r; + green: { + 100: '#edf8f4', + 200: '#d1e8df', + 300: '#aecfc2', + 400: '#5eae91', + 500: '#228f67', + 600: '#038153', + 700: '#186146', + 800: '#0b3b29', + }, + kale: { + 100: '#f5fcfc', + 200: '#daeded', + 300: '#bdd9d7', + 400: '#90bbbb', + 500: '#498283', + 600: '#17494d', + 700: '#03363d', + 800: '#012b30', + }, + fuschia: { + 400: '#d653c2', + 600: '#a81897', + M400: '#cf62a8', + M600: '#a8458c', + }, + pink: { + 400: '#ec4d63', + 600: '#d42054', + M400: '#d57287', + M600: '#b23a5d', + }, + crimson: { + 400: '#e34f32', + 600: '#c72a1c', + M400: '#cc6c5b', + M600: '#b24a3c', + }, + orange: { + 400: '#de701d', + 600: '#bf5000', + M400: '#d4772c', + M600: '#b35827', + }, + lemon: { + 400: '#ffd424', + 600: '#ffbb10', + M400: '#e7a500', + M600: '#c38f00', + }, + lime: { + 400: '#43b324', + 600: '#2e8200', + M400: '#519e2d', + M600: '#47782c', + }, + mint: { + 400: '#00a656', + 600: '#058541', + M400: '#299c66', + M600: '#2e8057', + }, + teal: { + 400: '#02a191', + 600: '#028079', + M400: '#2d9e8f', + M600: '#3c7873', + }, + azure: { + 400: '#3091ec', + 600: '#1371d6', + M400: '#5f8dcf', + M600: '#3a70b2', + }, + royal: { + 400: '#5d7df5', + 600: '#3353e2', + M400: '#7986d8', + M600: '#4b61c3', + }, + purple: { + 400: '#b552e2', + 600: '#6a27b8', + M400: '#b072cc', + M600: '#9358b0', + }, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const BASE = 4; +const borderRadii = { + sm: `${BASE / 2}px`, + md: `${BASE}px`, +}; +const borderStyles = { + solid: 'solid', +}; +const borderWidths = { + sm: '1px', + md: '3px', +}; +const borders = { + sm: `${borderWidths.sm} ${borderStyles.solid}`, + md: `${borderWidths.md} ${borderStyles.solid}`, +}; +const breakpoints = { + xs: '0px', + sm: `${BASE * 144}px`, + md: `${BASE * 192}px`, + lg: `${BASE * 248}px`, + xl: `${BASE * 300}px`, +}; +const colors = { + background: PALETTE.white, + foreground: PALETTE.grey[800], + primaryHue: 'blue', + dangerHue: 'red', + warningHue: 'yellow', + successHue: 'green', + neutralHue: 'grey', + chromeHue: 'kale', +}; +const fonts = { + mono: ['SFMono-Regular', 'Consolas', '"Liberation Mono"', 'Menlo', 'Courier', 'monospace'].join( + ',' + ), + system: [ + 'system-ui', + '-apple-system', + 'BlinkMacSystemFont', + '"Segoe UI"', + 'Roboto', + 'Oxygen-Sans', + 'Ubuntu', + 'Cantarell', + '"Helvetica Neue"', + 'Arial', + 'sans-serif', + ].join(','), +}; +const fontSizes = { + xs: '10px', + sm: '12px', + md: '14px', + lg: '18px', + xl: '22px', + xxl: '26px', + xxxl: '36px', +}; +const fontWeights = { + thin: 100, + extralight: 200, + light: 300, + regular: 400, + medium: 500, + semibold: 600, + bold: 700, + extrabold: 800, + black: 900, +}; +const iconSizes = { + sm: '12px', + md: '16px', + lg: '26px', +}; +const lineHeights = { + sm: `${BASE * 4}px`, + md: `${BASE * 5}px`, + lg: `${BASE * 6}px`, + xl: `${BASE * 7}px`, + xxl: `${BASE * 8}px`, + xxxl: `${BASE * 11}px`, +}; +const palette = { + ...PALETTE, +}; +delete palette.product; +const shadowWidths = { + xs: '1px', + sm: '2px', + md: '3px', +}; +const shadows = { + xs: (color) => `0 0 0 ${shadowWidths.xs} ${color}`, + sm: (color) => `0 0 0 ${shadowWidths.sm} ${color}`, + md: (color) => `0 0 0 ${shadowWidths.md} ${color}`, + lg: (offsetY, blurRadius, color) => `0 ${offsetY} ${blurRadius} 0 ${color}`, +}; +const space = { + base: BASE, + xxs: `${BASE}px`, + xs: `${BASE * 2}px`, + sm: `${BASE * 3}px`, + md: `${BASE * 5}px`, + lg: `${BASE * 8}px`, + xl: `${BASE * 10}px`, + xxl: `${BASE * 12}px`, +}; +const DEFAULT_THEME = { + borders, + borderRadii, + borderStyles, + borderWidths, + breakpoints, + colors: { + base: 'light', + ...colors, + }, + components: {}, + fonts, + fontSizes, + fontWeights, + iconSizes, + lineHeights, + palette, + rtl: false, + shadowWidths, + shadows, + space, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const useDocument = (theme) => { + const [controlledDocument, setControlledDocument] = reactExports.useState(); + reactExports.useEffect(() => { + if (theme && theme.document) { + setControlledDocument(theme.document); + } else { + setControlledDocument(document); + } + }, [theme]); + return controlledDocument; +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const ThemeProvider = (_ref) => { + let { theme, focusVisibleRef, children, ...other } = _ref; + const scopeRef = reactExports.useRef(null); + const relativeDocument = useDocument(theme); + const controlledScopeRef = + focusVisibleRef === null ? U$6.createRef() : getControlledValue(focusVisibleRef, scopeRef); + useFocusVisible({ + scope: controlledScopeRef, + relativeDocument, + }); + return U$6.createElement( + Ge$2, + Object.assign( + { + theme: theme, + }, + other + ), + focusVisibleRef === undefined + ? U$6.createElement( + 'div', + { + ref: scopeRef, + }, + children + ) + : children + ); +}; +ThemeProvider.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ +function retrieveComponentStyles(componentId, props) { + const components = props.theme && props.theme.components; + if (!components) { + return undefined; + } + const componentStyles = components[componentId]; + if (typeof componentStyles === 'function') { + return componentStyles(props); + } + return componentStyles; } -function tr() { + +function _extends$V() { return ( - (tr = Object.assign + (_extends$V = Object.assign ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); + : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } - return e; + return n; }), - tr.apply(null, arguments) + _extends$V.apply(null, arguments) ); } -function nr(e) { + +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } -function rr(e, t) { + +function _setPrototypeOf(t, e) { return ( - (rr = Object.setPrototypeOf + (_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() - : function (e, t) { - return (e.__proto__ = t), e; + : function (t, e) { + return (t.__proto__ = e), t; }), - rr(e, t) + _setPrototypeOf(t, e) ); } -function or(e, t) { - (e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), rr(e, t); + +function _inheritsLoose(t, o) { + (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o); } -function ar(e) { + +function _getPrototypeOf(t) { return ( - (ar = Object.setPrototypeOf + (_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() - : function (e) { - return e.__proto__ || Object.getPrototypeOf(e); + : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); }), - ar(e) + _getPrototypeOf(t) ); } -function ir() { + +function _isNativeFunction(t) { try { - var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - } catch (e) {} - return (ir = function () { - return !!e; + return -1 !== Function.toString.call(t).indexOf('[native code]'); + } catch (n) { + return 'function' == typeof t; + } +} + +function _isNativeReflectConstruct() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; })(); } -function sr(e) { - var t = 'function' == typeof Map ? new Map() : void 0; + +function _construct(t, e, r) { + if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && _setPrototypeOf(p, r.prototype), p; +} + +function _wrapNativeSuper(t) { + var r = 'function' == typeof Map ? new Map() : void 0; return ( - (sr = function (e) { - if ( - null === e || - !(function (e) { - try { - return -1 !== Function.toString.call(e).indexOf('[native code]'); - } catch (t) { - return 'function' == typeof e; - } - })(e) - ) - return e; - if ('function' != typeof e) + (_wrapNativeSuper = function _wrapNativeSuper(t) { + if (null === t || !_isNativeFunction(t)) return t; + if ('function' != typeof t) throw new TypeError('Super expression must either be null or a function'); - if (void 0 !== t) { - if (t.has(e)) return t.get(e); - t.set(e, n); - } - function n() { - return (function (e, t, n) { - if (ir()) return Reflect.construct.apply(null, arguments); - var r = [null]; - r.push.apply(r, t); - var o = new (e.bind.apply(e, r))(); - return n && rr(o, n.prototype), o; - })(e, arguments, ar(this).constructor); + if (void 0 !== r) { + if (r.has(t)) return r.get(t); + r.set(t, Wrapper); + } + function Wrapper() { + return _construct(t, arguments, _getPrototypeOf(this).constructor); } return ( - (n.prototype = Object.create(e.prototype, { - constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 }, + (Wrapper.prototype = Object.create(t.prototype, { + constructor: { + value: Wrapper, + enumerable: !1, + writable: !0, + configurable: !0, + }, })), - rr(n, e) + _setPrototypeOf(Wrapper, t) ); }), - sr(e) + _wrapNativeSuper(t) ); } -function lr() { - var e; - return (e = arguments.length - 1) < 0 || arguments.length <= e ? void 0 : arguments[e]; -} -Zn.defaultProps = { theme: Xn }; -var cr = { - symbols: { - '*': { - infix: { - symbol: '*', - f: function (e, t) { - return e * t; - }, - notation: 'infix', - precedence: 4, - rightToLeft: 0, - argCount: 2, - }, + +function last() { + var _ref; + return ( + (_ref = arguments.length - 1), + _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref] + ); +} +function negation(a) { + return -a; +} +function addition(a, b) { + return a + b; +} +function subtraction(a, b) { + return a - b; +} +function multiplication(a, b) { + return a * b; +} +function division(a, b) { + return a / b; +} +function max$2() { + return Math.max.apply(Math, arguments); +} +function min$1() { + return Math.min.apply(Math, arguments); +} +function comma() { + return Array.of.apply(Array, arguments); +} +var defaultSymbols = { + symbols: { + '*': { + infix: { symbol: '*', - regSymbol: '\\*', + f: multiplication, + notation: 'infix', + precedence: 4, + rightToLeft: 0, + argCount: 2, }, - '/': { - infix: { - symbol: '/', - f: function (e, t) { - return e / t; - }, - notation: 'infix', - precedence: 4, - rightToLeft: 0, - argCount: 2, - }, + symbol: '*', + regSymbol: '\\*', + }, + '/': { + infix: { symbol: '/', - regSymbol: '/', + f: division, + notation: 'infix', + precedence: 4, + rightToLeft: 0, + argCount: 2, }, - '+': { - infix: { - symbol: '+', - f: function (e, t) { - return e + t; - }, - notation: 'infix', - precedence: 2, - rightToLeft: 0, - argCount: 2, - }, - prefix: { - symbol: '+', - f: lr, - notation: 'prefix', - precedence: 3, - rightToLeft: 0, - argCount: 1, - }, + symbol: '/', + regSymbol: '/', + }, + '+': { + infix: { symbol: '+', - regSymbol: '\\+', + f: addition, + notation: 'infix', + precedence: 2, + rightToLeft: 0, + argCount: 2, }, - '-': { - infix: { - symbol: '-', - f: function (e, t) { - return e - t; - }, - notation: 'infix', - precedence: 2, - rightToLeft: 0, - argCount: 2, - }, - prefix: { - symbol: '-', - f: function (e) { - return -e; - }, - notation: 'prefix', - precedence: 3, - rightToLeft: 0, - argCount: 1, - }, + prefix: { + symbol: '+', + f: last, + notation: 'prefix', + precedence: 3, + rightToLeft: 0, + argCount: 1, + }, + symbol: '+', + regSymbol: '\\+', + }, + '-': { + infix: { + symbol: '-', + f: subtraction, + notation: 'infix', + precedence: 2, + rightToLeft: 0, + argCount: 2, + }, + prefix: { symbol: '-', - regSymbol: '-', + f: negation, + notation: 'prefix', + precedence: 3, + rightToLeft: 0, + argCount: 1, }, - ',': { - infix: { - symbol: ',', - f: function () { - return Array.of.apply(Array, arguments); - }, - notation: 'infix', - precedence: 1, - rightToLeft: 0, - argCount: 2, - }, + symbol: '-', + regSymbol: '-', + }, + ',': { + infix: { symbol: ',', - regSymbol: ',', + f: comma, + notation: 'infix', + precedence: 1, + rightToLeft: 0, + argCount: 2, }, - '(': { - prefix: { - symbol: '(', - f: lr, - notation: 'prefix', - precedence: 0, - rightToLeft: 0, - argCount: 1, - }, + symbol: ',', + regSymbol: ',', + }, + '(': { + prefix: { symbol: '(', - regSymbol: '\\(', + f: last, + notation: 'prefix', + precedence: 0, + rightToLeft: 0, + argCount: 1, }, - ')': { - postfix: { - symbol: ')', - f: void 0, - notation: 'postfix', - precedence: 0, - rightToLeft: 0, - argCount: 1, - }, + symbol: '(', + regSymbol: '\\(', + }, + ')': { + postfix: { symbol: ')', - regSymbol: '\\)', + f: undefined, + notation: 'postfix', + precedence: 0, + rightToLeft: 0, + argCount: 1, }, - min: { - func: { - symbol: 'min', - f: function () { - return Math.min.apply(Math, arguments); - }, - notation: 'func', - precedence: 0, - rightToLeft: 0, - argCount: 1, - }, + symbol: ')', + regSymbol: '\\)', + }, + min: { + func: { symbol: 'min', - regSymbol: 'min\\b', + f: min$1, + notation: 'func', + precedence: 0, + rightToLeft: 0, + argCount: 1, }, - max: { - func: { - symbol: 'max', - f: function () { - return Math.max.apply(Math, arguments); - }, - notation: 'func', - precedence: 0, - rightToLeft: 0, - argCount: 1, - }, + symbol: 'min', + regSymbol: 'min\\b', + }, + max: { + func: { symbol: 'max', - regSymbol: 'max\\b', + f: max$2, + notation: 'func', + precedence: 0, + rightToLeft: 0, + argCount: 1, }, + symbol: 'max', + regSymbol: 'max\\b', }, }, - ur = cr, - dr = (function (e) { - function t(t) { - return nr( - e.call( +}; +var defaultSymbolMap = defaultSymbols; + +/** + * Create an error file out of errors.md for development and a simple web link to the full errors + * in production mode. + * @private + */ +var PolishedError = /*#__PURE__*/ (function (_Error) { + _inheritsLoose(PolishedError, _Error); + function PolishedError(code) { + var _this; + { + _this = + _Error.call( this, 'An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#' + - t + + code + ' for more information.' - ) || this - ); + ) || this; } - return or(t, e), t; - })(sr(Error)), - pr = - /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g; -function fr(e, t) { - var n, - r = e.pop(); - return t.push(r.f.apply(r, (n = []).concat.apply(n, t.splice(-r.argCount)))), r.precedence; -} -function mr(e, t) { - var n, - r = (function (e) { - var t = {}; - return (t.symbols = e ? tr({}, ur.symbols, e.symbols) : tr({}, ur.symbols)), t; - })(t), - o = [r.symbols['('].prefix], - a = [], - i = new RegExp( - '\\d+(?:\\.\\d+)?|' + - Object.keys(r.symbols) - .map(function (e) { - return r.symbols[e]; - }) - .sort(function (e, t) { - return t.symbol.length - e.symbol.length; - }) - .map(function (e) { - return e.regSymbol; - }) - .join('|') + - '|(\\S)', - 'g' - ); - i.lastIndex = 0; - var s = !1; + return _assertThisInitialized(_this); + } + return PolishedError; +})(/*#__PURE__*/ _wrapNativeSuper(Error)); + +var unitRegExp = + /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g; + +// Merges additional math functionality into the defaults. +function mergeSymbolMaps(additionalSymbols) { + var symbolMap = {}; + symbolMap.symbols = additionalSymbols + ? _extends$V({}, defaultSymbolMap.symbols, additionalSymbols.symbols) + : _extends$V({}, defaultSymbolMap.symbols); + return symbolMap; +} +function exec(operators, values) { + var _ref; + var op = operators.pop(); + values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount)))); + return op.precedence; +} +function calculate(expression, additionalSymbols) { + var symbolMap = mergeSymbolMaps(additionalSymbols); + var match; + var operators = [symbolMap.symbols['('].prefix]; + var values = []; + var pattern = new RegExp( // Pattern for numbers + '\\d+(?:\\.\\d+)?|' + + // ...and patterns for individual operators/function names + Object.keys(symbolMap.symbols) + .map(function (key) { + return symbolMap.symbols[key]; + }) + // longer symbols should be listed first + // $FlowFixMe + .sort(function (a, b) { + return b.symbol.length - a.symbol.length; + }) + // $FlowFixMe + .map(function (val) { + return val.regSymbol; + }) + .join('|') + + '|(\\S)', + 'g' + ); + pattern.lastIndex = 0; // Reset regular expression object + + var afterValue = false; do { - var l = (n = i.exec(e)) || [')', void 0], - c = l[0], - u = l[1], - d = r.symbols[c], - p = d && !d.prefix && !d.func, - f = !d || (!d.postfix && !d.infix); - if (u || (s ? f : p)) throw new dr(37, n ? n.index : e.length, e); - if (s) { - var m = d.postfix || d.infix; + match = pattern.exec(expression); + var _ref2 = match || [')', undefined], + token = _ref2[0], + bad = _ref2[1]; + var notNumber = symbolMap.symbols[token]; + var notNewValue = notNumber && !notNumber.prefix && !notNumber.func; + var notAfterValue = !notNumber || (!notNumber.postfix && !notNumber.infix); + + // Check for syntax errors: + if (bad || (afterValue ? notAfterValue : notNewValue)) { + throw new PolishedError(37, match ? match.index : expression.length, expression); + } + if (afterValue) { + // We either have an infix or postfix operator (they should be mutually exclusive) + var curr = notNumber.postfix || notNumber.infix; do { - var h = o[o.length - 1]; - if ((m.precedence - h.precedence || h.rightToLeft) > 0) break; - } while (fr(o, a)); - (s = 'postfix' === m.notation), ')' !== m.symbol && (o.push(m), s && fr(o, a)); - } else if (d) { - if ((o.push(d.prefix || d.func), d.func && (!(n = i.exec(e)) || '(' !== n[0]))) - throw new dr(38, n ? n.index : e.length, e); - } else a.push(+c), (s = !0); - } while (n && o.length); - if (o.length) throw new dr(39, n ? n.index : e.length, e); - if (n) throw new dr(40, n ? n.index : e.length, e); - return a.pop(); -} -function hr(e) { - return e.split('').reverse().join(''); -} -function gr(e, t) { - var n = hr(e), - r = n.match(pr); + var prev = operators[operators.length - 1]; + if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; + // Apply previous operator, since it has precedence over current one + } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function + afterValue = curr.notation === 'postfix'; + if (curr.symbol !== ')') { + operators.push(curr); + // Postfix always has precedence over any operator that follows after it + if (afterValue) exec(operators, values); + } + } else if (notNumber) { + // prefix operator or function + operators.push(notNumber.prefix || notNumber.func); + if (notNumber.func) { + // Require an opening parenthesis + match = pattern.exec(expression); + if (!match || match[0] !== '(') { + throw new PolishedError(38, match ? match.index : expression.length, expression); + } + } + } else { + // number + values.push(+token); + afterValue = true; + } + } while (match && operators.length); + if (operators.length) { + throw new PolishedError(39, match ? match.index : expression.length, expression); + } else if (match) { + throw new PolishedError(40, match ? match.index : expression.length, expression); + } else { + return values.pop(); + } +} +function reverseString(str) { + return str.split('').reverse().join(''); +} + +/** + * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation. + * + *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc). + * + * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values. + * @example + * // Styles as object usage + * const styles = { + * fontSize: math('12rem + 8rem'), + * fontSize: math('(12px + 2px) * 3'), + * fontSize: math('3px^2 + sqrt(4)'), + * } + * + * // styled-components usage + * const div = styled.div` + * fontSize: ${math('12rem + 8rem')}; + * fontSize: ${math('(12px + 2px) * 3')}; + * fontSize: ${math('3px^2 + sqrt(4)')}; + * ` + * + * // CSS as JS Output + * + * div: { + * fontSize: '20rem', + * fontSize: '42px', + * fontSize: '11px', + * } + */ +function math(formula, additionalSymbols) { + var reversedFormula = reverseString(formula); + var formulaMatch = reversedFormula.match(unitRegExp); + + // Check that all units are the same if ( - r && - !r.every(function (e) { - return e === r[0]; + formulaMatch && + !formulaMatch.every(function (unit) { + return unit === formulaMatch[0]; }) - ) - throw new dr(41); - return '' + mr(hr(n.replace(pr, '')), t) + (r ? hr(r[0]) : ''); -} -function vr(e, t) { - return e.substr(-t.length) === t; -} -var br = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -function yr(e) { - return 'string' != typeof e ? e : e.match(br) ? parseFloat(e) : e; -} -var wr = (function (e) { - return function (t, n) { - void 0 === n && (n = '16px'); - var r = t, - o = n; - if ('string' == typeof t) { - if (!vr(t, 'px')) throw new dr(69, e, t); - r = yr(t); - } - if ('string' == typeof n) { - if (!vr(n, 'px')) throw new dr(70, e, n); - o = yr(n); - } - if ('string' == typeof r) throw new dr(71, t, e); - if ('string' == typeof o) throw new dr(72, n, e); - return '' + r / o + e; - }; - })('em'), - xr = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -function kr(e) { - if ('string' != typeof e) return [e, '']; - var t = e.match(xr); - return t ? [parseFloat(e), t[2]] : [e, void 0]; -} -function Er(e) { - return Math.round(255 * e); -} -function Sr(e, t, n) { - return Er(e) + ',' + Er(t) + ',' + Er(n); -} -function Cr(e, t, n, r) { - if ((void 0 === r && (r = Sr), 0 === t)) return r(n, n, n); - var o = (((e % 360) + 360) % 360) / 60, - a = (1 - Math.abs(2 * n - 1)) * t, - i = a * (1 - Math.abs((o % 2) - 1)), - s = 0, - l = 0, - c = 0; - o >= 0 && o < 1 - ? ((s = a), (l = i)) - : o >= 1 && o < 2 - ? ((s = i), (l = a)) - : o >= 2 && o < 3 - ? ((l = a), (c = i)) - : o >= 3 && o < 4 - ? ((l = i), (c = a)) - : o >= 4 && o < 5 - ? ((s = i), (c = a)) - : o >= 5 && o < 6 && ((s = a), (c = i)); - var u = n - a / 2; - return r(s + u, l + u, c + u); -} -var Or = { + ) { + throw new PolishedError(41); + } + var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, '')); + return ( + '' + + calculate(cleanFormula, additionalSymbols) + + (formulaMatch ? reverseString(formulaMatch[0]) : '') + ); +} + +/** + * Check if a string ends with something + * @private + */ +function endsWith(string, suffix) { + return string.substr(-suffix.length) === suffix; +} + +var cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; + +/** + * Returns a given CSS value minus its unit of measure. + * + * @example + * // Styles as object usage + * const styles = { + * '--dimension': stripUnit('100px') + * } + * + * // styled-components usage + * const div = styled.div` + * --dimension: ${stripUnit('100px')}; + * ` + * + * // CSS in JS Output + * + * element { + * '--dimension': 100 + * } + */ +function stripUnit(value) { + if (typeof value !== 'string') return value; + var matchedValue = value.match(cssRegex$1); + return matchedValue ? parseFloat(value) : value; +} + +/** + * Factory function that creates pixel-to-x converters + * @private + */ +var pxtoFactory = function pxtoFactory(to) { + return function (pxval, base) { + if (base === void 0) { + base = '16px'; + } + var newPxval = pxval; + var newBase = base; + if (typeof pxval === 'string') { + if (!endsWith(pxval, 'px')) { + throw new PolishedError(69, to, pxval); + } + newPxval = stripUnit(pxval); + } + if (typeof base === 'string') { + if (!endsWith(base, 'px')) { + throw new PolishedError(70, to, base); + } + newBase = stripUnit(base); + } + if (typeof newPxval === 'string') { + throw new PolishedError(71, pxval, to); + } + if (typeof newBase === 'string') { + throw new PolishedError(72, base, to); + } + return '' + newPxval / newBase + to; + }; +}; +var pixelsto = pxtoFactory; + +/** + * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a + * second argument to the function. + * @function + * @param {string|number} pxval + * @param {string|number} [base='16px'] + * @example + * // Styles as object usage + * const styles = { + * 'height': em('16px') + * } + * + * // styled-components usage + * const div = styled.div` + * height: ${em('16px')} + * ` + * + * // CSS in JS Output + * + * element { + * 'height': '1em' + * } + */ +var em = pixelsto('em'); +var em$1 = em; + +var cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; + +/** + * Returns a given CSS value and its unit as elements of an array. + * + * @example + * // Styles as object usage + * const styles = { + * '--dimension': getValueAndUnit('100px')[0], + * '--unit': getValueAndUnit('100px')[1], + * } + * + * // styled-components usage + * const div = styled.div` + * --dimension: ${getValueAndUnit('100px')[0]}; + * --unit: ${getValueAndUnit('100px')[1]}; + * ` + * + * // CSS in JS Output + * + * element { + * '--dimension': 100, + * '--unit': 'px', + * } + */ +function getValueAndUnit(value) { + if (typeof value !== 'string') return [value, '']; + var matchedValue = value.match(cssRegex); + if (matchedValue) return [parseFloat(value), matchedValue[2]]; + return [value, undefined]; +} + +/** + * CSS to hide content visually but remain accessible to screen readers. + * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121) + * + * @example + * // Styles as object usage + * const styles = { + * ...hideVisually(), + * } + * + * // styled-components usage + * const div = styled.div` + * ${hideVisually()}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'border': '0', + * 'clip': 'rect(0 0 0 0)', + * 'height': '1px', + * 'margin': '-1px', + * 'overflow': 'hidden', + * 'padding': '0', + * 'position': 'absolute', + * 'whiteSpace': 'nowrap', + * 'width': '1px', + * } + */ +function hideVisually() { + return { + border: '0', + clip: 'rect(0 0 0 0)', + height: '1px', + margin: '-1px', + overflow: 'hidden', + padding: '0', + position: 'absolute', + whiteSpace: 'nowrap', + width: '1px', + }; +} + +function colorToInt(color) { + return Math.round(color * 255); +} +function convertToInt(red, green, blue) { + return colorToInt(red) + ',' + colorToInt(green) + ',' + colorToInt(blue); +} +function hslToRgb(hue, saturation, lightness, convert) { + if (convert === void 0) { + convert = convertToInt; + } + if (saturation === 0) { + // achromatic + return convert(lightness, lightness, lightness); + } + + // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV + var huePrime = (((hue % 360) + 360) % 360) / 60; + var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation; + var secondComponent = chroma * (1 - Math.abs((huePrime % 2) - 1)); + var red = 0; + var green = 0; + var blue = 0; + if (huePrime >= 0 && huePrime < 1) { + red = chroma; + green = secondComponent; + } else if (huePrime >= 1 && huePrime < 2) { + red = secondComponent; + green = chroma; + } else if (huePrime >= 2 && huePrime < 3) { + green = chroma; + blue = secondComponent; + } else if (huePrime >= 3 && huePrime < 4) { + green = secondComponent; + blue = chroma; + } else if (huePrime >= 4 && huePrime < 5) { + red = secondComponent; + blue = chroma; + } else if (huePrime >= 5 && huePrime < 6) { + red = chroma; + blue = secondComponent; + } + var lightnessModification = lightness - chroma / 2; + var finalRed = red + lightnessModification; + var finalGreen = green + lightnessModification; + var finalBlue = blue + lightnessModification; + return convert(finalRed, finalGreen, finalBlue); +} + +var namedColorMap = { aliceblue: 'f0f8ff', antiquewhite: 'faebd7', aqua: '00ffff', @@ -13660,6567 +15957,2670 @@ var Or = { yellow: 'ff0', yellowgreen: '9acd32', }; -var Pr = /^#[a-fA-F0-9]{6}$/, - Tr = /^#[a-fA-F0-9]{8}$/, - Ir = /^#[a-fA-F0-9]{3}$/, - Nr = /^#[a-fA-F0-9]{4}$/, - Mr = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, - Lr = - /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, - Rr = - /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, - Ar = - /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -function Dr(e) { - if ('string' != typeof e) throw new dr(3); - var t = (function (e) { - if ('string' != typeof e) return e; - var t = e.toLowerCase(); - return Or[t] ? '#' + Or[t] : e; - })(e); - if (t.match(Pr)) + +/** + * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. + * @private + */ +function nameToHex(color) { + if (typeof color !== 'string') return color; + var normalizedColorName = color.toLowerCase(); + return namedColorMap[normalizedColorName] ? '#' + namedColorMap[normalizedColorName] : color; +} + +var hexRegex = /^#[a-fA-F0-9]{6}$/; +var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/; +var reducedHexRegex = /^#[a-fA-F0-9]{3}$/; +var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/; +var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i; +var rgbaRegex = + /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; +var hslRegex = + /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i; +var hslaRegex = + /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; + +/** + * Returns an RgbColor or RgbaColor object. This utility function is only useful + * if want to extract a color component. With the color util `toColorString` you + * can convert a RgbColor or RgbaColor object back to a string. + * + * @example + * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1 + * const color1 = parseToRgb('rgb(255, 0, 0)'); + * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2 + * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)'); + */ +function parseToRgb(color) { + if (typeof color !== 'string') { + throw new PolishedError(3); + } + var normalizedColor = nameToHex(color); + if (normalizedColor.match(hexRegex)) { return { - red: parseInt('' + t[1] + t[2], 16), - green: parseInt('' + t[3] + t[4], 16), - blue: parseInt('' + t[5] + t[6], 16), + red: parseInt('' + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt('' + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt('' + normalizedColor[5] + normalizedColor[6], 16), }; - if (t.match(Tr)) { - var n = parseFloat((parseInt('' + t[7] + t[8], 16) / 255).toFixed(2)); + } + if (normalizedColor.match(hexRgbaRegex)) { + var alpha = parseFloat( + (parseInt('' + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2) + ); return { - red: parseInt('' + t[1] + t[2], 16), - green: parseInt('' + t[3] + t[4], 16), - blue: parseInt('' + t[5] + t[6], 16), - alpha: n, + red: parseInt('' + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt('' + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt('' + normalizedColor[5] + normalizedColor[6], 16), + alpha: alpha, }; } - if (t.match(Ir)) + if (normalizedColor.match(reducedHexRegex)) { return { - red: parseInt('' + t[1] + t[1], 16), - green: parseInt('' + t[2] + t[2], 16), - blue: parseInt('' + t[3] + t[3], 16), + red: parseInt('' + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt('' + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt('' + normalizedColor[3] + normalizedColor[3], 16), }; - if (t.match(Nr)) { - var r = parseFloat((parseInt('' + t[4] + t[4], 16) / 255).toFixed(2)); + } + if (normalizedColor.match(reducedRgbaHexRegex)) { + var _alpha = parseFloat( + (parseInt('' + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2) + ); return { - red: parseInt('' + t[1] + t[1], 16), - green: parseInt('' + t[2] + t[2], 16), - blue: parseInt('' + t[3] + t[3], 16), - alpha: r, + red: parseInt('' + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt('' + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt('' + normalizedColor[3] + normalizedColor[3], 16), + alpha: _alpha, }; } - var o = Mr.exec(t); - if (o) + var rgbMatched = rgbRegex.exec(normalizedColor); + if (rgbMatched) { return { - red: parseInt('' + o[1], 10), - green: parseInt('' + o[2], 10), - blue: parseInt('' + o[3], 10), + red: parseInt('' + rgbMatched[1], 10), + green: parseInt('' + rgbMatched[2], 10), + blue: parseInt('' + rgbMatched[3], 10), }; - var a = Lr.exec(t.substring(0, 50)); - if (a) + } + var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50)); + if (rgbaMatched) { return { - red: parseInt('' + a[1], 10), - green: parseInt('' + a[2], 10), - blue: parseInt('' + a[3], 10), - alpha: parseFloat('' + a[4]) > 1 ? parseFloat('' + a[4]) / 100 : parseFloat('' + a[4]), + red: parseInt('' + rgbaMatched[1], 10), + green: parseInt('' + rgbaMatched[2], 10), + blue: parseInt('' + rgbaMatched[3], 10), + alpha: + parseFloat('' + rgbaMatched[4]) > 1 + ? parseFloat('' + rgbaMatched[4]) / 100 + : parseFloat('' + rgbaMatched[4]), }; - var i = Rr.exec(t); - if (i) { - var s = - 'rgb(' + - Cr(parseInt('' + i[1], 10), parseInt('' + i[2], 10) / 100, parseInt('' + i[3], 10) / 100) + - ')', - l = Mr.exec(s); - if (!l) throw new dr(4, t, s); + } + var hslMatched = hslRegex.exec(normalizedColor); + if (hslMatched) { + var hue = parseInt('' + hslMatched[1], 10); + var saturation = parseInt('' + hslMatched[2], 10) / 100; + var lightness = parseInt('' + hslMatched[3], 10) / 100; + var rgbColorString = 'rgb(' + hslToRgb(hue, saturation, lightness) + ')'; + var hslRgbMatched = rgbRegex.exec(rgbColorString); + if (!hslRgbMatched) { + throw new PolishedError(4, normalizedColor, rgbColorString); + } return { - red: parseInt('' + l[1], 10), - green: parseInt('' + l[2], 10), - blue: parseInt('' + l[3], 10), + red: parseInt('' + hslRgbMatched[1], 10), + green: parseInt('' + hslRgbMatched[2], 10), + blue: parseInt('' + hslRgbMatched[3], 10), }; } - var c = Ar.exec(t.substring(0, 50)); - if (c) { - var u = - 'rgb(' + - Cr(parseInt('' + c[1], 10), parseInt('' + c[2], 10) / 100, parseInt('' + c[3], 10) / 100) + - ')', - d = Mr.exec(u); - if (!d) throw new dr(4, t, u); + var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50)); + if (hslaMatched) { + var _hue = parseInt('' + hslaMatched[1], 10); + var _saturation = parseInt('' + hslaMatched[2], 10) / 100; + var _lightness = parseInt('' + hslaMatched[3], 10) / 100; + var _rgbColorString = 'rgb(' + hslToRgb(_hue, _saturation, _lightness) + ')'; + var _hslRgbMatched = rgbRegex.exec(_rgbColorString); + if (!_hslRgbMatched) { + throw new PolishedError(4, normalizedColor, _rgbColorString); + } return { - red: parseInt('' + d[1], 10), - green: parseInt('' + d[2], 10), - blue: parseInt('' + d[3], 10), - alpha: parseFloat('' + c[4]) > 1 ? parseFloat('' + c[4]) / 100 : parseFloat('' + c[4]), + red: parseInt('' + _hslRgbMatched[1], 10), + green: parseInt('' + _hslRgbMatched[2], 10), + blue: parseInt('' + _hslRgbMatched[3], 10), + alpha: + parseFloat('' + hslaMatched[4]) > 1 + ? parseFloat('' + hslaMatched[4]) / 100 + : parseFloat('' + hslaMatched[4]), }; } - throw new dr(5); -} -function jr(e) { - return (function (e) { - var t, - n = e.red / 255, - r = e.green / 255, - o = e.blue / 255, - a = Math.max(n, r, o), - i = Math.min(n, r, o), - s = (a + i) / 2; - if (a === i) - return void 0 !== e.alpha - ? { hue: 0, saturation: 0, lightness: s, alpha: e.alpha } - : { hue: 0, saturation: 0, lightness: s }; - var l = a - i, - c = s > 0.5 ? l / (2 - a - i) : l / (a + i); - switch (a) { - case n: - t = (r - o) / l + (r < o ? 6 : 0); - break; - case r: - t = (o - n) / l + 2; - break; - default: - t = (n - r) / l + 4; + throw new PolishedError(5); +} + +function rgbToHsl(color) { + // make sure rgb are contained in a set of [0, 255] + var red = color.red / 255; + var green = color.green / 255; + var blue = color.blue / 255; + var max = Math.max(red, green, blue); + var min = Math.min(red, green, blue); + var lightness = (max + min) / 2; + if (max === min) { + // achromatic + if (color.alpha !== undefined) { + return { + hue: 0, + saturation: 0, + lightness: lightness, + alpha: color.alpha, + }; + } else { + return { + hue: 0, + saturation: 0, + lightness: lightness, + }; } - return ( - (t *= 60), - void 0 !== e.alpha - ? { hue: t, saturation: c, lightness: s, alpha: e.alpha } - : { hue: t, saturation: c, lightness: s } - ); - })(Dr(e)); -} -var zr = function (e) { - return 7 === e.length && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] - ? '#' + e[1] + e[3] + e[5] - : e; -}; -function Fr(e) { - var t = e.toString(16); - return 1 === t.length ? '0' + t : t; -} -function _r(e) { - return Fr(Math.round(255 * e)); -} -function Hr(e, t, n) { - return zr('#' + _r(e) + _r(t) + _r(n)); -} -function $r(e, t, n) { - return Cr(e, t, n, Hr); -} -function Br(e, t, n) { - if ('number' == typeof e && 'number' == typeof t && 'number' == typeof n) - return zr('#' + Fr(e) + Fr(t) + Fr(n)); - if ('object' == typeof e && void 0 === t && void 0 === n) - return zr('#' + Fr(e.red) + Fr(e.green) + Fr(e.blue)); - throw new dr(6); -} -function Wr(e, t, n, r) { - if ('string' == typeof e && 'number' == typeof t) { - var o = Dr(e); - return 'rgba(' + o.red + ',' + o.green + ',' + o.blue + ',' + t + ')'; - } - if ('number' == typeof e && 'number' == typeof t && 'number' == typeof n && 'number' == typeof r) - return r >= 1 ? Br(e, t, n) : 'rgba(' + e + ',' + t + ',' + n + ',' + r + ')'; - if ('object' == typeof e && void 0 === t && void 0 === n && void 0 === r) - return e.alpha >= 1 - ? Br(e.red, e.green, e.blue) - : 'rgba(' + e.red + ',' + e.green + ',' + e.blue + ',' + e.alpha + ')'; - throw new dr(7); -} -function Vr(e) { - if ('object' != typeof e) throw new dr(8); - if ( - (function (e) { - return ( - 'number' == typeof e.red && - 'number' == typeof e.green && - 'number' == typeof e.blue && - 'number' == typeof e.alpha - ); - })(e) - ) - return Wr(e); + } + var hue; + var delta = max - min; + var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min); + switch (max) { + case red: + hue = (green - blue) / delta + (green < blue ? 6 : 0); + break; + case green: + hue = (blue - red) / delta + 2; + break; + default: + // blue case + hue = (red - green) / delta + 4; + break; + } + hue *= 60; + if (color.alpha !== undefined) { + return { + hue: hue, + saturation: saturation, + lightness: lightness, + alpha: color.alpha, + }; + } + return { + hue: hue, + saturation: saturation, + lightness: lightness, + }; +} + +/** + * Returns an HslColor or HslaColor object. This utility function is only useful + * if want to extract a color component. With the color util `toColorString` you + * can convert a HslColor or HslaColor object back to a string. + * + * @example + * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1 + * const color1 = parseToHsl('rgb(255, 0, 0)'); + * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2 + * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)'); + */ +function parseToHsl(color) { + // Note: At a later stage we can optimize this function as right now a hsl + // color would be parsed converted to rgb values and converted back to hsl. + return rgbToHsl(parseToRgb(color)); +} + +/** + * Reduces hex values if possible e.g. #ff8866 to #f86 + * @private + */ +var reduceHexValue = function reduceHexValue(value) { if ( - (function (e) { - return ( - 'number' == typeof e.red && - 'number' == typeof e.green && - 'number' == typeof e.blue && - ('number' != typeof e.alpha || void 0 === e.alpha) - ); - })(e) - ) - return Br(e); + value.length === 7 && + value[1] === value[2] && + value[3] === value[4] && + value[5] === value[6] + ) { + return '#' + value[1] + value[3] + value[5]; + } + return value; +}; +var reduceHexValue$1 = reduceHexValue; + +function numberToHex(value) { + var hex = value.toString(16); + return hex.length === 1 ? '0' + hex : hex; +} + +function colorToHex(color) { + return numberToHex(Math.round(color * 255)); +} +function convertToHex(red, green, blue) { + return reduceHexValue$1('#' + colorToHex(red) + colorToHex(green) + colorToHex(blue)); +} +function hslToHex(hue, saturation, lightness) { + return hslToRgb(hue, saturation, lightness, convertToHex); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: hsl(359, 0.75, 0.4), + * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${hsl(359, 0.75, 0.4)}; + * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#b3191c"; + * background: "#b3191c"; + * } + */ +function hsl(value, saturation, lightness) { if ( - (function (e) { - return ( - 'number' == typeof e.hue && - 'number' == typeof e.saturation && - 'number' == typeof e.lightness && - 'number' == typeof e.alpha - ); - })(e) - ) - return (function (e, t, n, r) { - if ( - 'number' == typeof e && - 'number' == typeof t && - 'number' == typeof n && - 'number' == typeof r - ) - return r >= 1 ? $r(e, t, n) : 'rgba(' + Cr(e, t, n) + ',' + r + ')'; - if ('object' == typeof e && void 0 === t && void 0 === n && void 0 === r) - return e.alpha >= 1 - ? $r(e.hue, e.saturation, e.lightness) - : 'rgba(' + Cr(e.hue, e.saturation, e.lightness) + ',' + e.alpha + ')'; - throw new dr(2); - })(e); + typeof value === 'number' && + typeof saturation === 'number' && + typeof lightness === 'number' + ) { + return hslToHex(value, saturation, lightness); + } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) { + return hslToHex(value.hue, value.saturation, value.lightness); + } + throw new PolishedError(1); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: hsla(359, 0.75, 0.4, 0.7), + * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }), + * background: hsla(359, 0.75, 0.4, 1), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${hsla(359, 0.75, 0.4, 0.7)}; + * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })}; + * background: ${hsla(359, 0.75, 0.4, 1)}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(179,25,28,0.7)"; + * background: "rgba(179,25,28,0.7)"; + * background: "#b3191c"; + * } + */ +function hsla(value, saturation, lightness, alpha) { if ( - (function (e) { - return ( - 'number' == typeof e.hue && - 'number' == typeof e.saturation && - 'number' == typeof e.lightness && - ('number' != typeof e.alpha || void 0 === e.alpha) - ); - })(e) - ) - return (function (e, t, n) { - if ('number' == typeof e && 'number' == typeof t && 'number' == typeof n) return $r(e, t, n); - if ('object' == typeof e && void 0 === t && void 0 === n) - return $r(e.hue, e.saturation, e.lightness); - throw new dr(1); - })(e); - throw new dr(8); -} -function Ur(e, t, n) { - return function () { - var r = n.concat(Array.prototype.slice.call(arguments)); - return r.length >= t ? e.apply(this, r) : Ur(e, t, r); - }; + typeof value === 'number' && + typeof saturation === 'number' && + typeof lightness === 'number' && + typeof alpha === 'number' + ) { + return alpha >= 1 + ? hslToHex(value, saturation, lightness) + : 'rgba(' + hslToRgb(value, saturation, lightness) + ',' + alpha + ')'; + } else if ( + typeof value === 'object' && + saturation === undefined && + lightness === undefined && + alpha === undefined + ) { + return value.alpha >= 1 + ? hslToHex(value.hue, value.saturation, value.lightness) + : 'rgba(' + hslToRgb(value.hue, value.saturation, value.lightness) + ',' + value.alpha + ')'; + } + throw new PolishedError(2); } -function qr(e) { - return Ur(e, e.length, []); + +/** + * Returns a string value for the color. The returned result is the smallest possible hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: rgb(255, 205, 100), + * background: rgb({ red: 255, green: 205, blue: 100 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${rgb(255, 205, 100)}; + * background: ${rgb({ red: 255, green: 205, blue: 100 })}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#ffcd64"; + * background: "#ffcd64"; + * } + */ +function rgb(value, green, blue) { + if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') { + return reduceHexValue$1('#' + numberToHex(value) + numberToHex(green) + numberToHex(blue)); + } else if (typeof value === 'object' && green === undefined && blue === undefined) { + return reduceHexValue$1( + '#' + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue) + ); + } + throw new PolishedError(6); } -function Yr(e, t, n) { - return Math.max(e, Math.min(t, n)); + +/** + * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. + * + * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value. + * + * @example + * // Styles as object usage + * const styles = { + * background: rgba(255, 205, 100, 0.7), + * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }), + * background: rgba(255, 205, 100, 1), + * background: rgba('#ffffff', 0.4), + * background: rgba('black', 0.7), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${rgba(255, 205, 100, 0.7)}; + * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })}; + * background: ${rgba(255, 205, 100, 1)}; + * background: ${rgba('#ffffff', 0.4)}; + * background: ${rgba('black', 0.7)}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(255,205,100,0.7)"; + * background: "rgba(255,205,100,0.7)"; + * background: "#ffcd64"; + * background: "rgba(255,255,255,0.4)"; + * background: "rgba(0,0,0,0.7)"; + * } + */ +function rgba(firstValue, secondValue, thirdValue, fourthValue) { + if (typeof firstValue === 'string' && typeof secondValue === 'number') { + var rgbValue = parseToRgb(firstValue); + return ( + 'rgba(' + rgbValue.red + ',' + rgbValue.green + ',' + rgbValue.blue + ',' + secondValue + ')' + ); + } else if ( + typeof firstValue === 'number' && + typeof secondValue === 'number' && + typeof thirdValue === 'number' && + typeof fourthValue === 'number' + ) { + return fourthValue >= 1 + ? rgb(firstValue, secondValue, thirdValue) + : 'rgba(' + firstValue + ',' + secondValue + ',' + thirdValue + ',' + fourthValue + ')'; + } else if ( + typeof firstValue === 'object' && + secondValue === undefined && + thirdValue === undefined && + fourthValue === undefined + ) { + return firstValue.alpha >= 1 + ? rgb(firstValue.red, firstValue.green, firstValue.blue) + : 'rgba(' + + firstValue.red + + ',' + + firstValue.green + + ',' + + firstValue.blue + + ',' + + firstValue.alpha + + ')'; + } + throw new PolishedError(7); } -qr(function (e, t) { - if ('transparent' === t) return t; - var n = jr(t); - return Vr(tr({}, n, { hue: n.hue + parseFloat(e) })); -}); -var Kr = qr(function (e, t) { - if ('transparent' === t) return t; - var n = jr(t); - return Vr(tr({}, n, { lightness: Yr(0, 1, n.lightness - parseFloat(e)) })); -}); -function Gr(e) { - if ('transparent' === e) return 0; - var t = Dr(e), - n = Object.keys(t).map(function (e) { - var n = t[e] / 255; - return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4); - }), - r = n[0], - o = n[1], - a = n[2]; - return parseFloat((0.2126 * r + 0.7152 * o + 0.0722 * a).toFixed(3)); -} -qr(function (e, t) { - if ('transparent' === t) return t; - var n = jr(t); - return Vr(tr({}, n, { saturation: Yr(0, 1, n.saturation - parseFloat(e)) })); -}); -var Qr = qr(function (e, t) { - if ('transparent' === t) return t; - var n = jr(t); - return Vr(tr({}, n, { lightness: Yr(0, 1, n.lightness + parseFloat(e)) })); -}); -var Xr = qr(function (e, t, n) { - if ('transparent' === t) return n; - if ('transparent' === n) return t; - if (0 === e) return n; - var r = Dr(t), - o = tr({}, r, { alpha: 'number' == typeof r.alpha ? r.alpha : 1 }), - a = Dr(n), - i = tr({}, a, { alpha: 'number' == typeof a.alpha ? a.alpha : 1 }), - s = o.alpha - i.alpha, - l = 2 * parseFloat(e) - 1, - c = ((l * s == -1 ? l : l + s) / (1 + l * s) + 1) / 2, - u = 1 - c; - return Wr({ - red: Math.floor(o.red * c + i.red * u), - green: Math.floor(o.green * c + i.green * u), - blue: Math.floor(o.blue * c + i.blue * u), - alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), - }); - }), - Jr = Xr; -qr(function (e, t) { - if ('transparent' === t) return t; - var n = Dr(t); - return Wr( - tr({}, n, { - alpha: Yr( - 0, - 1, - (100 * ('number' == typeof n.alpha ? n.alpha : 1) + 100 * parseFloat(e)) / 100 - ), - }) + +var isRgb = function isRgb(color) { + return ( + typeof color.red === 'number' && + typeof color.green === 'number' && + typeof color.blue === 'number' && + (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined') ); -}); -var Zr = '#000', - eo = '#fff'; -function to(e, t, n, r) { - void 0 === t && (t = Zr), void 0 === n && (n = eo), void 0 === r && (r = !0); - var o, - a, - i, - s = Gr(e) > 0.179, - l = s ? t : n; - return !r || - ((o = l), - (a = Gr(e)), - (i = Gr(o)), - parseFloat((a > i ? (a + 0.05) / (i + 0.05) : (i + 0.05) / (a + 0.05)).toFixed(2)) >= 4.5) - ? l - : s - ? Zr - : eo; -} -qr(function (e, t) { - if ('transparent' === t) return t; - var n = jr(t); - return Vr(tr({}, n, { saturation: Yr(0, 1, n.saturation + parseFloat(e)) })); -}), - qr(function (e, t) { - return 'transparent' === t ? t : Vr(tr({}, jr(t), { hue: parseFloat(e) })); - }), - qr(function (e, t) { - return 'transparent' === t ? t : Vr(tr({}, jr(t), { lightness: parseFloat(e) })); - }), - qr(function (e, t) { - return 'transparent' === t ? t : Vr(tr({}, jr(t), { saturation: parseFloat(e) })); - }), - qr(function (e, t) { - return 'transparent' === t ? t : Jr(parseFloat(e), 'rgb(0, 0, 0)', t); - }), - qr(function (e, t) { - return 'transparent' === t ? t : Jr(parseFloat(e), 'rgb(255, 255, 255)', t); - }), - qr(function (e, t) { - if ('transparent' === t) return t; - var n = Dr(t); - return Wr( - tr({}, n, { - alpha: Yr( - 0, - 1, - +(100 * ('number' == typeof n.alpha ? n.alpha : 1) - 100 * parseFloat(e)).toFixed(2) / 100 - ), - }) - ); - }); -var no = '__lodash_hash_undefined__', - ro = '[object Function]', - oo = '[object GeneratorFunction]', - ao = /^\[object .+?Constructor\]$/, - io = 'object' == typeof t && t && t.Object === Object && t, - so = 'object' == typeof self && self && self.Object === Object && self, - lo = io || so || Function('return this')(); -var co = Array.prototype, - uo = Function.prototype, - po = Object.prototype, - fo = lo['__core-js_shared__'], - mo = (function () { - var e = /[^.]+$/.exec((fo && fo.keys && fo.keys.IE_PROTO) || ''); - return e ? 'Symbol(src)_1.' + e : ''; - })(), - ho = uo.toString, - go = po.hasOwnProperty, - vo = po.toString, - bo = RegExp( - '^' + - ho - .call(go) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$' - ), - yo = co.splice, - wo = To(lo, 'Map'), - xo = To(Object, 'create'); -function ko(e) { - var t = -1, - n = e ? e.length : 0; - for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); - } -} -function Eo(e) { - var t = -1, - n = e ? e.length : 0; - for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); - } -} -function So(e) { - var t = -1, - n = e ? e.length : 0; - for (this.clear(); ++t < n; ) { - var r = e[t]; - this.set(r[0], r[1]); - } -} -function Co(e, t) { - for (var n, r, o = e.length; o--; ) if ((n = e[o][0]) === (r = t) || (n != n && r != r)) return o; - return -1; -} -function Oo(e) { - if (!No(e) || ((t = e), mo && mo in t)) return !1; - var t, - n = - (function (e) { - var t = No(e) ? vo.call(e) : ''; - return t == ro || t == oo; - })(e) || - (function (e) { - var t = !1; - if (null != e && 'function' != typeof e.toString) - try { - t = !!(e + ''); - } catch (e) {} - return t; - })(e) - ? bo - : ao; - return n.test( - (function (e) { - if (null != e) { - try { - return ho.call(e); - } catch (e) {} - try { - return e + ''; - } catch (e) {} - } - return ''; - })(e) - ); -} -function Po(e, t) { - var n = e.__data__; - return (function (e) { - var t = typeof e; - return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t - ? '__proto__' !== e - : null === e; - })(t) - ? n['string' == typeof t ? 'string' : 'hash'] - : n.map; -} -function To(e, t) { - var n = (function (e, t) { - return null == e ? void 0 : e[t]; - })(e, t); - return Oo(n) ? n : void 0; -} -function Io(e, t) { - if ('function' != typeof e || (t && 'function' != typeof t)) - throw new TypeError('Expected a function'); - var n = function () { - var r = arguments, - o = t ? t.apply(this, r) : r[0], - a = n.cache; - if (a.has(o)) return a.get(o); - var i = e.apply(this, r); - return (n.cache = a.set(o, i)), i; - }; - return (n.cache = new (Io.Cache || So)()), n; -} -function No(e) { - var t = typeof e; - return !!e && ('object' == t || 'function' == t); -} -(ko.prototype.clear = function () { - this.__data__ = xo ? xo(null) : {}; -}), - (ko.prototype.delete = function (e) { - return this.has(e) && delete this.__data__[e]; - }), - (ko.prototype.get = function (e) { - var t = this.__data__; - if (xo) { - var n = t[e]; - return n === no ? void 0 : n; - } - return go.call(t, e) ? t[e] : void 0; - }), - (ko.prototype.has = function (e) { - var t = this.__data__; - return xo ? void 0 !== t[e] : go.call(t, e); - }), - (ko.prototype.set = function (e, t) { - return (this.__data__[e] = xo && void 0 === t ? no : t), this; - }), - (Eo.prototype.clear = function () { - this.__data__ = []; - }), - (Eo.prototype.delete = function (e) { - var t = this.__data__, - n = Co(t, e); - return !(n < 0) && (n == t.length - 1 ? t.pop() : yo.call(t, n, 1), !0); - }), - (Eo.prototype.get = function (e) { - var t = this.__data__, - n = Co(t, e); - return n < 0 ? void 0 : t[n][1]; - }), - (Eo.prototype.has = function (e) { - return Co(this.__data__, e) > -1; - }), - (Eo.prototype.set = function (e, t) { - var n = this.__data__, - r = Co(n, e); - return r < 0 ? n.push([e, t]) : (n[r][1] = t), this; - }), - (So.prototype.clear = function () { - this.__data__ = { hash: new ko(), map: new (wo || Eo)(), string: new ko() }; - }), - (So.prototype.delete = function (e) { - return Po(this, e).delete(e); - }), - (So.prototype.get = function (e) { - return Po(this, e).get(e); - }), - (So.prototype.has = function (e) { - return Po(this, e).has(e); - }), - (So.prototype.set = function (e, t) { - return Po(this, e).set(e, t), this; - }), - (Io.Cache = So); -const Mo = 600, - Lo = (e, t, n) => { - if (t !== n) { - const r = (Math.abs(t - n) / 100) * 0.05; - return t > n ? Kr(r, e) : Qr(r, e); - } - return e; - }, - Ro = n(Io)( - function (e) { - let t, - n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Mo, - r = arguments.length > 2 ? arguments[2] : void 0, - o = arguments.length > 3 ? arguments[3] : void 0; - if (isNaN(n)) return; - const a = r && r.palette ? r.palette : Xn.palette, - i = r && r.colors ? r.colors : Xn.colors; - let s; - if ( - ((s = ('string' == typeof e && i[e]) || e), - Object.prototype.hasOwnProperty.call(a, s) && (s = a[s]), - 'object' == typeof s) - ) { - if (((t = s[n]), !t)) { - const e = Object.keys(s) - .map((e) => parseInt(e, 10)) - .reduce((e, t) => (Math.abs(t - n) < Math.abs(e - n) ? t : e)); - t = Lo(s[e], n, e); - } - } else t = Lo(s, n, Mo); - return o && (t = Wr(t, o)), t; - }, - (e, t, n, r) => - JSON.stringify({ hue: e, shade: t, palette: n?.palette, colors: n?.colors, transparency: r }) - ), - Ao = (e) => { - let { - boxShadow: t, - inset: n = !1, - hue: r = 'primaryHue', - shade: o = Mo, - shadowWidth: a = 'md', - spacerHue: i = 'background', - spacerShade: s = Mo, - spacerWidth: l = 'xs', - theme: c = Xn, - } = e; - const u = Ro(r, o, c), - d = c.shadows[a](u); - if (null === l) return `${n ? 'inset' : ''} ${d}`; - const p = Ro(i, s, c), - f = `\n ${n ? 'inset' : ''} ${c.shadows[l](p)},\n ${n ? 'inset' : ''} ${d}`; - return t ? `${f}, ${t}` : f; - }; -function Do(e, t) { - const [n, r] = kr(e.toString()), - [o, a] = kr(t.toString()); - if (r && 'px' !== r) throw new Error(`Unexpected \`height\` with '${r}' units.`); - if (a && 'px' !== a) throw new Error(`Unexpected \`fontSize\` with '${a}' units.`); - return n / o; -} -const jo = (e, t) => { - const n = Object.keys(e), - r = n.indexOf(t) + 1; - if (n[r]) { - const t = kr(e[n[r]]); - return `${t[0] - 0.02}${t[1]}`; - } -}; -const zo = { - symbols: { - sqrt: { - func: { - symbol: 'sqrt', - f: (e) => Math.sqrt(e), - notation: 'func', - precedence: 0, - rightToLeft: 0, - argCount: 1, - }, - symbol: 'sqrt', - regSymbol: 'sqrt\\b', - }, - }, }; -function Fo(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - const n = t.size || '6px', - r = t.inset || '0', - o = gr(`${n} * 2 / sqrt(2)`, zo); - return rn( - [ - 'position:relative;&::before{border-width:inherit;border-style:inherit;border-color:transparent;background-clip:content-box;}&::after{z-index:-1;border:inherit;box-shadow:inherit;}&::before,&::after{position:absolute;transform:rotate(45deg);background-color:inherit;box-sizing:inherit;width:', - ';height:', - ";content:'';}", - ';', - ';', - ], - o, - o, - ((e, t, n) => { - const r = gr(`${t} / -2`), - o = gr(`${r} + ${n}`); - let a, i, s; - return ( - e.startsWith('top') - ? ((s = 'border-bottom-right-radius'), - (a = 'polygon(100% 0, 100% 1px, 1px 100%, 0 100%, 0 0)'), - (i = rn( - ['top:', ';right:', ';left:', ';margin-left:', ';'], - o, - 'top-right' === e && t, - 'top' === e ? '50%' : 'top-left' === e && t, - 'top' === e && r - ))) - : e.startsWith('right') - ? ((s = 'border-bottom-left-radius'), - (a = 'polygon(100% 0, 100% 100%, calc(100% - 1px) 100%, 0 1px, 0 0)'), - (i = rn( - ['top:', ';right:', ';bottom:', ';margin-top:', ';'], - 'right' === e ? '50%' : 'right-top' === e && t, - o, - 'right-bottom' === e && t, - 'right' === e && r - ))) - : e.startsWith('bottom') - ? ((s = 'border-top-left-radius'), - (a = 'polygon(100% 0, calc(100% - 1px) 0, 0 calc(100% - 1px), 0 100%, 100% 100%)'), - (i = rn( - ['right:', ';bottom:', ';left:', ';margin-left:', ';'], - 'bottom-right' === e && t, - o, - 'bottom' === e ? '50%' : 'bottom-left' === e && t, - 'bottom' === e && r - ))) - : e.startsWith('left') && - ((s = 'border-top-right-radius'), - (a = 'polygon(0 100%, 100% 100%, 100% calc(100% - 1px), 1px 0, 0 0)'), - (i = rn( - ['top:', ';bottom:', ';left:', ';margin-top:', ';'], - 'left' === e ? '50%' : 'left-top' === e && t, - t, - o, - 'left' === e && r - ))), - rn(['&::before{', ':100%;clip-path:', ';}&::before,&::after{', '}'], s, a, i) - ); - })(e, o, r), - t.animationModifier && - ((e, t) => - rn( - ['&', '::before,&', '::after{animation:0.3s ease-in-out ', ';}'], - t, - t, - yn(['0%,66%{', ':2px;border:transparent;}'], e.split('-')[0]) - ))(e, t.animationModifier) - ); -} -const _o = function (e, t, n, r) { - let o = !(arguments.length > 4 && void 0 !== arguments[4]) || arguments[4]; - const a = o ? t[n] : void 0; - return c.useMemo(() => { - if (o) { - if ('children' === n) throw new Error('Error: `children` is not a valid `useText` prop.'); - if (null === a || '' === a) - throw new Error( - e.displayName - ? `Error: you must provide a valid \`${n}\` text value for <${e.displayName}>.` - : `Error: you must provide a valid \`${n}\` text value.` - ); - if (void 0 === a) return r; - } - return a; - }, [e.displayName, a, n, r, o]); +var isRgba = function isRgba(color) { + return ( + typeof color.red === 'number' && + typeof color.green === 'number' && + typeof color.blue === 'number' && + typeof color.alpha === 'number' + ); }; -function Ho(e) { - let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - const n = t.theme || Xn; - let r; +var isHsl = function isHsl(color) { return ( - (r = - 'top' === e - ? 'margin-bottom' - : 'right' === e - ? 'margin-left' - : 'bottom' === e - ? 'margin-top' - : 'margin-right'), - rn( - [ - 'position:absolute;z-index:', - ';', - ':', - ';line-height:0;font-size:0.01px;& ', - '{display:inline-block;position:relative;margin:0;box-sizing:border-box;border:', - ' ', - ';border-radius:', - ';box-shadow:', - ';background-color:', - ';cursor:default;padding:0;text-align:', - ';white-space:normal;font-size:', - ';font-weight:', - ';direction:', - ';:focus{outline:none;}}', - ';', - ';', - ], - t.zIndex || 0, - r, - t.margin, - t.childSelector || '> *', - n.borders.sm, - Ro('neutralHue', 300, n), - n.borderRadii.md, - n.shadows.lg( - 5 * n.space.base + 'px', - 7.5 * n.space.base + 'px', - Ro('chromeHue', 600, n, 0.15) - ), - Ro('background', 600, n), - n.rtl ? 'right' : 'left', - n.fontSizes.md, - n.fontWeights.regular, - n.rtl && 'rtl', - t.animationModifier && - ((e, t) => { - let n, - r = 5 * (t.theme || Xn).space.base + 'px'; - 'top' === e - ? (n = 'translateY') - : 'right' === e - ? ((n = 'translateX'), (r = `-${r}`)) - : 'bottom' === e - ? ((n = 'translateY'), (r = `-${r}`)) - : (n = 'translateX'); - const o = yn(['0%{transform:', '(', ');}'], n, r); - return rn( - ['&', ' ', '{animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ', ';}'], - t.animationModifier, - t.childSelector || '> *', - o - ); - })(e, t), - t.hidden && - ((e) => - rn( - ['transition:', ';visibility:hidden;opacity:0;'], - e.animationModifier && 'opacity 0.2s ease-in-out, 0.2s visibility 0s linear' - ))(t) - ) + typeof color.hue === 'number' && + typeof color.saturation === 'number' && + typeof color.lightness === 'number' && + (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined') ); -} -const $o = '&:focus-visible, &[data-garden-focus-visible="true"]', - Bo = (e) => { - let { - condition: t = !0, - selector: n = $o, - shadowWidth: r = 'md', - spacerWidth: o = 'xs', - styles: { boxShadow: a, ...i } = {}, - theme: s, - ...l - } = e; - const c = t ? Ao({ boxShadow: a, shadowWidth: r, spacerWidth: o, theme: s, ...l }) : a; - let u, d; - return ( - null === o - ? (u = s.shadowWidths[r]) - : ((u = `${gr(`${s.shadowWidths[r]} - ${s.shadowWidths[o]}`)} solid transparent`), - (d = s.shadowWidths[o])), - rn( - ['&:focus{outline:none;}', '{outline:', ';outline-offset:', ';box-shadow:', ';', '}'], - n, - u, - d, - c, - i - ) - ); - }; -function Wo(e) { - return { - ...Xn, - rtl: 'rtl' === document.dir, - colors: { - ...Xn.colors, - background: e.background_color, - foreground: e.text_color, - primaryHue: e.brand_color, - }, - components: { - 'buttons.anchor': rn` - color: ${e.link_color}; +}; +var isHsla = function isHsla(color) { + return ( + typeof color.hue === 'number' && + typeof color.saturation === 'number' && + typeof color.lightness === 'number' && + typeof color.alpha === 'number' + ); +}; - :hover, - :active, - :focus { - color: ${e.hover_link_color}; - } +/** + * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string. + * This util is useful in case you only know on runtime which color object is + * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`. + * + * @example + * // Styles as object usage + * const styles = { + * background: toColorString({ red: 255, green: 205, blue: 100 }), + * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), + * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }), + * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${toColorString({ red: 255, green: 205, blue: 100 })}; + * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; + * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; + * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; + * ` + * + * // CSS in JS Output + * element { + * background: "#ffcd64"; + * background: "rgba(255,205,100,0.72)"; + * background: "#00f"; + * background: "rgba(179,25,25,0.72)"; + * } + */ - &:visited { - color: ${e.visited_link_color}; - } - `, - 'buttons.button': rn` - ${(t) => - t.isPrimary && - rn` - color: ${e.brand_text_color}; - `} - `, - }, - }; +function toColorString(color) { + if (typeof color !== 'object') throw new PolishedError(8); + if (isRgba(color)) return rgba(color); + if (isRgb(color)) return rgb(color); + if (isHsla(color)) return hsla(color); + if (isHsl(color)) return hsl(color); + throw new PolishedError(8); } -const Vo = ['success', 'warning', 'error', 'info'], - Uo = 'notifications.close', - qo = Sn.button - .attrs({ 'data-garden-id': Uo, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledClose', componentId: 'sc-1mr9nx1-0' })( - [ - 'display:block;position:absolute;top:', - 'px;', - ':', - ';transition:background-color 0.1s ease-in-out,color 0.25s ease-in-out,box-shadow 0.1s ease-in-out;border:none;border-radius:50%;background-color:transparent;cursor:pointer;padding:0;width:', - 'px;height:', - 'px;overflow:hidden;color:', - ';font-size:0;user-select:none;&::-moz-focus-inner{border:0;}&:hover{color:', - ';}', - ' ', - ';', - ], - (e) => e.theme.space.base, - (e) => (e.theme.rtl ? 'left' : 'right'), - (e) => `${e.theme.space.base}px`, - (e) => 7 * e.theme.space.base, - (e) => 7 * e.theme.space.base, - (e) => - e.hue - ? Ro(e.hue, 'warningHue' === e.hue ? 700 : 600, e.theme) - : Ro('neutralHue', 600, e.theme), - (e) => (e.hue ? Ro(e.hue, 800, e.theme) : Ro('neutralHue', 800, e.theme)), - (e) => Bo({ theme: e.theme, inset: !0 }), - (e) => er(Uo, e) - ); -qo.defaultProps = { theme: Xn }; -const Yo = 'notifications.title', - Ko = Sn.div - .attrs({ 'data-garden-id': Yo, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTitle', componentId: 'sc-xx4jsv-0' })( - ['margin:0;color:', ';font-weight:', ';', ';'], - (e) => Ro('foreground', 600, e.theme), - (e) => (e.isRegular ? e.theme.fontWeights.regular : e.theme.fontWeights.semibold), - (e) => er(Yo, e) - ); -Ko.defaultProps = { theme: Xn }; -const Go = (e) => { - const { theme: t } = e, - { space: n, shadows: r } = t, - o = 5 * n.base + 'px', - a = 7 * n.base + 'px', - i = Ro('chromeHue', 600, t, 0.15); - return r.lg(o, a, i); - }, - Qo = Sn.div.withConfig({ displayName: 'StyledBase', componentId: 'sc-14syaqw-0' })( - [ - 'position:relative;border:', - ';border-radius:', - ';box-shadow:', - ';padding:', - ';line-height:', - ';font-size:', - ';direction:', - ';', - ';', - ], - (e) => e.theme.borders.sm, - (e) => e.theme.borderRadii.md, - (e) => e.isFloating && Go, - (e) => { - const { space: t } = e.theme; - return `${5 * t.base + 'px'} ${10 * t.base + 'px'}`; - }, - (e) => Do(5 * e.theme.space.base, e.theme.fontSizes.md), - (e) => e.theme.fontSizes.md, - (e) => e.theme.rtl && 'rtl', - (e) => { - let t, n, r; - return ( - e.hue - ? ((t = Ro(e.hue, 100, e.theme)), - (n = Ro(e.hue, 300, e.theme)), - (r = Ro(e.hue, 'info' === e.type ? 600 : 700, e.theme))) - : ((t = Ro('background', 600, e.theme)), - (n = Ro('neutralHue', 300, e.theme)), - (r = Ro('neutralHue', 800, e.theme))), - rn(['border-color:', ';background-color:', ';color:', ';'], n, t, r) - ); - } - ); -Qo.defaultProps = { theme: Xn }; -const Xo = 'notifications.alert', - Jo = Sn(Qo) - .attrs({ 'data-garden-id': Xo, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledAlert', componentId: 'sc-fyn8jp-0' })( - ['', ' ', ';'], - (e) => rn(['', '{color:', ';}'], Ko, e.hue && Ro(e.hue, 800, e.theme)), - (e) => er(Xo, e) - ); -Jo.defaultProps = { theme: Xn }; -const Zo = 'notifications.notification', - ea = Sn(Qo) - .attrs({ 'data-garden-id': Zo, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledNotification', componentId: 'sc-uf6jh-0' })( - ['', ' ', ';'], - (e) => { - const { type: t, theme: n } = e, - { colors: r } = n, - { successHue: o, dangerHue: a, warningHue: i } = r; - let s; - switch (t) { - case 'success': - s = Ro(o, 600, n); - break; - case 'error': - s = Ro(a, 600, n); - break; - case 'warning': - s = Ro(i, 700, n); - break; - case 'info': - s = Ro('foreground', 600, n); - break; - default: - s = 'inherit'; - } - return rn(['', '{color:', ';}'], Ko, s); - }, - (e) => er(Zo, e) - ); -(ea.propTypes = { type: Pn.oneOf(Vo) }), (ea.defaultProps = { theme: Xn }); -const ta = Sn((e) => { - let { children: t, ...n } = e; - return u.cloneElement(c.Children.only(t), n); -}).withConfig({ displayName: 'StyledIcon', componentId: 'sc-msklws-0' })( - ['position:absolute;right:', ';left:', ';margin-top:', 'px;color:', ';'], - (e) => e.theme.rtl && 4 * e.theme.space.base + 'px', - (e) => !e.theme.rtl && 4 * e.theme.space.base + 'px', - (e) => e.theme.space.base / 2, - (e) => e.hue && Ro(e.hue, 'warningHue' === e.hue ? 700 : 600, e.theme) -); -function na(e) { - return function (t) { - e.forEach(function (e) { - 'function' == typeof e ? e(t) : null != e && (e.current = t); - }); + +// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js +// eslint-disable-next-line no-unused-vars +// eslint-disable-next-line no-unused-vars +// eslint-disable-next-line no-redeclare +function curried(f, length, acc) { + return function fn() { + // eslint-disable-next-line prefer-rest-params + var combined = acc.concat(Array.prototype.slice.call(arguments)); + return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined); }; } -var ra, oa; -function aa() { - return ( - (aa = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - aa.apply(this, arguments) + +// eslint-disable-next-line no-redeclare +function curry(f) { + // eslint-disable-line no-redeclare + return curried(f, f.length, []); +} + +/** + * Changes the hue of the color. Hue is a number between 0 to 360. The first + * argument for adjustHue is the amount of degrees the color is rotated around + * the color wheel, always producing a positive hue value. + * + * @example + * // Styles as object usage + * const styles = { + * background: adjustHue(180, '#448'), + * background: adjustHue('180', 'rgba(101,100,205,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${adjustHue(180, '#448')}; + * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#888844"; + * background: "rgba(136,136,68,0.7)"; + * } + */ +function adjustHue(degree, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString( + _extends$V({}, hslColor, { + hue: hslColor.hue + parseFloat(degree), + }) ); } -ta.defaultProps = { theme: Xn }; -var ia; -function sa() { - return ( - (sa = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - sa.apply(this, arguments) + +// prettier-ignore +curry /* :: */(adjustHue); + +function guard(lowerBoundary, upperBoundary, value) { + return Math.max(lowerBoundary, Math.min(upperBoundary, value)); +} + +/** + * Returns a string value for the darkened color. + * + * @example + * // Styles as object usage + * const styles = { + * background: darken(0.2, '#FFCD64'), + * background: darken('0.2', 'rgba(255,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${darken(0.2, '#FFCD64')}; + * background: ${darken('0.2', 'rgba(255,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#ffbd31"; + * background: "rgba(255,189,49,0.7)"; + * } + */ +function darken(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString( + _extends$V({}, hslColor, { + lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)), + }) ); } -var la, ca; -function ua() { - return ( - (ua = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - ua.apply(this, arguments) + +// prettier-ignore +var curriedDarken = curry /* :: */(darken); +var curriedDarken$1 = curriedDarken; + +/** + * Decreases the intensity of a color. Its range is between 0 to 1. The first + * argument of the desaturate function is the amount by how much the color + * intensity should be decreased. + * + * @example + * // Styles as object usage + * const styles = { + * background: desaturate(0.2, '#CCCD64'), + * background: desaturate('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${desaturate(0.2, '#CCCD64')}; + * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#b8b979"; + * background: "rgba(184,185,121,0.7)"; + * } + */ +function desaturate(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString( + _extends$V({}, hslColor, { + saturation: guard(0, 1, hslColor.saturation - parseFloat(amount)), + }) ); } -var da, pa; -function fa() { - return ( - (fa = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - fa.apply(this, arguments) + +// prettier-ignore +curry /* :: */(desaturate); + +/** + * Returns a number (float) representing the luminance of a color. + * + * @example + * // Styles as object usage + * const styles = { + * background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff', + * background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? + * 'rgba(58, 133, 255, 1)' : + * 'rgba(255, 57, 149, 1)', + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'}; + * background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? + * 'rgba(58, 133, 255, 1)' : + * 'rgba(255, 57, 149, 1)'}; + * + * // CSS in JS Output + * + * div { + * background: "#CCCD64"; + * background: "rgba(58, 133, 255, 1)"; + * } + */ +function getLuminance(color) { + if (color === 'transparent') return 0; + var rgbColor = parseToRgb(color); + var _Object$keys$map = Object.keys(rgbColor).map(function (key) { + var channel = rgbColor[key] / 255; + return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4); + }), + r = _Object$keys$map[0], + g = _Object$keys$map[1], + b = _Object$keys$map[2]; + return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3)); +} + +/** + * Returns the contrast ratio between two colors based on + * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef). + * + * @example + * const contrastRatio = getContrast('#444', '#fff'); + */ +function getContrast(color1, color2) { + var luminance1 = getLuminance(color1); + var luminance2 = getLuminance(color2); + return parseFloat( + (luminance1 > luminance2 + ? (luminance1 + 0.05) / (luminance2 + 0.05) + : (luminance2 + 0.05) / (luminance1 + 0.05) + ).toFixed(2) ); } -var ma = function (e) { - return c.createElement( - 'svg', - fa( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - da || - (da = c.createElement( - 'g', - { stroke: 'currentColor' }, - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7, fill: 'none' }), - c.createElement('path', { strokeLinecap: 'round', d: 'M7.5 12.5V8' }) - )), - pa || (pa = c.createElement('circle', { cx: 7.5, cy: 5, r: 1, fill: 'currentColor' })) + +/** + * Returns a string value for the lightened color. + * + * @example + * // Styles as object usage + * const styles = { + * background: lighten(0.2, '#CCCD64'), + * background: lighten('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${lighten(0.2, '#FFCD64')}; + * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#e5e6b1"; + * background: "rgba(229,230,177,0.7)"; + * } + */ +function lighten(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString( + _extends$V({}, hslColor, { + lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)), + }) ); -}; -const ha = { - success: function (e) { - return c.createElement( - 'svg', - sa( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - ia || - (ia = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('path', { - strokeLinecap: 'round', - strokeLinejoin: 'round', - d: 'M4 9l2.5 2.5 5-5', - }), - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }) - )) - ); - }, - error: function (e) { - return c.createElement( - 'svg', - aa( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - ra || - (ra = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }), - c.createElement('path', { strokeLinecap: 'round', d: 'M7.5 4.5V9' }) - )), - oa || (oa = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }, - warning: function (e) { - return c.createElement( - 'svg', - ua( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - la || - (la = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5', - })), - ca || (ca = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }, - info: ma, - }, - ga = { success: 'successHue', error: 'dangerHue', warning: 'warningHue', info: 'neutralHue' }, - va = c.createContext(void 0), - ba = u.forwardRef((e, t) => { - let { role: n, ...r } = e; - const o = ga[r.type], - a = ha[r.type]; - return u.createElement( - va.Provider, - { value: o }, - u.createElement( - Jo, - Object.assign({ ref: t, hue: o, role: void 0 === n ? 'alert' : n }, r), - u.createElement(ta, { hue: o }, u.createElement(a, null)), - r.children - ) - ); +} + +// prettier-ignore +var curriedLighten = curry /* :: */(lighten); +var curriedLighten$1 = curriedLighten; + +/** + * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight. + * + * @example + * // Styles as object usage + * const styles = { + * background: mix(0.5, '#f00', '#00f') + * background: mix(0.25, '#f00', '#00f') + * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${mix(0.5, '#f00', '#00f')}; + * background: ${mix(0.25, '#f00', '#00f')}; + * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#7f007f"; + * background: "#3f00bf"; + * background: "rgba(63, 0, 191, 0.75)"; + * } + */ +function mix(weight, color, otherColor) { + if (color === 'transparent') return otherColor; + if (otherColor === 'transparent') return color; + if (weight === 0) return otherColor; + var parsedColor1 = parseToRgb(color); + var color1 = _extends$V({}, parsedColor1, { + alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1, }); -(ba.displayName = 'Alert'), (ba.propTypes = { type: Pn.oneOf(Vo).isRequired }); -const ya = c.forwardRef((e, t) => { - let { children: n, type: r, ...o } = e; - const a = r ? ha[r] : ma, - i = r && ga[r]; - return u.createElement( - ea, - Object.assign({ ref: t, type: r, isFloating: !0, role: 'alert' }, o), - r && u.createElement(ta, { hue: i }, u.createElement(a, null)), - n - ); -}); -var wa; -function xa() { - return ( - (xa = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - xa.apply(this, arguments) - ); + var parsedColor2 = parseToRgb(otherColor); + var color2 = _extends$V({}, parsedColor2, { + alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1, + }); + + // The formula is copied from the original Sass implementation: + // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method + var alphaDelta = color1.alpha - color2.alpha; + var x = parseFloat(weight) * 2 - 1; + var y = x * alphaDelta === -1 ? x : x + alphaDelta; + var z = 1 + x * alphaDelta; + var weight1 = (y / z + 1) / 2.0; + var weight2 = 1 - weight1; + var mixedColor = { + red: Math.floor(color1.red * weight1 + color2.red * weight2), + green: Math.floor(color1.green * weight1 + color2.green * weight2), + blue: Math.floor(color1.blue * weight1 + color2.blue * weight2), + alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight)), + }; + return rgba(mixedColor); } -(ya.displayName = 'Notification'), (ya.propTypes = { type: Pn.oneOf(Vo) }); -var ka = function (e) { - return c.createElement( - 'svg', - xa( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - wa || - (wa = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M3 9l6-6m0 6L3 3', - })) - ); -}; -const Ea = u.forwardRef((e, t) => { - const n = _o(Ea, e, 'aria-label', 'Close'), - r = c.useContext(va); - return u.createElement( - qo, - Object.assign({ ref: t, hue: r, 'aria-label': n }, e), - u.createElement(ka, null) + +// prettier-ignore +var curriedMix = curry /* :: */(mix); +var mix$1 = curriedMix; + +/** + * Increases the opacity of a color. Its range for the amount is between 0 to 1. + * + * + * @example + * // Styles as object usage + * const styles = { + * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)'); + * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'), + * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')}; + * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')}, + * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')}, + * ` + * + * // CSS in JS Output + * + * element { + * background: "#fff"; + * background: "rgba(255,255,255,0.7)"; + * background: "rgba(255,0,0,0.7)"; + * } + */ +function opacify(amount, color) { + if (color === 'transparent') return color; + var parsedColor = parseToRgb(color); + var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; + var colorWithAlpha = _extends$V({}, parsedColor, { + alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100), + }); + return rgba(colorWithAlpha); +} + +// prettier-ignore +curry /* :: */(opacify); + +var defaultReturnIfLightColor = '#000'; +var defaultReturnIfDarkColor = '#fff'; + +/** + * Returns black or white (or optional passed colors) for best + * contrast depending on the luminosity of the given color. + * When passing custom return colors, strict mode ensures that the + * return color always meets or exceeds WCAG level AA or greater. If this test + * fails, the default return color (black or white) is returned in place of the + * custom return color. You can optionally turn off strict mode. + * + * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html). + * + * @example + * // Styles as object usage + * const styles = { + * color: readableColor('#000'), + * color: readableColor('black', '#001', '#ff8'), + * color: readableColor('white', '#001', '#ff8'), + * color: readableColor('red', '#333', '#ddd', true) + * } + * + * // styled-components usage + * const div = styled.div` + * color: ${readableColor('#000')}; + * color: ${readableColor('black', '#001', '#ff8')}; + * color: ${readableColor('white', '#001', '#ff8')}; + * color: ${readableColor('red', '#333', '#ddd', true)}; + * ` + * + * // CSS in JS Output + * element { + * color: "#fff"; + * color: "#ff8"; + * color: "#001"; + * color: "#000"; + * } + */ +function readableColor(color, returnIfLightColor, returnIfDarkColor, strict) { + if (returnIfLightColor === void 0) { + returnIfLightColor = defaultReturnIfLightColor; + } + if (returnIfDarkColor === void 0) { + returnIfDarkColor = defaultReturnIfDarkColor; + } + if (strict === void 0) { + strict = true; + } + var isColorLight = getLuminance(color) > 0.179; + var preferredReturnColor = isColorLight ? returnIfLightColor : returnIfDarkColor; + if (!strict || getContrast(color, preferredReturnColor) >= 4.5) { + return preferredReturnColor; + } + return isColorLight ? defaultReturnIfLightColor : defaultReturnIfDarkColor; +} + +/** + * Increases the intensity of a color. Its range is between 0 to 1. The first + * argument of the saturate function is the amount by how much the color + * intensity should be increased. + * + * @example + * // Styles as object usage + * const styles = { + * background: saturate(0.2, '#CCCD64'), + * background: saturate('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${saturate(0.2, '#FFCD64')}; + * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#e0e250"; + * background: "rgba(224,226,80,0.7)"; + * } + */ +function saturate(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString( + _extends$V({}, hslColor, { + saturation: guard(0, 1, hslColor.saturation + parseFloat(amount)), + }) ); -}); -Ea.displayName = 'Close'; -const Sa = u.forwardRef((e, t) => u.createElement(Ko, Object.assign({ ref: t }, e))); -Sa.displayName = 'Title'; -const Ca = (e, t) => { - switch (t.type) { - case 'ADD_TOAST': - return { ...e, toasts: [...e.toasts, t.payload] }; - case 'REMOVE_TOAST': { - const n = e.toasts.filter((e) => e.id !== t.payload); - return { ...e, toasts: n }; - } - case 'UPDATE_TOAST': { - const n = e.toasts.map((e) => { - if (e.id !== t.payload.id) return e; - const n = e, - { content: r, ...o } = t.payload.options; - return r && (n.content = r), (n.options = { ...n.options, ...o }), n; - }); - return { ...e, toasts: n }; - } - case 'REMOVE_ALL_TOASTS': - return { ...e, toasts: [] }; - default: - throw new Error('Invalid toaster reducer action'); - } - }, - Oa = c.createContext(void 0); -function Pa(e, t) { - if (null == e) return {}; - var n = {}; - for (var r in e) - if ({}.hasOwnProperty.call(e, r)) { - if (t.includes(r)) continue; - n[r] = e[r]; - } - return n; } -function Ta(e, t) { - return e - .replace(new RegExp('(^|\\s)' + t + '(?:\\s|$)', 'g'), '$1') - .replace(/\s+/g, ' ') - .replace(/^\s*|\s*$/g, ''); + +// prettier-ignore +curry /* :: */(saturate); + +/** + * Sets the hue of a color to the provided value. The hue range can be + * from 0 and 359. + * + * @example + * // Styles as object usage + * const styles = { + * background: setHue(42, '#CCCD64'), + * background: setHue('244', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setHue(42, '#CCCD64')}; + * background: ${setHue('244', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#cdae64"; + * background: "rgba(107,100,205,0.7)"; + * } + */ +function setHue(hue, color) { + if (color === 'transparent') return color; + return toColorString( + _extends$V({}, parseToHsl(color), { + hue: parseFloat(hue), + }) + ); } -var Ia = !1, - Na = u.createContext(null), - Ma = function (e) { - return e.scrollTop; - }, - La = 'unmounted', - Ra = 'exited', - Aa = 'entering', - Da = 'entered', - ja = 'exiting', - za = (function (e) { - function t(t, n) { - var r; - r = e.call(this, t, n) || this; - var o, - a = n && !n.isMounting ? t.enter : t.appear; - return ( - (r.appearStatus = null), - t.in - ? a - ? ((o = Ra), (r.appearStatus = Aa)) - : (o = Da) - : (o = t.unmountOnExit || t.mountOnEnter ? La : Ra), - (r.state = { status: o }), - (r.nextCallback = null), - r - ); - } - or(t, e), - (t.getDerivedStateFromProps = function (e, t) { - return e.in && t.status === La ? { status: Ra } : null; - }); - var n = t.prototype; - return ( - (n.componentDidMount = function () { - this.updateStatus(!0, this.appearStatus); - }), - (n.componentDidUpdate = function (e) { - var t = null; - if (e !== this.props) { - var n = this.state.status; - this.props.in ? n !== Aa && n !== Da && (t = Aa) : (n !== Aa && n !== Da) || (t = ja); - } - this.updateStatus(!1, t); - }), - (n.componentWillUnmount = function () { - this.cancelNextCallback(); - }), - (n.getTimeouts = function () { - var e, - t, - n, - r = this.props.timeout; - return ( - (e = t = n = r), - null != r && - 'number' != typeof r && - ((e = r.exit), (t = r.enter), (n = void 0 !== r.appear ? r.appear : t)), - { exit: e, enter: t, appear: n } - ); - }), - (n.updateStatus = function (e, t) { - if ((void 0 === e && (e = !1), null !== t)) - if ((this.cancelNextCallback(), t === Aa)) { - if (this.props.unmountOnExit || this.props.mountOnEnter) { - var n = this.props.nodeRef ? this.props.nodeRef.current : k.findDOMNode(this); - n && Ma(n); - } - this.performEnter(e); - } else this.performExit(); - else this.props.unmountOnExit && this.state.status === Ra && this.setState({ status: La }); - }), - (n.performEnter = function (e) { - var t = this, - n = this.props.enter, - r = this.context ? this.context.isMounting : e, - o = this.props.nodeRef ? [r] : [k.findDOMNode(this), r], - a = o[0], - i = o[1], - s = this.getTimeouts(), - l = r ? s.appear : s.enter; - (!e && !n) || Ia - ? this.safeSetState({ status: Da }, function () { - t.props.onEntered(a); - }) - : (this.props.onEnter(a, i), - this.safeSetState({ status: Aa }, function () { - t.props.onEntering(a, i), - t.onTransitionEnd(l, function () { - t.safeSetState({ status: Da }, function () { - t.props.onEntered(a, i); - }); - }); - })); - }), - (n.performExit = function () { - var e = this, - t = this.props.exit, - n = this.getTimeouts(), - r = this.props.nodeRef ? void 0 : k.findDOMNode(this); - t && !Ia - ? (this.props.onExit(r), - this.safeSetState({ status: ja }, function () { - e.props.onExiting(r), - e.onTransitionEnd(n.exit, function () { - e.safeSetState({ status: Ra }, function () { - e.props.onExited(r); - }); - }); - })) - : this.safeSetState({ status: Ra }, function () { - e.props.onExited(r); - }); - }), - (n.cancelNextCallback = function () { - null !== this.nextCallback && (this.nextCallback.cancel(), (this.nextCallback = null)); - }), - (n.safeSetState = function (e, t) { - (t = this.setNextCallback(t)), this.setState(e, t); - }), - (n.setNextCallback = function (e) { - var t = this, - n = !0; - return ( - (this.nextCallback = function (r) { - n && ((n = !1), (t.nextCallback = null), e(r)); - }), - (this.nextCallback.cancel = function () { - n = !1; - }), - this.nextCallback - ); - }), - (n.onTransitionEnd = function (e, t) { - this.setNextCallback(t); - var n = this.props.nodeRef ? this.props.nodeRef.current : k.findDOMNode(this), - r = null == e && !this.props.addEndListener; - if (n && !r) { - if (this.props.addEndListener) { - var o = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], - a = o[0], - i = o[1]; - this.props.addEndListener(a, i); - } - null != e && setTimeout(this.nextCallback, e); - } else setTimeout(this.nextCallback, 0); - }), - (n.render = function () { - var e = this.state.status; - if (e === La) return null; - var t = this.props, - n = t.children; - t.in, - t.mountOnEnter, - t.unmountOnExit, - t.appear, - t.enter, - t.exit, - t.timeout, - t.addEndListener, - t.onEnter, - t.onEntering, - t.onEntered, - t.onExit, - t.onExiting, - t.onExited, - t.nodeRef; - var r = Pa(t, [ - 'children', - 'in', - 'mountOnEnter', - 'unmountOnExit', - 'appear', - 'enter', - 'exit', - 'timeout', - 'addEndListener', - 'onEnter', - 'onEntering', - 'onEntered', - 'onExit', - 'onExiting', - 'onExited', - 'nodeRef', - ]); - return u.createElement( - Na.Provider, - { value: null }, - 'function' == typeof n ? n(e, r) : u.cloneElement(u.Children.only(n), r) - ); - }), - t - ); - })(u.Component); -function Fa() {} -(za.contextType = Na), - (za.propTypes = {}), - (za.defaultProps = { - in: !1, - mountOnEnter: !1, - unmountOnExit: !1, - appear: !1, - enter: !0, - exit: !0, - onEnter: Fa, - onEntering: Fa, - onEntered: Fa, - onExit: Fa, - onExiting: Fa, - onExited: Fa, - }), - (za.UNMOUNTED = La), - (za.EXITED = Ra), - (za.ENTERING = Aa), - (za.ENTERED = Da), - (za.EXITING = ja); -var _a = za, - Ha = function (e, t) { - return ( - e && - t && - t.split(' ').forEach(function (t) { - return ( - (r = t), - void ((n = e).classList - ? n.classList.add(r) - : (function (e, t) { - return e.classList - ? !!t && e.classList.contains(t) - : -1 !== - (' ' + (e.className.baseVal || e.className) + ' ').indexOf(' ' + t + ' '); - })(n, r) || - ('string' == typeof n.className - ? (n.className = n.className + ' ' + r) - : n.setAttribute('class', ((n.className && n.className.baseVal) || '') + ' ' + r))) - ); - var n, r; - }) - ); - }, - $a = function (e, t) { - return ( - e && - t && - t.split(' ').forEach(function (t) { - return ( - (r = t), - void ((n = e).classList - ? n.classList.remove(r) - : 'string' == typeof n.className - ? (n.className = Ta(n.className, r)) - : n.setAttribute('class', Ta((n.className && n.className.baseVal) || '', r))) - ); - var n, r; - }) - ); - }, - Ba = (function (e) { - function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; - return ( - ((t = e.call.apply(e, [this].concat(r)) || this).appliedClasses = { - appear: {}, - enter: {}, - exit: {}, - }), - (t.onEnter = function (e, n) { - var r = t.resolveArguments(e, n), - o = r[0], - a = r[1]; - t.removeClasses(o, 'exit'), - t.addClass(o, a ? 'appear' : 'enter', 'base'), - t.props.onEnter && t.props.onEnter(e, n); - }), - (t.onEntering = function (e, n) { - var r = t.resolveArguments(e, n), - o = r[0], - a = r[1] ? 'appear' : 'enter'; - t.addClass(o, a, 'active'), t.props.onEntering && t.props.onEntering(e, n); - }), - (t.onEntered = function (e, n) { - var r = t.resolveArguments(e, n), - o = r[0], - a = r[1] ? 'appear' : 'enter'; - t.removeClasses(o, a), - t.addClass(o, a, 'done'), - t.props.onEntered && t.props.onEntered(e, n); - }), - (t.onExit = function (e) { - var n = t.resolveArguments(e)[0]; - t.removeClasses(n, 'appear'), - t.removeClasses(n, 'enter'), - t.addClass(n, 'exit', 'base'), - t.props.onExit && t.props.onExit(e); - }), - (t.onExiting = function (e) { - var n = t.resolveArguments(e)[0]; - t.addClass(n, 'exit', 'active'), t.props.onExiting && t.props.onExiting(e); - }), - (t.onExited = function (e) { - var n = t.resolveArguments(e)[0]; - t.removeClasses(n, 'exit'), - t.addClass(n, 'exit', 'done'), - t.props.onExited && t.props.onExited(e); - }), - (t.resolveArguments = function (e, n) { - return t.props.nodeRef ? [t.props.nodeRef.current, e] : [e, n]; - }), - (t.getClassNames = function (e) { - var n = t.props.classNames, - r = 'string' == typeof n, - o = r ? '' + (r && n ? n + '-' : '') + e : n[e]; - return { - baseClassName: o, - activeClassName: r ? o + '-active' : n[e + 'Active'], - doneClassName: r ? o + '-done' : n[e + 'Done'], - }; - }), - t - ); - } - or(t, e); - var n = t.prototype; - return ( - (n.addClass = function (e, t, n) { - var r = this.getClassNames(t)[n + 'ClassName'], - o = this.getClassNames('enter').doneClassName; - 'appear' === t && 'done' === n && o && (r += ' ' + o), - 'active' === n && e && Ma(e), - r && ((this.appliedClasses[t][n] = r), Ha(e, r)); - }), - (n.removeClasses = function (e, t) { - var n = this.appliedClasses[t], - r = n.base, - o = n.active, - a = n.done; - (this.appliedClasses[t] = {}), r && $a(e, r), o && $a(e, o), a && $a(e, a); - }), - (n.render = function () { - var e = this.props; - e.classNames; - var t = Pa(e, ['classNames']); - return u.createElement( - _a, - tr({}, t, { - onEnter: this.onEnter, - onEntered: this.onEntered, - onEntering: this.onEntering, - onExit: this.onExit, - onExiting: this.onExiting, - onExited: this.onExited, - }) - ); - }), - t - ); - })(u.Component); -(Ba.defaultProps = { classNames: '' }), (Ba.propTypes = {}); -var Wa = Ba; -function Va(e, t) { - var n = Object.create(null); - return ( - e && - c.Children.map(e, function (e) { - return e; - }).forEach(function (e) { - n[e.key] = (function (e) { - return t && c.isValidElement(e) ? t(e) : e; - })(e); - }), - n + +// prettier-ignore +curry /* :: */(setHue); + +/** + * Sets the lightness of a color to the provided value. The lightness range can be + * from 0 and 1. + * + * @example + * // Styles as object usage + * const styles = { + * background: setLightness(0.2, '#CCCD64'), + * background: setLightness('0.75', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setLightness(0.2, '#CCCD64')}; + * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#4d4d19"; + * background: "rgba(223,224,159,0.7)"; + * } + */ +function setLightness(lightness, color) { + if (color === 'transparent') return color; + return toColorString( + _extends$V({}, parseToHsl(color), { + lightness: parseFloat(lightness), + }) ); } -function Ua(e, t, n) { - return null != n[t] ? n[t] : e.props[t]; -} -function qa(e, t, n) { - var r = Va(e.children), - o = (function (e, t) { - function n(n) { - return n in t ? t[n] : e[n]; - } - (e = e || {}), (t = t || {}); - var r, - o = Object.create(null), - a = []; - for (var i in e) i in t ? a.length && ((o[i] = a), (a = [])) : a.push(i); - var s = {}; - for (var l in t) { - if (o[l]) - for (r = 0; r < o[l].length; r++) { - var c = o[l][r]; - s[o[l][r]] = n(c); - } - s[l] = n(l); - } - for (r = 0; r < a.length; r++) s[a[r]] = n(a[r]); - return s; - })(t, r); - return ( - Object.keys(o).forEach(function (a) { - var i = o[a]; - if (c.isValidElement(i)) { - var s = a in t, - l = a in r, - u = t[a], - d = c.isValidElement(u) && !u.props.in; - !l || (s && !d) - ? l || !s || d - ? l && - s && - c.isValidElement(u) && - (o[a] = c.cloneElement(i, { - onExited: n.bind(null, i), - in: u.props.in, - exit: Ua(i, 'exit', e), - enter: Ua(i, 'enter', e), - })) - : (o[a] = c.cloneElement(i, { in: !1 })) - : (o[a] = c.cloneElement(i, { - onExited: n.bind(null, i), - in: !0, - exit: Ua(i, 'exit', e), - enter: Ua(i, 'enter', e), - })); - } - }), - o + +// prettier-ignore +curry /* :: */(setLightness); + +/** + * Sets the saturation of a color to the provided value. The saturation range can be + * from 0 and 1. + * + * @example + * // Styles as object usage + * const styles = { + * background: setSaturation(0.2, '#CCCD64'), + * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setSaturation(0.2, '#CCCD64')}; + * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#adad84"; + * background: "rgba(228,229,76,0.7)"; + * } + */ +function setSaturation(saturation, color) { + if (color === 'transparent') return color; + return toColorString( + _extends$V({}, parseToHsl(color), { + saturation: parseFloat(saturation), + }) ); } -var Ya = - Object.values || - function (e) { - return Object.keys(e).map(function (t) { - return e[t]; - }); - }, - Ka = (function (e) { - function t(t, n) { - var r, - o = (r = e.call(this, t, n) || this).handleExited.bind(nr(r)); - return (r.state = { contextValue: { isMounting: !0 }, handleExited: o, firstRender: !0 }), r; - } - or(t, e); - var n = t.prototype; - return ( - (n.componentDidMount = function () { - (this.mounted = !0), this.setState({ contextValue: { isMounting: !1 } }); - }), - (n.componentWillUnmount = function () { - this.mounted = !1; - }), - (t.getDerivedStateFromProps = function (e, t) { - var n, - r, - o = t.children, - a = t.handleExited; - return { - children: t.firstRender - ? ((n = e), - (r = a), - Va(n.children, function (e) { - return c.cloneElement(e, { - onExited: r.bind(null, e), - in: !0, - appear: Ua(e, 'appear', n), - enter: Ua(e, 'enter', n), - exit: Ua(e, 'exit', n), - }); - })) - : qa(e, o, a), - firstRender: !1, - }; - }), - (n.handleExited = function (e, t) { - var n = Va(this.props.children); - e.key in n || - (e.props.onExited && e.props.onExited(t), - this.mounted && - this.setState(function (t) { - var n = tr({}, t.children); - return delete n[e.key], { children: n }; - })); - }), - (n.render = function () { - var e = this.props, - t = e.component, - n = e.childFactory, - r = Pa(e, ['component', 'childFactory']), - o = this.state.contextValue, - a = Ya(this.state.children).map(n); - return ( - delete r.appear, - delete r.enter, - delete r.exit, - null === t - ? u.createElement(Na.Provider, { value: o }, a) - : u.createElement(Na.Provider, { value: o }, u.createElement(t, r, a)) - ); - }), - t - ); - })(u.Component); -(Ka.propTypes = {}), - (Ka.defaultProps = { - component: 'div', - childFactory: function (e) { - return e; - }, + +// prettier-ignore +curry /* :: */(setSaturation); + +/** + * Shades a color by mixing it with black. `shade` can produce + * hue shifts, where as `darken` manipulates the luminance channel and therefore + * doesn't produce hue shifts. + * + * @example + * // Styles as object usage + * const styles = { + * background: shade(0.25, '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${shade(0.25, '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#00003f"; + * } + */ + +function shade(percentage, color) { + if (color === 'transparent') return color; + return mix$1(parseFloat(percentage), 'rgb(0, 0, 0)', color); +} + +// prettier-ignore +curry /* :: */(shade); + +/** + * Tints a color by mixing it with white. `tint` can produce + * hue shifts, where as `lighten` manipulates the luminance channel and therefore + * doesn't produce hue shifts. + * + * @example + * // Styles as object usage + * const styles = { + * background: tint(0.25, '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${tint(0.25, '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#bfbfff"; + * } + */ + +function tint(percentage, color) { + if (color === 'transparent') return color; + return mix$1(parseFloat(percentage), 'rgb(255, 255, 255)', color); +} + +// prettier-ignore +curry /* :: */(tint); + +/** + * Decreases the opacity of a color. Its range for the amount is between 0 to 1. + * + * + * @example + * // Styles as object usage + * const styles = { + * background: transparentize(0.1, '#fff'), + * background: transparentize(0.2, 'hsl(0, 0%, 100%)'), + * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${transparentize(0.1, '#fff')}; + * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')}; + * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(255,255,255,0.9)"; + * background: "rgba(255,255,255,0.8)"; + * background: "rgba(255,0,0,0.3)"; + * } + */ +function transparentize(amount, color) { + if (color === 'transparent') return color; + var parsedColor = parseToRgb(color); + var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; + var colorWithAlpha = _extends$V({}, parsedColor, { + alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100), }); -var Ga = Ka, - Qa = function () { - var e = 1, - t = new WeakMap(), - n = function (r, o) { - return 'number' == typeof r || 'string' == typeof r - ? o - ? 'idx-'.concat(o) - : 'val-'.concat(r) - : t.has(r) - ? 'uid' + t.get(r) - : (t.set(r, e++), n(r)); - }; - return n; - }, - Xa = Qa(), - Ja = function (e) { - return void 0 === e && (e = ''), { value: 1, prefix: e, uid: Qa() }; - }, - Za = Ja(), - ei = c.createContext(Ja()), - ti = function () { - var e = c.useContext(ei), - t = c.useState(function () { - return (function (e) { - var t = e || Za, - n = (function (e) { - return e ? e.prefix : ''; - })(t), - r = (function (e) { - return e.value++; - })(t), - o = n + r; - return { - uid: o, - gen: function (e) { - return o + t.uid(e); - }, - }; - })(e); - })[0]; - return t; - }; -const ni = { autoDismiss: 5e3, placement: 'top-end' }, - ri = () => { - const e = c.useContext(Oa); - if (void 0 === e) throw new Error('useToast() must be used within a "ToastProvider"'); - const { dispatch: t, state: n } = e, - r = c.useCallback( - function (e) { - const n = { - ...ni, - ...(arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}), - }, - r = { id: n.id || Xa(e), content: e, options: n }; - return t({ type: 'ADD_TOAST', payload: r }), r.id; - }, - [t] - ), - o = c.useCallback( - (e) => { - t({ type: 'REMOVE_TOAST', payload: e }); - }, - [t] - ), - a = c.useCallback( - (e, n) => { - t({ type: 'UPDATE_TOAST', payload: { id: e, options: n } }); - }, - [t] - ); - return { - addToast: r, - removeToast: o, - updateToast: a, - removeAllToasts: c.useCallback(() => { - t({ type: 'REMOVE_ALL_TOASTS' }); - }, [t]), - toasts: n.toasts, - }; - }, - oi = (e) => { - let { toast: t, pauseTimers: n } = e; - const { removeToast: r } = ri(), - { id: o } = t, - { autoDismiss: a } = t.options, - [i, s] = c.useState(NaN), - l = c.useRef(Date.now()), - u = c.useRef(i); - c.useEffect(() => { - s('number' == typeof a ? a : NaN); - }, [a]), - c.useEffect(() => { - n && !isNaN(i) - ? ((u.current = i - (Date.now() - l.current)), s(NaN)) - : n || !isNaN(i) || isNaN(u.current) || s(u.current); - }, [n, i]), - c.useEffect(() => { - let e; - return ( - isNaN(i) || - ((l.current = Date.now()), - (e = setTimeout(() => { - r(o); - }, i))), - () => { - clearTimeout(e); - } - ); - }, [o, n, i, r]); - const d = c.useCallback(() => { - r(t.id); - }, [r, t.id]); - return t.content({ close: d }); - }, - ai = 'garden-toast-transition', - ii = '400ms', - si = Sn.div.withConfig({ - displayName: 'styled__StyledFadeInTransition', - componentId: 'sc-nq0usb-0', - })( - [ - 'transition:opacity ', - ' ease-in 300ms;opacity:', - ';margin-bottom:', - 'px;', - ' &.', - '-enter{transform:translateY( ', - ' );opacity:0;max-height:0;}&.', - '-enter-active{transform:translateY(0);transition:opacity ', - ' ease-in,transform ', - ' cubic-bezier(0.15,0.85,0.35,1.2),max-height ', - ';opacity:1;max-height:500px;}&.', - '-exit{opacity:1;max-height:500px;}&.', - '-exit-active{transition:opacity 550ms ease-out,max-height ', - ' linear 150ms;opacity:0;max-height:0;}', - ], - ii, - (e) => (e.isHidden ? '0 !important' : 1), - (e) => 2 * e.theme.space.base, - (e) => - e.isHidden && { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - ai, - (e) => - 'bottom-start' === e.placement || 'bottom' === e.placement || 'bottom-end' === e.placement - ? '100px' - : '-100px', - ai, - ii, - ii, - ii, - ai, - ai, - ii - ); -si.defaultProps = { theme: Xn }; -const li = Sn.div.withConfig({ - displayName: 'styled__StyledTransitionContainer', - componentId: 'sc-nq0usb-1', -})( - ['position:fixed;z-index:', ';', ';'], - (e) => e.toastZIndex, - (e) => { - const t = 16 * e.theme.space.base + 'px', - n = 3 * e.theme.space.base + 'px', - r = rn(['top:', ';left:', ';'], t, n), - o = rn(['top:', ';left:50%;transform:translate(-50%,0);'], t), - a = rn(['top:', ';right:', ';'], t, n), - i = rn(['bottom:', ';left:', ';'], t, n), - s = rn(['bottom:', ';left:50%;transform:translate(-50%,0);'], t), - l = rn(['right:', ';bottom:', ';'], n, t); - switch (e.toastPlacement) { - case 'top-start': - return e.theme.rtl ? a : r; - case 'top': - return o; - case 'top-end': - return e.theme.rtl ? r : a; - case 'bottom-start': - return e.theme.rtl ? l : i; - case 'bottom': - return s; - case 'bottom-end': - return e.theme.rtl ? i : l; - default: - return ''; - } + return rgba(colorWithAlpha); +} + +// prettier-ignore +curry /* :: */(transparentize); + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as the `TypeError` message for "Functions" methods. */ +var FUNC_ERROR_TEXT$1 = 'Expected a function'; + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** `Object#toString` result references. */ +var funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal$1 = + typeof commonjsGlobal == 'object' && + commonjsGlobal && + commonjsGlobal.Object === Object && + commonjsGlobal; + +/** Detect free variable `self`. */ +var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')(); + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} } + return result; +} + +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto$1 = Object.prototype; + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root$1['__core-js_shared__']; + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function () { + var uid = /[^.]+$/.exec((coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || ''); + return uid ? 'Symbol(src)_1.' + uid : ''; +})(); + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto$1.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString$1 = objectProto$1.toString; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp( + '^' + + funcToString + .call(hasOwnProperty) + .replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + + '$' ); -li.defaultProps = { theme: Xn }; -const ci = (e) => { - let { toasts: t, placement: n, zIndex: r, limit: o, ...a } = e; - const [i, s] = c.useState(!1), - l = c.useContext(mn), - d = Jn(l), - p = c.useCallback((e) => { - 'visible' === e.target.visibilityState ? s(!1) : s(!0); - }, []); - c.useEffect( - () => ( - d && d.addEventListener('visibilitychange', p), - () => { - d && d.removeEventListener('visibilitychange', p); - } - ), - [d, p] - ); - const f = c.useCallback(() => { - s(!0); - }, []), - m = c.useCallback(() => { - s(!1); - }, []), - h = c.useCallback( - (e) => - 'bottom' === n || 'bottom-start' === n || 'bottom-end' === n ? e < t.length - o : e >= o, - [o, n, t.length] - ); - return u.createElement( - li, - Object.assign( - { key: n, toastPlacement: n, toastZIndex: r, onMouseEnter: f, onMouseLeave: m }, - a - ), - u.createElement( - Ga, - null, - t.map((e, t) => { - const r = u.createRef(); - return u.createElement( - Wa, - { - key: e.id, - timeout: { enter: 400, exit: 550 }, - unmountOnExit: !0, - classNames: ai, - nodeRef: r, - }, - u.createElement( - si, - { ref: r, placement: n, isHidden: h(t) }, - u.createElement(oi, { toast: e, pauseTimers: i || h(t) }) - ) - ); - }) - ) - ); - }, - ui = (e) => { - let { limit: t, zIndex: n, placementProps: r = {}, children: o } = e; - const [a, i] = c.useReducer(Ca, { toasts: [] }), - s = c.useMemo(() => ({ state: a, dispatch: i }), [a, i]), - l = c.useCallback( - (e) => { - let o = a.toasts.filter((t) => t.options.placement === e); - return ( - ('bottom' !== e && 'bottom-start' !== e && 'bottom-end' !== e) || (o = o.reverse()), - u.createElement( - ci, - Object.assign({ placement: e, toasts: o, zIndex: n, limit: t }, r[e]) - ) - ); - }, - [t, a.toasts, n, r] - ); - return u.createElement( - Oa.Provider, - { value: s }, - l('top-start'), - l('top'), - l('top-end'), - o, - l('bottom-start'), - l('bottom'), - l('bottom-end') - ); - }; -(ui.displayName = 'ToastProvider'), - (ui.defaultProps = { limit: 4 }), - (ui.propTypes = { limit: Pn.number, zIndex: Pn.number, placementProps: Pn.object }); -const di = c.createContext(null), - pi = Sn.div` - z-index: 2147483647; - position: fixed; -`; -function fi({ children: e }) { - const [t, n] = c.useState(); - return h.jsxs(h.Fragment, { - children: [ - h.jsx(pi, { - ref: (e) => { - n(e); - }, - }), - t && h.jsx(di.Provider, { value: t, children: e }), - ], - }); + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/* Built-in method references that are verified to be native. */ +var Map$1 = getNative(root$1, 'Map'), + nativeCreate = getNative(Object, 'create'); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -function mi({ theme: e, children: t }) { - return h.jsx(Zn, { - theme: e, - children: h.jsx(ui, { zIndex: 2147483647, children: h.jsx(fi, { children: t }) }), - }); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; } -function hi() { - const e = c.useContext(di); - if (null === e) - throw new Error('useModalContainer should be used inside a ModalContainerProvider'); - return e; + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; } -const gi = (e) => { - let { idPrefix: t, hasHint: n, hasMessage: r } = e; - const o = _n(t), - a = `${o}--input`, - i = `${o}--label`, - s = `${o}--hint`, - l = `${o}--message`, - u = c.useCallback( - function (e) { - let { id: t = i, htmlFor: n = a, ...r } = void 0 === e ? {} : e; - return { - 'data-garden-container-id': 'containers.field.label', - 'data-garden-container-version': '3.0.19', - id: t, - htmlFor: n, - ...r, - }; - }, - [i, a] - ), - d = c.useCallback( - function (e) { - let { id: t = s, ...n } = void 0 === e ? {} : e; - return { - 'data-garden-container-id': 'containers.field.hint', - 'data-garden-container-version': '3.0.19', - id: t, - ...n, - }; - }, - [s] - ), - p = c.useCallback( - function (e) { - let { id: t = a, 'aria-describedby': o, ...c } = void 0 === e ? {} : e; - return { - 'data-garden-container-id': 'containers.field.input', - 'data-garden-container-version': '3.0.19', - id: t, - 'aria-labelledby': i, - 'aria-describedby': (() => { - if (o) return o; - const e = []; - return n && e.push(s), r && e.push(l), e.length > 0 ? e.join(' ') : void 0; - })(), - ...c, - }; - }, - [a, i, s, l, n, r] - ), - f = c.useCallback( - function (e) { - let { id: t = l, role: n = 'alert', ...r } = void 0 === e ? {} : e; - return { - 'data-garden-container-id': 'containers.field.message', - 'data-garden-container-version': '3.0.19', - role: null === n ? void 0 : n, - id: t, - ...r, - }; - }, - [l] - ); - return c.useMemo( - () => ({ getLabelProps: u, getHintProps: d, getInputProps: p, getMessageProps: f }), - [u, d, p, f] - ); -}; -Pn.func, Pn.func, Pn.string, Pn.bool, Pn.bool; -const vi = c.createContext(void 0), - bi = () => c.useContext(vi), - yi = 'forms.field', - wi = Sn.div - .attrs({ 'data-garden-id': yi, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledField', componentId: 'sc-12gzfsu-0' })( - ['position:relative;direction:', ';margin:0;border:0;padding:0;font-size:0;', ';'], - (e) => (e.theme.rtl ? 'rtl' : 'ltr'), - (e) => er(yi, e) - ); -wi.defaultProps = { theme: Xn }; -const xi = 'forms.input_label', - ki = Sn.label - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || xi, - 'data-garden-version': e['data-garden-version'] || '8.76.2', - })) - .withConfig({ displayName: 'StyledLabel', componentId: 'sc-2utmsz-0' })( - [ - 'direction:', - ';vertical-align:middle;line-height:', - ';color:', - ';font-size:', - ';font-weight:', - ';&[hidden]{display:', - ';vertical-align:', - ';text-indent:', - ';font-size:', - ';', - ';}', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(5 * e.theme.space.base, e.theme.fontSizes.md), - (e) => Ro('foreground', 600, e.theme), - (e) => e.theme.fontSizes.md, - (e) => (e.isRegular ? e.theme.fontWeights.regular : e.theme.fontWeights.semibold), - (e) => (e.isRadio ? 'inline-block' : 'inline'), - (e) => e.isRadio && 'top', - (e) => e.isRadio && '-100%', - (e) => e.isRadio && '0', - (e) => - !e.isRadio && { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(xi, e) - ); -ki.defaultProps = { theme: Xn }; -const Ei = 'forms.input_hint', - Si = Sn.div - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || Ei, - 'data-garden-version': e['data-garden-version'] || '8.76.2', - })) - .withConfig({ displayName: 'StyledHint', componentId: 'sc-17c2wu8-0' })( - [ - 'direction:', - ';display:block;vertical-align:middle;line-height:', - ';color:', - ';font-size:', - ';', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(5 * e.theme.space.base, e.theme.fontSizes.md), - (e) => Ro('neutralHue', 600, e.theme), - (e) => e.theme.fontSizes.md, - (e) => er(Ei, e) - ); -var Ci, Oi; -function Pi() { - return ( - (Pi = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Pi.apply(this, arguments) - ); + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; } -Si.defaultProps = { theme: Xn }; -var Ti, - Ii, - Ni = function (e) { - return c.createElement( - 'svg', - Pi( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Ci || - (Ci = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }), - c.createElement('path', { strokeLinecap: 'round', d: 'M7.5 4.5V9' }) - )), - Oi || (Oi = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }; -function Mi() { - return ( - (Mi = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Mi.apply(this, arguments) - ); + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); } -var Li, - Ri = function (e) { - return c.createElement( - 'svg', - Mi( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Ti || - (Ti = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5', - })), - Ii || (Ii = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }; -function Ai() { - return ( - (Ai = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Ai.apply(this, arguments) - ); + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value; + return this; } -var Di = function (e) { - return c.createElement( - 'svg', - Ai( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Li || - (Li = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('path', { - strokeLinecap: 'round', - strokeLinejoin: 'round', - d: 'M4 9l2.5 2.5 5-5', - }), - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }) - )) - ); -}; -const ji = 'forms.input_message_icon', - zi = Sn((e) => { - let t, - { children: n, validation: r, ...o } = e; - return ( - (t = - 'error' === r - ? u.createElement(Ni, o) - : 'success' === r - ? u.createElement(Di, o) - : 'warning' === r - ? u.createElement(Ri, o) - : u.cloneElement(c.Children.only(n))), - t - ); - }) - .attrs({ 'data-garden-id': ji, 'data-garden-version': '8.76.2', 'aria-hidden': null }) - .withConfig({ displayName: 'StyledMessageIcon', componentId: 'sc-1ph2gba-0' })( - ['width:', ';height:', ';', ';'], - (e) => e.theme.iconSizes.md, - (e) => e.theme.iconSizes.md, - (e) => er(ji, e) - ); -zi.defaultProps = { theme: Xn }; -const Fi = 'forms.input_message', - _i = Sn.div - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || Fi, - 'data-garden-version': e['data-garden-version'] || '8.76.2', - })) - .withConfig({ displayName: 'StyledMessage', componentId: 'sc-30hgg7-0' })( - [ - 'direction:', - ';display:inline-block;position:relative;vertical-align:middle;line-height:', - ';font-size:', - ';', - ';& ', - '{position:absolute;top:-1px;', - ':0;}', - ':not([hidden]) + &{display:block;margin-top:', - ';}', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(e.theme.iconSizes.md, e.theme.fontSizes.sm), - (e) => e.theme.fontSizes.sm, - (e) => - ((e) => { - const t = e.theme.rtl, - n = gr(`${e.theme.space.base} * 2px + ${e.theme.iconSizes.md}`); - let r; - return ( - (r = - 'error' === e.validation - ? Ro('dangerHue', 600, e.theme) - : 'success' === e.validation - ? Ro('successHue', 600, e.theme) - : 'warning' === e.validation - ? Ro('warningHue', 700, e.theme) - : Ro('neutralHue', 700, e.theme)), - rn(['padding-', ':', ';color:', ';'], t ? 'right' : 'left', e.validation && n, r) - ); - })(e), - zi, - (e) => (e.theme.rtl ? 'right' : 'left'), - ki, - (e) => gr(`${e.theme.space.base} * 1px`), - (e) => er(Fi, e) - ); -_i.defaultProps = { theme: Xn }; -const Hi = 'forms.input', - $i = Sn.input - .attrs((e) => { - return { - 'data-garden-id': Hi, - 'data-garden-version': '8.76.2', - 'aria-invalid': ((t = e.validation), 'warning' === t || 'error' === t), - }; - var t; - }) - .withConfig({ displayName: 'StyledTextInput', componentId: 'sc-k12n8x-0' })( - [ - 'appearance:none;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out,z-index 0.25s ease-in-out;direction:', - ';border:', - ';border-radius:', - ';width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:', - ';}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:', - ';}&::-webkit-color-swatch{border:none;border-radius:', - ';}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:', - ";line-height:1;}&::placeholder{opacity:1;}&:invalid{box-shadow:none;}&[type='file']::-ms-value{display:none;}@media screen and (min--moz-device-pixel-ratio:0){&[type='number']{appearance:textfield;}}", - ';', - ';&:disabled{cursor:default;}', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => (e.isBare ? 'none' : e.theme.borders.sm), - (e) => (e.isBare ? '0' : e.theme.borderRadii.md), - (e) => e.theme.borderRadii.sm, - (e) => e.theme.borderRadii.sm, - (e) => e.theme.borderRadii.sm, - (e) => e.theme.rtl && 'rtl', - (e) => - ((e) => { - const t = e.theme.fontSizes.md, - n = 3 * e.theme.space.base + 'px'; - let r, o, a, i; - e.isCompact - ? ((r = 8 * e.theme.space.base + 'px'), - (o = 1.5 * e.theme.space.base + 'px'), - (a = gr(`${e.theme.fontSizes.sm} - 1`)), - (i = 6 * e.theme.space.base + 'px')) - : ((r = 10 * e.theme.space.base + 'px'), - (o = 2.5 * e.theme.space.base + 'px'), - (a = e.theme.fontSizes.sm), - (i = 7 * e.theme.space.base + 'px')); - const s = gr(`${r} - (${o} * 2) - (${e.theme.borderWidths.sm} * 2)`), - l = e.isBare ? '0' : `${wr(o, t)} ${wr(n, t)}`, - c = gr(`(${s} - ${i}) / 2`), - u = gr(`${o} + ${c} - ${n}`); - return rn( - [ - 'padding:', - ';min-height:', - ';line-height:', - ';font-size:', - ';&::-ms-browse{font-size:', - ";}&[type='date'],&[type='datetime-local'],&[type='file'],&[type='month'],&[type='time'],&[type='week']{max-height:", - ";}&[type='file']{line-height:1;}@supports (-ms-ime-align:auto){&[type='color']{padding:", - ';}}&::-moz-color-swatch{margin-top:', - ';margin-left:', - ';width:calc(100% + ', - ');height:', - ';}&::-webkit-color-swatch{margin:', - ' ', - ';}', - ':not([hidden]) + &&,', - ' + &&,', - ' + &&,&& + ', - ',&& ~ ', - '{margin-top:', - 'px;}', - ], - l, - e.isBare ? '1em' : r, - Do(s, t), - t, - a, - r, - e.isCompact ? '0 2px' : '1px 3px', - c, - u, - gr(`${u} * -2`), - i, - c, - u, - ki, - Si, - _i, - Si, - _i, - e.theme.space.base * (e.isCompact ? 1 : 2) - ); - })(e), - (e) => - ((e) => { - const t = 'primaryHue', - n = 600, - r = Ro('neutralHue', 400, e.theme); - let o, - a, - i, - s = t, - l = n; - if (e.validation) { - let r = t; - 'success' === e.validation - ? (r = 'successHue') - : 'warning' === e.validation - ? ((r = 'warningHue'), (l = 700)) - : 'error' === e.validation && (r = 'dangerHue'), - (o = Ro(r, n, e.theme)), - (a = o), - (i = o), - (s = r); - } else (o = Ro('neutralHue', 300, e.theme)), (a = Ro('primaryHue', n, e.theme)), (i = a); - const c = Ro('neutralHue', 100, e.theme), - u = Ro('neutralHue', 300, e.theme), - d = c, - p = Ro('neutralHue', 200, e.theme), - f = Ro('neutralHue', 400, e.theme); - let m = o; - return ( - e.isFocused && (m = i), - e.isHovered && (m = a), - rn( - [ - 'border-color:', - ';background-color:', - ';color:', - ';&::placeholder{color:', - ";}&[readonly],&[aria-readonly='true']{border-color:", - ';background-color:', - ';}&:hover{border-color:', - ';}', - " &:disabled,&[aria-disabled='true']{border-color:", - ';background-color:', - ';color:', - ';}', - ], - m, - e.isBare ? 'transparent' : Ro('background', 600, e.theme), - Ro('foreground', 600, e.theme), - r, - u, - !e.isBare && c, - a, - Bo({ - theme: e.theme, - inset: e.focusInset, - condition: !e.isBare, - hue: s, - shade: l, - styles: { borderColor: i }, - }), - p, - !e.isBare && d, - f - ) - ); - })(e), - (e) => er(Hi, e) - ); -$i.defaultProps = { theme: Xn }; -const Bi = 'forms.textarea', - Wi = Sn($i) - .attrs({ as: 'textarea', 'data-garden-id': Bi, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTextarea', componentId: 'sc-wxschl-0' })( - ['resize:', ';overflow:auto;', ';', ';'], - (e) => (e.isResizable ? 'vertical' : 'none'), - (e) => - e.isHidden && - '\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n height: 0;\n top: 0;\n left: 0;\n transform: translateZ(0);\n', - (e) => er(Bi, e) - ); -Wi.defaultProps = { theme: Xn }; -const Vi = 'forms.media_figure', - Ui = Sn((e) => { - let { - children: t, - position: n, - isHovered: r, - isFocused: o, - isDisabled: a, - isRotated: i, - theme: s, - ...l - } = e; - return u.cloneElement(c.Children.only(t), l); - }) - .attrs({ 'data-garden-id': Vi, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTextMediaFigure', componentId: 'sc-1qepknj-0' })( - [ - 'transform:', - ';transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;', - ';', - ' ', - ';', - ], - (e) => e.isRotated && `rotate(${e.theme.rtl ? '-' : '+'}180deg)`, - (e) => - ((e) => { - let t = 600; - return ( - e.isDisabled ? (t = 400) : (e.isHovered || e.isFocused) && (t = 700), - rn(['color:', ';'], Ro('neutralHue', t, e.theme)) - ); - })(e), - (e) => - ((e) => { - const t = e.theme.iconSizes.md, - n = `1px ${2 * e.theme.space.base}px auto 0`, - r = `1px 0 auto ${2 * e.theme.space.base}px`; - let o; - return ( - (o = 'start' === e.position ? (e.theme.rtl ? r : n) : e.theme.rtl ? n : r), - rn(['margin:', ';width:', ';height:', ';'], o, t, t) - ); - })(e), - (e) => er(Vi, e) - ); -Ui.defaultProps = { theme: Xn }; -const qi = 'forms.faux_input', - Yi = { success: 'successHue', warning: 'warningHue', error: 'dangerHue' }; -function Ki(e) { - return e ? Yi[e] : arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'primaryHue'; + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -const Gi = Sn($i) - .attrs((e) => ({ - as: 'div', - 'aria-readonly': e.isReadOnly, - 'aria-disabled': e.isDisabled, - 'data-garden-id': qi, - 'data-garden-version': '8.76.2', - })) - .withConfig({ displayName: 'StyledTextFauxInput', componentId: 'sc-yqw7j9-0' })( - [ - 'display:', - ';align-items:', - ';cursor:', - ';overflow:hidden;', - ' & > ', - '{vertical-align:', - ';', - '{box-shadow:unset;}}& > ', - '{flex-shrink:', - ';}', - ';', - ], - (e) => (e.mediaLayout ? 'inline-flex' : 'inline-block'), - (e) => e.mediaLayout && 'baseline', - (e) => (e.mediaLayout && !e.isDisabled ? 'text' : 'default'), - (e) => { - const { theme: t, validation: n, focusInset: r, isBare: o, isFocused: a } = e; - return rn( - ['', ''], - Bo({ - theme: t, - inset: r, - condition: !o, - hue: Ki(n), - shade: 'warning' === n ? 700 : 600, - selector: a ? '&' : '&:focus-within', - styles: { borderColor: Ro(Ki(n), 600, t) }, - }) - ); - }, - $i, - (e) => !e.mediaLayout && 'baseline', - $o, - Ui, - (e) => e.mediaLayout && '0', - (e) => er(qi, e) -); -Gi.defaultProps = { theme: Xn }; -const Qi = 'forms.media_input', - Xi = Sn($i) - .attrs({ 'data-garden-id': Qi, 'data-garden-version': '8.76.2', isBare: !0 }) - .withConfig({ displayName: 'StyledTextMediaInput', componentId: 'sc-12i9xfi-0' })( - ['flex-grow:1;', ';'], - (e) => er(Qi, e) - ); -Xi.defaultProps = { theme: Xn }; -const Ji = 'forms.radio_label', - Zi = Sn(ki) - .attrs({ 'data-garden-id': Ji, 'data-garden-version': '8.76.2', isRadio: !0 }) - .withConfig({ displayName: 'StyledRadioLabel', componentId: 'sc-1aq2e5t-0' })( - ['display:inline-block;position:relative;cursor:pointer;', ';', ';'], - (e) => - ((e) => { - const t = 4 * e.theme.space.base, - n = t + 2 * e.theme.space.base, - r = 5 * e.theme.space.base; - return rn( - ['padding-', ':', 'px;&[hidden]{padding-', ':', 'px;line-height:', 'px;}'], - e.theme.rtl ? 'right' : 'left', - n, - e.theme.rtl ? 'right' : 'left', - t, - r - ); - })(e), - (e) => er(Ji, e) - ); -Zi.defaultProps = { theme: Xn }; -const es = 'forms.checkbox_label', - ts = Sn(Zi) - .attrs({ 'data-garden-id': es, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledCheckLabel', componentId: 'sc-x7nr1-0' })(['', ';'], (e) => - er(es, e) - ); -ts.defaultProps = { theme: Xn }; -const ns = 'forms.radio_hint', - rs = Sn(Si) - .attrs({ 'data-garden-id': ns, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledRadioHint', componentId: 'sc-eo8twg-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 6px`), - (e) => er(ns, e) - ); -rs.defaultProps = { theme: Xn }; -const os = 'forms.checkbox_hint', - as = Sn(rs) - .attrs({ 'data-garden-id': os, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledCheckHint', componentId: 'sc-1kl8e8c-0' })(['', ';'], (e) => - er(os, e) - ); -as.defaultProps = { theme: Xn }; -const is = 'forms.radio', - ss = Sn.input - .attrs({ 'data-garden-id': is, 'data-garden-version': '8.76.2', type: 'radio' }) - .withConfig({ displayName: 'StyledRadioInput', componentId: 'sc-qsavpv-0' })( - [ - 'position:absolute;opacity:0;margin:0;& ~ ', - '::before{position:absolute;', - ':0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border:', - ";border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", - ' > svg{position:absolute;}', - ';&:focus ~ ', - '::before{outline:none;}& ~ ', - ':active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}', - ';&:disabled ~ ', - '{cursor:default;}', - ';', - ], - Zi, - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => e.theme.borders.sm, - Zi, - (e) => - ((e) => { - const t = 5 * e.theme.space.base + 'px', - n = 4 * e.theme.space.base + 'px', - r = gr(`(${t} - ${n}) / 2`), - o = e.theme.iconSizes.sm, - a = gr(`(${n} - ${o}) / 2`), - i = gr(`${a} + ${r}`), - s = e.theme.space.base * (e.isCompact ? 1 : 2) + 'px'; - return rn( - [ - 'top:', - ';width:', - ';height:', - ';& ~ ', - '::before{top:', - ';background-size:', - ';width:', - ';height:', - ';box-sizing:border-box;}& ~ ', - ' > svg{top:', - ';', - ':', - ';width:', - ';height:', - ';}&& ~ ', - ' ~ ', - '{margin-top:', - ';}', - ], - r, - n, - n, - Zi, - r, - e.theme.iconSizes.sm, - n, - n, - Zi, - i, - e.theme.rtl ? 'right' : 'left', - a, - o, - o, - Zi, - _i, - s - ); - })(e), - Zi, - Zi, - (e) => - ((e) => { - const t = 600, - n = Ro('neutralHue', 300, e.theme), - r = Ro('background', 600, e.theme), - o = r, - a = Ro('primaryHue', t, e.theme, 0.08), - i = Ro('primaryHue', t, e.theme), - s = i, - l = Ro('primaryHue', t, e.theme, 0.2), - c = s, - u = s, - d = u, - p = Ro('primaryHue', 700, e.theme), - f = p, - m = Ro('primaryHue', 800, e.theme), - h = m, - g = Ro('neutralHue', 200, e.theme); - return rn( - [ - '& ~ ', - '::before{border-color:', - ';background-color:', - ';}& ~ ', - ' > svg{color:', - ';}& ~ ', - ':hover::before{border-color:', - ';background-color:', - ';}', - ' & ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:checked ~ ', - '::before{border-color:', - ';background-color:', - ';}&:enabled:checked ~ ', - ':hover::before{border-color:', - ';background-color:', - ';}&:enabled:checked ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:disabled ~ ', - '::before{border-color:transparent;background-color:', - ';}', - ], - Zi, - n, - r, - Zi, - o, - Zi, - i, - a, - Bo({ - theme: e.theme, - styles: { borderColor: s }, - selector: `&:focus-visible ~ ${Zi}::before, &[data-garden-focus-visible='true'] ~ ${Zi}::before`, - }), - Zi, - c, - l, - Zi, - u, - d, - Zi, - p, - f, - Zi, - m, - h, - Zi, - g - ); - })(e), - Zi, - (e) => er(is, e) - ); -ss.defaultProps = { theme: Xn }; -const ls = 'forms.checkbox', - cs = Sn(ss) - .attrs({ 'data-garden-id': ls, 'data-garden-version': '8.76.2', type: 'checkbox' }) - .withConfig({ displayName: 'StyledCheckInput', componentId: 'sc-176jxxe-0' })( - ['& ~ ', '::before{border-radius:', ';}', ';', ';'], - ts, - (e) => e.theme.borderRadii.md, - (e) => - ((e) => { - const t = Ro('primaryHue', 600, e.theme), - n = t, - r = Ro('primaryHue', 700, e.theme), - o = r, - a = Ro('neutralHue', 200, e.theme); - return rn( - [ - '&:indeterminate ~ ', - '::before{border-color:', - ';background-color:', - ';}&:enabled:indeterminate ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:disabled:indeterminate ~ ', - '::before{border-color:transparent;background-color:', - ';}', - ], - ts, - t, - n, - ts, - r, - o, - ts, - a - ); - })(e), - (e) => er(ls, e) - ); -cs.defaultProps = { theme: Xn }; -const us = 'forms.radio_message', - ds = Sn(_i) - .attrs({ 'data-garden-id': us, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledRadioMessage', componentId: 'sc-1pmi0q8-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 6px`), - (e) => er(us, e) - ); -ds.defaultProps = { theme: Xn }; -const ps = 'forms.checkbox_message', - fs = Sn(ds) - .attrs({ 'data-garden-id': ps, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledCheckMessage', componentId: 'sc-s4p6kd-0' })(['', ';'], (e) => - er(ps, e) - ); -var ms; -function hs() { - return ( - (hs = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - hs.apply(this, arguments) - ); + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; } -fs.defaultProps = { theme: Xn }; -const gs = 'forms.check_svg', - vs = Sn(function (e) { - return c.createElement( - 'svg', - hs( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - ms || - (ms = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - strokeLinejoin: 'round', - strokeWidth: 2, - d: 'M3 6l2 2 4-4', - })) - ); - }) - .attrs({ 'data-garden-id': gs, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledCheckSvg', componentId: 'sc-fvxetk-0' })( - [ - 'transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;', - ':checked ~ ', - ' > &{opacity:1;}', - ':indeterminate ~ ', - ' > &{opacity:0;}', - ';', - ], - cs, - ts, - cs, - ts, - (e) => er(gs, e) - ); -var bs; -function ys() { - return ( - (ys = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - ys.apply(this, arguments) - ); + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +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); + } + return true; } -vs.defaultProps = { theme: Xn }; -const ws = 'forms.dash_svg', - xs = Sn(function (e) { - return c.createElement( - 'svg', - ys( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - bs || - (bs = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - strokeWidth: 2, - d: 'M3 6h6', - })) - ); - }) - .attrs({ 'data-garden-id': ws, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledDashSvg', componentId: 'sc-z3vq71-0' })( - [ - 'transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;', - ':indeterminate ~ ', - ' > &{opacity:1;}', - ';', - ], - cs, - ts, - (e) => er(ws, e) - ); -xs.defaultProps = { theme: Xn }; -const ks = 'forms.file_upload', - Es = Sn.div - .attrs({ 'data-garden-id': ks, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileUpload', componentId: 'sc-1rodjgn-0' })( - [ - 'display:flex;align-items:center;justify-content:center;box-sizing:border-box;direction:', - ';transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ', - ';border-radius:', - ';cursor:pointer;text-align:center;user-select:none;', - ";&[aria-disabled='true']{cursor:default;}", - ';', - ';', - ], - (e) => (e.theme.rtl ? 'rtl' : 'ltr'), - (e) => e.theme.borderWidths.sm, - (e) => e.theme.borderRadii.md, - (e) => { - const t = e.theme.space.base * (e.isCompact ? 1 : 2) + 'px', - n = (e.isCompact ? 2 : 4) + 'em', - r = gr(`${e.theme.space.base * (e.isCompact ? 2.5 : 5)} - ${e.theme.borderWidths.sm}`), - o = e.theme.fontSizes.md; - return rn( - [ - 'padding:', - ' ', - ';min-width:4em;line-height:', - ';font-size:', - ';', - ':not([hidden]) + &&,', - ' + &&,', - ' + &&,&& + ', - ',&& + ', - '{margin-top:', - ';}', - ], - r, - n, - Do(5 * e.theme.space.base, o), - o, - ki, - Si, - _i, - Si, - _i, - t - ); - }, - (e) => { - const t = Ro('primaryHue', 600, e.theme), - n = Ro('primaryHue', 700, e.theme), - r = Ro('primaryHue', 800, e.theme), - o = Ro('neutralHue', 200, e.theme), - a = Ro('neutralHue', 400, e.theme); - return rn( - [ - 'border-color:', - ';background-color:', - ';color:', - ';&:hover{border-color:', - ';background-color:', - ';color:', - ';}', - ' &:active{border-color:', - ';background-color:', - ';color:', - ";}&[aria-disabled='true']{border-color:", - ';background-color:', - ';color:', - ';}', - ], - e.isDragging ? r : Ro('neutralHue', 600, e.theme), - e.isDragging && Wr(t, 0.2), - e.isDragging ? r : t, - n, - Wr(t, 0.08), - n, - Bo({ theme: e.theme, hue: t }), - r, - Wr(t, 0.2), - r, - a, - o, - a - ); - }, - (e) => er(ks, e) - ); -Es.defaultProps = { theme: Xn }; -const Ss = 'forms.file.close', - Cs = Sn.button - .attrs({ 'data-garden-id': Ss, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileClose', componentId: 'sc-1m31jbf-0' })( - [ - 'display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;border:none;background:transparent;cursor:pointer;color:', - ';appearance:none;&:hover{opacity:0.9;}&:focus{outline:none;}', - ';', - ], - (e) => Ro('foreground', 600, e.theme), - (e) => er(Ss, e) - ); -Cs.defaultProps = { theme: Xn }; -const Os = 'forms.file', - Ps = Sn.div - .attrs({ 'data-garden-id': Os, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFile', componentId: 'sc-195lzp1-0' })( - [ - 'display:flex;position:relative;flex-wrap:nowrap;align-items:center;transition:box-shadow 0.1s ease-in-out;', - ';', - ";& > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& > [role='progressbar']{position:absolute;bottom:0;left:0;transition:opacity 0.2s ease-in-out;margin:0;border-top-left-radius:0;border-top-right-radius:0;width:100%;& > div{border-top-", - "-radius:0;}}& > [role='progressbar'][aria-valuenow='0'],& > [role='progressbar'][aria-valuenow='100']{opacity:0;}", - ';', - ], - (e) => { - const t = e.theme.space.base * (e.isCompact ? 7 : 10) + 'px', - n = e.theme.space.base * (e.isCompact ? 2 : 3) + 'px', - r = e.theme.fontSizes.md, - o = Do(5 * e.theme.space.base, r); - return `\n box-sizing: border-box;\n border: ${ - e.theme.borders.sm - };\n border-radius: ${ - e.theme.borderRadii.md - };\n padding: 0 ${n};\n height: ${t};\n line-height: ${o};\n font-size: ${r};\n\n & > span {\n width: 100%;\n }\n\n & > ${Cs} {\n width: ${t};\n height: ${t};\n margin-${ - e.theme.rtl ? 'left' : 'right' - }: -${n};\n }\n `; - }, - (e) => { - let t, n, r; - return ( - 'success' === e.validation - ? ((t = Ro('successHue', 600, e.theme)), (n = t), (r = t)) - : 'error' === e.validation - ? ((t = Ro('dangerHue', 600, e.theme)), (n = t), (r = t)) - : ((t = Ro('neutralHue', 300, e.theme)), - (n = Ro('primaryHue', 600, e.theme)), - (r = Ro('foreground', 600, e.theme))), - rn( - ['border-color:', ';color:', ';', ''], - t, - r, - Bo({ theme: e.theme, inset: e.focusInset, hue: n, styles: { borderColor: n } }) - ) - ); - }, - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => er(Os, e) - ); -Ps.defaultProps = { theme: Xn }; -const Ts = 'forms.file.delete', - Is = Sn(Cs) - .attrs({ 'data-garden-id': Ts, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileDelete', componentId: 'sc-a8nnhx-0' })( - ['color:', ';', ';'], - (e) => Ro('dangerHue', 600, e.theme), - (e) => er(Ts, e) - ); -Is.defaultProps = { theme: Xn }; -const Ns = 'forms.file.icon', - Ms = Sn((e) => { - let { children: t, isCompact: n, theme: r, ...o } = e; - return u.cloneElement(c.Children.only(t), o); - }) - .attrs({ 'data-garden-id': Ns, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileIcon', componentId: 'sc-7b3q0c-0' })( - ['flex-shrink:0;width:', ';margin-', ':', 'px;', ';'], - (e) => (e.isCompact ? e.theme.iconSizes.sm : e.theme.iconSizes.md), - (e) => (e.theme.rtl ? 'left' : 'right'), - (e) => 2 * e.theme.space.base, - (e) => er(Ns, e) - ); -Ms.defaultProps = { theme: Xn }; -const Ls = 'forms.file_list', - Rs = Sn.ul - .attrs({ 'data-garden-id': Ls, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileList', componentId: 'sc-gbahjg-0' })( - ['margin:0;padding:0;list-style:none;', ';'], - (e) => er(Ls, e) - ); -Rs.defaultProps = { theme: Xn }; -const As = 'forms.file_list.item', - Ds = Sn.li - .attrs({ 'data-garden-id': As, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFileListItem', componentId: 'sc-1ova3lo-0' })( - ['&:not(:first-child),', ' ~ ', ' > &:first-child{margin-top:', 'px;}', ';'], - Es, - Rs, - (e) => 2 * e.theme.space.base, - (e) => er(As, e) - ); -var js; -function zs() { - return ( - (zs = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - zs.apply(this, arguments) - ); + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; } -Ds.defaultProps = { theme: Xn }; -const Fs = 'forms.radio_svg', - _s = Sn(function (e) { - return c.createElement( - 'svg', - zs( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - js || (js = c.createElement('circle', { cx: 6, cy: 6, r: 2, fill: 'currentColor' })) - ); - }) - .attrs({ 'data-garden-id': Fs, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledRadioSvg', componentId: 'sc-1r1qtr1-0' })( - ['transition:opacity 0.25s ease-in-out;opacity:0;', ':checked ~ ', ' > &{opacity:1;}', ';'], - ss, - Zi, - (e) => er(Fs, e) - ); -_s.defaultProps = { theme: Xn }; -const Hs = 'forms.toggle_label', - $s = Sn(ts) - .attrs({ 'data-garden-id': Hs, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledToggleLabel', componentId: 'sc-e0asdk-0' })( - ['', ';', ';'], - (e) => - ((e) => { - const t = 10 * e.theme.space.base, - n = t + 2 * e.theme.space.base; - return rn( - ['padding-', ':', 'px;&[hidden]{padding-', ':', 'px;}'], - e.theme.rtl ? 'right' : 'left', - n, - e.theme.rtl ? 'right' : 'left', - t - ); - })(e), - (e) => er(Hs, e) - ); -$s.defaultProps = { theme: Xn }; -const Bs = 'forms.toggle_hint', - Ws = Sn(Si) - .attrs({ 'data-garden-id': Bs, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledToggleHint', componentId: 'sc-nziggu-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 12px`), - (e) => er(Bs, e) - ); -Ws.defaultProps = { theme: Xn }; -const Vs = 'forms.toggle_message', - Us = Sn(_i) - .attrs({ 'data-garden-id': Vs, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledToggleMessage', componentId: 'sc-13vuvl1-0' })( - ['padding-', ':', ';& ', '{', ':', ';}', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 12px`), - zi, - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 10px - ${e.theme.iconSizes.md}`), - (e) => er(Vs, e) - ); -var qs; -function Ys() { - return ( - (Ys = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Ys.apply(this, arguments) - ); + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; } -Us.defaultProps = { theme: Xn }; -const Ks = 'forms.toggle_svg', - Gs = Sn(function (e) { - return c.createElement( - 'svg', - Ys( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - qs || (qs = c.createElement('circle', { cx: 8, cy: 8, r: 6, fill: 'currentColor' })) - ); - }) - .attrs({ 'data-garden-id': Ks, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledToggleSvg', componentId: 'sc-162xbyx-0' })( - ['transition:all 0.15s ease-in-out;', ';'], - (e) => er(Ks, e) - ); -Gs.defaultProps = { theme: Xn }; -const Qs = u.forwardRef((e, t) => { - const [n, r] = c.useState(!1), - [o, a] = c.useState(!1), - [i, s] = c.useState(!1), - [l, d] = c.useState(!1), - p = c.useRef(null), - { - getInputProps: f, - getMessageProps: m, - ...h - } = gi({ idPrefix: e.id, hasHint: n, hasMessage: o }), - g = c.useMemo( - () => ({ - ...h, - getInputProps: f, - getMessageProps: m, - isLabelActive: i, - setIsLabelActive: s, - isLabelHovered: l, - setIsLabelHovered: d, - hasHint: n, - setHasHint: r, - hasMessage: o, - setHasMessage: a, - multiThumbRangeRef: p, - }), - [h, f, m, i, l, n, o] - ); - return u.createElement( - vi.Provider, - { value: g }, - u.createElement(wi, Object.assign({}, e, { ref: t })) - ); -}); -Qs.displayName = 'Field'; -const Xs = c.createContext(void 0), - Js = () => c.useContext(Xs), - Zs = c.createContext(void 0), - el = () => c.useContext(Zs), - tl = u.forwardRef((e, t) => { - const { hasHint: n, setHasHint: r, getHintProps: o } = bi() || {}, - a = el(); - let i; - c.useEffect( - () => ( - !n && r && r(!0), - () => { - n && r && r(!1); - } - ), - [n, r] - ), - (i = 'checkbox' === a ? as : 'radio' === a ? rs : 'toggle' === a ? Ws : Si); - let s = e; - return o && (s = o(s)), u.createElement(i, Object.assign({ ref: t }, s)); - }); -tl.displayName = 'Hint'; -const nl = u.forwardRef((e, t) => { - const n = bi(), - r = Js(), - o = el(); - let a = e; - if (n && ((a = n.getLabelProps(a)), void 0 === o)) { - const { setIsLabelActive: t, setIsLabelHovered: r, multiThumbRangeRef: o } = n; - a = { - ...a, - onMouseUp: Dn(e.onMouseUp, () => { - t(!1); - }), - onMouseDown: Dn(e.onMouseDown, () => { - t(!0); - }), - onMouseEnter: Dn(e.onMouseEnter, () => { - r(!0); - }), - onMouseLeave: Dn(e.onMouseLeave, () => { - r(!1); - }), - onClick: Dn(e.onClick, () => { - o.current && o.current.focus(); - }), - }; + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; } - if ((r && (a = { ...a, isRegular: void 0 === a.isRegular || a.isRegular }), 'radio' === o)) - return u.createElement(Zi, Object.assign({ ref: t }, a), u.createElement(_s, null), e.children); - if ('checkbox' === o) { - const r = (e) => { - const t = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; - if (n && t && e.target instanceof Element) { - const t = e.target.getAttribute('for'); - if (!t) return; - const n = document.getElementById(t); - n && 'checkbox' === n.type && (e.shiftKey && (n.click(), (n.checked = !0)), n.focus()); - } - }; - return ( - (a = { ...a, onClick: Dn(a.onClick, r) }), - u.createElement( - ts, - Object.assign({ ref: t }, a), - u.createElement(vs, null), - u.createElement(xs, null), - e.children - ) - ); + return this; +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); } - return 'toggle' === o - ? u.createElement($s, Object.assign({ ref: t }, a), u.createElement(Gs, null), e.children) - : u.createElement(ki, Object.assign({ ref: t }, a)); -}); -(nl.displayName = 'Label'), (nl.propTypes = { isRegular: Pn.bool }); -const rl = ['success', 'warning', 'error'], - ol = u.forwardRef((e, t) => { - let { validation: n, validationLabel: r, children: o, ...a } = e; - const { hasMessage: i, setHasMessage: s, getMessageProps: l } = bi() || {}, - d = el(); - let p; - c.useEffect( - () => ( - !i && s && s(!0), - () => { - i && s && s(!1); - } - ), - [i, s] - ), - (p = 'checkbox' === d ? fs : 'radio' === d ? ds : 'toggle' === d ? Us : _i); - let f = { validation: n, validationLabel: r, ...a }; - l && (f = l(f)); - const m = _o(ol, f, 'validationLabel', n, void 0 !== n); - return u.createElement( - p, - Object.assign({ ref: t }, f), - n && u.createElement(zi, { validation: n, 'aria-label': m }), - o - ); - }); -(ol.displayName = 'Message'), - (ol.propTypes = { validation: Pn.oneOf(rl), validationLabel: Pn.string }); -const al = u.forwardRef((e, t) => { - let { indeterminate: n, children: r, ...o } = e; - const a = Js(), - i = bi(), - s = (e) => { - e && (e.indeterminate = n); - }; - let l = { - ref: (e) => { - [s, t].forEach((t) => { - t && ('function' == typeof t ? t(e) : (t.current = e)); - }); - }, - ...o, - ...a, - }; - return ( - i && (l = i.getInputProps(l)), - u.createElement(Zs.Provider, { value: 'checkbox' }, u.createElement(cs, l), r) - ); -}); -(al.displayName = 'Checkbox'), (al.propTypes = { isCompact: Pn.bool, indeterminate: Pn.bool }); -const il = c.createContext(void 0), - sl = u.forwardRef((e, t) => { - let { onSelect: n, ...r } = e; - const o = bi(), - a = c.useContext(il); - let i = { - ref: t, - onSelect: r.readOnly - ? Dn(n, (e) => { - e.currentTarget.select(); - }) - : n, - ...r, - }; - return ( - a && - (i = { - ...i, - isCompact: a.isCompact || i.isCompact, - focusInset: void 0 === r.focusInset || r.focusInset, - }), - o && (i = o.getInputProps(i)), - u.createElement($i, i) - ); - }); -(sl.propTypes = { - isCompact: Pn.bool, - isBare: Pn.bool, - focusInset: Pn.bool, - validation: Pn.oneOf(rl), -}), - (sl.displayName = 'Input'); -const ll = (e) => parseInt(e, 10) || 0, - cl = u.forwardRef((e, t) => { - let { minRows: n, maxRows: r, style: o, onChange: a, onSelect: i, ...s } = e; - const l = bi(), - d = c.useRef(), - p = c.useRef(null), - [f, m] = c.useState({ overflow: !1, height: 0 }), - h = null !== s.value && void 0 !== s.value, - g = (void 0 !== n || void 0 !== r) && !s.isResizable, - v = c.useCallback(() => { - if (!g) return; - const e = d.current, - t = window.getComputedStyle(e), - o = p.current; - (o.style.width = t.width), (o.value = e.value || e.placeholder || ' '); - const a = t.boxSizing, - i = ll(t.paddingBottom) + ll(t.paddingTop), - s = ll(t.borderTopWidth) + ll(t.borderBottomWidth), - l = o.scrollHeight - i; - o.value = 'x'; - const c = o.scrollHeight - i; - let u = l; - n && (u = Math.max(Number(n) * c, u)), - r && (u = Math.min(Number(r) * c, u)), - (u = Math.max(u, c)); - const f = u + ('border-box' === a ? i + s : 0), - h = Math.abs(u - l) <= 1; - m((e) => - (f > 0 && Math.abs((e.height || 0) - f) > 1) || e.overflow !== h - ? { overflow: h, height: f } - : e - ); - }, [r, n, d, g]), - b = c.useCallback( - (e) => { - h || v(), a && a(e); - }, - [v, h, a] - ); - c.useLayoutEffect(() => { - v(); - }); - const y = {}; - g && ((y.height = f.height), (y.overflow = f.overflow ? 'hidden' : void 0)); - const w = s.readOnly - ? Dn(i, (e) => { - e.currentTarget.select(); - }) - : i; - let x = { ref: na([d, t]), rows: n, onChange: b, onSelect: w, style: { ...y, ...o }, ...s }; - return ( - l && (x = l.getInputProps(x)), - u.createElement( - u.Fragment, - null, - u.createElement(Wi, x), - g && - u.createElement(Wi, { - 'aria-hidden': !0, - readOnly: !0, - isHidden: !0, - className: s.className, - ref: p, - tabIndex: -1, - isBare: s.isBare, - isCompact: s.isCompact, - style: o, - }) - ) - ); - }); -(cl.propTypes = { - isCompact: Pn.bool, - isBare: Pn.bool, - focusInset: Pn.bool, - isResizable: Pn.bool, - minRows: Pn.number, - maxRows: Pn.number, - validation: Pn.oneOf(rl), -}), - (cl.displayName = 'Textarea'); -const ul = (e) => u.createElement(Ui, Object.assign({ position: 'start' }, e)); -ul.displayName = 'FauxInput.StartIcon'; -const dl = ul, - pl = (e) => u.createElement(Ui, Object.assign({ position: 'end' }, e)); -pl.displayName = 'FauxInput.EndIcon'; -const fl = pl, - ml = c.forwardRef((e, t) => { - let { onFocus: n, onBlur: r, disabled: o, readOnly: a, isFocused: i, ...s } = e; - const [l, d] = c.useState(!1), - p = Dn(n, () => { - d(!0); - }), - f = Dn(r, () => { - d(!1); - }); - return u.createElement( - Gi, - Object.assign( - { - onFocus: p, - onBlur: f, - isFocused: void 0 === i ? l : i, - isReadOnly: a, - isDisabled: o, - tabIndex: o ? void 0 : 0, - }, - s, - { ref: t } - ) - ); - }); -(ml.displayName = 'FauxInput'), - (ml.propTypes = { - isCompact: Pn.bool, - isBare: Pn.bool, - focusInset: Pn.bool, - disabled: Pn.bool, - readOnly: Pn.bool, - validation: Pn.oneOf(rl), - isFocused: Pn.bool, - isHovered: Pn.bool, - }); -const hl = ml; -(hl.EndIcon = fl), (hl.StartIcon = dl); -var gl = /^\s+|\s+$/g, - vl = /^[-+]0x[0-9a-f]+$/i, - bl = /^0b[01]+$/i, - yl = /^0o[0-7]+$/i, - wl = parseInt, - xl = 'object' == typeof t && t && t.Object === Object && t, - kl = 'object' == typeof self && self && self.Object === Object && self, - El = xl || kl || Function('return this')(), - Sl = Object.prototype.toString, - Cl = Math.max, - Ol = Math.min, - Pl = function () { - return El.Date.now(); - }; -function Tl(e) { - var t = typeof e; - return !!e && ('object' == t || 'function' == t); -} -function Il(e) { - if ('number' == typeof e) return e; - if ( - (function (e) { - return ( - 'symbol' == typeof e || - ((function (e) { - return !!e && 'object' == typeof e; - })(e) && - '[object Symbol]' == Sl.call(e)) - ); - })(e) - ) - return NaN; - if (Tl(e)) { - var t = 'function' == typeof e.valueOf ? e.valueOf() : e; - e = Tl(t) ? t + '' : t; - } - if ('string' != typeof e) return 0 === e ? e : +e; - e = e.replace(gl, ''); - var n = bl.test(e); - return n || yl.test(e) ? wl(e.slice(2), n ? 2 : 8) : vl.test(e) ? NaN : +e; -} -var Nl = function (e, t, n) { - var r, - o, - a, - i, - s, - l, - c = 0, - u = !1, - d = !1, - p = !0; - if ('function' != typeof e) throw new TypeError('Expected a function'); - function f(t) { - var n = r, - a = o; - return (r = o = void 0), (c = t), (i = e.apply(a, n)); - } - function m(e) { - var n = e - l; - return void 0 === l || n >= t || n < 0 || (d && e - c >= a); - } - function h() { - var e = Pl(); - if (m(e)) return g(e); - s = setTimeout( - h, - (function (e) { - var n = t - (e - l); - return d ? Ol(n, a - (e - c)) : n; - })(e) - ); - } - function g(e) { - return (s = void 0), p && r ? f(e) : ((r = o = void 0), i); - } - function v() { - var e = Pl(), - n = m(e); - if (((r = arguments), (o = this), (l = e), n)) { - if (void 0 === s) - return (function (e) { - return (c = e), (s = setTimeout(h, t)), u ? f(e) : i; - })(l); - if (d) return (s = setTimeout(h, t)), f(l); - } - return void 0 === s && (s = setTimeout(h, t)), i; - } - return ( - (t = Il(t) || 0), - Tl(n) && - ((u = !!n.leading), - (a = (d = 'maxWait' in n) ? Cl(Il(n.maxWait) || 0, t) : a), - (p = 'trailing' in n ? !!n.trailing : p)), - (v.cancel = function () { - void 0 !== s && clearTimeout(s), (c = 0), (r = l = o = s = void 0); - }), - (v.flush = function () { - return void 0 === s ? i : g(Pl()); - }), - v - ); - }, - Ml = n(Nl); -const Ll = u.forwardRef((e, t) => { - let { disabled: n, ...r } = e; - return u.createElement(Es, Object.assign({ ref: t, 'aria-disabled': n }, r, { role: 'button' })); -}); -(Ll.propTypes = { isDragging: Pn.bool, isCompact: Pn.bool, disabled: Pn.bool }), - (Ll.displayName = 'FileUpload'); -const Rl = c.forwardRef((e, t) => { - let { ...n } = e; - return u.createElement(Ds, Object.assign({}, n, { ref: t })); -}); -Rl.displayName = 'FileList.Item'; -const Al = Rl, - Dl = c.forwardRef((e, t) => { - let { ...n } = e; - return u.createElement(Rs, Object.assign({}, n, { ref: t })); - }); -Dl.displayName = 'FileList'; -const jl = Dl; -var zl; -function Fl() { - return ( - (Fl = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Fl.apply(this, arguments) - ); } -jl.Item = Al; -var _l, - Hl = function (e) { - return c.createElement( - 'svg', - Fl( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - zl || - (zl = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M3 9l6-6m0 6L3 3', - })) - ); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.__data__ = { + hash: new Hash(), + map: new (Map$1 || ListCache)(), + string: new Hash(), }; -function $l() { - return ( - ($l = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - $l.apply(this, arguments) - ); } -var Bl = function (e) { - return c.createElement( - 'svg', - $l( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - _l || - (_l = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M3 13L13 3m0 10L3 3', - })) - ); -}; -const Wl = c.createContext(void 0), - Vl = () => c.useContext(Wl), - Ul = u.forwardRef((e, t) => { - const n = Vl(), - r = Dn(e.onMouseDown, (e) => e.preventDefault()), - o = _o(Ul, e, 'aria-label', 'Close'); - return u.createElement( - Cs, - Object.assign({ ref: t, 'aria-label': o }, e, { - type: 'button', - tabIndex: -1, - onMouseDown: r, - }), - n && n.isCompact ? u.createElement(Hl, null) : u.createElement(Bl, null) - ); - }); -Ul.displayName = 'File.Close'; -const ql = Ul; -var Yl; -function Kl() { - return ( - (Kl = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Kl.apply(this, arguments) - ); -} -var Gl, - Ql = function (e) { - return c.createElement( - 'svg', - Kl( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - Yl || - (Yl = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M4.5 2.5V1c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v1.5M2 2.5h8m-5.5 7V5m3 4.5V5m-5-.5V11c0 .3.2.5.5.5h6c.3 0 .5-.2.5-.5V4.5', - })) - ); - }; -function Xl() { - return ( - (Xl = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Xl.apply(this, arguments) - ); -} -var Jl = function (e) { - return c.createElement( - 'svg', - Xl( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Gl || - (Gl = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M6.5 2.5V1c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v1.5M3 2.5h10m-6.5 11v-8m3 8v-8m-6-1V15c0 .3.2.5.5.5h8c.3 0 .5-.2.5-.5V4.5', - })) - ); -}; -const Zl = u.forwardRef((e, t) => { - const n = Vl(), - r = Dn(e.onMouseDown, (e) => e.preventDefault()), - o = _o(Zl, e, 'aria-label', 'Delete'); - return u.createElement( - Is, - Object.assign({ ref: t, 'aria-label': o }, e, { type: 'button', tabIndex: -1, onMouseDown: r }), - n && n.isCompact ? u.createElement(Ql, null) : u.createElement(Jl, null) - ); -}); -Zl.displayName = 'File.Delete'; -const ec = Zl; -var tc, nc; -function rc() { - return ( - (rc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - rc.apply(this, arguments) - ); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); } -var oc; -function ac() { - return ( - (ac = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - ac.apply(this, arguments) - ); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); } -var ic, sc; -function lc() { - return ( - (lc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - lc.apply(this, arguments) - ); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); } -var cc; -function uc() { - return ( - (uc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - uc.apply(this, arguments) - ); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; } -var dc; -function pc() { - return ( - (pc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - pc.apply(this, arguments) - ); + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -var fc; -function mc() { - return ( - (mc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - mc.apply(this, arguments) - ); + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject$2(value) || isMasked(value)) { + return false; + } + var pattern = isFunction$2(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); } -var hc; -function gc() { - return ( - (gc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - gc.apply(this, arguments) - ); + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } -var vc; -function bc() { - return ( - (bc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - bc.apply(this, arguments) - ); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } -var yc; -function wc() { - return ( - (wc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - wc.apply(this, arguments) - ); + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' + ? value !== '__proto__' + : value === null; } -var xc, kc; -function Ec() { - return ( - (Ec = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Ec.apply(this, arguments) - ); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && maskSrcKey in func; } -var Sc; -function Cc() { - return ( - (Cc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Cc.apply(this, arguments) - ); + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return func + ''; + } catch (e) {} + } + return ''; } -var Oc, Pc; -function Tc() { - return ( - (Tc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Tc.apply(this, arguments) - ); + +/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ +function memoize(func, resolver) { + if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT$1); + } + var memoized = function () { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; } -var Ic; -function Nc() { - return ( - (Nc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Nc.apply(this, arguments) - ); + +// Assign cache to `_.memoize`. +memoize.Cache = MapCache; + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); } -var Mc; -function Lc() { - return ( - (Lc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Lc.apply(this, arguments) - ); + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction$2(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject$2(value) ? objectToString$1.call(value) : ''; + return tag == funcTag || tag == genTag; } -var Rc; -function Ac() { - return ( - (Ac = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Ac.apply(this, arguments) - ); + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject$2(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); } -var Dc; -function jc() { - return ( - (jc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - jc.apply(this, arguments) - ); + +var lodash_memoize = memoize; + +var memoize$1 = /*@__PURE__*/ getDefaultExportFromCjs(lodash_memoize); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const DEFAULT_SHADE = 600; +const adjust = (color, expected, actual) => { + if (expected !== actual) { + const amount = (Math.abs(expected - actual) / 100) * 0.05; + return expected > actual ? curriedDarken$1(amount, color) : curriedLighten$1(amount, color); + } + return color; +}; +const getColorV8 = memoize$1( + function (hue) { + let shade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_SHADE; + let theme = arguments.length > 2 ? arguments[2] : undefined; + let transparency = arguments.length > 3 ? arguments[3] : undefined; + let retVal; + if (isNaN(shade)) { + return undefined; + } + const palette = theme && theme.palette ? theme.palette : DEFAULT_THEME.palette; + const colors = theme && theme.colors ? theme.colors : DEFAULT_THEME.colors; + let _hue; + if (typeof hue === 'string') { + _hue = colors[hue] || hue; + } else { + _hue = hue; + } + if (Object.prototype.hasOwnProperty.call(palette, _hue)) { + _hue = palette[_hue]; + } + if (typeof _hue === 'object') { + retVal = _hue[shade]; + if (!retVal) { + const _shade = Object.keys(_hue) + .map((hueKey) => parseInt(hueKey, 10)) + .reduce((previous, current) => { + return Math.abs(current - shade) < Math.abs(previous - shade) ? current : previous; + }); + retVal = adjust(_hue[_shade], shade, _shade); + } + } else { + retVal = adjust(_hue, shade, DEFAULT_SHADE); + } + if (transparency) { + retVal = rgba(retVal, transparency); + } + return retVal; + }, + (hue, shade, theme, transparency) => + JSON.stringify({ + hue, + shade, + palette: theme?.palette, + colors: theme?.colors, + transparency, + }) +); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const getFocusBoxShadow = (_ref) => { + let { + boxShadow, + inset = false, + hue = 'primaryHue', + shade = DEFAULT_SHADE, + shadowWidth = 'md', + spacerHue = 'background', + spacerShade = DEFAULT_SHADE, + spacerWidth = 'xs', + theme = DEFAULT_THEME, + } = _ref; + const color = getColorV8(hue, shade, theme); + const shadow = theme.shadows[shadowWidth](color); + if (spacerWidth === null) { + return `${inset ? 'inset' : ''} ${shadow}`; + } + const spacerColor = getColorV8(spacerHue, spacerShade, theme); + const retVal = ` + ${inset ? 'inset' : ''} ${theme.shadows[spacerWidth](spacerColor)}, + ${inset ? 'inset' : ''} ${shadow}`; + return boxShadow ? `${retVal}, ${boxShadow}` : retVal; +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +function getLineHeight(height, fontSize) { + const [heightValue, heightUnit] = getValueAndUnit(height.toString()); + const [fontSizeValue, fontSizeUnit] = getValueAndUnit(fontSize.toString()); + const PIXELS = 'px'; + if (heightUnit && heightUnit !== PIXELS) { + throw new Error(`Unexpected \`height\` with '${heightUnit}' units.`); + } + if (fontSizeUnit && fontSizeUnit !== PIXELS) { + throw new Error(`Unexpected \`fontSize\` with '${fontSizeUnit}' units.`); + } + return heightValue / fontSizeValue; } -var zc; -function Fc() { - return ( - (Fc = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Fc.apply(this, arguments) - ); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const maxWidth = (breakpoints, breakpoint) => { + const keys = Object.keys(breakpoints); + const index = keys.indexOf(breakpoint) + 1; + if (keys[index]) { + const dimension = getValueAndUnit(breakpoints[keys[index]]); + const value = dimension[0] - 0.02; + const unit = dimension[1]; + return `${value}${unit}`; + } + return undefined; +}; +function mediaQuery(query, breakpoint, theme) { + let retVal; + let min; + let max; + const breakpoints = theme && theme.breakpoints ? theme.breakpoints : DEFAULT_THEME.breakpoints; + if (typeof breakpoint === 'string') { + if (query === 'up') { + min = breakpoints[breakpoint]; + } else if (query === 'down') { + if (breakpoint === 'xl') { + min = DEFAULT_THEME.breakpoints.xs; + } else { + max = maxWidth(breakpoints, breakpoint); + } + } else if (query === 'only') { + min = breakpoints[breakpoint]; + max = maxWidth(breakpoints, breakpoint); + } + } else if (query === 'between') { + min = breakpoints[breakpoint[0]]; + max = maxWidth(breakpoints, breakpoint[1]); + } + if (min) { + retVal = `@media (min-width: ${min})`; + if (max) { + retVal = `${retVal} and (max-width: ${max})`; + } + } else if (max) { + retVal = `@media (max-width: ${max})`; + } else { + throw new Error(`Unexpected query and breakpoint combination: '${query}', '${breakpoint}'.`); + } + return retVal; } -const _c = { - pdf: u.createElement(function (e) { - return c.createElement( - 'svg', - Ec( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - xc || - (xc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M14.5 4.2V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.85a.5.5 0 01.36.15l3.15 3.2a.5.5 0 01.14.35zm-10 8.3h7m-7-2h7m-1-10V4a.5.5 0 00.5.5h3.5', - })), - kc || - (kc = c.createElement('rect', { - width: 8, - height: 2, - x: 4, - y: 7, - fill: 'currentColor', - rx: 0.5, - ry: 0.5, - })) - ); - }, null), - zip: u.createElement(function (e) { - return c.createElement( - 'svg', - Cc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Sc || - (Sc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M6.5.5v11M5 2.5h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m8-6.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5', - })) - ); - }, null), - image: u.createElement(function (e) { - return c.createElement( - 'svg', - Tc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Oc || - (Oc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5m-11 9l2.65-2.65c.2-.2.51-.2.71 0l1.79 1.79c.2.2.51.2.71 0l.79-.79c.2-.2.51-.2.71 0l1.65 1.65', - })), - Pc || (Pc = c.createElement('circle', { cx: 10.5, cy: 8.5, r: 1.5, fill: 'currentColor' })) - ); - }, null), - document: u.createElement(function (e) { - return c.createElement( - 'svg', - Nc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Ic || - (Ic = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M4.5 7.5h7m-7 1.97h7m-7 2h7m3-7.27V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5', - })) - ); - }, null), - spreadsheet: u.createElement(function (e) { - return c.createElement( - 'svg', - Lc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Mc || - (Mc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M4.5 7.5h2m-2 2h2m-2 2h2m2-4h3m-3 2h3m-3 2h3m3-7.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5', - })) - ); - }, null), - presentation: u.createElement(function (e) { - return c.createElement( - 'svg', - Ac( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Rc || - (Rc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - d: 'M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5M7 9.5h4c.28 0 .5.22.5.5v3c0 .28-.22.5-.5.5H7c-.28 0-.5-.22-.5-.5v-3c0-.28.22-.5.5-.5zm-.5 2H5c-.28 0-.5-.22-.5-.5V8c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5v1.5', - })) - ); - }, null), - generic: u.createElement(function (e) { - return c.createElement( - 'svg', - jc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Dc || - (Dc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - d: 'M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5', - })) - ); - }, null), - success: u.createElement(Di, null), - error: u.createElement(function (e) { - return c.createElement( - 'svg', - Fc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - zc || - (zc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M14.5 4.205V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.853a.5.5 0 01.356.15l3.148 3.204a.5.5 0 01.143.35zM10.5.5V4a.5.5 0 00.5.5h3.5m-9 8l5-5m0 5l-5-5', - })) - ); - }, null), - }, - Hc = { - pdf: u.createElement(function (e) { - return c.createElement( - 'svg', - rc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - tc || - (tc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M10.5 3.21V11a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h5.79a.5.5 0 01.35.15l2.21 2.21a.5.5 0 01.15.35zM7.5.5V3a.5.5 0 00.5.5h2.5m-7 6h5', - })), - nc || - (nc = c.createElement('rect', { - width: 6, - height: 3, - x: 3, - y: 5, - fill: 'currentColor', - rx: 0.5, - ry: 0.5, - })) - ); - }, null), - zip: u.createElement(function (e) { - return c.createElement( - 'svg', - ac( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - oc || - (oc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M4.5.5v8m0-6h1m-2 1h1m0 1h1m-2 1h1m0 1h1m-2 1h1m6-4.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5', - })) - ); - }, null), - image: u.createElement(function (e) { - return c.createElement( - 'svg', - lc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - ic || - (ic = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - strokeLinejoin: 'round', - d: 'M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5m-7 6L5 8l1.5 1.5 1-1 1 1', - })), - sc || (sc = c.createElement('circle', { cx: 8, cy: 6, r: 1, fill: 'currentColor' })) - ); - }, null), - document: u.createElement(function (e) { - return c.createElement( - 'svg', - uc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - cc || - (cc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M3.5 5.5h5m-5 2h5m-5 2h5m2-6.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5', - })) - ); - }, null), - spreadsheet: u.createElement(function (e) { - return c.createElement( - 'svg', - pc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - dc || - (dc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M3.5 5.5h1m-1 2h1m-1 2h1m2-4h2m-2 2h2m-2 2h2m2-6.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5', - })) - ); - }, null), - presentation: u.createElement(function (e) { - return c.createElement( - 'svg', - mc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - fc || - (fc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - d: 'M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM6 9.5h2c.28 0 .5-.22.5-.5V8c0-.28-.22-.5-.5-.5H6c-.28 0-.5.22-.5.5v1c0 .28.22.5.5.5zm-2-2h2c.28 0 .5-.22.5-.5V6c0-.28-.22-.5-.5-.5H4c-.28 0-.5.22-.5.5v1c0 .28.22.5.5.5zm3.5-7V3c0 .28.22.5.5.5h2.5', - })) - ); - }, null), - generic: u.createElement(function (e) { - return c.createElement( - 'svg', - gc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - hc || - (hc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - d: 'M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5', - })) - ); - }, null), - success: u.createElement(function (e) { - return c.createElement( - 'svg', - bc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - vc || - (vc = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('path', { - strokeLinecap: 'round', - strokeLinejoin: 'round', - d: 'M3.5 6l2 2L9 4.5', - }), - c.createElement('circle', { cx: 6, cy: 6, r: 5.5 }) - )) - ); - }, null), - error: u.createElement(function (e) { - return c.createElement( - 'svg', - wc( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', - }, - e - ), - yc || - (yc = c.createElement('path', { - fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5M4 9.5l4-4m0 4l-4-4', - })) - ); - }, null), + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const exponentialSymbols = { + symbols: { + sqrt: { + func: { + symbol: 'sqrt', + f: (a) => Math.sqrt(a), + notation: 'func', + precedence: 0, + rightToLeft: 0, + argCount: 1, + }, + symbol: 'sqrt', + regSymbol: 'sqrt\\b', + }, }, - $c = c.forwardRef((e, t) => { - let { children: n, type: r, isCompact: o, focusInset: a, validation: i, ...s } = e; - const l = c.useMemo(() => ({ isCompact: o }), [o]), - d = i || r; - return u.createElement( - Wl.Provider, - { value: l }, - u.createElement( - Ps, - Object.assign({}, s, { isCompact: o, focusInset: a, validation: i, ref: t }), - d && u.createElement(Ms, { isCompact: o }, o ? Hc[d] : _c[d]), - c.Children.map(n, (e) => ('string' == typeof e ? u.createElement('span', null, e) : e)) - ) +}; +const animationStyles$3 = (position, modifier) => { + const property = position.split('-')[0]; + const animationName = $e$1(['0%,66%{', ':2px;border:transparent;}'], property); + return Ne$1( + ['&', '::before,&', '::after{animation:0.3s ease-in-out ', ';}'], + modifier, + modifier, + animationName + ); +}; +const positionStyles = (position, size, inset) => { + const margin = math(`${size} / -2`); + const placement = math(`${margin} + ${inset}`); + let clipPath; + let positionCss; + let propertyRadius; + if (position.startsWith('top')) { + propertyRadius = 'border-bottom-right-radius'; + clipPath = 'polygon(100% 0, 100% 1px, 1px 100%, 0 100%, 0 0)'; + positionCss = Ne$1( + ['top:', ';right:', ';left:', ';margin-left:', ';'], + placement, + position === 'top-right' && size, + position === 'top' ? '50%' : position === 'top-left' && size, + position === 'top' && margin ); - }); -($c.displayName = 'File'), - ($c.propTypes = { - focusInset: Pn.bool, - isCompact: Pn.bool, - type: Pn.oneOf(['pdf', 'zip', 'image', 'document', 'spreadsheet', 'presentation', 'generic']), - validation: Pn.oneOf(['success', 'error']), - }); -const Bc = $c; -(Bc.Close = ql), (Bc.Delete = ec); -const Wc = u.forwardRef((e, t) => { - let { - start: n, - end: r, - disabled: o, - isCompact: a, - isBare: i, - focusInset: s, - readOnly: l, - validation: d, - wrapperProps: p = {}, - wrapperRef: f, - onSelect: m, - ...h - } = e; - const g = bi(), - v = c.useRef(), - [b, y] = c.useState(!1), - [w, x] = c.useState(!1), - { onClick: k, onFocus: E, onBlur: S, onMouseOver: C, onMouseOut: O, ...P } = p, - T = Dn(k, () => { - v.current && v.current.focus(); - }), - I = Dn(E, () => { - y(!0); - }), - N = Dn(S, () => { - y(!1); - }), - M = Dn(C, () => { - x(!0); - }), - L = Dn(O, () => { - x(!1); - }), - R = l - ? Dn(m, (e) => { - e.currentTarget.select(); - }) - : m; - let A, - D = { disabled: o, readOnly: l, ref: na([v, t]), onSelect: R, ...h }; - return ( - g && ((D = g.getInputProps(D)), (A = g.isLabelHovered)), - u.createElement( - hl, - Object.assign( - { - tabIndex: null, - onClick: T, - onFocus: I, - onBlur: N, - onMouseOver: M, - onMouseOut: L, - disabled: o, - isFocused: b, - isHovered: w || A, - isCompact: a, - isBare: i, - focusInset: s, - readOnly: l, - validation: d, - mediaLayout: !0, - }, - P, - { ref: f } - ), - n && u.createElement(hl.StartIcon, { isDisabled: o, isFocused: b, isHovered: w || A }, n), - u.createElement(Xi, D), - r && u.createElement(hl.EndIcon, { isDisabled: o, isFocused: b, isHovered: w || A }, r) - ) + } else if (position.startsWith('right')) { + propertyRadius = 'border-bottom-left-radius'; + clipPath = 'polygon(100% 0, 100% 100%, calc(100% - 1px) 100%, 0 1px, 0 0)'; + positionCss = Ne$1( + ['top:', ';right:', ';bottom:', ';margin-top:', ';'], + position === 'right' ? '50%' : position === 'right-top' && size, + placement, + position === 'right-bottom' && size, + position === 'right' && margin + ); + } else if (position.startsWith('bottom')) { + propertyRadius = 'border-top-left-radius'; + clipPath = 'polygon(100% 0, calc(100% - 1px) 0, 0 calc(100% - 1px), 0 100%, 100% 100%)'; + positionCss = Ne$1( + ['right:', ';bottom:', ';left:', ';margin-left:', ';'], + position === 'bottom-right' && size, + placement, + position === 'bottom' ? '50%' : position === 'bottom-left' && size, + position === 'bottom' && margin + ); + } else if (position.startsWith('left')) { + propertyRadius = 'border-top-right-radius'; + clipPath = 'polygon(0 100%, 100% 100%, 100% calc(100% - 1px), 1px 0, 0 0)'; + positionCss = Ne$1( + ['top:', ';bottom:', ';left:', ';margin-top:', ';'], + position === 'left' ? '50%' : position === 'left-top' && size, + size, + placement, + position === 'left' && margin + ); + } + return Ne$1( + ['&::before{', ':100%;clip-path:', ';}&::before,&::after{', '}'], + propertyRadius, + clipPath, + positionCss ); -}); -(Wc.propTypes = { - isCompact: Pn.bool, - isBare: Pn.bool, - focusInset: Pn.bool, - validation: Pn.oneOf(rl), - start: Pn.node, - end: Pn.node, - wrapperProps: Pn.object, - wrapperRef: Pn.any, -}), - (Wc.displayName = 'MediaInput'); -const Vc = ['small', 'medium', 'large'], - Uc = 'typography.font', - qc = { - small: 'sm', - medium: 'md', - large: 'lg', - extralarge: 'xl', - '2xlarge': 'xxl', - '3xlarge': 'xxxl', - }, - Yc = Sn.div - .attrs({ 'data-garden-id': Uc, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFont', componentId: 'sc-1iildbo-0' })( - ['', ';&[hidden]{display:inline;', ';}', ';'], - (e) => - !e.hidden && - ((e) => { - const t = e.isMonospace && -1 !== ['inherit', 'small', 'medium', 'large'].indexOf(e.size), - n = t && e.theme.fonts.mono, - r = e.theme.rtl ? 'rtl' : 'ltr'; - let o, a, i, s; - if (t) - if ('inherit' === e.size) (o = 'calc(1em - 1px)'), (i = 'normal'); - else { - const t = qc[e.size]; - (o = gr(`${e.theme.fontSizes[t]} - 1px`)), (i = gr(`${e.theme.lineHeights[t]} - 1px`)); - } - else if ('inherit' !== e.size) { - const t = qc[e.size]; - (o = e.theme.fontSizes[t]), (i = e.theme.lineHeights[t]); - } - if ( - (!0 === e.isBold - ? (a = e.theme.fontWeights.semibold) - : (!1 !== e.isBold && 'inherit' === e.size) || (a = e.theme.fontWeights.regular), - e.hue) - ) { - const t = 'yellow' === e.hue ? 700 : 600; - s = Ro(e.hue, t, e.theme); - } - return rn( - [ - 'line-height:', - ';color:', - ';font-family:', - ';font-size:', - ';font-weight:', - ';direction:', - ';', - ], - i, - s, - n, - o, - a, - r - ); - })(e), - { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(Uc, e) +}; +function arrowStyles(position) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const size = options.size || '6px'; + const inset = options.inset || '0'; + const squareSize = math(`${size} * 2 / sqrt(2)`, exponentialSymbols); + return Ne$1( + [ + 'position:relative;&::before{border-width:inherit;border-style:inherit;border-color:transparent;background-clip:content-box;}&::after{z-index:-1;border:inherit;box-shadow:inherit;}&::before,&::after{position:absolute;transform:rotate(45deg);background-color:inherit;box-sizing:inherit;width:', + ';height:', + ";content:'';}", + ';', + ';', + ], + squareSize, + squareSize, + positionStyles(position, squareSize, inset), + options.animationModifier && animationStyles$3(position, options.animationModifier) ); -Yc.defaultProps = { theme: Xn, size: 'inherit' }; -const Kc = 'typography.icon', - Gc = Sn((e) => { - let { children: t, isStart: n, ...r } = e; - return u.cloneElement(c.Children.only(t), r); - }) - .attrs({ 'data-garden-id': Kc, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledIcon', componentId: 'sc-10rfb5b-0' })( - ['position:relative;top:-1px;vertical-align:middle;', ';', ';'], - (e) => - ((e) => { - const t = e.isStart && 2 * e.theme.space.base + 'px', - n = e.theme.iconSizes.md; - return rn( - ['margin-', ':', ';width:', ';height:', ';'], - e.theme.rtl ? 'left' : 'right', - t, - n, - n - ); - })(e), - (e) => er(Kc, e) - ); -Gc.defaultProps = { theme: Xn }; -const Qc = 'typography.paragraph', - Xc = Sn.p - .attrs({ 'data-garden-id': Qc, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledParagraph', componentId: 'sc-zkuftz-0' })( - ['margin:0;padding:0;direction:', ';& + &,blockquote + &{margin-top:', ';}', ';'], - (e) => (e.theme.rtl ? 'rtl' : 'ltr'), - (e) => e.theme.lineHeights[qc[e.size]], - (e) => er(Qc, e) - ); -Xc.defaultProps = { theme: Xn }; -const Jc = c.forwardRef((e, t) => u.createElement(Xc, Object.assign({ ref: t }, e))); -(Jc.displayName = 'Paragraph'), - (Jc.propTypes = { size: Pn.oneOf(Vc) }), - (Jc.defaultProps = { size: 'medium' }); -const Zc = (e) => u.createElement(Gc, Object.assign({ isStart: !0 }, e)); -Zc.displayName = 'Span.StartIcon'; -const eu = Zc, - tu = (e) => u.createElement(Gc, e); -tu.displayName = 'Span.Icon'; -const nu = tu, - ru = c.forwardRef((e, t) => { - let { tag: n, ...r } = e; - return u.createElement(Yc, Object.assign({ as: n, ref: t, size: 'inherit' }, r)); - }); -(ru.displayName = 'Span'), - (ru.propTypes = { tag: Pn.any, isBold: Pn.bool, isMonospace: Pn.bool, hue: Pn.string }), - (ru.defaultProps = { tag: 'span' }); -const ou = ru; -(ou.Icon = nu), (ou.StartIcon = eu); -const au = (e) => 'object' == typeof e && null != e && 1 === e.nodeType, - iu = (e, t) => (!t || 'hidden' !== e) && 'visible' !== e && 'clip' !== e, - su = (e, t) => { - if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) { - const n = getComputedStyle(e, null); - return ( - iu(n.overflowY, t) || - iu(n.overflowX, t) || - ((e) => { - const t = ((e) => { - if (!e.ownerDocument || !e.ownerDocument.defaultView) return null; - try { - return e.ownerDocument.defaultView.frameElement; - } catch (e) { - return null; - } - })(e); - return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth); - })(e) - ); +} + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const useWindow = (theme) => { + const [controlledWindow, setControlledWindow] = reactExports.useState(); + reactExports.useEffect(() => { + if (theme && theme.window) { + setControlledWindow(theme.window); + } else { + setControlledWindow(window); } - return !1; - }, - lu = (e, t, n, r, o, a, i, s) => - (a < e && i > t) || (a > e && i < t) - ? 0 - : (a <= e && s <= n) || (i >= t && s >= n) - ? a - e - r - : (i > t && s < n) || (a < e && s > n) - ? i - t + o - : 0, - cu = (e) => { - const t = e.parentElement; - return null == t ? e.getRootNode().host || null : t; - }; -var uu = function () { - return ( - (uu = - Object.assign || - function (e) { - for (var t, n = 1, r = arguments.length; n < r; n++) - for (var o in (t = arguments[n])) - Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); - return e; - }), - uu.apply(this, arguments) - ); + }, [theme]); + return controlledWindow; }; -function du(e, t, n, r) { - return new (n || (n = Promise))(function (o, a) { - function i(e) { - try { - l(r.next(e)); - } catch (e) { - a(e); - } - } - function s(e) { - try { - l(r.throw(e)); - } catch (e) { - a(e); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const useText = function (component, props, name, text) { + let condition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + const value = condition ? props[name] : undefined; + return reactExports.useMemo(() => { + if (condition) { + if (name === 'children') { + throw new Error('Error: `children` is not a valid `useText` prop.'); + } else if (value === null || value === '') { + throw new Error( + component.displayName + ? `Error: you must provide a valid \`${name}\` text value for <${component.displayName}>.` + : `Error: you must provide a valid \`${name}\` text value.` + ); + } else if (value === undefined) { + return text; } } - function l(e) { - var t; - e.done - ? o(e.value) - : ((t = e.value), - t instanceof n - ? t - : new n(function (e) { - e(t); - })).then(i, s); - } - l((r = r.apply(e, t || [])).next()); - }); -} -function pu(e, t) { - var n, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & o[0]) throw o[1]; - return o[1]; - }, - trys: [], - ops: [], - }, - i = Object.create(('function' == typeof Iterator ? Iterator : Object).prototype); - return ( - (i.next = s(0)), - (i.throw = s(1)), - (i.return = s(2)), - 'function' == typeof Symbol && - (i[Symbol.iterator] = function () { - return this; - }), - i + return value; + }, [component.displayName, value, name, text, condition]); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const animationStyles$2 = (position, options) => { + const theme = options.theme || DEFAULT_THEME; + let translateValue = `${theme.space.base * 5}px`; + let transformFunction; + if (position === 'top') { + transformFunction = 'translateY'; + } else if (position === 'right') { + transformFunction = 'translateX'; + translateValue = `-${translateValue}`; + } else if (position === 'bottom') { + transformFunction = 'translateY'; + translateValue = `-${translateValue}`; + } else { + transformFunction = 'translateX'; + } + const animationName = $e$1(['0%{transform:', '(', ');}'], transformFunction, translateValue); + return Ne$1( + ['&', ' ', '{animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ', ';}'], + options.animationModifier, + options.childSelector || '> *', + animationName ); - function s(s) { - return function (l) { - return (function (s) { - if (n) throw new TypeError('Generator is already executing.'); - for (; i && ((i = 0), s[0] && (a = 0)), a; ) - try { - if ( - ((n = 1), - r && - (o = - 2 & s[0] - ? r.return - : s[0] - ? r.throw || ((o = r.return) && o.call(r), 0) - : r.next) && - !(o = o.call(r, s[1])).done) - ) - return o; - switch (((r = 0), o && (s = [2 & s[0], o.value]), s[0])) { - case 0: - case 1: - o = s; - break; - case 4: - return a.label++, { value: s[1], done: !1 }; - case 5: - a.label++, (r = s[1]), (s = [0]); - continue; - case 7: - (s = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !((o = a.trys), - (o = o.length > 0 && o[o.length - 1]) || (6 !== s[0] && 2 !== s[0])) - ) { - a = 0; - continue; - } - if (3 === s[0] && (!o || (s[1] > o[0] && s[1] < o[3]))) { - a.label = s[1]; - break; - } - if (6 === s[0] && a.label < o[1]) { - (a.label = o[1]), (o = s); - break; - } - if (o && a.label < o[2]) { - (a.label = o[2]), a.ops.push(s); - break; - } - o[2] && a.ops.pop(), a.trys.pop(); - continue; - } - s = t.call(e, a); - } catch (e) { - (s = [6, e]), (r = 0); - } finally { - n = o = 0; - } - if (5 & s[0]) throw s[1]; - return { value: s[0] ? s[1] : void 0, done: !0 }; - })([s, l]); - }; +}; +const hiddenStyles$1 = (options) => { + const transition = 'opacity 0.2s ease-in-out, 0.2s visibility 0s linear'; + return Ne$1( + ['transition:', ';visibility:hidden;opacity:0;'], + options.animationModifier && transition + ); +}; +function menuStyles(position) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const theme = options.theme || DEFAULT_THEME; + let marginProperty; + if (position === 'top') { + marginProperty = 'margin-bottom'; + } else if (position === 'right') { + marginProperty = 'margin-left'; + } else if (position === 'bottom') { + marginProperty = 'margin-top'; + } else { + marginProperty = 'margin-right'; } + return Ne$1( + [ + 'position:absolute;z-index:', + ';', + ':', + ';line-height:0;font-size:0.01px;& ', + '{display:inline-block;position:relative;margin:0;box-sizing:border-box;border:', + ' ', + ';border-radius:', + ';box-shadow:', + ';background-color:', + ';cursor:default;padding:0;text-align:', + ';white-space:normal;font-size:', + ';font-weight:', + ';direction:', + ';:focus{outline:none;}}', + ';', + ';', + ], + options.zIndex || 0, + marginProperty, + options.margin, + options.childSelector || '> *', + theme.borders.sm, + getColorV8('neutralHue', 300, theme), + theme.borderRadii.md, + theme.shadows.lg( + `${theme.space.base * 5}px`, + `${theme.space.base * 7.5}px`, + getColorV8('chromeHue', 600, theme, 0.15) + ), + getColorV8('background', 600, theme), + theme.rtl ? 'right' : 'left', + theme.fontSizes.md, + theme.fontWeights.regular, + theme.rtl && 'rtl', + options.animationModifier && animationStyles$2(position, options), + options.hidden && hiddenStyles$1(options) + ); } -function fu(e, t) { - var n = 'function' == typeof Symbol && e[Symbol.iterator]; - if (!n) return e; - var r, - o, - a = n.call(e), - i = []; - try { - for (; (void 0 === t || t-- > 0) && !(r = a.next()).done; ) i.push(r.value); - } catch (e) { - o = { error: e }; - } finally { - try { - r && !r.done && (n = a.return) && n.call(a); - } finally { - if (o) throw o.error; - } - } - return i; -} -function mu(e, t, n) { - if (n || 2 === arguments.length) - for (var r, o = 0, a = t.length; o < a; o++) - (!r && o in t) || (r || (r = Array.prototype.slice.call(t, 0, o)), (r[o] = t[o])); - return e.concat(r || Array.prototype.slice.call(t)); -} -'function' == typeof SuppressedError && SuppressedError; -var hu = 0; -function gu() {} -function vu(e, t, n) { - return e === t || (t instanceof n.Node && e.contains && e.contains(t)); -} -function bu(e, t) { - var n; - function r() { - n && clearTimeout(n); - } - function o() { - for (var o = arguments.length, a = new Array(o), i = 0; i < o; i++) a[i] = arguments[i]; - r(), - (n = setTimeout(function () { - (n = null), e.apply(void 0, a); - }, t)); - } - return (o.cancel = r), o; -} -function yu() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return function (e) { - for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) - r[o - 1] = arguments[o]; - return t.some(function (t) { - return ( - t && t.apply(void 0, [e].concat(r)), - e.preventDownshiftDefault || - (e.hasOwnProperty('nativeEvent') && e.nativeEvent.preventDownshiftDefault) - ); - }); - }; -} -function wu() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; - return function (e) { - t.forEach(function (t) { - 'function' == typeof t ? t(e) : t && (t.current = e); - }); - }; -} -function xu(e, t) { - return e && t - ? Object.keys(e).reduce(function (n, r) { - return (n[r] = ku(t, r) ? t[r] : e[r]), n; - }, {}) - : e; -} -function ku(e, t) { - return void 0 !== e[t]; -} -function Eu(e, t, n, r, o) { - void 0 === o && (o = !1); - var a = n.length; - if (0 === a) return -1; - var i = a - 1; - ('number' != typeof e || e < 0 || e > i) && (e = t > 0 ? -1 : i + 1); - var s = e + t; - s < 0 ? (s = o ? i : 0) : s > i && (s = o ? 0 : i); - var l = Su(s, t < 0, n, r, o); - return -1 === l ? (e >= a ? -1 : e) : l; -} -function Su(e, t, n, r, o) { - void 0 === o && (o = !1); - var a = n.length; - if (t) { - for (var i = e; i >= 0; i--) if (!r(n[i], i)) return i; - } else for (var s = e; s < a; s++) if (!r(n[s], s)) return s; - return o ? Su(t ? a - 1 : 0, t, n, r) : -1; -} -function Cu(e, t, n, r) { - return ( - void 0 === r && (r = !0), - n && - t.some(function (t) { - return t && (vu(t, e, n) || (r && vu(t, n.document.activeElement, n))); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const SELECTOR_FOCUS_VISIBLE = '&:focus-visible, &[data-garden-focus-visible="true"]'; +const focusStyles = (_ref) => { + let { + condition = true, + selector = SELECTOR_FOCUS_VISIBLE, + shadowWidth = 'md', + spacerWidth = 'xs', + styles: { boxShadow, ...styles } = {}, + theme, + ...options + } = _ref; + const _boxShadow = condition + ? getFocusBoxShadow({ + boxShadow, + shadowWidth, + spacerWidth, + theme, + ...options, }) + : boxShadow; + let outline; + let outlineOffset; + if (spacerWidth === null) { + outline = theme.shadowWidths[shadowWidth]; + } else { + outline = `${math( + `${theme.shadowWidths[shadowWidth]} - ${theme.shadowWidths[spacerWidth]}` + )} solid transparent`; + outlineOffset = theme.shadowWidths[spacerWidth]; + } + return Ne$1( + ['&:focus{outline:none;}', '{outline:', ';outline-offset:', ';box-shadow:', ';', '}'], + selector, + outline, + outlineOffset, + _boxShadow, + styles ); +}; + +function createTheme(settings) { + return { + ...DEFAULT_THEME, + rtl: document.dir === 'rtl', + colors: { + ...DEFAULT_THEME.colors, + background: settings.background_color, + foreground: settings.text_color, + primaryHue: settings.brand_color, + }, + components: { + 'buttons.anchor': Ne$1` + color: ${settings.link_color}; + + :hover, + :active, + :focus { + color: ${settings.hover_link_color}; + } + + &:visited { + color: ${settings.visited_link_color}; + } + `, + 'buttons.button': Ne$1` + ${(props) => + props.isPrimary && + Ne$1` + color: ${settings.brand_text_color}; + `} + `, + }, + }; } -var Ou = bu(function (e) { - Pu(e).textContent = ''; -}, 500); -function Pu(e) { - var t = e.getElementById('a11y-status-message'); - return ( - t || - ((t = e.createElement('div')).setAttribute('id', 'a11y-status-message'), - t.setAttribute('role', 'status'), - t.setAttribute('aria-live', 'polite'), - t.setAttribute('aria-relevant', 'additions text'), - Object.assign(t.style, { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - width: '1px', + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ +const TYPE$2 = ['success', 'warning', 'error', 'info']; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1V = 'notifications.close'; +const StyledClose$3 = styled.button + .attrs({ + 'data-garden-id': COMPONENT_ID$1V, + 'data-garden-version': '8.76.2', + }) + .withConfig({ + displayName: 'StyledClose', + componentId: 'sc-1mr9nx1-0', + })( + [ + 'display:block;position:absolute;top:', + 'px;', + ':', + ';transition:background-color 0.1s ease-in-out,color 0.25s ease-in-out,box-shadow 0.1s ease-in-out;border:none;border-radius:50%;background-color:transparent;cursor:pointer;padding:0;width:', + 'px;height:', + 'px;overflow:hidden;color:', + ';font-size:0;user-select:none;&::-moz-focus-inner{border:0;}&:hover{color:', + ';}', + ' ', + ';', + ], + (props) => props.theme.space.base, + (props) => (props.theme.rtl ? 'left' : 'right'), + (props) => `${props.theme.space.base}px`, + (props) => props.theme.space.base * 7, + (props) => props.theme.space.base * 7, + (props) => + props.hue + ? getColorV8(props.hue, props.hue === 'warningHue' ? 700 : 600, props.theme) + : getColorV8('neutralHue', 600, props.theme), + (props) => + props.hue + ? getColorV8(props.hue, 800, props.theme) + : getColorV8('neutralHue', 800, props.theme), + (props) => + focusStyles({ + theme: props.theme, + inset: true, }), - e.body.appendChild(t), - t) - ); -} -var Tu = ['highlightedIndex', 'items', 'environment'], - Iu = { highlightedIndex: -1, isOpen: !1, selectedItem: null, inputValue: '' }; -function Nu(e, t, n) { - var r = e.props, - o = e.type, - a = {}; - Object.keys(t).forEach(function (r) { - !(function (e, t, n, r) { - var o = t.props, - a = t.type, - i = 'on' + Au(e) + 'Change'; - o[i] && void 0 !== r[e] && r[e] !== n[e] && o[i](tr({ type: a }, r)); - })(r, e, t, n), - n[r] !== t[r] && (a[r] = n[r]); - }), - r.onStateChange && Object.keys(a).length && r.onStateChange(tr({ type: o }, a)); -} -var Mu = bu(function (e, t) { - var n, r; - (n = e()), (r = t), n && r && ((Pu(r).textContent = n), Ou(r)); - }, 200), - Lu = - 'undefined' != typeof window && - void 0 !== window.document && - void 0 !== window.document.createElement - ? c.useLayoutEffect - : c.useEffect, - Ru = - 'useId' in u - ? function (e) { - var t = e.id, - n = e.labelId, - r = e.menuId, - o = e.getItemId, - a = e.toggleButtonId, - i = e.inputId, - s = 'downshift-' + u.useId(); - t || (t = s); - var l = c.useRef({ - labelId: n || t + '-label', - menuId: r || t + '-menu', - getItemId: - o || - function (e) { - return t + '-item-' + e; - }, - toggleButtonId: a || t + '-toggle-button', - inputId: i || t + '-input', - }); - return l.current; - } - : function (e) { - var t = e.id, - n = void 0 === t ? 'downshift-' + String(hu++) : t, - r = e.labelId, - o = e.menuId, - a = e.getItemId, - i = e.toggleButtonId, - s = e.inputId, - l = c.useRef({ - labelId: r || n + '-label', - menuId: o || n + '-menu', - getItemId: - a || - function (e) { - return n + '-item-' + e; - }, - toggleButtonId: i || n + '-toggle-button', - inputId: s || n + '-input', - }); - return l.current; - }; -function Au(e) { - return '' + e.slice(0, 1).toUpperCase() + e.slice(1); -} -function Du(e) { - var t = c.useRef(e); - return (t.current = e), t; -} -var ju = { - itemToString: function (e) { - return e ? String(e) : ''; - }, - itemToKey: function (e) { - return e; - }, - stateReducer: function (e, t) { - return t.changes; - }, - getA11ySelectionMessage: function (e) { - var t = e.selectedItem, - n = e.itemToString; - return t ? n(t) + ' has been selected.' : ''; - }, - scrollIntoView: function (e, t) { - if (e) { - var n = ((e, t) => { - var n, r, o, a; - if ('undefined' == typeof document) return []; - const { - scrollMode: i, - block: s, - inline: l, - boundary: c, - skipOverflowHiddenElements: u, - } = t, - d = 'function' == typeof c ? c : (e) => e !== c; - if (!au(e)) throw new TypeError('Invalid target'); - const p = document.scrollingElement || document.documentElement, - f = []; - let m = e; - for (; au(m) && d(m); ) { - if (((m = cu(m)), m === p)) { - f.push(m); - break; - } - (null != m && m === document.body && su(m) && !su(document.documentElement)) || - (null != m && su(m, u) && f.push(m)); - } - const h = - null != (r = null == (n = window.visualViewport) ? void 0 : n.width) ? r : innerWidth, - g = - null != (a = null == (o = window.visualViewport) ? void 0 : o.height) ? a : innerHeight, - { scrollX: v, scrollY: b } = window, - { height: y, width: w, top: x, right: k, bottom: E, left: S } = e.getBoundingClientRect(), - { - top: C, - right: O, - bottom: P, - left: T, - } = ((e) => { - const t = window.getComputedStyle(e); - return { - top: parseFloat(t.scrollMarginTop) || 0, - right: parseFloat(t.scrollMarginRight) || 0, - bottom: parseFloat(t.scrollMarginBottom) || 0, - left: parseFloat(t.scrollMarginLeft) || 0, - }; - })(e); - let I = 'start' === s || 'nearest' === s ? x - C : 'end' === s ? E + P : x + y / 2 - C + P, - N = 'center' === l ? S + w / 2 - T + O : 'end' === l ? k + O : S - T; - const M = []; - for (let e = 0; e < f.length; e++) { - const t = f[e], - { - height: n, - width: r, - top: o, - right: a, - bottom: c, - left: u, - } = t.getBoundingClientRect(); - if ( - 'if-needed' === i && - x >= 0 && - S >= 0 && - E <= g && - k <= h && - x >= o && - E <= c && - S >= u && - k <= a - ) - return M; - const d = getComputedStyle(t), - m = parseInt(d.borderLeftWidth, 10), - C = parseInt(d.borderTopWidth, 10), - O = parseInt(d.borderRightWidth, 10), - P = parseInt(d.borderBottomWidth, 10); - let T = 0, - L = 0; - const R = 'offsetWidth' in t ? t.offsetWidth - t.clientWidth - m - O : 0, - A = 'offsetHeight' in t ? t.offsetHeight - t.clientHeight - C - P : 0, - D = 'offsetWidth' in t ? (0 === t.offsetWidth ? 0 : r / t.offsetWidth) : 0, - j = 'offsetHeight' in t ? (0 === t.offsetHeight ? 0 : n / t.offsetHeight) : 0; - if (p === t) - (T = - 'start' === s - ? I - : 'end' === s - ? I - g - : 'nearest' === s - ? lu(b, b + g, g, C, P, b + I, b + I + y, y) - : I - g / 2), - (L = - 'start' === l - ? N - : 'center' === l - ? N - h / 2 - : 'end' === l - ? N - h - : lu(v, v + h, h, m, O, v + N, v + N + w, w)), - (T = Math.max(0, T + b)), - (L = Math.max(0, L + v)); - else { - (T = - 'start' === s - ? I - o - C - : 'end' === s - ? I - c + P + A - : 'nearest' === s - ? lu(o, c, n, C, P + A, I, I + y, y) - : I - (o + n / 2) + A / 2), - (L = - 'start' === l - ? N - u - m - : 'center' === l - ? N - (u + r / 2) + R / 2 - : 'end' === l - ? N - a + O + R - : lu(u, a, r, m, O + R, N, N + w, w)); - const { scrollLeft: e, scrollTop: i } = t; - (T = 0 === j ? 0 : Math.max(0, Math.min(i + T / j, t.scrollHeight - n / j + A))), - (L = 0 === D ? 0 : Math.max(0, Math.min(e + L / D, t.scrollWidth - r / D + R))), - (I += i - T), - (N += e - L); - } - M.push({ el: t, top: T, left: L }); - } - return M; - })(e, { boundary: t, block: 'nearest', scrollMode: 'if-needed' }); - n.forEach(function (e) { - var t = e.el, - n = e.top, - r = e.left; - (t.scrollTop = n), (t.scrollLeft = r); - }); - } - }, - environment: 'undefined' == typeof window ? void 0 : window, -}; -function zu(e, t, n) { - void 0 === n && (n = Iu); - var r = e['default' + Au(t)]; - return void 0 !== r ? r : n[t]; -} -function Fu(e, t, n) { - void 0 === n && (n = Iu); - var r = e[t]; - if (void 0 !== r) return r; - var o = e['initial' + Au(t)]; - return void 0 !== o ? o : zu(e, t, n); -} -function _u(e, t, n) { - var r = e.items, - o = e.initialHighlightedIndex, - a = e.defaultHighlightedIndex, - i = e.itemToKey, - s = t.selectedItem, - l = t.highlightedIndex; - return 0 === r.length - ? -1 - : void 0 !== o && l === o - ? o - : void 0 !== a - ? a - : s - ? r.findIndex(function (e) { - return i(s) === i(e); - }) - : 0 === n - ? -1 - : n < 0 - ? r.length - 1 - : 0; -} -function Hu(e, t, n) { - var r = n.highlightedIndex, - o = n.items, - a = n.environment, - i = Pa(n, Tu), - s = Wu(); - c.useEffect(function () { - !s && - null != a && - a.document && - Mu(function () { - return e(tr({ highlightedIndex: r, highlightedItem: o[r], resultCount: o.length }, i)); - }, a.document); - }, t); -} -function $u(e, t, n) { - var r; - return ( - void 0 === n && (n = !0), - tr( - { isOpen: !1, highlightedIndex: -1 }, - (null == (r = e.items) ? void 0 : r.length) && - t >= 0 && - tr( - { - selectedItem: e.items[t], - isOpen: zu(e, 'isOpen'), - highlightedIndex: zu(e, 'highlightedIndex'), - }, - n && { inputValue: e.itemToString(e.items[t]) } - ) - ) - ); -} -function Bu(e, t) { - return ( - e.isOpen === t.isOpen && - e.inputValue === t.inputValue && - e.highlightedIndex === t.highlightedIndex && - e.selectedItem === t.selectedItem + (props) => retrieveComponentStyles(COMPONENT_ID$1V, props) +); +StyledClose$3.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1U = 'notifications.title'; +const StyledTitle$2 = styled.div + .attrs({ + 'data-garden-id': COMPONENT_ID$1U, + 'data-garden-version': '8.76.2', + }) + .withConfig({ + displayName: 'StyledTitle', + componentId: 'sc-xx4jsv-0', + })( + ['margin:0;color:', ';font-weight:', ';', ';'], + (props) => getColorV8('foreground', 600, props.theme), + (props) => (props.isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold), + (props) => retrieveComponentStyles(COMPONENT_ID$1U, props) +); +StyledTitle$2.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const boxShadow$1 = (props) => { + const { theme } = props; + const { space, shadows } = theme; + const offsetY = `${space.base * 5}px`; + const blurRadius = `${space.base * 7}px`; + const color = getColorV8('chromeHue', 600, theme, 0.15); + return shadows.lg(offsetY, blurRadius, color); +}; +const colorStyles$t = (props) => { + let backgroundColor; + let borderColor; + let foregroundColor; + if (props.hue) { + backgroundColor = getColorV8(props.hue, 100, props.theme); + borderColor = getColorV8(props.hue, 300, props.theme); + foregroundColor = getColorV8(props.hue, props.type === 'info' ? 600 : 700, props.theme); + } else { + backgroundColor = getColorV8('background', 600, props.theme); + borderColor = getColorV8('neutralHue', 300, props.theme); + foregroundColor = getColorV8('neutralHue', 800, props.theme); + } + return Ne$1( + ['border-color:', ';background-color:', ';color:', ';'], + borderColor, + backgroundColor, + foregroundColor ); -} -function Wu() { - var e = u.useRef(!0); - return ( - u.useEffect(function () { - return ( - (e.current = !1), - function () { - e.current = !0; - } - ); - }, []), - e.current - ); -} -var Vu = { - environment: Pn.shape({ - addEventListener: Pn.func.isRequired, - removeEventListener: Pn.func.isRequired, - document: Pn.shape({ - createElement: Pn.func.isRequired, - getElementById: Pn.func.isRequired, - activeElement: Pn.any.isRequired, - body: Pn.any.isRequired, - }).isRequired, - Node: Pn.func.isRequired, - }), - itemToString: Pn.func, - itemToKey: Pn.func, - stateReducer: Pn.func, - }, - Uu = tr({}, Vu, { - getA11yStatusMessage: Pn.func, - highlightedIndex: Pn.number, - defaultHighlightedIndex: Pn.number, - initialHighlightedIndex: Pn.number, - isOpen: Pn.bool, - defaultIsOpen: Pn.bool, - initialIsOpen: Pn.bool, - selectedItem: Pn.any, - initialSelectedItem: Pn.any, - defaultSelectedItem: Pn.any, - id: Pn.string, - labelId: Pn.string, - menuId: Pn.string, - getItemId: Pn.func, - toggleButtonId: Pn.string, - onSelectedItemChange: Pn.func, - onHighlightedIndexChange: Pn.func, - onStateChange: Pn.func, - onIsOpenChange: Pn.func, - scrollIntoView: Pn.func, - }); -uu(uu({}, Uu), { - items: Pn.array.isRequired, - isItemDisabled: Pn.func, - getA11ySelectionMessage: Pn.func, -}), - uu(uu({}, ju), { - getA11yStatusMessage: function (e) { - var t = e.isOpen, - n = e.resultCount, - r = e.previousResultCount; - return t - ? n - ? n !== r - ? '' - .concat(n, ' result') - .concat( - 1 === n ? ' is' : 's are', - ' available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.' - ) - : '' - : 'No results are available.' - : ''; - }, - isItemDisabled: function () { - return !1; - }, - }); -var qu = Object.freeze({ - __proto__: null, - InputKeyDownArrowDown: 0, - InputKeyDownArrowUp: 1, - InputKeyDownEscape: 2, - InputKeyDownHome: 3, - InputKeyDownEnd: 4, - InputKeyDownPageUp: 5, - InputKeyDownPageDown: 6, - InputKeyDownEnter: 7, - InputChange: 8, - InputBlur: 9, - InputClick: 10, - MenuMouseLeave: 11, - ItemMouseMove: 12, - ItemClick: 13, - ToggleButtonClick: 14, - FunctionToggleMenu: 15, - FunctionOpenMenu: 16, - FunctionCloseMenu: 17, - FunctionSetHighlightedIndex: 18, - FunctionSelectItem: 19, - FunctionSetInputValue: 20, - FunctionReset: 21, - ControlledPropUpdatedSelectedItem: 22, -}); -function Yu(e) { - var t = (function (e) { - var t = Fu(e, 'selectedItem'), - n = Fu(e, 'isOpen'), - r = Fu(e, 'highlightedIndex'), - o = Fu(e, 'inputValue'); - return { - highlightedIndex: - r < 0 && t && n - ? e.items.findIndex(function (n) { - return e.itemToKey(n) === e.itemToKey(t); - }) - : r, - isOpen: n, - selectedItem: t, - inputValue: o, - }; - })(e), - n = t.selectedItem, - r = t.inputValue; - return ( - '' === r && - n && - void 0 === e.defaultInputValue && - void 0 === e.initialInputValue && - void 0 === e.inputValue && - (r = e.itemToString(n)), - tr({}, t, { inputValue: r }) - ); -} -function Ku(e, t, n, r) { - var o = c.useRef(), - a = (function (e, t, n, r) { - var o = c.useRef(), - a = c.useRef(), - i = c.useCallback( - function (t, n) { - (a.current = n), (t = xu(t, n.props)); - var r = e(t, n); - return n.props.stateReducer(t, tr({}, n, { changes: r })); - }, - [e] - ), - s = c.useReducer(i, t, n), - l = s[0], - u = s[1], - d = Du(t), - p = c.useCallback( - function (e) { - return u(tr({ props: d.current }, e)); - }, - [d] - ), - f = a.current; - return ( - c.useEffect( - function () { - var e = xu(o.current, null == f ? void 0 : f.props); - f && o.current && !r(e, l) && Nu(f, e, l), (o.current = l); - }, - [l, f, r] - ), - [l, p] - ); - })(e, t, n, r), - i = a[0], - s = a[1], - l = Wu(); - return ( - c.useEffect( - function () { - if (ku(t, 'selectedItem')) { - var e; - if (!l) - void 0 === t.selectedItemChanged - ? (e = t.itemToKey(t.selectedItem) !== t.itemToKey(o.current)) - : (console.warn( - 'The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged' - ), - (e = t.selectedItemChanged(o.current, t.selectedItem))), - e && s({ type: 22, inputValue: t.itemToString(t.selectedItem) }); - o.current = i.selectedItem === o.current ? t.selectedItem : i.selectedItem; - } - }, - [i.selectedItem, t.selectedItem] - ), - [xu(i, t), s] - ); -} -tr({}, Uu, { - items: Pn.array.isRequired, - isItemDisabled: Pn.func, - selectedItemChanged: Pn.func, - getA11ySelectionMessage: Pn.func, - inputValue: Pn.string, - defaultInputValue: Pn.string, - initialInputValue: Pn.string, - inputId: Pn.string, - onInputValueChange: Pn.func, -}); -var Gu = tr({}, ju, { - getA11yStatusMessage: function (e) { - var t = e.isOpen, - n = e.resultCount, - r = e.previousResultCount; - return t - ? n - ? n !== r - ? n + - ' result' + - (1 === n ? ' is' : 's are') + - ' available, use up and down arrow keys to navigate. Press Enter key to select.' - : '' - : 'No results are available.' - : ''; - }, - isItemDisabled: function () { - return !1; - }, -}); -function Qu(e, t) { - var n, - r, - o = t.type, - a = t.props, - i = t.altKey; - switch (o) { - case 13: - r = { - isOpen: zu(a, 'isOpen'), - highlightedIndex: zu(a, 'highlightedIndex'), - selectedItem: a.items[t.index], - inputValue: a.itemToString(a.items[t.index]), - }; - break; - case 0: - r = e.isOpen - ? { highlightedIndex: Eu(e.highlightedIndex, 1, a.items, a.isItemDisabled, !0) } - : { - highlightedIndex: i && null == e.selectedItem ? -1 : _u(a, e, 1), - isOpen: a.items.length >= 0, - }; - break; - case 1: - r = e.isOpen - ? i - ? $u(a, e.highlightedIndex) - : { highlightedIndex: Eu(e.highlightedIndex, -1, a.items, a.isItemDisabled, !0) } - : { highlightedIndex: _u(a, e, -1), isOpen: a.items.length >= 0 }; - break; - case 7: - r = $u(a, e.highlightedIndex); - break; - case 2: - r = tr( - { isOpen: !1, highlightedIndex: -1 }, - !e.isOpen && { selectedItem: null, inputValue: '' } - ); +}; +const padding = (props) => { + const { space } = props.theme; + const paddingVertical = `${space.base * 5}px`; + const paddingHorizontal = `${space.base * 10}px`; + return `${paddingVertical} ${paddingHorizontal}`; +}; +const StyledBase = styled.div.withConfig({ + displayName: 'StyledBase', + componentId: 'sc-14syaqw-0', +})( + [ + 'position:relative;border:', + ';border-radius:', + ';box-shadow:', + ';padding:', + ';line-height:', + ';font-size:', + ';direction:', + ';', + ';', + ], + (props) => props.theme.borders.sm, + (props) => props.theme.borderRadii.md, + (props) => props.isFloating && boxShadow$1, + padding, + (props) => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), + (props) => props.theme.fontSizes.md, + (props) => props.theme.rtl && 'rtl', + colorStyles$t +); +StyledBase.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1T = 'notifications.alert'; +const colorStyles$s = (props) => + Ne$1(['', '{color:', ';}'], StyledTitle$2, props.hue && getColorV8(props.hue, 800, props.theme)); +const StyledAlert = styled(StyledBase) + .attrs({ + 'data-garden-id': COMPONENT_ID$1T, + 'data-garden-version': '8.76.2', + }) + .withConfig({ + displayName: 'StyledAlert', + componentId: 'sc-fyn8jp-0', + })(['', ' ', ';'], colorStyles$s, (props) => retrieveComponentStyles(COMPONENT_ID$1T, props)); +StyledAlert.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1S = 'notifications.notification'; +const colorStyles$r = (props) => { + const { type, theme } = props; + const { colors } = theme; + const { successHue, dangerHue, warningHue } = colors; + let color; + switch (type) { + case 'success': + color = getColorV8(successHue, 600, theme); break; - case 5: - r = { highlightedIndex: Eu(e.highlightedIndex, -10, a.items, a.isItemDisabled, !0) }; + case 'error': + color = getColorV8(dangerHue, 600, theme); break; - case 6: - r = { highlightedIndex: Eu(e.highlightedIndex, 10, a.items, a.isItemDisabled, !0) }; + case 'warning': + color = getColorV8(warningHue, 700, theme); break; - case 3: - r = { highlightedIndex: Su(0, !1, a.items, a.isItemDisabled) }; + case 'info': + color = getColorV8('foreground', 600, theme); break; - case 4: - r = { highlightedIndex: Su(a.items.length - 1, !0, a.items, a.isItemDisabled) }; + default: + color = 'inherit'; break; - case 9: - r = tr( - { isOpen: !1, highlightedIndex: -1 }, - e.highlightedIndex >= 0 && - (null == (n = a.items) ? void 0 : n.length) && - t.selectItem && { - selectedItem: a.items[e.highlightedIndex], - inputValue: a.itemToString(a.items[e.highlightedIndex]), + } + return Ne$1(['', '{color:', ';}'], StyledTitle$2, color); +}; +const StyledNotification = styled(StyledBase) + .attrs({ + 'data-garden-id': COMPONENT_ID$1S, + 'data-garden-version': '8.76.2', + }) + .withConfig({ + displayName: 'StyledNotification', + componentId: 'sc-uf6jh-0', + })(['', ' ', ';'], colorStyles$r, (props) => retrieveComponentStyles(COMPONENT_ID$1S, props)); +StyledNotification.propTypes = { + type: PropTypes.oneOf(TYPE$2), +}; +StyledNotification.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const StyledIcon$2 = styled((_ref) => { + let { children, ...props } = _ref; + return U$6.cloneElement(reactExports.Children.only(children), props); +}).withConfig({ + displayName: 'StyledIcon', + componentId: 'sc-msklws-0', +})( + ['position:absolute;right:', ';left:', ';margin-top:', 'px;color:', ';'], + (props) => props.theme.rtl && `${props.theme.space.base * 4}px`, + (props) => !props.theme.rtl && `${props.theme.space.base * 4}px`, + (props) => props.theme.space.base / 2, + (props) => props.hue && getColorV8(props.hue, props.hue === 'warningHue' ? 700 : 600, props.theme) +); +StyledIcon$2.defaultProps = { + theme: DEFAULT_THEME, +}; + +function mergeRefs(refs) { + return function (value) { + refs.forEach(function (ref) { + if (typeof ref === 'function') { + ref(value); + } else if (ref != null) { + ref.current = value; + } + }); + }; +} + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _g$9, _circle$e; +function _extends$U() { + _extends$U = 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]; + } } - ); - break; - case 8: - r = { isOpen: !0, highlightedIndex: zu(a, 'highlightedIndex'), inputValue: t.inputValue }; - break; - case 10: - r = { isOpen: !e.isOpen, highlightedIndex: e.isOpen ? -1 : _u(a, e, 0) }; - break; - case 19: - r = { selectedItem: t.selectedItem, inputValue: a.itemToString(t.selectedItem) }; - break; - case 22: - r = { inputValue: t.inputValue }; - break; - default: - return (function (e, t, n) { - var r, - o = t.type, - a = t.props; - switch (o) { - case n.ItemMouseMove: - r = { highlightedIndex: t.disabled ? -1 : t.index }; - break; - case n.MenuMouseLeave: - r = { highlightedIndex: -1 }; - break; - case n.ToggleButtonClick: - case n.FunctionToggleMenu: - r = { isOpen: !e.isOpen, highlightedIndex: e.isOpen ? -1 : _u(a, e, 0) }; - break; - case n.FunctionOpenMenu: - r = { isOpen: !0, highlightedIndex: _u(a, e, 0) }; - break; - case n.FunctionCloseMenu: - r = { isOpen: !1 }; - break; - case n.FunctionSetHighlightedIndex: - r = { highlightedIndex: t.highlightedIndex }; - break; - case n.FunctionSetInputValue: - r = { inputValue: t.inputValue }; - break; - case n.FunctionReset: - r = { - highlightedIndex: zu(a, 'highlightedIndex'), - isOpen: zu(a, 'isOpen'), - selectedItem: zu(a, 'selectedItem'), - inputValue: zu(a, 'inputValue'), - }; - break; - default: - throw new Error('Reducer called without proper action type.'); } - return tr({}, e, r); - })(e, t, qu); - } - return tr({}, e, r); + return target; + }; + return _extends$U.apply(this, arguments); } -var Xu = ['onMouseLeave', 'refKey', 'ref'], - Ju = [ - 'item', - 'index', - 'refKey', - 'ref', - 'onMouseMove', - 'onMouseDown', - 'onClick', - 'onPress', - 'disabled', - ], - Zu = ['onClick', 'onPress', 'refKey', 'ref'], - ed = ['onKeyDown', 'onChange', 'onInput', 'onBlur', 'onChangeText', 'onClick', 'refKey', 'ref']; -function td(e) { - void 0 === e && (e = {}); - var t = tr({}, Gu, e), - n = t.items, - r = t.scrollIntoView, - o = t.environment, - a = t.getA11yStatusMessage, - i = t.getA11ySelectionMessage, - s = t.itemToString, - l = Ku(Qu, t, Yu, Bu), - u = l[0], - d = l[1], - p = u.isOpen, - f = u.highlightedIndex, - m = u.selectedItem, - h = u.inputValue, - g = c.useRef(null), - v = c.useRef({}), - b = c.useRef(null), - y = c.useRef(null), - w = Wu(), - x = Ru(t), - k = c.useRef(), - E = Du({ state: u, props: t }), - S = c.useCallback( - function (e) { - return v.current[x.getItemId(e)]; +var SvgAlertErrorStroke$3 = function SvgAlertErrorStroke(props) { + return /*#__PURE__*/ reactExports.createElement( + 'svg', + _extends$U( + { + xmlns: 'http://www.w3.org/2000/svg', + width: 16, + height: 16, + focusable: 'false', + viewBox: '0 0 16 16', + 'aria-hidden': 'true', }, - [x] - ); - Hu( - a, - [p, f, h, n], - tr({ previousResultCount: k.current, items: n, environment: o, itemToString: s }, u) - ), - Hu( - i, - [m], - tr({ previousResultCount: k.current, items: n, environment: o, itemToString: s }, u) - ); - var C = (function (e) { - var t = e.highlightedIndex, - n = e.isOpen, - r = e.itemRefs, - o = e.getItemNodeFromIndex, - a = e.menuElement, - i = e.scrollIntoView, - s = c.useRef(!0); - return ( - Lu( - function () { - t < 0 || - !n || - !Object.keys(r.current).length || - (!1 === s.current ? (s.current = !0) : i(o(t), a)); - }, - [t] - ), - s - ); - })({ - menuElement: g.current, - highlightedIndex: f, - isOpen: p, - itemRefs: v, - scrollIntoView: r, - getItemNodeFromIndex: S, - }); - c.useEffect(function () { - Fu(t, 'isOpen') && b.current && b.current.focus(); - }, []), - c.useEffect(function () { - w || (k.current = n.length); - }); - var O = (function (e, t, n) { - var r = c.useRef({ isMouseDown: !1, isTouchMove: !1, isTouchEnd: !1 }); - return ( - c.useEffect( - function () { - if (!e) return gu; - var o = t.map(function (e) { - return e.current; - }); - function a() { - (r.current.isTouchEnd = !1), (r.current.isMouseDown = !0); - } - function i(t) { - (r.current.isMouseDown = !1), Cu(t.target, o, e) || n(); - } - function s() { - (r.current.isTouchEnd = !1), (r.current.isTouchMove = !1); - } - function l() { - r.current.isTouchMove = !0; - } - function c(t) { - (r.current.isTouchEnd = !0), r.current.isTouchMove || Cu(t.target, o, e, !1) || n(); - } - return ( - e.addEventListener('mousedown', a), - e.addEventListener('mouseup', i), - e.addEventListener('touchstart', s), - e.addEventListener('touchmove', l), - e.addEventListener('touchend', c), - function () { - e.removeEventListener('mousedown', a), - e.removeEventListener('mouseup', i), - e.removeEventListener('touchstart', s), - e.removeEventListener('touchmove', l), - e.removeEventListener('touchend', c); - } - ); - }, - [e, n] - ), - r.current - ); - })( - o, - [y, g, b], - c.useCallback( - function () { - E.current.state.isOpen && d({ type: 9, selectItem: !1 }); - }, - [d, E] - ) - ), - P = gu; - c.useEffect( - function () { - p || (v.current = {}); - }, - [p] - ), - c.useEffect( - function () { - var e; - p && - null != o && - o.document && - null != b && - null != (e = b.current) && - e.focus && - o.document.activeElement !== b.current && - b.current.focus(); - }, - [p, o] - ); - var T = c.useMemo( - function () { - return { - ArrowDown: function (e) { - e.preventDefault(), d({ type: 0, altKey: e.altKey }); - }, - ArrowUp: function (e) { - e.preventDefault(), d({ type: 1, altKey: e.altKey }); - }, - Home: function (e) { - E.current.state.isOpen && (e.preventDefault(), d({ type: 3 })); - }, - End: function (e) { - E.current.state.isOpen && (e.preventDefault(), d({ type: 4 })); - }, - Escape: function (e) { - var t = E.current.state; - (t.isOpen || t.inputValue || t.selectedItem || t.highlightedIndex > -1) && - (e.preventDefault(), d({ type: 2 })); - }, - Enter: function (e) { - E.current.state.isOpen && 229 !== e.which && (e.preventDefault(), d({ type: 7 })); - }, - PageUp: function (e) { - E.current.state.isOpen && (e.preventDefault(), d({ type: 5 })); - }, - PageDown: function (e) { - E.current.state.isOpen && (e.preventDefault(), d({ type: 6 })); - }, - }; - }, - [d, E] - ), - I = c.useCallback( - function (e) { - return tr({ id: x.labelId, htmlFor: x.inputId }, e); - }, - [x] - ), - N = c.useCallback( - function (e, t) { - var n, - r = void 0 === e ? {} : e, - o = r.onMouseLeave, - a = r.refKey, - i = void 0 === a ? 'ref' : a, - s = r.ref, - l = Pa(r, Xu); - return ( - (void 0 === t ? {} : t).suppressRefError, - tr( - (((n = {})[i] = wu(s, function (e) { - g.current = e; - })), - (n.id = x.menuId), - (n.role = 'listbox'), - (n['aria-labelledby'] = l && l['aria-label'] ? void 0 : '' + x.labelId), - (n.onMouseLeave = yu(o, function () { - d({ type: 11 }); - })), - n), - l - ) - ); - }, - [d, P, x] - ), - M = c.useCallback( - function (e) { - var t, - n, - r = void 0 === e ? {} : e, - o = r.item, - a = r.index, - i = r.refKey, - s = void 0 === i ? 'ref' : i, - l = r.ref, - c = r.onMouseMove, - u = r.onMouseDown, - p = r.onClick; - r.onPress; - var f = r.disabled, - m = Pa(r, Ju); - void 0 !== f && - console.warn( - 'Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.' - ); - var h = E.current, - g = h.props, - b = h.state, - y = (function (e, t, n, r) { - var o, a; - if (void 0 === e) { - if (void 0 === t) throw new Error(r); - (o = n[t]), (a = t); - } else (a = void 0 === t ? n.indexOf(e) : t), (o = e); - return [o, a]; - })(o, a, g.items, 'Pass either item or index to getItemProps!'), - w = y[0], - k = y[1], - S = g.isItemDisabled(w, k), - P = p; - return tr( - (((t = {})[s] = wu(l, function (e) { - e && (v.current[x.getItemId(k)] = e); - })), - (t['aria-disabled'] = S), - (t['aria-selected'] = '' + (k === b.highlightedIndex)), - (t.id = x.getItemId(k)), - (t.role = 'option'), - t), - !S && - (((n = {}).onClick = yu(P, function () { - d({ type: 13, index: k }); - })), - n), - { - onMouseMove: yu(c, function () { - O.isTouchEnd || - k === b.highlightedIndex || - ((C.current = !1), d({ type: 12, index: k, disabled: S })); - }), - onMouseDown: yu(u, function (e) { - return e.preventDefault(); - }), - }, - m - ); - }, - [d, x, E, O, C] - ), - L = c.useCallback( - function (e) { - var t, - n = void 0 === e ? {} : e, - r = n.onClick; - n.onPress; - var o = n.refKey, - a = void 0 === o ? 'ref' : o, - i = n.ref, - s = Pa(n, Zu), - l = E.current.state; - return tr( - (((t = {})[a] = wu(i, function (e) { - y.current = e; - })), - (t['aria-controls'] = x.menuId), - (t['aria-expanded'] = l.isOpen), - (t.id = x.toggleButtonId), - (t.tabIndex = -1), - t), - !s.disabled && - tr( - {}, - { - onClick: yu(r, function () { - d({ type: 14 }); - }), - } - ), - s - ); - }, - [d, E, x] + props ), - R = c.useCallback( - function (e, t) { - var n, - r = void 0 === e ? {} : e, - a = r.onKeyDown, - i = r.onChange, - s = r.onInput, - l = r.onBlur; - r.onChangeText; - var c = r.onClick, - u = r.refKey, - p = void 0 === u ? 'ref' : u, - f = r.ref, - m = Pa(r, ed); - (void 0 === t ? {} : t).suppressRefError; - var h, - g = E.current.state, - v = {}; - m.disabled || - (((h = {}).onChange = yu(i, s, function (e) { - d({ type: 8, inputValue: e.target.value }); - })), - (h.onKeyDown = yu(a, function (e) { - var t = (function (e) { - var t = e.key, - n = e.keyCode; - return n >= 37 && n <= 40 && 0 !== t.indexOf('Arrow') ? 'Arrow' + t : t; - })(e); - t && T[t] && T[t](e); - })), - (h.onBlur = yu(l, function (e) { - if (null != o && o.document && g.isOpen && !O.isMouseDown) { - var t = null === e.relatedTarget && o.document.activeElement !== o.document.body; - d({ type: 9, selectItem: !t }); - } - })), - (h.onClick = yu(c, function () { - d({ type: 10 }); - })), - (v = h)); - return tr( - (((n = {})[p] = wu(f, function (e) { - b.current = e; - })), - (n['aria-activedescendant'] = - g.isOpen && g.highlightedIndex > -1 ? x.getItemId(g.highlightedIndex) : ''), - (n['aria-autocomplete'] = 'list'), - (n['aria-controls'] = x.menuId), - (n['aria-expanded'] = g.isOpen), - (n['aria-labelledby'] = m && m['aria-label'] ? void 0 : x.labelId), - (n.autoComplete = 'off'), - (n.id = x.inputId), - (n.role = 'combobox'), - (n.value = g.inputValue), - n), - v, - m - ); - }, - [d, x, o, T, E, O, P] - ), - A = c.useCallback( - function () { - d({ type: 15 }); - }, - [d] - ), - D = c.useCallback( - function () { - d({ type: 17 }); - }, - [d] - ), - j = c.useCallback( - function () { - d({ type: 16 }); - }, - [d] - ), - z = c.useCallback( - function (e) { - d({ type: 18, highlightedIndex: e }); - }, - [d] - ), - F = c.useCallback( - function (e) { - d({ type: 19, selectedItem: e }); - }, - [d] - ); - return { - getItemProps: M, - getLabelProps: I, - getMenuProps: N, - getInputProps: R, - getToggleButtonProps: L, - toggleMenu: A, - openMenu: j, - closeMenu: D, - setHighlightedIndex: z, - setInputValue: c.useCallback( - function (e) { - d({ type: 20, inputValue: e }); - }, - [d] - ), - selectItem: F, - reset: c.useCallback( - function () { - d({ type: 21 }); - }, - [d] - ), - highlightedIndex: f, - isOpen: p, - selectedItem: m, - inputValue: h, - }; -} -(td.stateChangeTypes = qu), - tr({}, Vu, { - selectedItems: Pn.array, - initialSelectedItems: Pn.array, - defaultSelectedItems: Pn.array, - getA11yRemovalMessage: Pn.func, - activeIndex: Pn.number, - initialActiveIndex: Pn.number, - defaultActiveIndex: Pn.number, - onActiveIndexChange: Pn.func, - onSelectedItemsChange: Pn.func, - keyNavigationNext: Pn.string, - keyNavigationPrevious: Pn.string, - }); -const nd = { - [td.stateChangeTypes.FunctionCloseMenu]: 'fn:setExpansion', - [td.stateChangeTypes.FunctionOpenMenu]: 'fn:setExpansion', - [td.stateChangeTypes.FunctionToggleMenu]: 'fn:setExpansion', - [td.stateChangeTypes.FunctionReset]: 'fn:reset', - [td.stateChangeTypes.FunctionSelectItem]: 'fn:setSelectionValue', - [td.stateChangeTypes.FunctionSetHighlightedIndex]: 'fn:setActiveIndex', - [td.stateChangeTypes.FunctionSetInputValue]: 'fn:setInputValue', - [td.stateChangeTypes.InputBlur]: 'input:blur', - [td.stateChangeTypes.InputChange]: 'input:change', - [td.stateChangeTypes.InputClick]: 'input:click', - [td.stateChangeTypes.InputKeyDownArrowDown]: `input:keyDown:${zn.DOWN}`, - [td.stateChangeTypes.InputKeyDownArrowUp]: `input:keyDown:${zn.UP}`, - [td.stateChangeTypes.InputKeyDownEnd]: `input:keyDown:${zn.END}`, - [td.stateChangeTypes.InputKeyDownEnter]: `input:keyDown:${zn.ENTER}`, - [td.stateChangeTypes.InputKeyDownEscape]: `input:keyDown:${zn.ESCAPE}`, - [td.stateChangeTypes.InputKeyDownHome]: `input:keyDown:${zn.HOME}`, - [td.stateChangeTypes.InputKeyDownPageDown]: `input:keyDown:${zn.PAGE_DOWN}`, - [td.stateChangeTypes.InputKeyDownPageUp]: `input:keyDown:${zn.PAGE_UP}`, - [td.stateChangeTypes.ItemClick]: 'option:click', - [td.stateChangeTypes.ItemMouseMove]: 'option:mouseMove', - [td.stateChangeTypes.MenuMouseLeave]: 'listbox:mouseLeave', - [td.stateChangeTypes.ToggleButtonClick]: 'toggle:click', - }, - rd = (e) => nd[e] || e, - od = (e, t) => { - if (void 0 === t) return ''; - return e['string' == typeof t ? t : JSON.stringify(t)]; - }; -Pn.func, - Pn.func, - Pn.string, - Pn.any.isRequired, - Pn.any.isRequired, - Pn.any.isRequired, - Pn.bool, - Pn.bool, - Pn.bool, - Pn.bool, - Pn.bool, - Pn.bool, - Pn.arrayOf(Pn.any).isRequired, - Pn.string, - Pn.oneOfType([Pn.string, Pn.arrayOf(Pn.string)]), - Pn.bool, - Pn.bool, - Pn.bool, - Pn.number, - Pn.number, - Pn.number, - Pn.func, - Pn.any; -const ad = c.createContext(void 0), - id = () => c.useContext(ad), - sd = 'forms.input_label', - ld = Sn.label - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || sd, - 'data-garden-version': e['data-garden-version'] || '8.76.8', - })) - .withConfig({ displayName: 'StyledLabel', componentId: 'sc-2utmsz-0' })( - [ - 'direction:', - ';vertical-align:middle;line-height:', - ';color:', - ';font-size:', - ';font-weight:', - ';&[hidden]{display:', - ';vertical-align:', - ';text-indent:', - ';font-size:', - ';', - ';}', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(5 * e.theme.space.base, e.theme.fontSizes.md), - (e) => Ro('foreground', 600, e.theme), - (e) => e.theme.fontSizes.md, - (e) => (e.isRegular ? e.theme.fontWeights.regular : e.theme.fontWeights.semibold), - (e) => (e.isRadio ? 'inline-block' : 'inline'), - (e) => e.isRadio && 'top', - (e) => e.isRadio && '-100%', - (e) => e.isRadio && '0', - (e) => - !e.isRadio && { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(sd, e) - ); -ld.defaultProps = { theme: Xn }; -const cd = 'forms.input_hint', - ud = Sn.div - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || cd, - 'data-garden-version': e['data-garden-version'] || '8.76.8', - })) - .withConfig({ displayName: 'StyledHint', componentId: 'sc-17c2wu8-0' })( - [ - 'direction:', - ';display:block;vertical-align:middle;line-height:', - ';color:', - ';font-size:', - ';', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(5 * e.theme.space.base, e.theme.fontSizes.md), - (e) => Ro('neutralHue', 600, e.theme), - (e) => e.theme.fontSizes.md, - (e) => er(cd, e) - ); -var dd, pd; -function fd() { - return ( - (fd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - fd.apply(null, arguments) - ); -} -ud.defaultProps = { theme: Xn }; -var md, - hd, - gd = function (e) { - return c.createElement( - 'svg', - fd( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - dd || - (dd = c.createElement( - 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }), - c.createElement('path', { strokeLinecap: 'round', d: 'M7.5 4.5V9' }) - )), - pd || (pd = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }; -function vd() { - return ( - (vd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - vd.apply(null, arguments) - ); -} -var bd, - yd = function (e) { - return c.createElement( - 'svg', - vd( + _g$9 || + (_g$9 = /*#__PURE__*/ reactExports.createElement( + 'g', { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - md || - (md = c.createElement('path', { fill: 'none', stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5', - })), - hd || (hd = c.createElement('circle', { cx: 7.5, cy: 12, r: 1, fill: 'currentColor' })) - ); - }; -function wd() { - return ( - (wd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; + }, + /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 8.5, + r: 7, }), - wd.apply(null, arguments) + /*#__PURE__*/ reactExports.createElement('path', { + strokeLinecap: 'round', + d: 'M7.5 4.5V9', + }) + )), + _circle$e || + (_circle$e = /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 12, + r: 1, + fill: 'currentColor', + })) ); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _g$8; +function _extends$T() { + _extends$T = 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$T.apply(this, arguments); } -var xd = function (e) { - return c.createElement( +var SvgCheckCircleStroke$4 = function SvgCheckCircleStroke(props) { + return /*#__PURE__*/ reactExports.createElement( 'svg', - wd( + _extends$T( { xmlns: 'http://www.w3.org/2000/svg', width: 16, @@ -20229,1426 +18629,289 @@ var xd = function (e) { viewBox: '0 0 16 16', 'aria-hidden': 'true', }, - e + props ), - bd || - (bd = c.createElement( + _g$8 || + (_g$8 = /*#__PURE__*/ reactExports.createElement( 'g', - { fill: 'none', stroke: 'currentColor' }, - c.createElement('path', { + { + fill: 'none', + stroke: 'currentColor', + }, + /*#__PURE__*/ reactExports.createElement('path', { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4 9l2.5 2.5 5-5', }), - c.createElement('circle', { cx: 7.5, cy: 8.5, r: 7 }) + /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 8.5, + r: 7, + }) )) ); }; -const kd = 'forms.input_message_icon', - Ed = Sn((e) => { - let t, - { children: n, validation: r, ...o } = e; - return ( - (t = - 'error' === r - ? u.createElement(gd, o) - : 'success' === r - ? u.createElement(xd, o) - : 'warning' === r - ? u.createElement(yd, o) - : u.cloneElement(c.Children.only(n))), - t - ); - }) - .attrs({ - 'data-garden-id': kd, - 'data-garden-version': '8.76.8', - 'aria-hidden': null, - role: 'img', - }) - .withConfig({ displayName: 'StyledMessageIcon', componentId: 'sc-1ph2gba-0' })( - ['width:', ';height:', ';', ';'], - (e) => e.theme.iconSizes.md, - (e) => e.theme.iconSizes.md, - (e) => er(kd, e) - ); -Ed.defaultProps = { theme: Xn }; -const Sd = 'forms.input_message', - Cd = Sn.div - .attrs((e) => ({ - 'data-garden-id': e['data-garden-id'] || Sd, - 'data-garden-version': e['data-garden-version'] || '8.76.8', - })) - .withConfig({ displayName: 'StyledMessage', componentId: 'sc-30hgg7-0' })( - [ - 'direction:', - ';display:inline-block;position:relative;vertical-align:middle;line-height:', - ';font-size:', - ';', - ';& ', - '{position:absolute;top:-1px;', - ':0;}', - ':not([hidden]) + &{display:block;margin-top:', - ';}', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => Do(e.theme.iconSizes.md, e.theme.fontSizes.sm), - (e) => e.theme.fontSizes.sm, - (e) => - ((e) => { - const t = e.theme.rtl, - n = gr(`${e.theme.space.base} * 2px + ${e.theme.iconSizes.md}`); - let r; - return ( - (r = - 'error' === e.validation - ? Ro('dangerHue', 600, e.theme) - : 'success' === e.validation - ? Ro('successHue', 600, e.theme) - : 'warning' === e.validation - ? Ro('warningHue', 700, e.theme) - : Ro('neutralHue', 700, e.theme)), - rn(['padding-', ':', ';color:', ';'], t ? 'right' : 'left', e.validation && n, r) - ); - })(e), - Ed, - (e) => (e.theme.rtl ? 'right' : 'left'), - ld, - (e) => gr(`${e.theme.space.base} * 1px`), - (e) => er(Sd, e) - ); -Cd.defaultProps = { theme: Xn }; -const Od = 'forms.radio_label', - Pd = Sn(ld) - .attrs({ 'data-garden-id': Od, 'data-garden-version': '8.76.8', isRadio: !0 }) - .withConfig({ displayName: 'StyledRadioLabel', componentId: 'sc-1aq2e5t-0' })( - ['display:inline-block;position:relative;cursor:pointer;', ';', ';'], - (e) => - ((e) => { - const t = 4 * e.theme.space.base, - n = t + 2 * e.theme.space.base, - r = 5 * e.theme.space.base; - return rn( - ['padding-', ':', 'px;&[hidden]{padding-', ':', 'px;line-height:', 'px;}'], - e.theme.rtl ? 'right' : 'left', - n, - e.theme.rtl ? 'right' : 'left', - t, - r - ); - })(e), - (e) => er(Od, e) - ); -Pd.defaultProps = { theme: Xn }; -const Td = 'forms.checkbox_label', - Id = Sn(Pd) - .attrs({ 'data-garden-id': Td, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledCheckLabel', componentId: 'sc-x7nr1-0' })(['', ';'], (e) => - er(Td, e) - ); -Id.defaultProps = { theme: Xn }; -const Nd = 'forms.radio_hint', - Md = Sn(ud) - .attrs({ 'data-garden-id': Nd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledRadioHint', componentId: 'sc-eo8twg-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 6px`), - (e) => er(Nd, e) - ); -Md.defaultProps = { theme: Xn }; -const Ld = 'forms.checkbox_hint', - Rd = Sn(Md) - .attrs({ 'data-garden-id': Ld, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledCheckHint', componentId: 'sc-1kl8e8c-0' })(['', ';'], (e) => - er(Ld, e) - ); -Rd.defaultProps = { theme: Xn }; -const Ad = 'forms.radio', - Dd = Sn.input - .attrs({ 'data-garden-id': Ad, 'data-garden-version': '8.76.8', type: 'radio' }) - .withConfig({ displayName: 'StyledRadioInput', componentId: 'sc-qsavpv-0' })( - [ - 'position:absolute;opacity:0;margin:0;& ~ ', - '::before{position:absolute;', - ':0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border:', - ";border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", - ' > svg{position:absolute;}', - ';&:focus ~ ', - '::before{outline:none;}& ~ ', - ':active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}', - ';&:disabled ~ ', - '{cursor:default;}', - ';', - ], - Pd, - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => e.theme.borders.sm, - Pd, - (e) => - ((e) => { - const t = 5 * e.theme.space.base + 'px', - n = 4 * e.theme.space.base + 'px', - r = gr(`(${t} - ${n}) / 2`), - o = e.theme.iconSizes.sm, - a = gr(`(${n} - ${o}) / 2`), - i = gr(`${a} + ${r}`), - s = e.theme.space.base * (e.isCompact ? 1 : 2) + 'px'; - return rn( - [ - 'top:', - ';width:', - ';height:', - ';& ~ ', - '::before{top:', - ';background-size:', - ';width:', - ';height:', - ';box-sizing:border-box;}& ~ ', - ' > svg{top:', - ';', - ':', - ';width:', - ';height:', - ';}&& ~ ', - ' ~ ', - '{margin-top:', - ';}', - ], - r, - n, - n, - Pd, - r, - e.theme.iconSizes.sm, - n, - n, - Pd, - i, - e.theme.rtl ? 'right' : 'left', - a, - o, - o, - Pd, - Cd, - s - ); - })(e), - Pd, - Pd, - (e) => - ((e) => { - const t = 600, - n = Ro('neutralHue', 300, e.theme), - r = Ro('background', 600, e.theme), - o = r, - a = Ro('primaryHue', t, e.theme, 0.08), - i = Ro('primaryHue', t, e.theme), - s = i, - l = Ro('primaryHue', t, e.theme, 0.2), - c = s, - u = s, - d = u, - p = Ro('primaryHue', 700, e.theme), - f = p, - m = Ro('primaryHue', 800, e.theme), - h = m, - g = Ro('neutralHue', 200, e.theme); - return rn( - [ - '& ~ ', - '::before{border-color:', - ';background-color:', - ';}& ~ ', - ' > svg{color:', - ';}& ~ ', - ':hover::before{border-color:', - ';background-color:', - ';}', - ' & ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:checked ~ ', - '::before{border-color:', - ';background-color:', - ';}&:enabled:checked ~ ', - ':hover::before{border-color:', - ';background-color:', - ';}&:enabled:checked ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:disabled ~ ', - '::before{border-color:transparent;background-color:', - ';}', - ], - Pd, - n, - r, - Pd, - o, - Pd, - i, - a, - Bo({ - theme: e.theme, - styles: { borderColor: s }, - selector: `&:focus-visible ~ ${Pd}::before, &[data-garden-focus-visible='true'] ~ ${Pd}::before`, - }), - Pd, - c, - l, - Pd, - u, - d, - Pd, - p, - f, - Pd, - m, - h, - Pd, - g - ); - })(e), - Pd, - (e) => er(Ad, e) - ); -Dd.defaultProps = { theme: Xn }; -const jd = 'forms.checkbox', - zd = Sn(Dd) - .attrs({ 'data-garden-id': jd, 'data-garden-version': '8.76.8', type: 'checkbox' }) - .withConfig({ displayName: 'StyledCheckInput', componentId: 'sc-176jxxe-0' })( - ['& ~ ', '::before{border-radius:', ';}', ';', ';'], - Id, - (e) => e.theme.borderRadii.md, - (e) => - ((e) => { - const t = Ro('primaryHue', 600, e.theme), - n = t, - r = Ro('primaryHue', 700, e.theme), - o = r, - a = Ro('neutralHue', 200, e.theme); - return rn( - [ - '&:indeterminate ~ ', - '::before{border-color:', - ';background-color:', - ';}&:enabled:indeterminate ~ ', - ':active::before{border-color:', - ';background-color:', - ';}&:disabled:indeterminate ~ ', - '::before{border-color:transparent;background-color:', - ';}', - ], - Id, - t, - n, - Id, - r, - o, - Id, - a - ); - })(e), - (e) => er(jd, e) - ); -zd.defaultProps = { theme: Xn }; -const Fd = 'forms.radio_message', - _d = Sn(Cd) - .attrs({ 'data-garden-id': Fd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledRadioMessage', componentId: 'sc-1pmi0q8-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 6px`), - (e) => er(Fd, e) - ); -_d.defaultProps = { theme: Xn }; -const Hd = 'forms.checkbox_message', - $d = Sn(_d) - .attrs({ 'data-garden-id': Hd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledCheckMessage', componentId: 'sc-s4p6kd-0' })(['', ';'], (e) => - er(Hd, e) - ); -var Bd; -function Wd() { - return ( - (Wd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _path$F, _circle$d; +function _extends$S() { + _extends$S = 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 e; - }), - Wd.apply(null, arguments) + } + return target; + }; + return _extends$S.apply(this, arguments); +} +var SvgAlertWarningStroke$3 = function SvgAlertWarningStroke(props) { + return /*#__PURE__*/ reactExports.createElement( + 'svg', + _extends$S( + { + xmlns: 'http://www.w3.org/2000/svg', + width: 16, + height: 16, + focusable: 'false', + viewBox: '0 0 16 16', + 'aria-hidden': 'true', + }, + props + ), + _path$F || + (_path$F = /*#__PURE__*/ reactExports.createElement('path', { + fill: 'none', + stroke: 'currentColor', + strokeLinecap: 'round', + d: 'M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5', + })), + _circle$d || + (_circle$d = /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 12, + r: 1, + fill: 'currentColor', + })) ); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _g$7, _circle$c; +function _extends$R() { + _extends$R = 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$R.apply(this, arguments); } -$d.defaultProps = { theme: Xn }; -const Vd = 'forms.check_svg', - Ud = Sn(function (e) { - return c.createElement( - 'svg', - Wd( +var SvgInfoStroke = function SvgInfoStroke(props) { + return /*#__PURE__*/ reactExports.createElement( + 'svg', + _extends$R( + { + xmlns: 'http://www.w3.org/2000/svg', + width: 16, + height: 16, + focusable: 'false', + viewBox: '0 0 16 16', + 'aria-hidden': 'true', + }, + props + ), + _g$7 || + (_g$7 = /*#__PURE__*/ reactExports.createElement( + 'g', { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', + stroke: 'currentColor', }, - e - ), - Bd || - (Bd = c.createElement('path', { + /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 8.5, + r: 7, fill: 'none', - stroke: 'currentColor', - strokeLinecap: 'round', - strokeLinejoin: 'round', - strokeWidth: 2, - d: 'M3 6l2 2 4-4', - })) - ); - }) - .attrs({ 'data-garden-id': Vd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledCheckSvg', componentId: 'sc-fvxetk-0' })( - [ - 'transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;', - ':checked ~ ', - ' > &{opacity:1;}', - ':indeterminate ~ ', - ' > &{opacity:0;}', - ';', - ], - zd, - Id, - zd, - Id, - (e) => er(Vd, e) - ); -var qd; -function Yd() { - return ( - (Yd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; }), - Yd.apply(null, arguments) + /*#__PURE__*/ reactExports.createElement('path', { + strokeLinecap: 'round', + d: 'M7.5 12.5V8', + }) + )), + _circle$c || + (_circle$c = /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 5, + r: 1, + fill: 'currentColor', + })) ); -} -Ud.defaultProps = { theme: Xn }; -const Kd = 'forms.dash_svg', - Gd = Sn(function (e) { - return c.createElement( - 'svg', - Yd( +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const validationIcons = { + success: SvgCheckCircleStroke$4, + error: SvgAlertErrorStroke$3, + warning: SvgAlertWarningStroke$3, + info: SvgInfoStroke, +}; +const validationHues = { + success: 'successHue', + error: 'dangerHue', + warning: 'warningHue', + info: 'neutralHue', +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const NotificationsContext = reactExports.createContext(undefined); +const useNotificationsContext = () => { + return reactExports.useContext(NotificationsContext); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const Alert = U$6.forwardRef((_ref, ref) => { + let { role, ...props } = _ref; + const hue = validationHues[props.type]; + const Icon = validationIcons[props.type]; + return U$6.createElement( + NotificationsContext.Provider, + { + value: hue, + }, + U$6.createElement( + StyledAlert, + Object.assign( { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', + ref: ref, + hue: hue, + role: role === undefined ? 'alert' : role, }, - e + props ), - qd || - (qd = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - strokeWidth: 2, - d: 'M3 6h6', - })) - ); - }) - .attrs({ 'data-garden-id': Kd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledDashSvg', componentId: 'sc-z3vq71-0' })( - [ - 'transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;', - ':indeterminate ~ ', - ' > &{opacity:1;}', - ';', - ], - zd, - Id, - (e) => er(Kd, e) - ); -var Qd; -function Xd() { - return ( - (Xd = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Xd.apply(null, arguments) - ); -} -Gd.defaultProps = { theme: Xn }; -const Jd = 'forms.radio_svg', - Zd = Sn(function (e) { - return c.createElement( - 'svg', - Xd( + U$6.createElement( + StyledIcon$2, { - xmlns: 'http://www.w3.org/2000/svg', - width: 12, - height: 12, - focusable: 'false', - viewBox: '0 0 12 12', - 'aria-hidden': 'true', + hue: hue, }, - e + U$6.createElement(Icon, null) ), - Qd || (Qd = c.createElement('circle', { cx: 6, cy: 6, r: 2, fill: 'currentColor' })) - ); - }) - .attrs({ 'data-garden-id': Jd, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledRadioSvg', componentId: 'sc-1r1qtr1-0' })( - ['transition:opacity 0.25s ease-in-out;opacity:0;', ':checked ~ ', ' > &{opacity:1;}', ';'], - Dd, - Pd, - (e) => er(Jd, e) - ); -Zd.defaultProps = { theme: Xn }; -const ep = 'forms.toggle_label', - tp = Sn(Id) - .attrs({ 'data-garden-id': ep, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledToggleLabel', componentId: 'sc-e0asdk-0' })( - ['', ';', ';'], - (e) => - ((e) => { - const t = 10 * e.theme.space.base, - n = t + 2 * e.theme.space.base; - return rn( - ['padding-', ':', 'px;&[hidden]{padding-', ':', 'px;}'], - e.theme.rtl ? 'right' : 'left', - n, - e.theme.rtl ? 'right' : 'left', - t - ); - })(e), - (e) => er(ep, e) - ); -tp.defaultProps = { theme: Xn }; -const np = 'forms.toggle_hint', - rp = Sn(ud) - .attrs({ 'data-garden-id': np, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledToggleHint', componentId: 'sc-nziggu-0' })( - ['padding-', ':', ';', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 12px`), - (e) => er(np, e) - ); -rp.defaultProps = { theme: Xn }; -const op = 'forms.toggle_message', - ap = Sn(Cd) - .attrs({ 'data-garden-id': op, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledToggleMessage', componentId: 'sc-13vuvl1-0' })( - ['padding-', ':', ';& ', '{', ':', ';}', ';'], - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 12px`), - Ed, - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => gr(`${e.theme.space.base} * 10px - ${e.theme.iconSizes.md}`), - (e) => er(op, e) - ); -var ip; -function sp() { - return ( - (sp = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - sp.apply(null, arguments) + props.children + ) ); -} -ap.defaultProps = { theme: Xn }; -const lp = 'forms.toggle_svg', - cp = Sn(function (e) { - return c.createElement( - 'svg', - sp( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - ip || (ip = c.createElement('circle', { cx: 8, cy: 8, r: 6, fill: 'currentColor' })) - ); - }) - .attrs({ 'data-garden-id': lp, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledToggleSvg', componentId: 'sc-162xbyx-0' })( - ['transition:all 0.15s ease-in-out;', ';'], - (e) => er(lp, e) - ); -cp.defaultProps = { theme: Xn }; -const up = c.createContext(void 0), - dp = c.createContext(void 0), - pp = () => c.useContext(dp), - fp = u.forwardRef((e, t) => { - const { hasHint: n, setHasHint: r, getHintProps: o } = id() || {}, - a = pp(); - let i; - c.useEffect( - () => ( - !n && r && r(!0), - () => { - n && r && r(!1); - } - ), - [n, r] - ), - (i = 'checkbox' === a ? Rd : 'radio' === a ? Md : 'toggle' === a ? rp : ud); - let s = e; - return o && (s = o(s)), u.createElement(i, Object.assign({ ref: t }, s)); - }); -fp.displayName = 'Hint'; -const mp = u.forwardRef((e, t) => { - const n = id(), - r = c.useContext(up), - o = pp(); - let a = e; - if (n && ((a = n.getLabelProps(a)), void 0 === o)) { - const { setIsLabelActive: t, setIsLabelHovered: r, multiThumbRangeRef: o } = n; - a = { - ...a, - onMouseUp: Dn(e.onMouseUp, () => { - t(!1); - }), - onMouseDown: Dn(e.onMouseDown, () => { - t(!0); - }), - onMouseEnter: Dn(e.onMouseEnter, () => { - r(!0); - }), - onMouseLeave: Dn(e.onMouseLeave, () => { - r(!1); - }), - onClick: Dn(e.onClick, () => { - o.current && o.current.focus(); - }), - }; - } - if ((r && (a = { ...a, isRegular: void 0 === a.isRegular || a.isRegular }), 'radio' === o)) - return u.createElement(Pd, Object.assign({ ref: t }, a), u.createElement(Zd, null), e.children); - if ('checkbox' === o) { - const r = (e) => { - const t = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1; - if (n && t && e.target instanceof Element) { - const t = e.target.getAttribute('for'); - if (!t) return; - const n = document.getElementById(t); - n && 'checkbox' === n.type && (e.shiftKey && (n.click(), (n.checked = !0)), n.focus()); - } - }; - return ( - (a = { ...a, onClick: Dn(a.onClick, r) }), - u.createElement( - Id, - Object.assign({ ref: t }, a), - u.createElement(Ud, null), - u.createElement(Gd, null), - e.children - ) - ); - } - return 'toggle' === o - ? u.createElement(tp, Object.assign({ ref: t }, a), u.createElement(cp, null), e.children) - : u.createElement(ld, Object.assign({ ref: t }, a)); }); -(mp.displayName = 'Label'), (mp.propTypes = { isRegular: Pn.bool }); -const hp = ['success', 'warning', 'error'], - gp = u.forwardRef((e, t) => { - let { validation: n, validationLabel: r, children: o, ...a } = e; - const { hasMessage: i, setHasMessage: s, getMessageProps: l } = id() || {}, - d = pp(); - let p; - c.useEffect( - () => ( - !i && s && s(!0), - () => { - i && s && s(!1); - } - ), - [i, s] - ), - (p = 'checkbox' === d ? $d : 'radio' === d ? _d : 'toggle' === d ? ap : Cd); - let f = { validation: n, validationLabel: r, ...a }; - l && (f = l(f)); - const m = _o(gp, f, 'validationLabel', n, void 0 !== n); - return u.createElement( - p, - Object.assign({ ref: t }, f), - n && u.createElement(Ed, { validation: n, 'aria-label': m }), - o - ); - }); -var vp; -function bp() { - return ( - (bp = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - bp.apply(this, arguments) - ); -} -(gp.displayName = 'Message'), - (gp.propTypes = { validation: Pn.oneOf(hp), validationLabel: Pn.string }); -var yp = function (e) { - return c.createElement( - 'svg', - bp( +Alert.displayName = 'Alert'; +Alert.propTypes = { + type: PropTypes.oneOf(TYPE$2).isRequired, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const Notification = reactExports.forwardRef((_ref, ref) => { + let { children, type, ...props } = _ref; + const Icon = type ? validationIcons[type] : SvgInfoStroke; + const hue = type && validationHues[type]; + return U$6.createElement( + StyledNotification, + Object.assign( { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', + ref: ref, + type: type, + isFloating: true, + role: 'alert', }, - e + props ), - vp || - (vp = c.createElement('path', { - fill: 'currentColor', - d: 'M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z', - })) - ); -}; -const wp = c.createContext(void 0), - xp = () => { - const e = c.useContext(wp); - if (!e) throw new Error('Error: this component must be rendered within a .'); - return e; - }, - kp = c.createContext(void 0), - Ep = () => { - const e = c.useContext(kp); - if (!e) throw new Error('Error: this component must be rendered within a .'); - return e; - }, - Sp = 'dropdowns.combobox.label', - Cp = Sn(mp) - .attrs({ 'data-garden-id': Sp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledLabel', componentId: 'sc-1889zee-0' })( - ['vertical-align:revert;', ';'], - (e) => er(Sp, e) - ); -Cp.defaultProps = { theme: Xn }; -const Op = 'dropdowns.combobox.hint', - Pp = Sn(fp) - .attrs({ 'data-garden-id': Op, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledHint', componentId: 'sc-9kt30-0' })(['', ';'], (e) => - er(Op, e) - ); -Pp.defaultProps = { theme: Xn }; -const Tp = 'dropdowns.combobox.message', - Ip = Sn(gp) - .attrs({ 'data-garden-id': Tp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledMessage', componentId: 'sc-15eqzu4-0' })(['', ';'], (e) => - er(Tp, e) - ); -Ip.defaultProps = { theme: Xn }; -const Np = 'dropdowns.combobox', - Mp = Sn.div - .attrs({ 'data-garden-id': Np, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledCombobox', componentId: 'sc-1hs98ew-0' })( - ['', ';', ';'], - (e) => { - const t = (e.isCompact ? 100 : 144) + 'px', - n = e.theme.space.base * (e.isCompact ? 1 : 2) + 'px'; - return rn( - [ - 'min-width:', - ';', - ':not([hidden]) + &&,', - ' + &&,', - ' + &&,&& + ', - ',&& + ', - '{margin-top:', - ';}', - ], - t, - Cp, - Pp, - Ip, - Pp, - Ip, - n - ); - }, - (e) => er(Np, e) - ); -Mp.defaultProps = { theme: Xn }; -const Lp = 'dropdowns.combobox.container', - Rp = Sn.div - .attrs({ 'data-garden-id': Lp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledContainer', componentId: 'sc-18gcb1g-0' })( - ['display:flex;', ';'], - (e) => er(Lp, e) - ); -Rp.defaultProps = { theme: Xn }; -const Ap = 'dropdowns.combobox.field', - Dp = Sn.div - .attrs({ 'data-garden-id': Ap, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledField', componentId: 'sc-k7y10k-0' })( - ['direction:', ';', ';'], - (e) => (e.theme.rtl ? 'rtl' : 'ltr'), - (e) => er(Ap, e) - ); -Dp.defaultProps = { theme: Xn }; -const jp = 'dropdowns.combobox.floating', - zp = Sn.div - .attrs({ 'data-garden-id': jp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledFloatingListbox', componentId: 'sc-xsp548-0' })( - ['top:0;left:0;', ';', ';'], - (e) => - Ho(e.position, { - theme: e.theme, - hidden: e.isHidden, - animationModifier: '[data-garden-animate="true"]', - zIndex: e.zIndex, - }), - (e) => er(jp, e) - ); -zp.defaultProps = { theme: Xn }; -const Fp = 'dropdowns.combobox.input', - _p = (e) => - e.isBare && !e.isMultiselectable - ? 5 * e.theme.space.base - : e.theme.space.base * (e.isCompact ? 5 : 8), - Hp = (e) => { - const t = 5 * e.theme.space.base, - n = e.theme.fontSizes.md, - r = Do(t, n), - o = gr(`${e.theme.shadowWidths.sm} + ${(_p(e) - t) / 2}`); - return rn( - [ - 'min-width:', - ';height:', - 'px;line-height:', - ';font-size:', - ';&&{margin-top:', - ';margin-bottom:', - ';}', - ], - 8 * e.theme.space.base + 'px', - t, - r, - n, - o, - o - ); - }, - $p = Sn.input - .attrs({ 'data-garden-id': Fp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledInput', componentId: 'sc-m2m56e-0' })( - [ - 'flex-basis:0;flex-grow:1;border:none;padding:0;font-family:inherit;&:focus{outline:none;}', - ';', - ';&[hidden]{display:revert;', - "}&[aria-hidden='true']{display:none;}", - ';', - ], - Hp, - (e) => - rn( - ['background-color:inherit;color:inherit;&::placeholder{opacity:1;color:', ';}'], - Ro('neutralHue', 400, e.theme) + type && + U$6.createElement( + StyledIcon$2, + { + hue: hue, + }, + U$6.createElement(Icon, null) ), - (e) => - e.isEditable && { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(Fp, e) - ); -$p.defaultProps = { theme: Xn }; -const Bp = 'dropdowns.combobox.input_group', - Wp = Sn.div - .attrs({ 'data-garden-id': Bp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledInputGroup', componentId: 'sc-2agt8f-0' })( - ['display:flex;flex-grow:1;flex-wrap:wrap;', ';', ';'], - (e) => { - const t = e.theme.shadowWidths.sm; - return rn(['margin:-', ';min-width:0;& > *{margin:', ';}'], t, t); - }, - (e) => er(Bp, e) - ); -Wp.defaultProps = { theme: Xn }; -const Vp = 'dropdowns.combobox.trigger', - Up = Sn.div - .attrs({ 'data-garden-id': Vp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTrigger', componentId: 'sc-14t9k4c-0' })( - [ - 'overflow-y:auto;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:', - ';border-radius:', - ';cursor:', - ';box-sizing:border-box;', - ';&:focus{outline:none;}', - ";&[aria-disabled='true']{cursor:default;}", - ';', - ], - (e) => (e.isBare ? 'none' : e.theme.borders.sm), - (e) => (e.isBare ? '0' : e.theme.borderRadii.md), - (e) => (!e.isAutocomplete && e.isEditable ? 'text' : 'pointer'), - (e) => { - const t = _p(e); - let n, r; - e.isBare - ? e.isMultiselectable - ? ((n = gr(`${e.theme.shadowWidths.sm} * 2 + ${t}`)), (r = e.theme.shadowWidths.sm)) - : ((n = `${t}px`), (r = '0')) - : ((n = `${e.theme.space.base * (e.isCompact ? 3 : 2) + t}px`), - (r = 3 * e.theme.space.base + 'px')); - const o = e.maxHeight || n; - return rn( - ['padding:', ' ', ';min-height:', ';max-height:', ';font-size:', ';'], - gr(`(${n} - ${t} - (${e.isBare ? 0 : e.theme.borderWidths.sm} * 2)) / 2`), - r, - n, - o, - e.theme.fontSizes.md - ); - }, - (e) => { - const t = 600; - let n = 'neutralHue'; - 'success' === e.validation - ? (n = 'successHue') - : 'warning' === e.validation - ? (n = 'warningHue') - : 'error' === e.validation && (n = 'dangerHue'); - const r = e.isBare ? 'transparent' : Ro('background', 600, e.theme); - let o, a, i, s; - e.validation - ? ((o = Ro(n, t, e.theme)), - (a = o), - 'warning' === e.validation ? ((i = Ro(n, 700, e.theme)), (s = 700)) : (i = o)) - : ((o = Ro('neutralHue', 300, e.theme)), (a = Ro('primaryHue', t, e.theme)), (i = a)); - const l = e.isBare ? void 0 : Ro('neutralHue', 100, e.theme), - c = Ro('neutralHue', 200, e.theme), - u = Ro('neutralHue', 400, e.theme); - return rn( - [ - 'border-color:', - ';background-color:', - ';color:', - ';&:hover{border-color:', - ';}', - " &[aria-disabled='true']{border-color:", - ';background-color:', - ';color:', - ';}', - ], - e.isLabelHovered ? a : o, - r, - Ro('foreground', 600, e.theme), - a, - Bo({ - theme: e.theme, - inset: e.focusInset, - hue: i, - shade: s, - selector: "\n &:focus-within:not([aria-disabled='true']),\n &:focus-visible\n ", - styles: { borderColor: i }, - condition: !e.isBare, - }), - c, - l, - u - ); - }, - (e) => er(Vp, e) - ); -Up.defaultProps = { theme: Xn }; -const qp = 'dropdowns.combobox.input_icon', - Yp = Sn((e) => { - let { - children: t, - isCompact: n, - isDisabled: r, - isEnd: o, - isLabelHovered: a, - isRotated: i, - theme: s, - ...l - } = e; - return c.cloneElement(c.Children.only(t), l); - }) - .attrs({ 'data-garden-id': qp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledInputIcon', componentId: 'sc-15ewmjl-0' })( - [ - 'position:sticky;flex-shrink:0;transform:', - ';transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;', - ';', - ';', - ';', - ], - (e) => e.isRotated && `rotate(${e.theme.rtl ? '-' : '+'}180deg)`, - (e) => { - const t = e.theme.iconSizes.md, - n = gr(`(${_p(e)} - ${t}) / 2`), - r = 2 * e.theme.space.base + 'px'; - let o; - return ( - (o = e.isEnd ? (e.theme.rtl ? 'right' : 'left') : e.theme.rtl ? 'left' : 'right'), - rn(['top:', ';margin-', ':', ';width:', ';height:', ';'], n, o, r, t, t) - ); - }, - (e) => { - const t = Ro('neutralHue', 600, e.theme), - n = Ro('neutralHue', 700, e.theme), - r = Ro('neutralHue', 400, e.theme); - return rn( - [ - 'color:', - ';', - ':hover &,', - ':focus-within &,', - ':focus &,', - "[data-garden-focus-visible='true'] &{color:", - ';}', - "[aria-disabled='true'] &{color:", - ';}', - ], - e.isLabelHovered ? n : t, - Up, - Up, - Up, - Up, - n, - Up, - r - ); - }, - (e) => er(qp, e) - ); -Yp.defaultProps = { theme: Xn }; -const Kp = 'dropdowns.combobox.option', - Gp = (e) => e.theme.space.base * (e.isCompact ? 7 : 9), - Qp = Sn.li - .attrs({ 'data-garden-id': Kp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOption', componentId: 'sc-1b5e09t-0' })( - [ - 'display:flex;position:relative;transition:color 0.25s ease-in-out;cursor:', - ';overflow-wrap:anywhere;font-weight:', - ';user-select:none;&:focus{outline:none;}', - ';', - ";&[aria-disabled='true']{cursor:default;}&[aria-hidden='true']{", - ';}', - ';', - ], - (e) => ('group' === e.$type || 'header' === e.$type ? 'default' : 'pointer'), - (e) => - 'header' === e.$type || 'previous' === e.$type - ? e.theme.fontWeights.semibold - : e.theme.fontWeights.regular, - (e) => { - const t = e.theme.lineHeights.md, - n = Gp(e), - r = 'group' === e.$type ? 0 : 9 * e.theme.space.base + 'px'; - return rn( - ['box-sizing:border-box;padding:', ' ', ';min-height:', 'px;line-height:', ';'], - 'group' === e.$type ? 0 : gr(`(${n} - ${t}) / 2`), - r, - n, - t - ); - }, - (e) => { - let t, n; - if (e.isActive && 'group' !== e.$type && 'header' !== e.$type) { - const r = 'danger' === e.$type ? 'dangerHue' : 'primaryHue'; - (t = Ro(r, 600, e.theme, 0.08)), - (n = `inset ${ - e.theme.rtl ? `-${e.theme.shadowWidths.md}` : e.theme.shadowWidths.md - } 0 ${Ro(r, 600, e.theme)}`); - } - const r = Ro('neutralHue', 400, e.theme); - let o = Ro('foreground', 600, e.theme); - return ( - 'add' === e.$type - ? (o = Ro('primaryHue', 600, e.theme)) - : 'danger' === e.$type && (o = Ro('dangerHue', 600, e.theme)), - rn( - [ - 'box-shadow:', - ';background-color:', - ';color:', - ";&[aria-disabled='true']{background-color:transparent;color:", - ';}', - ], - n, - t, - o, - r - ) - ); - }, - { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(Kp, e) - ); -Qp.defaultProps = { theme: Xn }; -const Xp = 'dropdowns.combobox.option.content', - Jp = Sn.div - .attrs({ 'data-garden-id': Xp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOptionContent', componentId: 'sc-536085-0' })( - ['display:flex;flex-direction:column;flex-grow:1;', ';'], - (e) => er(Xp, e) - ); -Jp.defaultProps = { theme: Xn }; -const Zp = 'dropdowns.combobox.optgroup', - ef = Sn.ul - .attrs({ 'data-garden-id': Zp, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOptGroup', componentId: 'sc-12dbq5s-0' })( - ['margin:0;padding:0;list-style-type:none;', ';'], - (e) => er(Zp, e) - ); -ef.defaultProps = { theme: Xn }; -const tf = 'dropdowns.combobox.separator', - nf = Sn.li - .attrs({ 'data-garden-id': tf, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledListboxSeparator', componentId: 'sc-19umtmg-0' })( - ['cursor:default;', ';', ';', ';'], - (e) => rn(['margin:', ' 0;height:', ';'], `${e.theme.space.base}px`, e.theme.borderWidths.sm), - (e) => rn(['background-color:', ';'], Ro('neutralHue', 200, e.theme)), - (e) => er(tf, e) - ); -nf.defaultProps = { theme: Xn }; -const rf = Sn.ul - .attrs({ 'data-garden-id': 'dropdowns.combobox.listbox', 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledListbox', componentId: 'sc-4uxeym-0' })( - [ - 'overflow-y:auto;list-style-type:none;', - ';&&&{display:block;}', - ':first-child ', - ' ', - ':first-child ', - "[role='none']:first-child{display:none;}", - ], - (e) => { - const t = e.theme.space.base; - return rn( - ['min-height:', ';max-height:', ';&&&{padding-top:', 'px;padding-bottom:', 'px;}'], - void 0 === e.minHeight ? `${Gp(e) + 2 * t}px` : e.minHeight, - e.maxHeight, - t, - t - ); - }, - Qp, - Jp, - ef, - nf -); -rf.defaultProps = { theme: Xn }; -const of = 'dropdowns.combobox.option.icon', - af = Sn((e) => { - let { children: t, theme: n, ...r } = e; - return c.cloneElement(c.Children.only(t), r); - }) - .attrs({ 'data-garden-id': of, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOptionIcon', componentId: 'sc-3vecfi-0' })( - ['flex-shrink:0;', ';', ';'], - (e) => { - const t = e.theme.iconSizes.md, - n = gr(`(${e.theme.lineHeights.md} - ${t}) / 2`), - r = 2 * e.theme.space.base + 'px'; - return rn( - ['margin-top:', ';margin-', ':', ';width:', ';height:', ';'], - n, - e.theme.rtl ? 'left' : 'right', - r, - t, - t - ); - }, - (e) => er(of, e) - ); -af.defaultProps = { theme: Xn }; -const sf = 'dropdowns.combobox.option.meta', - lf = Sn.div - .attrs({ 'data-garden-id': sf, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOptionMeta', componentId: 'sc-1nizjb3-0' })( - ['transition:color 0.25s ease-in-out;font-weight:', ';', ';', ';', ';'], - (e) => e.theme.fontWeights.regular, - (e) => rn(['line-height:', ';font-size:', ';'], e.theme.lineHeights.sm, e.theme.fontSizes.sm), - (e) => rn(['color:', ';'], Ro('neutralHue', e.isDisabled ? 400 : 600, e.theme)), - (e) => er(sf, e) - ); -lf.defaultProps = { theme: Xn }; -const cf = 'dropdowns.combobox.option.type_icon', - uf = Sn((e) => { - let { children: t, isCompact: n, theme: r, type: o, ...a } = e; - return c.cloneElement(c.Children.only(t), a); - }) - .attrs({ 'data-garden-id': cf, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledOptionTypeIcon', componentId: 'sc-vlhimu-0' })( - ['position:absolute;transform:', ';transition:opacity 0.1s ease-in-out;', ';', ';', ';'], - (e) => e.theme.rtl && ('next' === e.type || 'previous' === e.type) && 'rotate(180deg)', - (e) => { - const t = e.theme.iconSizes.md, - n = 3 * e.theme.space.base + 'px', - r = gr(`(${Gp(e)} - ${t}) / 2`); - let o; - return ( - (o = 'next' === e.type ? (e.theme.rtl ? 'left' : 'right') : e.theme.rtl ? 'right' : 'left'), - rn(['top:', ';', ':', ';width:', ';height:', ';'], r, o, n, t, t) - ); - }, - (e) => { - const t = e.type && 'danger' !== e.type ? 1 : 0; - let n; - return ( - (n = - 'add' === e.type || 'danger' === e.type - ? 'inherit' - : 'header' === e.type || 'next' === e.type || 'previous' === e.type - ? Ro('neutralHue', 600, e.theme) - : Ro('primaryHue', 600, e.theme)), - rn( - [ - 'opacity:', - ';color:', - ';', - "[aria-selected='true'] > &{opacity:1;}", - "[aria-disabled='true'] > &{color:inherit;}", - ], - t, - n, - Qp, - Qp - ) - ); - }, - (e) => er(cf, e) - ); -uf.defaultProps = { theme: Xn }; -const df = 'tags.avatar', - pf = Sn((e) => { - let { children: t, ...n } = e; - return u.cloneElement(c.Children.only(t), n); - }) - .attrs({ 'data-garden-id': df, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledAvatar', componentId: 'sc-3kdmgt-0' })( - ['flex-shrink:0;font-size:0;', ';'], - (e) => er(df, e) - ); -pf.defaultProps = { theme: Xn }; -const ff = 'tags.close', - mf = Sn.button - .attrs({ 'data-garden-id': ff, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledClose', componentId: 'sc-d6lrpn-0' })( - [ - 'display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;border:0;background:transparent;cursor:pointer;padding:0;color:inherit;font-size:0;appearance:none;&:hover{opacity:0.9;}&:focus{outline:none;}', - ';', - ], - (e) => er(ff, e) + children ); -mf.defaultProps = { theme: Xn }; -const hf = 'tags.tag_view', - gf = Sn.div - .attrs({ 'data-garden-id': hf, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledTag', componentId: 'sc-1jvbe03-0' })( - [ - 'display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:', - ';transition:box-shadow 0.1s ease-in-out;box-sizing:border-box;border:0;max-width:100%;overflow:hidden;vertical-align:middle;text-decoration:none;white-space:nowrap;font-weight:', - ';direction:', - ';', - ';&:hover{cursor:default;text-decoration:none;}&:link:hover,&:visited:hover{cursor:pointer;}&:any-link:hover{cursor:pointer;}', - '{text-decoration:none;}', - ';& > *{overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;}& b{font-weight:', - ';}& ', - '{display:', - ';}& ', - '{display:', - ';}', - ';', - ], - (e) => e.isRound && 'center', - (e) => !e.isRegular && e.theme.fontWeights.semibold, - (e) => (e.theme.rtl ? 'rtl' : 'ltr'), - (e) => - ((e) => { - let t, n, r, o, a, i; - 'small' === e.size - ? ((t = e.theme.borderRadii.sm), - (n = e.theme.space.base), - (r = 4 * e.theme.space.base), - (o = e.theme.fontSizes.xs), - (i = 0)) - : 'large' === e.size - ? ((t = e.theme.borderRadii.md), - (n = 3 * e.theme.space.base), - (r = 8 * e.theme.space.base), - (o = e.theme.fontSizes.sm), - (i = 6 * e.theme.space.base)) - : ((t = e.theme.borderRadii.sm), - (n = 2 * e.theme.space.base), - (r = 5 * e.theme.space.base), - (o = e.theme.fontSizes.sm), - (i = 4 * e.theme.space.base)); - let s = 'large' === e.size ? gr(`${t} - 1`) : t; - const l = (r - i) / 2, - c = e.isRound ? l : 2 * l; - return ( - e.isRound - ? ((t = '50%'), (n = 0), (a = r), (s = '50%')) - : e.isPill && - ((t = '100px'), - (s = '50%'), - 'small' === e.size - ? ((n = 1.5 * e.theme.space.base), (a = 6 * e.theme.space.base)) - : (a = 'large' === e.size ? 12 * e.theme.space.base : 7.5 * e.theme.space.base)), - rn( - [ - 'border-radius:', - ';padding:0 ', - 'px;min-width:', - ';height:', - 'px;line-height:', - ';font-size:', - ';& > *{width:100%;min-width:', - ';}& ', - '{margin-', - ':-', - 'px;margin-', - ':', - 'px;border-radius:', - ';width:', - 'px;min-width:', - 'px;height:', - 'px;}& ', - '{margin-', - ':-', - 'px;border-radius:', - ';width:', - 'px;height:', - 'px;}', - ], - t, - n, - a ? `${a}px` : `calc(${2 * n}px + 1ch)`, - r, - Do(r, o), - o, - a ? a - 2 * n + 'px' : '1ch', - pf, - e.theme.rtl ? 'right' : 'left', - n - l, - e.theme.rtl ? 'left' : 'right', - c, - s, - i, - i, - i, - mf, - e.theme.rtl ? 'left' : 'right', - n, - t, - r, - r - ) - ); - })(e), - $o, - (e) => - ((e) => { - let t, n, r; - if (e.hue) { - const r = 'yellow' === e.hue ? 400 : 600; - (t = Ro(e.hue, r, e.theme)), - (n = - 'yellow' === e.hue || 'lemon' === e.hue - ? Ro('yellow', 800, e.theme) - : to(t, e.theme.palette.grey[800], e.theme.palette.white)); - } else - (t = Ro('neutralHue', 200, e.theme)), - (n = Ro('neutralHue', 700, e.theme)), - (r = Ro('neutralHue', 600, e.theme)); - return rn( - ['background-color:', ';color:', ';&:hover{color:', ';}', ' & ', '{color:', ';}'], - t, - n, - n, - Bo({ theme: e.theme, shadowWidth: 'sm', selector: '&:focus' }), - mf, - r - ); - })(e), - (e) => e.theme.fontWeights.semibold, - pf, - (e) => (e.isRound || 'small' === e.size) && 'none', - mf, - (e) => e.isRound && 'none', - (e) => er(hf, e) - ); -var vf; -function bf() { - return ( - (bf = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]); +}); +Notification.displayName = 'Notification'; +Notification.propTypes = { + type: PropTypes.oneOf(TYPE$2), +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _path$E; +function _extends$Q() { + _extends$Q = 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 e; - }), - bf.apply(null, arguments) - ); + } + return target; + }; + return _extends$Q.apply(this, arguments); } -gf.defaultProps = { size: 'medium', theme: Xn }; -var yf = function (e) { - return c.createElement( +var SvgXStroke$5 = function SvgXStroke(props) { + return /*#__PURE__*/ reactExports.createElement( 'svg', - bf( + _extends$Q( { xmlns: 'http://www.w3.org/2000/svg', width: 12, @@ -21657,5099 +18920,2071 @@ var yf = function (e) { viewBox: '0 0 12 12', 'aria-hidden': 'true', }, - e + props ), - vf || - (vf = c.createElement('path', { + _path$E || + (_path$E = /*#__PURE__*/ reactExports.createElement('path', { stroke: 'currentColor', strokeLinecap: 'round', d: 'M3 9l6-6m0 6L3 3', })) ); }; -const wf = c.forwardRef((e, t) => { - const n = _o(wf, e, 'aria-label', 'Remove'); - return u.createElement( - mf, - Object.assign({ ref: t, 'aria-label': n }, e, { type: 'button', tabIndex: -1 }), - u.createElement(yf, null) + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const Close$4 = U$6.forwardRef((props, ref) => { + const ariaLabel = useText(Close$4, props, 'aria-label', 'Close'); + const hue = useNotificationsContext(); + return U$6.createElement( + StyledClose$3, + Object.assign( + { + ref: ref, + hue: hue, + 'aria-label': ariaLabel, + }, + props + ), + U$6.createElement(SvgXStroke$5, null) ); }); -wf.displayName = 'Tag.Close'; -const xf = wf, - kf = (e) => u.createElement(pf, e); -kf.displayName = 'Tag.Avatar'; -const Ef = kf, - Sf = c.forwardRef((e, t) => { - let { size: n, hue: r, ...o } = e; - return u.createElement(gf, Object.assign({ ref: t, size: n, hue: r }, o)); - }); -(Sf.displayName = 'Tag'), - (Sf.propTypes = { - size: Pn.oneOf(['small', 'medium', 'large']), - hue: Pn.string, - isPill: Pn.bool, - isRound: Pn.bool, - isRegular: Pn.bool, - }), - (Sf.defaultProps = { size: 'medium' }); -const Cf = Sf; -(Cf.Avatar = Ef), (Cf.Close = xf); -const Of = 'dropdowns.combobox.tag', - Pf = Sn(Cf) - .attrs({ 'data-garden-id': Of, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTag', componentId: 'sc-1mrab0f-0' })( - ["&[aria-disabled='true']{color:", ';}&[hidden]{display:revert;', '}', ';'], - (e) => (e.hue ? void 0 : Ro('neutralHue', 400, e.theme)), - { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px', - }, - (e) => er(Of, e) - ); -Pf.defaultProps = { theme: Xn }; -const Tf = 'dropdowns.combobox.value', - If = Sn.div - .attrs({ 'data-garden-id': Tf, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledValue', componentId: 'sc-16gp0f-0' })( - [ - 'flex-basis:0;flex-grow:1;cursor:', - ';overflow:hidden;text-overflow:ellipsis;white-space:pre;user-select:none;', - ';', - ';&[hidden]{display:none;}', - ';', - ], - (e) => (e.isDisabled ? 'default' : e.isEditable && !e.isAutocomplete ? 'text' : 'pointer'), - Hp, - (e) => rn(['color:', ';'], e.isPlaceholder && Ro('neutralHue', 400, e.theme)), - (e) => er(Tf, e) - ); -If.defaultProps = { theme: Xn }; -const Nf = 'dropdowns.combobox.tags_button', - Mf = Sn(If) - .attrs({ as: 'button', 'data-garden-id': Nf, 'data-garden-version': '8.76.2' }) - .withConfig({ displayName: 'StyledTagsButton', componentId: 'sc-ewyffo-0' })( - [ - 'display:inline-flex;flex:0 1 auto;align-items:center;border:none;background-color:transparent;cursor:pointer;min-width:auto;font-family:inherit;&:hover{text-decoration:underline;}', - ';&:disabled{cursor:default;text-decoration:none;}', - ';', - ], - (e) => rn(['color:', ';&:disabled{color:inherit;}'], Ro('primaryHue', 600, e.theme)), - (e) => er(Nf, e) - ); -Mf.defaultProps = { theme: Xn }; -const Lf = Math.min, - Rf = Math.max, - Af = Math.round, - Df = Math.floor, - jf = (e) => ({ x: e, y: e }), - zf = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }, - Ff = { start: 'end', end: 'start' }; -function _f(e, t) { - return 'function' == typeof e ? e(t) : e; -} -function Hf(e) { - return e.split('-')[0]; -} -function $f(e) { - return e.split('-')[1]; -} -function Bf(e) { - return 'y' === e ? 'height' : 'width'; -} -function Wf(e) { - return ['top', 'bottom'].includes(Hf(e)) ? 'y' : 'x'; -} -function Vf(e) { - return 'x' === Wf(e) ? 'y' : 'x'; -} -function Uf(e) { - return e.replace(/start|end/g, (e) => Ff[e]); -} -function qf(e) { - return e.replace(/left|right|bottom|top/g, (e) => zf[e]); -} -function Yf(e) { - const { x: t, y: n, width: r, height: o } = e; - return { width: r, height: o, top: n, left: t, right: t + r, bottom: n + o, x: t, y: n }; -} -function Kf(e, t, n) { - let { reference: r, floating: o } = e; - const a = Wf(t), - i = Vf(t), - s = Bf(i), - l = Hf(t), - c = 'y' === a, - u = r.x + r.width / 2 - o.width / 2, - d = r.y + r.height / 2 - o.height / 2, - p = r[s] / 2 - o[s] / 2; - let f; - switch (l) { - case 'top': - f = { x: u, y: r.y - o.height }; - break; - case 'bottom': - f = { x: u, y: r.y + r.height }; - break; - case 'right': - f = { x: r.x + r.width, y: d }; - break; - case 'left': - f = { x: r.x - o.width, y: d }; - break; - default: - f = { x: r.x, y: r.y }; - } - switch ($f(t)) { - case 'start': - f[i] -= p * (n && c ? -1 : 1); - break; - case 'end': - f[i] += p * (n && c ? -1 : 1); - } - return f; -} -async function Gf(e, t) { - var n; - void 0 === t && (t = {}); - const { x: r, y: o, platform: a, rects: i, elements: s, strategy: l } = e, - { - boundary: c = 'clippingAncestors', - rootBoundary: u = 'viewport', - elementContext: d = 'floating', - altBoundary: p = !1, - padding: f = 0, - } = _f(t, e), - m = (function (e) { - return 'number' != typeof e - ? (function (e) { - return { top: 0, right: 0, bottom: 0, left: 0, ...e }; - })(e) - : { top: e, right: e, bottom: e, left: e }; - })(f), - h = s[p ? ('floating' === d ? 'reference' : 'floating') : d], - g = Yf( - await a.getClippingRect({ - element: - null == (n = await (null == a.isElement ? void 0 : a.isElement(h))) || n - ? h - : h.contextElement || - (await (null == a.getDocumentElement ? void 0 : a.getDocumentElement(s.floating))), - boundary: c, - rootBoundary: u, - strategy: l, - }) - ), - v = - 'floating' === d - ? { x: r, y: o, width: i.floating.width, height: i.floating.height } - : i.reference, - b = await (null == a.getOffsetParent ? void 0 : a.getOffsetParent(s.floating)), - y = ((await (null == a.isElement ? void 0 : a.isElement(b))) && - (await (null == a.getScale ? void 0 : a.getScale(b)))) || { x: 1, y: 1 }, - w = Yf( - a.convertOffsetParentRelativeRectToViewportRelativeRect - ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({ - elements: s, - rect: v, - offsetParent: b, - strategy: l, - }) - : v - ); +Close$4.displayName = 'Close'; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const Title = U$6.forwardRef((props, ref) => + U$6.createElement( + StyledTitle$2, + Object.assign( + { + ref: ref, + }, + props + ) + ) +); +Title.displayName = 'Title'; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ +const getInitialState = () => { return { - top: (g.top - w.top + m.top) / y.y, - bottom: (w.bottom - g.bottom + m.bottom) / y.y, - left: (g.left - w.left + m.left) / y.x, - right: (w.right - g.right + m.right) / y.x, + toasts: [], }; -} -function Qf() { - return 'undefined' != typeof window; -} -function Xf(e) { - return em(e) ? (e.nodeName || '').toLowerCase() : '#document'; -} -function Jf(e) { - var t; - return (null == e || null == (t = e.ownerDocument) ? void 0 : t.defaultView) || window; -} -function Zf(e) { - var t; - return null == (t = (em(e) ? e.ownerDocument : e.document) || window.document) - ? void 0 - : t.documentElement; -} -function em(e) { - return !!Qf() && (e instanceof Node || e instanceof Jf(e).Node); -} -function tm(e) { - return !!Qf() && (e instanceof Element || e instanceof Jf(e).Element); -} -function nm(e) { - return !!Qf() && (e instanceof HTMLElement || e instanceof Jf(e).HTMLElement); -} -function rm(e) { - return ( - !(!Qf() || 'undefined' == typeof ShadowRoot) && - (e instanceof ShadowRoot || e instanceof Jf(e).ShadowRoot) - ); -} -function om(e) { - const { overflow: t, overflowX: n, overflowY: r, display: o } = um(e); - return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !['inline', 'contents'].includes(o); -} -function am(e) { - return ['table', 'td', 'th'].includes(Xf(e)); -} -function im(e) { - return [':popover-open', ':modal'].some((t) => { - try { - return e.matches(t); - } catch (e) { - return !1; +}; +const toasterReducer = (state, action) => { + switch (action.type) { + case 'ADD_TOAST': { + return { + ...state, + toasts: [...state.toasts, action.payload], + }; } - }); -} -function sm(e) { - const t = lm(), - n = tm(e) ? um(e) : e; - return ( - 'none' !== n.transform || - 'none' !== n.perspective || - (!!n.containerType && 'normal' !== n.containerType) || - (!t && !!n.backdropFilter && 'none' !== n.backdropFilter) || - (!t && !!n.filter && 'none' !== n.filter) || - ['transform', 'perspective', 'filter'].some((e) => (n.willChange || '').includes(e)) || - ['paint', 'layout', 'strict', 'content'].some((e) => (n.contain || '').includes(e)) - ); + case 'REMOVE_TOAST': { + const filteredToasts = state.toasts.filter((toast) => toast.id !== action.payload); + return { + ...state, + toasts: filteredToasts, + }; + } + case 'UPDATE_TOAST': { + const updatedToasts = state.toasts.map((toast) => { + if (toast.id !== action.payload.id) { + return toast; + } + const updatedToast = toast; + const { content, ...newOptions } = action.payload.options; + if (content) { + updatedToast.content = content; + } + updatedToast.options = { + ...updatedToast.options, + ...newOptions, + }; + return updatedToast; + }); + return { + ...state, + toasts: updatedToasts, + }; + } + case 'REMOVE_ALL_TOASTS': { + return { + ...state, + toasts: [], + }; + } + default: + throw new Error('Invalid toaster reducer action'); + } +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const ToastContext = reactExports.createContext(undefined); + +function _objectWithoutPropertiesLoose$1(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) + if ({}.hasOwnProperty.call(r, n)) { + if (e.includes(n)) continue; + t[n] = r[n]; + } + return t; } -function lm() { + +/** + * Checks if a given element has a CSS class. + * + * @param element the element + * @param className the CSS class name + */ +function hasClass(element, className) { + if (element.classList) return !!className && element.classList.contains(className); return ( - !('undefined' == typeof CSS || !CSS.supports) && CSS.supports('-webkit-backdrop-filter', 'none') + (' ' + (element.className.baseVal || element.className) + ' ').indexOf( + ' ' + className + ' ' + ) !== -1 ); } -function cm(e) { - return ['html', 'body', '#document'].includes(Xf(e)); -} -function um(e) { - return Jf(e).getComputedStyle(e); -} -function dm(e) { - return tm(e) - ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } - : { scrollLeft: e.scrollX, scrollTop: e.scrollY }; -} -function pm(e) { - if ('html' === Xf(e)) return e; - const t = e.assignedSlot || e.parentNode || (rm(e) && e.host) || Zf(e); - return rm(t) ? t.host : t; + +/** + * Adds a CSS class to a given element. + * + * @param element the element + * @param className the CSS class name + */ + +function addClass(element, className) { + if (element.classList) element.classList.add(className); + else if (!hasClass(element, className)) + if (typeof element.className === 'string') + element.className = element.className + ' ' + className; + else + element.setAttribute( + 'class', + ((element.className && element.className.baseVal) || '') + ' ' + className + ); } -function fm(e) { - const t = pm(e); - return cm(t) ? (e.ownerDocument ? e.ownerDocument.body : e.body) : nm(t) && om(t) ? t : fm(t); + +function replaceClassName(origClass, classToRemove) { + return origClass + .replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1') + .replace(/\s+/g, ' ') + .replace(/^\s*|\s*$/g, ''); } -function mm(e, t, n) { - var r; - void 0 === t && (t = []), void 0 === n && (n = !0); - const o = fm(e), - a = o === (null == (r = e.ownerDocument) ? void 0 : r.body), - i = Jf(o); - if (a) { - const e = hm(i); - return t.concat(i, i.visualViewport || [], om(o) ? o : [], e && n ? mm(e) : []); - } - return t.concat(o, mm(o, [], n)); -} -function hm(e) { - return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null; -} -function gm(e) { - const t = um(e); - let n = parseFloat(t.width) || 0, - r = parseFloat(t.height) || 0; - const o = nm(e), - a = o ? e.offsetWidth : n, - i = o ? e.offsetHeight : r, - s = Af(n) !== a || Af(r) !== i; - return s && ((n = a), (r = i)), { width: n, height: r, $: s }; -} -function vm(e) { - return tm(e) ? e : e.contextElement; -} -function bm(e) { - const t = vm(e); - if (!nm(t)) return jf(1); - const n = t.getBoundingClientRect(), - { width: r, height: o, $: a } = gm(t); - let i = (a ? Af(n.width) : n.width) / r, - s = (a ? Af(n.height) : n.height) / o; - return (i && Number.isFinite(i)) || (i = 1), (s && Number.isFinite(s)) || (s = 1), { x: i, y: s }; -} -const ym = jf(0); -function wm(e) { - const t = Jf(e); - return lm() && t.visualViewport - ? { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop } - : ym; -} -function xm(e, t, n, r) { - void 0 === t && (t = !1), void 0 === n && (n = !1); - const o = e.getBoundingClientRect(), - a = vm(e); - let i = jf(1); - t && (r ? tm(r) && (i = bm(r)) : (i = bm(e))); - const s = (function (e, t, n) { - return void 0 === t && (t = !1), !(!n || (t && n !== Jf(e))) && t; - })(a, n, r) - ? wm(a) - : jf(0); - let l = (o.left + s.x) / i.x, - c = (o.top + s.y) / i.y, - u = o.width / i.x, - d = o.height / i.y; - if (a) { - const e = Jf(a), - t = r && tm(r) ? Jf(r) : r; - let n = e, - o = hm(n); - for (; o && r && t !== n; ) { - const e = bm(o), - t = o.getBoundingClientRect(), - r = um(o), - a = t.left + (o.clientLeft + parseFloat(r.paddingLeft)) * e.x, - i = t.top + (o.clientTop + parseFloat(r.paddingTop)) * e.y; - (l *= e.x), (c *= e.y), (u *= e.x), (d *= e.y), (l += a), (c += i), (n = Jf(o)), (o = hm(n)); - } - } - return Yf({ width: u, height: d, x: l, y: c }); -} -function km(e, t) { - const n = dm(e).scrollLeft; - return t ? t.left + n : xm(Zf(e)).left + n; -} -function Em(e, t, n) { - let r; - if ('viewport' === t) - r = (function (e, t) { - const n = Jf(e), - r = Zf(e), - o = n.visualViewport; - let a = r.clientWidth, - i = r.clientHeight, - s = 0, - l = 0; - if (o) { - (a = o.width), (i = o.height); - const e = lm(); - (!e || (e && 'fixed' === t)) && ((s = o.offsetLeft), (l = o.offsetTop)); - } - return { width: a, height: i, x: s, y: l }; - })(e, n); - else if ('document' === t) - r = (function (e) { - const t = Zf(e), - n = dm(e), - r = e.ownerDocument.body, - o = Rf(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), - a = Rf(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight); - let i = -n.scrollLeft + km(e); - const s = -n.scrollTop; - return ( - 'rtl' === um(r).direction && (i += Rf(t.clientWidth, r.clientWidth) - o), - { width: o, height: a, x: i, y: s } - ); - })(Zf(e)); - else if (tm(t)) - r = (function (e, t) { - const n = xm(e, !0, 'fixed' === t), - r = n.top + e.clientTop, - o = n.left + e.clientLeft, - a = nm(e) ? bm(e) : jf(1); - return { width: e.clientWidth * a.x, height: e.clientHeight * a.y, x: o * a.x, y: r * a.y }; - })(t, n); - else { - const n = wm(e); - r = { ...t, x: t.x - n.x, y: t.y - n.y }; - } - return Yf(r); -} -function Sm(e, t) { - const n = pm(e); - return !(n === t || !tm(n) || cm(n)) && ('fixed' === um(n).position || Sm(n, t)); -} -function Cm(e, t, n) { - const r = nm(t), - o = Zf(t), - a = 'fixed' === n, - i = xm(e, !0, a, t); - let s = { scrollLeft: 0, scrollTop: 0 }; - const l = jf(0); - if (r || (!r && !a)) - if ((('body' !== Xf(t) || om(o)) && (s = dm(t)), r)) { - const e = xm(t, !0, a, t); - (l.x = e.x + t.clientLeft), (l.y = e.y + t.clientTop); - } else o && (l.x = km(o)); - let c = 0, - u = 0; - if (o && !r && !a) { - const e = o.getBoundingClientRect(); - (u = e.top + s.scrollTop), (c = e.left + s.scrollLeft - km(o, e)); +/** + * Removes a CSS class from a given element. + * + * @param element the element + * @param className the CSS class name + */ + +function removeClass$1(element, className) { + if (element.classList) { + element.classList.remove(className); + } else if (typeof element.className === 'string') { + element.className = replaceClassName(element.className, className); + } else { + element.setAttribute( + 'class', + replaceClassName((element.className && element.className.baseVal) || '', className) + ); } - return { - x: i.left + s.scrollLeft - l.x - c, - y: i.top + s.scrollTop - l.y - u, - width: i.width, - height: i.height, - }; -} -function Om(e) { - return 'static' === um(e).position; -} -function Pm(e, t) { - if (!nm(e) || 'fixed' === um(e).position) return null; - if (t) return t(e); - let n = e.offsetParent; - return Zf(e) === n && (n = n.ownerDocument.body), n; -} -function Tm(e, t) { - const n = Jf(e); - if (im(e)) return n; - if (!nm(e)) { - let t = pm(e); - for (; t && !cm(t); ) { - if (tm(t) && !Om(t)) return t; - t = pm(t); +} + +var config = { + disabled: false, +}; + +var TransitionGroupContext = U$6.createContext(null); + +var forceReflow = function forceReflow(node) { + return node.scrollTop; +}; + +var UNMOUNTED = 'unmounted'; +var EXITED = 'exited'; +var ENTERING = 'entering'; +var ENTERED = 'entered'; +var EXITING = 'exiting'; +/** + * The Transition component lets you describe a transition from one component + * state to another _over time_ with a simple declarative API. Most commonly + * it's used to animate the mounting and unmounting of a component, but can also + * be used to describe in-place transition states as well. + * + * --- + * + * **Note**: `Transition` is a platform-agnostic base component. If you're using + * transitions in CSS, you'll probably want to use + * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) + * instead. It inherits all the features of `Transition`, but contains + * additional features necessary to play nice with CSS transitions (hence the + * name of the component). + * + * --- + * + * By default the `Transition` component does not alter the behavior of the + * component it renders, it only tracks "enter" and "exit" states for the + * components. It's up to you to give meaning and effect to those states. For + * example we can add styles to a component when it enters or exits: + * + * ```jsx + * import { Transition } from 'react-transition-group'; + * + * const duration = 300; + * + * const defaultStyle = { + * transition: `opacity ${duration}ms ease-in-out`, + * opacity: 0, + * } + * + * const transitionStyles = { + * entering: { opacity: 1 }, + * entered: { opacity: 1 }, + * exiting: { opacity: 0 }, + * exited: { opacity: 0 }, + * }; + * + * const Fade = ({ in: inProp }) => ( + * + * {state => ( + *
+ * I'm a fade Transition! + *
+ * )} + *
+ * ); + * ``` + * + * There are 4 main states a Transition can be in: + * - `'entering'` + * - `'entered'` + * - `'exiting'` + * - `'exited'` + * + * Transition state is toggled via the `in` prop. When `true` the component + * begins the "Enter" stage. During this stage, the component will shift from + * its current transition state, to `'entering'` for the duration of the + * transition and then to the `'entered'` stage once it's complete. Let's take + * the following example (we'll use the + * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
+ * + * {state => ( + * // ... + * )} + * + * + *
+ * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ + +var Transition = /*#__PURE__*/ (function (_React$Component) { + _inheritsLoose(Transition, _React$Component); + + function Transition(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context; // In the context of a TransitionGroup all enters are really appears + + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; + + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } } - return n; + + _this.state = { + status: initialStatus, + }; + _this.nextCallback = null; + return _this; } - let r = Pm(e, t); - for (; r && am(r) && Om(r); ) r = Pm(r, t); - return r && cm(r) && Om(r) && !sm(r) - ? n - : r || - (function (e) { - let t = pm(e); - for (; nm(t) && !cm(t); ) { - if (sm(t)) return t; - if (im(t)) return null; - t = pm(t); - } - return null; - })(e) || - n; -} -const Im = { - convertOffsetParentRelativeRectToViewportRelativeRect: function (e) { - let { elements: t, rect: n, offsetParent: r, strategy: o } = e; - const a = 'fixed' === o, - i = Zf(r), - s = !!t && im(t.floating); - if (r === i || (s && a)) return n; - let l = { scrollLeft: 0, scrollTop: 0 }, - c = jf(1); - const u = jf(0), - d = nm(r); - if ((d || (!d && !a)) && (('body' !== Xf(r) || om(i)) && (l = dm(r)), nm(r))) { - const e = xm(r); - (c = bm(r)), (u.x = e.x + r.clientLeft), (u.y = e.y + r.clientTop); + + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; + + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED, + }; } + + return null; + }; // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } + + var _proto = Transition.prototype; + + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; + + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; + + if (prevProps !== this.props) { + var status = this.state.status; + + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } + + this.updateStatus(false, nextStatus); + }; + + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; + + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; + + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major + + appear = timeout.appear !== undefined ? timeout.appear : enter; + } + return { - width: n.width * c.x, - height: n.height * c.y, - x: n.x * c.x - l.scrollLeft * c.x + u.x, - y: n.y * c.y - l.scrollTop * c.y + u.y, - }; - }, - getDocumentElement: Zf, - getClippingRect: function (e) { - let { element: t, boundary: n, rootBoundary: r, strategy: o } = e; - const a = [ - ...('clippingAncestors' === n - ? im(t) - ? [] - : (function (e, t) { - const n = t.get(e); - if (n) return n; - let r = mm(e, [], !1).filter((e) => tm(e) && 'body' !== Xf(e)), - o = null; - const a = 'fixed' === um(e).position; - let i = a ? pm(e) : e; - for (; tm(i) && !cm(i); ) { - const t = um(i), - n = sm(i); - n || 'fixed' !== t.position || (o = null), - ( - a - ? !n && !o - : (!n && - 'static' === t.position && - o && - ['absolute', 'fixed'].includes(o.position)) || - (om(i) && !n && Sm(e, i)) - ) - ? (r = r.filter((e) => e !== i)) - : (o = t), - (i = pm(i)); - } - return t.set(e, r), r; - })(t, this._c) - : [].concat(n)), - r, - ], - i = a[0], - s = a.reduce((e, n) => { - const r = Em(t, n, o); - return ( - (e.top = Rf(r.top, e.top)), - (e.right = Lf(r.right, e.right)), - (e.bottom = Lf(r.bottom, e.bottom)), - (e.left = Rf(r.left, e.left)), - e - ); - }, Em(t, i, o)); - return { width: s.right - s.left, height: s.bottom - s.top, x: s.left, y: s.top }; - }, - getOffsetParent: Tm, - getElementRects: async function (e) { - const t = this.getOffsetParent || Tm, - n = this.getDimensions, - r = await n(e.floating); - return { - reference: Cm(e.reference, await t(e.floating), e.strategy), - floating: { x: 0, y: 0, width: r.width, height: r.height }, + exit: exit, + enter: enter, + appear: appear, }; - }, - getClientRects: function (e) { - return Array.from(e.getClientRects()); - }, - getDimensions: function (e) { - const { width: t, height: n } = gm(e); - return { width: t, height: n }; - }, - getScale: bm, - isElement: tm, - isRTL: function (e) { - return 'rtl' === um(e).direction; - }, -}; -function Nm(e, t, n, r) { - void 0 === r && (r = {}); - const { - ancestorScroll: o = !0, - ancestorResize: a = !0, - elementResize: i = 'function' == typeof ResizeObserver, - layoutShift: s = 'function' == typeof IntersectionObserver, - animationFrame: l = !1, - } = r, - c = vm(e), - u = o || a ? [...(c ? mm(c) : []), ...mm(t)] : []; - u.forEach((e) => { - o && e.addEventListener('scroll', n, { passive: !0 }), a && e.addEventListener('resize', n); - }); - const d = - c && s - ? (function (e, t) { - let n, - r = null; - const o = Zf(e); - function a() { - var e; - clearTimeout(n), null == (e = r) || e.disconnect(), (r = null); - } - return ( - (function i(s, l) { - void 0 === s && (s = !1), void 0 === l && (l = 1), a(); - const { left: c, top: u, width: d, height: p } = e.getBoundingClientRect(); - if ((s || t(), !d || !p)) return; - const f = { - rootMargin: - -Df(u) + - 'px ' + - -Df(o.clientWidth - (c + d)) + - 'px ' + - -Df(o.clientHeight - (u + p)) + - 'px ' + - -Df(c) + - 'px', - threshold: Rf(0, Lf(1, l)) || 1, - }; - let m = !0; - function h(e) { - const t = e[0].intersectionRatio; - if (t !== l) { - if (!m) return i(); - t - ? i(!1, t) - : (n = setTimeout(() => { - i(!1, 1e-7); - }, 1e3)); - } - m = !1; - } - try { - r = new IntersectionObserver(h, { ...f, root: o.ownerDocument }); - } catch (e) { - r = new IntersectionObserver(h, f); - } - r.observe(e); - })(!0), - a - ); - })(c, n) - : null; - let p, - f = -1, - m = null; - i && - ((m = new ResizeObserver((e) => { - let [r] = e; - r && - r.target === c && - m && - (m.unobserve(t), - cancelAnimationFrame(f), - (f = requestAnimationFrame(() => { - var e; - null == (e = m) || e.observe(t); - }))), - n(); - })), - c && !l && m.observe(c), - m.observe(t)); - let h = l ? xm(e) : null; - return ( - l && - (function t() { - const r = xm(e); - !h || (r.x === h.x && r.y === h.y && r.width === h.width && r.height === h.height) || n(); - (h = r), (p = requestAnimationFrame(t)); - })(), - n(), - () => { - var e; - u.forEach((e) => { - o && e.removeEventListener('scroll', n), a && e.removeEventListener('resize', n); - }), - null == d || d(), - null == (e = m) || e.disconnect(), - (m = null), - l && cancelAnimationFrame(p); + }; + + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; } - ); -} -const Mm = function (e) { - return ( - void 0 === e && (e = 0), - { - name: 'offset', - options: e, - async fn(t) { - var n, r; - const { x: o, y: a, placement: i, middlewareData: s } = t, - l = await (async function (e, t) { - const { placement: n, platform: r, elements: o } = e, - a = await (null == r.isRTL ? void 0 : r.isRTL(o.floating)), - i = Hf(n), - s = $f(n), - l = 'y' === Wf(n), - c = ['left', 'top'].includes(i) ? -1 : 1, - u = a && l ? -1 : 1, - d = _f(t, e); - let { - mainAxis: p, - crossAxis: f, - alignmentAxis: m, - } = 'number' == typeof d - ? { mainAxis: d, crossAxis: 0, alignmentAxis: null } - : { - mainAxis: d.mainAxis || 0, - crossAxis: d.crossAxis || 0, - alignmentAxis: d.alignmentAxis, - }; - return ( - s && 'number' == typeof m && (f = 'end' === s ? -1 * m : m), - l ? { x: f * u, y: p * c } : { x: p * c, y: f * u } - ); - })(t, e); - return i === (null == (n = s.offset) ? void 0 : n.placement) && - null != (r = s.arrow) && - r.alignmentOffset - ? {} - : { x: o + l.x, y: a + l.y, data: { ...l, placement: i } }; - }, + + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); + + if (nextStatus === ENTERING) { + if (this.props.unmountOnExit || this.props.mountOnEnter) { + var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749 + // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`. + // To make the animation happen, we have to separate each rendering and avoid being processed as batched. + + if (node) forceReflow(node); + } + + this.performEnter(mounting); + } else { + this.performExit(); } - ); - }, - Lm = function (e) { - return ( - void 0 === e && (e = {}), + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED, + }); + } + }; + + _proto.performEnter = function performEnter(mounting) { + var _this2 = this; + + var enter = this.props.enter; + var appearing = this.context ? this.context.isMounting : mounting; + + var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing], + maybeNode = _ref2[0], + maybeAppearing = _ref2[1]; + + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set + + if ((!mounting && !enter) || config.disabled) { + this.safeSetState( + { + status: ENTERED, + }, + function () { + _this2.props.onEntered(maybeNode); + } + ); + return; + } + + this.props.onEnter(maybeNode, maybeAppearing); + this.safeSetState( { - name: 'flip', - options: e, - async fn(t) { - var n, r; - const { - placement: o, - middlewareData: a, - rects: i, - initialPlacement: s, - platform: l, - elements: c, - } = t, + status: ENTERING, + }, + function () { + _this2.props.onEntering(maybeNode, maybeAppearing); + + _this2.onTransitionEnd(enterTimeout, function () { + _this2.safeSetState( { - mainAxis: u = !0, - crossAxis: d = !0, - fallbackPlacements: p, - fallbackStrategy: f = 'bestFit', - fallbackAxisSideDirection: m = 'none', - flipAlignment: h = !0, - ...g - } = _f(e, t); - if (null != (n = a.arrow) && n.alignmentOffset) return {}; - const v = Hf(o), - b = Wf(s), - y = Hf(s) === s, - w = await (null == l.isRTL ? void 0 : l.isRTL(c.floating)), - x = - p || - (y || !h - ? [qf(s)] - : (function (e) { - const t = qf(e); - return [Uf(e), t, Uf(t)]; - })(s)), - k = 'none' !== m; - !p && - k && - x.push( - ...(function (e, t, n, r) { - const o = $f(e); - let a = (function (e, t, n) { - const r = ['left', 'right'], - o = ['right', 'left'], - a = ['top', 'bottom'], - i = ['bottom', 'top']; - switch (e) { - case 'top': - case 'bottom': - return n ? (t ? o : r) : t ? r : o; - case 'left': - case 'right': - return t ? a : i; - default: - return []; - } - })(Hf(e), 'start' === n, r); - return o && ((a = a.map((e) => e + '-' + o)), t && (a = a.concat(a.map(Uf)))), a; - })(s, h, m, w) - ); - const E = [s, ...x], - S = await Gf(t, g), - C = []; - let O = (null == (r = a.flip) ? void 0 : r.overflows) || []; - if ((u && C.push(S[v]), d)) { - const e = (function (e, t, n) { - void 0 === n && (n = !1); - const r = $f(e), - o = Vf(e), - a = Bf(o); - let i = - 'x' === o - ? r === (n ? 'end' : 'start') - ? 'right' - : 'left' - : 'start' === r - ? 'bottom' - : 'top'; - return t.reference[a] > t.floating[a] && (i = qf(i)), [i, qf(i)]; - })(o, i, w); - C.push(S[e[0]], S[e[1]]); - } - if (((O = [...O, { placement: o, overflows: C }]), !C.every((e) => e <= 0))) { - var P, T; - const e = ((null == (P = a.flip) ? void 0 : P.index) || 0) + 1, - t = E[e]; - if (t) return { data: { index: e, overflows: O }, reset: { placement: t } }; - let n = - null == - (T = O.filter((e) => e.overflows[0] <= 0).sort( - (e, t) => e.overflows[1] - t.overflows[1] - )[0]) - ? void 0 - : T.placement; - if (!n) - switch (f) { - case 'bestFit': { - var I; - const e = - null == - (I = O.filter((e) => { - if (k) { - const t = Wf(e.placement); - return t === b || 'y' === t; - } - return !0; - }) - .map((e) => [ - e.placement, - e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0), - ]) - .sort((e, t) => e[1] - t[1])[0]) - ? void 0 - : I[0]; - e && (n = e); - break; - } - case 'initialPlacement': - n = s; - } - if (o !== n) return { reset: { placement: n } }; - } - return {}; - }, + status: ENTERED, + }, + function () { + _this2.props.onEntered(maybeNode, maybeAppearing); + } + ); + }); } ); - }, - Rm = function (e) { - return ( - void 0 === e && (e = {}), - { - name: 'size', - options: e, - async fn(t) { - var n, r; - const { placement: o, rects: a, platform: i, elements: s } = t, - { apply: l = () => {}, ...c } = _f(e, t), - u = await Gf(t, c), - d = Hf(o), - p = $f(o), - f = 'y' === Wf(o), - { width: m, height: h } = a.floating; - let g, v; - 'top' === d || 'bottom' === d - ? ((g = d), - (v = - p === ((await (null == i.isRTL ? void 0 : i.isRTL(s.floating))) ? 'start' : 'end') - ? 'left' - : 'right')) - : ((v = d), (g = 'end' === p ? 'top' : 'bottom')); - const b = h - u.top - u.bottom, - y = m - u.left - u.right, - w = Lf(h - u[g], b), - x = Lf(m - u[v], y), - k = !t.middlewareData.shift; - let E = w, - S = x; - if ( - (null != (n = t.middlewareData.shift) && n.enabled.x && (S = y), - null != (r = t.middlewareData.shift) && r.enabled.y && (E = b), - k && !p) - ) { - const e = Rf(u.left, 0), - t = Rf(u.right, 0), - n = Rf(u.top, 0), - r = Rf(u.bottom, 0); - f - ? (S = m - 2 * (0 !== e || 0 !== t ? e + t : Rf(u.left, u.right))) - : (E = h - 2 * (0 !== n || 0 !== r ? n + r : Rf(u.top, u.bottom))); - } - await l({ ...t, availableWidth: S, availableHeight: E }); - const C = await i.getDimensions(s.floating); - return m !== C.width || h !== C.height ? { reset: { rects: !0 } } : {}; + }; + + _proto.performExit = function performExit() { + var _this3 = this; + + var exit = this.props.exit; + var timeouts = this.getTimeouts(); + var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED + + if (!exit || config.disabled) { + this.safeSetState( + { + status: EXITED, }, - } - ); - }, - Am = (e, t, n) => { - const r = new Map(), - o = { platform: Im, ...n }, - a = { ...o.platform, _c: r }; - return (async (e, t, n) => { - const { - placement: r = 'bottom', - strategy: o = 'absolute', - middleware: a = [], - platform: i, - } = n, - s = a.filter(Boolean), - l = await (null == i.isRTL ? void 0 : i.isRTL(t)); - let c = await i.getElementRects({ reference: e, floating: t, strategy: o }), - { x: u, y: d } = Kf(c, r, l), - p = r, - f = {}, - m = 0; - for (let n = 0; n < s.length; n++) { - const { name: a, fn: h } = s[n], - { - x: g, - y: v, - data: b, - reset: y, - } = await h({ - x: u, - y: d, - initialPlacement: r, - placement: p, - strategy: o, - middlewareData: f, - rects: c, - platform: i, - elements: { reference: e, floating: t }, - }); - (u = null != g ? g : u), - (d = null != v ? v : d), - (f = { ...f, [a]: { ...f[a], ...b } }), - y && - m <= 50 && - (m++, - 'object' == typeof y && - (y.placement && (p = y.placement), - y.rects && - (c = - !0 === y.rects - ? await i.getElementRects({ reference: e, floating: t, strategy: o }) - : y.rects), - ({ x: u, y: d } = Kf(c, p, l))), - (n = -1)); - } - return { x: u, y: d, placement: p, strategy: o, middlewareData: f }; - })(e, t, { ...o, platform: a }); - }; -var Dm = 'undefined' != typeof document ? c.useLayoutEffect : c.useEffect; -function jm(e, t) { - if (e === t) return !0; - if (typeof e != typeof t) return !1; - if ('function' == typeof e && e.toString() === t.toString()) return !0; - let n, r, o; - if (e && t && 'object' == typeof e) { - if (Array.isArray(e)) { - if (((n = e.length), n !== t.length)) return !1; - for (r = n; 0 != r--; ) if (!jm(e[r], t[r])) return !1; - return !0; - } - if (((o = Object.keys(e)), (n = o.length), n !== Object.keys(t).length)) return !1; - for (r = n; 0 != r--; ) if (!{}.hasOwnProperty.call(t, o[r])) return !1; - for (r = n; 0 != r--; ) { - const n = o[r]; - if (('_owner' !== n || !e.$$typeof) && !jm(e[n], t[n])) return !1; - } - return !0; - } - return e != e && t != t; -} -function zm(e) { - if ('undefined' == typeof window) return 1; - return (e.ownerDocument.defaultView || window).devicePixelRatio || 1; -} -function Fm(e, t) { - const n = zm(e); - return Math.round(t * n) / n; -} -function _m(e) { - const t = c.useRef(e); - return ( - Dm(() => { - t.current = e; - }), - t - ); -} -const Hm = (e, t) => ({ ...Lm(e), options: [e, t] }), - $m = (e, t) => ({ ...Rm(e), options: [e, t] }), - Bm = c.forwardRef((e, t) => { - let { - appendToNode: n, - children: r, - isCompact: o, - isExpanded: a, - maxHeight: i, - minHeight: s, - onMouseDown: l, - triggerRef: d, - zIndex: p, - ...f - } = e; - const m = c.useRef(null), - [h, g] = c.useState(!1), - [v, b] = c.useState(), - [y, w] = c.useState(), - k = c.useContext(mn) || Xn, - { - refs: E, - placement: S, - update: C, - floatingStyles: { transform: O }, - } = (function (e) { - void 0 === e && (e = {}); - const { - placement: t = 'bottom', - strategy: n = 'absolute', - middleware: r = [], - platform: o, - elements: { reference: a, floating: i } = {}, - transform: s = !0, - whileElementsMounted: l, - open: u, - } = e, - [d, p] = c.useState({ - x: 0, - y: 0, - strategy: n, - placement: t, - middlewareData: {}, - isPositioned: !1, - }), - [f, m] = c.useState(r); - jm(f, r) || m(r); - const [h, g] = c.useState(null), - [v, b] = c.useState(null), - y = c.useCallback((e) => { - e !== S.current && ((S.current = e), g(e)); - }, []), - w = c.useCallback((e) => { - e !== C.current && ((C.current = e), b(e)); - }, []), - k = a || h, - E = i || v, - S = c.useRef(null), - C = c.useRef(null), - O = c.useRef(d), - P = null != l, - T = _m(l), - I = _m(o), - N = _m(u), - M = c.useCallback(() => { - if (!S.current || !C.current) return; - const e = { placement: t, strategy: n, middleware: f }; - I.current && (e.platform = I.current), - Am(S.current, C.current, e).then((e) => { - const t = { ...e, isPositioned: !1 !== N.current }; - L.current && - !jm(O.current, t) && - ((O.current = t), - x.flushSync(() => { - p(t); - })); - }); - }, [f, t, n, I, N]); - Dm(() => { - !1 === u && - O.current.isPositioned && - ((O.current.isPositioned = !1), p((e) => ({ ...e, isPositioned: !1 }))); - }, [u]); - const L = c.useRef(!1); - Dm( - () => ( - (L.current = !0), - () => { - L.current = !1; - } - ), - [] - ), - Dm(() => { - if ((k && (S.current = k), E && (C.current = E), k && E)) { - if (T.current) return T.current(k, E, M); - M(); - } - }, [k, E, M, T, P]); - const R = c.useMemo( - () => ({ reference: S, floating: C, setReference: y, setFloating: w }), - [y, w] - ), - A = c.useMemo(() => ({ reference: k, floating: E }), [k, E]), - D = c.useMemo(() => { - const e = { position: n, left: 0, top: 0 }; - if (!A.floating) return e; - const t = Fm(A.floating, d.x), - r = Fm(A.floating, d.y); - return s - ? { - ...e, - transform: 'translate(' + t + 'px, ' + r + 'px)', - ...(zm(A.floating) >= 1.5 && { willChange: 'transform' }), - } - : { position: n, left: t, top: r }; - }, [n, s, A.floating, d.x, d.y]); - return c.useMemo( - () => ({ ...d, update: M, refs: R, elements: A, floatingStyles: D }), - [d, M, R, A, D] - ); - })({ - elements: { reference: d?.current, floating: m?.current }, - placement: 'bottom-start', - middleware: [ - ((P = k.space.base), { ...Mm(P), options: [P, T] }), - Hm(), - $m({ - apply: (e) => { - let { rects: t, availableHeight: n } = e; - t.reference.width > 0 && - (w(t.reference.width), - null !== s && 'fit-content' !== s && t.floating.height > n && b(n)); - }, - }), - ], - }); - var P, T; - c.useEffect(() => { - let e; - return ( - a && - E.reference.current && - E.floating.current && - (e = Nm(E.reference.current, E.floating.current, C, { - elementResize: 'function' == typeof ResizeObserver, - })), - () => e && e() + function () { + _this3.props.onExited(maybeNode); + } ); - }, [a, E.reference, E.floating, C]), - c.useEffect(() => { - let e; - return ( - a - ? g(!0) - : (e = setTimeout(() => { - g(!1), b(void 0); - }, 200)), - () => clearTimeout(e) - ); - }, [a]), - c.useEffect(() => { - v && (b(void 0), C()); - }, [r, C]); - const I = u.createElement( - zp, + return; + } + + this.props.onExit(maybeNode); + this.safeSetState( { - 'data-garden-animate': h ? 'true' : 'false', - isHidden: !a, - position: 'bottom-start' === S ? 'bottom' : 'top', - style: { transform: O, width: y }, - zIndex: p, - ref: m, + status: EXITING, }, - u.createElement( - rf, - Object.assign( - { - isCompact: o, - maxHeight: i, - minHeight: s, - onMouseDown: Dn(l, (e) => e.preventDefault()), - style: { height: v }, - }, - f, - { ref: t } - ), - h && r - ) + function () { + _this3.props.onExiting(maybeNode); + + _this3.onTransitionEnd(timeouts.exit, function () { + _this3.safeSetState( + { + status: EXITED, + }, + function () { + _this3.props.onExited(maybeNode); + } + ); + }); + } ); - return n ? x.createPortal(I, n) : I; - }); -(Bm.displayName = 'Listbox'), - (Bm.propTypes = { - appendToNode: Pn.any, - isCompact: Pn.bool, - isExpanded: Pn.bool, - maxHeight: Pn.string, - triggerRef: Pn.any.isRequired, - zIndex: Pn.number, - }); -const Wm = (e) => ('string' == typeof e.value ? e.value : JSON.stringify(e.value)), - Vm = (e) => ({ - value: e.value, - label: e.label, - hidden: e.isHidden, - disabled: e.isDisabled, - selected: e.isSelected, - }), - Um = (e, t) => - c.Children.toArray(e).reduce((e, n) => { - const r = e; - if (c.isValidElement(n)) - if ('value' in n.props) r.push(Vm(n.props)), (t[Wm(n.props)] = n.props.tagProps); - else { - const e = n.props, - o = Um(e.children, t); - r.push({ label: e.label, options: o }); - } - return r; - }, []), - qm = function (e) { - let { delayMilliseconds: t = 500, id: n, isVisible: r } = void 0 === e ? {} : e; - const [o, a] = c.useState(r), - i = ti().gen, - s = c.useMemo(() => n || i('tooltip_1.0.20'), [n, i]), - l = c.useRef(!1), - u = c.useRef(), - d = c.useRef(), - p = function (e) { - void 0 === e && (e = t), clearTimeout(d.current); - const n = setTimeout(() => { - l.current && a(!0); - }, e); - u.current = Number(n); - }, - f = function (e) { - void 0 === e && (e = t), clearTimeout(u.current); - const n = setTimeout(() => { - l.current && a(!1); - }, e); - d.current = Number(n); - }; - c.useEffect( - () => ( - (l.current = !0), - () => { - l.current = !1; - } - ), - [] - ), - c.useEffect( - () => () => { - clearTimeout(u.current), clearTimeout(d.current); - }, - [d, u] - ); - return { - isVisible: o, - getTooltipProps: function (e) { - let { role: t = 'tooltip', onMouseEnter: n, onMouseLeave: r, ...a } = void 0 === e ? {} : e; - return { - role: t, - onMouseEnter: Dn(n, () => p()), - onMouseLeave: Dn(r, () => f()), - 'aria-hidden': !o, - id: s, - ...a, - }; - }, - getTriggerProps: function (e) { - let { - tabIndex: t = 0, - onMouseEnter: n, - onMouseLeave: r, - onFocus: a, - onBlur: i, - onKeyDown: l, - ...c - } = void 0 === e ? {} : e; - return { - tabIndex: t, - onMouseEnter: Dn(n, () => p()), - onMouseLeave: Dn(r, () => f()), - onFocus: Dn(a, () => p()), - onBlur: Dn(i, () => f(0)), - onKeyDown: Dn(l, (e) => { - e.key === zn.ESCAPE && o && f(0); - }), - 'aria-describedby': s, - 'data-garden-container-id': 'containers.tooltip', - 'data-garden-container-version': '1.0.20', - ...c, - }; - }, - openTooltip: p, - closeTooltip: f, - }; }; -function Ym(e) { - return ( - (Ym = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function (e) { - return typeof e; - } - : function (e) { - return e && - 'function' == typeof Symbol && - e.constructor === Symbol && - e !== Symbol.prototype - ? 'symbol' - : typeof e; - }), - Ym(e) - ); -} -function Km(e) { - var t = (function (e, t) { - if ('object' != Ym(e) || !e) return e; - var n = e[Symbol.toPrimitive]; - if (void 0 !== n) { - var r = n.call(e, t || 'default'); - if ('object' != Ym(r)) return r; - throw new TypeError('@@toPrimitive must return a primitive value.'); + + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; } - return ('string' === t ? String : Number)(e); - })(e, 'string'); - return 'symbol' == Ym(t) ? t : t + ''; -} -function Gm(e, t, n) { - return ( - (t = Km(t)) in e - ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) - : (e[t] = n), - e - ); -} -Pn.func, Pn.func, Pn.number, Pn.bool; -var Qm, - Xm, - Jm = Object.prototype.toString, - Zm = function (e) { - var t = Jm.call(e), - n = '[object Arguments]' === t; - return ( - n || - (n = - '[object Array]' !== t && - null !== e && - 'object' == typeof e && - 'number' == typeof e.length && - e.length >= 0 && - '[object Function]' === Jm.call(e.callee)), - n - ); }; -var eh = Array.prototype.slice, - th = Zm, - nh = Object.keys, - rh = nh - ? function (e) { - return nh(e); - } - : (function () { - if (Xm) return Qm; - var e; - if (((Xm = 1), !Object.keys)) { - var t = Object.prototype.hasOwnProperty, - n = Object.prototype.toString, - r = Zm, - o = Object.prototype.propertyIsEnumerable, - a = !o.call({ toString: null }, 'toString'), - i = o.call(function () {}, 'prototype'), - s = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor', - ], - l = function (e) { - var t = e.constructor; - return t && t.prototype === e; - }, - c = { - $applicationCache: !0, - $console: !0, - $external: !0, - $frame: !0, - $frameElement: !0, - $frames: !0, - $innerHeight: !0, - $innerWidth: !0, - $onmozfullscreenchange: !0, - $onmozfullscreenerror: !0, - $outerHeight: !0, - $outerWidth: !0, - $pageXOffset: !0, - $pageYOffset: !0, - $parent: !0, - $scrollLeft: !0, - $scrollTop: !0, - $scrollX: !0, - $scrollY: !0, - $self: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $window: !0, - }, - u = (function () { - if ('undefined' == typeof window) return !1; - for (var e in window) - try { - if ( - !c['$' + e] && - t.call(window, e) && - null !== window[e] && - 'object' == typeof window[e] - ) - try { - l(window[e]); - } catch (e) { - return !0; - } - } catch (e) { - return !0; - } - return !1; - })(); - e = function (e) { - var o = null !== e && 'object' == typeof e, - c = '[object Function]' === n.call(e), - d = r(e), - p = o && '[object String]' === n.call(e), - f = []; - if (!o && !c && !d) throw new TypeError('Object.keys called on a non-object'); - var m = i && c; - if (p && e.length > 0 && !t.call(e, 0)) - for (var h = 0; h < e.length; ++h) f.push(String(h)); - if (d && e.length > 0) for (var g = 0; g < e.length; ++g) f.push(String(g)); - else for (var v in e) (m && 'prototype' === v) || !t.call(e, v) || f.push(String(v)); - if (a) - for ( - var b = (function (e) { - if ('undefined' == typeof window || !u) return l(e); - try { - return l(e); - } catch (e) { - return !1; - } - })(e), - y = 0; - y < s.length; - ++y - ) - (b && 'constructor' === s[y]) || !t.call(e, s[y]) || f.push(s[y]); - return f; - }; - } - return (Qm = e); - })(), - oh = Object.keys; -rh.shim = function () { - if (Object.keys) { - var e = (function () { - var e = Object.keys(arguments); - return e && e.length === arguments.length; - })(1, 2); - e || - (Object.keys = function (e) { - return th(e) ? oh(eh.call(e)) : oh(e); - }); - } else Object.keys = rh; - return Object.keys || rh; -}; -var ah, - ih = rh, - sh = function () { - if ('function' != typeof Symbol || 'function' != typeof Object.getOwnPropertySymbols) return !1; - if ('symbol' == typeof Symbol.iterator) return !0; - var e = {}, - t = Symbol('test'), - n = Object(t); - if ('string' == typeof t) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(t)) return !1; - if ('[object Symbol]' !== Object.prototype.toString.call(n)) return !1; - for (t in ((e[t] = 42), e)) return !1; - if ('function' == typeof Object.keys && 0 !== Object.keys(e).length) return !1; - if ( - 'function' == typeof Object.getOwnPropertyNames && - 0 !== Object.getOwnPropertyNames(e).length - ) - return !1; - var r = Object.getOwnPropertySymbols(e); - if (1 !== r.length || r[0] !== t) return !1; - if (!Object.prototype.propertyIsEnumerable.call(e, t)) return !1; - if ('function' == typeof Object.getOwnPropertyDescriptor) { - var o = Object.getOwnPropertyDescriptor(e, t); - if (42 !== o.value || !0 !== o.enumerable) return !1; - } - return !0; - }, - lh = sh, - ch = function () { - return lh() && !!Symbol.toStringTag; - }, - uh = Error, - dh = EvalError, - ph = RangeError, - fh = ReferenceError, - mh = SyntaxError, - hh = TypeError, - gh = URIError, - vh = 'undefined' != typeof Symbol && Symbol, - bh = sh, - yh = { __proto__: null, foo: {} }, - wh = Object, - xh = Object.prototype.toString, - kh = Math.max, - Eh = function (e, t) { - for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r]; - for (var o = 0; o < t.length; o += 1) n[o + e.length] = t[o]; - return n; - }, - Sh = function (e) { - var t = this; - if ('function' != typeof t || '[object Function]' !== xh.apply(t)) - throw new TypeError('Function.prototype.bind called on incompatible ' + t); - for ( - var n, - r = (function (e, t) { - for (var n = [], r = t || 0, o = 0; r < e.length; r += 1, o += 1) n[o] = e[r]; - return n; - })(arguments, 1), - o = kh(0, t.length - r.length), - a = [], - i = 0; - i < o; - i++ - ) - a[i] = '$' + i; - if ( - ((n = Function( - 'binder', - 'return function (' + - (function (e, t) { - for (var n = '', r = 0; r < e.length; r += 1) (n += e[r]), r + 1 < e.length && (n += t); - return n; - })(a, ',') + - '){ return binder.apply(this,arguments); }' - )(function () { - if (this instanceof n) { - var o = t.apply(this, Eh(r, arguments)); - return Object(o) === o ? o : this; - } - return t.apply(e, Eh(r, arguments)); - })), - t.prototype) - ) { - var s = function () {}; - (s.prototype = t.prototype), (n.prototype = new s()), (s.prototype = null); - } - return n; - }, - Ch = Function.prototype.bind || Sh, - Oh = Function.prototype.call, - Ph = Object.prototype.hasOwnProperty, - Th = Ch.call(Oh, Ph), - Ih = uh, - Nh = dh, - Mh = ph, - Lh = fh, - Rh = mh, - Ah = hh, - Dh = gh, - jh = Function, - zh = function (e) { - try { - return jh('"use strict"; return (' + e + ').constructor;')(); - } catch (e) {} - }, - Fh = Object.getOwnPropertyDescriptor; -if (Fh) - try { - Fh({}, ''); - } catch (uN) { - Fh = null; - } -var _h = function () { - throw new Ah(); - }, - Hh = Fh - ? (function () { - try { - return _h; - } catch (e) { - try { - return Fh(arguments, 'callee').get; - } catch (e) { - return _h; - } - } - })() - : _h, - $h = - 'function' == typeof vh && - 'function' == typeof Symbol && - 'symbol' == typeof vh('foo') && - 'symbol' == typeof Symbol('bar') && - bh(), - Bh = { __proto__: yh }.foo === yh.foo && !(yh instanceof wh), - Wh = - Object.getPrototypeOf || - (Bh - ? function (e) { - return e.__proto__; - } - : null), - Vh = {}, - Uh = 'undefined' != typeof Uint8Array && Wh ? Wh(Uint8Array) : ah, - qh = { - __proto__: null, - '%AggregateError%': 'undefined' == typeof AggregateError ? ah : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': 'undefined' == typeof ArrayBuffer ? ah : ArrayBuffer, - '%ArrayIteratorPrototype%': $h && Wh ? Wh([][Symbol.iterator]()) : ah, - '%AsyncFromSyncIteratorPrototype%': ah, - '%AsyncFunction%': Vh, - '%AsyncGenerator%': Vh, - '%AsyncGeneratorFunction%': Vh, - '%AsyncIteratorPrototype%': Vh, - '%Atomics%': 'undefined' == typeof Atomics ? ah : Atomics, - '%BigInt%': 'undefined' == typeof BigInt ? ah : BigInt, - '%BigInt64Array%': 'undefined' == typeof BigInt64Array ? ah : BigInt64Array, - '%BigUint64Array%': 'undefined' == typeof BigUint64Array ? ah : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': 'undefined' == typeof DataView ? ah : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Ih, - '%eval%': eval, - '%EvalError%': Nh, - '%Float32Array%': 'undefined' == typeof Float32Array ? ah : Float32Array, - '%Float64Array%': 'undefined' == typeof Float64Array ? ah : Float64Array, - '%FinalizationRegistry%': - 'undefined' == typeof FinalizationRegistry ? ah : FinalizationRegistry, - '%Function%': jh, - '%GeneratorFunction%': Vh, - '%Int8Array%': 'undefined' == typeof Int8Array ? ah : Int8Array, - '%Int16Array%': 'undefined' == typeof Int16Array ? ah : Int16Array, - '%Int32Array%': 'undefined' == typeof Int32Array ? ah : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': $h && Wh ? Wh(Wh([][Symbol.iterator]())) : ah, - '%JSON%': 'object' == typeof JSON ? JSON : ah, - '%Map%': 'undefined' == typeof Map ? ah : Map, - '%MapIteratorPrototype%': - 'undefined' != typeof Map && $h && Wh ? Wh(new Map()[Symbol.iterator]()) : ah, - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': 'undefined' == typeof Promise ? ah : Promise, - '%Proxy%': 'undefined' == typeof Proxy ? ah : Proxy, - '%RangeError%': Mh, - '%ReferenceError%': Lh, - '%Reflect%': 'undefined' == typeof Reflect ? ah : Reflect, - '%RegExp%': RegExp, - '%Set%': 'undefined' == typeof Set ? ah : Set, - '%SetIteratorPrototype%': - 'undefined' != typeof Set && $h && Wh ? Wh(new Set()[Symbol.iterator]()) : ah, - '%SharedArrayBuffer%': 'undefined' == typeof SharedArrayBuffer ? ah : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': $h && Wh ? Wh(''[Symbol.iterator]()) : ah, - '%Symbol%': $h ? Symbol : ah, - '%SyntaxError%': Rh, - '%ThrowTypeError%': Hh, - '%TypedArray%': Uh, - '%TypeError%': Ah, - '%Uint8Array%': 'undefined' == typeof Uint8Array ? ah : Uint8Array, - '%Uint8ClampedArray%': 'undefined' == typeof Uint8ClampedArray ? ah : Uint8ClampedArray, - '%Uint16Array%': 'undefined' == typeof Uint16Array ? ah : Uint16Array, - '%Uint32Array%': 'undefined' == typeof Uint32Array ? ah : Uint32Array, - '%URIError%': Dh, - '%WeakMap%': 'undefined' == typeof WeakMap ? ah : WeakMap, - '%WeakRef%': 'undefined' == typeof WeakRef ? ah : WeakRef, - '%WeakSet%': 'undefined' == typeof WeakSet ? ah : WeakSet, - }; -if (Wh) - try { - null.error; - } catch (uN) { - var Yh = Wh(Wh(uN)); - qh['%Error.prototype%'] = Yh; - } -var Kh, - Gh, - Qh = function e(t) { - var n; - if ('%AsyncFunction%' === t) n = zh('async function () {}'); - else if ('%GeneratorFunction%' === t) n = zh('function* () {}'); - else if ('%AsyncGeneratorFunction%' === t) n = zh('async function* () {}'); - else if ('%AsyncGenerator%' === t) { - var r = e('%AsyncGeneratorFunction%'); - r && (n = r.prototype); - } else if ('%AsyncIteratorPrototype%' === t) { - var o = e('%AsyncGenerator%'); - o && Wh && (n = Wh(o.prototype)); - } - return (qh[t] = n), n; - }, - Xh = { - __proto__: null, - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'], - }, - Jh = Ch, - Zh = Th, - eg = Jh.call(Function.call, Array.prototype.concat), - tg = Jh.call(Function.apply, Array.prototype.splice), - ng = Jh.call(Function.call, String.prototype.replace), - rg = Jh.call(Function.call, String.prototype.slice), - og = Jh.call(Function.call, RegExp.prototype.exec), - ag = - /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - ig = /\\(\\)?/g, - sg = function (e, t) { - var n, - r = e; - if ((Zh(Xh, r) && (r = '%' + (n = Xh[r])[0] + '%'), Zh(qh, r))) { - var o = qh[r]; - if ((o === Vh && (o = Qh(r)), void 0 === o && !t)) - throw new Ah('intrinsic ' + e + ' exists, but is not available. Please file an issue!'); - return { alias: n, name: r, value: o }; - } - throw new Rh('intrinsic ' + e + ' does not exist!'); - }, - lg = function (e, t) { - if ('string' != typeof e || 0 === e.length) - throw new Ah('intrinsic name must be a non-empty string'); - if (arguments.length > 1 && 'boolean' != typeof t) - throw new Ah('"allowMissing" argument must be a boolean'); - if (null === og(/^%?[^%]*%?$/, e)) - throw new Rh( - '`%` may not be present anywhere but at the beginning and end of the intrinsic name' - ); - var n = (function (e) { - var t = rg(e, 0, 1), - n = rg(e, -1); - if ('%' === t && '%' !== n) throw new Rh('invalid intrinsic syntax, expected closing `%`'); - if ('%' === n && '%' !== t) throw new Rh('invalid intrinsic syntax, expected opening `%`'); - var r = []; - return ( - ng(e, ag, function (e, t, n, o) { - r[r.length] = n ? ng(o, ig, '$1') : t || e; - }), - r - ); - })(e), - r = n.length > 0 ? n[0] : '', - o = sg('%' + r + '%', t), - a = o.name, - i = o.value, - s = !1, - l = o.alias; - l && ((r = l[0]), tg(n, eg([0, 1], l))); - for (var c = 1, u = !0; c < n.length; c += 1) { - var d = n[c], - p = rg(d, 0, 1), - f = rg(d, -1); - if (('"' === p || "'" === p || '`' === p || '"' === f || "'" === f || '`' === f) && p !== f) - throw new Rh('property names with quotes must have matching quotes'); - if ((('constructor' !== d && u) || (s = !0), Zh(qh, (a = '%' + (r += '.' + d) + '%')))) - i = qh[a]; - else if (null != i) { - if (!(d in i)) { - if (!t) - throw new Ah('base intrinsic for ' + e + ' exists, but the property is not available.'); - return; - } - if (Fh && c + 1 >= n.length) { - var m = Fh(i, d); - i = (u = !!m) && 'get' in m && !('originalValue' in m.get) ? m.get : i[d]; - } else (u = Zh(i, d)), (i = i[d]); - u && !s && (qh[a] = i); + + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; + + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; + + var active = true; + + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); } + }; + + this.nextCallback.cancel = function () { + active = false; + }; + + return this.nextCallback; + }; + + _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) { + this.setNextCallback(handler); + var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; + + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); + return; } - return i; - }, - cg = { exports: {} }; -function ug() { - if (Gh) return Kh; - Gh = 1; - var e = lg('%Object.defineProperty%', !0) || !1; - if (e) - try { - e({}, 'a', { value: 1 }); - } catch (t) { - e = !1; + + if (this.props.addEndListener) { + var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], + maybeNode = _ref3[0], + maybeNextCallback = _ref3[1]; + + this.props.addEndListener(maybeNode, maybeNextCallback); } - return (Kh = e); -} -var dg = lg('%Object.getOwnPropertyDescriptor%', !0); -if (dg) - try { - dg([], 'length'); - } catch (uN) { - dg = null; - } -var pg = dg, - fg = ug(), - mg = mh, - hg = hh, - gg = pg, - vg = function (e, t, n) { - if (!e || ('object' != typeof e && 'function' != typeof e)) - throw new hg('`obj` must be an object or a function`'); - if ('string' != typeof t && 'symbol' != typeof t) - throw new hg('`property` must be a string or a symbol`'); - if (arguments.length > 3 && 'boolean' != typeof arguments[3] && null !== arguments[3]) - throw new hg('`nonEnumerable`, if provided, must be a boolean or null'); - if (arguments.length > 4 && 'boolean' != typeof arguments[4] && null !== arguments[4]) - throw new hg('`nonWritable`, if provided, must be a boolean or null'); - if (arguments.length > 5 && 'boolean' != typeof arguments[5] && null !== arguments[5]) - throw new hg('`nonConfigurable`, if provided, must be a boolean or null'); - if (arguments.length > 6 && 'boolean' != typeof arguments[6]) - throw new hg('`loose`, if provided, must be a boolean'); - var r = arguments.length > 3 ? arguments[3] : null, - o = arguments.length > 4 ? arguments[4] : null, - a = arguments.length > 5 ? arguments[5] : null, - i = arguments.length > 6 && arguments[6], - s = !!gg && gg(e, t); - if (fg) - fg(e, t, { - configurable: null === a && s ? s.configurable : !a, - enumerable: null === r && s ? s.enumerable : !r, - value: n, - writable: null === o && s ? s.writable : !o, - }); - else { - if (!i && (r || o || a)) - throw new mg( - 'This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.' - ); - e[t] = n; + + if (timeout != null) { + setTimeout(this.nextCallback, timeout); } - }, - bg = ug(), - yg = function () { - return !!bg; }; -yg.hasArrayLengthDefineBug = function () { - if (!bg) return null; - try { - return 1 !== bg([], 'length', { value: 1 }).length; - } catch (e) { - return !0; - } -}; -var wg = yg, - xg = lg, - kg = vg, - Eg = wg(), - Sg = pg, - Cg = hh, - Og = xg('%Math.floor%'), - Pg = function (e, t) { - if ('function' != typeof e) throw new Cg('`fn` is not a function'); - if ('number' != typeof t || t < 0 || t > 4294967295 || Og(t) !== t) - throw new Cg('`length` must be a positive 32-bit integer'); - var n = arguments.length > 2 && !!arguments[2], - r = !0, - o = !0; - if ('length' in e && Sg) { - var a = Sg(e, 'length'); - a && !a.configurable && (r = !1), a && !a.writable && (o = !1); - } - return (r || o || !n) && (Eg ? kg(e, 'length', t, !0, !0) : kg(e, 'length', t)), e; - }; -!(function (e) { - var t = Ch, - n = lg, - r = Pg, - o = hh, - a = n('%Function.prototype.apply%'), - i = n('%Function.prototype.call%'), - s = n('%Reflect.apply%', !0) || t.call(i, a), - l = ug(), - c = n('%Math.max%'); - e.exports = function (e) { - if ('function' != typeof e) throw new o('a function is required'); - var n = s(t, i, arguments); - return r(n, 1 + c(0, e.length - (arguments.length - 1)), !0); - }; - var u = function () { - return s(t, a, arguments); - }; - l ? l(e.exports, 'apply', { value: u }) : (e.exports.apply = u); -})(cg); -var Tg = cg.exports, - Ig = lg, - Ng = Tg, - Mg = Ng(Ig('String.prototype.indexOf')), - Lg = function (e, t) { - var n = Ig(e, !!t); - return 'function' == typeof n && Mg(e, '.prototype.') > -1 ? Ng(n) : n; - }, - Rg = ch(), - Ag = Lg('Object.prototype.toString'), - Dg = function (e) { - return ( - !(Rg && e && 'object' == typeof e && Symbol.toStringTag in e) && - '[object Arguments]' === Ag(e) - ); - }, - jg = function (e) { - return ( - !!Dg(e) || - (null !== e && - 'object' == typeof e && - 'number' == typeof e.length && - e.length >= 0 && - '[object Array]' !== Ag(e) && - '[object Function]' === Ag(e.callee)) - ); - }, - zg = (function () { - return Dg(arguments); - })(); -Dg.isLegacyArguments = jg; -var Fg = zg ? Dg : jg, - _g = ih, - Hg = 'function' == typeof Symbol && 'symbol' == typeof Symbol('foo'), - $g = Object.prototype.toString, - Bg = Array.prototype.concat, - Wg = vg, - Vg = wg(), - Ug = function (e, t, n, r) { - if (t in e) - if (!0 === r) { - if (e[t] === n) return; - } else if ('function' != typeof (o = r) || '[object Function]' !== $g.call(o) || !r()) return; - var o; - Vg ? Wg(e, t, n, !0) : Wg(e, t, n); - }, - qg = function (e, t) { - var n = arguments.length > 2 ? arguments[2] : {}, - r = _g(t); - Hg && (r = Bg.call(r, Object.getOwnPropertySymbols(t))); - for (var o = 0; o < r.length; o += 1) Ug(e, r[o], t[r[o]], n[r[o]]); - }; -qg.supportsDescriptors = !!Vg; -var Yg = qg, - Kg = function (e) { - return e != e; - }, - Gg = function (e, t) { - return 0 === e && 0 === t ? 1 / e == 1 / t : e === t || !(!Kg(e) || !Kg(t)); - }, - Qg = Gg, - Xg = function () { - return 'function' == typeof Object.is ? Object.is : Qg; - }, - Jg = Xg, - Zg = Yg, - ev = Yg, - tv = Gg, - nv = Xg, - rv = function () { - var e = Jg(); + + _proto.render = function render() { + var status = this.state.status; + + if (status === UNMOUNTED) { + return null; + } + + var _this$props = this.props, + children = _this$props.children; + _this$props.in; + _this$props.mountOnEnter; + _this$props.unmountOnExit; + _this$props.appear; + _this$props.enter; + _this$props.exit; + _this$props.timeout; + _this$props.addEndListener; + _this$props.onEnter; + _this$props.onEntering; + _this$props.onEntered; + _this$props.onExit; + _this$props.onExiting; + _this$props.onExited; + _this$props.nodeRef; + var childProps = _objectWithoutPropertiesLoose$1(_this$props, [ + 'children', + 'in', + 'mountOnEnter', + 'unmountOnExit', + 'appear', + 'enter', + 'exit', + 'timeout', + 'addEndListener', + 'onEnter', + 'onEntering', + 'onEntered', + 'onExit', + 'onExiting', + 'onExited', + 'nodeRef', + ]); + return ( - Zg( - Object, - { is: e }, + /*#__PURE__*/ + // allows for nested Transitions + U$6.createElement( + TransitionGroupContext.Provider, { - is: function () { - return Object.is !== e; - }, - } - ), - e - ); - }, - ov = Tg(nv(), Object); -ev(ov, { getPolyfill: nv, implementation: tv, shim: rv }); -var av, - iv, - sv, - lv, - cv = ov, - uv = Lg, - dv = ch(); -if (dv) { - (av = uv('Object.prototype.hasOwnProperty')), (iv = uv('RegExp.prototype.exec')), (sv = {}); - var pv = function () { - throw sv; - }; - (lv = { toString: pv, valueOf: pv }), - 'symbol' == typeof Symbol.toPrimitive && (lv[Symbol.toPrimitive] = pv); -} -var fv = uv('Object.prototype.toString'), - mv = Object.getOwnPropertyDescriptor, - hv = dv - ? function (e) { - if (!e || 'object' != typeof e) return !1; - var t = mv(e, 'lastIndex'); - if (!(t && av(t, 'value'))) return !1; - try { - iv(e, lv); - } catch (e) { - return e === sv; - } - } - : function (e) { - return ( - !(!e || ('object' != typeof e && 'function' != typeof e)) && '[object RegExp]' === fv(e) - ); - }, - gv = function () { - return 'string' == typeof function () {}.name; - }, - vv = Object.getOwnPropertyDescriptor; -if (vv) - try { - vv([], 'length'); - } catch (uN) { - vv = null; - } -gv.functionsHaveConfigurableNames = function () { - if (!gv() || !vv) return !1; - var e = vv(function () {}, 'name'); - return !!e && !!e.configurable; -}; -var bv = Function.prototype.bind; -gv.boundFunctionsHaveNames = function () { - return gv() && 'function' == typeof bv && '' !== function () {}.bind().name; -}; -var yv = gv, - wv = vg, - xv = wg(), - kv = yv.functionsHaveConfigurableNames(), - Ev = hh, - Sv = hh, - Cv = Object, - Ov = (function (e, t) { - if ('function' != typeof e) throw new Ev('`fn` is not a function'); - return ( - (arguments.length > 2 && !!arguments[2] && !kv) || - (xv ? wv(e, 'name', t, !0, !0) : wv(e, 'name', t)), - e + value: null, + }, + typeof children === 'function' + ? children(status, childProps) + : U$6.cloneElement(U$6.Children.only(children), childProps) + ) ); - })( - function () { - if (null == this || this !== Cv(this)) - throw new Sv('RegExp.prototype.flags getter called on non-object'); - var e = ''; - return ( - this.hasIndices && (e += 'd'), - this.global && (e += 'g'), - this.ignoreCase && (e += 'i'), - this.multiline && (e += 'm'), - this.dotAll && (e += 's'), - this.unicode && (e += 'u'), - this.unicodeSets && (e += 'v'), - this.sticky && (e += 'y'), - e - ); - }, - 'get flags', - !0 - ), - Pv = Ov, - Tv = Yg.supportsDescriptors, - Iv = Object.getOwnPropertyDescriptor, - Nv = function () { - if (Tv && 'gim' === /a/gim.flags) { - var e = Iv(RegExp.prototype, 'flags'); - if ( - e && - 'function' == typeof e.get && - 'dotAll' in RegExp.prototype && - 'hasIndices' in RegExp.prototype - ) { - var t = '', - n = {}; - if ( - (Object.defineProperty(n, 'hasIndices', { - get: function () { - t += 'd'; - }, - }), - Object.defineProperty(n, 'sticky', { - get: function () { - t += 'y'; - }, - }), - e.get.call(n), - 'dy' === t) - ) - return e.get; - } - } - return Pv; - }, - Mv = Yg.supportsDescriptors, - Lv = Nv, - Rv = Object.getOwnPropertyDescriptor, - Av = Object.defineProperty, - Dv = TypeError, - jv = Object.getPrototypeOf, - zv = /a/, - Fv = Yg, - _v = Ov, - Hv = Nv, - $v = function () { - if (!Mv || !jv) - throw new Dv( - 'RegExp.prototype.flags requires a true ES5 environment that supports property descriptors' - ); - var e = Lv(), - t = jv(zv), - n = Rv(t, 'flags'); - return (n && n.get === e) || Av(t, 'flags', { configurable: !0, enumerable: !1, get: e }), e; - }, - Bv = Tg(Hv()); -Fv(Bv, { getPolyfill: Hv, implementation: _v, shim: $v }); -var Wv = Bv, - Vv = Date.prototype.getDay, - Uv = Object.prototype.toString, - qv = ch(), - Yv = ih, - Kv = Fg, - Gv = cv, - Qv = hv, - Xv = Wv, - Jv = function (e) { - return ( - 'object' == typeof e && - null !== e && - (qv - ? (function (e) { - try { - return Vv.call(e), !0; - } catch (e) { - return !1; - } - })(e) - : '[object Date]' === Uv.call(e)) - ); - }, - Zv = Date.prototype.getTime; -function eb(e, t, n) { - var r = n || {}; + }; + + return Transition; +})(U$6.Component); + +Transition.contextType = TransitionGroupContext; +Transition.propTypes = {}; // Name the function so it is clearer in the documentation + +function noop$2() {} + +Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop$2, + onEntering: noop$2, + onEntered: noop$2, + onExit: noop$2, + onExiting: noop$2, + onExited: noop$2, +}; +Transition.UNMOUNTED = UNMOUNTED; +Transition.EXITED = EXITED; +Transition.ENTERING = ENTERING; +Transition.ENTERED = ENTERED; +Transition.EXITING = EXITING; +var Transition$1 = Transition; + +var _addClass = function addClass$1(node, classes) { return ( - !!(r.strict ? Gv(e, t) : e === t) || - (!e || !t || ('object' != typeof e && 'object' != typeof t) - ? r.strict - ? Gv(e, t) - : e == t - : (function (e, t, n) { - var r, o; - if (typeof e != typeof t) return !1; - if (tb(e) || tb(t)) return !1; - if (e.prototype !== t.prototype) return !1; - if (Kv(e) !== Kv(t)) return !1; - var a = Qv(e), - i = Qv(t); - if (a !== i) return !1; - if (a || i) return e.source === t.source && Xv(e) === Xv(t); - if (Jv(e) && Jv(t)) return Zv.call(e) === Zv.call(t); - var s = nb(e), - l = nb(t); - if (s !== l) return !1; - if (s || l) { - if (e.length !== t.length) return !1; - for (r = 0; r < e.length; r++) if (e[r] !== t[r]) return !1; - return !0; - } - if (typeof e != typeof t) return !1; - try { - var c = Yv(e), - u = Yv(t); - } catch (e) { - return !1; - } - if (c.length !== u.length) return !1; - for (c.sort(), u.sort(), r = c.length - 1; r >= 0; r--) if (c[r] != u[r]) return !1; - for (r = c.length - 1; r >= 0; r--) if (!eb(e[(o = c[r])], t[o], n)) return !1; - return !0; - })(e, t, r)) + node && + classes && + classes.split(' ').forEach(function (c) { + return addClass(node, c); + }) ); -} -function tb(e) { - return null == e; -} -function nb(e) { +}; + +var removeClass = function removeClass(node, classes) { return ( - !(!e || 'object' != typeof e || 'number' != typeof e.length) && - 'function' == typeof e.copy && - 'function' == typeof e.slice && - !(e.length > 0 && 'number' != typeof e[0]) - ); -} -var rb = n(eb), - ob = - 'undefined' != typeof window && - 'undefined' != typeof document && - 'undefined' != typeof navigator, - ab = (function () { - for (var e = ['Edge', 'Trident', 'Firefox'], t = 0; t < e.length; t += 1) - if (ob && navigator.userAgent.indexOf(e[t]) >= 0) return 1; - return 0; - })(); -var ib = - ob && window.Promise - ? function (e) { - var t = !1; - return function () { - t || - ((t = !0), - window.Promise.resolve().then(function () { - (t = !1), e(); - })); - }; + node && + classes && + classes.split(' ').forEach(function (c) { + return removeClass$1(node, c); + }) + ); +}; +/** + * A transition component inspired by the excellent + * [ng-animate](https://docs.angularjs.org/api/ngAnimate) library, you should + * use it if you're using CSS transitions or animations. It's built upon the + * [`Transition`](https://reactcommunity.org/react-transition-group/transition) + * component, so it inherits all of its props. + * + * `CSSTransition` applies a pair of class names during the `appear`, `enter`, + * and `exit` states of the transition. The first class is applied and then a + * second `*-active` class in order to activate the CSS transition. After the + * transition, matching `*-done` class names are applied to persist the + * transition state. + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
+ * + *
+ * {"I'll receive my-node-* classes"} + *
+ *
+ * + *
+ * ); + * } + * ``` + * + * When the `in` prop is set to `true`, the child component will first receive + * the class `example-enter`, then the `example-enter-active` will be added in + * the next tick. `CSSTransition` [forces a + * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215) + * between before adding the `example-enter-active`. This is an important trick + * because it allows us to transition between `example-enter` and + * `example-enter-active` even though they were added immediately one after + * another. Most notably, this is what makes it possible for us to animate + * _appearance_. + * + * ```css + * .my-node-enter { + * opacity: 0; + * } + * .my-node-enter-active { + * opacity: 1; + * transition: opacity 200ms; + * } + * .my-node-exit { + * opacity: 1; + * } + * .my-node-exit-active { + * opacity: 0; + * transition: opacity 200ms; + * } + * ``` + * + * `*-active` classes represent which styles you want to animate **to**, so it's + * important to add `transition` declaration only to them, otherwise transitions + * might not behave as intended! This might not be obvious when the transitions + * are symmetrical, i.e. when `*-enter-active` is the same as `*-exit`, like in + * the example above (minus `transition`), but it becomes apparent in more + * complex transitions. + * + * **Note**: If you're using the + * [`appear`](http://reactcommunity.org/react-transition-group/transition#Transition-prop-appear) + * prop, make sure to define styles for `.appear-*` classes as well. + */ + +var CSSTransition$1 = /*#__PURE__*/ (function (_React$Component) { + _inheritsLoose(CSSTransition, _React$Component); + + function CSSTransition() { + var _this; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; + _this.appliedClasses = { + appear: {}, + enter: {}, + exit: {}, + }; + + _this.onEnter = function (maybeNode, maybeAppearing) { + var _this$resolveArgument = _this.resolveArguments(maybeNode, maybeAppearing), + node = _this$resolveArgument[0], + appearing = _this$resolveArgument[1]; + + _this.removeClasses(node, 'exit'); + + _this.addClass(node, appearing ? 'appear' : 'enter', 'base'); + + if (_this.props.onEnter) { + _this.props.onEnter(maybeNode, maybeAppearing); } - : function (e) { - var t = !1; - return function () { - t || - ((t = !0), - setTimeout(function () { - (t = !1), e(); - }, ab)); - }; - }; -function sb(e) { - return e && '[object Function]' === {}.toString.call(e); -} -function lb(e, t) { - if (1 !== e.nodeType) return []; - var n = e.ownerDocument.defaultView.getComputedStyle(e, null); - return t ? n[t] : n; -} -function cb(e) { - return 'HTML' === e.nodeName ? e : e.parentNode || e.host; -} -function ub(e) { - if (!e) return document.body; - switch (e.nodeName) { - case 'HTML': - case 'BODY': - return e.ownerDocument.body; - case '#document': - return e.body; - } - var t = lb(e), - n = t.overflow, - r = t.overflowX, - o = t.overflowY; - return /(auto|scroll|overlay)/.test(n + o + r) ? e : ub(cb(e)); -} -function db(e) { - return e && e.referenceNode ? e.referenceNode : e; -} -var pb = ob && !(!window.MSInputMethodContext || !document.documentMode), - fb = ob && /MSIE 10/.test(navigator.userAgent); -function mb(e) { - return 11 === e ? pb : 10 === e ? fb : pb || fb; -} -function hb(e) { - if (!e) return document.documentElement; - for ( - var t = mb(10) ? document.body : null, n = e.offsetParent || null; - n === t && e.nextElementSibling; + }; - ) - n = (e = e.nextElementSibling).offsetParent; - var r = n && n.nodeName; - return r && 'BODY' !== r && 'HTML' !== r - ? -1 !== ['TH', 'TD', 'TABLE'].indexOf(n.nodeName) && 'static' === lb(n, 'position') - ? hb(n) - : n - : e - ? e.ownerDocument.documentElement - : document.documentElement; -} -function gb(e) { - return null !== e.parentNode ? gb(e.parentNode) : e; -} -function vb(e, t) { - if (!(e && e.nodeType && t && t.nodeType)) return document.documentElement; - var n = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, - r = n ? e : t, - o = n ? t : e, - a = document.createRange(); - a.setStart(r, 0), a.setEnd(o, 0); - var i, - s, - l = a.commonAncestorContainer; - if ((e !== l && t !== l) || r.contains(o)) - return 'BODY' === (s = (i = l).nodeName) || ('HTML' !== s && hb(i.firstElementChild) !== i) - ? hb(l) - : l; - var c = gb(e); - return c.host ? vb(c.host, t) : vb(e, gb(t).host); -} -function bb(e) { - var t = - 'top' === (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 'top') - ? 'scrollTop' - : 'scrollLeft', - n = e.nodeName; - if ('BODY' === n || 'HTML' === n) { - var r = e.ownerDocument.documentElement; - return (e.ownerDocument.scrollingElement || r)[t]; - } - return e[t]; -} -function yb(e, t) { - var n = 'x' === t ? 'Left' : 'Top', - r = 'Left' === n ? 'Right' : 'Bottom'; - return parseFloat(e['border' + n + 'Width']) + parseFloat(e['border' + r + 'Width']); -} -function wb(e, t, n, r) { - return Math.max( - t['offset' + e], - t['scroll' + e], - n['client' + e], - n['offset' + e], - n['scroll' + e], - mb(10) - ? parseInt(n['offset' + e]) + - parseInt(r['margin' + ('Height' === e ? 'Top' : 'Left')]) + - parseInt(r['margin' + ('Height' === e ? 'Bottom' : 'Right')]) - : 0 - ); -} -function xb(e) { - var t = e.body, - n = e.documentElement, - r = mb(10) && getComputedStyle(n); - return { height: wb('Height', t, n, r), width: wb('Width', t, n, r) }; -} -var kb = (function () { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var r = t[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - 'value' in r && (r.writable = !0), - Object.defineProperty(e, r.key, r); + _this.onEntering = function (maybeNode, maybeAppearing) { + var _this$resolveArgument2 = _this.resolveArguments(maybeNode, maybeAppearing), + node = _this$resolveArgument2[0], + appearing = _this$resolveArgument2[1]; + + var type = appearing ? 'appear' : 'enter'; + + _this.addClass(node, type, 'active'); + + if (_this.props.onEntering) { + _this.props.onEntering(maybeNode, maybeAppearing); } - } - return function (t, n, r) { - return n && e(t.prototype, n), r && e(t, r), t; }; - })(), - Eb = function (e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) - : (e[t] = n), - e - ); - }, - Sb = - Object.assign || - function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + + _this.onEntered = function (maybeNode, maybeAppearing) { + var _this$resolveArgument3 = _this.resolveArguments(maybeNode, maybeAppearing), + node = _this$resolveArgument3[0], + appearing = _this$resolveArgument3[1]; + + var type = appearing ? 'appear' : 'enter'; + + _this.removeClasses(node, type); + + _this.addClass(node, type, 'done'); + + if (_this.props.onEntered) { + _this.props.onEntered(maybeNode, maybeAppearing); } - return e; }; -function Cb(e) { - return Sb({}, e, { right: e.left + e.width, bottom: e.top + e.height }); -} -function Ob(e) { - var t = {}; - try { - if (mb(10)) { - t = e.getBoundingClientRect(); - var n = bb(e, 'top'), - r = bb(e, 'left'); - (t.top += n), (t.left += r), (t.bottom += n), (t.right += r); - } else t = e.getBoundingClientRect(); - } catch (e) {} - var o = { left: t.left, top: t.top, width: t.right - t.left, height: t.bottom - t.top }, - a = 'HTML' === e.nodeName ? xb(e.ownerDocument) : {}, - i = a.width || e.clientWidth || o.width, - s = a.height || e.clientHeight || o.height, - l = e.offsetWidth - i, - c = e.offsetHeight - s; - if (l || c) { - var u = lb(e); - (l -= yb(u, 'x')), (c -= yb(u, 'y')), (o.width -= l), (o.height -= c); - } - return Cb(o); -} -function Pb(e, t) { - var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], - r = mb(10), - o = 'HTML' === t.nodeName, - a = Ob(e), - i = Ob(t), - s = ub(e), - l = lb(t), - c = parseFloat(l.borderTopWidth), - u = parseFloat(l.borderLeftWidth); - n && o && ((i.top = Math.max(i.top, 0)), (i.left = Math.max(i.left, 0))); - var d = Cb({ - top: a.top - i.top - c, - left: a.left - i.left - u, - width: a.width, - height: a.height, - }); - if (((d.marginTop = 0), (d.marginLeft = 0), !r && o)) { - var p = parseFloat(l.marginTop), - f = parseFloat(l.marginLeft); - (d.top -= c - p), - (d.bottom -= c - p), - (d.left -= u - f), - (d.right -= u - f), - (d.marginTop = p), - (d.marginLeft = f); + + _this.onExit = function (maybeNode) { + var _this$resolveArgument4 = _this.resolveArguments(maybeNode), + node = _this$resolveArgument4[0]; + + _this.removeClasses(node, 'appear'); + + _this.removeClasses(node, 'enter'); + + _this.addClass(node, 'exit', 'base'); + + if (_this.props.onExit) { + _this.props.onExit(maybeNode); + } + }; + + _this.onExiting = function (maybeNode) { + var _this$resolveArgument5 = _this.resolveArguments(maybeNode), + node = _this$resolveArgument5[0]; + + _this.addClass(node, 'exit', 'active'); + + if (_this.props.onExiting) { + _this.props.onExiting(maybeNode); + } + }; + + _this.onExited = function (maybeNode) { + var _this$resolveArgument6 = _this.resolveArguments(maybeNode), + node = _this$resolveArgument6[0]; + + _this.removeClasses(node, 'exit'); + + _this.addClass(node, 'exit', 'done'); + + if (_this.props.onExited) { + _this.props.onExited(maybeNode); + } + }; + + _this.resolveArguments = function (maybeNode, maybeAppearing) { + return _this.props.nodeRef + ? [_this.props.nodeRef.current, maybeNode] // here `maybeNode` is actually `appearing` + : [maybeNode, maybeAppearing]; + }; + + _this.getClassNames = function (type) { + var classNames = _this.props.classNames; + var isStringClassNames = typeof classNames === 'string'; + var prefix = isStringClassNames && classNames ? classNames + '-' : ''; + var baseClassName = isStringClassNames ? '' + prefix + type : classNames[type]; + var activeClassName = isStringClassNames + ? baseClassName + '-active' + : classNames[type + 'Active']; + var doneClassName = isStringClassNames ? baseClassName + '-done' : classNames[type + 'Done']; + return { + baseClassName: baseClassName, + activeClassName: activeClassName, + doneClassName: doneClassName, + }; + }; + + return _this; } - return ( - (r && !n ? t.contains(s) : t === s && 'BODY' !== s.nodeName) && - (d = (function (e, t) { - var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], - r = bb(t, 'top'), - o = bb(t, 'left'), - a = n ? -1 : 1; - return (e.top += r * a), (e.bottom += r * a), (e.left += o * a), (e.right += o * a), e; - })(d, t)), - d - ); -} -function Tb(e) { - var t = e.nodeName; - if ('BODY' === t || 'HTML' === t) return !1; - if ('fixed' === lb(e, 'position')) return !0; - var n = cb(e); - return !!n && Tb(n); -} -function Ib(e) { - if (!e || !e.parentElement || mb()) return document.documentElement; - for (var t = e.parentElement; t && 'none' === lb(t, 'transform'); ) t = t.parentElement; - return t || document.documentElement; -} -function Nb(e, t, n, r) { - var o = arguments.length > 4 && void 0 !== arguments[4] && arguments[4], - a = { top: 0, left: 0 }, - i = o ? Ib(e) : vb(e, db(t)); - if ('viewport' === r) - a = (function (e) { - var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], - n = e.ownerDocument.documentElement, - r = Pb(e, n), - o = Math.max(n.clientWidth, window.innerWidth || 0), - a = Math.max(n.clientHeight, window.innerHeight || 0), - i = t ? 0 : bb(n), - s = t ? 0 : bb(n, 'left'); - return Cb({ - top: i - r.top + r.marginTop, - left: s - r.left + r.marginLeft, - width: o, - height: a, - }); - })(i, o); - else { - var s = void 0; - 'scrollParent' === r - ? 'BODY' === (s = ub(cb(t))).nodeName && (s = e.ownerDocument.documentElement) - : (s = 'window' === r ? e.ownerDocument.documentElement : r); - var l = Pb(s, i, o); - if ('HTML' !== s.nodeName || Tb(i)) a = l; - else { - var c = xb(e.ownerDocument), - u = c.height, - d = c.width; - (a.top += l.top - l.marginTop), - (a.bottom = u + l.top), - (a.left += l.left - l.marginLeft), - (a.right = d + l.left); + + var _proto = CSSTransition.prototype; + + _proto.addClass = function addClass(node, type, phase) { + var className = this.getClassNames(type)[phase + 'ClassName']; + + var _this$getClassNames = this.getClassNames('enter'), + doneClassName = _this$getClassNames.doneClassName; + + if (type === 'appear' && phase === 'done' && doneClassName) { + className += ' ' + doneClassName; + } // This is to force a repaint, + // which is necessary in order to transition styles when adding a class name. + + if (phase === 'active') { + if (node) forceReflow(node); } - } - var p = 'number' == typeof (n = n || 0); - return ( - (a.left += p ? n : n.left || 0), - (a.top += p ? n : n.top || 0), - (a.right -= p ? n : n.right || 0), - (a.bottom -= p ? n : n.bottom || 0), - a - ); -} -function Mb(e, t, n, r, o) { - var a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : 0; - if (-1 === e.indexOf('auto')) return e; - var i = Nb(n, r, a, o), - s = { - top: { width: i.width, height: t.top - i.top }, - right: { width: i.right - t.right, height: i.height }, - bottom: { width: i.width, height: i.bottom - t.bottom }, - left: { width: t.left - i.left, height: i.height }, - }, - l = Object.keys(s) - .map(function (e) { - return Sb({ key: e }, s[e], { area: ((t = s[e]), t.width * t.height) }); - var t; + + if (className) { + this.appliedClasses[type][phase] = className; + + _addClass(node, className); + } + }; + + _proto.removeClasses = function removeClasses(node, type) { + var _this$appliedClasses$ = this.appliedClasses[type], + baseClassName = _this$appliedClasses$.base, + activeClassName = _this$appliedClasses$.active, + doneClassName = _this$appliedClasses$.done; + this.appliedClasses[type] = {}; + + if (baseClassName) { + removeClass(node, baseClassName); + } + + if (activeClassName) { + removeClass(node, activeClassName); + } + + if (doneClassName) { + removeClass(node, doneClassName); + } + }; + + _proto.render = function render() { + var _this$props = this.props; + _this$props.classNames; + var props = _objectWithoutPropertiesLoose$1(_this$props, ['classNames']); + + return /*#__PURE__*/ U$6.createElement( + Transition$1, + _extends$V({}, props, { + onEnter: this.onEnter, + onEntered: this.onEntered, + onEntering: this.onEntering, + onExit: this.onExit, + onExiting: this.onExiting, + onExited: this.onExited, }) - .sort(function (e, t) { - return t.area - e.area; - }), - c = l.filter(function (e) { - var t = e.width, - r = e.height; - return t >= n.clientWidth && r >= n.clientHeight; - }), - u = c.length > 0 ? c[0].key : l[0].key, - d = e.split('-')[1]; - return u + (d ? '-' + d : ''); -} -function Lb(e, t, n) { - var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null; - return Pb(n, r ? Ib(t) : vb(t, db(n)), r); -} -function Rb(e) { - var t = e.ownerDocument.defaultView.getComputedStyle(e), - n = parseFloat(t.marginTop || 0) + parseFloat(t.marginBottom || 0), - r = parseFloat(t.marginLeft || 0) + parseFloat(t.marginRight || 0); - return { width: e.offsetWidth + r, height: e.offsetHeight + n }; -} -function Ab(e) { - var t = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; - return e.replace(/left|right|bottom|top/g, function (e) { - return t[e]; - }); -} -function Db(e, t, n) { - n = n.split('-')[0]; - var r = Rb(e), - o = { width: r.width, height: r.height }, - a = -1 !== ['right', 'left'].indexOf(n), - i = a ? 'top' : 'left', - s = a ? 'left' : 'top', - l = a ? 'height' : 'width', - c = a ? 'width' : 'height'; - return (o[i] = t[i] + t[l] / 2 - r[l] / 2), (o[s] = n === s ? t[s] - r[c] : t[Ab(s)]), o; -} -function jb(e, t) { - return Array.prototype.find ? e.find(t) : e.filter(t)[0]; -} -function zb(e, t, n) { - var r = - void 0 === n - ? e - : e.slice( - 0, - (function (e, t, n) { - if (Array.prototype.findIndex) - return e.findIndex(function (e) { - return e[t] === n; - }); - var r = jb(e, function (e) { - return e[t] === n; - }); - return e.indexOf(r); - })(e, 'name', n) - ); - return ( - r.forEach(function (e) { - e.function && console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); - var n = e.function || e.fn; - e.enabled && - sb(n) && - ((t.offsets.popper = Cb(t.offsets.popper)), - (t.offsets.reference = Cb(t.offsets.reference)), - (t = n(t, e))); - }), - t - ); -} -function Fb() { - if (!this.state.isDestroyed) { - var e = { - instance: this, - styles: {}, - arrowStyles: {}, - attributes: {}, - flipped: !1, - offsets: {}, - }; - (e.offsets.reference = Lb(this.state, this.popper, this.reference, this.options.positionFixed)), - (e.placement = Mb( - this.options.placement, - e.offsets.reference, - this.popper, - this.reference, - this.options.modifiers.flip.boundariesElement, - this.options.modifiers.flip.padding - )), - (e.originalPlacement = e.placement), - (e.positionFixed = this.options.positionFixed), - (e.offsets.popper = Db(this.popper, e.offsets.reference, e.placement)), - (e.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'), - (e = zb(this.modifiers, e)), - this.state.isCreated - ? this.options.onUpdate(e) - : ((this.state.isCreated = !0), this.options.onCreate(e)); - } -} -function _b(e, t) { - return e.some(function (e) { - var n = e.name; - return e.enabled && n === t; - }); + ); + }; + + return CSSTransition; +})(U$6.Component); + +CSSTransition$1.defaultProps = { + classNames: '', +}; +CSSTransition$1.propTypes = {}; +var CSSTransition$2 = CSSTransition$1; + +/** + * Given `this.props.children`, return an object mapping key to child. + * + * @param {*} children `this.props.children` + * @return {object} Mapping of key to child + */ + +function getChildMapping(children, mapFn) { + var mapper = function mapper(child) { + return mapFn && reactExports.isValidElement(child) ? mapFn(child) : child; + }; + + var result = Object.create(null); + if (children) + reactExports.Children.map(children, function (c) { + return c; + }).forEach(function (child) { + // run the map function here instead so that the key is the computed one + result[child.key] = mapper(child); + }); + return result; } -function Hb(e) { - for ( - var t = [!1, 'ms', 'Webkit', 'Moz', 'O'], n = e.charAt(0).toUpperCase() + e.slice(1), r = 0; - r < t.length; - r++ - ) { - var o = t[r], - a = o ? '' + o + n : e; - if (void 0 !== document.body.style[a]) return a; +/** + * When you're adding or removing children some may be added or removed in the + * same render pass. We want to show *both* since we want to simultaneously + * animate elements in and out. This function takes a previous set of keys + * and a new set of keys and merges them with its best guess of the correct + * ordering. In the future we may expose some of the utilities in + * ReactMultiChild to make this easy, but for now React itself does not + * directly have this concept of the union of prevChildren and nextChildren + * so we implement it here. + * + * @param {object} prev prev children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @param {object} next next children as returned from + * `ReactTransitionChildMapping.getChildMapping()`. + * @return {object} a key set that contains all keys in `prev` and all keys + * in `next` in a reasonable order. + */ + +function mergeChildMappings(prev, next) { + prev = prev || {}; + next = next || {}; + + function getValueForKey(key) { + return key in next ? next[key] : prev[key]; + } // For each key of `next`, the list of keys to insert before that key in + // the combined list + + var nextKeysPending = Object.create(null); + var pendingKeys = []; + + for (var prevKey in prev) { + if (prevKey in next) { + if (pendingKeys.length) { + nextKeysPending[prevKey] = pendingKeys; + pendingKeys = []; + } + } else { + pendingKeys.push(prevKey); + } } - return null; + + var i; + var childMapping = {}; + + for (var nextKey in next) { + if (nextKeysPending[nextKey]) { + for (i = 0; i < nextKeysPending[nextKey].length; i++) { + var pendingNextKey = nextKeysPending[nextKey][i]; + childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); + } + } + + childMapping[nextKey] = getValueForKey(nextKey); + } // Finally, add the keys which didn't appear before any key in `next` + + for (i = 0; i < pendingKeys.length; i++) { + childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); + } + + return childMapping; } -function $b() { - return ( - (this.state.isDestroyed = !0), - _b(this.modifiers, 'applyStyle') && - (this.popper.removeAttribute('x-placement'), - (this.popper.style.position = ''), - (this.popper.style.top = ''), - (this.popper.style.left = ''), - (this.popper.style.right = ''), - (this.popper.style.bottom = ''), - (this.popper.style.willChange = ''), - (this.popper.style[Hb('transform')] = '')), - this.disableEventListeners(), - this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), - this - ); -} -function Bb(e) { - var t = e.ownerDocument; - return t ? t.defaultView : window; -} -function Wb(e, t, n, r) { - var o = 'BODY' === e.nodeName, - a = o ? e.ownerDocument.defaultView : e; - a.addEventListener(t, n, { passive: !0 }), o || Wb(ub(a.parentNode), t, n, r), r.push(a); -} -function Vb(e, t, n, r) { - (n.updateBound = r), Bb(e).addEventListener('resize', n.updateBound, { passive: !0 }); - var o = ub(e); - return ( - Wb(o, 'scroll', n.updateBound, n.scrollParents), - (n.scrollElement = o), - (n.eventsEnabled = !0), - n - ); + +function getProp(child, prop, props) { + return props[prop] != null ? props[prop] : child.props[prop]; } -function Ub() { - this.state.eventsEnabled || - (this.state = Vb(this.reference, this.options, this.state, this.scheduleUpdate)); -} -function qb() { - var e, t; - this.state.eventsEnabled && - (cancelAnimationFrame(this.scheduleUpdate), - (this.state = - ((e = this.reference), - (t = this.state), - Bb(e).removeEventListener('resize', t.updateBound), - t.scrollParents.forEach(function (e) { - e.removeEventListener('scroll', t.updateBound); - }), - (t.updateBound = null), - (t.scrollParents = []), - (t.scrollElement = null), - (t.eventsEnabled = !1), - t))); -} -function Yb(e) { - return '' !== e && !isNaN(parseFloat(e)) && isFinite(e); -} -function Kb(e, t) { - Object.keys(t).forEach(function (n) { - var r = ''; - -1 !== ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(n) && - Yb(t[n]) && - (r = 'px'), - (e.style[n] = t[n] + r); + +function getInitialChildMapping(props, onExited) { + return getChildMapping(props.children, function (child) { + return reactExports.cloneElement(child, { + onExited: onExited.bind(null, child), + in: true, + appear: getProp(child, 'appear', props), + enter: getProp(child, 'enter', props), + exit: getProp(child, 'exit', props), + }); }); } -var Gb = ob && /Firefox/i.test(navigator.userAgent); -function Qb(e, t, n) { - var r = jb(e, function (e) { - return e.name === t; - }), - o = - !!r && - e.some(function (e) { - return e.name === n && e.enabled && e.order < r.order; +function getNextChildMapping(nextProps, prevChildMapping, onExited) { + var nextChildMapping = getChildMapping(nextProps.children); + var children = mergeChildMappings(prevChildMapping, nextChildMapping); + Object.keys(children).forEach(function (key) { + var child = children[key]; + if (!reactExports.isValidElement(child)) return; + var hasPrev = key in prevChildMapping; + var hasNext = key in nextChildMapping; + var prevChild = prevChildMapping[key]; + var isLeaving = reactExports.isValidElement(prevChild) && !prevChild.props.in; // item is new (entering) + + if (hasNext && (!hasPrev || isLeaving)) { + // console.log('entering', key) + children[key] = reactExports.cloneElement(child, { + onExited: onExited.bind(null, child), + in: true, + exit: getProp(child, 'exit', nextProps), + enter: getProp(child, 'enter', nextProps), }); - if (!o) { - var a = '`' + t + '`', - i = '`' + n + '`'; - console.warn( - i + - ' modifier is required by ' + - a + - ' modifier in order to work, be sure to include it before ' + - a + - '!' - ); - } - return o; -} -var Xb = [ - 'auto-start', - 'auto', - 'auto-end', - 'top-start', - 'top', - 'top-end', - 'right-start', - 'right', - 'right-end', - 'bottom-end', - 'bottom', - 'bottom-start', - 'left-end', - 'left', - 'left-start', - ], - Jb = Xb.slice(3); -function Zb(e) { - var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], - n = Jb.indexOf(e), - r = Jb.slice(n + 1).concat(Jb.slice(0, n)); - return t ? r.reverse() : r; -} -var ey = 'flip', - ty = 'clockwise', - ny = 'counterclockwise'; -function ry(e, t, n, r) { - var o = [0, 0], - a = -1 !== ['right', 'left'].indexOf(r), - i = e.split(/(\+|\-)/).map(function (e) { - return e.trim(); - }), - s = i.indexOf( - jb(i, function (e) { - return -1 !== e.search(/,|\s/); - }) - ); - i[s] && - -1 === i[s].indexOf(',') && - console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); - var l = /\s*,\s*|\s+/, - c = - -1 !== s - ? [i.slice(0, s).concat([i[s].split(l)[0]]), [i[s].split(l)[1]].concat(i.slice(s + 1))] - : [i]; - return ( - (c = c.map(function (e, r) { - var o = (1 === r ? !a : a) ? 'height' : 'width', - i = !1; - return e - .reduce(function (e, t) { - return '' === e[e.length - 1] && -1 !== ['+', '-'].indexOf(t) - ? ((e[e.length - 1] = t), (i = !0), e) - : i - ? ((e[e.length - 1] += t), (i = !1), e) - : e.concat(t); - }, []) - .map(function (e) { - return (function (e, t, n, r) { - var o = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), - a = +o[1], - i = o[2]; - if (!a) return e; - if (0 === i.indexOf('%')) { - return (Cb('%p' === i ? n : r)[t] / 100) * a; - } - if ('vh' === i || 'vw' === i) - return ( - (('vh' === i - ? Math.max(document.documentElement.clientHeight, window.innerHeight || 0) - : Math.max(document.documentElement.clientWidth, window.innerWidth || 0)) / - 100) * - a - ); - return a; - })(e, o, t, n); - }); - })), - c.forEach(function (e, t) { - e.forEach(function (n, r) { - Yb(n) && (o[t] += n * ('-' === e[r - 1] ? -1 : 1)); + } else if (!hasNext && hasPrev && !isLeaving) { + // item is old (exiting) + // console.log('leaving', key) + children[key] = reactExports.cloneElement(child, { + in: false, }); - }), - o - ); + } else if (hasNext && hasPrev && reactExports.isValidElement(prevChild)) { + // item hasn't changed transition states + // copy over the last transition props; + // console.log('unchanged', key) + children[key] = reactExports.cloneElement(child, { + onExited: onExited.bind(null, child), + in: prevChild.props.in, + exit: getProp(child, 'exit', nextProps), + enter: getProp(child, 'enter', nextProps), + }); + } + }); + return children; } -var oy = { - shift: { - order: 100, - enabled: !0, - fn: function (e) { - var t = e.placement, - n = t.split('-')[0], - r = t.split('-')[1]; - if (r) { - var o = e.offsets, - a = o.reference, - i = o.popper, - s = -1 !== ['bottom', 'top'].indexOf(n), - l = s ? 'left' : 'top', - c = s ? 'width' : 'height', - u = { start: Eb({}, l, a[l]), end: Eb({}, l, a[l] + a[c] - i[c]) }; - e.offsets.popper = Sb({}, i, u[r]); - } - return e; + +var values = + Object.values || + function (obj) { + return Object.keys(obj).map(function (k) { + return obj[k]; + }); + }; + +var defaultProps$2 = { + component: 'div', + childFactory: function childFactory(child) { + return child; + }, +}; +/** + * The `` component manages a set of transition components + * (`` and ``) in a list. Like with the transition + * components, `` is a state machine for managing the mounting + * and unmounting of components over time. + * + * Consider the example below. As items are removed or added to the TodoList the + * `in` prop is toggled automatically by the ``. + * + * Note that `` does not define any animation behavior! + * Exactly _how_ a list item animates is up to the individual transition + * component. This means you can mix and match animations across different list + * items. + */ + +var TransitionGroup = /*#__PURE__*/ (function (_React$Component) { + _inheritsLoose(TransitionGroup, _React$Component); + + function TransitionGroup(props, context) { + var _this; + + _this = _React$Component.call(this, props, context) || this; + + var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear + + _this.state = { + contextValue: { + isMounting: true, }, - }, - offset: { - order: 200, - enabled: !0, - fn: function (e, t) { - var n = t.offset, - r = e.placement, - o = e.offsets, - a = o.popper, - i = o.reference, - s = r.split('-')[0], - l = void 0; - return ( - (l = Yb(+n) ? [+n, 0] : ry(n, a, i, s)), - 'left' === s - ? ((a.top += l[0]), (a.left -= l[1])) - : 'right' === s - ? ((a.top += l[0]), (a.left += l[1])) - : 'top' === s - ? ((a.left += l[0]), (a.top -= l[1])) - : 'bottom' === s && ((a.left += l[0]), (a.top += l[1])), - (e.popper = a), - e - ); + handleExited: handleExited, + firstRender: true, + }; + return _this; + } + + var _proto = TransitionGroup.prototype; + + _proto.componentDidMount = function componentDidMount() { + this.mounted = true; + this.setState({ + contextValue: { + isMounting: false, + }, + }); + }; + + _proto.componentWillUnmount = function componentWillUnmount() { + this.mounted = false; + }; + + TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { + var prevChildMapping = _ref.children, + handleExited = _ref.handleExited, + firstRender = _ref.firstRender; + return { + children: firstRender + ? getInitialChildMapping(nextProps, handleExited) + : getNextChildMapping(nextProps, prevChildMapping, handleExited), + firstRender: false, + }; + }; // node is `undefined` when user provided `nodeRef` prop + + _proto.handleExited = function handleExited(child, node) { + var currentChildMapping = getChildMapping(this.props.children); + if (child.key in currentChildMapping) return; + + if (child.props.onExited) { + child.props.onExited(node); + } + + if (this.mounted) { + this.setState(function (state) { + var children = _extends$V({}, state.children); + + delete children[child.key]; + return { + children: children, + }; + }); + } + }; + + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.component, + childFactory = _this$props.childFactory, + props = _objectWithoutPropertiesLoose$1(_this$props, ['component', 'childFactory']); + + var contextValue = this.state.contextValue; + var children = values(this.state.children).map(childFactory); + delete props.appear; + delete props.enter; + delete props.exit; + + if (Component === null) { + return /*#__PURE__*/ U$6.createElement( + TransitionGroupContext.Provider, + { + value: contextValue, + }, + children + ); + } + + return /*#__PURE__*/ U$6.createElement( + TransitionGroupContext.Provider, + { + value: contextValue, }, - offset: 0, + /*#__PURE__*/ U$6.createElement(Component, props, children) + ); + }; + + return TransitionGroup; +})(U$6.Component); + +TransitionGroup.propTypes = {}; +TransitionGroup.defaultProps = defaultProps$2; +var TransitionGroup$1 = TransitionGroup; + +/** + * generates a UID factory + * @internal + * @example + * const uid = generateUID(); + * uid(object) = 1; + * uid(object) = 1; + * uid(anotherObject) = 2; + */ +var generateUID$1 = function () { + var counter = 1; + var map = new WeakMap(); + /** + * @borrows {uid} + */ + var uid = function (item, index) { + if (typeof item === 'number' || typeof item === 'string') { + return index ? 'idx-'.concat(index) : 'val-'.concat(item); + } + if (!map.has(item)) { + map.set(item, counter++); + return uid(item); + } + return 'uid' + map.get(item); + }; + return uid; +}; +/** + * @name uid + * returns an UID associated with {item} + * @param {Object} item - object to generate UID for + * @param {Number} index, a fallback index + * @example + * uid(object) == 1; + * uid(object) == 1; + * uid(anotherObject) == 2; + * uid("not object", 42) == 42 + * + * @see {@link useUID} + */ +var uid = generateUID$1(); + +var createSource = function (prefix) { + if (prefix === void 0) { + prefix = ''; + } + return { + value: 1, + prefix: prefix, + uid: generateUID$1(), + }; +}; +var counter = createSource(); +var source = reactExports.createContext(createSource()); +var getId$1 = function (source) { + return source.value++; +}; +var getPrefix = function (source) { + return source ? source.prefix : ''; +}; + +var generateUID = function (context) { + var quartz = context || counter; + var prefix = getPrefix(quartz); + var id = getId$1(quartz); + var uid = prefix + id; + var gen = function (item) { + return uid + quartz.uid(item); + }; + return { uid: uid, gen: gen }; +}; +var useUIDState = function () { + var context = reactExports.useContext(source); + var uid = reactExports.useState(function () { + return generateUID(context); + })[0]; + return uid; +}; +/** + * returns an uid generator + * @see {@link UIDConsumer} + * @see https://github.com/thearnica/react-uid#hooks-168 + * @example + * const uid = useUIDSeed(); + * return ( + * <> + * + * + * {data.map(item =>
...
+ * + * ) + */ +var useUIDSeed = function () { + var gen = useUIDState().gen; + return gen; +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const DEFAULT_TOAST_OPTIONS = { + autoDismiss: 5000, + placement: 'top-end', +}; +const useToast = () => { + const context = reactExports.useContext(ToastContext); + if (context === undefined) { + throw new Error('useToast() must be used within a "ToastProvider"'); + } + const { dispatch, state } = context; + const addToast = reactExports.useCallback( + function (content) { + let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + const mergedOptions = { + ...DEFAULT_TOAST_OPTIONS, + ...options, + }; + const newToast = { + id: mergedOptions.id || uid(content), + content, + options: mergedOptions, + }; + dispatch({ + type: 'ADD_TOAST', + payload: newToast, + }); + return newToast.id; }, - preventOverflow: { - order: 300, - enabled: !0, - fn: function (e, t) { - var n = t.boundariesElement || hb(e.instance.popper); - e.instance.reference === n && (n = hb(n)); - var r = Hb('transform'), - o = e.instance.popper.style, - a = o.top, - i = o.left, - s = o[r]; - (o.top = ''), (o.left = ''), (o[r] = ''); - var l = Nb(e.instance.popper, e.instance.reference, t.padding, n, e.positionFixed); - (o.top = a), (o.left = i), (o[r] = s), (t.boundaries = l); - var c = t.priority, - u = e.offsets.popper, - d = { - primary: function (e) { - var n = u[e]; - return ( - u[e] < l[e] && !t.escapeWithReference && (n = Math.max(u[e], l[e])), Eb({}, e, n) - ); + [dispatch] + ); + const removeToast = reactExports.useCallback( + (id) => { + dispatch({ + type: 'REMOVE_TOAST', + payload: id, + }); + }, + [dispatch] + ); + const updateToast = reactExports.useCallback( + (id, options) => { + dispatch({ + type: 'UPDATE_TOAST', + payload: { + id, + options, + }, + }); + }, + [dispatch] + ); + const removeAllToasts = reactExports.useCallback(() => { + dispatch({ + type: 'REMOVE_ALL_TOASTS', + }); + }, [dispatch]); + return { + addToast, + removeToast, + updateToast, + removeAllToasts, + toasts: state.toasts, + }; +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const Toast = (_ref) => { + let { toast, pauseTimers } = _ref; + const { removeToast } = useToast(); + const { id } = toast; + const { autoDismiss } = toast.options; + const [remainingTime, setRemainingTime] = reactExports.useState(NaN); + const startTimeRef = reactExports.useRef(Date.now()); + const previousRemainingTimeRef = reactExports.useRef(remainingTime); + reactExports.useEffect(() => { + if (typeof autoDismiss === 'number') { + setRemainingTime(autoDismiss); + } else { + setRemainingTime(NaN); + } + }, [autoDismiss]); + reactExports.useEffect(() => { + if (pauseTimers && !isNaN(remainingTime)) { + previousRemainingTimeRef.current = remainingTime - (Date.now() - startTimeRef.current); + setRemainingTime(NaN); + } else if (!pauseTimers && isNaN(remainingTime) && !isNaN(previousRemainingTimeRef.current)) { + setRemainingTime(previousRemainingTimeRef.current); + } + }, [pauseTimers, remainingTime]); + reactExports.useEffect(() => { + let timeout; + if (!isNaN(remainingTime)) { + startTimeRef.current = Date.now(); + timeout = setTimeout(() => { + removeToast(id); + }, remainingTime); + } + return () => { + clearTimeout(timeout); + }; + }, [id, pauseTimers, remainingTime, removeToast]); + const close = reactExports.useCallback(() => { + removeToast(toast.id); + }, [removeToast, toast.id]); + return toast.content({ + close, + }); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const TRANSITION_CLASS = 'garden-toast-transition'; +const DEFAULT_DURATION = '400ms'; +const StyledFadeInTransition = styled.div.withConfig({ + displayName: 'styled__StyledFadeInTransition', + componentId: 'sc-nq0usb-0', +})( + [ + 'transition:opacity ', + ' ease-in 300ms;opacity:', + ';margin-bottom:', + 'px;', + ' &.', + '-enter{transform:translateY( ', + ' );opacity:0;max-height:0;}&.', + '-enter-active{transform:translateY(0);transition:opacity ', + ' ease-in,transform ', + ' cubic-bezier(0.15,0.85,0.35,1.2),max-height ', + ';opacity:1;max-height:500px;}&.', + '-exit{opacity:1;max-height:500px;}&.', + '-exit-active{transition:opacity 550ms ease-out,max-height ', + ' linear 150ms;opacity:0;max-height:0;}', + ], + DEFAULT_DURATION, + (p) => (p.isHidden ? '0 !important' : 1), + (p) => p.theme.space.base * 2, + (p) => p.isHidden && hideVisually(), + TRANSITION_CLASS, + (props) => { + if ( + props.placement === 'bottom-start' || + props.placement === 'bottom' || + props.placement === 'bottom-end' + ) { + return '100px'; + } + return '-100px'; + }, + TRANSITION_CLASS, + DEFAULT_DURATION, + DEFAULT_DURATION, + DEFAULT_DURATION, + TRANSITION_CLASS, + TRANSITION_CLASS, + DEFAULT_DURATION +); +StyledFadeInTransition.defaultProps = { + theme: DEFAULT_THEME, +}; +const placementStyles = (props) => { + const verticalDistance = `${props.theme.space.base * 16}px`; + const horizontalDistance = `${props.theme.space.base * 3}px`; + const topLeftStyles = Ne$1(['top:', ';left:', ';'], verticalDistance, horizontalDistance); + const topStyles = Ne$1(['top:', ';left:50%;transform:translate(-50%,0);'], verticalDistance); + const topRightStyles = Ne$1(['top:', ';right:', ';'], verticalDistance, horizontalDistance); + const bottomLeftStyles = Ne$1(['bottom:', ';left:', ';'], verticalDistance, horizontalDistance); + const bottomStyles = Ne$1( + ['bottom:', ';left:50%;transform:translate(-50%,0);'], + verticalDistance + ); + const bottomRightStyles = Ne$1(['right:', ';bottom:', ';'], horizontalDistance, verticalDistance); + switch (props.toastPlacement) { + case 'top-start': + if (props.theme.rtl) { + return topRightStyles; + } + return topLeftStyles; + case 'top': + return topStyles; + case 'top-end': + if (props.theme.rtl) { + return topLeftStyles; + } + return topRightStyles; + case 'bottom-start': + if (props.theme.rtl) { + return bottomRightStyles; + } + return bottomLeftStyles; + case 'bottom': + return bottomStyles; + case 'bottom-end': + if (props.theme.rtl) { + return bottomLeftStyles; + } + return bottomRightStyles; + default: + return ''; + } +}; +const StyledTransitionContainer = styled.div.withConfig({ + displayName: 'styled__StyledTransitionContainer', + componentId: 'sc-nq0usb-1', +})(['position:fixed;z-index:', ';', ';'], (props) => props.toastZIndex, placementStyles); +StyledTransitionContainer.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const ToastSlot = (_ref) => { + let { toasts, placement, zIndex, limit, ...props } = _ref; + const [pauseTimers, setPauseTimers] = reactExports.useState(false); + const theme = reactExports.useContext(Be$1); + const environment = useDocument(theme); + const handleVisibilityChange = reactExports.useCallback((e) => { + if (e.target.visibilityState === 'visible') { + setPauseTimers(false); + } else { + setPauseTimers(true); + } + }, []); + reactExports.useEffect(() => { + if (environment) { + environment.addEventListener('visibilitychange', handleVisibilityChange); + } + return () => { + if (environment) { + environment.removeEventListener('visibilitychange', handleVisibilityChange); + } + }; + }, [environment, handleVisibilityChange]); + const handleMouseEnter = reactExports.useCallback(() => { + setPauseTimers(true); + }, []); + const handleMouseLeave = reactExports.useCallback(() => { + setPauseTimers(false); + }, []); + const isHidden = reactExports.useCallback( + (index) => { + if (placement === 'bottom' || placement === 'bottom-start' || placement === 'bottom-end') { + return index < toasts.length - limit; + } + return index >= limit; + }, + [limit, placement, toasts.length] + ); + return U$6.createElement( + StyledTransitionContainer, + Object.assign( + { + key: placement, + toastPlacement: placement, + toastZIndex: zIndex, + onMouseEnter: handleMouseEnter, + onMouseLeave: handleMouseLeave, + }, + props + ), + U$6.createElement( + TransitionGroup$1, + null, + toasts.map((toast, index) => { + const transitionRef = U$6.createRef(); + return U$6.createElement( + CSSTransition$2, + { + key: toast.id, + timeout: { + enter: 400, + exit: 550, }, - secondary: function (e) { - var n = 'right' === e ? 'left' : 'top', - r = u[n]; - return ( - u[e] > l[e] && - !t.escapeWithReference && - (r = Math.min(u[n], l[e] - ('right' === e ? u.width : u.height))), - Eb({}, n, r) - ); + unmountOnExit: true, + classNames: TRANSITION_CLASS, + nodeRef: transitionRef, + }, + U$6.createElement( + StyledFadeInTransition, + { + ref: transitionRef, + placement: placement, + isHidden: isHidden(index), }, - }; - return ( - c.forEach(function (e) { - var t = -1 !== ['left', 'top'].indexOf(e) ? 'primary' : 'secondary'; - u = Sb({}, u, d[t](e)); - }), - (e.offsets.popper = u), - e - ); - }, - priority: ['left', 'right', 'top', 'bottom'], - padding: 5, - boundariesElement: 'scrollParent', - }, - keepTogether: { - order: 400, - enabled: !0, - fn: function (e) { - var t = e.offsets, - n = t.popper, - r = t.reference, - o = e.placement.split('-')[0], - a = Math.floor, - i = -1 !== ['top', 'bottom'].indexOf(o), - s = i ? 'right' : 'bottom', - l = i ? 'left' : 'top', - c = i ? 'width' : 'height'; - return ( - n[s] < a(r[l]) && (e.offsets.popper[l] = a(r[l]) - n[c]), - n[l] > a(r[s]) && (e.offsets.popper[l] = a(r[s])), - e + U$6.createElement(Toast, { + toast: toast, + pauseTimers: pauseTimers || isHidden(index), + }) + ) ); - }, + }) + ) + ); +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const ToastProvider = (_ref) => { + let { limit, zIndex, placementProps = {}, children } = _ref; + const [state, dispatch] = reactExports.useReducer(toasterReducer, getInitialState()); + const contextValue = reactExports.useMemo( + () => ({ + state, + dispatch, + }), + [state, dispatch] + ); + const toastsByPlacement = reactExports.useCallback( + (placement) => { + let matchingToasts = state.toasts.filter((toast) => toast.options.placement === placement); + if (placement === 'bottom' || placement === 'bottom-start' || placement === 'bottom-end') { + matchingToasts = matchingToasts.reverse(); + } + return U$6.createElement( + ToastSlot, + Object.assign( + { + placement: placement, + toasts: matchingToasts, + zIndex: zIndex, + limit: limit, + }, + placementProps[placement] + ) + ); }, - arrow: { - order: 500, - enabled: !0, - fn: function (e, t) { - var n; - if (!Qb(e.instance.modifiers, 'arrow', 'keepTogether')) return e; - var r = t.element; - if ('string' == typeof r) { - if (!(r = e.instance.popper.querySelector(r))) return e; - } else if (!e.instance.popper.contains(r)) - return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e; - var o = e.placement.split('-')[0], - a = e.offsets, - i = a.popper, - s = a.reference, - l = -1 !== ['left', 'right'].indexOf(o), - c = l ? 'height' : 'width', - u = l ? 'Top' : 'Left', - d = u.toLowerCase(), - p = l ? 'left' : 'top', - f = l ? 'bottom' : 'right', - m = Rb(r)[c]; - s[f] - m < i[d] && (e.offsets.popper[d] -= i[d] - (s[f] - m)), - s[d] + m > i[f] && (e.offsets.popper[d] += s[d] + m - i[f]), - (e.offsets.popper = Cb(e.offsets.popper)); - var h = s[d] + s[c] / 2 - m / 2, - g = lb(e.instance.popper), - v = parseFloat(g['margin' + u]), - b = parseFloat(g['border' + u + 'Width']), - y = h - e.offsets.popper[d] - v - b; - return ( - (y = Math.max(Math.min(i[c] - m, y), 0)), - (e.arrowElement = r), - (e.offsets.arrow = (Eb((n = {}), d, Math.round(y)), Eb(n, p, ''), n)), - e - ); - }, - element: '[x-arrow]', + [limit, state.toasts, zIndex, placementProps] + ); + return U$6.createElement( + ToastContext.Provider, + { + value: contextValue, }, - flip: { - order: 600, - enabled: !0, - fn: function (e, t) { - if (_b(e.instance.modifiers, 'inner')) return e; - if (e.flipped && e.placement === e.originalPlacement) return e; - var n = Nb( - e.instance.popper, - e.instance.reference, - t.padding, - t.boundariesElement, - e.positionFixed - ), - r = e.placement.split('-')[0], - o = Ab(r), - a = e.placement.split('-')[1] || '', - i = []; - switch (t.behavior) { - case ey: - i = [r, o]; - break; - case ty: - i = Zb(r); - break; - case ny: - i = Zb(r, !0); - break; - default: - i = t.behavior; - } - return ( - i.forEach(function (s, l) { - if (r !== s || i.length === l + 1) return e; - (r = e.placement.split('-')[0]), (o = Ab(r)); - var c = e.offsets.popper, - u = e.offsets.reference, - d = Math.floor, - p = - ('left' === r && d(c.right) > d(u.left)) || - ('right' === r && d(c.left) < d(u.right)) || - ('top' === r && d(c.bottom) > d(u.top)) || - ('bottom' === r && d(c.top) < d(u.bottom)), - f = d(c.left) < d(n.left), - m = d(c.right) > d(n.right), - h = d(c.top) < d(n.top), - g = d(c.bottom) > d(n.bottom), - v = - ('left' === r && f) || - ('right' === r && m) || - ('top' === r && h) || - ('bottom' === r && g), - b = -1 !== ['top', 'bottom'].indexOf(r), - y = - !!t.flipVariations && - ((b && 'start' === a && f) || - (b && 'end' === a && m) || - (!b && 'start' === a && h) || - (!b && 'end' === a && g)), - w = - !!t.flipVariationsByContent && - ((b && 'start' === a && m) || - (b && 'end' === a && f) || - (!b && 'start' === a && g) || - (!b && 'end' === a && h)), - x = y || w; - (p || v || x) && - ((e.flipped = !0), - (p || v) && (r = i[l + 1]), - x && - (a = (function (e) { - return 'end' === e ? 'start' : 'start' === e ? 'end' : e; - })(a)), - (e.placement = r + (a ? '-' + a : '')), - (e.offsets.popper = Sb( - {}, - e.offsets.popper, - Db(e.instance.popper, e.offsets.reference, e.placement) - )), - (e = zb(e.instance.modifiers, e, 'flip'))); - }), - e - ); - }, - behavior: 'flip', - padding: 5, - boundariesElement: 'viewport', - flipVariations: !1, - flipVariationsByContent: !1, + toastsByPlacement('top-start'), + toastsByPlacement('top'), + toastsByPlacement('top-end'), + children, + toastsByPlacement('bottom-start'), + toastsByPlacement('bottom'), + toastsByPlacement('bottom-end') + ); +}; +ToastProvider.displayName = 'ToastProvider'; +ToastProvider.defaultProps = { + limit: 4, +}; +ToastProvider.propTypes = { + limit: PropTypes.number, + zIndex: PropTypes.number, + placementProps: PropTypes.object, +}; + +const ModalContainerContext = reactExports.createContext(null); + +// z-index needs to be higher than the z-index of the navbar, +const ModalContainer = styled.div` + z-index: 2147483647; + position: fixed; +`; +function ModalContainerProvider({ children }) { + const [container, setContainer] = reactExports.useState(); + const containerRefCallback = (element) => { + setContainer(element); + }; + return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { + children: [ + jsxRuntimeExports.jsx(ModalContainer, { ref: containerRefCallback }), + container && + jsxRuntimeExports.jsx(ModalContainerContext.Provider, { + value: container, + children: children, + }), + ], + }); +} + +function ThemeProviders({ theme, children }) { + return jsxRuntimeExports.jsx(ThemeProvider, { + theme: theme, + children: jsxRuntimeExports.jsx(ToastProvider, { + zIndex: 2147483647, + children: jsxRuntimeExports.jsx(ModalContainerProvider, { children: children }), + }), + }); +} + +function useModalContainer() { + const modalContainer = reactExports.useContext(ModalContainerContext); + if (modalContainer === null) { + throw new Error('useModalContainer should be used inside a ModalContainerProvider'); + } + return modalContainer; +} + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const useField = (_ref) => { + let { idPrefix, hasHint, hasMessage } = _ref; + const prefix = useId(idPrefix); + const inputId = `${prefix}--input`; + const labelId = `${prefix}--label`; + const hintId = `${prefix}--hint`; + const messageId = `${prefix}--message`; + const getLabelProps = reactExports.useCallback( + function (_temp) { + let { id = labelId, htmlFor = inputId, ...other } = _temp === void 0 ? {} : _temp; + return { + 'data-garden-container-id': 'containers.field.label', + 'data-garden-container-version': '3.0.19', + id, + htmlFor, + ...other, + }; }, - inner: { - order: 700, - enabled: !1, - fn: function (e) { - var t = e.placement, - n = t.split('-')[0], - r = e.offsets, - o = r.popper, - a = r.reference, - i = -1 !== ['left', 'right'].indexOf(n), - s = -1 === ['top', 'left'].indexOf(n); - return ( - (o[i ? 'left' : 'top'] = a[n] - (s ? o[i ? 'width' : 'height'] : 0)), - (e.placement = Ab(t)), - (e.offsets.popper = Cb(o)), - e - ); - }, + [labelId, inputId] + ); + const getHintProps = reactExports.useCallback( + function (_temp2) { + let { id = hintId, ...other } = _temp2 === void 0 ? {} : _temp2; + return { + 'data-garden-container-id': 'containers.field.hint', + 'data-garden-container-version': '3.0.19', + id, + ...other, + }; }, - hide: { - order: 800, - enabled: !0, - fn: function (e) { - if (!Qb(e.instance.modifiers, 'hide', 'preventOverflow')) return e; - var t = e.offsets.reference, - n = jb(e.instance.modifiers, function (e) { - return 'preventOverflow' === e.name; - }).boundaries; - if (t.bottom < n.top || t.left > n.right || t.top > n.bottom || t.right < n.left) { - if (!0 === e.hide) return e; - (e.hide = !0), (e.attributes['x-out-of-boundaries'] = ''); - } else { - if (!1 === e.hide) return e; - (e.hide = !1), (e.attributes['x-out-of-boundaries'] = !1); + [hintId] + ); + const getInputProps = reactExports.useCallback( + function (_temp3) { + let { + id = inputId, + 'aria-describedby': ariaDescribedBy, + ...other + } = _temp3 === void 0 ? {} : _temp3; + const getDescribedBy = () => { + if (ariaDescribedBy) { + return ariaDescribedBy; } - return e; - }, - }, - computeStyle: { - order: 850, - enabled: !0, - fn: function (e, t) { - var n = t.x, - r = t.y, - o = e.offsets.popper, - a = jb(e.instance.modifiers, function (e) { - return 'applyStyle' === e.name; - }).gpuAcceleration; - void 0 !== a && - console.warn( - 'WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!' - ); - var i = void 0 !== a ? a : t.gpuAcceleration, - s = hb(e.instance.popper), - l = Ob(s), - c = { position: o.position }, - u = (function (e, t) { - var n = e.offsets, - r = n.popper, - o = n.reference, - a = Math.round, - i = Math.floor, - s = function (e) { - return e; - }, - l = a(o.width), - c = a(r.width), - u = -1 !== ['left', 'right'].indexOf(e.placement), - d = -1 !== e.placement.indexOf('-'), - p = t ? (u || d || l % 2 == c % 2 ? a : i) : s, - f = t ? a : s; - return { - left: p(l % 2 == 1 && c % 2 == 1 && !d && t ? r.left - 1 : r.left), - top: f(r.top), - bottom: f(r.bottom), - right: p(r.right), - }; - })(e, window.devicePixelRatio < 2 || !Gb), - d = 'bottom' === n ? 'top' : 'bottom', - p = 'right' === r ? 'left' : 'right', - f = Hb('transform'), - m = void 0, - h = void 0; - if ( - ((h = - 'bottom' === d - ? 'HTML' === s.nodeName - ? -s.clientHeight + u.bottom - : -l.height + u.bottom - : u.top), - (m = - 'right' === p - ? 'HTML' === s.nodeName - ? -s.clientWidth + u.right - : -l.width + u.right - : u.left), - i && f) - ) - (c[f] = 'translate3d(' + m + 'px, ' + h + 'px, 0)'), - (c[d] = 0), - (c[p] = 0), - (c.willChange = 'transform'); - else { - var g = 'bottom' === d ? -1 : 1, - v = 'right' === p ? -1 : 1; - (c[d] = h * g), (c[p] = m * v), (c.willChange = d + ', ' + p); + const describedBy = []; + if (hasHint) { + describedBy.push(hintId); } - var b = { 'x-placement': e.placement }; - return ( - (e.attributes = Sb({}, b, e.attributes)), - (e.styles = Sb({}, c, e.styles)), - (e.arrowStyles = Sb({}, e.offsets.arrow, e.arrowStyles)), - e - ); - }, - gpuAcceleration: !0, - x: 'bottom', - y: 'right', + if (hasMessage) { + describedBy.push(messageId); + } + return describedBy.length > 0 ? describedBy.join(' ') : undefined; + }; + return { + 'data-garden-container-id': 'containers.field.input', + 'data-garden-container-version': '3.0.19', + id, + 'aria-labelledby': labelId, + 'aria-describedby': getDescribedBy(), + ...other, + }; }, - applyStyle: { - order: 900, - enabled: !0, - fn: function (e) { - var t, n; - return ( - Kb(e.instance.popper, e.styles), - (t = e.instance.popper), - (n = e.attributes), - Object.keys(n).forEach(function (e) { - !1 !== n[e] ? t.setAttribute(e, n[e]) : t.removeAttribute(e); - }), - e.arrowElement && Object.keys(e.arrowStyles).length && Kb(e.arrowElement, e.arrowStyles), - e - ); - }, - onLoad: function (e, t, n, r, o) { - var a = Lb(o, t, e, n.positionFixed), - i = Mb( - n.placement, - a, - t, - e, - n.modifiers.flip.boundariesElement, - n.modifiers.flip.padding - ); - return ( - t.setAttribute('x-placement', i), - Kb(t, { position: n.positionFixed ? 'fixed' : 'absolute' }), - n - ); - }, - gpuAcceleration: void 0, + [inputId, labelId, hintId, messageId, hasHint, hasMessage] + ); + const getMessageProps = reactExports.useCallback( + function (_temp4) { + let { id = messageId, role = 'alert', ...other } = _temp4 === void 0 ? {} : _temp4; + return { + 'data-garden-container-id': 'containers.field.message', + 'data-garden-container-version': '3.0.19', + role: role === null ? undefined : role, + id, + ...other, + }; }, - }, - ay = { - placement: 'bottom', - positionFixed: !1, - eventsEnabled: !0, - removeOnDestroy: !1, - onCreate: function () {}, - onUpdate: function () {}, - modifiers: oy, - }, - iy = (function () { - function e(t, n) { - var r = this, - o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; - !(function (e, t) { - if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); - })(this, e), - (this.scheduleUpdate = function () { - return requestAnimationFrame(r.update); - }), - (this.update = ib(this.update.bind(this))), - (this.options = Sb({}, e.Defaults, o)), - (this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }), - (this.reference = t && t.jquery ? t[0] : t), - (this.popper = n && n.jquery ? n[0] : n), - (this.options.modifiers = {}), - Object.keys(Sb({}, e.Defaults.modifiers, o.modifiers)).forEach(function (t) { - r.options.modifiers[t] = Sb( - {}, - e.Defaults.modifiers[t] || {}, - o.modifiers ? o.modifiers[t] : {} - ); - }), - (this.modifiers = Object.keys(this.options.modifiers) - .map(function (e) { - return Sb({ name: e }, r.options.modifiers[e]); - }) - .sort(function (e, t) { - return e.order - t.order; - })), - this.modifiers.forEach(function (e) { - e.enabled && sb(e.onLoad) && e.onLoad(r.reference, r.popper, r.options, e, r.state); - }), - this.update(); - var a = this.options.eventsEnabled; - a && this.enableEventListeners(), (this.state.eventsEnabled = a); - } - return ( - kb(e, [ - { - key: 'update', - value: function () { - return Fb.call(this); - }, - }, - { - key: 'destroy', - value: function () { - return $b.call(this); - }, - }, - { - key: 'enableEventListeners', - value: function () { - return Ub.call(this); - }, - }, - { - key: 'disableEventListeners', - value: function () { - return qb.call(this); - }, - }, - ]), - e - ); - })(); -(iy.Utils = ('undefined' != typeof window ? window : global).PopperUtils), - (iy.placements = Xb), - (iy.Defaults = ay); -var sy = iy, - ly = { exports: {} }, - cy = { exports: {} }, - uy = '__global_unique_id__', - dy = function () { - return (t[uy] = (t[uy] || 0) + 1); - }, - py = function () {}, - fy = n(py); -!(function (e, t) { - t.__esModule = !0; - var n = c; - a(n); - var r = a(On), - o = a(dy); - function a(e) { - return e && e.__esModule ? e : { default: e }; - } - function i(e, t) { - if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function'); - } - function s(e, t) { - if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !t || ('object' != typeof t && 'function' != typeof t) ? e : t; - } - function l(e, t) { - if ('function' != typeof t && null !== t) - throw new TypeError('Super expression must either be null or a function, not ' + typeof t); - (e.prototype = Object.create(t && t.prototype, { - constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 }, - })), - t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); - } - a(py); - var u = 1073741823; - (t.default = function (e, t) { - var a, - c, - d = '__create-react-context-' + (0, o.default)() + '__', - p = (function (e) { - function n() { - var t, r, o, a; - i(this, n); - for (var l = arguments.length, c = Array(l), u = 0; u < l; u++) c[u] = arguments[u]; - return ( - (t = r = s(this, e.call.apply(e, [this].concat(c)))), - (r.emitter = - ((o = r.props.value), - (a = []), - { - on: function (e) { - a.push(e); - }, - off: function (e) { - a = a.filter(function (t) { - return t !== e; - }); - }, - get: function () { - return o; - }, - set: function (e, t) { - (o = e), - a.forEach(function (e) { - return e(o, t); - }); - }, - })), - s(r, t) - ); - } - return ( - l(n, e), - (n.prototype.getChildContext = function () { - var e; - return ((e = {})[d] = this.emitter), e; - }), - (n.prototype.componentWillReceiveProps = function (e) { - if (this.props.value !== e.value) { - var n = this.props.value, - r = e.value, - o = void 0; - !(function (e, t) { - return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t; - })(n, r) - ? ((o = 'function' == typeof t ? t(n, r) : u), - 0 !== (o |= 0) && this.emitter.set(e.value, o)) - : (o = 0); - } - }), - (n.prototype.render = function () { - return this.props.children; - }), - n - ); - })(n.Component); - p.childContextTypes = (((a = {})[d] = r.default.object.isRequired), a); - var f = (function (t) { - function n() { - var e, r; - i(this, n); - for (var o = arguments.length, a = Array(o), l = 0; l < o; l++) a[l] = arguments[l]; - return ( - (e = r = s(this, t.call.apply(t, [this].concat(a)))), - (r.state = { value: r.getValue() }), - (r.onUpdate = function (e, t) { - (0 | r.observedBits) & t && r.setState({ value: r.getValue() }); - }), - s(r, e) - ); - } - return ( - l(n, t), - (n.prototype.componentWillReceiveProps = function (e) { - var t = e.observedBits; - this.observedBits = null == t ? u : t; - }), - (n.prototype.componentDidMount = function () { - this.context[d] && this.context[d].on(this.onUpdate); - var e = this.props.observedBits; - this.observedBits = null == e ? u : e; - }), - (n.prototype.componentWillUnmount = function () { - this.context[d] && this.context[d].off(this.onUpdate); - }), - (n.prototype.getValue = function () { - return this.context[d] ? this.context[d].get() : e; - }), - (n.prototype.render = function () { - return ((e = this.props.children), Array.isArray(e) ? e[0] : e)(this.state.value); - var e; - }), - n - ); - })(n.Component); - return (f.contextTypes = (((c = {})[d] = r.default.object), c)), { Provider: p, Consumer: f }; - }), - (e.exports = t.default); -})(cy, cy.exports); -var my = cy.exports; -!(function (e, t) { - t.__esModule = !0; - var n = o(c), - r = o(my); - function o(e) { - return e && e.__esModule ? e : { default: e }; - } - (t.default = n.default.createContext || r.default), (e.exports = t.default); -})(ly, ly.exports); -var hy = n(ly.exports), - gy = hy(), - vy = hy(), - by = (function (e) { - function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; - return ( - Gm(nr(nr((t = e.call.apply(e, [this].concat(r)) || this))), 'referenceNode', void 0), - Gm(nr(nr(t)), 'setReferenceNode', function (e) { - e && t.referenceNode !== e && ((t.referenceNode = e), t.forceUpdate()); - }), - t - ); - } - or(t, e); - var n = t.prototype; - return ( - (n.componentWillUnmount = function () { - this.referenceNode = null; - }), - (n.render = function () { - return c.createElement( - gy.Provider, - { value: this.referenceNode }, - c.createElement(vy.Provider, { value: this.setReferenceNode }, this.props.children) - ); - }), - t - ); - })(c.Component), - yy = function (e) { - return Array.isArray(e) ? e[0] : e; - }, - wy = function (e) { - if ('function' == typeof e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) - n[r - 1] = arguments[r]; - return e.apply(void 0, n); - } - }, - xy = function (e, t) { - if ('function' == typeof e) return wy(e, t); - null != e && (e.current = t); - }, - ky = { position: 'absolute', top: 0, left: 0, opacity: 0, pointerEvents: 'none' }, - Ey = {}, - Sy = (function (e) { - function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; - return ( - Gm(nr(nr((t = e.call.apply(e, [this].concat(r)) || this))), 'state', { - data: void 0, - placement: void 0, - }), - Gm(nr(nr(t)), 'popperInstance', void 0), - Gm(nr(nr(t)), 'popperNode', null), - Gm(nr(nr(t)), 'arrowNode', null), - Gm(nr(nr(t)), 'setPopperNode', function (e) { - e && - t.popperNode !== e && - (xy(t.props.innerRef, e), (t.popperNode = e), t.updatePopperInstance()); - }), - Gm(nr(nr(t)), 'setArrowNode', function (e) { - t.arrowNode = e; - }), - Gm(nr(nr(t)), 'updateStateModifier', { - enabled: !0, - order: 900, - fn: function (e) { - var n = e.placement; - return t.setState({ data: e, placement: n }), e; - }, - }), - Gm(nr(nr(t)), 'getOptions', function () { - return { - placement: t.props.placement, - eventsEnabled: t.props.eventsEnabled, - positionFixed: t.props.positionFixed, - modifiers: tr({}, t.props.modifiers, { - arrow: tr({}, t.props.modifiers && t.props.modifiers.arrow, { - enabled: !!t.arrowNode, - element: t.arrowNode, - }), - applyStyle: { enabled: !1 }, - updateStateModifier: t.updateStateModifier, - }), - }; - }), - Gm(nr(nr(t)), 'getPopperStyle', function () { - return t.popperNode && t.state.data - ? tr({ position: t.state.data.offsets.popper.position }, t.state.data.styles) - : ky; - }), - Gm(nr(nr(t)), 'getPopperPlacement', function () { - return t.state.data ? t.state.placement : void 0; - }), - Gm(nr(nr(t)), 'getArrowStyle', function () { - return t.arrowNode && t.state.data ? t.state.data.arrowStyles : Ey; - }), - Gm(nr(nr(t)), 'getOutOfBoundariesState', function () { - return t.state.data ? t.state.data.hide : void 0; - }), - Gm(nr(nr(t)), 'destroyPopperInstance', function () { - t.popperInstance && (t.popperInstance.destroy(), (t.popperInstance = null)); - }), - Gm(nr(nr(t)), 'updatePopperInstance', function () { - t.destroyPopperInstance(); - var e = nr(nr(t)).popperNode, - n = t.props.referenceElement; - n && e && (t.popperInstance = new sy(n, e, t.getOptions())); - }), - Gm(nr(nr(t)), 'scheduleUpdate', function () { - t.popperInstance && t.popperInstance.scheduleUpdate(); - }), - t - ); - } - or(t, e); - var n = t.prototype; - return ( - (n.componentDidUpdate = function (e, t) { - this.props.placement === e.placement && - this.props.referenceElement === e.referenceElement && - this.props.positionFixed === e.positionFixed && - rb(this.props.modifiers, e.modifiers, { strict: !0 }) - ? this.props.eventsEnabled !== e.eventsEnabled && - this.popperInstance && - (this.props.eventsEnabled - ? this.popperInstance.enableEventListeners() - : this.popperInstance.disableEventListeners()) - : this.updatePopperInstance(), - t.placement !== this.state.placement && this.scheduleUpdate(); - }), - (n.componentWillUnmount = function () { - xy(this.props.innerRef, null), this.destroyPopperInstance(); - }), - (n.render = function () { - return yy(this.props.children)({ - ref: this.setPopperNode, - style: this.getPopperStyle(), - placement: this.getPopperPlacement(), - outOfBoundaries: this.getOutOfBoundariesState(), - scheduleUpdate: this.scheduleUpdate, - arrowProps: { ref: this.setArrowNode, style: this.getArrowStyle() }, - }); - }), - t - ); - })(c.Component); -function Cy(e) { - var t = e.referenceElement, - n = Pa(e, ['referenceElement']); - return c.createElement(gy.Consumer, null, function (e) { - return c.createElement(Sy, tr({ referenceElement: void 0 !== t ? t : e }, n)); - }); -} -Gm(Sy, 'defaultProps', { - placement: 'bottom', - eventsEnabled: !0, - referenceElement: void 0, - positionFixed: !1, -}), - sy.placements; -var Oy = (function (e) { - function t() { - for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; - return ( - Gm(nr(nr((t = e.call.apply(e, [this].concat(r)) || this))), 'refHandler', function (e) { - xy(t.props.innerRef, e), wy(t.props.setReferenceNode, e); - }), - t - ); - } - or(t, e); - var n = t.prototype; - return ( - (n.componentWillUnmount = function () { - xy(this.props.innerRef, null); - }), - (n.render = function () { - return ( - fy( - Boolean(this.props.setReferenceNode), - '`Reference` should not be used outside of a `Manager` component.' - ), - yy(this.props.children)({ ref: this.refHandler }) - ); + [messageId] + ); + return reactExports.useMemo( + () => ({ + getLabelProps, + getHintProps, + getInputProps, + getMessageProps, }), - t - ); -})(c.Component); -function Py(e) { - return c.createElement(vy.Consumer, null, function (t) { - return c.createElement(Oy, tr({ setReferenceNode: t }, e)); - }); -} -function Ty(e) { - return { - auto: 'auto', - top: 'top', - 'top-start': 'top-start', - 'top-end': 'top-end', - bottom: 'bottom', - 'bottom-start': 'bottom-start', - 'bottom-end': 'bottom-end', - end: 'right', - 'end-top': 'right-start', - 'end-bottom': 'right-end', - start: 'left', - 'start-top': 'left-start', - 'start-bottom': 'left-end', - }[e]; -} -const Iy = 'tooltip.paragraph', - Ny = Sn.p - .attrs({ 'data-garden-id': Iy, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledParagraph', componentId: 'sc-wuqkfc-0' })( - ['margin:0;', ';'], - (e) => er(Iy, e) - ); -Ny.defaultProps = { theme: Xn }; -const My = 'tooltip.title', - Ly = Sn.strong - .attrs({ 'data-garden-id': My, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledTitle', componentId: 'sc-vnjcvz-0' })( - ['display:none;margin:0;font-weight:', ';', ';'], - (e) => e.theme.fontWeights.semibold, - (e) => er(My, e) - ); -Ly.defaultProps = { theme: Xn }; -const Ry = 'tooltip.tooltip', - Ay = Sn.div - .attrs({ 'data-garden-id': Ry, 'data-garden-version': '8.76.8' }) - .withConfig({ displayName: 'StyledTooltip', componentId: 'sc-gzzjq4-0' })( - [ - 'display:inline-block;box-sizing:border-box;direction:', - ';text-align:', - ';font-weight:', - ';', - ";&[aria-hidden='true']{display:none;}", - ';', - ';', - ], - (e) => e.theme.rtl && 'rtl', - (e) => (e.theme.rtl ? 'right' : 'left'), - (e) => e.theme.fontWeights.regular, - (e) => - ((e) => { - let t, - n, - r, - o, - a, - i, - s, - { theme: l, size: c, type: u, placement: d, hasArrow: p } = e, - f = 1.5 * l.space.base + 'px', - m = l.borderRadii.sm, - h = '0 1em', - g = 'nowrap', - v = Do(5 * l.space.base, l.fontSizes.sm), - b = l.fontSizes.sm; - return ( - 'small' !== c && - ((m = l.borderRadii.md), (n = 'break-word'), (g = 'normal'), (a = 'break-word')), - 'extra-large' === c - ? ((h = 10 * l.space.base + 'px'), - (t = '460px'), - (v = Do(5 * l.space.base, l.fontSizes.md)), - (o = 2.5 * l.space.base + 'px')) - : 'large' === c - ? ((h = 5 * l.space.base + 'px'), - (t = '270px'), - (v = Do(5 * l.space.base, l.fontSizes.md)), - (o = 2 * l.space.base + 'px')) - : 'medium' === c && - ((h = '1em'), (t = '140px'), (v = Do(4 * l.space.base, l.fontSizes.sm))), - ('extra-large' !== c && 'large' !== c) || ((b = l.fontSizes.md), (r = 'block')), - p && - ('small' === c || 'medium' === c - ? ((i = f), (s = 'dark' === u ? '1px' : '0')) - : ((s = 'dark' === u ? '2px' : '1px'), - 'large' === c - ? ((f = 2 * l.space.base + 'px'), (i = f)) - : 'extra-large' === c && - ((f = 3 * l.space.base + 'px'), (i = 2.5 * l.space.base + 'px')))), - rn( - [ - 'margin:', - ';border-radius:', - ';padding:', - ';max-width:', - ';line-height:', - ';word-wrap:', - ';white-space:', - ';font-size:', - ';overflow-wrap:', - ';', - ';', - '{margin-top:', - ';}', - '{display:', - ';}', - ], - f, - m, - h, - t, - v, - a, - g, - b, - n, - p && - Fo( - { - top: 'bottom', - 'top-start': 'bottom-left', - 'top-end': 'bottom-right', - right: 'left', - 'right-start': 'left-top', - 'right-end': 'left-bottom', - bottom: 'top', - 'bottom-start': 'top-left', - 'bottom-end': 'top-right', - left: 'right', - 'left-start': 'right-top', - 'left-end': 'right-bottom', - }[d] || 'top', - { size: i, inset: s } - ), - Ny, - o, - Ly, - r - ) - ); - })(e), - (e) => { - let t, - n, - { theme: r, type: o } = e, - a = r.shadows.lg( - `${r.space.base}px`, - 2 * r.space.base + 'px', - Ro('chromeHue', 600, r, 0.15) - ), - i = Ro('chromeHue', 700, r), - s = Ro('background', 600, r); - return ( - 'light' === o && - ((a = r.shadows.lg( - 3 * r.space.base + 'px', - 5 * r.space.base + 'px', - Ro('chromeHue', 600, r, 0.15) - )), - (t = `${r.borders.sm} ${Ro('neutralHue', 300, r)}`), - (i = Ro('background', 600, r)), - (s = Ro('neutralHue', 700, r)), - (n = Ro('foreground', 600, r))), - rn( - ['border:', ';box-shadow:', ';background-color:', ';color:', ';', '{color:', ';}'], - t, - a, - i, - s, - Ly, - n - ) - ); - }, - (e) => er(Ry, e) + [getLabelProps, getHintProps, getInputProps, getMessageProps] ); -Ay.defaultProps = { theme: Xn }; -const Dy = Sn.div.withConfig({ displayName: 'StyledTooltipWrapper', componentId: 'sc-1b7q9q6-0' })( +}; +({ + children: PropTypes.func, + render: PropTypes.func, + idPrefix: PropTypes.string, + hasHint: PropTypes.bool, + hasMessage: PropTypes.bool, +}); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const FieldContext$2 = reactExports.createContext(undefined); +const useFieldContext$2 = () => { + const fieldContext = reactExports.useContext(FieldContext$2); + return fieldContext; +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1R = 'forms.field'; +const StyledField$1 = styled.div + .attrs({ + 'data-garden-id': COMPONENT_ID$1R, + 'data-garden-version': '8.76.2', + }) + .withConfig({ + displayName: 'StyledField', + componentId: 'sc-12gzfsu-0', + })( + ['position:relative;direction:', ';margin:0;border:0;padding:0;font-size:0;', ';'], + (props) => (props.theme.rtl ? 'rtl' : 'ltr'), + (props) => retrieveComponentStyles(COMPONENT_ID$1R, props) +); +StyledField$1.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1Q = 'forms.input_label'; +const StyledLabel$2 = styled.label + .attrs((props) => ({ + 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$1Q, + 'data-garden-version': props['data-garden-version'] || '8.76.2', + })) + .withConfig({ + displayName: 'StyledLabel', + componentId: 'sc-2utmsz-0', + })( [ - 'transition:opacity 10ms;opacity:1;z-index:', - ";&[aria-hidden='true']{visibility:hidden;opacity:0;}", + 'direction:', + ';vertical-align:middle;line-height:', + ';color:', + ';font-size:', + ';font-weight:', + ';&[hidden]{display:', + ';vertical-align:', + ';text-indent:', + ';font-size:', + ';', + ';}', + ';', ], - (e) => e.zIndex + (props) => props.theme.rtl && 'rtl', + (props) => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), + (props) => getColorV8('foreground', 600, props.theme), + (props) => props.theme.fontSizes.md, + (props) => (props.isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold), + (props) => (props.isRadio ? 'inline-block' : 'inline'), + (props) => props.isRadio && 'top', + (props) => props.isRadio && '-100%', + (props) => props.isRadio && '0', + (props) => !props.isRadio && hideVisually(), + (props) => retrieveComponentStyles(COMPONENT_ID$1Q, props) ); -Dy.defaultProps = { theme: Xn }; -const jy = [ - 'auto', - 'top', - 'top-start', - 'top-end', - 'bottom', - 'bottom-start', - 'bottom-end', - 'end', - 'end-top', - 'end-bottom', - 'start', - 'start-top', - 'start-bottom', +StyledLabel$2.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +const COMPONENT_ID$1P = 'forms.input_hint'; +const StyledHint$2 = styled.div + .attrs((props) => ({ + 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$1P, + 'data-garden-version': props['data-garden-version'] || '8.76.2', + })) + .withConfig({ + displayName: 'StyledHint', + componentId: 'sc-17c2wu8-0', + })( + [ + 'direction:', + ';display:block;vertical-align:middle;line-height:', + ';color:', + ';font-size:', + ';', + ';', ], - zy = (e) => { - let { - id: t, - delayMS: n, - isInitialVisible: r, - content: o, - refKey: a, - placement: i, - eventsEnabled: s, - popperModifiers: l, - children: d, - hasArrow: p, - size: f, - type: m, - appendToNode: h, - zIndex: g, - isVisible: v, - ...b - } = e; - const { rtl: y } = c.useContext(mn), - w = c.useRef(), + (props) => props.theme.rtl && 'rtl', + (props) => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), + (props) => getColorV8('neutralHue', 600, props.theme), + (props) => props.theme.fontSizes.md, + (props) => retrieveComponentStyles(COMPONENT_ID$1P, props) +); +StyledHint$2.defaultProps = { + theme: DEFAULT_THEME, +}; + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _g$6, _circle$b; +function _extends$P() { + _extends$P = 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$P.apply(this, arguments); +} +var SvgAlertErrorStroke$2 = function SvgAlertErrorStroke(props) { + return /*#__PURE__*/ reactExports.createElement( + 'svg', + _extends$P( { - isVisible: k, - getTooltipProps: E, - getTriggerProps: S, - openTooltip: C, - closeTooltip: O, - } = qm({ id: t, delayMilliseconds: n, isVisible: r }), - P = jn(v, k); - c.useEffect(() => { - P && w.current && w.current(); - }, [P, o]); - const T = y - ? (function (e) { - const t = Ty(e); - return ( - { - left: 'right', - 'left-start': 'right-start', - 'left-end': 'right-end', - 'top-start': 'top-end', - 'top-end': 'top-start', - right: 'left', - 'right-start': 'left-start', - 'right-end': 'left-end', - 'bottom-start': 'bottom-end', - 'bottom-end': 'bottom-start', - }[t] || t - ); - })(i) - : Ty(i), - I = u.Children.only(d), - N = { preventOverflow: { boundariesElement: 'window' }, ...l }; - return u.createElement( - by, - null, - u.createElement(Py, null, (e) => { - let { ref: t } = e; - return c.cloneElement(I, S({ ...I.props, [a]: na([t, I.ref ? I.ref : null]) })); - }), - u.createElement(Cy, { placement: T, eventsEnabled: P && s, modifiers: N }, (e) => { - let { ref: t, style: n, scheduleUpdate: r, placement: a } = e; - w.current = r; - const { onFocus: i, onBlur: s, ...l } = b; - let c = f; - void 0 === c && (c = 'dark' === m ? 'small' : 'large'); - const d = { - hasArrow: p, - placement: a, - size: c, - onFocus: Dn(i, () => { - C(); - }), - onBlur: Dn(s, () => { - O(0); - }), - 'aria-hidden': !P, - type: m, - ...l, - }, - v = u.createElement( - Dy, - { ref: P ? t : null, style: n, zIndex: g, 'aria-hidden': !P }, - u.createElement(Ay, E(d), o) - ); - return h ? x.createPortal(v, h) : v; - }) - ); - }; -(zy.displayName = 'Tooltip'), - (zy.propTypes = { - appendToNode: Pn.any, - hasArrow: Pn.bool, - delayMS: Pn.number, - eventsEnabled: Pn.bool, - id: Pn.string, - content: Pn.node.isRequired, - placement: Pn.oneOf(jy), - popperModifiers: Pn.any, - size: Pn.oneOf(['small', 'medium', 'large', 'extra-large']), - type: Pn.oneOf(['light', 'dark']), - zIndex: Pn.oneOfType([Pn.number, Pn.string]), - isInitialVisible: Pn.bool, - refKey: Pn.string, - }), - (zy.defaultProps = { - hasArrow: !0, - eventsEnabled: !0, - type: 'dark', - placement: 'top', - delayMS: 500, - refKey: 'ref', - }); -const Fy = Cf.Avatar; -Fy.displayName = 'Tag.Avatar'; -const _y = Fy, - Hy = c.forwardRef((e, t) => { - let { children: n, option: r, removeLabel: o, tooltipZIndex: a, ...i } = e; - const { getTagProps: s, isCompact: l, removeSelection: d } = xp(), - p = r.label || Wm(r), - f = _o($y, i, 'aria-label', `${p}, press delete or backspace to remove`, !r.disabled), - m = s({ option: r, 'aria-label': f }), - h = c.useContext(mn) || Xn, - g = Jn(h), - v = () => d(r.value); - return u.createElement( - Pf, - Object.assign({ 'aria-disabled': r.disabled, tabIndex: r.disabled ? void 0 : 0 }, m, i, { - size: l ? 'medium' : 'large', - ref: t, - }), - n || u.createElement('span', null, p), - !r.disabled && - (o - ? u.createElement( - zy, - { appendToNode: g?.body, content: o, zIndex: a }, - u.createElement(Pf.Close, { 'aria-label': o, onClick: v }) - ) - : u.createElement(Pf.Close, { onClick: v })) - ); - }); -(Hy.displayName = 'Tag'), - (Hy.propTypes = { hue: Pn.string, isPill: Pn.bool, isRegular: Pn.bool, removeLabel: Pn.string }); -const $y = Hy; -$y.Avatar = _y; -const By = (e) => { - let { - children: t, - isDisabled: n, - isExpanded: r, - listboxZIndex: o, - maxTags: a, - optionTagProps: i, - selection: s, - } = e; - return u.createElement( - u.Fragment, - null, - s.map((e, t) => { - const s = Wm(e), - l = n || e.disabled; - return u.createElement( - $y, - Object.assign( - { - key: s, - hidden: !r && t >= a, - option: { ...e, disabled: l }, - tooltipZIndex: o ? o + 1 : void 0, - }, - i[s] - ) - ); - }), - t + xmlns: 'http://www.w3.org/2000/svg', + width: 16, + height: 16, + focusable: 'false', + viewBox: '0 0 16 16', + 'aria-hidden': 'true', + }, + props + ), + _g$6 || + (_g$6 = /*#__PURE__*/ reactExports.createElement( + 'g', + { + fill: 'none', + stroke: 'currentColor', + }, + /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 8.5, + r: 7, + }), + /*#__PURE__*/ reactExports.createElement('path', { + strokeLinecap: 'round', + d: 'M7.5 4.5V9', + }) + )), + _circle$b || + (_circle$b = /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 12, + r: 1, + fill: 'currentColor', + })) ); }; -By.displayName = 'TagGroup'; -const Wy = 4, - Vy = c.forwardRef((e, t) => { - let { - children: n, - activeIndex: r, - defaultActiveIndex: o, - defaultExpanded: a, - endIcon: i, - focusInset: s, - inputProps: l, - inputValue: d, - isAutocomplete: p, - isBare: f, - isCompact: m, - isDisabled: h, - isEditable: g, - isExpanded: v, - isMultiselectable: b, - listboxAppendToNode: y, - listboxAriaLabel: w, - listboxMaxHeight: x, - listboxMinHeight: k, - listboxZIndex: E, - maxHeight: S, - maxTags: C = Wy, - onChange: O, - placeholder: P, - renderExpandTags: T, - renderValue: I, - selectionValue: N, - startIcon: M, - validation: L, - ...R - } = e; - const { - hasHint: A, - hasMessage: D, - labelProps: j, - setLabelProps: z, - hintProps: F, - setHintProps: _, - messageProps: H, - setMessageProps: $, - } = Ep(), - [B, W] = c.useState(!0), - [V, U] = c.useState(!1), - [q, Y] = c.useState(!1), - [K, G] = c.useState({}), - Q = c.useMemo(() => { - const e = {}, - t = Um(n, e); - return b && G((t) => ({ ...t, ...e })), t; - }, [n, b]), - X = c.useRef(null), - J = c.useRef(null), - Z = c.useRef(null), - ee = ((e) => { - const [t, n] = c.useState(); - return ( - c.useEffect(() => { - e && e.window ? n(e.window) : n(window); - }, [e]), - t - ); - })(c.useContext(mn) || Xn), - { - activeValue: te, - inputValue: ne, - isExpanded: re, - getTriggerProps: oe, - getHintProps: ae, - getInputProps: ie, - getLabelProps: se, - getListboxProps: le, - getMessageProps: ce, - getOptionProps: ue, - getOptGroupProps: de, - getTagProps: pe, - removeSelection: fe, - selection: me, - } = ((e) => { - let { - idPrefix: t, - triggerRef: n, - inputRef: r, - listboxRef: o, - isAutocomplete: a, - isMultiselectable: i, - isEditable: s = !0, - disabled: l, - hasHint: u, - hasMessage: d, - options: p = [], - inputValue: f, - selectionValue: m, - isExpanded: h, - defaultExpanded: g, - initialExpanded: v, - activeIndex: b, - defaultActiveIndex: y, - initialActiveIndex: w, - onChange: x = () => {}, - environment: k, - } = e; - const E = k || window, - [S, C] = c.useState(), - [O, P] = c.useState(f), - [T, I] = c.useState(''), - N = c.useRef(!0), - M = c.useRef(), - L = c.useRef(), - R = _n(t), - A = c.useRef({ - label: `${R}--label`, - hint: `${R}--hint`, - trigger: `${R}--trigger`, - input: `${R}--input`, - listbox: `${R}--listbox`, - message: `${R}--message`, - getOptionId: (e, t, n) => - `${R}--option${t ? '-disabled' : ''}${n ? '-hidden' : ''}-${e}`, - }), - D = c.useMemo(() => ({}), []), - j = c.useMemo(() => [], []), - z = c.useMemo(() => [], []), - F = c.useMemo(() => [], []), - _ = c.useMemo(() => { - const e = [], - t = (t) => { - if (t.disabled || t.hidden) - t.disabled && !z.includes(t.value) && z.push(t.value), - t.hidden && !F.includes(t.value) && F.push(t.value); - else { - e.push(t.value); - const n = z.indexOf(t.value); - -1 !== n && z.splice(n, 1); - const r = F.indexOf(t.value); - -1 !== r && F.splice(r, 1); - } - t.selected && !j.includes(t.value) && j.push(t.value); - const n = 'string' == typeof t.value ? t.value : JSON.stringify(t.value); - D[n] = t.label || n; - }; - return ( - p.forEach((e) => { - 'options' in e ? e.options.forEach(t) : t(e); - }), - e - ); - }, [p, z, F, j, D]), - H = i ? j : j[0], - $ = i ? '' : od(D, H), - B = c.useMemo(() => (void 0 === y ? (a && s ? 0 : void 0) : y), [y, a, s]); - if ((N.current && f !== O ? P(f) : (N.current = !0), null == m && !i && j.length > 1)) - throw new Error( - 'Error: expected useCombobox `options` to have no more than one selected.' - ); - if (null != m) { - if (i && !Array.isArray(m)) - throw new Error( - 'Error: expected multiselectable useCombobox `selectionValue` to be an array.' - ); - if (!i && Array.isArray(m)) - throw new Error('Error: expected useCombobox `selectionValue` not to be an array.'); - } - const W = c.useCallback( - (e) => { - let { type: t, isOpen: n, selectedItem: r, inputValue: o, highlightedIndex: a } = e; - return x({ - type: rd(t), - ...(void 0 !== n && { isExpanded: n }), - ...(void 0 !== r && { selectionValue: r }), - ...(void 0 !== o && { inputValue: o }), - ...(void 0 !== a && { activeIndex: a }), - }); - }, - [x] - ), - { - selectedItem: V, - isOpen: U, - highlightedIndex: q, - inputValue: Y, - getToggleButtonProps: K, - getInputProps: G, - getMenuProps: Q, - getItemProps: X, - closeMenu: J, - openMenu: Z, - setHighlightedIndex: ee, - selectItem: te, - } = td({ - toggleButtonId: A.current.trigger, - menuId: A.current.listbox, - getItemId: A.current.getOptionId, - items: _, - inputValue: O, - initialInputValue: $, - itemToString: (e) => (e ? od(D, e) : ''), - selectedItem: m, - initialSelectedItem: H, - isOpen: h, - defaultIsOpen: g, - initialIsOpen: v, - highlightedIndex: b, - defaultHighlightedIndex: B, - initialHighlightedIndex: w, - onStateChange: W, - stateReducer: (e, t) => { - let { type: n, changes: r, altKey: o } = t; - switch (n) { - case td.stateChangeTypes.ControlledPropUpdatedSelectedItem: - return e; - case td.stateChangeTypes.FunctionSetHighlightedIndex: - L.current?.altKey && (r.highlightedIndex = -1); - break; - case td.stateChangeTypes.FunctionCloseMenu: - case td.stateChangeTypes.InputBlur: - return { - ...e, - isOpen: (n === td.stateChangeTypes.InputBlur && S && i && e.isOpen) || !1, - }; - case td.stateChangeTypes.InputClick: - a || (r.isOpen = e.isOpen); - break; - case td.stateChangeTypes.InputKeyDownArrowDown: - case td.stateChangeTypes.FunctionOpenMenu: - e.isOpen === r.isOpen || o || (r.highlightedIndex = 0); - break; - case td.stateChangeTypes.InputKeyDownArrowUp: - e.isOpen !== r.isOpen && (r.highlightedIndex = _.length - 1); - break; - case td.stateChangeTypes.InputKeyDownEnter: - case td.stateChangeTypes.FunctionSelectItem: - case td.stateChangeTypes.ItemClick: - (r.highlightedIndex = e.highlightedIndex), - i && ((r.isOpen = e.isOpen), (r.inputValue = '')); - break; - case td.stateChangeTypes.InputKeyDownEscape: - return { ...e, isOpen: !1 }; - case td.stateChangeTypes.InputKeyDownPageDown: - case td.stateChangeTypes.InputKeyDownPageUp: - return e; - } - return ( - i && - e.selectedItem !== r.selectedItem && - (void 0 !== e.selectedItem && - null !== e.selectedItem && - void 0 !== r.selectedItem && - null !== r.selectedItem - ? e.selectedItem.includes(r.selectedItem) - ? (r.selectedItem = e.selectedItem.filter((e) => e !== r.selectedItem)) - : (r.selectedItem = [...e.selectedItem, r.selectedItem]) - : void 0 !== r.selectedItem && null !== r.selectedItem - ? (r.selectedItem = [r.selectedItem]) - : (r.selectedItem = [])), - (L.current = { type: n, altKey: o, ...e }), - r - ); - }, - environment: E, - }), - ne = c.useCallback(() => { - J(), x({ type: rd(td.stateChangeTypes.FunctionCloseMenu), isExpanded: !1 }); - }, [J, x]), - re = c.useCallback(() => { - Z(), x({ type: rd(td.stateChangeTypes.FunctionOpenMenu), isExpanded: !0 }); - }, [Z, x]), - oe = c.useCallback( - (e) => { - ee(e), - x({ type: rd(td.stateChangeTypes.FunctionSetHighlightedIndex), activeIndex: e }); - }, - [x, ee] - ), - ae = c.useCallback( - (e) => { - te(e), x({ type: rd(td.stateChangeTypes.FunctionSelectItem), selectionValue: e }); - }, - [x, te] - ), - { - getLabelProps: ie, - getHintProps: se, - getInputProps: le, - getMessageProps: ce, - } = gi({ hasHint: u, hasMessage: d }); - c.useLayoutEffect(() => { - if ((a || !s) && U && !L.current?.isOpen && V && !T) { - const e = Array.isArray(V) ? V[V.length - 1] : V, - t = _.findIndex((t) => t === e); - -1 !== t ? oe(t) : void 0 !== B && oe(B); - } - }, [a, s, U, V, Y, _, B, oe]), - c.useEffect(() => C(n.current?.contains(r.current)), [n, r]), - c.useEffect( - () => ( - clearTimeout(M.current), - (M.current = window.setTimeout(() => I(''), 500)), - () => clearTimeout(M.current) - ), - [T] - ), - c.useEffect(() => { - L.current?.type === td.stateChangeTypes.FunctionSelectItem && - (s ? r.current?.focus() : n.current?.focus(), - (L.current = { ...L.current, type: td.stateChangeTypes.InputClick })); - }), - c.useEffect(() => { - s && - r.current === E.document.activeElement && - r.current?.scrollIntoView && - r.current?.scrollIntoView({ block: 'nearest' }); - }, [r, s, E.document.activeElement]); - const ue = c.useCallback( - function (e) { - let { onBlur: t, onClick: o, onKeyDown: c, ...u } = void 0 === e ? {} : e; - const d = K({ - 'data-garden-container-id': 'containers.combobox', - 'data-garden-container-version': '1.1.4', - onBlur: t, - onClick: o, - onKeyDown: c, - ref: n, - disabled: l, - ...u, - }), - p = (e) => { - (null !== e.relatedTarget && e.currentTarget?.contains(e.relatedTarget)) || ne(); - }; - if (s && S) { - const e = (e) => { - l ? e.preventDefault() : a ? d.onClick && d.onClick(e) : r.current?.focus(); - }; - return { - ...d, - onBlur: Dn(t, p), - onClick: Dn(o, e), - 'aria-controls': a ? d['aria-controls'] : void 0, - 'aria-expanded': void 0, - 'aria-disabled': l || void 0, - disabled: void 0, - }; - } - if (!s) { - const { 'aria-activedescendant': e, onKeyDown: n } = G( - {}, - { suppressRefError: !0 } - ), - r = (e) => { - if ((e.stopPropagation(), U || (e.key !== zn.SPACE && e.key !== zn.ENTER))) - if (!U || T || (e.key !== zn.SPACE && e.key !== zn.ENTER)) { - if (/^(?:\S| ){1}$/u.test(e.key)) { - const t = `${T}${e.key}`; - I(t); - let n = 0; - if (U) -1 !== q && (n = 1 === t.length ? q + 1 : q); - else { - re(); - const e = Array.isArray(V) ? V[V.length - 1] : V; - null !== e && (n = _.findIndex((t) => t === e)); - } - for (let e = 0; e < _.length; e++) { - const r = (e + n) % _.length, - o = _[r]; - if (od(D, o).toLowerCase().startsWith(t.toLowerCase())) { - oe(r); - break; - } - } - } - } else e.preventDefault(), -1 !== q && ae(_[q]), i || ne(); - else e.preventDefault(), re(); - }; - return { - ...d, - 'aria-activedescendant': e, - 'aria-haspopup': 'listbox', - 'aria-labelledby': A.current.label, - 'aria-disabled': l || void 0, - disabled: void 0, - role: 'combobox', - onBlur: Dn(t, p), - onKeyDown: Dn(c, n, r), - tabIndex: l ? -1 : 0, - }; - } - return d; - }, - [K, G, n, l, V, U, q, ne, re, oe, ae, T, _, D, S, a, s, i, r] - ), - de = c.useCallback( - function (e) { - let { onClick: t, ...r } = void 0 === e ? {} : e; - const { htmlFor: o, ...a } = ie({ - id: A.current.label, - htmlFor: A.current.input, - ...r, - }); - return { - ...a, - onClick: Dn(t, () => !s && n.current?.focus()), - htmlFor: s ? o : void 0, - }; - }, - [ie, s, n] - ), - pe = c.useCallback((e) => se({ id: A.current.hint, ...e }), [se]), - fe = c.useCallback( - function (e) { - let { - role: t = s ? 'combobox' : null, - onChange: o, - onClick: i, - onFocus: c, - ...p - } = void 0 === e ? {} : e; - const m = { - 'data-garden-container-id': 'containers.combobox.input', - 'data-garden-container-version': '1.1.4', - ref: r, - role: null === t ? void 0 : t, - onChange: o, - onClick: i, - onFocus: c, - }; - if (s) { - const e = (e) => { - void 0 !== f && - (P(e.target.value), - (N.current = !1), - e.nativeEvent.isComposing && - W({ type: td.stateChangeTypes.InputChange, inputValue: e.target.value })); - }, - r = (e) => - e.target instanceof Element && - n.current?.contains(e.target) && - e.stopPropagation(), - s = []; - return ( - u && s.push(A.current.hint), - d && s.push(A.current.message), - G({ - ...m, - disabled: l, - role: t, - 'aria-autocomplete': a ? 'list' : void 0, - onChange: Dn(o, e), - onClick: Dn(i, r), - ...le({ - id: A.current.input, - 'aria-labelledby': A.current.label, - 'aria-describedby': s.length > 0 ? s.join(' ') : void 0, - }), - ...p, - }) - ); - } - return { - ...G({ - ...m, - disabled: !0, - 'aria-autocomplete': void 0, - 'aria-activedescendant': void 0, - 'aria-controls': void 0, - 'aria-expanded': void 0, - 'aria-hidden': !0, - 'aria-labelledby': void 0, - }), - disabled: l, - readOnly: !0, - tabIndex: -1, - onFocus: Dn(c, () => { - s || n.current?.focus(); - }), - ...p, - }; - }, - [G, le, W, u, d, f, r, n, l, a, s] - ), - me = c.useCallback( - (e) => { - let { option: t, onClick: o, onKeyDown: a, ...i } = e; - return { - 'data-garden-container-id': 'containers.combobox.tag', - 'data-garden-container-version': '1.1.4', - onClick: Dn( - o, - (e) => - e.target instanceof Element && - n.current?.contains(e.target) && - e.stopPropagation() - ), - onKeyDown: Dn(a, (e) => { - if (e.key === zn.BACKSPACE || e.key === zn.DELETE) ae(t.value); - else { - const t = e.target instanceof Element && n.current?.contains(e.target); - if ( - (t && !s && e.stopPropagation(), - t && - (e.key === zn.DOWN || - e.key === zn.UP || - e.key === zn.ESCAPE || - (!s && (e.key === zn.ENTER || e.key === zn.SPACE)))) - ) { - const t = G(); - s ? r.current?.focus() : (e.preventDefault(), n.current?.focus()), - t.onKeyDown && t.onKeyDown(e); - } - } - }), - ...i, - }; - }, - [n, ae, G, s, r] - ), - he = c.useCallback( - (e) => { - let { role: t = 'listbox', ...n } = e; - return Q({ - 'data-garden-container-id': 'containers.combobox.listbox', - 'data-garden-container-version': '1.1.4', - ref: o, - role: t, - 'aria-multiselectable': !!i || void 0, - ...n, - }); - }, - [Q, o, i] - ), - ge = c.useCallback((e) => { - let { role: t = 'group', ...n } = e; - return { - 'data-garden-container-id': 'containers.combobox.optgroup', - 'data-garden-container-version': '1.1.4', - role: null === t ? void 0 : t, - ...n, - }; - }, []), - ve = c.useCallback( - function (e) { - let { role: t = 'option', option: n, onMouseDown: r, ...o } = void 0 === e ? {} : e; - const a = { - 'data-garden-container-id': 'containers.combobox.option', - 'data-garden-container-version': '1.1.4', - role: t, - onMouseDown: r, - ...o, - }; - let i = !1; - if ( - (void 0 !== n?.value && - (i = Array.isArray(V) ? V?.includes(n?.value) : V === n?.value), - n?.hidden) - ) - return { - 'aria-disabled': !!n.disabled || void 0, - 'aria-hidden': !0, - 'aria-selected': i, - id: n ? A.current.getOptionId(F.indexOf(n.value), n.disabled, n.hidden) : void 0, - ...a, - }; - if (void 0 === n || n.disabled) { - const e = (e) => e.preventDefault(); - return { - 'aria-disabled': !0, - 'aria-selected': i, - id: n ? A.current.getOptionId(z.indexOf(n.value), n.disabled, n.hidden) : void 0, - ...a, - onMouseDown: Dn(r, e), - }; - } - return X({ - item: n.value, - index: _.indexOf(n.value), - 'aria-disabled': void 0, - 'aria-hidden': void 0, - 'aria-selected': i, - ...a, - }); - }, - [X, z, F, _, V] - ), - be = c.useCallback((e) => ce({ id: A.current.message, ...e }), [ce]), - ye = c.useCallback( - (e) => { - if (void 0 === e) ae(null); - else { - const t = 'object' == typeof e && 'value' in e ? e.value : e; - Array.isArray(V) && V.includes(t) ? ae(t) : V === t && ae(null); - } - }, - [V, ae] - ), - we = c.useMemo( - () => - Array.isArray(V) - ? V.map((e) => ({ - value: e, - label: D[e], - disabled: z.includes(e), - hidden: F.includes(e), - })) - : V - ? { value: V, label: od(D, V), disabled: z.includes(V), hidden: F.includes(V) } - : null, - [V, z, F, D] - ); - return c.useMemo( - () => ({ - getLabelProps: de, - getHintProps: pe, - getTriggerProps: ue, - getInputProps: fe, - getTagProps: me, - getListboxProps: he, - getOptGroupProps: ge, - getOptionProps: ve, - getMessageProps: be, - selection: we, - isExpanded: U, - activeValue: _[q], - inputValue: Y, - removeSelection: ye, - }), - [_, we, U, q, Y, de, pe, ue, fe, me, he, ge, ve, be, ye] - ); - })({ - idPrefix: R.id, - triggerRef: X, - inputRef: J, - listboxRef: Z, - options: Q, - environment: ee, - hasHint: A, - hasMessage: D, - isAutocomplete: p, - isEditable: g, - isMultiselectable: b, - disabled: h, - inputValue: d, - selectionValue: N, - isExpanded: v, - defaultExpanded: a, - activeIndex: r, - defaultActiveIndex: o, - onChange: O, - }), - he = c.useMemo( - () => ({ - activeValue: te, - getOptionProps: ue, - getOptGroupProps: de, - getTagProps: pe, - isCompact: m, - removeSelection: fe, - }), - [te, ue, de, pe, m, fe] - ), - ge = c.useMemo(() => !f && (p || !g), [p, f, g]), - ve = _o(Vy, { renderExpandTags: T }, 'renderExpandTags', '+ {{value}} more', b || !1), - be = _o(Vy, { listboxAriaLabel: w }, 'listboxAriaLabel', 'Options'), - ye = { - isAutocomplete: p, - isBare: f, - isCompact: m, - isEditable: g, - isLabelHovered: V, - isMultiselectable: b, - maxHeight: S, - focusInset: s, - validation: L, - ...oe({ - onFocus: () => { - h || (g && W(!1), b && Y(!0)); - }, - onBlur: (e) => { - (null !== e.relatedTarget && X.current?.contains(e.relatedTarget)) || - (g && W(!0), b && Y(!1)); - }, - }), - }, - we = { - 'aria-invalid': 'error' === L || 'warning' === L, - hidden: B, - isBare: f, - isCompact: m, - isEditable: g, - isMultiselectable: b, - placeholder: P, - ...ie({ ...l }), - }, - xe = le({ 'aria-label': be }); - return ( - c.useEffect(() => { - if (!j) { - const e = se({ onMouseEnter: () => U(!0), onMouseLeave: () => U(!1) }); - z(e); - } - return () => j && z(void 0); - }, [se, j, z]), - c.useEffect(() => { - if (!F) { - const e = ae(); - _(e); - } - return () => F && _(void 0); - }, [ae, F, _]), - c.useEffect(() => { - if (!H) { - const e = ce(); - $(e); - } - return () => H && $(void 0); - }, [ce, H, $]), - u.createElement( - wp.Provider, - { value: he }, - u.createElement( - Mp, - Object.assign({ isCompact: m, tabIndex: -1 }, R, { ref: t }), - u.createElement( - Up, - ye, - u.createElement( - Rp, - null, - M && u.createElement(Yp, { isLabelHovered: V, isCompact: m }, M), - u.createElement( - Wp, - null, - b && - Array.isArray(me) && - u.createElement( - By, - { isDisabled: h, isExpanded: q, maxTags: C, optionTagProps: K, selection: me }, - me.length > C && - u.createElement( - Mf, - { disabled: h, hidden: q, isCompact: m, tabIndex: -1, type: 'button' }, - (() => { - const e = me.length - C; - return T ? T(e) : ve?.replace('{{value}}', e.toString()); - })() - ) - ), - u.createElement( - If, - { - hidden: !B, - isAutocomplete: p, - isBare: f, - isCompact: m, - isDisabled: h, - isEditable: g, - isMultiselectable: b, - isPlaceholder: !(ne || I), - }, - I ? I({ selection: me, inputValue: ne }) : ne || P - ), - u.createElement($p, we) - ), - (ge || i) && - u.createElement( - Yp, - { isCompact: m, isEnd: !0, isLabelHovered: V, isRotated: ge && re }, - ge ? u.createElement(yp, null) : i - ) - ) - ), - u.createElement( - Bm, - Object.assign( - { - appendToNode: y, - isCompact: m, - isExpanded: re, - maxHeight: x, - minHeight: k, - triggerRef: X, - zIndex: E, - }, - xe - ), - n - ) - ) - ) - ); - }); -(Vy.displayName = 'Combobox'), - (Vy.propTypes = { - activeIndex: Pn.number, - defaultActiveIndex: Pn.number, - defaultExpanded: Pn.bool, - endIcon: Pn.any, - focusInset: Pn.bool, - id: Pn.string, - inputProps: Pn.object, - inputValue: Pn.string, - isAutocomplete: Pn.bool, - isBare: Pn.bool, - isCompact: Pn.bool, - isDisabled: Pn.bool, - isEditable: Pn.bool, - isExpanded: Pn.bool, - isMultiselectable: Pn.bool, - listboxAppendToNode: Pn.any, - listboxAriaLabel: Pn.string, - listboxMaxHeight: Pn.string, - listboxMinHeight: Pn.string, - listboxZIndex: Pn.number, - maxHeight: Pn.string, - maxTags: Pn.number, - onChange: Pn.func, - placeholder: Pn.string, - renderExpandTags: Pn.func, - renderValue: Pn.func, - selectionValue: Pn.any, - startIcon: Pn.any, - validation: Pn.oneOf(hp), - }), - (Vy.defaultProps = { - isEditable: !0, - listboxMaxHeight: '400px', - listboxZIndex: 1e3, - maxTags: Wy, - }); -const Uy = c.forwardRef((e, t) => { - const [n, r] = c.useState(void 0), - [o, a] = c.useState(void 0), - [i, s] = c.useState(void 0), - [l, d] = c.useState(!1), - [p, f] = c.useState(!1), - m = c.useMemo( - () => ({ - labelProps: n, - setLabelProps: r, - hasHint: l, - setHasHint: d, - hintProps: o, - setHintProps: a, - hasMessage: p, - setHasMessage: f, - messageProps: i, - setMessageProps: s, - }), - [n, r, l, d, o, a, p, f, i, s] - ); - return u.createElement( - kp.Provider, - { value: m }, - u.createElement(Dp, Object.assign({}, e, { ref: t })) - ); -}); -Uy.displayName = 'Field'; -const qy = c.forwardRef((e, t) => { - const { hintProps: n, setHasHint: r } = Ep(); - return ( - c.useEffect(() => (r(!0), () => r(!1)), [r]), - u.createElement(Pp, Object.assign({}, n, e, { ref: t })) - ); -}); -qy.displayName = 'Hint'; -const Yy = c.forwardRef((e, t) => { - let { onClick: n, onMouseEnter: r, onMouseLeave: o, ...a } = e; - const { labelProps: i } = Ep(); - return u.createElement( - Cp, - Object.assign( - {}, - i, - { - onClick: Dn(n, i?.onClick), - onMouseEnter: Dn(r, i?.onMouseEnter), - onMouseLeave: Dn(o, i?.onMouseLeave), - }, - a, - { ref: t } - ) - ); -}); -(Yy.displayName = 'Label'), (Yy.propTypes = { hidden: Pn.bool, isRegular: Pn.bool }); -const Ky = c.forwardRef((e, t) => { - const { messageProps: n, setHasMessage: r } = Ep(); - return ( - c.useEffect(() => (r(!0), () => r(!1)), [r]), - u.createElement(Ip, Object.assign({}, n, e, { ref: t })) - ); -}); -var Gy; -function Qy() { - return ( - (Qy = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Qy.apply(this, arguments) - ); -} -(Ky.displayName = 'Message'), - (Ky.propTypes = { validation: Pn.oneOf(hp), validationLabel: Pn.string }); -var Xy, - Jy = function (e) { - return c.createElement( - 'svg', - Qy( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Gy || - (Gy = c.createElement('path', { - stroke: 'currentColor', - strokeLinecap: 'round', - d: 'M7.5 2.5v12m6-6h-12', - })) - ); - }; -function Zy() { - return ( - (Zy = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - Zy.apply(this, arguments) - ); -} -var ew, - tw = function (e) { - return c.createElement( - 'svg', - Zy( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - Xy || - (Xy = c.createElement('path', { - fill: 'currentColor', - d: 'M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z', - })) - ); - }; -function nw() { - return ( - (nw = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); - } - return e; - }), - nw.apply(this, arguments) - ); -} -var rw, - ow = function (e) { - return c.createElement( - 'svg', - nw( - { - xmlns: 'http://www.w3.org/2000/svg', - width: 16, - height: 16, - focusable: 'false', - viewBox: '0 0 16 16', - 'aria-hidden': 'true', - }, - e - ), - ew || - (ew = c.createElement('path', { - fill: 'currentColor', - d: 'M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z', - })) - ); - }; -function aw() { - return ( - (aw = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = arguments[t]; - for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + +/** + * Copyright Zendesk, Inc. + * + * Use of this source code is governed under the Apache License, Version 2.0 + * found at http://www.apache.org/licenses/LICENSE-2.0. + */ + +var _path$D, _circle$a; +function _extends$O() { + _extends$O = 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 e; - }), - aw.apply(this, arguments) - ); + } + return target; + }; + return _extends$O.apply(this, arguments); } -var iw = function (e) { - return c.createElement( +var SvgAlertWarningStroke$2 = function SvgAlertWarningStroke(props) { + return /*#__PURE__*/ reactExports.createElement( 'svg', - aw( + _extends$O( { xmlns: 'http://www.w3.org/2000/svg', width: 16, @@ -26758,3598 +20993,24798 @@ var iw = function (e) { viewBox: '0 0 16 16', 'aria-hidden': 'true', }, - e + props ), - rw || - (rw = c.createElement('path', { + _path$D || + (_path$D = /*#__PURE__*/ reactExports.createElement('path', { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', - strokeLinejoin: 'round', - d: 'M1 9l4 4L15 3', + d: 'M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5', + })), + _circle$a || + (_circle$a = /*#__PURE__*/ reactExports.createElement('circle', { + cx: 7.5, + cy: 12, + r: 1, + fill: 'currentColor', })) ); }; -const sw = c.createContext(void 0), - lw = c.forwardRef((e, t) => { - const { isDisabled: n } = (() => { - const e = c.useContext(sw); - if (!e) throw new Error('Error: this component must be rendered within an