From b92b006e2c22302e708672de97b9a05081ecca1c Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Fri, 6 Aug 2021 02:31:59 +0200 Subject: features!: context menu, better ui, and smoother updates --- .../chunks/pages/_app-b9a9a4081d35806300d5.js | 8291 +------------------- .../chunks/pages/_error-f5e67a79c709c2df06b8.js | 492 +- .../chunks/pages/index-9893d4710094df6598ce.js | 1 - .../chunks/pages/index-a22d59b6e873aa5b1f23.js | 1 + 4 files changed, 3 insertions(+), 8782 deletions(-) delete mode 100644 out/_next/static/chunks/pages/index-9893d4710094df6598ce.js create mode 100644 out/_next/static/chunks/pages/index-a22d59b6e873aa5b1f23.js (limited to 'out/_next/static/chunks/pages') diff --git a/out/_next/static/chunks/pages/_app-b9a9a4081d35806300d5.js b/out/_next/static/chunks/pages/_app-b9a9a4081d35806300d5.js index fb6e8c4..56de87e 100644 --- a/out/_next/static/chunks/pages/_app-b9a9a4081d35806300d5.js +++ b/out/_next/static/chunks/pages/_app-b9a9a4081d35806300d5.js @@ -1,8290 +1 @@ -;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ - [888], - { - 22122: function (r, e, t) { - 'use strict' - function n() { - return (n = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - t.d(e, { - Z: function () { - return n - }, - }) - }, - 24738: function (r, e, t) { - 'use strict' - t.d(e, { - SG: function () { - return x - }, - If: function () { - return y - }, - }) - var n = t(73808), - o = t(84461), - a = t(80658), - i = t(67294), - s = 'chakra-ui-light', - l = 'chakra-ui-dark', - c = { classList: { add: a.ZT, remove: a.ZT } } - function u(r) { - var e = o.jU ? document.body : c - e.classList.add(r ? l : s), e.classList.remove(r ? s : l) - } - var d = '(prefers-color-scheme: dark)' - function f(r) { - var e - return ( - null != - (e = (function (r) { - var e = null == window.matchMedia ? void 0 : window.matchMedia(r) - if (e) return !!e.media === e.matches - })(d)) - ? e - : 'dark' === r - ) - ? 'dark' - : 'light' - } - var p = () => document.documentElement.style.getPropertyValue('--chakra-ui-color-mode'), - h = (r) => { - o.jU && document.documentElement.style.setProperty('--chakra-ui-color-mode', r) - }, - b = () => 'undefined' !== typeof Storage, - g = 'chakra-ui-color-mode', - m = { - get(r) { - if (!b()) return r - try { - var e = localStorage.getItem(g) - return null != e ? e : r - } catch (t) { - return n.Ts && console.log(t), r - } - }, - set(r) { - if (b()) - try { - localStorage.setItem(g, r) - } catch (e) { - n.Ts && console.log(e) - } - }, - type: 'localStorage', - } - var v = i.createContext({}) - n.Ts && (v.displayName = 'ColorModeContext') - var y = () => { - var r = i.useContext(v) - if (void 0 === r) throw new Error('useColorMode must be used within a ColorModeProvider') - return r - } - function x(r) { - var { - value: e, - children: t, - options: { useSystemColorMode: n, initialColorMode: s }, - colorModeManager: l = m, - } = r, - [c, b] = i.useState('cookie' === l.type ? l.get(s) : s) - i.useEffect(() => { - if (o.jU && 'localStorage' === l.type) { - var r = n ? f(s) : p() || l.get() - r && b(r) - } - }, [l, n, s]), - i.useEffect(() => { - var r = 'dark' === c - u(r), h(r ? 'dark' : 'light') - }, [c]) - var g = i.useCallback( - (r) => { - l.set(r), b(r) - }, - [l], - ), - y = i.useCallback(() => { - g('light' === c ? 'dark' : 'light') - }, [c, g]) - i.useEffect(() => { - var r - return ( - n && - (r = (function (r) { - if (!('matchMedia' in window)) return a.ZT - var e = window.matchMedia(d), - t = () => { - r(e.matches ? 'dark' : 'light') - } - return ( - t(), - e.addListener(t), - () => { - e.removeListener(t) - } - ) - })(g)), - () => { - r && n && r() - } - ) - }, [g, n]) - var x = i.useMemo( - () => ({ - colorMode: null != e ? e : c, - toggleColorMode: e ? a.ZT : y, - setColorMode: e ? a.ZT : g, - }), - [c, g, y, e], - ) - return i.createElement(v.Provider, { value: x }, t) - } - n.Ts && (x.displayName = 'ColorModeProvider') - n.Ts - n.Ts - }, - 94577: function (r, e, t) { - 'use strict' - t.d(e, { - vc: function () { - return i - }, - Me: function () { - return s - }, - ZS: function () { - return l - }, - }) - var n = t(67294), - o = { prefix: Math.round(1e10 * Math.random()), current: 0 }, - a = n.createContext(o), - i = n.memo((r) => { - var { children: e } = r, - t = n.useContext(a), - i = t === o, - s = n.useMemo(() => ({ prefix: i ? 0 : ++t.prefix, current: 0 }), [i, t]) - return n.createElement(a.Provider, { value: s }, e) - }) - function s(r, e) { - var t = n.useContext(a) - return n.useMemo(() => r || [e, t.prefix, ++t.current].filter(Boolean).join('-'), [r, e]) - } - function l(r) { - for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++) - t[o - 1] = arguments[o] - var a = s(r) - return n.useMemo(() => t.map((r) => r + '-' + a), [a, t]) - } - }, - 34288: function (r, e, t) { - 'use strict' - t.d(e, { - L: function () { - return s - }, - h: function () { - return l - }, - }) - var n = t(73808), - o = t(28500), - a = t(67294), - [i, s] = (0, o.k)({ strict: !1, name: 'PortalManagerContext' }) - function l(r) { - var { children: e, zIndex: t } = r - return a.createElement(i, { value: { zIndex: t } }, e) - } - n.Ts && (l.displayName = 'PortalManager') - }, - 28500: function (r, e, t) { - 'use strict' - t.d(e, { - k: function () { - return o - }, - }) - var n = t(67294) - function o(r) { - void 0 === r && (r = {}) - var { - strict: e = !0, - errorMessage: - t = 'useContext: `context` is undefined. Seems you forgot to wrap component within the Provider', - name: o, - } = r, - a = n.createContext(void 0) - return ( - (a.displayName = o), - [ - a.Provider, - function r() { - var o = n.useContext(a) - if (!o && e) { - var i = new Error(t) - throw ( - ((i.name = 'ContextError'), - null == Error.captureStackTrace || Error.captureStackTrace(i, r), - i) - ) - } - return o - }, - a, - ] - ) - } - }, - 13205: function (r, e, t) { - 'use strict' - t.d(e, { - Oq: function () { - return B - }, - Cg: function () { - return j - }, - $_: function () { - return O - }, - cE: function () { - return T - }, - hX: function () { - return F - }, - GQ: function () { - return P - }, - eC: function () { - return I - }, - Mw: function () { - return M - }, - bK: function () { - return D - }, - pb: function () { - return W - }, - o_: function () { - return $ - }, - FK: function () { - return Z - }, - v_: function () { - return V - }, - Dh: function () { - return q - }, - QX: function () { - return G - }, - vs: function () { - return Y - }, - eR: function () { - return X - }, - cp: function () { - return U - }, - }) - var n = t(73808) - function o(r) { - var { scale: e, transform: t, compose: o } = r - return (r, a) => { - var i, - s = ((r, e) => (t) => { - var o = String(e), - a = r ? r + '.' + o : o - return (0, n.Kn)(t.__cssMap) && a in t.__cssMap ? t.__cssMap[a].varRef : e - })( - e, - r, - )(a), - l = null != (i = null == t ? void 0 : t(s, a)) ? i : s - return o && (l = o(l, a)), l - } - } - function a(r, e) { - return (t) => { - var n = { property: t, scale: r } - return (n.transform = o({ scale: r, transform: e })), n - } - } - var i = (r) => { - var { rtl: e, ltr: t } = r - return (r) => ('rtl' === r.direction ? e : t) - } - var s = [ - 'rotate(var(--chakra-rotate, 0))', - 'scaleX(var(--chakra-scale-x, 1))', - 'scaleY(var(--chakra-scale-y, 1))', - 'skewX(var(--chakra-skew-x, 0))', - 'skewY(var(--chakra-skew-y, 0))', - ] - var l = { - '--chakra-blur': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-brightness': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-contrast': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-grayscale': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-hue-rotate': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-invert': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-saturate': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-sepia': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-drop-shadow': 'var(--chakra-empty,/*!*/ /*!*/)', - filter: [ - 'var(--chakra-blur)', - 'var(--chakra-brightness)', - 'var(--chakra-contrast)', - 'var(--chakra-grayscale)', - 'var(--chakra-hue-rotate)', - 'var(--chakra-invert)', - 'var(--chakra-saturate)', - 'var(--chakra-sepia)', - 'var(--chakra-drop-shadow)', - ].join(' '), - }, - c = { - backdropFilter: [ - 'var(--chakra-backdrop-blur)', - 'var(--chakra-backdrop-brightness)', - 'var(--chakra-backdrop-contrast)', - 'var(--chakra-backdrop-grayscale)', - 'var(--chakra-backdrop-hue-rotate)', - 'var(--chakra-backdrop-invert)', - 'var(--chakra-backdrop-opacity)', - 'var(--chakra-backdrop-saturate)', - 'var(--chakra-backdrop-sepia)', - ].join(' '), - '--chakra-backdrop-blur': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-brightness': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-contrast': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-grayscale': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-hue-rotate': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-invert': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-opacity': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-saturate': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-backdrop-sepia': 'var(--chakra-empty,/*!*/ /*!*/)', - } - var u = { - 'row-reverse': { space: '--chakra-space-x-reverse', divide: '--chakra-divide-x-reverse' }, - 'column-reverse': { - space: '--chakra-space-y-reverse', - divide: '--chakra-divide-y-reverse', - }, - }, - d = '& > :not(style) ~ :not(style)', - f = { - [d]: { - marginInlineStart: - 'calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))', - marginInlineEnd: 'calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))', - }, - }, - p = { - [d]: { - marginTop: 'calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))', - marginBottom: 'calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))', - }, - } - function h(r, e) { - h = function (r, e) { - return new a(r, void 0, e) - } - var t = g(RegExp), - n = RegExp.prototype, - o = new WeakMap() - function a(r, e, n) { - var a = t.call(this, r, e) - return o.set(a, n || o.get(r)), a - } - function i(r, e) { - var t = o.get(e) - return Object.keys(t).reduce(function (e, n) { - return (e[n] = r[t[n]]), e - }, Object.create(null)) - } - return ( - b(a, t), - (a.prototype.exec = function (r) { - var e = n.exec.call(this, r) - return e && (e.groups = i(e, this)), e - }), - (a.prototype[Symbol.replace] = function (r, e) { - if ('string' === typeof e) { - var t = o.get(this) - return n[Symbol.replace].call( - this, - r, - e.replace(/\$<([^>]+)>/g, function (r, e) { - return '$' + t[e] - }), - ) - } - if ('function' === typeof e) { - var a = this - return n[Symbol.replace].call(this, r, function () { - var r = [] - return ( - r.push.apply(r, arguments), - 'object' !== typeof r[r.length - 1] && r.push(i(r, a)), - e.apply(this, r) - ) - }) - } - return n[Symbol.replace].call(this, r, e) - }), - h.apply(this, arguments) - ) - } - function b(r, e) { - if ('function' !== typeof e && null !== e) - throw new TypeError('Super expression must either be null or a function') - ;(r.prototype = Object.create(e && e.prototype, { - constructor: { value: r, writable: !0, configurable: !0 }, - })), - e && y(r, e) - } - function g(r) { - var e = 'function' === typeof Map ? new Map() : void 0 - return (g = function (r) { - if (null === r || ((t = r), -1 === Function.toString.call(t).indexOf('[native code]'))) - return r - var t - if ('function' !== typeof r) - throw new TypeError('Super expression must either be null or a function') - if ('undefined' !== typeof e) { - if (e.has(r)) return e.get(r) - e.set(r, n) - } - function n() { - return m(r, arguments, x(this).constructor) - } - return ( - (n.prototype = Object.create(r.prototype, { - constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 }, - })), - y(n, r) - ) - })(r) - } - function m(r, e, t) { - return (m = v() - ? Reflect.construct - : function (r, e, t) { - var n = [null] - n.push.apply(n, e) - var o = new (Function.bind.apply(r, n))() - return t && y(o, t.prototype), o - }).apply(null, arguments) - } - function v() { - if ('undefined' === typeof Reflect || !Reflect.construct) return !1 - if (Reflect.construct.sham) return !1 - if ('function' === typeof Proxy) return !0 - try { - return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0 - } catch (r) { - return !1 - } - } - function y(r, e) { - return (y = - Object.setPrototypeOf || - function (r, e) { - return (r.__proto__ = e), r - })(r, e) - } - function x(r) { - return (x = Object.setPrototypeOf - ? Object.getPrototypeOf - : function (r) { - return r.__proto__ || Object.getPrototypeOf(r) - })(r) - } - var w = { - 'to-t': 'to top', - 'to-tr': 'to top right', - 'to-r': 'to right', - 'to-br': 'to bottom right', - 'to-b': 'to bottom', - 'to-bl': 'to bottom left', - 'to-l': 'to left', - 'to-tl': 'to top left', - }, - S = new Set(Object.values(w)), - k = new Set(['none', '-moz-initial', 'inherit', 'initial', 'revert', 'unset']), - _ = (r) => r.trim() - var C = (r) => (e) => r + '(' + e + ')', - A = { - filter: (r) => ('auto' !== r ? r : l), - backdropFilter: (r) => ('auto' !== r ? r : c), - ring: (r) => - (function (r) { - return { - '--chakra-ring-offset-shadow': - 'var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)', - '--chakra-ring-shadow': - 'var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)', - '--chakra-ring-width': r, - boxShadow: [ - 'var(--chakra-ring-offset-shadow)', - 'var(--chakra-ring-shadow)', - 'var(--chakra-shadow, 0 0 #0000)', - ].join(', '), - } - })(A.px(r)), - bgClip: (r) => - 'text' === r ? { color: 'transparent', backgroundClip: 'text' } : { backgroundClip: r }, - transform: (r) => - 'auto' === r - ? [ - 'translateX(var(--chakra-translate-x, 0))', - 'translateY(var(--chakra-translate-y, 0))', - ...s, - ].join(' ') - : 'auto-gpu' === r - ? [ - 'translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)', - ...s, - ].join(' ') - : r, - px(r) { - if (null == r) return r - var { unitless: e } = ((r) => { - var e = parseFloat(r.toString()), - t = r.toString().replace(String(e), '') - return { unitless: !t, value: e, unit: t } - })(r) - return e || (0, n.hj)(r) ? r + 'px' : r - }, - fraction: (r) => (!(0, n.hj)(r) || r > 1 ? r : 100 * r + '%'), - float: (r, e) => ('rtl' === e.direction ? { left: 'right', right: 'left' }[r] : r), - degree(r) { - if ((0, n.FS)(r) || null == r) return r - var e = (0, n.HD)(r) && !r.endsWith('deg') - return (0, n.hj)(r) || e ? r + 'deg' : r - }, - gradient: (r, e) => - (function (r, e) { - var t, n - if (null == r || k.has(r)) return r - var o = h(/(^[\x2DA-Za-z]+)\(((.*))\)/g, { type: 1, values: 2 }), - { type: a, values: i } = - null != (t = null == (n = o.exec(r)) ? void 0 : n.groups) ? t : {} - if (!a || !i) return r - var s = a.includes('-gradient') ? a : a + '-gradient', - [l, ...c] = i.split(',').map(_).filter(Boolean) - if (0 === (null == c ? void 0 : c.length)) return r - var u = l in w ? w[l] : l - return ( - c.unshift(u), - s + - '(' + - c - .map((r) => { - if (S.has(r)) return r - var [t, n] = r.split(' '), - o = 'colors.' + t, - a = o in e.__cssMap ? e.__cssMap[o].varRef : t - return n ? [a, n].join(' ') : a - }) - .join(', ') + - ')' - ) - })(r, null != e ? e : {}), - blur: C('blur'), - opacity: C('opacity'), - brightness: C('brightness'), - contrast: C('contrast'), - dropShadow: C('drop-shadow'), - grayscale: C('grayscale'), - hueRotate: C('hue-rotate'), - invert: C('invert'), - saturate: C('saturate'), - sepia: C('sepia'), - bgImage: (r) => (null == r || E(r) || k.has(r) ? r : 'url(' + r + ')'), - outline(r) { - var e = '0' === String(r) || 'none' === String(r) - return null !== r && e - ? { outline: '2px solid transparent', outlineOffset: '2px' } - : { outline: r } - }, - flexDirection(r) { - var e, - { space: t, divide: n } = null != (e = u[r]) ? e : {}, - o = { flexDirection: r } - return t && (o[t] = 1), n && (o[n] = 1), o - }, - }, - E = (r) => (0, n.HD)(r) && r.includes('(') && r.includes(')') - function z() { - return (z = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var R = { - borderWidths: a('borderWidths'), - borderStyles: a('borderStyles'), - colors: a('colors'), - borders: a('borders'), - radii: a('radii', A.px), - space: a('space', A.px), - spaceT: a('space', A.px), - degreeT: (r) => ({ property: r, transform: A.degree }), - prop: (r, e, t) => - z({ property: r, scale: e }, e && { transform: o({ scale: e, transform: t }) }), - propT: (r, e) => ({ property: r, transform: e }), - sizes: a('sizes', A.px), - sizesT: a('sizes', A.fraction), - shadows: a('shadows'), - logical: function (r) { - var { property: e, scale: t, transform: n } = r - return { scale: t, property: i(e), transform: t ? o({ scale: t, compose: n }) : n } - }, - blur: a('blur', A.blur), - }, - B = { - background: R.colors('background'), - backgroundColor: R.colors('backgroundColor'), - backgroundImage: R.propT('backgroundImage', A.bgImage), - backgroundSize: !0, - backgroundPosition: !0, - backgroundRepeat: !0, - backgroundAttachment: !0, - backgroundClip: { transform: A.bgClip }, - bgSize: R.prop('backgroundSize'), - bgPosition: R.prop('backgroundPosition'), - bg: R.colors('background'), - bgColor: R.colors('backgroundColor'), - bgPos: R.prop('backgroundPosition'), - bgRepeat: R.prop('backgroundRepeat'), - bgAttachment: R.prop('backgroundAttachment'), - bgGradient: R.propT('backgroundImage', A.gradient), - bgClip: { transform: A.bgClip }, - } - Object.assign(B, { bgImage: B.backgroundImage, bgImg: B.backgroundImage }) - var j = { - border: R.borders('border'), - borderWidth: R.borderWidths('borderWidth'), - borderStyle: R.borderStyles('borderStyle'), - borderColor: R.colors('borderColor'), - borderRadius: R.radii('borderRadius'), - borderTop: R.borders('borderTop'), - borderBlockStart: R.borders('borderBlockStart'), - borderTopLeftRadius: R.radii('borderTopLeftRadius'), - borderStartStartRadius: R.logical({ - scale: 'radii', - property: { ltr: 'borderTopLeftRadius', rtl: 'borderTopRightRadius' }, - }), - borderEndStartRadius: R.logical({ - scale: 'radii', - property: { ltr: 'borderBottomLeftRadius', rtl: 'borderBottomRightRadius' }, - }), - borderTopRightRadius: R.radii('borderTopRightRadius'), - borderStartEndRadius: R.logical({ - scale: 'radii', - property: { ltr: 'borderTopRightRadius', rtl: 'borderTopLeftRadius' }, - }), - borderEndEndRadius: R.logical({ - scale: 'radii', - property: { ltr: 'borderBottomRightRadius', rtl: 'borderBottomLeftRadius' }, - }), - borderRight: R.borders('borderRight'), - borderInlineEnd: R.borders('borderInlineEnd'), - borderBottom: R.borders('borderBottom'), - borderBlockEnd: R.borders('borderBlockEnd'), - borderBottomLeftRadius: R.radii('borderBottomLeftRadius'), - borderBottomRightRadius: R.radii('borderBottomRightRadius'), - borderLeft: R.borders('borderLeft'), - borderInlineStart: { property: 'borderInlineStart', scale: 'borders' }, - borderInlineStartRadius: R.logical({ - scale: 'radii', - property: { - ltr: ['borderTopLeftRadius', 'borderBottomLeftRadius'], - rtl: ['borderTopRightRadius', 'borderBottomRightRadius'], - }, - }), - borderInlineEndRadius: R.logical({ - scale: 'radii', - property: { - ltr: ['borderTopRightRadius', 'borderBottomRightRadius'], - rtl: ['borderTopLeftRadius', 'borderBottomLeftRadius'], - }, - }), - borderX: R.borders(['borderLeft', 'borderRight']), - borderInline: R.borders('borderInline'), - borderY: R.borders(['borderTop', 'borderBottom']), - borderBlock: R.borders('borderBlock'), - borderTopWidth: R.borderWidths('borderTopWidth'), - borderBlockStartWidth: R.borderWidths('borderBlockStartWidth'), - borderTopColor: R.colors('borderTopColor'), - borderBlockStartColor: R.colors('borderBlockStartColor'), - borderTopStyle: R.borderStyles('borderTopStyle'), - borderBlockStartStyle: R.borderStyles('borderBlockStartStyle'), - borderBottomWidth: R.borderWidths('borderBottomWidth'), - borderBlockEndWidth: R.borderWidths('borderBlockEndWidth'), - borderBottomColor: R.colors('borderBottomColor'), - borderBlockEndColor: R.colors('borderBlockEndColor'), - borderBottomStyle: R.borderStyles('borderBottomStyle'), - borderBlockEndStyle: R.borderStyles('borderBlockEndStyle'), - borderLeftWidth: R.borderWidths('borderLeftWidth'), - borderInlineStartWidth: R.borderWidths('borderInlineStartWidth'), - borderLeftColor: R.colors('borderLeftColor'), - borderInlineStartColor: R.colors('borderInlineStartColor'), - borderLeftStyle: R.borderStyles('borderLeftStyle'), - borderInlineStartStyle: R.borderStyles('borderInlineStartStyle'), - borderRightWidth: R.borderWidths('borderRightWidth'), - borderInlineEndWidth: R.borderWidths('borderInlineEndWidth'), - borderRightColor: R.colors('borderRightColor'), - borderInlineEndColor: R.colors('borderInlineEndColor'), - borderRightStyle: R.borderStyles('borderRightStyle'), - borderInlineEndStyle: R.borderStyles('borderInlineEndStyle'), - borderTopRadius: R.radii(['borderTopLeftRadius', 'borderTopRightRadius']), - borderBottomRadius: R.radii(['borderBottomLeftRadius', 'borderBottomRightRadius']), - borderLeftRadius: R.radii(['borderTopLeftRadius', 'borderBottomLeftRadius']), - borderRightRadius: R.radii(['borderTopRightRadius', 'borderBottomRightRadius']), - } - Object.assign(j, { - rounded: j.borderRadius, - roundedTop: j.borderTopRadius, - roundedTopLeft: j.borderTopLeftRadius, - roundedTopRight: j.borderTopRightRadius, - roundedTopStart: j.borderStartStartRadius, - roundedTopEnd: j.borderStartEndRadius, - roundedBottom: j.borderBottomRadius, - roundedBottomLeft: j.borderBottomLeftRadius, - roundedBottomRight: j.borderBottomRightRadius, - roundedBottomStart: j.borderEndStartRadius, - roundedBottomEnd: j.borderEndEndRadius, - roundedLeft: j.borderLeftRadius, - roundedRight: j.borderRightRadius, - roundedStart: j.borderInlineStartRadius, - roundedEnd: j.borderInlineEndRadius, - borderStart: j.borderInlineStart, - borderEnd: j.borderInlineEnd, - borderTopStartRadius: j.borderStartStartRadius, - borderTopEndRadius: j.borderStartEndRadius, - borderBottomStartRadius: j.borderEndStartRadius, - borderBottomEndRadius: j.borderEndEndRadius, - borderStartRadius: j.borderInlineStartRadius, - borderEndRadius: j.borderInlineEndRadius, - borderStartWidth: j.borderInlineStartWidth, - borderEndWidth: j.borderInlineEndWidth, - borderStartColor: j.borderInlineStartColor, - borderEndColor: j.borderInlineEndColor, - borderStartStyle: j.borderInlineStartStyle, - borderEndStyle: j.borderInlineEndStyle, - }) - var O = { - color: R.colors('color'), - textColor: R.colors('color'), - fill: R.colors('fill'), - stroke: R.colors('stroke'), - }, - T = { - boxShadow: R.shadows('boxShadow'), - mixBlendMode: !0, - blendMode: R.prop('mixBlendMode'), - backgroundBlendMode: !0, - bgBlendMode: R.prop('backgroundBlendMode'), - opacity: !0, - } - Object.assign(T, { shadow: T.boxShadow }) - var F = { - filter: { transform: A.filter }, - blur: R.blur('--chakra-blur'), - brightness: R.propT('--chakra-brightness', A.brightness), - contrast: R.propT('--chakra-contrast', A.contrast), - hueRotate: R.degreeT('--chakra-hue-rotate'), - invert: R.propT('--chakra-invert', A.invert), - saturate: R.propT('--chakra-saturate', A.saturate), - dropShadow: R.propT('--chakra-drop-shadow', A.dropShadow), - backdropFilter: { transform: A.backdropFilter }, - backdropBlur: R.blur('--chakra-backdrop-blur'), - backdropBrightness: R.propT('--chakra-backdrop-brightness', A.brightness), - backdropContrast: R.propT('--chakra-backdrop-contrast', A.contrast), - backdropHueRotate: R.degreeT('--chakra-backdrop-hue-rotate'), - backdropInvert: R.propT('--chakra-backdrop-invert', A.invert), - backdropSaturate: R.propT('--chakra-backdrop-saturate', A.saturate), - }, - P = { - alignItems: !0, - alignContent: !0, - justifyItems: !0, - justifyContent: !0, - flexWrap: !0, - flexDirection: { transform: A.flexDirection }, - experimental_spaceX: { - static: f, - transform: o({ - scale: 'space', - transform: (r) => (null !== r ? { '--chakra-space-x': r } : null), - }), - }, - experimental_spaceY: { - static: p, - transform: o({ - scale: 'space', - transform: (r) => (null != r ? { '--chakra-space-y': r } : null), - }), - }, - flex: !0, - flexFlow: !0, - flexGrow: !0, - flexShrink: !0, - flexBasis: R.sizes('flexBasis'), - justifySelf: !0, - alignSelf: !0, - order: !0, - placeItems: !0, - placeContent: !0, - placeSelf: !0, - } - Object.assign(P, { flexDir: P.flexDirection }) - var I = { - gridGap: R.space('gridGap'), - gridColumnGap: R.space('gridColumnGap'), - gridRowGap: R.space('gridRowGap'), - gridColumn: !0, - gridRow: !0, - gridAutoFlow: !0, - gridAutoColumns: !0, - gridColumnStart: !0, - gridColumnEnd: !0, - gridRowStart: !0, - gridRowEnd: !0, - gridAutoRows: !0, - gridTemplate: !0, - gridTemplateColumns: !0, - gridTemplateRows: !0, - gridTemplateAreas: !0, - gridArea: !0, - }, - M = { - appearance: !0, - cursor: !0, - resize: !0, - userSelect: !0, - pointerEvents: !0, - outline: { transform: A.outline }, - outlineOffset: !0, - outlineColor: R.colors('outlineColor'), - }, - D = { - width: R.sizesT('width'), - inlineSize: R.sizesT('inlineSize'), - height: R.sizes('height'), - blockSize: R.sizes('blockSize'), - boxSize: R.sizes(['width', 'height']), - minWidth: R.sizes('minWidth'), - minInlineSize: R.sizes('minInlineSize'), - minHeight: R.sizes('minHeight'), - minBlockSize: R.sizes('minBlockSize'), - maxWidth: R.sizes('maxWidth'), - maxInlineSize: R.sizes('maxInlineSize'), - maxHeight: R.sizes('maxHeight'), - maxBlockSize: R.sizes('maxBlockSize'), - d: R.prop('display'), - overflow: !0, - overflowX: !0, - overflowY: !0, - overscrollBehavior: !0, - overscrollBehaviorX: !0, - overscrollBehaviorY: !0, - display: !0, - verticalAlign: !0, - boxSizing: !0, - boxDecorationBreak: !0, - float: R.propT('float', A.float), - objectFit: !0, - objectPosition: !0, - visibility: !0, - isolation: !0, - } - Object.assign(D, { - w: D.width, - h: D.height, - minW: D.minWidth, - maxW: D.maxWidth, - minH: D.minHeight, - maxH: D.maxHeight, - overscroll: D.overscrollBehavior, - overscrollX: D.overscrollBehaviorX, - overscrollY: D.overscrollBehaviorY, - }) - var W = { - listStyleType: !0, - listStylePosition: !0, - listStylePos: R.prop('listStylePosition'), - listStyleImage: !0, - listStyleImg: R.prop('listStyleImage'), - }, - J = t(4651), - N = { - border: '0px', - clip: 'rect(0, 0, 0, 0)', - width: '1px', - height: '1px', - margin: '-1px', - padding: '0px', - overflow: 'hidden', - whiteSpace: 'nowrap', - position: 'absolute', - }, - H = { - position: 'static', - width: 'auto', - height: 'auto', - clip: 'auto', - padding: '0', - margin: '0', - overflow: 'visible', - whiteSpace: 'normal', - }, - L = (r, e, t) => { - var n = {}, - o = (0, J.Wf)(r, e, {}) - for (var a in o) { - ;(a in t && null != t[a]) || (n[a] = o[a]) - } - return n - }, - $ = { - srOnly: { transform: (r) => (!0 === r ? N : 'focusable' === r ? H : {}) }, - layerStyle: { processResult: !0, transform: (r, e, t) => L(e, 'layerStyles.' + r, t) }, - textStyle: { processResult: !0, transform: (r, e, t) => L(e, 'textStyles.' + r, t) }, - apply: { processResult: !0, transform: (r, e, t) => L(e, r, t) }, - }, - Z = { - position: !0, - pos: R.prop('position'), - zIndex: R.prop('zIndex', 'zIndices'), - inset: R.spaceT(['top', 'right', 'bottom', 'left']), - insetX: R.spaceT(['left', 'right']), - insetInline: R.spaceT('insetInline'), - insetY: R.spaceT(['top', 'bottom']), - insetBlock: R.spaceT('insetBlock'), - top: R.spaceT('top'), - insetBlockStart: R.spaceT('insetBlockStart'), - bottom: R.spaceT('bottom'), - insetBlockEnd: R.spaceT('insetBlockEnd'), - left: R.spaceT('left'), - insetInlineStart: R.logical({ scale: 'space', property: { ltr: 'left', rtl: 'right' } }), - right: R.spaceT('right'), - insetInlineEnd: R.logical({ scale: 'space', property: { ltr: 'right', rtl: 'left' } }), - } - Object.assign(Z, { insetStart: Z.insetInlineStart, insetEnd: Z.insetInlineEnd }) - var V = { - ring: { transform: A.ring }, - ringColor: R.colors('--chakra-ring-color'), - ringOffset: R.prop('--chakra-ring-offset-width'), - ringOffsetColor: R.colors('--chakra-ring-offset-color'), - ringInset: R.prop('--chakra-ring-inset'), - }, - q = { - margin: R.spaceT('margin'), - marginTop: R.spaceT('marginTop'), - marginBlockStart: R.spaceT('marginBlockStart'), - marginRight: R.spaceT('marginRight'), - marginInlineEnd: R.spaceT('marginInlineEnd'), - marginBottom: R.spaceT('marginBottom'), - marginBlockEnd: R.spaceT('marginBlockEnd'), - marginLeft: R.spaceT('marginLeft'), - marginInlineStart: R.spaceT('marginInlineStart'), - marginX: R.spaceT(['marginInlineStart', 'marginInlineEnd']), - marginInline: R.spaceT('marginInline'), - marginY: R.spaceT(['marginTop', 'marginBottom']), - marginBlock: R.spaceT('marginBlock'), - padding: R.space('padding'), - paddingTop: R.space('paddingTop'), - paddingBlockStart: R.space('paddingBlockStart'), - paddingRight: R.space('paddingRight'), - paddingBottom: R.space('paddingBottom'), - paddingBlockEnd: R.space('paddingBlockEnd'), - paddingLeft: R.space('paddingLeft'), - paddingInlineStart: R.space('paddingInlineStart'), - paddingInlineEnd: R.space('paddingInlineEnd'), - paddingX: R.space(['paddingInlineStart', 'paddingInlineEnd']), - paddingInline: R.space('paddingInline'), - paddingY: R.space(['paddingTop', 'paddingBottom']), - paddingBlock: R.space('paddingBlock'), - } - Object.assign(q, { - m: q.margin, - mt: q.marginTop, - mr: q.marginRight, - me: q.marginInlineEnd, - marginEnd: q.marginInlineEnd, - mb: q.marginBottom, - ml: q.marginLeft, - ms: q.marginInlineStart, - marginStart: q.marginInlineStart, - mx: q.marginX, - my: q.marginY, - p: q.padding, - pt: q.paddingTop, - py: q.paddingY, - px: q.paddingX, - pb: q.paddingBottom, - pl: q.paddingLeft, - ps: q.paddingInlineStart, - paddingStart: q.paddingInlineStart, - pr: q.paddingRight, - pe: q.paddingInlineEnd, - paddingEnd: q.paddingInlineEnd, - }) - var G = { - textDecorationColor: R.colors('textDecorationColor'), - textDecoration: !0, - textDecor: { property: 'textDecoration' }, - textDecorationLine: !0, - textDecorationStyle: !0, - textDecorationThickness: !0, - textUnderlineOffset: !0, - textShadow: R.shadows('textShadow'), - }, - Y = { - clipPath: !0, - transform: R.propT('transform', A.transform), - transformOrigin: !0, - translateX: R.spaceT('--chakra-translate-x'), - translateY: R.spaceT('--chakra-translate-y'), - skewX: R.degreeT('--chakra-skew-x'), - skewY: R.degreeT('--chakra-skew-y'), - scaleX: R.prop('--chakra-scale-x'), - scaleY: R.prop('--chakra-scale-y'), - scale: R.prop(['--chakra-scale-x', '--chakra-scale-y']), - rotate: R.degreeT('--chakra-rotate'), - }, - X = { - transition: !0, - transitionDelay: !0, - animation: !0, - willChange: !0, - transitionDuration: R.prop('transitionDuration', 'transition.duration'), - transitionProperty: R.prop('transitionProperty', 'transition.property'), - transitionTimingFunction: R.prop('transitionTimingFunction', 'transition.easing'), - }, - U = { - fontFamily: R.prop('fontFamily', 'fonts'), - fontSize: R.prop('fontSize', 'fontSizes', A.px), - fontWeight: R.prop('fontWeight', 'fontWeights'), - lineHeight: R.prop('lineHeight', 'lineHeights'), - letterSpacing: R.prop('letterSpacing', 'letterSpacings'), - textAlign: !0, - fontStyle: !0, - wordBreak: !0, - overflowWrap: !0, - textOverflow: !0, - textTransform: !0, - whiteSpace: !0, - noOfLines: { - static: { - overflow: 'hidden', - textOverflow: 'ellipsis', - display: '-webkit-box', - WebkitBoxOrient: 'vertical', - WebkitLineClamp: 'var(--chakra-line-clamp)', - }, - property: '--chakra-line-clamp', - }, - isTruncated: { - transform(r) { - if (!0 === r) - return { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } - }, - }, - } - }, - 55608: function (r, e, t) { - 'use strict' - t.d(e, { - c0: function () { - return C - }, - }) - var n = t(73808) - function o(r) { - return (0, n.Kn)(r) && r.reference ? r.reference : String(r) - } - var a = function (r) { - for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) - t[n - 1] = arguments[n] - return t - .map(o) - .join(' ' + r + ' ') - .replace(/calc/g, '') - }, - i = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return 'calc(' + a('+', ...e) + ')' - }, - s = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return 'calc(' + a('-', ...e) + ')' - }, - l = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return 'calc(' + a('*', ...e) + ')' - }, - c = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return 'calc(' + a('/', ...e) + ')' - }, - u = (r) => { - var e = o(r) - return null == e || Number.isNaN(parseFloat(e)) - ? l(e, -1) - : String(e).startsWith('-') - ? String(e).slice(1) - : '-' + e - }, - d = Object.assign( - (r) => ({ - add: function () { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n] - return d(i(r, ...t)) - }, - subtract: function () { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n] - return d(s(r, ...t)) - }, - multiply: function () { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n] - return d(l(r, ...t)) - }, - divide: function () { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n] - return d(c(r, ...t)) - }, - negate: () => d(u(r)), - toString: () => r.toString(), - }), - { add: i, subtract: s, multiply: l, divide: c, negate: u }, - ), - f = t(88456) - function p(r) { - var e = (function (r, e) { - return void 0 === e && (e = '-'), r.replace(/\s+/g, e) - })(r.toString()) - return e.includes('\\.') - ? r - : !Number.isInteger(parseFloat(r.toString())) - ? e.replace('.', '\\.') - : r - } - function h(r, e) { - return 'var(' + p(r) + (e ? ', ' + e : '') + ')' - } - function b(r, e) { - return ( - void 0 === e && (e = ''), - '--' + - (function (r, e) { - return void 0 === e && (e = ''), [e, p(r)].filter(Boolean).join('-') - })(r, e) - ) - } - function g(r, e, t) { - var n = b(r, t) - return { variable: n, reference: h(n, e) } - } - function m() { - return (m = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function v(r, e) { - var t = { cssMap: {}, cssVars: {} } - return ( - (function (r, e) { - ;(function r(t, o) { - return ( - void 0 === o && (o = []), - (0, n.kJ)(t) - ? t.map((e, t) => r(e, [...o, String(t)])) - : (0, n.Kn)(t) - ? Object.fromEntries( - Object.entries(t).map((e) => { - var [t, n] = e - return [t, r(n, [...o, t])] - }), - ) - : e(t, o) - ) - })(r) - })(r, (r, n) => { - var o, - [a] = n, - i = null != (o = y[a]) ? o : y.defaultHandler, - { cssVars: s, cssMap: l } = i(n, r, e) - Object.assign(t.cssVars, s), Object.assign(t.cssMap, l) - }), - t - ) - } - var y = { - space: (r, e, t) => { - var n = y.defaultHandler(r, e, t), - [o, ...a] = r, - i = o + '.-' + a.join('.'), - s = r.join('-'), - { variable: l, reference: c } = g(s, void 0, t.cssVarPrefix), - u = d.negate(e), - f = d.negate(c) - return { - cssVars: n.cssVars, - cssMap: m({}, n.cssMap, { [i]: { value: '' + u, var: '' + l, varRef: f } }), - } - }, - defaultHandler: (r, e, t) => { - var n = r.join('.'), - o = r.join('-'), - { variable: a, reference: i } = g(o, void 0, t.cssVarPrefix) - return { cssVars: { [a]: e }, cssMap: { [n]: { value: e, var: a, varRef: i } } } - }, - }, - x = t(4651) - var w = [ - 'colors', - 'borders', - 'borderWidths', - 'borderStyles', - 'fonts', - 'fontSizes', - 'fontWeights', - 'letterSpacings', - 'lineHeights', - 'radii', - 'space', - 'shadows', - 'sizes', - 'zIndices', - 'transition', - 'blur', - ] - function S(r) { - var e = w - return (0, x.ei)(r, e) - } - function k(r) { - return (function (r, e) { - if (null == r) return {} - var t, - n, - o = {}, - a = Object.keys(r) - for (n = 0; n < a.length; n++) (t = a[n]), e.indexOf(t) >= 0 || (o[t] = r[t]) - return o - })(r, ['__cssMap', '__cssVars', '__breakpoints']) - } - function _() { - return (_ = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function C(r) { - var e, - t = k(r), - n = S(t), - o = null == (e = t.config) ? void 0 : e.cssVarPrefix, - { cssMap: a, cssVars: i } = v(n, { cssVarPrefix: o }) - return ( - Object.assign(t, { - __cssVars: _( - {}, - { - '--chakra-ring-inset': 'var(--chakra-empty,/*!*/ /*!*/)', - '--chakra-ring-offset-width': '0px', - '--chakra-ring-offset-color': '#fff', - '--chakra-ring-color': 'rgba(66, 153, 225, 0.6)', - '--chakra-ring-offset-shadow': '0 0 #0000', - '--chakra-ring-shadow': '0 0 #0000', - '--chakra-space-x-reverse': '0', - '--chakra-space-y-reverse': '0', - }, - i, - ), - __cssMap: a, - __breakpoints: (0, f.y)(t.breakpoints), - }), - t - ) - } - }, - 33565: function (r, e, t) { - 'use strict' - t.d(e, { - i: function () { - return f - }, - }) - var n = t(73808), - o = t(80658), - a = t(38554), - i = t.n(a), - s = t(28680), - l = t(25503), - c = (r, e) => r.startsWith('--') && (0, n.HD)(e) && !(0, n.FS)(e), - u = (r, e) => { - var t, n - if (null == e) return e - var o = (e) => { - var t, n - return null == (t = r.__cssMap) || null == (n = t[e]) ? void 0 : n.varRef - }, - a = (r) => { - var e - return null != (e = o(r)) ? e : r - }, - i = e.split(',').map((r) => r.trim()), - [s, l] = i - return (e = null != (t = null != (n = o(s)) ? n : a(l)) ? t : a(e)) - } - function d(r) { - var { configs: e = {}, pseudos: t = {}, theme: a } = r - return function r(s, l) { - void 0 === l && (l = !1) - var d = (0, o.Pu)(s, a), - f = ((r) => (e) => { - if (!e.__breakpoints) return r - var { isResponsive: t, toArrayValue: a, media: i } = e.__breakpoints, - s = {} - for (var l in r) { - var c = (0, o.Pu)(r[l], e) - if (null != c) - if (((c = (0, n.Kn)(c) && t(c) ? a(c) : c), Array.isArray(c))) - for (var u = c.slice(0, i.length).length, d = 0; d < u; d += 1) { - var f = null == i ? void 0 : i[d] - f ? ((s[f] = s[f] || {}), null != c[d] && (s[f][l] = c[d])) : (s[l] = c[d]) - } - else s[l] = c - } - return s - })(d)(a), - p = {} - for (var h in f) { - var b, - g, - m, - v, - y, - x = f[h], - w = (0, o.Pu)(x, a) - h in t && (h = t[h]), c(h, w) && (w = u(a, w)) - var S = e[h] - if ((!0 === S && (S = { property: h }), (0, n.Kn)(w))) { - var k - ;(p[h] = null != (k = p[h]) ? k : {}), (p[h] = i()({}, p[h], r(w, !0))) - } else { - var _ = - null != (b = null == (g = S) || null == g.transform ? void 0 : g.transform(w, a, d)) - ? b - : w - _ = null != (m = S) && m.processResult ? r(_, !0) : _ - var C = (0, o.Pu)(null == (v = S) ? void 0 : v.property, a) - if (!l && null != (y = S) && y.static) { - var A = (0, o.Pu)(S.static, a) - p = i()({}, p, A) - } - if (C && Array.isArray(C)) for (var E of C) p[E] = _ - else - C - ? '&' === C && (0, n.Kn)(_) - ? (p = i()({}, p, _)) - : (p[C] = _) - : (0, n.Kn)(_) - ? (p = i()({}, p, _)) - : (p[h] = _) - } - } - return p - } - } - var f = (r) => (e) => d({ theme: e, pseudos: s.v, configs: l.Ul })(r) - }, - 9421: function (r, e, t) { - 'use strict' - t.d(e, { - iv: function () { - return n.i - }, - isStyleProp: function () { - return i.ZR - }, - layoutPropNames: function () { - return i.oE - }, - propNames: function () { - return i.cC - }, - toCSSVar: function () { - return s.c0 - }, - }) - t(13205) - var n = t(33565), - o = t(41664) - t.o(o, 'isStyleProp') && - t.d(e, { - isStyleProp: function () { - return o.isStyleProp - }, - }), - t.o(o, 'layoutPropNames') && - t.d(e, { - layoutPropNames: function () { - return o.layoutPropNames - }, - }), - t.o(o, 'propNames') && - t.d(e, { - propNames: function () { - return o.propNames - }, - }), - t.o(o, 'toCSSVar') && - t.d(e, { - toCSSVar: function () { - return o.toCSSVar - }, - }), - t.o(o, 'useTheme') && - t.d(e, { - useTheme: function () { - return o.useTheme - }, - }) - var a = t(87759) - t.o(a, 'isStyleProp') && - t.d(e, { - isStyleProp: function () { - return a.isStyleProp - }, - }), - t.o(a, 'layoutPropNames') && - t.d(e, { - layoutPropNames: function () { - return a.layoutPropNames - }, - }), - t.o(a, 'propNames') && - t.d(e, { - propNames: function () { - return a.propNames - }, - }), - t.o(a, 'toCSSVar') && - t.d(e, { - toCSSVar: function () { - return a.toCSSVar - }, - }), - t.o(a, 'useTheme') && - t.d(e, { - useTheme: function () { - return a.useTheme - }, - }) - var i = t(25503), - s = t(55608) - }, - 28680: function (r, e, t) { - 'use strict' - t.d(e, { - v: function () { - return d - }, - _: function () { - return f - }, - }) - var n = t(4651), - o = (r) => r + ':focus &, ' + r + '[data-focus] &', - a = (r) => r + ':active &, ' + r + '[data-active] &', - i = (r) => r + ':disabled &, ' + r + '[data-disabled] &', - s = (r) => r + ':invalid &, ' + r + '[data-invalid] &', - l = (r) => r + ':checked &, ' + r + '[data-checked] &', - c = (r) => u(r, '[role=group]', '[data-group]', '.group'), - u = function (r) { - for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) - t[n - 1] = arguments[n] - return t.map(r).join(', ') - }, - d = { - _hover: '&:hover, &[data-hover]', - _active: '&:active, &[data-active]', - _focus: '&:focus, &[data-focus]', - _highlighted: '&[data-highlighted]', - _focusWithin: '&:focus-within', - _focusVisible: '&:focus-visible', - _disabled: '&[disabled], &[aria-disabled=true], &[data-disabled]', - _readOnly: '&[aria-readonly=true], &[readonly], &[data-readonly]', - _before: '&::before', - _after: '&::after', - _empty: '&:empty', - _expanded: '&[aria-expanded=true], &[data-expanded]', - _checked: '&[aria-checked=true], &[data-checked]', - _grabbed: '&[aria-grabbed=true], &[data-grabbed]', - _pressed: '&[aria-pressed=true], &[data-pressed]', - _invalid: '&[aria-invalid=true], &[data-invalid]', - _valid: '&[data-valid], &[data-state=valid]', - _loading: '&[data-loading], &[aria-busy=true]', - _selected: '&[aria-selected=true], &[data-selected]', - _hidden: '&[hidden], &[data-hidden]', - _autofill: '&:-webkit-autofill', - _even: '&:nth-of-type(even)', - _odd: '&:nth-of-type(odd)', - _first: '&:first-of-type', - _last: '&:last-of-type', - _notFirst: '&:not(:first-of-type)', - _notLast: '&:not(:last-of-type)', - _visited: '&:visited', - _activeLink: '&[aria-current=page]', - _activeStep: '&[aria-current=step]', - _indeterminate: '&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]', - _groupHover: c((r) => r + ':hover &, ' + r + '[data-hover] &'), - _groupFocus: c(o), - _groupActive: c(a), - _groupDisabled: c(i), - _groupInvalid: c(s), - _groupChecked: c(l), - _placeholder: '&::placeholder', - _fullScreen: '&:fullscreen', - _selection: '&::selection', - _rtl: '[dir=rtl] &', - _mediaDark: '@media (prefers-color-scheme: dark)', - _dark: '.chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]', - _light: '.chakra-ui-light &, [data-theme=light] &, &[data-theme=light]', - }, - f = (0, n.Yd)(d) - }, - 25503: function (r, e, t) { - 'use strict' - t.d(e, { - Ul: function () { - return c - }, - oE: function () { - return d - }, - cC: function () { - return f - }, - ZR: function () { - return h - }, - }) - var n = t(38554), - o = t.n(n), - a = t(4651), - i = t(13205), - s = t(28680) - function l() { - return (l = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var c = o()( - {}, - i.Oq, - i.Cg, - i.$_, - i.GQ, - i.bK, - i.hX, - i.v_, - i.Mw, - i.eC, - i.o_, - i.FK, - i.cE, - i.Dh, - i.cp, - i.QX, - i.vs, - i.pb, - i.eR, - ), - u = Object.assign({}, i.Dh, i.bK, i.GQ, i.eC, i.FK), - d = (0, a.Yd)(u), - f = [...(0, a.Yd)(c), ...s._], - p = l({}, c, s.v), - h = (r) => r in p - }, - 41664: function () {}, - 87759: function () {}, - 29676: function (r, e, t) { - 'use strict' - t.d(e, { - f6: function () { - return d - }, - Fg: function () { - return f - }, - Fo: function () { - return p - }, - yK: function () { - return h - }, - ZL: function () { - return b - }, - }) - var n = t(24738), - o = t(9421), - a = t(4651), - i = t(80658), - s = t(28500), - l = t(30495), - c = t(70917), - u = t(67294), - d = (r) => { - var { cssVarsRoot: e = ':host, :root', theme: t, children: n } = r, - a = u.useMemo(() => (0, o.toCSSVar)(t), [t]) - return u.createElement( - l.a, - { theme: a }, - u.createElement(c.Global, { styles: (r) => ({ [e]: r.__cssVars }) }), - n, - ) - } - function f() { - var r = u.useContext(l.T) - if (!r) - throw Error( - 'useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``', - ) - return r - } - var [p, h] = (0, s.k)({ - name: 'StylesContext', - errorMessage: - 'useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` ', - }), - b = () => { - var { colorMode: r } = (0, n.If)() - return u.createElement(c.Global, { - styles: (e) => { - var t = (0, a.Wf)(e, 'styles.global'), - n = (0, i.Pu)(t, { theme: e, colorMode: r }) - if (n) return (0, o.iv)(n)(e) - }, - }) - } - }, - 63108: function (r, e, t) { - 'use strict' - function n(r, e) { - return (t) => ('dark' === t.colorMode ? e : r) - } - function o(r) { - var { orientation: e, vertical: t, horizontal: n } = r - return e ? ('vertical' === e ? t : n) : {} - } - t.d(e, { - xJ: function () { - return n - }, - fL: function () { - return o - }, - }) - }, - 83035: function (r, e, t) { - 'use strict' - t.d(e, { - Z: function () { - return Be - }, - }) - var n = { - parts: ['container', 'button', 'panel', 'icon'], - baseStyle: { - container: { - borderTopWidth: '1px', - borderColor: 'inherit', - _last: { borderBottomWidth: '1px' }, - }, - button: { - transitionProperty: 'common', - transitionDuration: 'normal', - fontSize: '1rem', - _focus: { boxShadow: 'outline' }, - _hover: { bg: 'blackAlpha.50' }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - px: 4, - py: 2, - }, - panel: { pt: 2, px: 4, pb: 5 }, - icon: { fontSize: '1.25em' }, - }, - }, - o = t(17621), - a = t.n(o), - i = t(4651), - s = t(73808), - l = (r, e, t) => { - var n = (0, i.Wf)(r, 'colors.' + e, e) - return a()(n).isValid() ? n : t - }, - c = (r) => (e) => { - var t = l(e, r) - return a()(t).isDark() ? 'dark' : 'light' - }, - u = (r, e) => (t) => { - var n = l(t, r) - return a()(n).setAlpha(e).toRgbString() - } - function d(r, e) { - return ( - void 0 === r && (r = '1rem'), - void 0 === e && (e = 'rgba(255, 255, 255, 0.15)'), - { - backgroundImage: - 'linear-gradient(\n 45deg,\n ' + - e + - ' 25%,\n transparent 25%,\n transparent 50%,\n ' + - e + - ' 50%,\n ' + - e + - ' 75%,\n transparent 75%,\n transparent\n )', - backgroundSize: r + ' ' + r, - } - ) - } - function f(r) { - var e = a().random().toHexString() - return !r || (0, s.Qr)(r) - ? e - : r.string && r.colors - ? (function (r, e) { - var t = 0 - if (0 === r.length) return e[0] - for (var n = 0; n < r.length; n += 1) (t = r.charCodeAt(n) + ((t << 5) - t)), (t &= t) - return (t = ((t % e.length) + e.length) % e.length), e[t] - })(r.string, r.colors) - : r.string && !r.colors - ? (function (r) { - var e = 0 - if (0 === r.length) return e.toString() - for (var t = 0; t < r.length; t += 1) (e = r.charCodeAt(t) + ((e << 5) - e)), (e &= e) - for (var n = '#', o = 0; o < 3; o += 1) { - n += ('00' + ((e >> (8 * o)) & 255).toString(16)).substr(-2) - } - return n - })(r.string) - : r.colors && !r.string - ? (function (r) { - return r[Math.floor(Math.random() * r.length)] - })(r.colors) - : e - } - var p = t(63108) - function h(r) { - var { theme: e, colorScheme: t } = r, - n = l(e, t + '.100', t), - o = u(t + '.200', 0.16)(e) - return (0, p.xJ)(n, o)(r) - } - var b = { - parts: ['container', 'title', 'description', 'icon'], - baseStyle: { - container: { px: 4, py: 3 }, - title: { fontWeight: 'bold', lineHeight: 6, marginEnd: 2 }, - description: { lineHeight: 6 }, - icon: { flexShrink: 0, marginEnd: 3, w: 5, h: 6 }, - }, - variants: { - subtle: function (r) { - var { colorScheme: e } = r - return { - container: { bg: h(r) }, - icon: { color: (0, p.xJ)(e + '.500', e + '.200')(r) }, - } - }, - 'left-accent': function (r) { - var { colorScheme: e } = r - return { - container: { - paddingStart: 3, - borderStartWidth: '4px', - borderStartColor: (0, p.xJ)(e + '.500', e + '.200')(r), - bg: h(r), - }, - icon: { color: (0, p.xJ)(e + '.500', e + '.200')(r) }, - } - }, - 'top-accent': function (r) { - var { colorScheme: e } = r - return { - container: { - pt: 2, - borderTopWidth: '4px', - borderTopColor: (0, p.xJ)(e + '.500', e + '.200')(r), - bg: h(r), - }, - icon: { color: (0, p.xJ)(e + '.500', e + '.200')(r) }, - } - }, - solid: function (r) { - var { colorScheme: e } = r - return { - container: { - bg: (0, p.xJ)(e + '.500', e + '.200')(r), - color: (0, p.xJ)('white', 'gray.900')(r), - }, - } - }, - }, - defaultProps: { variant: 'subtle', colorScheme: 'blue' }, - }, - g = t(54681) - function m(r) { - return { - transform: 'translate(25%, 25%)', - borderRadius: 'full', - border: '0.2em solid', - borderColor: (0, p.xJ)('white', 'gray.800')(r), - } - } - function v(r) { - return { bg: (0, p.xJ)('gray.200', 'whiteAlpha.400')(r) } - } - function y(r) { - var { name: e, theme: t } = r, - n = e ? f({ string: e }) : 'gray.400', - o = ( - (r) => (e) => - 'dark' === c(r)(e) - )(n)(t), - a = 'white' - return ( - o || (a = 'gray.800'), - { bg: n, color: a, borderColor: (0, p.xJ)('white', 'gray.800')(r), verticalAlign: 'top' } - ) - } - function x(r) { - var e = g.Z[r] - return { - container: { width: r, height: r, fontSize: 'calc(' + (null != e ? e : r) + ' / 2.5)' }, - excessLabel: { width: r, height: r }, - label: { - fontSize: 'calc(' + (null != e ? e : r) + ' / 2.5)', - lineHeight: '100%' !== r ? (null != e ? e : r) : void 0, - }, - } - } - var w = { - parts: ['container', 'excessLabel', 'badge', 'label'], - baseStyle: (r) => ({ badge: m(r), excessLabel: v(r), container: y(r) }), - sizes: { - '2xs': x('4'), - xs: x('6'), - sm: x('8'), - md: x('12'), - lg: x('16'), - xl: x('24'), - '2xl': x('32'), - full: x('100%'), - }, - defaultProps: { size: 'md' }, - } - var S = { - baseStyle: { - px: 1, - textTransform: 'uppercase', - fontSize: 'xs', - borderRadius: 'sm', - fontWeight: 'bold', - }, - variants: { - solid: function (r) { - var { colorScheme: e, theme: t } = r, - n = u(e + '.500', 0.6)(t) - return { - bg: (0, p.xJ)(e + '.500', n)(r), - color: (0, p.xJ)('white', 'whiteAlpha.800')(r), - } - }, - subtle: function (r) { - var { colorScheme: e, theme: t } = r, - n = u(e + '.200', 0.16)(t) - return { - bg: (0, p.xJ)(e + '.100', n)(r), - color: (0, p.xJ)(e + '.800', e + '.200')(r), - } - }, - outline: function (r) { - var { colorScheme: e, theme: t } = r, - n = u(e + '.200', 0.8)(t), - o = l(t, e + '.500'), - a = (0, p.xJ)(o, n)(r) - return { color: a, boxShadow: 'inset 0 0 0px 1px ' + a } - }, - }, - defaultProps: { variant: 'subtle', colorScheme: 'gray' }, - }, - k = { - parts: ['container', 'item', 'link', 'separator'], - baseStyle: { - link: { - transitionProperty: 'common', - transitionDuration: 'fast', - transitionTimingFunction: 'ease-out', - cursor: 'pointer', - textDecoration: 'none', - outline: 'none', - color: 'inherit', - _hover: { textDecoration: 'underline' }, - _focus: { boxShadow: 'outline' }, - }, - }, - } - function _() { - return (_ = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function C(r) { - var { colorScheme: e, theme: t } = r - if ('gray' === e) - return { - color: (0, p.xJ)('inherit', 'whiteAlpha.900')(r), - _hover: { bg: (0, p.xJ)('gray.100', 'whiteAlpha.200')(r) }, - _active: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.300')(r) }, - } - var n = u(e + '.200', 0.12)(t), - o = u(e + '.200', 0.24)(t) - return { - color: (0, p.xJ)(e + '.600', e + '.200')(r), - bg: 'transparent', - _hover: { bg: (0, p.xJ)(e + '.50', n)(r) }, - _active: { bg: (0, p.xJ)(e + '.100', o)(r) }, - } - } - var A = { - yellow: { bg: 'yellow.400', color: 'black', hoverBg: 'yellow.500', activeBg: 'yellow.600' }, - cyan: { bg: 'cyan.400', color: 'black', hoverBg: 'cyan.500', activeBg: 'cyan.600' }, - } - var E = { - baseStyle: { - lineHeight: '1.2', - borderRadius: 'md', - fontWeight: 'semibold', - transitionProperty: 'common', - transitionDuration: 'normal', - _focus: { boxShadow: 'outline' }, - _disabled: { opacity: 0.4, cursor: 'not-allowed', boxShadow: 'none' }, - _hover: { _disabled: { bg: 'initial' } }, - }, - variants: { - ghost: C, - outline: function (r) { - var { colorScheme: e } = r, - t = (0, p.xJ)('gray.200', 'whiteAlpha.300')(r) - return _({ border: '1px solid', borderColor: 'gray' === e ? t : 'currentColor' }, C(r)) - }, - solid: function (r) { - var { colorScheme: e } = r - if ('gray' === e) { - var t = (0, p.xJ)('gray.100', 'whiteAlpha.200')(r) - return { - bg: t, - _hover: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.300')(r), _disabled: { bg: t } }, - _active: { bg: (0, p.xJ)('gray.300', 'whiteAlpha.400')(r) }, - } - } - var { - bg: n = e + '.500', - color: o = 'white', - hoverBg: a = e + '.600', - activeBg: i = e + '.700', - } = A[e] || {}, - s = (0, p.xJ)(n, e + '.200')(r) - return { - bg: s, - color: (0, p.xJ)(o, 'gray.800')(r), - _hover: { bg: (0, p.xJ)(a, e + '.300')(r), _disabled: { bg: s } }, - _active: { bg: (0, p.xJ)(i, e + '.400')(r) }, - } - }, - link: function (r) { - var { colorScheme: e } = r - return { - padding: 0, - height: 'auto', - lineHeight: 'normal', - verticalAlign: 'baseline', - color: (0, p.xJ)(e + '.500', e + '.200')(r), - _hover: { textDecoration: 'underline', _disabled: { textDecoration: 'none' } }, - _active: { color: (0, p.xJ)(e + '.700', e + '.500')(r) }, - } - }, - unstyled: { - bg: 'none', - color: 'inherit', - display: 'inline', - lineHeight: 'inherit', - m: 0, - p: 0, - }, - }, - sizes: { - lg: { h: 12, minW: 12, fontSize: 'lg', px: 6 }, - md: { h: 10, minW: 10, fontSize: 'md', px: 4 }, - sm: { h: 8, minW: 8, fontSize: 'sm', px: 3 }, - xs: { h: 6, minW: 6, fontSize: 'xs', px: 2 }, - }, - defaultProps: { variant: 'solid', size: 'md', colorScheme: 'gray' }, - } - function z(r) { - var { colorScheme: e } = r - return { - w: '100%', - transitionProperty: 'box-shadow', - transitionDuration: 'normal', - border: '2px solid', - borderRadius: 'sm', - borderColor: 'inherit', - color: 'white', - _checked: { - bg: (0, p.xJ)(e + '.500', e + '.200')(r), - borderColor: (0, p.xJ)(e + '.500', e + '.200')(r), - color: (0, p.xJ)('white', 'gray.900')(r), - _hover: { - bg: (0, p.xJ)(e + '.600', e + '.300')(r), - borderColor: (0, p.xJ)(e + '.600', e + '.300')(r), - }, - _disabled: { - borderColor: (0, p.xJ)('gray.200', 'transparent')(r), - bg: (0, p.xJ)('gray.200', 'whiteAlpha.300')(r), - color: (0, p.xJ)('gray.500', 'whiteAlpha.500')(r), - }, - }, - _indeterminate: { - bg: (0, p.xJ)(e + '.500', e + '.200')(r), - borderColor: (0, p.xJ)(e + '.500', e + '.200')(r), - color: (0, p.xJ)('white', 'gray.900')(r), - }, - _disabled: { - bg: (0, p.xJ)('gray.100', 'whiteAlpha.100')(r), - borderColor: (0, p.xJ)('gray.100', 'transparent')(r), - }, - _focus: { boxShadow: 'outline' }, - _invalid: { borderColor: (0, p.xJ)('red.500', 'red.300')(r) }, - } - } - var R = { userSelect: 'none', _disabled: { opacity: 0.4 } }, - B = { transitionProperty: 'transform', transitionDuration: 'normal' }, - j = { - parts: ['container', 'control', 'label', 'icon'], - baseStyle: (r) => ({ icon: B, control: z(r), label: R }), - sizes: { - sm: { - control: { h: 3, w: 3 }, - label: { fontSize: 'sm' }, - icon: { fontSize: '0.45rem' }, - }, - md: { - control: { w: 4, h: 4 }, - label: { fontSize: 'md' }, - icon: { fontSize: '0.625rem' }, - }, - lg: { - control: { w: 5, h: 5 }, - label: { fontSize: 'lg' }, - icon: { fontSize: '0.625rem' }, - }, - }, - defaultProps: { size: 'md', colorScheme: 'blue' }, - } - var O = { - baseStyle: function (r) { - return { - borderRadius: 'md', - transitionProperty: 'common', - transitionDuration: 'normal', - _disabled: { opacity: 0.4, cursor: 'not-allowed', boxShadow: 'none' }, - _hover: { bg: (0, p.xJ)('blackAlpha.100', 'whiteAlpha.100')(r) }, - _active: { bg: (0, p.xJ)('blackAlpha.200', 'whiteAlpha.200')(r) }, - _focus: { boxShadow: 'outline' }, - } - }, - sizes: { - lg: { w: '40px', h: '40px', fontSize: '16px' }, - md: { w: '32px', h: '32px', fontSize: '12px' }, - sm: { w: '24px', h: '24px', fontSize: '10px' }, - }, - defaultProps: { size: 'md' }, - }, - { variants: T, defaultProps: F } = S, - P = { - baseStyle: { fontFamily: 'mono', fontSize: 'sm', px: '0.2em', borderRadius: 'sm' }, - variants: T, - defaultProps: F, - }, - I = { baseStyle: { w: '100%', mx: 'auto', maxW: '60ch', px: '1rem' } }, - M = { - baseStyle: { opacity: 0.6, borderColor: 'inherit' }, - variants: { solid: { borderStyle: 'solid' }, dashed: { borderStyle: 'dashed' } }, - defaultProps: { variant: 'solid' }, - }, - D = { bg: 'blackAlpha.600', zIndex: 'modal' } - function W(r) { - var { isCentered: e, scrollBehavior: t } = r - return { - display: 'flex', - zIndex: 'modal', - justifyContent: 'center', - alignItems: e ? 'center' : 'flex-start', - overflow: 'inside' === t ? 'hidden' : 'auto', - } - } - function J(r) { - var { scrollBehavior: e } = r - return { - borderRadius: 'md', - bg: (0, p.xJ)('white', 'gray.700')(r), - color: 'inherit', - my: '3.75rem', - zIndex: 'modal', - maxH: 'inside' === e ? 'calc(100% - 7.5rem)' : void 0, - boxShadow: (0, p.xJ)('lg', 'dark-lg')(r), - } - } - var N = { px: 6, py: 4, fontSize: 'xl', fontWeight: 'semibold' }, - H = { position: 'absolute', top: 2, insetEnd: 3 } - function L(r) { - var { scrollBehavior: e } = r - return { px: 6, py: 2, flex: 1, overflow: 'inside' === e ? 'auto' : void 0 } - } - var $ = { px: 6, py: 4 } - function Z(r) { - return 'full' === r ? { dialog: { maxW: '100vw', minH: '100vh' } } : { dialog: { maxW: r } } - } - var V = { - parts: ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'], - baseStyle: (r) => ({ - overlay: D, - dialogContainer: W(r), - dialog: J(r), - header: N, - closeButton: H, - body: L(r), - footer: $, - }), - sizes: { - xs: Z('xs'), - sm: Z('sm'), - md: Z('md'), - lg: Z('lg'), - xl: Z('xl'), - '2xl': Z('2xl'), - '3xl': Z('3xl'), - '4xl': Z('4xl'), - '5xl': Z('5xl'), - '6xl': Z('6xl'), - full: Z('full'), - }, - defaultProps: { size: 'md' }, - } - function q() { - return (q = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function G(r) { - return 'full' === r ? { dialog: { maxW: '100vw', h: '100vh' } } : { dialog: { maxW: r } } - } - var Y = { bg: 'blackAlpha.600', zIndex: 'overlay' }, - X = { display: 'flex', zIndex: 'modal', justifyContent: 'center' } - function U(r) { - var { isFullHeight: e } = r - return q({}, e && { height: '100vh' }, { - zIndex: 'modal', - maxH: '100vh', - bg: (0, p.xJ)('white', 'gray.700')(r), - color: 'inherit', - boxShadow: (0, p.xJ)('lg', 'dark-lg')(r), - }) - } - var K = { px: 6, py: 4, fontSize: 'xl', fontWeight: 'semibold' }, - Q = { position: 'absolute', top: 2, insetEnd: 3 }, - rr = { px: 6, py: 2, flex: 1, overflow: 'auto' }, - er = { px: 6, py: 4 }, - tr = { - parts: V.parts, - baseStyle: (r) => ({ - overlay: Y, - dialogContainer: X, - dialog: U(r), - header: K, - closeButton: Q, - body: rr, - footer: er, - }), - sizes: { - xs: G('xs'), - sm: G('md'), - md: G('lg'), - lg: G('2xl'), - xl: G('4xl'), - full: G('full'), - }, - defaultProps: { size: 'xs' }, - }, - nr = { - parts: ['preview', 'input'], - baseStyle: { - preview: { - borderRadius: 'md', - py: '3px', - transitionProperty: 'common', - transitionDuration: 'normal', - }, - input: { - borderRadius: 'md', - py: '3px', - transitionProperty: 'common', - transitionDuration: 'normal', - width: 'full', - _focus: { boxShadow: 'outline' }, - _placeholder: { opacity: 0.6 }, - }, - }, - } - function or(r) { - return { marginStart: 1, color: (0, p.xJ)('red.500', 'red.300')(r) } - } - function ar(r) { - return { - mt: 2, - color: (0, p.xJ)('gray.500', 'whiteAlpha.600')(r), - lineHeight: 'normal', - fontSize: 'sm', - } - } - var ir = { - parts: ['requiredIndicator', 'helperText'], - baseStyle: (r) => ({ requiredIndicator: or(r), helperText: ar(r) }), - }, - sr = { - baseStyle: { - fontSize: 'md', - marginEnd: 3, - mb: 2, - fontWeight: 'medium', - transitionProperty: 'common', - transitionDuration: 'normal', - opacity: 1, - _disabled: { opacity: 0.4 }, - }, - }, - lr = { - baseStyle: { fontFamily: 'heading', fontWeight: 'bold' }, - sizes: { - '4xl': { fontSize: ['6xl', null, '7xl'], lineHeight: 1 }, - '3xl': { fontSize: ['5xl', null, '6xl'], lineHeight: 1 }, - '2xl': { fontSize: ['4xl', null, '5xl'], lineHeight: [1.2, null, 1] }, - xl: { fontSize: ['3xl', null, '4xl'], lineHeight: [1.33, null, 1.2] }, - lg: { fontSize: ['2xl', null, '3xl'], lineHeight: [1.33, null, 1.2] }, - md: { fontSize: 'xl', lineHeight: 1.2 }, - sm: { fontSize: 'md', lineHeight: 1.2 }, - xs: { fontSize: 'sm', lineHeight: 1.2 }, - }, - defaultProps: { size: 'xl' }, - }, - cr = { - lg: { fontSize: 'lg', px: 4, h: 12, borderRadius: 'md' }, - md: { fontSize: 'md', px: 4, h: 10, borderRadius: 'md' }, - sm: { fontSize: 'sm', px: 3, h: 8, borderRadius: 'sm' }, - xs: { fontSize: 'xs', px: 2, h: 6, borderRadius: 'sm' }, - } - function ur(r) { - var { focusBorderColor: e, errorBorderColor: t } = r - return { - focusBorderColor: e || (0, p.xJ)('blue.500', 'blue.300')(r), - errorBorderColor: t || (0, p.xJ)('red.500', 'red.300')(r), - } - } - var dr = { - parts: ['field', 'addon'], - baseStyle: { - field: { - width: '100%', - minWidth: 0, - outline: 0, - position: 'relative', - appearance: 'none', - transitionProperty: 'common', - transitionDuration: 'normal', - }, - }, - sizes: { - lg: { field: cr.lg, addon: cr.lg }, - md: { field: cr.md, addon: cr.md }, - sm: { field: cr.sm, addon: cr.sm }, - xs: { field: cr.xs, addon: cr.xs }, - }, - variants: { - outline: function (r) { - var { theme: e } = r, - { focusBorderColor: t, errorBorderColor: n } = ur(r) - return { - field: { - border: '1px solid', - borderColor: 'inherit', - bg: 'inherit', - _hover: { borderColor: (0, p.xJ)('gray.300', 'whiteAlpha.400')(r) }, - _readOnly: { boxShadow: 'none !important', userSelect: 'all' }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - _invalid: { borderColor: l(e, n), boxShadow: '0 0 0 1px ' + l(e, n) }, - _focus: { zIndex: 1, borderColor: l(e, t), boxShadow: '0 0 0 1px ' + l(e, t) }, - }, - addon: { - border: '1px solid', - borderColor: (0, p.xJ)('inherit', 'whiteAlpha.50')(r), - bg: (0, p.xJ)('gray.100', 'whiteAlpha.300')(r), - }, - } - }, - filled: function (r) { - var { theme: e } = r, - { focusBorderColor: t, errorBorderColor: n } = ur(r) - return { - field: { - border: '2px solid', - borderColor: 'transparent', - bg: (0, p.xJ)('gray.100', 'whiteAlpha.50')(r), - _hover: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.100')(r) }, - _readOnly: { boxShadow: 'none !important', userSelect: 'all' }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - _invalid: { borderColor: l(e, n) }, - _focus: { bg: 'transparent', borderColor: l(e, t) }, - }, - addon: { - border: '2px solid', - borderColor: 'transparent', - bg: (0, p.xJ)('gray.100', 'whiteAlpha.50')(r), - }, - } - }, - flushed: function (r) { - var { theme: e } = r, - { focusBorderColor: t, errorBorderColor: n } = ur(r) - return { - field: { - borderBottom: '1px solid', - borderColor: 'inherit', - borderRadius: 0, - px: 0, - bg: 'transparent', - _readOnly: { boxShadow: 'none !important', userSelect: 'all' }, - _invalid: { borderColor: l(e, n), boxShadow: '0px 1px 0px 0px ' + l(e, n) }, - _focus: { borderColor: l(e, t), boxShadow: '0px 1px 0px 0px ' + l(e, t) }, - }, - addon: { - borderBottom: '2px solid', - borderColor: 'inherit', - borderRadius: 0, - px: 0, - bg: 'transparent', - }, - } - }, - unstyled: { - field: { bg: 'transparent', px: 0, height: 'auto' }, - addon: { bg: 'transparent', px: 0, height: 'auto' }, - }, - }, - defaultProps: { size: 'md', variant: 'outline' }, - } - var fr = { - baseStyle: function (r) { - return { - bg: (0, p.xJ)('gray.100', 'whiteAlpha')(r), - borderRadius: 'md', - borderWidth: '1px', - borderBottomWidth: '3px', - fontSize: '0.8em', - fontWeight: 'bold', - lineHeight: 'normal', - px: '0.4em', - whiteSpace: 'nowrap', - } - }, - }, - pr = { - baseStyle: { - transitionProperty: 'common', - transitionDuration: 'fast', - transitionTimingFunction: 'ease-out', - cursor: 'pointer', - textDecoration: 'none', - outline: 'none', - color: 'inherit', - _hover: { textDecoration: 'underline' }, - _focus: { boxShadow: 'outline' }, - }, - }, - hr = { - parts: ['container', 'item', 'icon'], - baseStyle: { - container: {}, - item: {}, - icon: { marginEnd: '0.5rem', display: 'inline', verticalAlign: 'text-bottom' }, - }, - } - function br(r) { - return { - bg: (0, p.xJ)('#fff', 'gray.700')(r), - boxShadow: (0, p.xJ)('sm', 'dark-lg')(r), - color: 'inherit', - minW: '3xs', - py: '2', - zIndex: 1, - borderRadius: 'md', - borderWidth: '1px', - } - } - function gr(r) { - return { - py: '0.4rem', - px: '0.8rem', - transitionProperty: 'background', - transitionDuration: 'ultra-fast', - transitionTimingFunction: 'ease-in', - _focus: { bg: (0, p.xJ)('gray.100', 'whiteAlpha.100')(r) }, - _active: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.200')(r) }, - _expanded: { bg: (0, p.xJ)('gray.100', 'whiteAlpha.100')(r) }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - } - } - var mr, - vr = { mx: 4, my: 2, fontWeight: 'semibold', fontSize: 'sm' }, - yr = { opacity: 0.6 }, - xr = { - border: 0, - borderBottom: '1px solid', - borderColor: 'inherit', - my: '0.5rem', - opacity: 0.6, - }, - wr = { transitionProperty: 'common', transitionDuration: 'normal' }, - Sr = { - parts: ['item', 'command', 'list', 'button', 'groupTitle', 'divider'], - baseStyle: (r) => ({ - button: wr, - list: br(r), - item: gr(r), - groupTitle: vr, - command: yr, - divider: xr, - }), - }, - kr = t(35268) - function _r() { - return (_r = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var { variants: Cr, defaultProps: Ar } = dr, - Er = { - '--number-input-stepper-width': '24px', - '--number-input-field-padding': 'calc(var(--number-input-stepper-width) + 0.5rem)', - }, - zr = null == (mr = dr.baseStyle) ? void 0 : mr.field, - Rr = { width: 'var(--number-input-stepper-width)' } - function Br(r) { - return { - borderStart: '1px solid', - borderStartColor: (0, p.xJ)('inherit', 'whiteAlpha.300')(r), - color: (0, p.xJ)('inherit', 'whiteAlpha.800')(r), - _active: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.300')(r) }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - } - } - function jr(r) { - var e = dr.sizes[r], - t = { lg: 'md', md: 'md', sm: 'sm', xs: 'sm' }, - n = kr.Z.fontSizes[e.field.fontSize] - return { - field: _r({}, e.field, { - paddingInlineEnd: 'var(--number-input-field-padding)', - verticalAlign: 'top', - }), - stepper: { - fontSize: 'calc(' + n + ' * 0.75)', - _first: { borderTopEndRadius: t[r] }, - _last: { borderBottomEndRadius: t[r], mt: '-1px', borderTopWidth: 1 }, - }, - } - } - var Or = { - parts: ['root', 'field', 'stepper', 'stepperGroup'], - baseStyle: (r) => ({ root: Er, field: zr, stepperGroup: Rr, stepper: Br(r) }), - sizes: { xs: jr('xs'), sm: jr('sm'), md: jr('md'), lg: jr('lg') }, - variants: Cr, - defaultProps: Ar, - } - function Tr() { - return (Tr = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var Fr = { - baseStyle: Tr({}, dr.baseStyle.field, { textAlign: 'center' }), - sizes: { - lg: { fontSize: 'lg', w: 12, h: 12, borderRadius: 'md' }, - md: { fontSize: 'md', w: 10, h: 10, borderRadius: 'md' }, - sm: { fontSize: 'sm', w: 8, h: 8, borderRadius: 'sm' }, - xs: { fontSize: 'xs', w: 6, h: 6, borderRadius: 'sm' }, - }, - variants: { - outline: (r) => dr.variants.outline(r).field, - flushed: (r) => dr.variants.flushed(r).field, - filled: (r) => dr.variants.filled(r).field, - unstyled: dr.variants.unstyled.field, - }, - defaultProps: dr.defaultProps, - }, - Pr = { zIndex: 10 } - function Ir(r) { - return { - '--popover-bg': 'colors.' + (0, p.xJ)('white', 'gray.700')(r), - bg: 'var(--popover-bg)', - '--popper-arrow-bg': 'var(--popover-bg)', - '--popper-arrow-shadow-color': 'colors.' + (0, p.xJ)('gray.200', 'whiteAlpha.300')(r), - width: 'xs', - border: '1px solid', - borderColor: 'inherit', - borderRadius: 'md', - boxShadow: 'sm', - zIndex: 'inherit', - _focus: { outline: 0, boxShadow: 'outline' }, - } - } - var Mr = { px: 3, py: 2, borderBottomWidth: '1px' }, - Dr = { px: 3, py: 2 }, - Wr = { px: 3, py: 2, borderTopWidth: '1px' }, - Jr = { - parts: ['popper', 'content', 'header', 'body', 'footer', 'arrow'], - baseStyle: (r) => ({ - popper: Pr, - content: Ir(r), - header: Mr, - body: Dr, - footer: Wr, - arrow: {}, - }), - } - function Nr() { - return (Nr = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var Hr = { lineHeight: '1', fontSize: '0.25em', fontWeight: 'bold', color: 'white' } - function Lr(r) { - return { bg: (0, p.xJ)('gray.100', 'whiteAlpha.300')(r) } - } - function $r(r) { - return Nr( - { transitionProperty: 'common', transitionDuration: 'slow' }, - (function (r) { - var { colorScheme: e, theme: t, isIndeterminate: n, hasStripe: o } = r, - a = (0, p.xJ)(d(), d('1rem', 'rgba(0,0,0,0.1)'))(r), - i = (0, p.xJ)(e + '.500', e + '.200')(r), - s = - 'linear-gradient(\n to right,\n transparent 0%,\n ' + - l(t, i) + - ' 50%,\n transparent 100%\n )' - return Nr({}, !n && o && a, n ? { bgImage: s } : { bgColor: i }) - })(r), - ) - } - var Zr = { - parts: ['track', 'filledTrack', 'label'], - sizes: { - xs: { track: { h: '0.25rem' } }, - sm: { track: { h: '0.5rem' } }, - md: { track: { h: '0.75rem' } }, - lg: { track: { h: '1rem' } }, - }, - baseStyle: (r) => ({ label: Hr, filledTrack: $r(r), track: Lr(r) }), - defaultProps: { size: 'md', colorScheme: 'blue' }, - } - function Vr() { - return (Vr = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function qr(r) { - var { control: e } = j.baseStyle(r) - return Vr({}, e, { - borderRadius: 'full', - _checked: Vr({}, e._checked, { - _before: { - content: '""', - display: 'inline-block', - pos: 'relative', - w: '50%', - h: '50%', - borderRadius: '50%', - bg: 'currentColor', - }, - }), - }) - } - var Gr = { - parts: ['container', 'control', 'label'], - baseStyle: (r) => ({ label: j.baseStyle(r).label, control: qr(r) }), - sizes: { - md: { control: { w: 4, h: 4 }, label: { fontSize: 'md' } }, - lg: { control: { w: 5, h: 5 }, label: { fontSize: 'lg' } }, - sm: { control: { width: 3, height: 3 }, label: { fontSize: 'sm' } }, - }, - defaultProps: { size: 'md', colorScheme: 'blue' }, - }, - Yr = t(38554) - function Xr() { - return (Xr = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - function Ur(r) { - return Xr({}, dr.baseStyle.field, { - appearance: 'none', - paddingBottom: '1px', - lineHeight: 'normal', - '> option, > optgroup': { bg: (0, p.xJ)('white', 'gray.700')(r) }, - }) - } - var Kr = { - width: '1.5rem', - height: '100%', - insetEnd: '0.5rem', - position: 'relative', - color: 'currentColor', - fontSize: '1.25rem', - _disabled: { opacity: 0.5 }, - }, - Qr = { - parts: ['field', 'icon'], - baseStyle: (r) => ({ field: Ur(r), icon: Kr }), - sizes: t.n(Yr)()({}, dr.sizes, { xs: { icon: { insetEnd: '0.25rem' } } }), - variants: dr.variants, - defaultProps: dr.defaultProps, - }, - re = t(70917), - ee = (r, e) => - (0, re.keyframes)({ - from: { borderColor: r, background: r }, - to: { borderColor: e, background: e }, - }), - te = { - baseStyle: (r) => { - var e = (0, p.xJ)('gray.100', 'gray.800')(r), - t = (0, p.xJ)('gray.400', 'gray.600')(r), - { startColor: n = e, endColor: o = t, speed: a, theme: i } = r, - s = l(i, n), - c = l(i, o) - return { - opacity: 0.7, - borderRadius: '2px', - borderColor: s, - background: c, - animation: a + 's linear infinite alternate ' + ee(s, c), - } - }, - }, - ne = { - baseStyle: (r) => ({ - borderRadius: 'md', - fontWeight: 'semibold', - _focus: { - boxShadow: 'outline', - padding: '1rem', - position: 'fixed', - top: '1.5rem', - insetStart: '1.5rem', - bg: (0, p.xJ)('white', 'gray.700')(r), - }, - }), - } - function oe() { - return (oe = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var ae = (r) => { - var { orientation: e } = r - return oe( - { _disabled: { opacity: 0.6, cursor: 'default', pointerEvents: 'none' } }, - (0, p.fL)({ orientation: e, vertical: { h: '100%' }, horizontal: { w: '100%' } }), - ) - } - function ie(r) { - return { - borderRadius: 'sm', - bg: (0, p.xJ)('gray.200', 'whiteAlpha.200')(r), - _disabled: { bg: (0, p.xJ)('gray.300', 'whiteAlpha.300')(r) }, - } - } - function se(r) { - return oe( - { - zIndex: 1, - borderRadius: 'full', - bg: 'white', - boxShadow: 'base', - border: '1px solid', - borderColor: 'transparent', - transitionProperty: 'transform', - transitionDuration: 'normal', - _focus: { boxShadow: 'outline' }, - _disabled: { bg: 'gray.300' }, - }, - (function (r) { - return (0, p.fL)({ - orientation: r.orientation, - vertical: { - left: '50%', - transform: 'translateX(-50%)', - _active: { transform: 'translateX(-50%) scale(1.15)' }, - }, - horizontal: { - top: '50%', - transform: 'translateY(-50%)', - _active: { transform: 'translateY(-50%) scale(1.15)' }, - }, - }) - })(r), - ) - } - function le(r) { - var { colorScheme: e } = r - return { bg: (0, p.xJ)(e + '.500', e + '.200')(r) } - } - var ce = { - parts: ['container', 'thumb', 'track', 'filledTrack'], - sizes: { - lg: function (r) { - return { - thumb: { w: '16px', h: '16px' }, - track: (0, p.fL)({ - orientation: r.orientation, - horizontal: { h: '4px' }, - vertical: { w: '4px' }, - }), - } - }, - md: function (r) { - return { - thumb: { w: '14px', h: '14px' }, - track: (0, p.fL)({ - orientation: r.orientation, - horizontal: { h: '4px' }, - vertical: { w: '4px' }, - }), - } - }, - sm: function (r) { - return { - thumb: { w: '10px', h: '10px' }, - track: (0, p.fL)({ - orientation: r.orientation, - horizontal: { h: '2px' }, - vertical: { w: '2px' }, - }), - } - }, - }, - baseStyle: (r) => ({ container: ae(r), track: ie(r), thumb: se(r), filledTrack: le(r) }), - defaultProps: { size: 'md', colorScheme: 'blue' }, - }, - ue = { - baseStyle: { width: 'var(--spinner-size)', height: 'var(--spinner-size)' }, - sizes: { - xs: { '--spinner-size': '0.75rem' }, - sm: { '--spinner-size': '1rem' }, - md: { '--spinner-size': '1.5rem' }, - lg: { '--spinner-size': '2rem' }, - xl: { '--spinner-size': '3rem' }, - }, - defaultProps: { size: 'md' }, - }, - de = { - parts: ['label', 'number', 'icon', 'helpText'], - baseStyle: { - label: { fontWeight: 'medium' }, - helpText: { opacity: 0.8, marginBottom: 2 }, - number: { verticalAlign: 'baseline', fontWeight: 'semibold' }, - icon: { marginEnd: 1, w: '14px', h: '14px', verticalAlign: 'middle' }, - }, - sizes: { - md: { - label: { fontSize: 'sm' }, - helpText: { fontSize: 'sm' }, - number: { fontSize: '2xl' }, - }, - }, - defaultProps: { size: 'md' }, - } - function fe(r) { - var { colorScheme: e } = r - return { - borderRadius: 'full', - p: '2px', - width: 'var(--slider-track-width)', - height: 'var(--slider-track-height)', - transitionProperty: 'common', - transitionDuration: 'fast', - bg: (0, p.xJ)('gray.300', 'whiteAlpha.400')(r), - _focus: { boxShadow: 'outline' }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - _checked: { bg: (0, p.xJ)(e + '.500', e + '.200')(r) }, - } - } - var pe = { - bg: 'white', - transitionProperty: 'transform', - transitionDuration: 'normal', - borderRadius: 'inherit', - width: 'var(--slider-track-height)', - height: 'var(--slider-track-height)', - _checked: { transform: 'translateX(var(--slider-thumb-x))' }, - }, - he = { - parts: ['container', 'track', 'thumb'], - baseStyle: (r) => ({ - container: { - '--slider-track-diff': 'calc(var(--slider-track-width) - var(--slider-track-height))', - '--slider-thumb-x': 'var(--slider-track-diff)', - _rtl: { '--slider-thumb-x': 'calc(-1 * var(--slider-track-diff))' }, - }, - track: fe(r), - thumb: pe, - }), - sizes: { - sm: { - container: { '--slider-track-width': '1.375rem', '--slider-track-height': '0.75rem' }, - }, - md: { - container: { '--slider-track-width': '1.875rem', '--slider-track-height': '1rem' }, - }, - lg: { - container: { '--slider-track-width': '2.875rem', '--slider-track-height': '1.5rem' }, - }, - }, - defaultProps: { size: 'md', colorScheme: 'blue' }, - } - function be() { - return (be = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var ge = { '&[data-is-numeric=true]': { textAlign: 'end' } }, - me = { - parts: ['table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption'], - baseStyle: { - table: { - fontVariantNumeric: 'lining-nums tabular-nums', - borderCollapse: 'collapse', - width: 'full', - }, - th: { - fontFamily: 'heading', - fontWeight: 'bold', - textTransform: 'uppercase', - letterSpacing: 'wider', - textAlign: 'start', - }, - td: { textAlign: 'start' }, - caption: { mt: 4, fontFamily: 'heading', textAlign: 'center', fontWeight: 'medium' }, - }, - variants: { - simple: (r) => { - var { colorScheme: e } = r - return { - th: be( - { - color: (0, p.xJ)('gray.600', 'gray.400')(r), - borderBottom: '1px', - borderColor: (0, p.xJ)(e + '.100', e + '.700')(r), - }, - ge, - ), - td: be( - { borderBottom: '1px', borderColor: (0, p.xJ)(e + '.100', e + '.700')(r) }, - ge, - ), - caption: { color: (0, p.xJ)('gray.600', 'gray.100')(r) }, - tfoot: { tr: { '&:last-of-type': { th: { borderBottomWidth: 0 } } } }, - } - }, - striped: (r) => { - var { colorScheme: e } = r - return { - th: be( - { - color: (0, p.xJ)('gray.600', 'gray.400')(r), - borderBottom: '1px', - borderColor: (0, p.xJ)(e + '.100', e + '.700')(r), - }, - ge, - ), - td: be( - { borderBottom: '1px', borderColor: (0, p.xJ)(e + '.100', e + '.700')(r) }, - ge, - ), - caption: { color: (0, p.xJ)('gray.600', 'gray.100')(r) }, - tbody: { - tr: { - '&:nth-of-type(odd)': { - 'th, td': { - borderBottomWidth: '1px', - borderColor: (0, p.xJ)(e + '.100', e + '.700')(r), - }, - td: { background: (0, p.xJ)(e + '.100', e + '.700')(r) }, - }, - }, - }, - tfoot: { tr: { '&:last-of-type': { th: { borderBottomWidth: 0 } } } }, - } - }, - unstyled: {}, - }, - sizes: { - sm: { - th: { px: '4', py: '1', lineHeight: '4', fontSize: 'xs' }, - td: { px: '4', py: '2', fontSize: 'sm', lineHeight: '4' }, - caption: { px: '4', py: '2', fontSize: 'xs' }, - }, - md: { - th: { px: '6', py: '3', lineHeight: '4', fontSize: 'xs' }, - td: { px: '6', py: '4', lineHeight: '5' }, - caption: { px: '6', py: '2', fontSize: 'sm' }, - }, - lg: { - th: { px: '8', py: '4', lineHeight: '5', fontSize: 'sm' }, - td: { px: '8', py: '5', lineHeight: '6' }, - caption: { px: '6', py: '2', fontSize: 'md' }, - }, - }, - defaultProps: { variant: 'simple', size: 'md', colorScheme: 'gray' }, - } - function ve(r) { - var { orientation: e } = r - return { display: 'vertical' === e ? 'flex' : 'block' } - } - function ye(r) { - var { isFitted: e } = r - return { - flex: e ? 1 : void 0, - transitionProperty: 'common', - transitionDuration: 'normal', - _focus: { zIndex: 1, boxShadow: 'outline' }, - } - } - function xe(r) { - var { align: e = 'start', orientation: t } = r - return { - justifyContent: { end: 'flex-end', center: 'center', start: 'flex-start' }[e], - flexDirection: 'vertical' === t ? 'column' : 'row', - } - } - var we = { p: 4 } - var Se = { - parts: ['root', 'tablist', 'tab', 'tabpanels', 'tabpanel', 'indicator'], - baseStyle: (r) => ({ root: ve(r), tab: ye(r), tablist: xe(r), tabpanel: we }), - sizes: { - sm: { tab: { py: 1, px: 4, fontSize: 'sm' } }, - md: { tab: { fontSize: 'md', py: 2, px: 4 } }, - lg: { tab: { fontSize: 'lg', py: 3, px: 4 } }, - }, - variants: { - line: function (r) { - var { colorScheme: e, orientation: t } = r, - n = 'vertical' === t ? 'borderStart' : 'borderBottom' - return { - tablist: { [n]: '2px solid', borderColor: 'inherit' }, - tab: { - [n]: '2px solid', - borderColor: 'transparent', - ['vertical' === t ? 'marginStart' : 'marginBottom']: '-2px', - _selected: { - color: (0, p.xJ)(e + '.600', e + '.300')(r), - borderColor: 'currentColor', - }, - _active: { bg: (0, p.xJ)('gray.200', 'whiteAlpha.300')(r) }, - _disabled: { opacity: 0.4, cursor: 'not-allowed' }, - }, - } - }, - enclosed: function (r) { - var { colorScheme: e } = r - return { - tab: { - borderTopRadius: 'md', - border: '1px solid', - borderColor: 'transparent', - mb: '-1px', - _selected: { - color: (0, p.xJ)(e + '.600', e + '.300')(r), - borderColor: 'inherit', - borderBottomColor: (0, p.xJ)('white', 'gray.800')(r), - }, - }, - tablist: { mb: '-1px', borderBottom: '1px solid', borderColor: 'inherit' }, - } - }, - 'enclosed-colored': function (r) { - var { colorScheme: e } = r - return { - tab: { - border: '1px solid', - borderColor: 'inherit', - bg: (0, p.xJ)('gray.50', 'whiteAlpha.50')(r), - mb: '-1px', - _notLast: { marginEnd: '-1px' }, - _selected: { - bg: (0, p.xJ)('#fff', 'gray.800')(r), - color: (0, p.xJ)(e + '.600', e + '.300')(r), - borderColor: 'inherit', - borderTopColor: 'currentColor', - borderBottomColor: 'transparent', - }, - }, - tablist: { mb: '-1px', borderBottom: '1px solid', borderColor: 'inherit' }, - } - }, - 'soft-rounded': function (r) { - var { colorScheme: e, theme: t } = r - return { - tab: { - borderRadius: 'full', - fontWeight: 'semibold', - color: 'gray.600', - _selected: { color: l(t, e + '.700'), bg: l(t, e + '.100') }, - }, - } - }, - 'solid-rounded': function (r) { - var { colorScheme: e } = r - return { - tab: { - borderRadius: 'full', - fontWeight: 'semibold', - color: (0, p.xJ)('gray.600', 'inherit')(r), - _selected: { - color: (0, p.xJ)('#fff', 'gray.800')(r), - bg: (0, p.xJ)(e + '.600', e + '.300')(r), - }, - }, - } - }, - unstyled: {}, - }, - defaultProps: { size: 'md', variant: 'line', colorScheme: 'blue' }, - }, - ke = { - parts: ['container', 'label', 'closeButton'], - variants: { - subtle: (r) => ({ container: S.variants.subtle(r) }), - solid: (r) => ({ container: S.variants.solid(r) }), - outline: (r) => ({ container: S.variants.outline(r) }), - }, - baseStyle: { - container: { - fontWeight: 'medium', - lineHeight: 1.2, - outline: 0, - _focus: { boxShadow: 'outline' }, - }, - label: { lineHeight: 1.2 }, - closeButton: { - fontSize: '18px', - w: '1.25rem', - h: '1.25rem', - transitionProperty: 'common', - transitionDuration: 'normal', - borderRadius: 'full', - marginStart: '0.375rem', - marginEnd: '-1', - opacity: 0.5, - _disabled: { opacity: 0.4 }, - _focus: { boxShadow: 'outline', bg: 'rgba(0, 0, 0, 0.14)' }, - _hover: { opacity: 0.8 }, - _active: { opacity: 1 }, - }, - }, - sizes: { - sm: { - container: { - minH: '1.25rem', - minW: '1.25rem', - fontSize: 'xs', - px: 2, - borderRadius: 'md', - }, - closeButton: { marginEnd: '-2px', marginStart: '0.35rem' }, - }, - md: { - container: { - minH: '1.5rem', - minW: '1.5rem', - fontSize: 'sm', - borderRadius: 'md', - px: 2, - }, - }, - lg: { container: { minH: 8, minW: 8, fontSize: 'md', borderRadius: 'md', px: 3 } }, - }, - defaultProps: { size: 'md', variant: 'subtle', colorScheme: 'gray' }, - } - function _e() { - return (_e = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var Ce = _e({}, dr.baseStyle.field, { - paddingY: '8px', - minHeight: '80px', - lineHeight: 'short', - verticalAlign: 'top', - }), - Ae = { - outline: (r) => dr.variants.outline(r).field, - flushed: (r) => dr.variants.flushed(r).field, - filled: (r) => dr.variants.filled(r).field, - unstyled: dr.variants.unstyled.field, - }, - Ee = { - xs: dr.sizes.xs.field, - sm: dr.sizes.sm.field, - md: dr.sizes.md.field, - lg: dr.sizes.lg.field, - } - function ze(r) { - return { color: (0, p.xJ)('red.500', 'red.300')(r), mt: 2, fontSize: 'sm' } - } - function Re(r) { - return { marginEnd: '0.5em', color: (0, p.xJ)('red.500', 'red.300')(r) } - } - var Be = { - Accordion: n, - Alert: b, - Avatar: w, - Badge: S, - Breadcrumb: k, - Button: E, - Checkbox: j, - CloseButton: O, - Code: P, - Container: I, - Divider: M, - Drawer: tr, - Editable: nr, - Form: ir, - FormLabel: sr, - Heading: lr, - Input: dr, - Kbd: fr, - Link: pr, - List: hr, - Menu: Sr, - Modal: V, - NumberInput: Or, - PinInput: Fr, - Popover: Jr, - Progress: Zr, - Radio: Gr, - Select: Qr, - Skeleton: te, - SkipLink: ne, - Slider: ce, - Spinner: ue, - Stat: de, - Switch: he, - Table: me, - Tabs: Se, - Tag: ke, - Textarea: { - baseStyle: Ce, - sizes: Ee, - variants: Ae, - defaultProps: { size: 'md', variant: 'outline' }, - }, - Tooltip: { - baseStyle: function (r) { - return { - '--tooltip-bg': 'colors.' + (0, p.xJ)('gray.700', 'gray.300')(r), - px: '8px', - py: '2px', - bg: 'var(--tooltip-bg)', - '--popper-arrow-bg': 'var(--tooltip-bg)', - color: (0, p.xJ)('whiteAlpha.900', 'gray.900')(r), - borderRadius: 'sm', - fontWeight: 'medium', - fontSize: 'sm', - boxShadow: 'md', - maxW: '320px', - zIndex: 'tooltip', - } - }, - }, - FormError: { parts: ['text', 'icon'], baseStyle: (r) => ({ text: ze(r), icon: Re(r) }) }, - } - }, - 42009: function (r, e, t) { - 'use strict' - t.d(e, { - Z: function () { - return b - }, - }) - var n = { - none: 0, - '1px': '1px solid', - '2px': '2px solid', - '4px': '4px solid', - '8px': '8px solid', - }, - o = t(80658) - function a() { - return (a = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var i, - s = - ((i = { sm: '30em', md: '48em', lg: '62em', xl: '80em', '2xl': '96em' }), - (0, o.ZK)({ - condition: !0, - message: [ - '[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon', - 'simply pass the breakpoints as an object. Remove the createBreakpoint(..) call', - ].join(''), - }), - a({ base: '0em' }, i)), - l = { - transparent: 'transparent', - current: 'currentColor', - black: '#000000', - white: '#FFFFFF', - whiteAlpha: { - 50: 'rgba(255, 255, 255, 0.04)', - 100: 'rgba(255, 255, 255, 0.06)', - 200: 'rgba(255, 255, 255, 0.08)', - 300: 'rgba(255, 255, 255, 0.16)', - 400: 'rgba(255, 255, 255, 0.24)', - 500: 'rgba(255, 255, 255, 0.36)', - 600: 'rgba(255, 255, 255, 0.48)', - 700: 'rgba(255, 255, 255, 0.64)', - 800: 'rgba(255, 255, 255, 0.80)', - 900: 'rgba(255, 255, 255, 0.92)', - }, - blackAlpha: { - 50: 'rgba(0, 0, 0, 0.04)', - 100: 'rgba(0, 0, 0, 0.06)', - 200: 'rgba(0, 0, 0, 0.08)', - 300: 'rgba(0, 0, 0, 0.16)', - 400: 'rgba(0, 0, 0, 0.24)', - 500: 'rgba(0, 0, 0, 0.36)', - 600: 'rgba(0, 0, 0, 0.48)', - 700: 'rgba(0, 0, 0, 0.64)', - 800: 'rgba(0, 0, 0, 0.80)', - 900: 'rgba(0, 0, 0, 0.92)', - }, - gray: { - 50: '#F7FAFC', - 100: '#EDF2F7', - 200: '#E2E8F0', - 300: '#CBD5E0', - 400: '#A0AEC0', - 500: '#718096', - 600: '#4A5568', - 700: '#2D3748', - 800: '#1A202C', - 900: '#171923', - }, - red: { - 50: '#FFF5F5', - 100: '#FED7D7', - 200: '#FEB2B2', - 300: '#FC8181', - 400: '#F56565', - 500: '#E53E3E', - 600: '#C53030', - 700: '#9B2C2C', - 800: '#822727', - 900: '#63171B', - }, - orange: { - 50: '#FFFAF0', - 100: '#FEEBC8', - 200: '#FBD38D', - 300: '#F6AD55', - 400: '#ED8936', - 500: '#DD6B20', - 600: '#C05621', - 700: '#9C4221', - 800: '#7B341E', - 900: '#652B19', - }, - yellow: { - 50: '#FFFFF0', - 100: '#FEFCBF', - 200: '#FAF089', - 300: '#F6E05E', - 400: '#ECC94B', - 500: '#D69E2E', - 600: '#B7791F', - 700: '#975A16', - 800: '#744210', - 900: '#5F370E', - }, - green: { - 50: '#F0FFF4', - 100: '#C6F6D5', - 200: '#9AE6B4', - 300: '#68D391', - 400: '#48BB78', - 500: '#38A169', - 600: '#2F855A', - 700: '#276749', - 800: '#22543D', - 900: '#1C4532', - }, - teal: { - 50: '#E6FFFA', - 100: '#B2F5EA', - 200: '#81E6D9', - 300: '#4FD1C5', - 400: '#38B2AC', - 500: '#319795', - 600: '#2C7A7B', - 700: '#285E61', - 800: '#234E52', - 900: '#1D4044', - }, - blue: { - 50: '#ebf8ff', - 100: '#bee3f8', - 200: '#90cdf4', - 300: '#63b3ed', - 400: '#4299e1', - 500: '#3182ce', - 600: '#2b6cb0', - 700: '#2c5282', - 800: '#2a4365', - 900: '#1A365D', - }, - cyan: { - 50: '#EDFDFD', - 100: '#C4F1F9', - 200: '#9DECF9', - 300: '#76E4F7', - 400: '#0BC5EA', - 500: '#00B5D8', - 600: '#00A3C4', - 700: '#0987A0', - 800: '#086F83', - 900: '#065666', - }, - purple: { - 50: '#FAF5FF', - 100: '#E9D8FD', - 200: '#D6BCFA', - 300: '#B794F4', - 400: '#9F7AEA', - 500: '#805AD5', - 600: '#6B46C1', - 700: '#553C9A', - 800: '#44337A', - 900: '#322659', - }, - pink: { - 50: '#FFF5F7', - 100: '#FED7E2', - 200: '#FBB6CE', - 300: '#F687B3', - 400: '#ED64A6', - 500: '#D53F8C', - 600: '#B83280', - 700: '#97266D', - 800: '#702459', - 900: '#521B41', - }, - linkedin: { - 50: '#E8F4F9', - 100: '#CFEDFB', - 200: '#9BDAF3', - 300: '#68C7EC', - 400: '#34B3E4', - 500: '#00A0DC', - 600: '#008CC9', - 700: '#0077B5', - 800: '#005E93', - 900: '#004471', - }, - facebook: { - 50: '#E8F4F9', - 100: '#D9DEE9', - 200: '#B7C2DA', - 300: '#6482C0', - 400: '#4267B2', - 500: '#385898', - 600: '#314E89', - 700: '#29487D', - 800: '#223B67', - 900: '#1E355B', - }, - messenger: { - 50: '#D0E6FF', - 100: '#B9DAFF', - 200: '#A2CDFF', - 300: '#7AB8FF', - 400: '#2E90FF', - 500: '#0078FF', - 600: '#0063D1', - 700: '#0052AC', - 800: '#003C7E', - 900: '#002C5C', - }, - whatsapp: { - 50: '#dffeec', - 100: '#b9f5d0', - 200: '#90edb3', - 300: '#65e495', - 400: '#3cdd78', - 500: '#22c35e', - 600: '#179848', - 700: '#0c6c33', - 800: '#01421c', - 900: '#001803', - }, - twitter: { - 50: '#E5F4FD', - 100: '#C8E9FB', - 200: '#A8DCFA', - 300: '#83CDF7', - 400: '#57BBF5', - 500: '#1DA1F2', - 600: '#1A94DA', - 700: '#1681BF', - 800: '#136B9E', - 900: '#0D4D71', - }, - telegram: { - 50: '#E3F2F9', - 100: '#C5E4F3', - 200: '#A2D4EC', - 300: '#7AC1E4', - 400: '#47A9DA', - 500: '#0088CC', - 600: '#007AB8', - 700: '#006BA1', - 800: '#005885', - 900: '#003F5E', - }, - }, - c = { - none: '0', - sm: '0.125rem', - base: '0.25rem', - md: '0.375rem', - lg: '0.5rem', - xl: '0.75rem', - '2xl': '1rem', - '3xl': '1.5rem', - full: '9999px', - }, - u = { - xs: '0 0 0 1px rgba(0, 0, 0, 0.05)', - sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)', - base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)', - md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', - lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)', - xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)', - '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)', - outline: '0 0 0 3px rgba(66, 153, 225, 0.6)', - inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)', - none: 'none', - 'dark-lg': - 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px', - }, - d = t(54681), - f = t(54514), - p = { - property: { - common: - 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform', - colors: 'background-color, border-color, color, fill, stroke', - dimensions: 'width, height', - position: 'left, right, top, bottom', - background: 'background-color, background-image, background-position', - }, - easing: { - 'ease-in': 'cubic-bezier(0.4, 0, 1, 1)', - 'ease-out': 'cubic-bezier(0, 0, 0.2, 1)', - 'ease-in-out': 'cubic-bezier(0.4, 0, 0.2, 1)', - }, - duration: { - 'ultra-fast': '50ms', - faster: '100ms', - fast: '150ms', - normal: '200ms', - slow: '300ms', - slower: '400ms', - 'ultra-slow': '500ms', - }, - } - function h() { - return (h = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var b = h( - { - breakpoints: s, - zIndices: { - hide: -1, - auto: 'auto', - base: 0, - docked: 10, - dropdown: 1e3, - sticky: 1100, - banner: 1200, - overlay: 1300, - modal: 1400, - popover: 1500, - skipLink: 1600, - toast: 1700, - tooltip: 1800, - }, - radii: c, - blur: { - none: 0, - sm: '4px', - base: '8px', - md: '12px', - lg: '16px', - xl: '24px', - '2xl': '40px', - '3xl': '64px', - }, - colors: l, - }, - t(35268).Z, - { sizes: d.Z, shadows: u, space: f.W, borders: n, transition: p }, - ) - }, - 54681: function (r, e, t) { - 'use strict' - function n() { - return (n = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - var o = n( - {}, - t(54514).W, - { - max: 'max-content', - min: 'min-content', - full: '100%', - '3xs': '14rem', - '2xs': '16rem', - xs: '20rem', - sm: '24rem', - md: '28rem', - lg: '32rem', - xl: '36rem', - '2xl': '42rem', - '3xl': '48rem', - '4xl': '56rem', - '5xl': '64rem', - '6xl': '72rem', - '7xl': '80rem', - '8xl': '90rem', - }, - { container: { sm: '640px', md: '768px', lg: '1024px', xl: '1280px' } }, - ) - e.Z = o - }, - 54514: function (r, e, t) { - 'use strict' - t.d(e, { - W: function () { - return n - }, - }) - var n = { - px: '1px', - 0.5: '0.125rem', - 1: '0.25rem', - 1.5: '0.375rem', - 2: '0.5rem', - 2.5: '0.625rem', - 3: '0.75rem', - 3.5: '0.875rem', - 4: '1rem', - 5: '1.25rem', - 6: '1.5rem', - 7: '1.75rem', - 8: '2rem', - 9: '2.25rem', - 10: '2.5rem', - 12: '3rem', - 14: '3.5rem', - 16: '4rem', - 20: '5rem', - 24: '6rem', - 28: '7rem', - 32: '8rem', - 36: '9rem', - 40: '10rem', - 44: '11rem', - 48: '12rem', - 52: '13rem', - 56: '14rem', - 60: '15rem', - 64: '16rem', - 72: '18rem', - 80: '20rem', - 96: '24rem', - } - }, - 35268: function (r, e) { - 'use strict' - e.Z = { - letterSpacings: { - tighter: '-0.05em', - tight: '-0.025em', - normal: '0', - wide: '0.025em', - wider: '0.05em', - widest: '0.1em', - }, - lineHeights: { - normal: 'normal', - none: 1, - shorter: 1.25, - short: 1.375, - base: 1.5, - tall: 1.625, - taller: '2', - 3: '.75rem', - 4: '1rem', - 5: '1.25rem', - 6: '1.5rem', - 7: '1.75rem', - 8: '2rem', - 9: '2.25rem', - 10: '2.5rem', - }, - fontWeights: { - hairline: 100, - thin: 200, - light: 300, - normal: 400, - medium: 500, - semibold: 600, - bold: 700, - extrabold: 800, - black: 900, - }, - fonts: { - heading: - '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', - body: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', - mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace', - }, - fontSizes: { - xs: '0.75rem', - sm: '0.875rem', - md: '1rem', - lg: '1.125rem', - xl: '1.25rem', - '2xl': '1.5rem', - '3xl': '1.875rem', - '4xl': '2.25rem', - '5xl': '3rem', - '6xl': '3.75rem', - '7xl': '4.5rem', - '8xl': '6rem', - '9xl': '8rem', - }, - } - }, - 84806: function (r, e, t) { - 'use strict' - var n = t(83035), - o = t(42009), - a = t(41926), - i = t(93025) - function s() { - return (s = - Object.assign || - function (r) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e] - for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]) - } - return r - }).apply(this, arguments) - } - t.o(i, 'useTheme') && - t.d(e, { - useTheme: function () { - return i.useTheme - }, - }) - var l = s({ direction: 'ltr' }, o.Z, { - components: n.Z, - styles: a.Z, - config: { useSystemColorMode: !1, initialColorMode: 'light', cssVarPrefix: 'chakra' }, - }) - e.Z = l - }, - 41926: function (r, e, t) { - 'use strict' - var n = t(63108), - o = { - global: (r) => ({ - body: { - fontFamily: 'body', - color: (0, n.xJ)('gray.800', 'whiteAlpha.900')(r), - bg: (0, n.xJ)('white', 'gray.800')(r), - transitionProperty: 'background-color', - transitionDuration: 'normal', - lineHeight: 'base', - }, - '*::placeholder': { color: (0, n.xJ)('gray.400', 'whiteAlpha.400')(r) }, - '*, *::before, &::after': { - borderColor: (0, n.xJ)('gray.200', 'whiteAlpha.300')(r), - wordWrap: 'break-word', - }, - }), - } - e.Z = o - }, - 93025: function () {}, - 27277: function (r, e, t) { - 'use strict' - function n(r) { - var e = null == r ? 0 : r.length - return e ? r[e - 1] : void 0 - } - function o(r, e) { - return [...r, e] - } - function a(r, e) { - return r.filter((r) => r !== e) - } - function i(r, e, t, n) { - if (null == e) return n - if (!n) return r.find((r) => t(r).toLowerCase().startsWith(e.toLowerCase())) - var o, - a = r.filter((r) => t(r).toLowerCase().startsWith(e.toLowerCase())) - return a.length > 0 - ? a.includes(n) - ? ((o = a.indexOf(n) + 1) === a.length && (o = 0), a[o]) - : ((o = r.indexOf(a[0])), r[o]) - : n - } - t.d(e, { - s: function () { - return n - }, - jX: function () { - return o - }, - cl: function () { - return a - }, - LP: function () { - return i - }, - }) - }, - 73808: function (r, e, t) { - 'use strict' - function n(r) { - return 'number' === typeof r - } - function o(r) { - return 'number' !== typeof r || Number.isNaN(r) || !Number.isFinite(r) - } - function a(r) { - return Array.isArray(r) - } - function i(r) { - return 'function' === typeof r - } - function s(r) { - return 'undefined' === typeof r || void 0 === r - } - function l(r) { - var e = typeof r - return null != r && ('object' === e || 'function' === e) && !a(r) - } - function c(r) { - return l(r) && 0 === Object.keys(r).length - } - function u(r) { - return '[object String]' === Object.prototype.toString.call(r) - } - function d(r) { - return /^var\(--.+\)$/.test(r) - } - t.d(e, { - hj: function () { - return n - }, - iy: function () { - return o - }, - kJ: function () { - return a - }, - mf: function () { - return i - }, - o8: function () { - return s - }, - Kn: function () { - return l - }, - Qr: function () { - return c - }, - HD: function () { - return u - }, - FS: function () { - return d - }, - Ts: function () { - return f - }, - Ys: function () { - return p - }, - }) - var f = !1, - p = !1 - }, - 88456: function (r, e, t) { - 'use strict' - t.d(e, { - px: function () { - return i - }, - y: function () { - return d - }, - }) - var n = t(27277), - o = t(73808), - a = t(4651) - function i(r) { - if (null == r) return r - var { unitless: e } = (function (r) { - var e = parseFloat(r.toString()), - t = r.toString().replace(String(e), '') - return { unitless: !t, value: e, unit: t } - })(r) - return e || (0, o.hj)(r) ? r + 'px' : r - } - var s = (r, e) => (parseInt(r[1], 10) > parseInt(e[1], 10) ? 1 : -1), - l = (r) => (0, a.sq)(Object.entries(r).sort(s)) - function c(r) { - var e = l(r) - return Object.assign(Object.values(e), e) - } - function u(r, e) { - var t = [] - return ( - r && t.push('@media screen and (min-width: ' + i(r) + ')'), - t.length > 0 && e && t.push('and'), - e && t.push('@media screen and (max-width: ' + i(e) + ')'), - t.join(' ') - ) - } - function d(r) { - var e - if (!r) return null - r.base = null != (e = r.base) ? e : '0px' - var t = c(r), - a = Object.entries(r) - .sort(s) - .map((r, e, t) => { - var n, - [a, s] = r, - [, l] = null != (n = t[e + 1]) ? n : [] - return { - breakpoint: a, - minW: s, - maxW: (l = - parseFloat(l) > 0 - ? (function (r) { - var e - if (!r) return r - var t = (r = null != (e = i(r)) ? e : r).endsWith('px') ? -1 : -0.0635 - return (0, o.hj)(r) - ? '' + (r + t) - : r.replace(/([0-9]+\.?[0-9]*)/, (r) => '' + (parseFloat(r) + t)) - })(l) - : void 0), - maxWQuery: u(null, l), - minWQuery: u(s), - minMaxQuery: u(s, l), - } - }), - d = (function (r) { - var e = Object.keys(l(r)) - return new Set(e) - })(r), - f = Array.from(d.values()) - return { - keys: d, - normalized: t, - isResponsive(r) { - var e = Object.keys(r) - return e.length > 0 && e.every((r) => d.has(r)) - }, - asObject: l(r), - asArray: c(r), - details: a, - media: [null, ...t.map((r) => u(r)).slice(1)], - toArrayValue(r) { - if (!(0, o.Kn)(r)) throw new Error('toArrayValue: value must be an object') - for ( - var e = f.map((e) => { - var t - return null != (t = r[e]) ? t : null - }); - null === (0, n.s)(e); - - ) - e.pop() - return e - }, - toObjectValue(r) { - if (!Array.isArray(r)) throw new Error('toObjectValue: value must be an array') - return r.reduce((r, e, t) => { - var n = f[t] - return null != n && null != e && (r[n] = e), r - }, {}) - }, - } - } - }, - 84461: function (r, e, t) { - 'use strict' - function n(r) { - var e - return r instanceof Element && null != (e = r.ownerDocument) ? e : document - } - t.d(e, { - lZ: function () { - return n - }, - jU: function () { - return o - }, - PB: function () { - return a - }, - Qm: function () { - return i - }, - cx: function () { - return s - }, - vY: function () { - return l - }, - r3: function () { - return c - }, - EV: function () { - return u - }, - uh: function () { - return d - }, - dO: function () { - return f - }, - }) - var o = !( - 'undefined' === typeof window || - !window.document || - !window.document.createElement - ), - a = (r) => (r ? '' : void 0), - i = (r) => !!r || void 0, - s = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return e.filter(Boolean).join(' ') - } - function l(r) { - var e = n(r) - return null == e ? void 0 : e.activeElement - } - function c(r, e) { - return !!r && (r === e || r.contains(e)) - } - function u(r, e, t, n) { - return ( - r.addEventListener(e, t, n), - () => { - r.removeEventListener(e, t, n) - } - ) - } - function d(r) { - var { key: e, keyCode: t } = r - return t >= 37 && t <= 40 && 0 !== e.indexOf('Arrow') ? 'Arrow' + e : e - } - function f(r) { - return 0 !== r.button - } - }, - 80658: function (r, e, t) { - 'use strict' - t.d(e, { - Pu: function () { - return o - }, - v0: function () { - return a - }, - ZT: function () { - return s - }, - ZK: function () { - return l - }, - A4: function () { - return c - }, - zG: function () { - return u - }, - TE: function () { - return p - }, - }) - var n = t(73808) - function o(r) { - for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++) - t[o - 1] = arguments[o] - return (0, n.mf)(r) ? r(...t) : r - } - function a() { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return function (r) { - e.some((e) => (null == e || e(r), null == r ? void 0 : r.defaultPrevented)) - } - } - function i(r) { - var e - return function () { - if (r) { - for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++) n[o] = arguments[o] - ;(e = r.apply(this, n)), (r = null) - } - return e - } - } - var s = () => {}, - l = i((r) => () => { - var { condition: e, message: t } = r - e && n.Ts && console.warn(t) - }), - c = - (i((r) => () => { - var { condition: e, message: t } = r - e && n.Ts && console.error(t) - }), - n.Ys - ? (r) => r() - : 'function' === typeof queueMicrotask - ? queueMicrotask - : (r) => { - Promise.resolve().then(r) - }), - u = function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return (r) => e.reduce((r, e) => e(r), r) - }, - d = (r, e) => Math.abs(r - e), - f = (r) => 'x' in r && 'y' in r - function p(r, e) { - if ((0, n.hj)(r) && (0, n.hj)(e)) return d(r, e) - if (f(r) && f(e)) { - var t = d(r.x, e.x), - o = d(r.y, e.y) - return Math.sqrt(t ** 2 + o ** 2) - } - return 0 - } - }, - 4651: function (r, e, t) { - 'use strict' - t.d(e, { - CE: function () { - return n - }, - ei: function () { - return o - }, - Vl: function () { - return a - }, - Wf: function () { - return i - }, - lw: function () { - return s - }, - YU: function () { - return l - }, - Yd: function () { - return c - }, - sq: function () { - return u - }, - K1: function () { - return d - }, - }) - t(38554) - function n(r, e) { - var t = {} - return ( - Object.keys(r).forEach((n) => { - e.includes(n) || (t[n] = r[n]) - }), - t - ) - } - function o(r, e) { - var t = {} - return ( - e.forEach((e) => { - e in r && (t[e] = r[e]) - }), - t - ) - } - function a(r, e) { - var t = {}, - n = {} - return ( - Object.keys(r).forEach((o) => { - e.includes(o) ? (t[o] = r[o]) : (n[o] = r[o]) - }), - [t, n] - ) - } - var i = ((r) => { - var e = new WeakMap() - return (t, n, o, a) => { - if ('undefined' === typeof t) return r(t, n, o) - e.has(t) || e.set(t, new Map()) - var i = e.get(t) - if (i.has(n)) return i.get(n) - var s = r(t, n, o, a) - return i.set(n, s), s - } - })(function (r, e, t, n) { - var o = 'string' === typeof e ? e.split('.') : [e] - for (n = 0; n < o.length && r; n += 1) r = r[o[n]] - return void 0 === r ? t : r - }) - function s(r, e) { - var t = {} - return ( - Object.keys(r).forEach((n) => { - var o = r[n] - e(o, n, r) && (t[n] = o) - }), - t - ) - } - var l = (r) => s(r, (r) => null !== r && void 0 !== r), - c = (r) => Object.keys(r), - u = (r) => - r.reduce((r, e) => { - var [t, n] = e - return (r[t] = n), r - }, {}), - d = (r, e, t) => { - var n, o - return null != (n = null == (o = r.__cssMap[e + '.' + t]) ? void 0 : o.varRef) ? n : t - } - }, - 28204: function (r, e, t) { - 'use strict' - t.d(e, { - Z: function () { - return er - }, - }) - var n = t(11526), - o = Math.abs, - a = String.fromCharCode - function i(r) { - return r.trim() - } - function s(r, e, t) { - return r.replace(e, t) - } - function l(r, e) { - return r.indexOf(e) - } - function c(r, e) { - return 0 | r.charCodeAt(e) - } - function u(r, e, t) { - return r.slice(e, t) - } - function d(r) { - return r.length - } - function f(r) { - return r.length - } - function p(r, e) { - return e.push(r), r - } - var h = 1, - b = 1, - g = 0, - m = 0, - v = 0, - y = '' - function x(r, e, t, n, o, a, i) { - return { - value: r, - root: e, - parent: t, - type: n, - props: o, - children: a, - line: h, - column: b, - length: i, - return: '', - } - } - function w(r, e, t) { - return x(r, e.root, e.parent, t, e.props, e.children, 0) - } - function S() { - return (v = m > 0 ? c(y, --m) : 0), b--, 10 === v && ((b = 1), h--), v - } - function k() { - return (v = m < g ? c(y, m++) : 0), b++, 10 === v && ((b = 1), h++), v - } - function _() { - return c(y, m) - } - function C() { - return m - } - function A(r, e) { - return u(y, r, e) - } - function E(r) { - switch (r) { - case 0: - case 9: - case 10: - case 13: - case 32: - return 5 - case 33: - case 43: - case 44: - case 47: - case 62: - case 64: - case 126: - case 59: - case 123: - case 125: - return 4 - case 58: - return 3 - case 34: - case 39: - case 40: - case 91: - return 2 - case 41: - case 93: - return 1 - } - return 0 - } - function z(r) { - return (h = b = 1), (g = d((y = r))), (m = 0), [] - } - function R(r) { - return (y = ''), r - } - function B(r) { - return i(A(m - 1, T(91 === r ? r + 2 : 40 === r ? r + 1 : r))) - } - function j(r) { - for (; (v = _()) && v < 33; ) k() - return E(r) > 2 || E(v) > 3 ? '' : ' ' - } - function O(r, e) { - for (; --e && k() && !(v < 48 || v > 102 || (v > 57 && v < 65) || (v > 70 && v < 97)); ); - return A(r, C() + (e < 6 && 32 == _() && 32 == k())) - } - function T(r) { - for (; k(); ) - switch (v) { - case r: - return m - case 34: - case 39: - return T(34 === r || 39 === r ? r : v) - case 40: - 41 === r && T(r) - break - case 92: - k() - } - return m - } - function F(r, e) { - for (; k() && r + v !== 57 && (r + v !== 84 || 47 !== _()); ); - return '/*' + A(e, m - 1) + '*' + a(47 === r ? r : k()) - } - function P(r) { - for (; !E(_()); ) k() - return A(r, m) - } - var I = '-ms-', - M = '-moz-', - D = '-webkit-', - W = 'comm', - J = 'rule', - N = 'decl' - function H(r, e) { - for (var t = '', n = f(r), o = 0; o < n; o++) t += e(r[o], o, r, e) || '' - return t - } - function L(r, e, t, n) { - switch (r.type) { - case '@import': - case N: - return (r.return = r.return || r.value) - case W: - return '' - case J: - r.value = r.props.join(',') - } - return d((t = H(r.children, n))) ? (r.return = r.value + '{' + t + '}') : '' - } - function $(r, e) { - switch ( - (function (r, e) { - return (((((((e << 2) ^ c(r, 0)) << 2) ^ c(r, 1)) << 2) ^ c(r, 2)) << 2) ^ c(r, 3) - })(r, e) - ) { - case 5103: - return D + 'print-' + r + r - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return D + r + r - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return D + r + M + r + I + r + r - case 6828: - case 4268: - return D + r + I + r + r - case 6165: - return D + r + I + 'flex-' + r + r - case 5187: - return D + r + s(r, /(\w+).+(:[^]+)/, '-webkit-box-$1$2-ms-flex-$1$2') + r - case 5443: - return D + r + I + 'flex-item-' + s(r, /flex-|-self/, '') + r - case 4675: - return D + r + I + 'flex-line-pack' + s(r, /align-content|flex-|-self/, '') + r - case 5548: - return D + r + I + s(r, 'shrink', 'negative') + r - case 5292: - return D + r + I + s(r, 'basis', 'preferred-size') + r - case 6060: - return D + 'box-' + s(r, '-grow', '') + D + r + I + s(r, 'grow', 'positive') + r - case 4554: - return D + s(r, /([^-])(transform)/g, '$1-webkit-$2') + r - case 6187: - return s(s(s(r, /(zoom-|grab)/, D + '$1'), /(image-set)/, D + '$1'), r, '') + r - case 5495: - case 3959: - return s(r, /(image-set\([^]*)/, D + '$1$`$1') - case 4968: - return ( - s( - s(r, /(.+:)(flex-)?(.*)/, '-webkit-box-pack:$3-ms-flex-pack:$3'), - /s.+-b[^;]+/, - 'justify', - ) + - D + - r + - r - ) - case 4095: - case 3583: - case 4068: - case 2532: - return s(r, /(.+)-inline(.+)/, D + '$1$2') + r - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - if (d(r) - 1 - e > 6) - switch (c(r, e + 1)) { - case 109: - if (45 !== c(r, e + 4)) break - case 102: - return ( - s( - r, - /(.+:)(.+)-([^]+)/, - '$1-webkit-$2-$3$1' + M + (108 == c(r, e + 3) ? '$3' : '$2-$3'), - ) + r - ) - case 115: - return ~l(r, 'stretch') ? $(s(r, 'stretch', 'fill-available'), e) + r : r - } - break - case 4949: - if (115 !== c(r, e + 1)) break - case 6444: - switch (c(r, d(r) - 3 - (~l(r, '!important') && 10))) { - case 107: - return s(r, ':', ':' + D) + r - case 101: - return ( - s( - r, - /(.+:)([^;!]+)(;|!.+)?/, - '$1' + - D + - (45 === c(r, 14) ? 'inline-' : '') + - 'box$3$1' + - D + - '$2$3$1' + - I + - '$2box$3', - ) + r - ) - } - break - case 5936: - switch (c(r, e + 11)) { - case 114: - return D + r + I + s(r, /[svh]\w+-[tblr]{2}/, 'tb') + r - case 108: - return D + r + I + s(r, /[svh]\w+-[tblr]{2}/, 'tb-rl') + r - case 45: - return D + r + I + s(r, /[svh]\w+-[tblr]{2}/, 'lr') + r - } - return D + r + I + r + r - } - return r - } - function Z(r) { - return R(V('', null, null, null, [''], (r = z(r)), 0, [0], r)) - } - function V(r, e, t, n, o, i, l, c, u) { - for ( - var f = 0, - h = 0, - b = l, - g = 0, - m = 0, - v = 0, - y = 1, - x = 1, - w = 1, - A = 0, - E = '', - z = o, - R = i, - T = n, - I = E; - x; - - ) - switch (((v = A), (A = k()))) { - case 34: - case 39: - case 91: - case 40: - I += B(A) - break - case 9: - case 10: - case 13: - case 32: - I += j(v) - break - case 92: - I += O(C() - 1, 7) - continue - case 47: - switch (_()) { - case 42: - case 47: - p(G(F(k(), C()), e, t), u) - break - default: - I += '/' - } - break - case 123 * y: - c[f++] = d(I) * w - case 125 * y: - case 59: - case 0: - switch (A) { - case 0: - case 125: - x = 0 - case 59 + h: - m > 0 && - d(I) - b && - p(m > 32 ? Y(I + ';', n, t, b - 1) : Y(s(I, ' ', '') + ';', n, t, b - 2), u) - break - case 59: - I += ';' - default: - if ((p((T = q(I, e, t, f, h, o, c, E, (z = []), (R = []), b)), i), 123 === A)) - if (0 === h) V(I, e, T, T, z, i, b, c, R) - else - switch (g) { - case 100: - case 109: - case 115: - V( - r, - T, - T, - n && p(q(r, T, T, 0, 0, o, c, E, o, (z = []), b), R), - o, - R, - b, - c, - n ? z : R, - ) - break - default: - V(I, T, T, T, [''], R, b, c, R) - } - } - ;(f = h = m = 0), (y = w = 1), (E = I = ''), (b = l) - break - case 58: - ;(b = 1 + d(I)), (m = v) - default: - if (y < 1) - if (123 == A) --y - else if (125 == A && 0 == y++ && 125 == S()) continue - switch (((I += a(A)), A * y)) { - case 38: - w = h > 0 ? 1 : ((I += '\f'), -1) - break - case 44: - ;(c[f++] = (d(I) - 1) * w), (w = 1) - break - case 64: - 45 === _() && (I += B(k())), (g = _()), (h = d((E = I += P(C())))), A++ - break - case 45: - 45 === v && 2 == d(I) && (y = 0) - } - } - return i - } - function q(r, e, t, n, a, l, c, d, p, h, b) { - for (var g = a - 1, m = 0 === a ? l : [''], v = f(m), y = 0, w = 0, S = 0; y < n; ++y) - for (var k = 0, _ = u(r, g + 1, (g = o((w = c[y])))), C = r; k < v; ++k) - (C = i(w > 0 ? m[k] + ' ' + _ : s(_, /&\f/g, m[k]))) && (p[S++] = C) - return x(r, e, t, 0 === a ? J : d, p, h, b) - } - function G(r, e, t) { - return x(r, e, t, W, a(v), u(r, 2, -2), 0) - } - function Y(r, e, t, n) { - return x(r, e, t, N, u(r, 0, n), u(r, n + 1, -1), n) - } - var X = function (r, e) { - return R( - (function (r, e) { - var t = -1, - n = 44 - do { - switch (E(n)) { - case 0: - 38 === n && 12 === _() && (e[t] = 1), (r[t] += P(m - 1)) - break - case 2: - r[t] += B(n) - break - case 4: - if (44 === n) { - ;(r[++t] = 58 === _() ? '&\f' : ''), (e[t] = r[t].length) - break - } - default: - r[t] += a(n) - } - } while ((n = k())) - return r - })(z(r), e), - ) - }, - U = new WeakMap(), - K = function (r) { - if ('rule' === r.type && r.parent && r.length) { - for ( - var e = r.value, t = r.parent, n = r.column === t.column && r.line === t.line; - 'rule' !== t.type; - - ) - if (!(t = t.parent)) return - if ((1 !== r.props.length || 58 === e.charCodeAt(0) || U.get(t)) && !n) { - U.set(r, !0) - for (var o = [], a = X(e, o), i = t.props, s = 0, l = 0; s < a.length; s++) - for (var c = 0; c < i.length; c++, l++) - r.props[l] = o[s] ? a[s].replace(/&\f/g, i[c]) : i[c] + ' ' + a[s] - } - } - }, - Q = function (r) { - if ('decl' === r.type) { - var e = r.value - 108 === e.charCodeAt(0) && 98 === e.charCodeAt(2) && ((r.return = ''), (r.value = '')) - } - }, - rr = [ - function (r, e, t, n) { - if (!r.return) - switch (r.type) { - case N: - r.return = $(r.value, r.length) - break - case '@keyframes': - return H([w(s(r.value, '@', '@' + D), r, '')], n) - case J: - if (r.length) - return (function (r, e) { - return r.map(e).join('') - })(r.props, function (e) { - switch ( - (function (r, e) { - return (r = e.exec(r)) ? r[0] : r - })(e, /(::plac\w+|:read-\w+)/) - ) { - case ':read-only': - case ':read-write': - return H([w(s(e, /:(read-\w+)/, ':-moz-$1'), r, '')], n) - case '::placeholder': - return H( - [ - w(s(e, /:(plac\w+)/, ':-webkit-input-$1'), r, ''), - w(s(e, /:(plac\w+)/, ':-moz-$1'), r, ''), - w(s(e, /:(plac\w+)/, I + 'input-$1'), r, ''), - ], - n, - ) - } - return '' - }) - } - }, - ], - er = function (r) { - var e = r.key - if ('css' === e) { - var t = document.querySelectorAll('style[data-emotion]:not([data-s])') - Array.prototype.forEach.call(t, function (r) { - ;-1 !== r.getAttribute('data-emotion').indexOf(' ') && - (document.head.appendChild(r), r.setAttribute('data-s', '')) - }) - } - var o = r.stylisPlugins || rr - var a, - i, - s = {}, - l = [] - ;(a = r.container || document.head), - Array.prototype.forEach.call( - document.querySelectorAll('style[data-emotion^="' + e + ' "]'), - function (r) { - for (var e = r.getAttribute('data-emotion').split(' '), t = 1; t < e.length; t++) - s[e[t]] = !0 - l.push(r) - }, - ) - var c, - u, - d = [ - L, - ((u = function (r) { - c.insert(r) - }), - function (r) { - r.root || ((r = r.return) && u(r)) - }), - ], - p = (function (r) { - var e = f(r) - return function (t, n, o, a) { - for (var i = '', s = 0; s < e; s++) i += r[s](t, n, o, a) || '' - return i - } - })([K, Q].concat(o, d)) - i = function (r, e, t, n) { - ;(c = t), - H(Z(r ? r + '{' + e.styles + '}' : e.styles), p), - n && (h.inserted[e.name] = !0) - } - var h = { - key: e, - sheet: new n.m({ - key: e, - container: a, - nonce: r.nonce, - speedy: r.speedy, - prepend: r.prepend, - }), - nonce: r.nonce, - inserted: s, - registered: {}, - insert: i, - } - return h.sheet.hydrate(l), h - } - }, - 67866: function (r, e) { - 'use strict' - e.Z = function (r) { - var e = Object.create(null) - return function (t) { - return void 0 === e[t] && (e[t] = r(t)), e[t] - } - } - }, - 30495: function (r, e, t) { - 'use strict' - t.d(e, { - C: function () { - return h - }, - E: function () { - return k - }, - T: function () { - return g - }, - a: function () { - return y - }, - b: function () { - return x - }, - c: function () { - return S - }, - h: function () { - return f - }, - u: function () { - return m - }, - w: function () { - return b - }, - }) - var n = t(67294), - o = t(28204), - a = t(22122), - i = function (r) { - var e = new WeakMap() - return function (t) { - if (e.has(t)) return e.get(t) - var n = r(t) - return e.set(t, n), n - } - }, - s = t(8679), - l = t.n(s), - c = function (r, e) { - return l()(r, e) - }, - u = t(70444), - d = t(94199), - f = Object.prototype.hasOwnProperty, - p = (0, n.createContext)( - 'undefined' !== typeof HTMLElement ? (0, o.Z)({ key: 'css' }) : null, - ), - h = p.Provider, - b = function (r) { - return (0, n.forwardRef)(function (e, t) { - var o = (0, n.useContext)(p) - return r(e, o, t) - }) - }, - g = (0, n.createContext)({}), - m = function () { - return (0, n.useContext)(g) - }, - v = i(function (r) { - return i(function (e) { - return (function (r, e) { - return 'function' === typeof e ? e(r) : (0, a.Z)({}, r, e) - })(r, e) - }) - }), - y = function (r) { - var e = (0, n.useContext)(g) - return ( - r.theme !== e && (e = v(e)(r.theme)), - (0, n.createElement)(g.Provider, { value: e }, r.children) - ) - } - function x(r) { - var e = r.displayName || r.name || 'Component', - t = function (e, t) { - var o = (0, n.useContext)(g) - return (0, n.createElement)(r, (0, a.Z)({ theme: o, ref: t }, e)) - }, - o = (0, n.forwardRef)(t) - return (o.displayName = 'WithTheme(' + e + ')'), c(o, r) - } - var w = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__', - S = function (r, e) { - var t = {} - for (var n in e) f.call(e, n) && (t[n] = e[n]) - return (t[w] = r), t - }, - k = b(function (r, e, t) { - var o = r.css - 'string' === typeof o && void 0 !== e.registered[o] && (o = e.registered[o]) - var a = r[w], - i = [o], - s = '' - 'string' === typeof r.className - ? (s = (0, u.f)(e.registered, i, r.className)) - : null != r.className && (s = r.className + ' ') - var l = (0, d.O)( - i, - void 0, - 'function' === typeof o || Array.isArray(o) ? (0, n.useContext)(g) : void 0, - ) - ;(0, u.M)(e, l, 'string' === typeof a) - s += e.key + '-' + l.name - var c = {} - for (var p in r) f.call(r, p) && 'css' !== p && p !== w && (c[p] = r[p]) - return (c.ref = t), (c.className = s), (0, n.createElement)(a, c) - }) - }, - 70917: function (r, e, t) { - 'use strict' - t.r(e), - t.d(e, { - CacheProvider: function () { - return o.C - }, - ThemeContext: function () { - return o.T - }, - ThemeProvider: function () { - return o.a - }, - useTheme: function () { - return o.u - }, - withEmotionCache: function () { - return o.w - }, - withTheme: function () { - return o.b - }, - ClassNames: function () { - return h - }, - Global: function () { - return c - }, - createElement: function () { - return l - }, - css: function () { - return u - }, - jsx: function () { - return l - }, - keyframes: function () { - return d - }, - }) - var n = t(67294), - o = (t(28204), t(30495)), - a = (t(8679), t(70444)), - i = t(94199), - s = t(11526), - l = function (r, e) { - var t = arguments - if (null == e || !o.h.call(e, 'css')) return n.createElement.apply(void 0, t) - var a = t.length, - i = new Array(a) - ;(i[0] = o.E), (i[1] = (0, o.c)(r, e)) - for (var s = 2; s < a; s++) i[s] = t[s] - return n.createElement.apply(null, i) - }, - c = (0, o.w)(function (r, e) { - var t = r.styles, - l = (0, i.O)( - [t], - void 0, - 'function' === typeof t || Array.isArray(t) ? (0, n.useContext)(o.T) : void 0, - ), - c = (0, n.useRef)() - return ( - (0, n.useLayoutEffect)( - function () { - var r = e.key + '-global', - t = new s.m({ - key: r, - nonce: e.sheet.nonce, - container: e.sheet.container, - speedy: e.sheet.isSpeedy, - }), - n = !1, - o = document.querySelector('style[data-emotion="' + r + ' ' + l.name + '"]') - return ( - e.sheet.tags.length && (t.before = e.sheet.tags[0]), - null !== o && ((n = !0), o.setAttribute('data-emotion', r), t.hydrate([o])), - (c.current = [t, n]), - function () { - t.flush() - } - ) - }, - [e], - ), - (0, n.useLayoutEffect)( - function () { - var r = c.current, - t = r[0] - if (r[1]) r[1] = !1 - else { - if ((void 0 !== l.next && (0, a.M)(e, l.next, !0), t.tags.length)) { - var n = t.tags[t.tags.length - 1].nextElementSibling - ;(t.before = n), t.flush() - } - e.insert('', l, t, !1) - } - }, - [e, l.name], - ), - null - ) - }) - function u() { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return (0, i.O)(e) - } - var d = function () { - var r = u.apply(void 0, arguments), - e = 'animation-' + r.name - return { - name: e, - styles: '@keyframes ' + e + '{' + r.styles + '}', - anim: 1, - toString: function () { - return '_EMO_' + this.name + '_' + this.styles + '_EMO_' - }, - } - }, - f = function r(e) { - for (var t = e.length, n = 0, o = ''; n < t; n++) { - var a = e[n] - if (null != a) { - var i = void 0 - switch (typeof a) { - case 'boolean': - break - case 'object': - if (Array.isArray(a)) i = r(a) - else for (var s in ((i = ''), a)) a[s] && s && (i && (i += ' '), (i += s)) - break - default: - i = a - } - i && (o && (o += ' '), (o += i)) - } - } - return o - } - function p(r, e, t) { - var n = [], - o = (0, a.f)(r, n, t) - return n.length < 2 ? t : o + e(n) - } - var h = (0, o.w)(function (r, e) { - var t = function () { - for (var r = arguments.length, t = new Array(r), n = 0; n < r; n++) t[n] = arguments[n] - var o = (0, i.O)(t, e.registered) - return (0, a.M)(e, o, !1), e.key + '-' + o.name - }, - s = { - css: t, - cx: function () { - for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++) - n[o] = arguments[o] - return p(e.registered, t, f(n)) - }, - theme: (0, n.useContext)(o.T), - }, - l = r.children(s) - return !0, l - }) - }, - 94199: function (r, e, t) { - 'use strict' - t.d(e, { - O: function () { - return b - }, - }) - var n = function (r) { - for (var e, t = 0, n = 0, o = r.length; o >= 4; ++n, o -= 4) - (e = - 1540483477 * - (65535 & - (e = - (255 & r.charCodeAt(n)) | - ((255 & r.charCodeAt(++n)) << 8) | - ((255 & r.charCodeAt(++n)) << 16) | - ((255 & r.charCodeAt(++n)) << 24))) + - ((59797 * (e >>> 16)) << 16)), - (t = - (1540483477 * (65535 & (e ^= e >>> 24)) + ((59797 * (e >>> 16)) << 16)) ^ - (1540483477 * (65535 & t) + ((59797 * (t >>> 16)) << 16))) - switch (o) { - case 3: - t ^= (255 & r.charCodeAt(n + 2)) << 16 - case 2: - t ^= (255 & r.charCodeAt(n + 1)) << 8 - case 1: - t = 1540483477 * (65535 & (t ^= 255 & r.charCodeAt(n))) + ((59797 * (t >>> 16)) << 16) - } - return ( - ((t = 1540483477 * (65535 & (t ^= t >>> 13)) + ((59797 * (t >>> 16)) << 16)) ^ - (t >>> 15)) >>> - 0 - ).toString(36) - }, - o = { - animationIterationCount: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1, - }, - a = t(67866), - i = /[A-Z]|^ms/g, - s = /_EMO_([^_]+?)_([^]*?)_EMO_/g, - l = function (r) { - return 45 === r.charCodeAt(1) - }, - c = function (r) { - return null != r && 'boolean' !== typeof r - }, - u = (0, a.Z)(function (r) { - return l(r) ? r : r.replace(i, '-$&').toLowerCase() - }), - d = function (r, e) { - switch (r) { - case 'animation': - case 'animationName': - if ('string' === typeof e) - return e.replace(s, function (r, e, t) { - return (p = { name: e, styles: t, next: p }), e - }) - } - return 1 === o[r] || l(r) || 'number' !== typeof e || 0 === e ? e : e + 'px' - } - function f(r, e, t) { - if (null == t) return '' - if (void 0 !== t.__emotion_styles) return t - switch (typeof t) { - case 'boolean': - return '' - case 'object': - if (1 === t.anim) return (p = { name: t.name, styles: t.styles, next: p }), t.name - if (void 0 !== t.styles) { - var n = t.next - if (void 0 !== n) - for (; void 0 !== n; ) - (p = { name: n.name, styles: n.styles, next: p }), (n = n.next) - return t.styles + ';' - } - return (function (r, e, t) { - var n = '' - if (Array.isArray(t)) for (var o = 0; o < t.length; o++) n += f(r, e, t[o]) + ';' - else - for (var a in t) { - var i = t[a] - if ('object' !== typeof i) - null != e && void 0 !== e[i] - ? (n += a + '{' + e[i] + '}') - : c(i) && (n += u(a) + ':' + d(a, i) + ';') - else if ( - !Array.isArray(i) || - 'string' !== typeof i[0] || - (null != e && void 0 !== e[i[0]]) - ) { - var s = f(r, e, i) - switch (a) { - case 'animation': - case 'animationName': - n += u(a) + ':' + s + ';' - break - default: - n += a + '{' + s + '}' - } - } else - for (var l = 0; l < i.length; l++) - c(i[l]) && (n += u(a) + ':' + d(a, i[l]) + ';') - } - return n - })(r, e, t) - case 'function': - if (void 0 !== r) { - var o = p, - a = t(r) - return (p = o), f(r, e, a) - } - break - case 'string': - } - if (null == e) return t - var i = e[t] - return void 0 !== i ? i : t - } - var p, - h = /label:\s*([^\s;\n{]+)\s*(;|$)/g - var b = function (r, e, t) { - if (1 === r.length && 'object' === typeof r[0] && null !== r[0] && void 0 !== r[0].styles) - return r[0] - var o = !0, - a = '' - p = void 0 - var i = r[0] - null == i || void 0 === i.raw ? ((o = !1), (a += f(t, e, i))) : (a += i[0]) - for (var s = 1; s < r.length; s++) (a += f(t, e, r[s])), o && (a += i[s]) - h.lastIndex = 0 - for (var l, c = ''; null !== (l = h.exec(a)); ) c += '-' + l[1] - return { name: n(a) + c, styles: a, next: p } - } - }, - 11526: function (r, e, t) { - 'use strict' - t.d(e, { - m: function () { - return n - }, - }) - var n = (function () { - function r(r) { - var e = this - ;(this._insertTag = function (r) { - var t - ;(t = - 0 === e.tags.length - ? e.prepend - ? e.container.firstChild - : e.before - : e.tags[e.tags.length - 1].nextSibling), - e.container.insertBefore(r, t), - e.tags.push(r) - }), - (this.isSpeedy = void 0 === r.speedy || r.speedy), - (this.tags = []), - (this.ctr = 0), - (this.nonce = r.nonce), - (this.key = r.key), - (this.container = r.container), - (this.prepend = r.prepend), - (this.before = null) - } - var e = r.prototype - return ( - (e.hydrate = function (r) { - r.forEach(this._insertTag) - }), - (e.insert = function (r) { - this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && - this._insertTag( - (function (r) { - var e = document.createElement('style') - return ( - e.setAttribute('data-emotion', r.key), - void 0 !== r.nonce && e.setAttribute('nonce', r.nonce), - e.appendChild(document.createTextNode('')), - e.setAttribute('data-s', ''), - e - ) - })(this), - ) - var e = this.tags[this.tags.length - 1] - if (this.isSpeedy) { - var t = (function (r) { - if (r.sheet) return r.sheet - for (var e = 0; e < document.styleSheets.length; e++) - if (document.styleSheets[e].ownerNode === r) return document.styleSheets[e] - })(e) - try { - t.insertRule(r, t.cssRules.length) - } catch (n) { - 0 - } - } else e.appendChild(document.createTextNode(r)) - this.ctr++ - }), - (e.flush = function () { - this.tags.forEach(function (r) { - return r.parentNode.removeChild(r) - }), - (this.tags = []), - (this.ctr = 0) - }), - r - ) - })() - }, - 70444: function (r, e, t) { - 'use strict' - t.d(e, { - f: function () { - return n - }, - M: function () { - return o - }, - }) - function n(r, e, t) { - var n = '' - return ( - t.split(' ').forEach(function (t) { - void 0 !== r[t] ? e.push(r[t] + ';') : (n += t + ' ') - }), - n - ) - } - var o = function (r, e, t) { - var n = r.key + '-' + e.name - if ( - (!1 === t && void 0 === r.registered[n] && (r.registered[n] = e.styles), - void 0 === r.inserted[e.name]) - ) { - var o = e - do { - r.insert(e === o ? '.' + n : '', o, r.sheet, !0) - o = o.next - } while (void 0 !== o) - } - } - }, - 8679: function (r, e, t) { - 'use strict' - var n = t(59864), - o = { - childContextTypes: !0, - contextType: !0, - contextTypes: !0, - defaultProps: !0, - displayName: !0, - getDefaultProps: !0, - getDerivedStateFromError: !0, - getDerivedStateFromProps: !0, - mixins: !0, - propTypes: !0, - type: !0, - }, - a = { - name: !0, - length: !0, - prototype: !0, - caller: !0, - callee: !0, - arguments: !0, - arity: !0, - }, - i = { - $$typeof: !0, - compare: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - type: !0, - }, - s = {} - function l(r) { - return n.isMemo(r) ? i : s[r.$$typeof] || o - } - ;(s[n.ForwardRef] = { - $$typeof: !0, - render: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - }), - (s[n.Memo] = i) - var c = Object.defineProperty, - u = Object.getOwnPropertyNames, - d = Object.getOwnPropertySymbols, - f = Object.getOwnPropertyDescriptor, - p = Object.getPrototypeOf, - h = Object.prototype - r.exports = function r(e, t, n) { - if ('string' !== typeof t) { - if (h) { - var o = p(t) - o && o !== h && r(e, o, n) - } - var i = u(t) - d && (i = i.concat(d(t))) - for (var s = l(e), b = l(t), g = 0; g < i.length; ++g) { - var m = i[g] - if (!a[m] && (!n || !n[m]) && (!b || !b[m]) && (!s || !s[m])) { - var v = f(t, m) - try { - c(e, m, v) - } catch (y) {} - } - } - } - return e - } - }, - 38554: function (r, e, t) { - r = t.nmd(r) - var n = '__lodash_hash_undefined__', - o = 9007199254740991, - a = '[object Arguments]', - i = '[object Function]', - s = '[object Object]', - l = /^\[object .+?Constructor\]$/, - c = /^(?:0|[1-9]\d*)$/, - u = {} - ;(u['[object Float32Array]'] = - u['[object Float64Array]'] = - u['[object Int8Array]'] = - u['[object Int16Array]'] = - u['[object Int32Array]'] = - u['[object Uint8Array]'] = - u['[object Uint8ClampedArray]'] = - u['[object Uint16Array]'] = - u['[object Uint32Array]'] = - !0), - (u[a] = - u['[object Array]'] = - u['[object ArrayBuffer]'] = - u['[object Boolean]'] = - u['[object DataView]'] = - u['[object Date]'] = - u['[object Error]'] = - u[i] = - u['[object Map]'] = - u['[object Number]'] = - u[s] = - u['[object RegExp]'] = - u['[object Set]'] = - u['[object String]'] = - u['[object WeakMap]'] = - !1) - var d = 'object' == typeof t.g && t.g && t.g.Object === Object && t.g, - f = 'object' == typeof self && self && self.Object === Object && self, - p = d || f || Function('return this')(), - h = e && !e.nodeType && e, - b = h && r && !r.nodeType && r, - g = b && b.exports === h, - m = g && d.process, - v = (function () { - try { - var r = b && b.require && b.require('util').types - return r || (m && m.binding && m.binding('util')) - } catch (e) {} - })(), - y = v && v.isTypedArray - function x(r, e, t) { - switch (t.length) { - case 0: - return r.call(e) - case 1: - return r.call(e, t[0]) - case 2: - return r.call(e, t[0], t[1]) - case 3: - return r.call(e, t[0], t[1], t[2]) - } - return r.apply(e, t) - } - var w, - S, - k = Array.prototype, - _ = Function.prototype, - C = Object.prototype, - A = p['__core-js_shared__'], - E = _.toString, - z = C.hasOwnProperty, - R = (function () { - var r = /[^.]+$/.exec((A && A.keys && A.keys.IE_PROTO) || '') - return r ? 'Symbol(src)_1.' + r : '' - })(), - B = C.toString, - j = E.call(Object), - O = RegExp( - '^' + - E.call(z) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$', - ), - T = g ? p.Buffer : void 0, - F = p.Symbol, - P = p.Uint8Array, - I = T ? T.allocUnsafe : void 0, - M = - ((w = Object.getPrototypeOf), - (S = Object), - function (r) { - return w(S(r)) - }), - D = Object.create, - W = C.propertyIsEnumerable, - J = k.splice, - N = F ? F.toStringTag : void 0, - H = (function () { - try { - var r = pr(Object, 'defineProperty') - return r({}, '', {}), r - } catch (e) {} - })(), - L = T ? T.isBuffer : void 0, - $ = Math.max, - Z = Date.now, - V = pr(p, 'Map'), - q = pr(Object, 'create'), - G = (function () { - function r() {} - return function (e) { - if (!Cr(e)) return {} - if (D) return D(e) - r.prototype = e - var t = new r() - return (r.prototype = void 0), t - } - })() - function Y(r) { - var e = -1, - t = null == r ? 0 : r.length - for (this.clear(); ++e < t; ) { - var n = r[e] - this.set(n[0], n[1]) - } - } - function X(r) { - var e = -1, - t = null == r ? 0 : r.length - for (this.clear(); ++e < t; ) { - var n = r[e] - this.set(n[0], n[1]) - } - } - function U(r) { - var e = -1, - t = null == r ? 0 : r.length - for (this.clear(); ++e < t; ) { - var n = r[e] - this.set(n[0], n[1]) - } - } - function K(r) { - var e = (this.__data__ = new X(r)) - this.size = e.size - } - function Q(r, e) { - var t = xr(r), - n = !t && yr(r), - o = !t && !n && Sr(r), - a = !t && !n && !o && Er(r), - i = t || n || o || a, - s = i - ? (function (r, e) { - for (var t = -1, n = Array(r); ++t < r; ) n[t] = e(t) - return n - })(r.length, String) - : [], - l = s.length - for (var c in r) - (!e && !z.call(r, c)) || - (i && - ('length' == c || - (o && ('offset' == c || 'parent' == c)) || - (a && ('buffer' == c || 'byteLength' == c || 'byteOffset' == c)) || - hr(c, l))) || - s.push(c) - return s - } - function rr(r, e, t) { - ;((void 0 !== t && !vr(r[e], t)) || (void 0 === t && !(e in r))) && nr(r, e, t) - } - function er(r, e, t) { - var n = r[e] - ;(z.call(r, e) && vr(n, t) && (void 0 !== t || e in r)) || nr(r, e, t) - } - function tr(r, e) { - for (var t = r.length; t--; ) if (vr(r[t][0], e)) return t - return -1 - } - function nr(r, e, t) { - '__proto__' == e && H - ? H(r, e, { configurable: !0, enumerable: !0, value: t, writable: !0 }) - : (r[e] = t) - } - ;(Y.prototype.clear = function () { - ;(this.__data__ = q ? q(null) : {}), (this.size = 0) - }), - (Y.prototype.delete = function (r) { - var e = this.has(r) && delete this.__data__[r] - return (this.size -= e ? 1 : 0), e - }), - (Y.prototype.get = function (r) { - var e = this.__data__ - if (q) { - var t = e[r] - return t === n ? void 0 : t - } - return z.call(e, r) ? e[r] : void 0 - }), - (Y.prototype.has = function (r) { - var e = this.__data__ - return q ? void 0 !== e[r] : z.call(e, r) - }), - (Y.prototype.set = function (r, e) { - var t = this.__data__ - return (this.size += this.has(r) ? 0 : 1), (t[r] = q && void 0 === e ? n : e), this - }), - (X.prototype.clear = function () { - ;(this.__data__ = []), (this.size = 0) - }), - (X.prototype.delete = function (r) { - var e = this.__data__, - t = tr(e, r) - return !(t < 0) && (t == e.length - 1 ? e.pop() : J.call(e, t, 1), --this.size, !0) - }), - (X.prototype.get = function (r) { - var e = this.__data__, - t = tr(e, r) - return t < 0 ? void 0 : e[t][1] - }), - (X.prototype.has = function (r) { - return tr(this.__data__, r) > -1 - }), - (X.prototype.set = function (r, e) { - var t = this.__data__, - n = tr(t, r) - return n < 0 ? (++this.size, t.push([r, e])) : (t[n][1] = e), this - }), - (U.prototype.clear = function () { - ;(this.size = 0), - (this.__data__ = { hash: new Y(), map: new (V || X)(), string: new Y() }) - }), - (U.prototype.delete = function (r) { - var e = fr(this, r).delete(r) - return (this.size -= e ? 1 : 0), e - }), - (U.prototype.get = function (r) { - return fr(this, r).get(r) - }), - (U.prototype.has = function (r) { - return fr(this, r).has(r) - }), - (U.prototype.set = function (r, e) { - var t = fr(this, r), - n = t.size - return t.set(r, e), (this.size += t.size == n ? 0 : 1), this - }), - (K.prototype.clear = function () { - ;(this.__data__ = new X()), (this.size = 0) - }), - (K.prototype.delete = function (r) { - var e = this.__data__, - t = e.delete(r) - return (this.size = e.size), t - }), - (K.prototype.get = function (r) { - return this.__data__.get(r) - }), - (K.prototype.has = function (r) { - return this.__data__.has(r) - }), - (K.prototype.set = function (r, e) { - var t = this.__data__ - if (t instanceof X) { - var n = t.__data__ - if (!V || n.length < 199) return n.push([r, e]), (this.size = ++t.size), this - t = this.__data__ = new U(n) - } - return t.set(r, e), (this.size = t.size), this - }) - var or, - ar = function (r, e, t) { - for (var n = -1, o = Object(r), a = t(r), i = a.length; i--; ) { - var s = a[or ? i : ++n] - if (!1 === e(o[s], s, o)) break - } - return r - } - function ir(r) { - return null == r - ? void 0 === r - ? '[object Undefined]' - : '[object Null]' - : N && N in Object(r) - ? (function (r) { - var e = z.call(r, N), - t = r[N] - try { - r[N] = void 0 - var n = !0 - } catch (a) {} - var o = B.call(r) - n && (e ? (r[N] = t) : delete r[N]) - return o - })(r) - : (function (r) { - return B.call(r) - })(r) - } - function sr(r) { - return Ar(r) && ir(r) == a - } - function lr(r) { - return ( - !( - !Cr(r) || - (function (r) { - return !!R && R in r - })(r) - ) && - (kr(r) ? O : l).test( - (function (r) { - if (null != r) { - try { - return E.call(r) - } catch (e) {} - try { - return r + '' - } catch (e) {} - } - return '' - })(r), - ) - ) - } - function cr(r) { - if (!Cr(r)) - return (function (r) { - var e = [] - if (null != r) for (var t in Object(r)) e.push(t) - return e - })(r) - var e = br(r), - t = [] - for (var n in r) ('constructor' != n || (!e && z.call(r, n))) && t.push(n) - return t - } - function ur(r, e, t, n, o) { - r !== e && - ar( - e, - function (a, i) { - if ((o || (o = new K()), Cr(a))) - !(function (r, e, t, n, o, a, i) { - var l = gr(r, t), - c = gr(e, t), - u = i.get(c) - if (u) return void rr(r, t, u) - var d = a ? a(l, c, t + '', r, e, i) : void 0, - f = void 0 === d - if (f) { - var p = xr(c), - h = !p && Sr(c), - b = !p && !h && Er(c) - ;(d = c), - p || h || b - ? xr(l) - ? (d = l) - : Ar((g = l)) && wr(g) - ? (d = (function (r, e) { - var t = -1, - n = r.length - e || (e = Array(n)) - for (; ++t < n; ) e[t] = r[t] - return e - })(l)) - : h - ? ((f = !1), - (d = (function (r, e) { - if (e) return r.slice() - var t = r.length, - n = I ? I(t) : new r.constructor(t) - return r.copy(n), n - })(c, !0))) - : b - ? ((f = !1), - (d = (function (r, e) { - var t = e - ? (function (r) { - var e = new r.constructor(r.byteLength) - return new P(e).set(new P(r)), e - })(r.buffer) - : r.buffer - return new r.constructor(t, r.byteOffset, r.length) - })(c, !0))) - : (d = []) - : (function (r) { - if (!Ar(r) || ir(r) != s) return !1 - var e = M(r) - if (null === e) return !0 - var t = z.call(e, 'constructor') && e.constructor - return 'function' == typeof t && t instanceof t && E.call(t) == j - })(c) || yr(c) - ? ((d = l), - yr(l) - ? (d = (function (r) { - return (function (r, e, t, n) { - var o = !t - t || (t = {}) - var a = -1, - i = e.length - for (; ++a < i; ) { - var s = e[a], - l = n ? n(t[s], r[s], s, t, r) : void 0 - void 0 === l && (l = r[s]), o ? nr(t, s, l) : er(t, s, l) - } - return t - })(r, zr(r)) - })(l)) - : (Cr(l) && !kr(l)) || - (d = (function (r) { - return 'function' != typeof r.constructor || br(r) ? {} : G(M(r)) - })(c))) - : (f = !1) - } - var g - f && (i.set(c, d), o(d, c, n, a, i), i.delete(c)) - rr(r, t, d) - })(r, e, i, t, ur, n, o) - else { - var l = n ? n(gr(r, i), a, i + '', r, e, o) : void 0 - void 0 === l && (l = a), rr(r, i, l) - } - }, - zr, - ) - } - function dr(r, e) { - return mr( - (function (r, e, t) { - return ( - (e = $(void 0 === e ? r.length - 1 : e, 0)), - function () { - for (var n = arguments, o = -1, a = $(n.length - e, 0), i = Array(a); ++o < a; ) - i[o] = n[e + o] - o = -1 - for (var s = Array(e + 1); ++o < e; ) s[o] = n[o] - return (s[e] = t(i)), x(r, this, s) - } - ) - })(r, e, jr), - r + '', - ) - } - function fr(r, e) { - var t = r.__data__ - return (function (r) { - var e = typeof r - return 'string' == e || 'number' == e || 'symbol' == e || 'boolean' == e - ? '__proto__' !== r - : null === r - })(e) - ? t['string' == typeof e ? 'string' : 'hash'] - : t.map - } - function pr(r, e) { - var t = (function (r, e) { - return null == r ? void 0 : r[e] - })(r, e) - return lr(t) ? t : void 0 - } - function hr(r, e) { - var t = typeof r - return ( - !!(e = null == e ? o : e) && - ('number' == t || ('symbol' != t && c.test(r))) && - r > -1 && - r % 1 == 0 && - r < e - ) - } - function br(r) { - var e = r && r.constructor - return r === (('function' == typeof e && e.prototype) || C) - } - function gr(r, e) { - if (('constructor' !== e || 'function' !== typeof r[e]) && '__proto__' != e) return r[e] - } - var mr = (function (r) { - var e = 0, - t = 0 - return function () { - var n = Z(), - o = 16 - (n - t) - if (((t = n), o > 0)) { - if (++e >= 800) return arguments[0] - } else e = 0 - return r.apply(void 0, arguments) - } - })( - H - ? function (r, e) { - return H(r, 'toString', { - configurable: !0, - enumerable: !1, - value: - ((t = e), - function () { - return t - }), - writable: !0, - }) - var t - } - : jr, - ) - function vr(r, e) { - return r === e || (r !== r && e !== e) - } - var yr = sr( - (function () { - return arguments - })(), - ) - ? sr - : function (r) { - return Ar(r) && z.call(r, 'callee') && !W.call(r, 'callee') - }, - xr = Array.isArray - function wr(r) { - return null != r && _r(r.length) && !kr(r) - } - var Sr = - L || - function () { - return !1 - } - function kr(r) { - if (!Cr(r)) return !1 - var e = ir(r) - return ( - e == i || - '[object GeneratorFunction]' == e || - '[object AsyncFunction]' == e || - '[object Proxy]' == e - ) - } - function _r(r) { - return 'number' == typeof r && r > -1 && r % 1 == 0 && r <= o - } - function Cr(r) { - var e = typeof r - return null != r && ('object' == e || 'function' == e) - } - function Ar(r) { - return null != r && 'object' == typeof r - } - var Er = y - ? (function (r) { - return function (e) { - return r(e) - } - })(y) - : function (r) { - return Ar(r) && _r(r.length) && !!u[ir(r)] - } - function zr(r) { - return wr(r) ? Q(r, !0) : cr(r) - } - var Rr, - Br = - ((Rr = function (r, e, t, n) { - ur(r, e, t, n) - }), - dr(function (r, e) { - var t = -1, - n = e.length, - o = n > 1 ? e[n - 1] : void 0, - a = n > 2 ? e[2] : void 0 - for ( - o = Rr.length > 3 && 'function' == typeof o ? (n--, o) : void 0, - a && - (function (r, e, t) { - if (!Cr(t)) return !1 - var n = typeof e - return ( - !!('number' == n ? wr(t) && hr(e, t.length) : 'string' == n && (e in t)) && - vr(t[e], r) - ) - })(e[0], e[1], a) && - ((o = n < 3 ? void 0 : o), (n = 1)), - r = Object(r); - ++t < n; - - ) { - var i = e[t] - i && Rr(r, i, t, o) - } - return r - })) - function jr(r) { - return r - } - r.exports = Br - }, - 29200: function (r, e, t) { - 'use strict' - t.r(e), - t.d(e, { - default: function () { - return F - }, - }) - var n = t(26265), - o = t(85893), - a = (t(82702), t(84806)), - i = t(73808), - s = [ - 'borders', - 'breakpoints', - 'colors', - 'components', - 'config', - 'direction', - 'fonts', - 'fontSizes', - 'fontWeights', - 'letterSpacings', - 'lineHeights', - 'radii', - 'shadows', - 'sizes', - 'space', - 'styles', - 'transition', - 'zIndices', - ] - function l(r) { - return !!(0, i.Kn)(r) && s.every((e) => Object.prototype.hasOwnProperty.call(r, e)) - } - var c = t(80658), - u = t(38554), - d = t.n(u) - function f() { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - return d()({}, ...e, p) - } - function p(r, e, t, n) { - if (((0, i.mf)(r) || (0, i.mf)(e)) && Object.prototype.hasOwnProperty.call(n, t)) - return function () { - var t = (0, i.mf)(r) ? r(...arguments) : r, - n = (0, i.mf)(e) ? e(...arguments) : e - return d()({}, t, n, p) - } - } - var h = t(70917), - b = t(67294), - g = () => - b.createElement(h.Global, { - styles: - '\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ', - }), - m = t(34288), - v = t(29676), - y = t(24738), - x = t(84461), - w = { - body: { classList: { add() {}, remove() {} } }, - addEventListener() {}, - removeEventListener() {}, - activeElement: { blur() {}, nodeName: '' }, - querySelector: () => null, - querySelectorAll: () => [], - getElementById: () => null, - createEvent: () => ({ initEvent() {} }), - createElement: () => ({ - children: [], - childNodes: [], - style: {}, - setAttribute() {}, - getElementsByTagName: () => [], - }), - }, - S = () => {}, - k = { - window: { - document: w, - navigator: { userAgent: '' }, - CustomEvent: function () { - return this - }, - addEventListener: S, - removeEventListener: S, - getComputedStyle: () => ({ getPropertyValue: () => '' }), - matchMedia: () => ({ matches: !1, addListener: S, removeListener: S }), - requestAnimationFrame: (r) => - 'undefined' === typeof setTimeout ? (r(), null) : setTimeout(r, 0), - cancelAnimationFrame(r) { - 'undefined' !== typeof setTimeout && clearTimeout(r) - }, - setTimeout: () => 0, - clearTimeout: S, - setInterval: () => 0, - clearInterval: S, - }, - document: w, - }, - _ = x.jU ? { window: window, document: document } : k, - C = (0, b.createContext)(_) - function A(r) { - var { children: e, environment: t } = r, - [n, o] = (0, b.useState)(null), - a = (0, b.useMemo)(() => { - var r, - e = null == n ? void 0 : n.ownerDocument, - o = null == n ? void 0 : n.ownerDocument.defaultView - return null != (r = null != t ? t : e ? { document: e, window: o } : void 0) ? r : _ - }, [n, t]), - i = !n && !t - return b.createElement( - C.Provider, - { value: a }, - e, - i && - b.createElement('span', { - ref: (r) => { - r && o(r) - }, - }), - ) - } - i.Ts && (C.displayName = 'EnvironmentContext'), - i.Ts && (A.displayName = 'EnvironmentProvider') - var E = t(94577), - z = (r) => { - var { - children: e, - colorModeManager: t, - portalZIndex: n, - resetCSS: o = !0, - theme: i = a.Z, - environment: s, - cssVarsRoot: l, - } = r, - c = b.createElement(A, { environment: s }, e) - return b.createElement( - E.vc, - null, - b.createElement( - v.f6, - { theme: i, cssVarsRoot: l }, - b.createElement( - y.SG, - { colorModeManager: t, options: i.config }, - o && b.createElement(g, null), - b.createElement(v.ZL, null), - n ? b.createElement(m.h, { zIndex: n }, c) : c, - ), - ), - ) - }, - R = t(54533), - B = t(29356) - function j(r, e) { - var t = Object.keys(r) - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(r) - e && - (n = n.filter(function (e) { - return Object.getOwnPropertyDescriptor(r, e).enumerable - })), - t.push.apply(t, n) - } - return t - } - function O(r) { - for (var e = 1; e < arguments.length; e++) { - var t = null != arguments[e] ? arguments[e] : {} - e % 2 - ? j(Object(t), !0).forEach(function (e) { - ;(0, n.Z)(r, e, t[e]) - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) - : j(Object(t)).forEach(function (e) { - Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(t, e)) - }) - } - return r - } - function T(r) { - var e = r.children, - t = (0, b.useContext)(B.N), - n = t.highlightColor, - s = t.emacsTheme, - u = R.Z(s.base1, s.base2)(0.2), - d = - 'purple.500' === n - ? s.violet + 'aa' - : 'pink.500' === n - ? s.magenta + 'aa' - : 'blue.500' === n - ? s.blue + 'aa' - : 'cyan.500' === n - ? s.cyan + 'aa' - : 'green.500' === n - ? s.green + 'aa' - : 'yellow.500' === n - ? s.yellow + 'aa' - : 'orange.500' === n - ? s.orange + 'aa' - : 'red.500' === n - ? s.red + 'aa' - : void 0, - p = (function () { - for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t] - var n = [...e], - o = e[e.length - 1] - return ( - l(o) && n.length > 1 ? (n = n.slice(0, n.length - 1)) : (o = a.Z), - (0, c.zG)(...n.map((r) => (e) => (0, i.mf)(r) ? r(e) : f(e, r)))(o) - ) - })( - (0, b.useMemo)( - function () { - return { - colors: { - white: s.bg, - black: s.fg, - gray: { - 100: s.base1, - 200: u, - 300: s.base2, - 400: s.base3, - 500: s.base4, - 600: s.base5, - 700: s.base6, - 800: s.base7, - 900: s.base8, - }, - blue: { 500: s.blue }, - teal: { 500: s.blue }, - yellow: { 500: s.yellow }, - orange: { 500: s.orange }, - red: { 500: s.red }, - green: { 500: s.green }, - purple: { 500: s.violet }, - pink: { 500: s.magenta }, - cyan: { 500: s.cyan }, - alt: { 100: s['bg-alt'], 900: s['fg-alt'] }, - }, - shadows: { outline: '0 0 0 3px ' + d }, - components: { - Button: { - variants: { - outline: { border: '2px solid', borderColor: n, color: n }, - ghost: { - color: n, - _hover: { bg: 'inherit', border: '1px solid', borderColor: n }, - _active: { color: 'inherit', bg: n }, - }, - }, - }, - Accordion: { - baseStyle: { - container: { - marginTop: '10px', - borderWidth: '0px', - _last: { borderWidth: '0px' }, - }, - panel: { marginRight: '10px' }, - }, - }, - Slider: { - baseStyle: function (r) { - return { - thumb: { backgroundColor: n }, - filledTrack: { backgroundColor: 'gray.200' }, - } - }, - }, - }, - } - }, - [n, JSON.stringify(s)], - ), - (function (r) { - var { colorScheme: e, components: t } = r - return (r) => { - var n = Object.keys(r.components || {}) - return ( - Array.isArray(t) ? (n = t) : (0, i.Kn)(t) && (n = Object.keys(t)), - f(r, { - components: Object.fromEntries( - n.map((r) => [r, { defaultProps: { colorScheme: e } }]), - ), - }) - ) - } - })({ colorScheme: n.split('.')[0] }), - ) - return (0, o.jsx)(z, { theme: p, children: e }) - } - var F = function (r) { - var e = r.Component, - t = r.pageProps, - n = { - base1: '#1c1f24', - base2: '#21272d', - base3: '#23272e', - base4: '#484854', - base5: '#62686E', - base6: '#757B80', - base7: '#9ca0a4', - base8: '#DFDFDF', - bg: '#242730', - 'bg-alt': '#2a2e38', - blue: '#51afef', - cyan: '#5cEfFF', - 'dark-blue': '#1f5582', - 'dark-cyan': '#6A8FBF', - fg: '#bbc2cf', - 'fg-alt': '#5D656B', - green: '#7bc275', - grey: '#484854', - magenta: '#C57BDB', - orange: '#e69055', - red: '#ff665c', - teal: '#4db5bd', - violet: '#a991f1', - yellow: '#FCCE7B', - }, - a = (0, b.useState)(!1), - i = a[0], - s = a[1], - l = (0, b.useState)(n), - c = l[0], - u = l[1], - d = (0, b.useState)('purple.500'), - f = d[0], - p = d[1] - ;(0, b.useEffect)( - function () { - i && localStorage.setItem('theme', JSON.stringify(c)) - }, - [c], - ), - (0, b.useEffect)( - function () { - i && localStorage.setItem('highlightColor', JSON.stringify(f)) - }, - [f], - ), - (0, b.useEffect)(function () { - var r, e, t, o - u( - null !== - (r = JSON.parse( - null !== (e = localStorage.getItem('theme')) && void 0 !== e - ? e - : JSON.stringify(n), - )) && void 0 !== r - ? r - : n, - ), - p( - null !== - (t = JSON.parse( - null !== (o = localStorage.getItem('highlightColor')) && void 0 !== o - ? o - : JSON.stringify(f), - )) && void 0 !== t - ? t - : f, - ), - s(!0) - }, []) - var h = { emacsTheme: c, setEmacsTheme: u, highlightColor: f, setHighlightColor: p } - return (0, o.jsx)(B.N.Provider, { - value: h, - children: (0, o.jsx)(T, { children: (0, o.jsx)(e, O({}, t)) }), - }) - } - }, - 29356: function (r, e, t) { - 'use strict' - t.d(e, { - N: function () { - return n - }, - }) - var n = (0, t(67294).createContext)({ - emacsTheme: { - base1: '#1c1f24', - base2: '#21272d', - base3: '#23272e', - base4: '#484854', - base5: '#62686E', - base6: '#757B80', - base7: '#9ca0a4', - base8: '#DFDFDF', - bg: '#242730', - 'bg-alt': '#2a2e38', - blue: '#51afef', - cyan: '#5cEfFF', - 'dark-blue': '#1f5582', - 'dark-cyan': '#6A8FBF', - fg: '#bbc2cf', - 'fg-alt': '#5D656B', - green: '#7bc275', - grey: '#484854', - magenta: '#C57BDB', - orange: '#e69055', - red: '#ff665c', - teal: '#4db5bd', - violet: '#a991f1', - yellow: '#FCCE7B', - }, - setEmacsTheme: null, - highlightColor: 'purple', - setHighlightColor: null, - }) - }, - 76374: function (r, e, t) { - 'use strict' - function n(r, e, t) { - ;(r.prototype = e.prototype = t), (t.constructor = r) - } - function o(r, e) { - var t = Object.create(r.prototype) - for (var n in e) t[n] = e[n] - return t - } - function a() {} - t.d(e, { - ZP: function () { - return w - }, - B8: function () { - return C - }, - }) - var i = 0.7, - s = 1 / i, - l = '\\s*([+-]?\\d+)\\s*', - c = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', - u = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', - d = /^#([0-9a-f]{3,8})$/, - f = new RegExp('^rgb\\(' + [l, l, l] + '\\)$'), - p = new RegExp('^rgb\\(' + [u, u, u] + '\\)$'), - h = new RegExp('^rgba\\(' + [l, l, l, c] + '\\)$'), - b = new RegExp('^rgba\\(' + [u, u, u, c] + '\\)$'), - g = new RegExp('^hsl\\(' + [c, u, u] + '\\)$'), - m = new RegExp('^hsla\\(' + [c, u, u, c] + '\\)$'), - v = { - aliceblue: 15792383, - antiquewhite: 16444375, - aqua: 65535, - aquamarine: 8388564, - azure: 15794175, - beige: 16119260, - bisque: 16770244, - black: 0, - blanchedalmond: 16772045, - blue: 255, - blueviolet: 9055202, - brown: 10824234, - burlywood: 14596231, - cadetblue: 6266528, - chartreuse: 8388352, - chocolate: 13789470, - coral: 16744272, - cornflowerblue: 6591981, - cornsilk: 16775388, - crimson: 14423100, - cyan: 65535, - darkblue: 139, - darkcyan: 35723, - darkgoldenrod: 12092939, - darkgray: 11119017, - darkgreen: 25600, - darkgrey: 11119017, - darkkhaki: 12433259, - darkmagenta: 9109643, - darkolivegreen: 5597999, - darkorange: 16747520, - darkorchid: 10040012, - darkred: 9109504, - darksalmon: 15308410, - darkseagreen: 9419919, - darkslateblue: 4734347, - darkslategray: 3100495, - darkslategrey: 3100495, - darkturquoise: 52945, - darkviolet: 9699539, - deeppink: 16716947, - deepskyblue: 49151, - dimgray: 6908265, - dimgrey: 6908265, - dodgerblue: 2003199, - firebrick: 11674146, - floralwhite: 16775920, - forestgreen: 2263842, - fuchsia: 16711935, - gainsboro: 14474460, - ghostwhite: 16316671, - gold: 16766720, - goldenrod: 14329120, - gray: 8421504, - green: 32768, - greenyellow: 11403055, - grey: 8421504, - honeydew: 15794160, - hotpink: 16738740, - indianred: 13458524, - indigo: 4915330, - ivory: 16777200, - khaki: 15787660, - lavender: 15132410, - lavenderblush: 16773365, - lawngreen: 8190976, - lemonchiffon: 16775885, - lightblue: 11393254, - lightcoral: 15761536, - lightcyan: 14745599, - lightgoldenrodyellow: 16448210, - lightgray: 13882323, - lightgreen: 9498256, - lightgrey: 13882323, - lightpink: 16758465, - lightsalmon: 16752762, - lightseagreen: 2142890, - lightskyblue: 8900346, - lightslategray: 7833753, - lightslategrey: 7833753, - lightsteelblue: 11584734, - lightyellow: 16777184, - lime: 65280, - limegreen: 3329330, - linen: 16445670, - magenta: 16711935, - maroon: 8388608, - mediumaquamarine: 6737322, - mediumblue: 205, - mediumorchid: 12211667, - mediumpurple: 9662683, - mediumseagreen: 3978097, - mediumslateblue: 8087790, - mediumspringgreen: 64154, - mediumturquoise: 4772300, - mediumvioletred: 13047173, - midnightblue: 1644912, - mintcream: 16121850, - mistyrose: 16770273, - moccasin: 16770229, - navajowhite: 16768685, - navy: 128, - oldlace: 16643558, - olive: 8421376, - olivedrab: 7048739, - orange: 16753920, - orangered: 16729344, - orchid: 14315734, - palegoldenrod: 15657130, - palegreen: 10025880, - paleturquoise: 11529966, - palevioletred: 14381203, - papayawhip: 16773077, - peachpuff: 16767673, - peru: 13468991, - pink: 16761035, - plum: 14524637, - powderblue: 11591910, - purple: 8388736, - rebeccapurple: 6697881, - red: 16711680, - rosybrown: 12357519, - royalblue: 4286945, - saddlebrown: 9127187, - salmon: 16416882, - sandybrown: 16032864, - seagreen: 3050327, - seashell: 16774638, - sienna: 10506797, - silver: 12632256, - skyblue: 8900331, - slateblue: 6970061, - slategray: 7372944, - slategrey: 7372944, - snow: 16775930, - springgreen: 65407, - steelblue: 4620980, - tan: 13808780, - teal: 32896, - thistle: 14204888, - tomato: 16737095, - turquoise: 4251856, - violet: 15631086, - wheat: 16113331, - white: 16777215, - whitesmoke: 16119285, - yellow: 16776960, - yellowgreen: 10145074, - } - function y() { - return this.rgb().formatHex() - } - function x() { - return this.rgb().formatRgb() - } - function w(r) { - var e, t - return ( - (r = (r + '').trim().toLowerCase()), - (e = d.exec(r)) - ? ((t = e[1].length), - (e = parseInt(e[1], 16)), - 6 === t - ? S(e) - : 3 === t - ? new A( - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - ((15 & e) << 4) | (15 & e), - 1, - ) - : 8 === t - ? k((e >> 24) & 255, (e >> 16) & 255, (e >> 8) & 255, (255 & e) / 255) - : 4 === t - ? k( - ((e >> 12) & 15) | ((e >> 8) & 240), - ((e >> 8) & 15) | ((e >> 4) & 240), - ((e >> 4) & 15) | (240 & e), - (((15 & e) << 4) | (15 & e)) / 255, - ) - : null) - : (e = f.exec(r)) - ? new A(e[1], e[2], e[3], 1) - : (e = p.exec(r)) - ? new A((255 * e[1]) / 100, (255 * e[2]) / 100, (255 * e[3]) / 100, 1) - : (e = h.exec(r)) - ? k(e[1], e[2], e[3], e[4]) - : (e = b.exec(r)) - ? k((255 * e[1]) / 100, (255 * e[2]) / 100, (255 * e[3]) / 100, e[4]) - : (e = g.exec(r)) - ? B(e[1], e[2] / 100, e[3] / 100, 1) - : (e = m.exec(r)) - ? B(e[1], e[2] / 100, e[3] / 100, e[4]) - : v.hasOwnProperty(r) - ? S(v[r]) - : 'transparent' === r - ? new A(NaN, NaN, NaN, 0) - : null - ) - } - function S(r) { - return new A((r >> 16) & 255, (r >> 8) & 255, 255 & r, 1) - } - function k(r, e, t, n) { - return n <= 0 && (r = e = t = NaN), new A(r, e, t, n) - } - function _(r) { - return ( - r instanceof a || (r = w(r)), r ? new A((r = r.rgb()).r, r.g, r.b, r.opacity) : new A() - ) - } - function C(r, e, t, n) { - return 1 === arguments.length ? _(r) : new A(r, e, t, null == n ? 1 : n) - } - function A(r, e, t, n) { - ;(this.r = +r), (this.g = +e), (this.b = +t), (this.opacity = +n) - } - function E() { - return '#' + R(this.r) + R(this.g) + R(this.b) - } - function z() { - var r = this.opacity - return ( - (1 === (r = isNaN(r) ? 1 : Math.max(0, Math.min(1, r))) ? 'rgb(' : 'rgba(') + - Math.max(0, Math.min(255, Math.round(this.r) || 0)) + - ', ' + - Math.max(0, Math.min(255, Math.round(this.g) || 0)) + - ', ' + - Math.max(0, Math.min(255, Math.round(this.b) || 0)) + - (1 === r ? ')' : ', ' + r + ')') - ) - } - function R(r) { - return ( - ((r = Math.max(0, Math.min(255, Math.round(r) || 0))) < 16 ? '0' : '') + r.toString(16) - ) - } - function B(r, e, t, n) { - return ( - n <= 0 ? (r = e = t = NaN) : t <= 0 || t >= 1 ? (r = e = NaN) : e <= 0 && (r = NaN), - new O(r, e, t, n) - ) - } - function j(r) { - if (r instanceof O) return new O(r.h, r.s, r.l, r.opacity) - if ((r instanceof a || (r = w(r)), !r)) return new O() - if (r instanceof O) return r - var e = (r = r.rgb()).r / 255, - t = r.g / 255, - n = r.b / 255, - o = Math.min(e, t, n), - i = Math.max(e, t, n), - s = NaN, - l = i - o, - c = (i + o) / 2 - return ( - l - ? ((s = - e === i ? (t - n) / l + 6 * (t < n) : t === i ? (n - e) / l + 2 : (e - t) / l + 4), - (l /= c < 0.5 ? i + o : 2 - i - o), - (s *= 60)) - : (l = c > 0 && c < 1 ? 0 : s), - new O(s, l, c, r.opacity) - ) - } - function O(r, e, t, n) { - ;(this.h = +r), (this.s = +e), (this.l = +t), (this.opacity = +n) - } - function T(r, e, t) { - return ( - 255 * - (r < 60 - ? e + ((t - e) * r) / 60 - : r < 180 - ? t - : r < 240 - ? e + ((t - e) * (240 - r)) / 60 - : e) - ) - } - n(a, w, { - copy: function (r) { - return Object.assign(new this.constructor(), this, r) - }, - displayable: function () { - return this.rgb().displayable() - }, - hex: y, - formatHex: y, - formatHsl: function () { - return j(this).formatHsl() - }, - formatRgb: x, - toString: x, - }), - n( - A, - C, - o(a, { - brighter: function (r) { - return ( - (r = null == r ? s : Math.pow(s, r)), - new A(this.r * r, this.g * r, this.b * r, this.opacity) - ) - }, - darker: function (r) { - return ( - (r = null == r ? i : Math.pow(i, r)), - new A(this.r * r, this.g * r, this.b * r, this.opacity) - ) - }, - rgb: function () { - return this - }, - displayable: function () { - return ( - -0.5 <= this.r && - this.r < 255.5 && - -0.5 <= this.g && - this.g < 255.5 && - -0.5 <= this.b && - this.b < 255.5 && - 0 <= this.opacity && - this.opacity <= 1 - ) - }, - hex: E, - formatHex: E, - formatRgb: z, - toString: z, - }), - ), - n( - O, - function (r, e, t, n) { - return 1 === arguments.length ? j(r) : new O(r, e, t, null == n ? 1 : n) - }, - o(a, { - brighter: function (r) { - return ( - (r = null == r ? s : Math.pow(s, r)), - new O(this.h, this.s, this.l * r, this.opacity) - ) - }, - darker: function (r) { - return ( - (r = null == r ? i : Math.pow(i, r)), - new O(this.h, this.s, this.l * r, this.opacity) - ) - }, - rgb: function () { - var r = (this.h % 360) + 360 * (this.h < 0), - e = isNaN(r) || isNaN(this.s) ? 0 : this.s, - t = this.l, - n = t + (t < 0.5 ? t : 1 - t) * e, - o = 2 * t - n - return new A( - T(r >= 240 ? r - 240 : r + 120, o, n), - T(r, o, n), - T(r < 120 ? r + 240 : r - 120, o, n), - this.opacity, - ) - }, - displayable: function () { - return ( - ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && - 0 <= this.l && - this.l <= 1 && - 0 <= this.opacity && - this.opacity <= 1 - ) - }, - formatHsl: function () { - var r = this.opacity - return ( - (1 === (r = isNaN(r) ? 1 : Math.max(0, Math.min(1, r))) ? 'hsl(' : 'hsla(') + - (this.h || 0) + - ', ' + - 100 * (this.s || 0) + - '%, ' + - 100 * (this.l || 0) + - '%' + - (1 === r ? ')' : ', ' + r + ')') - ) - }, - }), - ) - }, - 62210: function (r, e) { - 'use strict' - e.Z = function (r) { - return function () { - return r - } - } - }, - 16033: function (r, e, t) { - 'use strict' - function n(r, e) { - return ( - (r = +r), - (e = +e), - function (t) { - return r * (1 - t) + e * t - } - ) - } - t.d(e, { - Z: function () { - return n - }, - }) - }, - 73028: function (r, e, t) { - 'use strict' - t.d(e, { - ZP: function () { - return c - }, - }) - var n = t(76374) - function o(r, e, t, n, o) { - var a = r * r, - i = a * r - return ( - ((1 - 3 * r + 3 * a - i) * e + - (4 - 6 * a + 3 * i) * t + - (1 + 3 * r + 3 * a - 3 * i) * n + - i * o) / - 6 - ) - } - var a = t(62210) - function i(r, e) { - return function (t) { - return r + t * e - } - } - function s(r) { - return 1 === (r = +r) - ? l - : function (e, t) { - return t - e - ? (function (r, e, t) { - return ( - (r = Math.pow(r, t)), - (e = Math.pow(e, t) - r), - (t = 1 / t), - function (n) { - return Math.pow(r + n * e, t) - } - ) - })(e, t, r) - : (0, a.Z)(isNaN(e) ? t : e) - } - } - function l(r, e) { - var t = e - r - return t ? i(r, t) : (0, a.Z)(isNaN(r) ? e : r) - } - var c = (function r(e) { - var t = s(e) - function o(r, e) { - var o = t((r = (0, n.B8)(r)).r, (e = (0, n.B8)(e)).r), - a = t(r.g, e.g), - i = t(r.b, e.b), - s = l(r.opacity, e.opacity) - return function (e) { - return (r.r = o(e)), (r.g = a(e)), (r.b = i(e)), (r.opacity = s(e)), r + '' - } - } - return (o.gamma = r), o - })(1) - function u(r) { - return function (e) { - var t, - o, - a = e.length, - i = new Array(a), - s = new Array(a), - l = new Array(a) - for (t = 0; t < a; ++t) - (o = (0, n.B8)(e[t])), (i[t] = o.r || 0), (s[t] = o.g || 0), (l[t] = o.b || 0) - return ( - (i = r(i)), - (s = r(s)), - (l = r(l)), - (o.opacity = 1), - function (r) { - return (o.r = i(r)), (o.g = s(r)), (o.b = l(r)), o + '' - } - ) - } - } - u(function (r) { - var e = r.length - 1 - return function (t) { - var n = t <= 0 ? (t = 0) : t >= 1 ? ((t = 1), e - 1) : Math.floor(t * e), - a = r[n], - i = r[n + 1], - s = n > 0 ? r[n - 1] : 2 * a - i, - l = n < e - 1 ? r[n + 2] : 2 * i - a - return o((t - n / e) * e, s, a, i, l) - } - }), - u(function (r) { - var e = r.length - return function (t) { - var n = Math.floor(((t %= 1) < 0 ? ++t : t) * e), - a = r[(n + e - 1) % e], - i = r[n % e], - s = r[(n + 1) % e], - l = r[(n + 2) % e] - return o((t - n / e) * e, a, i, s, l) - } - }) - }, - 10370: function (r, e, t) { - 'use strict' - t.d(e, { - Z: function () { - return i - }, - }) - var n = t(16033), - o = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - a = new RegExp(o.source, 'g') - function i(r, e) { - var t, - i, - s, - l = (o.lastIndex = a.lastIndex = 0), - c = -1, - u = [], - d = [] - for (r += '', e += ''; (t = o.exec(r)) && (i = a.exec(e)); ) - (s = i.index) > l && ((s = e.slice(l, s)), u[c] ? (u[c] += s) : (u[++c] = s)), - (t = t[0]) === (i = i[0]) - ? u[c] - ? (u[c] += i) - : (u[++c] = i) - : ((u[++c] = null), d.push({ i: c, x: (0, n.Z)(t, i) })), - (l = a.lastIndex) - return ( - l < e.length && ((s = e.slice(l)), u[c] ? (u[c] += s) : (u[++c] = s)), - u.length < 2 - ? d[0] - ? (function (r) { - return function (e) { - return r(e) + '' - } - })(d[0].x) - : (function (r) { - return function () { - return r - } - })(e) - : ((e = d.length), - function (r) { - for (var t, n = 0; n < e; ++n) u[(t = d[n]).i] = t.x(r) - return u.join('') - }) - ) - } - }, - 54533: function (r, e, t) { - 'use strict' - t.d(e, { - Z: function () { - return f - }, - }) - var n = t(76374), - o = t(73028) - function a(r, e) { - var t, - n = e ? e.length : 0, - o = r ? Math.min(n, r.length) : 0, - a = new Array(o), - i = new Array(n) - for (t = 0; t < o; ++t) a[t] = f(r[t], e[t]) - for (; t < n; ++t) i[t] = e[t] - return function (r) { - for (t = 0; t < o; ++t) i[t] = a[t](r) - return i - } - } - function i(r, e) { - var t = new Date() - return ( - (r = +r), - (e = +e), - function (n) { - return t.setTime(r * (1 - n) + e * n), t - } - ) - } - var s = t(16033) - function l(r, e) { - var t, - n = {}, - o = {} - for (t in ((null !== r && 'object' === typeof r) || (r = {}), - (null !== e && 'object' === typeof e) || (e = {}), - e)) - t in r ? (n[t] = f(r[t], e[t])) : (o[t] = e[t]) - return function (r) { - for (t in n) o[t] = n[t](r) - return o - } - } - var c = t(10370), - u = t(62210) - function d(r, e) { - e || (e = []) - var t, - n = r ? Math.min(e.length, r.length) : 0, - o = e.slice() - return function (a) { - for (t = 0; t < n; ++t) o[t] = r[t] * (1 - a) + e[t] * a - return o - } - } - function f(r, e) { - var t, - f, - p = typeof e - return null == e || 'boolean' === p - ? (0, u.Z)(e) - : ('number' === p - ? s.Z - : 'string' === p - ? (t = (0, n.ZP)(e)) - ? ((e = t), o.ZP) - : c.Z - : e instanceof n.ZP - ? o.ZP - : e instanceof Date - ? i - : ((f = e), - !ArrayBuffer.isView(f) || f instanceof DataView - ? Array.isArray(e) - ? a - : ('function' !== typeof e.valueOf && 'function' !== typeof e.toString) || - isNaN(e) - ? l - : s.Z - : d))(r, e) - } - }, - 76363: function (r, e, t) { - ;(window.__NEXT_P = window.__NEXT_P || []).push([ - '/_app', - function () { - return t(29200) - }, - ]) - }, - 82702: function () {}, - 26265: function (r, e, t) { - 'use strict' - function n(r, e, t) { - return ( - e in r - ? Object.defineProperty(r, e, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (r[e] = t), - r - ) - } - t.d(e, { - Z: function () { - return n - }, - }) - }, - 69921: function (r, e) { - 'use strict' - var t = 'function' === typeof Symbol && Symbol.for, - n = t ? Symbol.for('react.element') : 60103, - o = t ? Symbol.for('react.portal') : 60106, - a = t ? Symbol.for('react.fragment') : 60107, - i = t ? Symbol.for('react.strict_mode') : 60108, - s = t ? Symbol.for('react.profiler') : 60114, - l = t ? Symbol.for('react.provider') : 60109, - c = t ? Symbol.for('react.context') : 60110, - u = t ? Symbol.for('react.async_mode') : 60111, - d = t ? Symbol.for('react.concurrent_mode') : 60111, - f = t ? Symbol.for('react.forward_ref') : 60112, - p = t ? Symbol.for('react.suspense') : 60113, - h = t ? Symbol.for('react.suspense_list') : 60120, - b = t ? Symbol.for('react.memo') : 60115, - g = t ? Symbol.for('react.lazy') : 60116, - m = t ? Symbol.for('react.block') : 60121, - v = t ? Symbol.for('react.fundamental') : 60117, - y = t ? Symbol.for('react.responder') : 60118, - x = t ? Symbol.for('react.scope') : 60119 - function w(r) { - if ('object' === typeof r && null !== r) { - var e = r.$$typeof - switch (e) { - case n: - switch ((r = r.type)) { - case u: - case d: - case a: - case s: - case i: - case p: - return r - default: - switch ((r = r && r.$$typeof)) { - case c: - case f: - case g: - case b: - case l: - return r - default: - return e - } - } - case o: - return e - } - } - } - function S(r) { - return w(r) === d - } - ;(e.AsyncMode = u), - (e.ConcurrentMode = d), - (e.ContextConsumer = c), - (e.ContextProvider = l), - (e.Element = n), - (e.ForwardRef = f), - (e.Fragment = a), - (e.Lazy = g), - (e.Memo = b), - (e.Portal = o), - (e.Profiler = s), - (e.StrictMode = i), - (e.Suspense = p), - (e.isAsyncMode = function (r) { - return S(r) || w(r) === u - }), - (e.isConcurrentMode = S), - (e.isContextConsumer = function (r) { - return w(r) === c - }), - (e.isContextProvider = function (r) { - return w(r) === l - }), - (e.isElement = function (r) { - return 'object' === typeof r && null !== r && r.$$typeof === n - }), - (e.isForwardRef = function (r) { - return w(r) === f - }), - (e.isFragment = function (r) { - return w(r) === a - }), - (e.isLazy = function (r) { - return w(r) === g - }), - (e.isMemo = function (r) { - return w(r) === b - }), - (e.isPortal = function (r) { - return w(r) === o - }), - (e.isProfiler = function (r) { - return w(r) === s - }), - (e.isStrictMode = function (r) { - return w(r) === i - }), - (e.isSuspense = function (r) { - return w(r) === p - }), - (e.isValidElementType = function (r) { - return ( - 'string' === typeof r || - 'function' === typeof r || - r === a || - r === d || - r === s || - r === i || - r === p || - r === h || - ('object' === typeof r && - null !== r && - (r.$$typeof === g || - r.$$typeof === b || - r.$$typeof === l || - r.$$typeof === c || - r.$$typeof === f || - r.$$typeof === v || - r.$$typeof === y || - r.$$typeof === x || - r.$$typeof === m)) - ) - }), - (e.typeOf = w) - }, - 59864: function (r, e, t) { - 'use strict' - r.exports = t(69921) - }, - 17621: function (r, e, t) { - var n - !(function (o) { - var a = /^\s+/, - i = /\s+$/, - s = 0, - l = o.round, - c = o.min, - u = o.max, - d = o.random - function f(r, e) { - if (((e = e || {}), (r = r || '') instanceof f)) return r - if (!(this instanceof f)) return new f(r, e) - var t = (function (r) { - var e = { r: 0, g: 0, b: 0 }, - t = 1, - n = null, - s = null, - l = null, - d = !1, - f = !1 - 'string' == typeof r && - (r = (function (r) { - r = r.replace(a, '').replace(i, '').toLowerCase() - var e, - t = !1 - if (B[r]) (r = B[r]), (t = !0) - else if ('transparent' == r) return { r: 0, g: 0, b: 0, a: 0, format: 'name' } - if ((e = J.rgb.exec(r))) return { r: e[1], g: e[2], b: e[3] } - if ((e = J.rgba.exec(r))) return { r: e[1], g: e[2], b: e[3], a: e[4] } - if ((e = J.hsl.exec(r))) return { h: e[1], s: e[2], l: e[3] } - if ((e = J.hsla.exec(r))) return { h: e[1], s: e[2], l: e[3], a: e[4] } - if ((e = J.hsv.exec(r))) return { h: e[1], s: e[2], v: e[3] } - if ((e = J.hsva.exec(r))) return { h: e[1], s: e[2], v: e[3], a: e[4] } - if ((e = J.hex8.exec(r))) - return { - r: P(e[1]), - g: P(e[2]), - b: P(e[3]), - a: W(e[4]), - format: t ? 'name' : 'hex8', - } - if ((e = J.hex6.exec(r))) - return { r: P(e[1]), g: P(e[2]), b: P(e[3]), format: t ? 'name' : 'hex' } - if ((e = J.hex4.exec(r))) - return { - r: P(e[1] + '' + e[1]), - g: P(e[2] + '' + e[2]), - b: P(e[3] + '' + e[3]), - a: W(e[4] + '' + e[4]), - format: t ? 'name' : 'hex8', - } - if ((e = J.hex3.exec(r))) - return { - r: P(e[1] + '' + e[1]), - g: P(e[2] + '' + e[2]), - b: P(e[3] + '' + e[3]), - format: t ? 'name' : 'hex', - } - return !1 - })(r)) - 'object' == typeof r && - (N(r.r) && N(r.g) && N(r.b) - ? ((p = r.r), - (h = r.g), - (b = r.b), - (e = { r: 255 * T(p, 255), g: 255 * T(h, 255), b: 255 * T(b, 255) }), - (d = !0), - (f = '%' === String(r.r).substr(-1) ? 'prgb' : 'rgb')) - : N(r.h) && N(r.s) && N(r.v) - ? ((n = M(r.s)), - (s = M(r.v)), - (e = (function (r, e, t) { - ;(r = 6 * T(r, 360)), (e = T(e, 100)), (t = T(t, 100)) - var n = o.floor(r), - a = r - n, - i = t * (1 - e), - s = t * (1 - a * e), - l = t * (1 - (1 - a) * e), - c = n % 6 - return { - r: 255 * [t, s, i, i, l, t][c], - g: 255 * [l, t, t, s, i, i][c], - b: 255 * [i, i, l, t, t, s][c], - } - })(r.h, n, s)), - (d = !0), - (f = 'hsv')) - : N(r.h) && - N(r.s) && - N(r.l) && - ((n = M(r.s)), - (l = M(r.l)), - (e = (function (r, e, t) { - var n, o, a - function i(r, e, t) { - return ( - t < 0 && (t += 1), - t > 1 && (t -= 1), - t < 1 / 6 - ? r + 6 * (e - r) * t - : t < 0.5 - ? e - : t < 2 / 3 - ? r + (e - r) * (2 / 3 - t) * 6 - : r - ) - } - if (((r = T(r, 360)), (e = T(e, 100)), (t = T(t, 100)), 0 === e)) n = o = a = t - else { - var s = t < 0.5 ? t * (1 + e) : t + e - t * e, - l = 2 * t - s - ;(n = i(l, s, r + 1 / 3)), (o = i(l, s, r)), (a = i(l, s, r - 1 / 3)) - } - return { r: 255 * n, g: 255 * o, b: 255 * a } - })(r.h, n, l)), - (d = !0), - (f = 'hsl')), - r.hasOwnProperty('a') && (t = r.a)) - var p, h, b - return ( - (t = O(t)), - { - ok: d, - format: r.format || f, - r: c(255, u(e.r, 0)), - g: c(255, u(e.g, 0)), - b: c(255, u(e.b, 0)), - a: t, - } - ) - })(r) - ;(this._originalInput = r), - (this._r = t.r), - (this._g = t.g), - (this._b = t.b), - (this._a = t.a), - (this._roundA = l(100 * this._a) / 100), - (this._format = e.format || t.format), - (this._gradientType = e.gradientType), - this._r < 1 && (this._r = l(this._r)), - this._g < 1 && (this._g = l(this._g)), - this._b < 1 && (this._b = l(this._b)), - (this._ok = t.ok), - (this._tc_id = s++) - } - function p(r, e, t) { - ;(r = T(r, 255)), (e = T(e, 255)), (t = T(t, 255)) - var n, - o, - a = u(r, e, t), - i = c(r, e, t), - s = (a + i) / 2 - if (a == i) n = o = 0 - else { - var l = a - i - switch (((o = s > 0.5 ? l / (2 - a - i) : l / (a + i)), a)) { - case r: - n = (e - t) / l + (e < t ? 6 : 0) - break - case e: - n = (t - r) / l + 2 - break - case t: - n = (r - e) / l + 4 - } - n /= 6 - } - return { h: n, s: o, l: s } - } - function h(r, e, t) { - ;(r = T(r, 255)), (e = T(e, 255)), (t = T(t, 255)) - var n, - o, - a = u(r, e, t), - i = c(r, e, t), - s = a, - l = a - i - if (((o = 0 === a ? 0 : l / a), a == i)) n = 0 - else { - switch (a) { - case r: - n = (e - t) / l + (e < t ? 6 : 0) - break - case e: - n = (t - r) / l + 2 - break - case t: - n = (r - e) / l + 4 - } - n /= 6 - } - return { h: n, s: o, v: s } - } - function b(r, e, t, n) { - var o = [I(l(r).toString(16)), I(l(e).toString(16)), I(l(t).toString(16))] - return n && - o[0].charAt(0) == o[0].charAt(1) && - o[1].charAt(0) == o[1].charAt(1) && - o[2].charAt(0) == o[2].charAt(1) - ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) - : o.join('') - } - function g(r, e, t, n) { - return [I(D(n)), I(l(r).toString(16)), I(l(e).toString(16)), I(l(t).toString(16))].join( - '', - ) - } - function m(r, e) { - e = 0 === e ? 0 : e || 10 - var t = f(r).toHsl() - return (t.s -= e / 100), (t.s = F(t.s)), f(t) - } - function v(r, e) { - e = 0 === e ? 0 : e || 10 - var t = f(r).toHsl() - return (t.s += e / 100), (t.s = F(t.s)), f(t) - } - function y(r) { - return f(r).desaturate(100) - } - function x(r, e) { - e = 0 === e ? 0 : e || 10 - var t = f(r).toHsl() - return (t.l += e / 100), (t.l = F(t.l)), f(t) - } - function w(r, e) { - e = 0 === e ? 0 : e || 10 - var t = f(r).toRgb() - return ( - (t.r = u(0, c(255, t.r - l((-e / 100) * 255)))), - (t.g = u(0, c(255, t.g - l((-e / 100) * 255)))), - (t.b = u(0, c(255, t.b - l((-e / 100) * 255)))), - f(t) - ) - } - function S(r, e) { - e = 0 === e ? 0 : e || 10 - var t = f(r).toHsl() - return (t.l -= e / 100), (t.l = F(t.l)), f(t) - } - function k(r, e) { - var t = f(r).toHsl(), - n = (t.h + e) % 360 - return (t.h = n < 0 ? 360 + n : n), f(t) - } - function _(r) { - var e = f(r).toHsl() - return (e.h = (e.h + 180) % 360), f(e) - } - function C(r) { - var e = f(r).toHsl(), - t = e.h - return [ - f(r), - f({ h: (t + 120) % 360, s: e.s, l: e.l }), - f({ h: (t + 240) % 360, s: e.s, l: e.l }), - ] - } - function A(r) { - var e = f(r).toHsl(), - t = e.h - return [ - f(r), - f({ h: (t + 90) % 360, s: e.s, l: e.l }), - f({ h: (t + 180) % 360, s: e.s, l: e.l }), - f({ h: (t + 270) % 360, s: e.s, l: e.l }), - ] - } - function E(r) { - var e = f(r).toHsl(), - t = e.h - return [ - f(r), - f({ h: (t + 72) % 360, s: e.s, l: e.l }), - f({ h: (t + 216) % 360, s: e.s, l: e.l }), - ] - } - function z(r, e, t) { - ;(e = e || 6), (t = t || 30) - var n = f(r).toHsl(), - o = 360 / t, - a = [f(r)] - for (n.h = (n.h - ((o * e) >> 1) + 720) % 360; --e; ) - (n.h = (n.h + o) % 360), a.push(f(n)) - return a - } - function R(r, e) { - e = e || 6 - for (var t = f(r).toHsv(), n = t.h, o = t.s, a = t.v, i = [], s = 1 / e; e--; ) - i.push(f({ h: n, s: o, v: a })), (a = (a + s) % 1) - return i - } - ;(f.prototype = { - isDark: function () { - return this.getBrightness() < 128 - }, - isLight: function () { - return !this.isDark() - }, - isValid: function () { - return this._ok - }, - getOriginalInput: function () { - return this._originalInput - }, - getFormat: function () { - return this._format - }, - getAlpha: function () { - return this._a - }, - getBrightness: function () { - var r = this.toRgb() - return (299 * r.r + 587 * r.g + 114 * r.b) / 1e3 - }, - getLuminance: function () { - var r, - e, - t, - n = this.toRgb() - return ( - (r = n.r / 255), - (e = n.g / 255), - (t = n.b / 255), - 0.2126 * (r <= 0.03928 ? r / 12.92 : o.pow((r + 0.055) / 1.055, 2.4)) + - 0.7152 * (e <= 0.03928 ? e / 12.92 : o.pow((e + 0.055) / 1.055, 2.4)) + - 0.0722 * (t <= 0.03928 ? t / 12.92 : o.pow((t + 0.055) / 1.055, 2.4)) - ) - }, - setAlpha: function (r) { - return (this._a = O(r)), (this._roundA = l(100 * this._a) / 100), this - }, - toHsv: function () { - var r = h(this._r, this._g, this._b) - return { h: 360 * r.h, s: r.s, v: r.v, a: this._a } - }, - toHsvString: function () { - var r = h(this._r, this._g, this._b), - e = l(360 * r.h), - t = l(100 * r.s), - n = l(100 * r.v) - return 1 == this._a - ? 'hsv(' + e + ', ' + t + '%, ' + n + '%)' - : 'hsva(' + e + ', ' + t + '%, ' + n + '%, ' + this._roundA + ')' - }, - toHsl: function () { - var r = p(this._r, this._g, this._b) - return { h: 360 * r.h, s: r.s, l: r.l, a: this._a } - }, - toHslString: function () { - var r = p(this._r, this._g, this._b), - e = l(360 * r.h), - t = l(100 * r.s), - n = l(100 * r.l) - return 1 == this._a - ? 'hsl(' + e + ', ' + t + '%, ' + n + '%)' - : 'hsla(' + e + ', ' + t + '%, ' + n + '%, ' + this._roundA + ')' - }, - toHex: function (r) { - return b(this._r, this._g, this._b, r) - }, - toHexString: function (r) { - return '#' + this.toHex(r) - }, - toHex8: function (r) { - return (function (r, e, t, n, o) { - var a = [I(l(r).toString(16)), I(l(e).toString(16)), I(l(t).toString(16)), I(D(n))] - if ( - o && - a[0].charAt(0) == a[0].charAt(1) && - a[1].charAt(0) == a[1].charAt(1) && - a[2].charAt(0) == a[2].charAt(1) && - a[3].charAt(0) == a[3].charAt(1) - ) - return a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) - return a.join('') - })(this._r, this._g, this._b, this._a, r) - }, - toHex8String: function (r) { - return '#' + this.toHex8(r) - }, - toRgb: function () { - return { r: l(this._r), g: l(this._g), b: l(this._b), a: this._a } - }, - toRgbString: function () { - return 1 == this._a - ? 'rgb(' + l(this._r) + ', ' + l(this._g) + ', ' + l(this._b) + ')' - : 'rgba(' + - l(this._r) + - ', ' + - l(this._g) + - ', ' + - l(this._b) + - ', ' + - this._roundA + - ')' - }, - toPercentageRgb: function () { - return { - r: l(100 * T(this._r, 255)) + '%', - g: l(100 * T(this._g, 255)) + '%', - b: l(100 * T(this._b, 255)) + '%', - a: this._a, - } - }, - toPercentageRgbString: function () { - return 1 == this._a - ? 'rgb(' + - l(100 * T(this._r, 255)) + - '%, ' + - l(100 * T(this._g, 255)) + - '%, ' + - l(100 * T(this._b, 255)) + - '%)' - : 'rgba(' + - l(100 * T(this._r, 255)) + - '%, ' + - l(100 * T(this._g, 255)) + - '%, ' + - l(100 * T(this._b, 255)) + - '%, ' + - this._roundA + - ')' - }, - toName: function () { - return 0 === this._a - ? 'transparent' - : !(this._a < 1) && (j[b(this._r, this._g, this._b, !0)] || !1) - }, - toFilter: function (r) { - var e = '#' + g(this._r, this._g, this._b, this._a), - t = e, - n = this._gradientType ? 'GradientType = 1, ' : '' - if (r) { - var o = f(r) - t = '#' + g(o._r, o._g, o._b, o._a) - } - return ( - 'progid:DXImageTransform.Microsoft.gradient(' + - n + - 'startColorstr=' + - e + - ',endColorstr=' + - t + - ')' - ) - }, - toString: function (r) { - var e = !!r - r = r || this._format - var t = !1, - n = this._a < 1 && this._a >= 0 - return e || - !n || - ('hex' !== r && - 'hex6' !== r && - 'hex3' !== r && - 'hex4' !== r && - 'hex8' !== r && - 'name' !== r) - ? ('rgb' === r && (t = this.toRgbString()), - 'prgb' === r && (t = this.toPercentageRgbString()), - ('hex' !== r && 'hex6' !== r) || (t = this.toHexString()), - 'hex3' === r && (t = this.toHexString(!0)), - 'hex4' === r && (t = this.toHex8String(!0)), - 'hex8' === r && (t = this.toHex8String()), - 'name' === r && (t = this.toName()), - 'hsl' === r && (t = this.toHslString()), - 'hsv' === r && (t = this.toHsvString()), - t || this.toHexString()) - : 'name' === r && 0 === this._a - ? this.toName() - : this.toRgbString() - }, - clone: function () { - return f(this.toString()) - }, - _applyModification: function (r, e) { - var t = r.apply(null, [this].concat([].slice.call(e))) - return (this._r = t._r), (this._g = t._g), (this._b = t._b), this.setAlpha(t._a), this - }, - lighten: function () { - return this._applyModification(x, arguments) - }, - brighten: function () { - return this._applyModification(w, arguments) - }, - darken: function () { - return this._applyModification(S, arguments) - }, - desaturate: function () { - return this._applyModification(m, arguments) - }, - saturate: function () { - return this._applyModification(v, arguments) - }, - greyscale: function () { - return this._applyModification(y, arguments) - }, - spin: function () { - return this._applyModification(k, arguments) - }, - _applyCombination: function (r, e) { - return r.apply(null, [this].concat([].slice.call(e))) - }, - analogous: function () { - return this._applyCombination(z, arguments) - }, - complement: function () { - return this._applyCombination(_, arguments) - }, - monochromatic: function () { - return this._applyCombination(R, arguments) - }, - splitcomplement: function () { - return this._applyCombination(E, arguments) - }, - triad: function () { - return this._applyCombination(C, arguments) - }, - tetrad: function () { - return this._applyCombination(A, arguments) - }, - }), - (f.fromRatio = function (r, e) { - if ('object' == typeof r) { - var t = {} - for (var n in r) r.hasOwnProperty(n) && (t[n] = 'a' === n ? r[n] : M(r[n])) - r = t - } - return f(r, e) - }), - (f.equals = function (r, e) { - return !(!r || !e) && f(r).toRgbString() == f(e).toRgbString() - }), - (f.random = function () { - return f.fromRatio({ r: d(), g: d(), b: d() }) - }), - (f.mix = function (r, e, t) { - t = 0 === t ? 0 : t || 50 - var n = f(r).toRgb(), - o = f(e).toRgb(), - a = t / 100 - return f({ - r: (o.r - n.r) * a + n.r, - g: (o.g - n.g) * a + n.g, - b: (o.b - n.b) * a + n.b, - a: (o.a - n.a) * a + n.a, - }) - }), - (f.readability = function (r, e) { - var t = f(r), - n = f(e) - return ( - (o.max(t.getLuminance(), n.getLuminance()) + 0.05) / - (o.min(t.getLuminance(), n.getLuminance()) + 0.05) - ) - }), - (f.isReadable = function (r, e, t) { - var n, - o, - a = f.readability(r, e) - switch ( - ((o = !1), - (n = (function (r) { - var e, t - ;(e = ((r = r || { level: 'AA', size: 'small' }).level || 'AA').toUpperCase()), - (t = (r.size || 'small').toLowerCase()), - 'AA' !== e && 'AAA' !== e && (e = 'AA') - 'small' !== t && 'large' !== t && (t = 'small') - return { level: e, size: t } - })(t)).level + n.size) - ) { - case 'AAsmall': - case 'AAAlarge': - o = a >= 4.5 - break - case 'AAlarge': - o = a >= 3 - break - case 'AAAsmall': - o = a >= 7 - } - return o - }), - (f.mostReadable = function (r, e, t) { - var n, - o, - a, - i, - s = null, - l = 0 - ;(o = (t = t || {}).includeFallbackColors), (a = t.level), (i = t.size) - for (var c = 0; c < e.length; c++) - (n = f.readability(r, e[c])) > l && ((l = n), (s = f(e[c]))) - return f.isReadable(r, s, { level: a, size: i }) || !o - ? s - : ((t.includeFallbackColors = !1), f.mostReadable(r, ['#fff', '#000'], t)) - }) - var B = (f.names = { - aliceblue: 'f0f8ff', - antiquewhite: 'faebd7', - aqua: '0ff', - aquamarine: '7fffd4', - azure: 'f0ffff', - beige: 'f5f5dc', - bisque: 'ffe4c4', - black: '000', - blanchedalmond: 'ffebcd', - blue: '00f', - blueviolet: '8a2be2', - brown: 'a52a2a', - burlywood: 'deb887', - burntsienna: 'ea7e5d', - cadetblue: '5f9ea0', - chartreuse: '7fff00', - chocolate: 'd2691e', - coral: 'ff7f50', - cornflowerblue: '6495ed', - cornsilk: 'fff8dc', - crimson: 'dc143c', - cyan: '0ff', - darkblue: '00008b', - darkcyan: '008b8b', - darkgoldenrod: 'b8860b', - darkgray: 'a9a9a9', - darkgreen: '006400', - darkgrey: 'a9a9a9', - darkkhaki: 'bdb76b', - darkmagenta: '8b008b', - darkolivegreen: '556b2f', - darkorange: 'ff8c00', - darkorchid: '9932cc', - darkred: '8b0000', - darksalmon: 'e9967a', - darkseagreen: '8fbc8f', - darkslateblue: '483d8b', - darkslategray: '2f4f4f', - darkslategrey: '2f4f4f', - darkturquoise: '00ced1', - darkviolet: '9400d3', - deeppink: 'ff1493', - deepskyblue: '00bfff', - dimgray: '696969', - dimgrey: '696969', - dodgerblue: '1e90ff', - firebrick: 'b22222', - floralwhite: 'fffaf0', - forestgreen: '228b22', - fuchsia: 'f0f', - gainsboro: 'dcdcdc', - ghostwhite: 'f8f8ff', - gold: 'ffd700', - goldenrod: 'daa520', - gray: '808080', - green: '008000', - greenyellow: 'adff2f', - grey: '808080', - honeydew: 'f0fff0', - hotpink: 'ff69b4', - indianred: 'cd5c5c', - indigo: '4b0082', - ivory: 'fffff0', - khaki: 'f0e68c', - lavender: 'e6e6fa', - lavenderblush: 'fff0f5', - lawngreen: '7cfc00', - lemonchiffon: 'fffacd', - lightblue: 'add8e6', - lightcoral: 'f08080', - lightcyan: 'e0ffff', - lightgoldenrodyellow: 'fafad2', - lightgray: 'd3d3d3', - lightgreen: '90ee90', - lightgrey: 'd3d3d3', - lightpink: 'ffb6c1', - lightsalmon: 'ffa07a', - lightseagreen: '20b2aa', - lightskyblue: '87cefa', - lightslategray: '789', - lightslategrey: '789', - lightsteelblue: 'b0c4de', - lightyellow: 'ffffe0', - lime: '0f0', - limegreen: '32cd32', - linen: 'faf0e6', - magenta: 'f0f', - maroon: '800000', - mediumaquamarine: '66cdaa', - mediumblue: '0000cd', - mediumorchid: 'ba55d3', - mediumpurple: '9370db', - mediumseagreen: '3cb371', - mediumslateblue: '7b68ee', - mediumspringgreen: '00fa9a', - mediumturquoise: '48d1cc', - mediumvioletred: 'c71585', - midnightblue: '191970', - mintcream: 'f5fffa', - mistyrose: 'ffe4e1', - moccasin: 'ffe4b5', - navajowhite: 'ffdead', - navy: '000080', - oldlace: 'fdf5e6', - olive: '808000', - olivedrab: '6b8e23', - orange: 'ffa500', - orangered: 'ff4500', - orchid: 'da70d6', - palegoldenrod: 'eee8aa', - palegreen: '98fb98', - paleturquoise: 'afeeee', - palevioletred: 'db7093', - papayawhip: 'ffefd5', - peachpuff: 'ffdab9', - peru: 'cd853f', - pink: 'ffc0cb', - plum: 'dda0dd', - powderblue: 'b0e0e6', - purple: '800080', - rebeccapurple: '663399', - red: 'f00', - rosybrown: 'bc8f8f', - royalblue: '4169e1', - saddlebrown: '8b4513', - salmon: 'fa8072', - sandybrown: 'f4a460', - seagreen: '2e8b57', - seashell: 'fff5ee', - sienna: 'a0522d', - silver: 'c0c0c0', - skyblue: '87ceeb', - slateblue: '6a5acd', - slategray: '708090', - slategrey: '708090', - snow: 'fffafa', - springgreen: '00ff7f', - steelblue: '4682b4', - tan: 'd2b48c', - teal: '008080', - thistle: 'd8bfd8', - tomato: 'ff6347', - turquoise: '40e0d0', - violet: 'ee82ee', - wheat: 'f5deb3', - white: 'fff', - whitesmoke: 'f5f5f5', - yellow: 'ff0', - yellowgreen: '9acd32', - }), - j = (f.hexNames = (function (r) { - var e = {} - for (var t in r) r.hasOwnProperty(t) && (e[r[t]] = t) - return e - })(B)) - function O(r) { - return (r = parseFloat(r)), (isNaN(r) || r < 0 || r > 1) && (r = 1), r - } - function T(r, e) { - ;(function (r) { - return 'string' == typeof r && -1 != r.indexOf('.') && 1 === parseFloat(r) - })(r) && (r = '100%') - var t = (function (r) { - return 'string' === typeof r && -1 != r.indexOf('%') - })(r) - return ( - (r = c(e, u(0, parseFloat(r)))), - t && (r = parseInt(r * e, 10) / 100), - o.abs(r - e) < 1e-6 ? 1 : (r % e) / parseFloat(e) - ) - } - function F(r) { - return c(1, u(0, r)) - } - function P(r) { - return parseInt(r, 16) - } - function I(r) { - return 1 == r.length ? '0' + r : '' + r - } - function M(r) { - return r <= 1 && (r = 100 * r + '%'), r - } - function D(r) { - return o.round(255 * parseFloat(r)).toString(16) - } - function W(r) { - return P(r) / 255 - } - var J = (function () { - var r = '(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)', - e = '[\\s|\\(]+(' + r + ')[,|\\s]+(' + r + ')[,|\\s]+(' + r + ')\\s*\\)?', - t = - '[\\s|\\(]+(' + - r + - ')[,|\\s]+(' + - r + - ')[,|\\s]+(' + - r + - ')[,|\\s]+(' + - r + - ')\\s*\\)?' - return { - CSS_UNIT: new RegExp(r), - rgb: new RegExp('rgb' + e), - rgba: new RegExp('rgba' + t), - hsl: new RegExp('hsl' + e), - hsla: new RegExp('hsla' + t), - hsv: new RegExp('hsv' + e), - hsva: new RegExp('hsva' + t), - hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, - } - })() - function N(r) { - return !!J.CSS_UNIT.exec(r) - } - r.exports - ? (r.exports = f) - : void 0 === - (n = function () { - return f - }.call(e, t, e, r)) || (r.exports = n) - })(Math) - }, - }, - function (r) { - var e = function (e) { - return r((r.s = e)) - } - r.O(0, [774, 179], function () { - return e(76363), e(34651) - }) - var t = r.O() - _N_E = t - }, -]) +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{22122:function(r,e,t){"use strict";function n(){return(n=Object.assign||function(r){for(var e=1;edocument.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),h=r=>{o.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",r)},b=()=>"undefined"!==typeof Storage,g="chakra-ui-color-mode",m={get(r){if(!b())return r;try{var e=localStorage.getItem(g);return null!=e?e:r}catch(t){return n.Ts&&console.log(t),r}},set(r){if(b())try{localStorage.setItem(g,r)}catch(e){n.Ts&&console.log(e)}},type:"localStorage"};var v=i.createContext({});n.Ts&&(v.displayName="ColorModeContext");var y=()=>{var r=i.useContext(v);if(void 0===r)throw new Error("useColorMode must be used within a ColorModeProvider");return r};function x(r){var{value:e,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=r,[c,b]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(o.jU&&"localStorage"===l.type){var r=n?f(s):p()||l.get();r&&b(r)}}),[l,n,s]),i.useEffect((()=>{var r="dark"===c;u(r),h(r?"dark":"light")}),[c]);var g=i.useCallback((r=>{l.set(r),b(r)}),[l]),y=i.useCallback((()=>{g("light"===c?"dark":"light")}),[c,g]);i.useEffect((()=>{var r;return n&&(r=function(r){if(!("matchMedia"in window))return a.ZT;var e=window.matchMedia(d),t=()=>{r(e.matches?"dark":"light")};return t(),e.addListener(t),()=>{e.removeListener(t)}}(g)),()=>{r&&n&&r()}}),[g,n]);var x=i.useMemo((()=>({colorMode:null!=e?e:c,toggleColorMode:e?a.ZT:y,setColorMode:e?a.ZT:g})),[c,g,y,e]);return i.createElement(v.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(r,e,t){"use strict";t.d(e,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),o={prefix:Math.round(1e10*Math.random()),current:0},a=n.createContext(o),i=n.memo((r=>{var{children:e}=r,t=n.useContext(a),i=t===o,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(a.Provider,{value:s},e)}));function s(r,e){var t=n.useContext(a);return n.useMemo((()=>r||[e,t.prefix,++t.current].filter(Boolean).join("-")),[r,e])}function l(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;ot.map((r=>r+"-"+a))),[a,t])}},34288:function(r,e,t){"use strict";t.d(e,{L:function(){return s},h:function(){return l}});var n=t(73808),o=t(28500),a=t(67294),[i,s]=(0,o.k)({strict:!1,name:"PortalManagerContext"});function l(r){var{children:e,zIndex:t}=r;return a.createElement(i,{value:{zIndex:t}},e)}n.Ts&&(l.displayName="PortalManager")},28500:function(r,e,t){"use strict";t.d(e,{k:function(){return o}});var n=t(67294);function o(r){void 0===r&&(r={});var{strict:e=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=r,a=n.createContext(void 0);return a.displayName=o,[a.Provider,function r(){var o=n.useContext(a);if(!o&&e){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,r),i}return o},a]}},13205:function(r,e,t){"use strict";t.d(e,{Oq:function(){return B},Cg:function(){return j},$_:function(){return O},cE:function(){return T},hX:function(){return F},GQ:function(){return P},eC:function(){return I},Mw:function(){return M},bK:function(){return D},pb:function(){return W},o_:function(){return $},FK:function(){return Z},v_:function(){return V},Dh:function(){return q},QX:function(){return G},vs:function(){return Y},eR:function(){return X},cp:function(){return U}});var n=t(73808);function o(r){var{scale:e,transform:t,compose:o}=r;return(r,a)=>{var i,s=((r,e)=>t=>{var o=String(e),a=r?r+"."+o:o;return(0,n.Kn)(t.__cssMap)&&a in t.__cssMap?t.__cssMap[a].varRef:e})(e,r)(a),l=null!=(i=null==t?void 0:t(s,a))?i:s;return o&&(l=o(l,a)),l}}function a(r,e){return t=>{var n={property:t,scale:r};return n.transform=o({scale:r,transform:e}),n}}var i=r=>{var{rtl:e,ltr:t}=r;return r=>"rtl"===r.direction?e:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},p={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function h(r,e){h=function(r,e){return new a(r,void 0,e)};var t=g(RegExp),n=RegExp.prototype,o=new WeakMap;function a(r,e,n){var a=t.call(this,r,e);return o.set(a,n||o.get(r)),a}function i(r,e){var t=o.get(e);return Object.keys(t).reduce((function(e,n){return e[n]=r[t[n]],e}),Object.create(null))}return b(a,t),a.prototype.exec=function(r){var e=n.exec.call(this,r);return e&&(e.groups=i(e,this)),e},a.prototype[Symbol.replace]=function(r,e){if("string"===typeof e){var t=o.get(this);return n[Symbol.replace].call(this,r,e.replace(/\$<([^>]+)>/g,(function(r,e){return"$"+t[e]})))}if("function"===typeof e){var a=this;return n[Symbol.replace].call(this,r,(function(){var r=[];return r.push.apply(r,arguments),"object"!==typeof r[r.length-1]&&r.push(i(r,a)),e.apply(this,r)}))}return n[Symbol.replace].call(this,r,e)},h.apply(this,arguments)}function b(r,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&y(r,e)}function g(r){var e="function"===typeof Map?new Map:void 0;return(g=function(r){if(null===r||(t=r,-1===Function.toString.call(t).indexOf("[native code]")))return r;var t;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return m(r,arguments,x(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,r)})(r)}function m(r,e,t){return(m=v()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&y(o,t.prototype),o}).apply(null,arguments)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function y(r,e){return(y=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function x(r){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var w={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},S=new Set(Object.values(w)),k=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),_=r=>r.trim();var C=r=>e=>r+"("+e+")",A={filter:r=>"auto"!==r?r:l,backdropFilter:r=>"auto"!==r?r:c,ring:r=>function(r){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":r,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(r)),bgClip:r=>"text"===r?{color:"transparent",backgroundClip:"text"}:{backgroundClip:r},transform:r=>"auto"===r?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===r?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):r,px(r){if(null==r)return r;var{unitless:e}=(r=>{var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}})(r);return e||(0,n.hj)(r)?r+"px":r},fraction:r=>!(0,n.hj)(r)||r>1?r:100*r+"%",float:(r,e)=>"rtl"===e.direction?{left:"right",right:"left"}[r]:r,degree(r){if((0,n.FS)(r)||null==r)return r;var e=(0,n.HD)(r)&&!r.endsWith("deg");return(0,n.hj)(r)||e?r+"deg":r},gradient:(r,e)=>function(r,e){var t,n;if(null==r||k.has(r))return r;var o=h(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:a,values:i}=null!=(t=null==(n=o.exec(r))?void 0:n.groups)?t:{};if(!a||!i)return r;var s=a.includes("-gradient")?a:a+"-gradient",[l,...c]=i.split(",").map(_).filter(Boolean);if(0===(null==c?void 0:c.length))return r;var u=l in w?w[l]:l;return c.unshift(u),s+"("+c.map((r=>{if(S.has(r))return r;var[t,n]=r.split(" "),o="colors."+t,a=o in e.__cssMap?e.__cssMap[o].varRef:t;return n?[a,n].join(" "):a})).join(", ")+")"}(r,null!=e?e:{}),blur:C("blur"),opacity:C("opacity"),brightness:C("brightness"),contrast:C("contrast"),dropShadow:C("drop-shadow"),grayscale:C("grayscale"),hueRotate:C("hue-rotate"),invert:C("invert"),saturate:C("saturate"),sepia:C("sepia"),bgImage:r=>null==r||E(r)||k.has(r)?r:"url("+r+")",outline(r){var e="0"===String(r)||"none"===String(r);return null!==r&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:r}},flexDirection(r){var e,{space:t,divide:n}=null!=(e=u[r])?e:{},o={flexDirection:r};return t&&(o[t]=1),n&&(o[n]=1),o}},E=r=>(0,n.HD)(r)&&r.includes("(")&&r.includes(")");function z(){return(z=Object.assign||function(r){for(var e=1;e({property:r,transform:A.degree}),prop:(r,e,t)=>z({property:r,scale:e},e&&{transform:o({scale:e,transform:t})}),propT:(r,e)=>({property:r,transform:e}),sizes:a("sizes",A.px),sizesT:a("sizes",A.fraction),shadows:a("shadows"),logical:function(r){var{property:e,scale:t,transform:n}=r;return{scale:t,property:i(e),transform:t?o({scale:t,compose:n}):n}},blur:a("blur",A.blur)},B={background:R.colors("background"),backgroundColor:R.colors("backgroundColor"),backgroundImage:R.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:R.prop("backgroundSize"),bgPosition:R.prop("backgroundPosition"),bg:R.colors("background"),bgColor:R.colors("backgroundColor"),bgPos:R.prop("backgroundPosition"),bgRepeat:R.prop("backgroundRepeat"),bgAttachment:R.prop("backgroundAttachment"),bgGradient:R.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(B,{bgImage:B.backgroundImage,bgImg:B.backgroundImage});var j={border:R.borders("border"),borderWidth:R.borderWidths("borderWidth"),borderStyle:R.borderStyles("borderStyle"),borderColor:R.colors("borderColor"),borderRadius:R.radii("borderRadius"),borderTop:R.borders("borderTop"),borderBlockStart:R.borders("borderBlockStart"),borderTopLeftRadius:R.radii("borderTopLeftRadius"),borderStartStartRadius:R.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:R.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:R.radii("borderTopRightRadius"),borderStartEndRadius:R.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:R.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:R.borders("borderRight"),borderInlineEnd:R.borders("borderInlineEnd"),borderBottom:R.borders("borderBottom"),borderBlockEnd:R.borders("borderBlockEnd"),borderBottomLeftRadius:R.radii("borderBottomLeftRadius"),borderBottomRightRadius:R.radii("borderBottomRightRadius"),borderLeft:R.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:R.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:R.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:R.borders(["borderLeft","borderRight"]),borderInline:R.borders("borderInline"),borderY:R.borders(["borderTop","borderBottom"]),borderBlock:R.borders("borderBlock"),borderTopWidth:R.borderWidths("borderTopWidth"),borderBlockStartWidth:R.borderWidths("borderBlockStartWidth"),borderTopColor:R.colors("borderTopColor"),borderBlockStartColor:R.colors("borderBlockStartColor"),borderTopStyle:R.borderStyles("borderTopStyle"),borderBlockStartStyle:R.borderStyles("borderBlockStartStyle"),borderBottomWidth:R.borderWidths("borderBottomWidth"),borderBlockEndWidth:R.borderWidths("borderBlockEndWidth"),borderBottomColor:R.colors("borderBottomColor"),borderBlockEndColor:R.colors("borderBlockEndColor"),borderBottomStyle:R.borderStyles("borderBottomStyle"),borderBlockEndStyle:R.borderStyles("borderBlockEndStyle"),borderLeftWidth:R.borderWidths("borderLeftWidth"),borderInlineStartWidth:R.borderWidths("borderInlineStartWidth"),borderLeftColor:R.colors("borderLeftColor"),borderInlineStartColor:R.colors("borderInlineStartColor"),borderLeftStyle:R.borderStyles("borderLeftStyle"),borderInlineStartStyle:R.borderStyles("borderInlineStartStyle"),borderRightWidth:R.borderWidths("borderRightWidth"),borderInlineEndWidth:R.borderWidths("borderInlineEndWidth"),borderRightColor:R.colors("borderRightColor"),borderInlineEndColor:R.colors("borderInlineEndColor"),borderRightStyle:R.borderStyles("borderRightStyle"),borderInlineEndStyle:R.borderStyles("borderInlineEndStyle"),borderTopRadius:R.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:R.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:R.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:R.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(j,{rounded:j.borderRadius,roundedTop:j.borderTopRadius,roundedTopLeft:j.borderTopLeftRadius,roundedTopRight:j.borderTopRightRadius,roundedTopStart:j.borderStartStartRadius,roundedTopEnd:j.borderStartEndRadius,roundedBottom:j.borderBottomRadius,roundedBottomLeft:j.borderBottomLeftRadius,roundedBottomRight:j.borderBottomRightRadius,roundedBottomStart:j.borderEndStartRadius,roundedBottomEnd:j.borderEndEndRadius,roundedLeft:j.borderLeftRadius,roundedRight:j.borderRightRadius,roundedStart:j.borderInlineStartRadius,roundedEnd:j.borderInlineEndRadius,borderStart:j.borderInlineStart,borderEnd:j.borderInlineEnd,borderTopStartRadius:j.borderStartStartRadius,borderTopEndRadius:j.borderStartEndRadius,borderBottomStartRadius:j.borderEndStartRadius,borderBottomEndRadius:j.borderEndEndRadius,borderStartRadius:j.borderInlineStartRadius,borderEndRadius:j.borderInlineEndRadius,borderStartWidth:j.borderInlineStartWidth,borderEndWidth:j.borderInlineEndWidth,borderStartColor:j.borderInlineStartColor,borderEndColor:j.borderInlineEndColor,borderStartStyle:j.borderInlineStartStyle,borderEndStyle:j.borderInlineEndStyle});var O={color:R.colors("color"),textColor:R.colors("color"),fill:R.colors("fill"),stroke:R.colors("stroke")},T={boxShadow:R.shadows("boxShadow"),mixBlendMode:!0,blendMode:R.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:R.prop("backgroundBlendMode"),opacity:!0};Object.assign(T,{shadow:T.boxShadow});var F={filter:{transform:A.filter},blur:R.blur("--chakra-blur"),brightness:R.propT("--chakra-brightness",A.brightness),contrast:R.propT("--chakra-contrast",A.contrast),hueRotate:R.degreeT("--chakra-hue-rotate"),invert:R.propT("--chakra-invert",A.invert),saturate:R.propT("--chakra-saturate",A.saturate),dropShadow:R.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:R.blur("--chakra-backdrop-blur"),backdropBrightness:R.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:R.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:R.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:R.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:R.propT("--chakra-backdrop-saturate",A.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:o({scale:"space",transform:r=>null!==r?{"--chakra-space-x":r}:null})},experimental_spaceY:{static:p,transform:o({scale:"space",transform:r=>null!=r?{"--chakra-space-y":r}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:R.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(P,{flexDir:P.flexDirection});var I={gridGap:R.space("gridGap"),gridColumnGap:R.space("gridColumnGap"),gridRowGap:R.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:R.colors("outlineColor")},D={width:R.sizesT("width"),inlineSize:R.sizesT("inlineSize"),height:R.sizes("height"),blockSize:R.sizes("blockSize"),boxSize:R.sizes(["width","height"]),minWidth:R.sizes("minWidth"),minInlineSize:R.sizes("minInlineSize"),minHeight:R.sizes("minHeight"),minBlockSize:R.sizes("minBlockSize"),maxWidth:R.sizes("maxWidth"),maxInlineSize:R.sizes("maxInlineSize"),maxHeight:R.sizes("maxHeight"),maxBlockSize:R.sizes("maxBlockSize"),d:R.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:R.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(D,{w:D.width,h:D.height,minW:D.minWidth,maxW:D.maxWidth,minH:D.minHeight,maxH:D.maxHeight,overscroll:D.overscrollBehavior,overscrollX:D.overscrollBehaviorX,overscrollY:D.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:R.prop("listStylePosition"),listStyleImage:!0,listStyleImg:R.prop("listStyleImage")},J=t(4651),N={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(r,e,t)=>{var n={},o=(0,J.Wf)(r,e,{});for(var a in o){a in t&&null!=t[a]||(n[a]=o[a])}return n},$={srOnly:{transform:r=>!0===r?N:"focusable"===r?H:{}},layerStyle:{processResult:!0,transform:(r,e,t)=>L(e,"layerStyles."+r,t)},textStyle:{processResult:!0,transform:(r,e,t)=>L(e,"textStyles."+r,t)},apply:{processResult:!0,transform:(r,e,t)=>L(e,r,t)}},Z={position:!0,pos:R.prop("position"),zIndex:R.prop("zIndex","zIndices"),inset:R.spaceT(["top","right","bottom","left"]),insetX:R.spaceT(["left","right"]),insetInline:R.spaceT("insetInline"),insetY:R.spaceT(["top","bottom"]),insetBlock:R.spaceT("insetBlock"),top:R.spaceT("top"),insetBlockStart:R.spaceT("insetBlockStart"),bottom:R.spaceT("bottom"),insetBlockEnd:R.spaceT("insetBlockEnd"),left:R.spaceT("left"),insetInlineStart:R.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:R.spaceT("right"),insetInlineEnd:R.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:R.colors("--chakra-ring-color"),ringOffset:R.prop("--chakra-ring-offset-width"),ringOffsetColor:R.colors("--chakra-ring-offset-color"),ringInset:R.prop("--chakra-ring-inset")},q={margin:R.spaceT("margin"),marginTop:R.spaceT("marginTop"),marginBlockStart:R.spaceT("marginBlockStart"),marginRight:R.spaceT("marginRight"),marginInlineEnd:R.spaceT("marginInlineEnd"),marginBottom:R.spaceT("marginBottom"),marginBlockEnd:R.spaceT("marginBlockEnd"),marginLeft:R.spaceT("marginLeft"),marginInlineStart:R.spaceT("marginInlineStart"),marginX:R.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:R.spaceT("marginInline"),marginY:R.spaceT(["marginTop","marginBottom"]),marginBlock:R.spaceT("marginBlock"),padding:R.space("padding"),paddingTop:R.space("paddingTop"),paddingBlockStart:R.space("paddingBlockStart"),paddingRight:R.space("paddingRight"),paddingBottom:R.space("paddingBottom"),paddingBlockEnd:R.space("paddingBlockEnd"),paddingLeft:R.space("paddingLeft"),paddingInlineStart:R.space("paddingInlineStart"),paddingInlineEnd:R.space("paddingInlineEnd"),paddingX:R.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:R.space("paddingInline"),paddingY:R.space(["paddingTop","paddingBottom"]),paddingBlock:R.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var G={textDecorationColor:R.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:R.shadows("textShadow")},Y={clipPath:!0,transform:R.propT("transform",A.transform),transformOrigin:!0,translateX:R.spaceT("--chakra-translate-x"),translateY:R.spaceT("--chakra-translate-y"),skewX:R.degreeT("--chakra-skew-x"),skewY:R.degreeT("--chakra-skew-y"),scaleX:R.prop("--chakra-scale-x"),scaleY:R.prop("--chakra-scale-y"),scale:R.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:R.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:R.prop("transitionDuration","transition.duration"),transitionProperty:R.prop("transitionProperty","transition.property"),transitionTimingFunction:R.prop("transitionTimingFunction","transition.easing")},U={fontFamily:R.prop("fontFamily","fonts"),fontSize:R.prop("fontSize","fontSizes",A.px),fontWeight:R.prop("fontWeight","fontWeights"),lineHeight:R.prop("lineHeight","lineHeights"),letterSpacing:R.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(r){if(!0===r)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(r,e,t){"use strict";t.d(e,{c0:function(){return C}});var n=t(73808);function o(r){return(0,n.Kn)(r)&&r.reference?r.reference:String(r)}var a=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n{var e=o(r);return null==e||Number.isNaN(parseFloat(e))?l(e,-1):String(e).startsWith("-")?String(e).slice(1):"-"+e},d=Object.assign((r=>({add:function(){for(var e=arguments.length,t=new Array(e),n=0;nd(u(r)),toString:()=>r.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function p(r){var e=function(r,e){return void 0===e&&(e="-"),r.replace(/\s+/g,e)}(r.toString());return e.includes("\\.")?r:!Number.isInteger(parseFloat(r.toString()))?e.replace(".","\\."):r}function h(r,e){return"var("+p(r)+(e?", "+e:"")+")"}function b(r,e){return void 0===e&&(e=""),"--"+function(r,e){return void 0===e&&(e=""),[e,p(r)].filter(Boolean).join("-")}(r,e)}function g(r,e,t){var n=b(r,t);return{variable:n,reference:h(n,e)}}function m(){return(m=Object.assign||function(r){for(var e=1;er(e,[...o,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((e=>{var[t,n]=e;return[t,r(n,[...o,t])]}))):e(t,o)})(r)}(r,((r,n)=>{var o,[a]=n,i=null!=(o=y[a])?o:y.defaultHandler,{cssVars:s,cssMap:l}=i(n,r,e);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var y={space:(r,e,t)=>{var n=y.defaultHandler(r,e,t),[o,...a]=r,i=o+".-"+a.join("."),s=r.join("-"),{variable:l,reference:c}=g(s,void 0,t.cssVarPrefix),u=d.negate(e),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(r,e,t)=>{var n=r.join("."),o=r.join("-"),{variable:a,reference:i}=g(o,void 0,t.cssVarPrefix);return{cssVars:{[a]:e},cssMap:{[n]:{value:e,var:a,varRef:i}}}}},x=t(4651);var w=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function S(r){var e=w;return(0,x.ei)(r,e)}function k(r){return function(r,e){if(null==r)return{};var t,n,o={},a=Object.keys(r);for(n=0;n=0||(o[t]=r[t]);return o}(r,["__cssMap","__cssVars","__breakpoints"])}function _(){return(_=Object.assign||function(r){for(var e=1;er.startsWith("--")&&(0,n.HD)(e)&&!(0,n.FS)(e),u=(r,e)=>{var t,n;if(null==e)return e;var o=e=>{var t,n;return null==(t=r.__cssMap)||null==(n=t[e])?void 0:n.varRef},a=r=>{var e;return null!=(e=o(r))?e:r},i=e.split(",").map((r=>r.trim())),[s,l]=i;return e=null!=(t=null!=(n=o(s))?n:a(l))?t:a(e)};function d(r){var{configs:e={},pseudos:t={},theme:a}=r;return function r(s,l){void 0===l&&(l=!1);var d=(0,o.Pu)(s,a),f=(r=>e=>{if(!e.__breakpoints)return r;var{isResponsive:t,toArrayValue:a,media:i}=e.__breakpoints,s={};for(var l in r){var c=(0,o.Pu)(r[l],e);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?a(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;de=>d({theme:e,pseudos:s.v,configs:l.Ul})(r)},9421:function(r,e,t){"use strict";t.d(e,{iv:function(){return n.i},isStyleProp:function(){return i.ZR},layoutPropNames:function(){return i.oE},propNames:function(){return i.cC},toCSSVar:function(){return s.c0}});t(13205);var n=t(33565),o=t(41664);t.o(o,"isStyleProp")&&t.d(e,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(e,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(e,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(e,{useTheme:function(){return o.useTheme}});var a=t(87759);t.o(a,"isStyleProp")&&t.d(e,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(e,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(e,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(e,{useTheme:function(){return a.useTheme}});var i=t(25503),s=t(55608)},28680:function(r,e,t){"use strict";t.d(e,{v:function(){return d},_:function(){return f}});var n=t(4651),o=r=>r+":focus &, "+r+"[data-focus] &",a=r=>r+":active &, "+r+"[data-active] &",i=r=>r+":disabled &, "+r+"[data-disabled] &",s=r=>r+":invalid &, "+r+"[data-invalid] &",l=r=>r+":checked &, "+r+"[data-checked] &",c=r=>u(r,"[role=group]","[data-group]",".group"),u=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;nr+":hover &, "+r+"[data-hover] &")),_groupFocus:c(o),_groupActive:c(a),_groupDisabled:c(i),_groupInvalid:c(s),_groupChecked:c(l),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},f=(0,n.Yd)(d)},25503:function(r,e,t){"use strict";t.d(e,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return h}});var n=t(38554),o=t.n(n),a=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(r){for(var e=1;er in p},41664:function(){},87759:function(){},29676:function(r,e,t){"use strict";t.d(e,{f6:function(){return d},Fg:function(){return f},Fo:function(){return p},yK:function(){return h},ZL:function(){return b}});var n=t(24738),o=t(9421),a=t(4651),i=t(80658),s=t(28500),l=t(30495),c=t(70917),u=t(67294),d=r=>{var{cssVarsRoot:e=":host, :root",theme:t,children:n}=r,a=u.useMemo((()=>(0,o.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:a},u.createElement(c.Global,{styles:r=>({[e]:r.__cssVars})}),n)};function f(){var r=u.useContext(l.T);if(!r)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return r}var[p,h]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),b=()=>{var{colorMode:r}=(0,n.If)();return u.createElement(c.Global,{styles:e=>{var t=(0,a.Wf)(e,"styles.global"),n=(0,i.Pu)(t,{theme:e,colorMode:r});if(n)return(0,o.iv)(n)(e)}})}},63108:function(r,e,t){"use strict";function n(r,e){return t=>"dark"===t.colorMode?e:r}function o(r){var{orientation:e,vertical:t,horizontal:n}=r;return e?"vertical"===e?t:n:{}}t.d(e,{xJ:function(){return n},fL:function(){return o}})},83035:function(r,e,t){"use strict";t.d(e,{Z:function(){return Be}});var n={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},o=t(17621),a=t.n(o),i=t(4651),s=t(73808),l=(r,e,t)=>{var n=(0,i.Wf)(r,"colors."+e,e);return a()(n).isValid()?n:t},c=r=>e=>{var t=l(e,r);return a()(t).isDark()?"dark":"light"},u=(r,e)=>t=>{var n=l(t,r);return a()(n).setAlpha(e).toRgbString()};function d(r,e){return void 0===r&&(r="1rem"),void 0===e&&(e="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+e+" 25%,\n transparent 25%,\n transparent 50%,\n "+e+" 50%,\n "+e+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:r+" "+r}}function f(r){var e=a().random().toHexString();return!r||(0,s.Qr)(r)?e:r.string&&r.colors?function(r,e){var t=0;if(0===r.length)return e[0];for(var n=0;n>8*o&255).toString(16)).substr(-2)}return n}(r.string):r.colors&&!r.string?function(r){return r[Math.floor(Math.random()*r.length)]}(r.colors):e}var p=t(63108);function h(r){var{theme:e,colorScheme:t}=r,n=l(e,t+".100",t),o=u(t+".200",.16)(e);return(0,p.xJ)(n,o)(r)}var b={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(r){var{colorScheme:e}=r;return{container:{bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"left-accent":function(r){var{colorScheme:e}=r;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"top-accent":function(r){var{colorScheme:e}=r;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},solid:function(r){var{colorScheme:e}=r;return{container:{bg:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},g=t(54681);function m(r){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,p.xJ)("white","gray.800")(r)}}function v(r){return{bg:(0,p.xJ)("gray.200","whiteAlpha.400")(r)}}function y(r){var{name:e,theme:t}=r,n=e?f({string:e}):"gray.400",o=(r=>e=>"dark"===c(r)(e))(n)(t),a="white";return o||(a="gray.800"),{bg:n,color:a,borderColor:(0,p.xJ)("white","gray.800")(r),verticalAlign:"top"}}function x(r){var e=g.Z[r];return{container:{width:r,height:r,fontSize:"calc("+(null!=e?e:r)+" / 2.5)"},excessLabel:{width:r,height:r},label:{fontSize:"calc("+(null!=e?e:r)+" / 2.5)",lineHeight:"100%"!==r?null!=e?e:r:void 0}}}var w={parts:["container","excessLabel","badge","label"],baseStyle:r=>({badge:m(r),excessLabel:v(r),container:y(r)}),sizes:{"2xs":x("4"),xs:x("6"),sm:x("8"),md:x("12"),lg:x("16"),xl:x("24"),"2xl":x("32"),full:x("100%")},defaultProps:{size:"md"}};var S={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".500",.6)(t);return{bg:(0,p.xJ)(e+".500",n)(r),color:(0,p.xJ)("white","whiteAlpha.800")(r)}},subtle:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.16)(t);return{bg:(0,p.xJ)(e+".100",n)(r),color:(0,p.xJ)(e+".800",e+".200")(r)}},outline:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.8)(t),o=l(t,e+".500"),a=(0,p.xJ)(o,n)(r);return{color:a,boxShadow:"inset 0 0 0px 1px "+a}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},k={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function _(){return(_=Object.assign||function(r){for(var e=1;e({icon:B,control:z(r),label:R}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var O={baseStyle:function(r){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,p.xJ)("blackAlpha.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("blackAlpha.200","whiteAlpha.200")(r)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:T,defaultProps:F}=S,P={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:T,defaultProps:F},I={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},M={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},D={bg:"blackAlpha.600",zIndex:"modal"};function W(r){var{isCentered:e,scrollBehavior:t}=r;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(r){var{scrollBehavior:e}=r;return{borderRadius:"md",bg:(0,p.xJ)("white","gray.700")(r),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===e?"calc(100% - 7.5rem)":void 0,boxShadow:(0,p.xJ)("lg","dark-lg")(r)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(r){var{scrollBehavior:e}=r;return{px:6,py:2,flex:1,overflow:"inside"===e?"auto":void 0}}var $={px:6,py:4};function Z(r){return"full"===r?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:r}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:r=>({overlay:D,dialogContainer:W(r),dialog:J(r),header:N,closeButton:H,body:L(r),footer:$}),sizes:{xs:Z("xs"),sm:Z("sm"),md:Z("md"),lg:Z("lg"),xl:Z("xl"),"2xl":Z("2xl"),"3xl":Z("3xl"),"4xl":Z("4xl"),"5xl":Z("5xl"),"6xl":Z("6xl"),full:Z("full")},defaultProps:{size:"md"}};function q(){return(q=Object.assign||function(r){for(var e=1;e({overlay:Y,dialogContainer:X,dialog:U(r),header:K,closeButton:Q,body:rr,footer:er}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},nr={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function or(r){return{marginStart:1,color:(0,p.xJ)("red.500","red.300")(r)}}function ar(r){return{mt:2,color:(0,p.xJ)("gray.500","whiteAlpha.600")(r),lineHeight:"normal",fontSize:"sm"}}var ir={parts:["requiredIndicator","helperText"],baseStyle:r=>({requiredIndicator:or(r),helperText:ar(r)})},sr={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},lr={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},cr={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function ur(r){var{focusBorderColor:e,errorBorderColor:t}=r;return{focusBorderColor:e||(0,p.xJ)("blue.500","blue.300")(r),errorBorderColor:t||(0,p.xJ)("red.500","red.300")(r)}}var dr={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:cr.lg,addon:cr.lg},md:{field:cr.md,addon:cr.md},sm:{field:cr.sm,addon:cr.sm},xs:{field:cr.xs,addon:cr.xs}},variants:{outline:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,p.xJ)("gray.300","whiteAlpha.400")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n),boxShadow:"0 0 0 1px "+l(e,n)},_focus:{zIndex:1,borderColor:l(e,t),boxShadow:"0 0 0 1px "+l(e,t)}},addon:{border:"1px solid",borderColor:(0,p.xJ)("inherit","whiteAlpha.50")(r),bg:(0,p.xJ)("gray.100","whiteAlpha.300")(r)}}},filled:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r),_hover:{bg:(0,p.xJ)("gray.200","whiteAlpha.100")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n)},_focus:{bg:"transparent",borderColor:l(e,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r)}}},flushed:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(e,n),boxShadow:"0px 1px 0px 0px "+l(e,n)},_focus:{borderColor:l(e,t),boxShadow:"0px 1px 0px 0px "+l(e,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var fr={baseStyle:function(r){return{bg:(0,p.xJ)("gray.100","whiteAlpha")(r),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},pr={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},hr={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function br(r){return{bg:(0,p.xJ)("#fff","gray.700")(r),boxShadow:(0,p.xJ)("sm","dark-lg")(r),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function gr(r){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r)},_expanded:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var mr,vr={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yr={opacity:.6},xr={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},wr={transitionProperty:"common",transitionDuration:"normal"},Sr={parts:["item","command","list","button","groupTitle","divider"],baseStyle:r=>({button:wr,list:br(r),item:gr(r),groupTitle:vr,command:yr,divider:xr})},kr=t(35268);function _r(){return(_r=Object.assign||function(r){for(var e=1;e({root:Er,field:zr,stepperGroup:Rr,stepper:Br(r)}),sizes:{xs:jr("xs"),sm:jr("sm"),md:jr("md"),lg:jr("lg")},variants:Cr,defaultProps:Ar};function Tr(){return(Tr=Object.assign||function(r){for(var e=1;edr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},defaultProps:dr.defaultProps},Pr={zIndex:10};function Ir(r){return{"--popover-bg":"colors."+(0,p.xJ)("white","gray.700")(r),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,p.xJ)("gray.200","whiteAlpha.300")(r),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Mr={px:3,py:2,borderBottomWidth:"1px"},Dr={px:3,py:2},Wr={px:3,py:2,borderTopWidth:"1px"},Jr={parts:["popper","content","header","body","footer","arrow"],baseStyle:r=>({popper:Pr,content:Ir(r),header:Mr,body:Dr,footer:Wr,arrow:{}})};function Nr(){return(Nr=Object.assign||function(r){for(var e=1;e({label:Hr,filledTrack:$r(r),track:Lr(r)}),defaultProps:{size:"md",colorScheme:"blue"}};function Vr(){return(Vr=Object.assign||function(r){for(var e=1;e({label:j.baseStyle(r).label,control:qr(r)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Yr=t(38554);function Xr(){return(Xr=Object.assign||function(r){for(var e=1;e option, > optgroup":{bg:(0,p.xJ)("white","gray.700")(r)}})}var Kr={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qr={parts:["field","icon"],baseStyle:r=>({field:Ur(r),icon:Kr}),sizes:t.n(Yr)()({},dr.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:dr.variants,defaultProps:dr.defaultProps},re=t(70917),ee=(r,e)=>(0,re.keyframes)({from:{borderColor:r,background:r},to:{borderColor:e,background:e}}),te={baseStyle:r=>{var e=(0,p.xJ)("gray.100","gray.800")(r),t=(0,p.xJ)("gray.400","gray.600")(r),{startColor:n=e,endColor:o=t,speed:a,theme:i}=r,s=l(i,n),c=l(i,o);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:a+"s linear infinite alternate "+ee(s,c)}}},ne={baseStyle:r=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,p.xJ)("white","gray.700")(r)}})};function oe(){return(oe=Object.assign||function(r){for(var e=1;e{var{orientation:e}=r;return oe({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,p.fL)({orientation:e,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ie(r){return{borderRadius:"sm",bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r),_disabled:{bg:(0,p.xJ)("gray.300","whiteAlpha.300")(r)}}}function se(r){return oe({zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(r){return(0,p.fL)({orientation:r.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(r))}function le(r){var{colorScheme:e}=r;return{bg:(0,p.xJ)(e+".500",e+".200")(r)}}var ce={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(r){return{thumb:{w:"16px",h:"16px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(r){return{thumb:{w:"14px",h:"14px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(r){return{thumb:{w:"10px",h:"10px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:r=>({container:ae(r),track:ie(r),thumb:se(r),filledTrack:le(r)}),defaultProps:{size:"md",colorScheme:"blue"}},ue={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},de={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function fe(r){var{colorScheme:e}=r;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,p.xJ)("gray.300","whiteAlpha.400")(r),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,p.xJ)(e+".500",e+".200")(r)}}}var pe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},he={parts:["container","track","thumb"],baseStyle:r=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:fe(r),thumb:pe}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function be(){return(be=Object.assign||function(r){for(var e=1;e{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:r=>{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},td:{background:(0,p.xJ)(e+".100",e+".700")(r)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}};function ve(r){var{orientation:e}=r;return{display:"vertical"===e?"flex":"block"}}function ye(r){var{isFitted:e}=r;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xe(r){var{align:e="start",orientation:t}=r;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:"vertical"===t?"column":"row"}}var we={p:4};var Se={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:r=>({root:ve(r),tab:ye(r),tablist:xe(r),tabpanel:we}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(r){var{colorScheme:e,orientation:t}=r,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"currentColor"},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(r){var{colorScheme:e}=r;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderBottomColor:(0,p.xJ)("white","gray.800")(r)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(r){var{colorScheme:e}=r;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,p.xJ)("gray.50","whiteAlpha.50")(r),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,p.xJ)("#fff","gray.800")(r),color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(r){var{colorScheme:e,theme:t}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,e+".700"),bg:l(t,e+".100")}}}},"solid-rounded":function(r){var{colorScheme:e}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,p.xJ)("gray.600","inherit")(r),_selected:{color:(0,p.xJ)("#fff","gray.800")(r),bg:(0,p.xJ)(e+".600",e+".300")(r)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},ke={parts:["container","label","closeButton"],variants:{subtle:r=>({container:S.variants.subtle(r)}),solid:r=>({container:S.variants.solid(r)}),outline:r=>({container:S.variants.outline(r)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}};function _e(){return(_e=Object.assign||function(r){for(var e=1;edr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},Ee={xs:dr.sizes.xs.field,sm:dr.sizes.sm.field,md:dr.sizes.md.field,lg:dr.sizes.lg.field};function ze(r){return{color:(0,p.xJ)("red.500","red.300")(r),mt:2,fontSize:"sm"}}function Re(r){return{marginEnd:"0.5em",color:(0,p.xJ)("red.500","red.300")(r)}}var Be={Accordion:n,Alert:b,Avatar:w,Badge:S,Breadcrumb:k,Button:E,Checkbox:j,CloseButton:O,Code:P,Container:I,Divider:M,Drawer:tr,Editable:nr,Form:ir,FormLabel:sr,Heading:lr,Input:dr,Kbd:fr,Link:pr,List:hr,Menu:Sr,Modal:V,NumberInput:Or,PinInput:Fr,Popover:Jr,Progress:Zr,Radio:Gr,Select:Qr,Skeleton:te,SkipLink:ne,Slider:ce,Spinner:ue,Stat:de,Switch:he,Table:me,Tabs:Se,Tag:ke,Textarea:{baseStyle:Ce,sizes:Ee,variants:Ae,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(r){return{"--tooltip-bg":"colors."+(0,p.xJ)("gray.700","gray.300")(r),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,p.xJ)("whiteAlpha.900","gray.900")(r),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:r=>({text:ze(r),icon:Re(r)})}}},42009:function(r,e,t){"use strict";t.d(e,{Z:function(){return b}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},o=t(80658);function a(){return(a=Object.assign||function(r){for(var e=1;e({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(r),bg:(0,n.xJ)("white","gray.800")(r),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(r)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(r),wordWrap:"break-word"}})};e.Z=o},93025:function(){},27277:function(r,e,t){"use strict";function n(r){var e=null==r?0:r.length;return e?r[e-1]:void 0}function o(r,e){return[...r,e]}function a(r,e){return r.filter((r=>r!==e))}function i(r,e,t,n){if(null==e)return n;if(!n)return r.find((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));var o,a=r.filter((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));return a.length>0?a.includes(n)?((o=a.indexOf(n)+1)===a.length&&(o=0),a[o]):(o=r.indexOf(a[0]),r[o]):n}t.d(e,{s:function(){return n},jX:function(){return o},cl:function(){return a},LP:function(){return i}})},73808:function(r,e,t){"use strict";function n(r){return"number"===typeof r}function o(r){return"number"!==typeof r||Number.isNaN(r)||!Number.isFinite(r)}function a(r){return Array.isArray(r)}function i(r){return"function"===typeof r}function s(r){return"undefined"===typeof r||void 0===r}function l(r){var e=typeof r;return null!=r&&("object"===e||"function"===e)&&!a(r)}function c(r){return l(r)&&0===Object.keys(r).length}function u(r){return"[object String]"===Object.prototype.toString.call(r)}function d(r){return/^var\(--.+\)$/.test(r)}t.d(e,{hj:function(){return n},iy:function(){return o},kJ:function(){return a},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return p}});var f=!1,p=!1},88456:function(r,e,t){"use strict";t.d(e,{px:function(){return i},y:function(){return d}});var n=t(27277),o=t(73808),a=t(4651);function i(r){if(null==r)return r;var{unitless:e}=function(r){var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}}(r);return e||(0,o.hj)(r)?r+"px":r}var s=(r,e)=>parseInt(r[1],10)>parseInt(e[1],10)?1:-1,l=r=>(0,a.sq)(Object.entries(r).sort(s));function c(r){var e=l(r);return Object.assign(Object.values(e),e)}function u(r,e){var t=[];return r&&t.push("@media screen and (min-width: "+i(r)+")"),t.length>0&&e&&t.push("and"),e&&t.push("@media screen and (max-width: "+i(e)+")"),t.join(" ")}function d(r){var e;if(!r)return null;r.base=null!=(e=r.base)?e:"0px";var t=c(r),a=Object.entries(r).sort(s).map(((r,e,t)=>{var n,[a,s]=r,[,l]=null!=(n=t[e+1])?n:[];return{breakpoint:a,minW:s,maxW:l=parseFloat(l)>0?function(r){var e;if(!r)return r;var t=(r=null!=(e=i(r))?e:r).endsWith("px")?-1:-.0635;return(0,o.hj)(r)?""+(r+t):r.replace(/([0-9]+\.?[0-9]*)/,(r=>""+(parseFloat(r)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(r){var e=Object.keys(l(r));return new Set(e)}(r),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(r){var e=Object.keys(r);return e.length>0&&e.every((r=>d.has(r)))},asObject:l(r),asArray:c(r),details:a,media:[null,...t.map((r=>u(r))).slice(1)],toArrayValue(r){if(!(0,o.Kn)(r))throw new Error("toArrayValue: value must be an object");for(var e=f.map((e=>{var t;return null!=(t=r[e])?t:null}));null===(0,n.s)(e);)e.pop();return e},toObjectValue(r){if(!Array.isArray(r))throw new Error("toObjectValue: value must be an array");return r.reduce(((r,e,t)=>{var n=f[t];return null!=n&&null!=e&&(r[n]=e),r}),{})}}}},84461:function(r,e,t){"use strict";function n(r){var e;return r instanceof Element&&null!=(e=r.ownerDocument)?e:document}t.d(e,{lZ:function(){return n},jU:function(){return o},PB:function(){return a},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},dO:function(){return f}});var o=!("undefined"===typeof window||!window.document||!window.document.createElement),a=r=>r?"":void 0,i=r=>!!r||void 0,s=function(){for(var r=arguments.length,e=new Array(r),t=0;t{r.removeEventListener(e,t,n)}}function d(r){var{key:e,keyCode:t}=r;return t>=37&&t<=40&&0!==e.indexOf("Arrow")?"Arrow"+e:e}function f(r){return 0!==r.button}},80658:function(r,e,t){"use strict";t.d(e,{Pu:function(){return o},v0:function(){return a},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return p}});var n=t(73808);function o(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o(null==e||e(r),null==r?void 0:r.defaultPrevented)))}}function i(r){var e;return function(){if(r){for(var t=arguments.length,n=new Array(t),o=0;o{},l=i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.warn(t)})),c=(i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.error(t)})),n.Ys?r=>r():"function"===typeof queueMicrotask?queueMicrotask:r=>{Promise.resolve().then(r)}),u=function(){for(var r=arguments.length,e=new Array(r),t=0;te.reduce(((r,e)=>e(r)),r)},d=(r,e)=>Math.abs(r-e),f=r=>"x"in r&&"y"in r;function p(r,e){if((0,n.hj)(r)&&(0,n.hj)(e))return d(r,e);if(f(r)&&f(e)){var t=d(r.x,e.x),o=d(r.y,e.y);return Math.sqrt(t**2+o**2)}return 0}},4651:function(r,e,t){"use strict";t.d(e,{CE:function(){return n},ei:function(){return o},Vl:function(){return a},Wf:function(){return i},lw:function(){return s},YU:function(){return l},Yd:function(){return c},sq:function(){return u},K1:function(){return d}});t(38554);function n(r,e){var t={};return Object.keys(r).forEach((n=>{e.includes(n)||(t[n]=r[n])})),t}function o(r,e){var t={};return e.forEach((e=>{e in r&&(t[e]=r[e])})),t}function a(r,e){var t={},n={};return Object.keys(r).forEach((o=>{e.includes(o)?t[o]=r[o]:n[o]=r[o]})),[t,n]}var i=(r=>{var e=new WeakMap;return(t,n,o,a)=>{if("undefined"===typeof t)return r(t,n,o);e.has(t)||e.set(t,new Map);var i=e.get(t);if(i.has(n))return i.get(n);var s=r(t,n,o,a);return i.set(n,s),s}})((function(r,e,t,n){var o="string"===typeof e?e.split("."):[e];for(n=0;n{var o=r[n];e(o,n,r)&&(t[n]=o)})),t}var l=r=>s(r,(r=>null!==r&&void 0!==r)),c=r=>Object.keys(r),u=r=>r.reduce(((r,e)=>{var[t,n]=e;return r[t]=n,r}),{}),d=(r,e,t)=>{var n,o;return null!=(n=null==(o=r.__cssMap[e+"."+t])?void 0:o.varRef)?n:t}},28204:function(r,e,t){"use strict";t.d(e,{Z:function(){return er}});var n=t(11526),o=Math.abs,a=String.fromCharCode;function i(r){return r.trim()}function s(r,e,t){return r.replace(e,t)}function l(r,e){return r.indexOf(e)}function c(r,e){return 0|r.charCodeAt(e)}function u(r,e,t){return r.slice(e,t)}function d(r){return r.length}function f(r){return r.length}function p(r,e){return e.push(r),r}var h=1,b=1,g=0,m=0,v=0,y="";function x(r,e,t,n,o,a,i){return{value:r,root:e,parent:t,type:n,props:o,children:a,line:h,column:b,length:i,return:""}}function w(r,e,t){return x(r,e.root,e.parent,t,e.props,e.children,0)}function S(){return v=m>0?c(y,--m):0,b--,10===v&&(b=1,h--),v}function k(){return v=m2||E(v)>3?"":" "}function O(r,e){for(;--e&&k()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return A(r,C()+(e<6&&32==_()&&32==k()))}function T(r){for(;k();)switch(v){case r:return m;case 34:case 39:return T(34===r||39===r?r:v);case 40:41===r&&T(r);break;case 92:k()}return m}function F(r,e){for(;k()&&r+v!==57&&(r+v!==84||47!==_()););return"/*"+A(e,m-1)+"*"+a(47===r?r:k())}function P(r){for(;!E(_());)k();return A(r,m)}var I="-ms-",M="-moz-",D="-webkit-",W="comm",J="rule",N="decl";function H(r,e){for(var t="",n=f(r),o=0;o6)switch(c(r,e+1)){case 109:if(45!==c(r,e+4))break;case 102:return s(r,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+M+(108==c(r,e+3)?"$3":"$2-$3"))+r;case 115:return~l(r,"stretch")?$(s(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(115!==c(r,e+1))break;case 6444:switch(c(r,d(r)-3-(~l(r,"!important")&&10))){case 107:return s(r,":",":"+D)+r;case 101:return s(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===c(r,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+I+"$2box$3")+r}break;case 5936:switch(c(r,e+11)){case 114:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return D+r+I+r+r}return r}function Z(r){return R(V("",null,null,null,[""],r=z(r),0,[0],r))}function V(r,e,t,n,o,i,l,c,u){for(var f=0,h=0,b=l,g=0,m=0,v=0,y=1,x=1,w=1,A=0,E="",z=o,R=i,T=n,I=E;x;)switch(v=A,A=k()){case 34:case 39:case 91:case 40:I+=B(A);break;case 9:case 10:case 13:case 32:I+=j(v);break;case 92:I+=O(C()-1,7);continue;case 47:switch(_()){case 42:case 47:p(G(F(k(),C()),e,t),u);break;default:I+="/"}break;case 123*y:c[f++]=d(I)*w;case 125*y:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+h:m>0&&d(I)-b&&p(m>32?Y(I+";",n,t,b-1):Y(s(I," ","")+";",n,t,b-2),u);break;case 59:I+=";";default:if(p(T=q(I,e,t,f,h,o,c,E,z=[],R=[],b),i),123===A)if(0===h)V(I,e,T,T,z,i,b,c,R);else switch(g){case 100:case 109:case 115:V(r,T,T,n&&p(q(r,T,T,0,0,o,c,E,o,z=[],b),R),o,R,b,c,n?z:R);break;default:V(I,T,T,T,[""],R,b,c,R)}}f=h=m=0,y=w=1,E=I="",b=l;break;case 58:b=1+d(I),m=v;default:if(y<1)if(123==A)--y;else if(125==A&&0==y++&&125==S())continue;switch(I+=a(A),A*y){case 38:w=h>0?1:(I+="\f",-1);break;case 44:c[f++]=(d(I)-1)*w,w=1;break;case 64:45===_()&&(I+=B(k())),g=_(),h=d(E=I+=P(C())),A++;break;case 45:45===v&&2==d(I)&&(y=0)}}return i}function q(r,e,t,n,a,l,c,d,p,h,b){for(var g=a-1,m=0===a?l:[""],v=f(m),y=0,w=0,S=0;y0?m[k]+" "+_:s(_,/&\f/g,m[k])))&&(p[S++]=C);return x(r,e,t,0===a?J:d,p,h,b)}function G(r,e,t){return x(r,e,t,W,a(v),u(r,2,-2),0)}function Y(r,e,t,n){return x(r,e,t,N,u(r,0,n),u(r,n+1,-1),n)}var X=function(r,e){return R(function(r,e){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===_()&&(e[t]=1),r[t]+=P(m-1);break;case 2:r[t]+=B(n);break;case 4:if(44===n){r[++t]=58===_()?"&\f":"",e[t]=r[t].length;break}default:r[t]+=a(n)}}while(n=k());return r}(z(r),e))},U=new WeakMap,K=function(r){if("rule"===r.type&&r.parent&&r.length){for(var e=r.value,t=r.parent,n=r.column===t.column&&r.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==r.props.length||58===e.charCodeAt(0)||U.get(t))&&!n){U.set(r,!0);for(var o=[],a=X(e,o),i=t.props,s=0,l=0;s=4;++n,o-=4)e=1540483477*(65535&(e=255&r.charCodeAt(n)|(255&r.charCodeAt(++n))<<8|(255&r.charCodeAt(++n))<<16|(255&r.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),t=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&r.charCodeAt(n+2))<<16;case 2:t^=(255&r.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&r.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(r){return 45===r.charCodeAt(1)},c=function(r){return null!=r&&"boolean"!==typeof r},u=(0,a.Z)((function(r){return l(r)?r:r.replace(i,"-$&").toLowerCase()})),d=function(r,e){switch(r){case"animation":case"animationName":if("string"===typeof e)return e.replace(s,(function(r,e,t){return p={name:e,styles:t,next:p},e}))}return 1===o[r]||l(r)||"number"!==typeof e||0===e?e:e+"px"};function f(r,e,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return p={name:t.name,styles:t.styles,next:p},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return t.styles+";"}return function(r,e,t){var n="";if(Array.isArray(t))for(var o=0;o-1},X.prototype.set=function(r,e){var t=this.__data__,n=tr(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(r){var e=fr(this,r).delete(r);return this.size-=e?1:0,e},U.prototype.get=function(r){return fr(this,r).get(r)},U.prototype.has=function(r){return fr(this,r).has(r)},U.prototype.set=function(r,e){var t=fr(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t},K.prototype.get=function(r){return this.__data__.get(r)},K.prototype.has=function(r){return this.__data__.has(r)},K.prototype.set=function(r,e){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(r,e),this.size=t.size,this};var or,ar=function(r,e,t){for(var n=-1,o=Object(r),a=t(r),i=a.length;i--;){var s=a[or?i:++n];if(!1===e(o[s],s,o))break}return r};function ir(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":N&&N in Object(r)?function(r){var e=z.call(r,N),t=r[N];try{r[N]=void 0;var n=!0}catch(a){}var o=B.call(r);n&&(e?r[N]=t:delete r[N]);return o}(r):function(r){return B.call(r)}(r)}function sr(r){return Ar(r)&&ir(r)==a}function lr(r){return!(!Cr(r)||function(r){return!!R&&R in r}(r))&&(kr(r)?O:l).test(function(r){if(null!=r){try{return E.call(r)}catch(e){}try{return r+""}catch(e){}}return""}(r))}function cr(r){if(!Cr(r))return function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}(r);var e=br(r),t=[];for(var n in r)("constructor"!=n||!e&&z.call(r,n))&&t.push(n);return t}function ur(r,e,t,n,o){r!==e&&ar(e,(function(a,i){if(o||(o=new K),Cr(a))!function(r,e,t,n,o,a,i){var l=gr(r,t),c=gr(e,t),u=i.get(c);if(u)return void rr(r,t,u);var d=a?a(l,c,t+"",r,e,i):void 0,f=void 0===d;if(f){var p=xr(c),h=!p&&Sr(c),b=!p&&!h&&Er(c);d=c,p||h||b?xr(l)?d=l:Ar(g=l)&&wr(g)?d=function(r,e){var t=-1,n=r.length;e||(e=Array(n));for(;++t-1&&r%1==0&&r0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}(H?function(r,e){return H(r,"toString",{configurable:!0,enumerable:!1,value:(t=e,function(){return t}),writable:!0});var t}:jr);function vr(r,e){return r===e||r!==r&&e!==e}var yr=sr(function(){return arguments}())?sr:function(r){return Ar(r)&&z.call(r,"callee")&&!W.call(r,"callee")},xr=Array.isArray;function wr(r){return null!=r&&_r(r.length)&&!kr(r)}var Sr=L||function(){return!1};function kr(r){if(!Cr(r))return!1;var e=ir(r);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _r(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=o}function Cr(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}function Ar(r){return null!=r&&"object"==typeof r}var Er=y?function(r){return function(e){return r(e)}}(y):function(r){return Ar(r)&&_r(r.length)&&!!u[ir(r)]};function zr(r){return wr(r)?Q(r,!0):cr(r)}var Rr,Br=(Rr=function(r,e,t,n){ur(r,e,t,n)},dr((function(r,e){var t=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=Rr.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(r,e,t){if(!Cr(t))return!1;var n=typeof e;return!!("number"==n?wr(t)&&hr(e,t.length):"string"==n&&e in t)&&vr(t[e],r)}(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),r=Object(r);++tObject.prototype.hasOwnProperty.call(r,e)))}var c=t(80658),u=t(38554),d=t.n(u);function f(){for(var r=arguments.length,e=new Array(r),t=0;tb.createElement(h.Global,{styles:'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n '}),m=t(34288),v=t(29676),y=t(24738),x=t(84461),w={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},S=()=>{},k={window:{document:w,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:S,removeEventListener:S,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:S,removeListener:S}),requestAnimationFrame:r=>"undefined"===typeof setTimeout?(r(),null):setTimeout(r,0),cancelAnimationFrame(r){"undefined"!==typeof setTimeout&&clearTimeout(r)},setTimeout:()=>0,clearTimeout:S,setInterval:()=>0,clearInterval:S},document:w},_=x.jU?{window:window,document:document}:k,C=(0,b.createContext)(_);function A(r){var{children:e,environment:t}=r,[n,o]=(0,b.useState)(null),a=(0,b.useMemo)((()=>{var r,e=null==n?void 0:n.ownerDocument,o=null==n?void 0:n.ownerDocument.defaultView;return null!=(r=null!=t?t:e?{document:e,window:o}:void 0)?r:_}),[n,t]),i=!n&&!t;return b.createElement(C.Provider,{value:a},e,i&&b.createElement("span",{ref:r=>{r&&o(r)}}))}i.Ts&&(C.displayName="EnvironmentContext"),i.Ts&&(A.displayName="EnvironmentProvider");var E=t(94577),z=r=>{var{children:e,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=r,c=b.createElement(A,{environment:s},e);return b.createElement(E.vc,null,b.createElement(v.f6,{theme:i,cssVarsRoot:l},b.createElement(y.SG,{colorModeManager:t,options:i.config},o&&b.createElement(g,null),b.createElement(v.ZL,null),n?b.createElement(m.h,{zIndex:n},c):c)))},R=t(54533),B=t(29356);function j(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function O(r){for(var e=1;e1?n=n.slice(0,n.length-1):o=a.Z,(0,c.zG)(...n.map((r=>e=>(0,i.mf)(r)?r(e):f(e,r))))(o)}((0,b.useMemo)((function(){return{colors:{white:s.bg,black:s.fg,gray:{100:s.base1,200:u,300:s.base2,400:s.base3,500:s.base4,600:s.base5,700:s.base6,800:s.base7,900:s.base8},blue:{500:s.blue},teal:{500:s.blue},yellow:{500:s.yellow},orange:{500:s.orange},red:{500:s.red},green:{500:s.green},purple:{500:s.violet},pink:{500:s.magenta},cyan:{500:s.cyan},alt:{100:s["bg-alt"],900:s["fg-alt"]}},shadows:{outline:"0 0 0 3px "+d},components:{Button:{variants:{outline:{border:"2px solid",borderColor:n,color:n},ghost:{color:n,_hover:{bg:"inherit",border:"1px solid",borderColor:n},_active:{color:"inherit",bg:n}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(r){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.200"}}}}}}}),[n,JSON.stringify(s)]),function(r){var{colorScheme:e,components:t}=r;return r=>{var n=Object.keys(r.components||{});return Array.isArray(t)?n=t:(0,i.Kn)(t)&&(n=Object.keys(t)),f(r,{components:Object.fromEntries(n.map((r=>[r,{defaultProps:{colorScheme:e}}])))})}}({colorScheme:n.split(".")[0]}));return(0,o.jsx)(z,{theme:p,children:e})}var F=function(r){var e=r.Component,t=r.pageProps,n={base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},a=(0,b.useState)(!1),i=a[0],s=a[1],l=(0,b.useState)(n),c=l[0],u=l[1],d=(0,b.useState)("purple.500"),f=d[0],p=d[1];(0,b.useEffect)((function(){i&&localStorage.setItem("theme",JSON.stringify(c))}),[c]),(0,b.useEffect)((function(){i&&localStorage.setItem("highlightColor",JSON.stringify(f))}),[f]),(0,b.useEffect)((function(){var r,e,t,o;u(null!==(r=JSON.parse(null!==(e=localStorage.getItem("theme"))&&void 0!==e?e:JSON.stringify(n)))&&void 0!==r?r:n),p(null!==(t=JSON.parse(null!==(o=localStorage.getItem("highlightColor"))&&void 0!==o?o:JSON.stringify(f)))&&void 0!==t?t:f),s(!0)}),[]);var h={emacsTheme:c,setEmacsTheme:u,highlightColor:f,setHighlightColor:p};return(0,o.jsx)(B.N.Provider,{value:h,children:(0,o.jsx)(T,{children:(0,o.jsx)(e,O({},t))})})}},29356:function(r,e,t){"use strict";t.d(e,{N:function(){return n}});var n=(0,t(67294).createContext)({emacsTheme:{base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},76374:function(r,e,t){"use strict";function n(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function o(r,e){var t=Object.create(r.prototype);for(var n in e)t[n]=e[n];return t}function a(){}t.d(e,{ZP:function(){return w},B8:function(){return C}});var i=.7,s=1/i,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),b=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function w(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=d.exec(r))?(t=e[1].length,e=parseInt(e[1],16),6===t?S(e):3===t?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===t?k(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===t?k(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(r))?new A(e[1],e[2],e[3],1):(e=p.exec(r))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(r))?k(e[1],e[2],e[3],e[4]):(e=b.exec(r))?k(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(r))?B(e[1],e[2]/100,e[3]/100,1):(e=m.exec(r))?B(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(r)?S(v[r]):"transparent"===r?new A(NaN,NaN,NaN,0):null}function S(r){return new A(r>>16&255,r>>8&255,255&r,1)}function k(r,e,t,n){return n<=0&&(r=e=t=NaN),new A(r,e,t,n)}function _(r){return r instanceof a||(r=w(r)),r?new A((r=r.rgb()).r,r.g,r.b,r.opacity):new A}function C(r,e,t,n){return 1===arguments.length?_(r):new A(r,e,t,null==n?1:n)}function A(r,e,t,n){this.r=+r,this.g=+e,this.b=+t,this.opacity=+n}function E(){return"#"+R(this.r)+R(this.g)+R(this.b)}function z(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}function R(r){return((r=Math.max(0,Math.min(255,Math.round(r)||0)))<16?"0":"")+r.toString(16)}function B(r,e,t,n){return n<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new O(r,e,t,n)}function j(r){if(r instanceof O)return new O(r.h,r.s,r.l,r.opacity);if(r instanceof a||(r=w(r)),!r)return new O;if(r instanceof O)return r;var e=(r=r.rgb()).r/255,t=r.g/255,n=r.b/255,o=Math.min(e,t,n),i=Math.max(e,t,n),s=NaN,l=i-o,c=(i+o)/2;return l?(s=e===i?(t-n)/l+6*(t0&&c<1?0:s,new O(s,l,c,r.opacity)}function O(r,e,t,n){this.h=+r,this.s=+e,this.l=+t,this.opacity=+n}function T(r,e,t){return 255*(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)}n(a,w,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return j(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:z,toString:z})),n(O,(function(r,e,t,n){return 1===arguments.length?j(r):new O(r,e,t,null==n?1:n)}),o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new O(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new O(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,o=2*t-n;return new A(T(r>=240?r-240:r+120,o,n),T(r,o,n),T(r<120?r+240:r-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}))},62210:function(r,e){"use strict";e.Z=function(r){return function(){return r}}},16033:function(r,e,t){"use strict";function n(r,e){return r=+r,e=+e,function(t){return r*(1-t)+e*t}}t.d(e,{Z:function(){return n}})},73028:function(r,e,t){"use strict";t.d(e,{ZP:function(){return c}});var n=t(76374);function o(r,e,t,n,o){var a=r*r,i=a*r;return((1-3*r+3*a-i)*e+(4-6*a+3*i)*t+(1+3*r+3*a-3*i)*n+i*o)/6}var a=t(62210);function i(r,e){return function(t){return r+t*e}}function s(r){return 1===(r=+r)?l:function(e,t){return t-e?function(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(n){return Math.pow(r+n*e,t)}}(e,t,r):(0,a.Z)(isNaN(e)?t:e)}}function l(r,e){var t=e-r;return t?i(r,t):(0,a.Z)(isNaN(r)?e:r)}var c=function r(e){var t=s(e);function o(r,e){var o=t((r=(0,n.B8)(r)).r,(e=(0,n.B8)(e)).r),a=t(r.g,e.g),i=t(r.b,e.b),s=l(r.opacity,e.opacity);return function(e){return r.r=o(e),r.g=a(e),r.b=i(e),r.opacity=s(e),r+""}}return o.gamma=r,o}(1);function u(r){return function(e){var t,o,a=e.length,i=new Array(a),s=new Array(a),l=new Array(a);for(t=0;t=1?(t=1,e-1):Math.floor(t*e),a=r[n],i=r[n+1],s=n>0?r[n-1]:2*a-i,l=nl&&(s=e.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),l=a.lastIndex;return l1&&(t-=1),t<1/6?r+6*(e-r)*t:t<.5?e:t<2/3?r+(e-r)*(2/3-t)*6:r}if(r=T(r,360),e=T(e,100),t=T(t,100),0===e)n=o=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,l=2*t-s;n=i(l,s,r+1/3),o=i(l,s,r),a=i(l,s,r-1/3)}return{r:255*n,g:255*o,b:255*a}}(r.h,n,l),d=!0,f="hsl"),r.hasOwnProperty("a")&&(t=r.a));var p,h,b;return t=O(t),{ok:d,format:r.format||f,r:c(255,u(e.r,0)),g:c(255,u(e.g,0)),b:c(255,u(e.b,0)),a:t}}(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function p(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=(a+i)/2;if(a==i)n=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case r:n=(e-t)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(f(n));return a}function R(r,e){e=e||6;for(var t=f(r).toHsv(),n=t.h,o=t.s,a=t.v,i=[],s=1/e;e--;)i.push(f({h:n,s:o,v:a})),a=(a+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=O(r),this._roundA=l(100*this._a)/100,this},toHsv:function(){var r=h(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=h(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.v);return 1==this._a?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=p(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=p(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.l);return 1==this._a?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return b(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return function(r,e,t,n,o){var a=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16)),I(D(n))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+g(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var o=f(r);t="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==r&&"hex6"!==r&&"hex3"!==r&&"hex4"!==r&&"hex8"!==r&&"name"!==r?("rgb"===r&&(t=this.toRgbString()),"prgb"===r&&(t=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(t=this.toHexString()),"hex3"===r&&(t=this.toHexString(!0)),"hex4"===r&&(t=this.toHex8String(!0)),"hex8"===r&&(t=this.toHex8String()),"name"===r&&(t=this.toName()),"hsl"===r&&(t=this.toHslString()),"hsv"===r&&(t=this.toHsvString()),t||this.toHexString()):"name"===r&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(r,e){if("object"==typeof r){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]="a"===n?r[n]:M(r[n]));r=t}return f(r,e)},f.equals=function(r,e){return!(!r||!e)&&f(r).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(r,e,t){t=0===t?0:t||50;var n=f(r).toRgb(),o=f(e).toRgb(),a=t/100;return f({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},f.readability=function(r,e){var t=f(r),n=f(e);return(o.max(t.getLuminance(),n.getLuminance())+.05)/(o.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(r,e,t){var n,o,a=f.readability(r,e);switch(o=!1,(n=function(r){var e,t;e=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==t&&"large"!==t&&(t="small");return{level:e,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(r,e,t){var n,o,a,i,s=null,l=0;o=(t=t||{}).includeFallbackColors,a=t.level,i=t.size;for(var c=0;cl&&(l=n,s=f(e[c]));return f.isReadable(r,s,{level:a,size:i})||!o?s:(t.includeFallbackColors=!1,f.mostReadable(r,["#fff","#000"],t))};var B=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=f.hexNames=function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}(B);function O(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function T(r,e){(function(r){return"string"==typeof r&&-1!=r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var t=function(r){return"string"===typeof r&&-1!=r.indexOf("%")}(r);return r=c(e,u(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),o.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function F(r){return c(1,u(0,r))}function P(r){return parseInt(r,16)}function I(r){return 1==r.length?"0"+r:""+r}function M(r){return r<=1&&(r=100*r+"%"),r}function D(r){return o.round(255*parseFloat(r)).toString(16)}function W(r){return P(r)/255}var J=function(){var r="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",t="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(r){return!!J.CSS_UNIT.exec(r)}r.exports?r.exports=f:void 0===(n=function(){return f}.call(e,t,e,r))||(r.exports=n)}(Math)}},function(r){var e=function(e){return r(r.s=e)};r.O(0,[774,179],(function(){return e(76363),e(34651)}));var t=r.O();_N_E=t}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js index 3d18290..f3332cc 100644 --- a/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js +++ b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js @@ -1,491 +1 @@ -;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ - [820], - { - 23398: function (e, t, n) { - 'use strict' - var r - ;(t.__esModule = !0), (t.AmpStateContext = void 0) - var a = ((r = n(67294)) && r.__esModule ? r : { default: r }).default.createContext({}) - t.AmpStateContext = a - }, - 76393: function (e, t, n) { - 'use strict' - ;(t.__esModule = !0), - (t.isInAmpMode = i), - (t.useAmp = function () { - return i(a.default.useContext(o.AmpStateContext)) - }) - var r, - a = (r = n(67294)) && r.__esModule ? r : { default: r }, - o = n(23398) - function i() { - var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, - t = e.ampFirst, - n = void 0 !== t && t, - r = e.hybrid, - a = void 0 !== r && r, - o = e.hasQuery, - i = void 0 !== o && o - return n || (a && i) - } - }, - 92775: function (e, t, n) { - 'use strict' - var r = n(61682) - function a(e, t) { - var n = Object.keys(e) - if (Object.getOwnPropertySymbols) { - var r = Object.getOwnPropertySymbols(e) - t && - (r = r.filter(function (t) { - return Object.getOwnPropertyDescriptor(e, t).enumerable - })), - n.push.apply(n, r) - } - return n - } - ;(t.__esModule = !0), (t.defaultHead = d), (t.default = void 0) - var o, - i = (function (e) { - if (e && e.__esModule) return e - if (null === e || ('object' !== typeof e && 'function' !== typeof e)) - return { default: e } - var t = f() - if (t && t.has(e)) return t.get(e) - var n = {}, - r = Object.defineProperty && Object.getOwnPropertyDescriptor - for (var a in e) - if (Object.prototype.hasOwnProperty.call(e, a)) { - var o = r ? Object.getOwnPropertyDescriptor(e, a) : null - o && (o.get || o.set) ? Object.defineProperty(n, a, o) : (n[a] = e[a]) - } - ;(n.default = e), t && t.set(e, n) - return n - })(n(67294)), - u = (o = n(73244)) && o.__esModule ? o : { default: o }, - c = n(23398), - s = n(41165), - l = n(76393) - function f() { - if ('function' !== typeof WeakMap) return null - var e = new WeakMap() - return ( - (f = function () { - return e - }), - e - ) - } - function d() { - var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], - t = [i.default.createElement('meta', { charSet: 'utf-8' })] - return ( - e || - t.push( - i.default.createElement('meta', { name: 'viewport', content: 'width=device-width' }), - ), - t - ) - } - function p(e, t) { - return 'string' === typeof t || 'number' === typeof t - ? e - : t.type === i.default.Fragment - ? e.concat( - i.default.Children.toArray(t.props.children).reduce(function (e, t) { - return 'string' === typeof t || 'number' === typeof t ? e : e.concat(t) - }, []), - ) - : e.concat(t) - } - var h = ['name', 'httpEquiv', 'charSet', 'itemProp'] - function y(e, t) { - return e - .reduce(function (e, t) { - var n = i.default.Children.toArray(t.props.children) - return e.concat(n) - }, []) - .reduce(p, []) - .reverse() - .concat(d(t.inAmpMode)) - .filter( - (function () { - var e = new Set(), - t = new Set(), - n = new Set(), - r = {} - return function (a) { - var o = !0, - i = !1 - if (a.key && 'number' !== typeof a.key && a.key.indexOf('$') > 0) { - i = !0 - var u = a.key.slice(a.key.indexOf('$') + 1) - e.has(u) ? (o = !1) : e.add(u) - } - switch (a.type) { - case 'title': - case 'base': - t.has(a.type) ? (o = !1) : t.add(a.type) - break - case 'meta': - for (var c = 0, s = h.length; c < s; c++) { - var l = h[c] - if (a.props.hasOwnProperty(l)) - if ('charSet' === l) n.has(l) ? (o = !1) : n.add(l) - else { - var f = a.props[l], - d = r[l] || new Set() - ;('name' === l && i) || !d.has(f) ? (d.add(f), (r[l] = d)) : (o = !1) - } - } - } - return o - } - })(), - ) - .reverse() - .map(function (e, n) { - var o = e.key || n - if ( - !t.inAmpMode && - 'link' === e.type && - e.props.href && - ['https://fonts.googleapis.com/css', 'https://use.typekit.net/'].some(function (t) { - return e.props.href.startsWith(t) - }) - ) { - var u = (function (e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {} - t % 2 - ? a(Object(n), !0).forEach(function (t) { - r(e, t, n[t]) - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : a(Object(n)).forEach(function (t) { - Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) - }) - } - return e - })({}, e.props || {}) - return ( - (u['data-href'] = u.href), - (u.href = void 0), - (u['data-optimized-fonts'] = !0), - i.default.cloneElement(e, u) - ) - } - return i.default.cloneElement(e, { key: o }) - }) - } - var m = function (e) { - var t = e.children, - n = (0, i.useContext)(c.AmpStateContext), - r = (0, i.useContext)(s.HeadManagerContext) - return i.default.createElement( - u.default, - { reduceComponentsToState: y, headManager: r, inAmpMode: (0, l.isInAmpMode)(n) }, - t, - ) - } - t.default = m - }, - 73244: function (e, t, n) { - 'use strict' - var r = n(83115), - a = n(2553), - o = n(62012), - i = (n(50450), n(9807)), - u = n(27690), - c = n(99828) - function s(e) { - var t = (function () { - if ('undefined' === typeof Reflect || !Reflect.construct) return !1 - if (Reflect.construct.sham) return !1 - if ('function' === typeof Proxy) return !0 - try { - return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0 - } catch (e) { - return !1 - } - })() - return function () { - var n, - r = c(e) - if (t) { - var a = c(this).constructor - n = Reflect.construct(r, arguments, a) - } else n = r.apply(this, arguments) - return u(this, n) - } - } - ;(t.__esModule = !0), (t.default = void 0) - var l = n(67294), - f = (function (e) { - i(n, e) - var t = s(n) - function n(e) { - var o - return ( - a(this, n), - ((o = t.call(this, e))._hasHeadManager = void 0), - (o.emitChange = function () { - o._hasHeadManager && - o.props.headManager.updateHead( - o.props.reduceComponentsToState( - r(o.props.headManager.mountedInstances), - o.props, - ), - ) - }), - (o._hasHeadManager = o.props.headManager && o.props.headManager.mountedInstances), - o - ) - } - return ( - o(n, [ - { - key: 'componentDidMount', - value: function () { - this._hasHeadManager && this.props.headManager.mountedInstances.add(this), - this.emitChange() - }, - }, - { - key: 'componentDidUpdate', - value: function () { - this.emitChange() - }, - }, - { - key: 'componentWillUnmount', - value: function () { - this._hasHeadManager && this.props.headManager.mountedInstances.delete(this), - this.emitChange() - }, - }, - { - key: 'render', - value: function () { - return null - }, - }, - ]), - n - ) - })(l.Component) - t.default = f - }, - 3359: function (e, t, n) { - 'use strict' - var r = n(2553), - a = n(62012), - o = n(9807), - i = n(27690), - u = n(99828) - function c(e) { - var t = (function () { - if ('undefined' === typeof Reflect || !Reflect.construct) return !1 - if (Reflect.construct.sham) return !1 - if ('function' === typeof Proxy) return !0 - try { - return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0 - } catch (e) { - return !1 - } - })() - return function () { - var n, - r = u(e) - if (t) { - var a = u(this).constructor - n = Reflect.construct(r, arguments, a) - } else n = r.apply(this, arguments) - return i(this, n) - } - } - var s = n(62426) - ;(t.__esModule = !0), (t.default = void 0) - var l = s(n(67294)), - f = s(n(92775)), - d = { - 400: 'Bad Request', - 404: 'This page could not be found', - 405: 'Method Not Allowed', - 500: 'Internal Server Error', - } - function p(e) { - var t = e.res, - n = e.err - return { statusCode: t && t.statusCode ? t.statusCode : n ? n.statusCode : 404 } - } - var h = (function (e) { - o(n, e) - var t = c(n) - function n() { - return r(this, n), t.apply(this, arguments) - } - return ( - a(n, [ - { - key: 'render', - value: function () { - var e = this.props.statusCode, - t = this.props.title || d[e] || 'An unexpected error has occurred' - return l.default.createElement( - 'div', - { style: y.error }, - l.default.createElement( - f.default, - null, - l.default.createElement( - 'title', - null, - e - ? ''.concat(e, ': ').concat(t) - : 'Application error: a client-side exception has occurred', - ), - ), - l.default.createElement( - 'div', - null, - l.default.createElement('style', { - dangerouslySetInnerHTML: { __html: 'body { margin: 0 }' }, - }), - e ? l.default.createElement('h1', { style: y.h1 }, e) : null, - l.default.createElement( - 'div', - { style: y.desc }, - l.default.createElement( - 'h2', - { style: y.h2 }, - this.props.title || e - ? t - : l.default.createElement( - l.default.Fragment, - null, - 'Application error: a client-side exception has occurred (', - l.default.createElement( - 'a', - { - href: 'https://nextjs.org/docs/messages/client-side-exception-occurred', - }, - 'developer guidance', - ), - ')', - ), - '.', - ), - ), - ), - ) - }, - }, - ]), - n - ) - })(l.default.Component) - ;(t.default = h), - (h.displayName = 'ErrorPage'), - (h.getInitialProps = p), - (h.origGetInitialProps = p) - var y = { - error: { - color: '#000', - background: '#fff', - fontFamily: - '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif', - height: '100vh', - textAlign: 'center', - display: 'flex', - flexDirection: 'column', - alignItems: 'center', - justifyContent: 'center', - }, - desc: { - display: 'inline-block', - textAlign: 'left', - lineHeight: '49px', - height: '49px', - verticalAlign: 'middle', - }, - h1: { - display: 'inline-block', - borderRight: '1px solid rgba(0, 0, 0,.3)', - margin: 0, - marginRight: '20px', - padding: '10px 23px 10px 0', - fontSize: '24px', - fontWeight: 500, - verticalAlign: 'top', - }, - h2: { - fontSize: '14px', - fontWeight: 'normal', - lineHeight: 'inherit', - margin: 0, - padding: 0, - }, - } - }, - 14977: function (e, t, n) { - ;(window.__NEXT_P = window.__NEXT_P || []).push([ - '/_error', - function () { - return n(3359) - }, - ]) - }, - 38164: function (e, t, n) { - var r = n(54360) - e.exports = function (e) { - if (Array.isArray(e)) return r(e) - } - }, - 61682: function (e) { - e.exports = function (e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = n), - e - ) - } - }, - 27381: function (e) { - e.exports = function (e) { - if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e) - } - }, - 95725: function (e) { - e.exports = function () { - throw new TypeError( - 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.', - ) - } - }, - 83115: function (e, t, n) { - var r = n(38164), - a = n(27381), - o = n(73585), - i = n(95725) - e.exports = function (e) { - return r(e) || a(e) || o(e) || i() - } - }, - }, - function (e) { - e.O(0, [774, 888, 179], function () { - return (t = 14977), e((e.s = t)) - var t - }) - var t = e.O() - _N_E = t - }, -]) +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{23398:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var a=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=a},76393:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=i,t.useAmp=function(){return i(a.default.useContext(o.AmpStateContext))};var r,a=(r=n(67294))&&r.__esModule?r:{default:r},o=n(23398);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,a=void 0!==r&&r,o=e.hasQuery,i=void 0!==o&&o;return n||a&&i}},92775:function(e,t,n){"use strict";var r=n(61682);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=d,t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(67294)),u=(o=n(73244))&&o.__esModule?o:{default:o},c=n(23398),s=n(41165),l=n(76393);function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function y(e,t){return e.reduce((function(e,t){var n=i.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(d(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(a){var o=!0,i=!1;if(a.key&&"number"!==typeof a.key&&a.key.indexOf("$")>0){i=!0;var u=a.key.slice(a.key.indexOf("$")+1);e.has(u)?o=!1:e.add(u)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(var c=0,s=h.length;c2&&void 0!==arguments[2]?arguments[2]:{},i=h(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n;l!==o&&i.update(l);var s=(0,u.useState)(l),a=s[0],c=s[1];(0,u.useEffect)((function(){a!==l&&c(l)}),[e]);var d=function(e){e instanceof Function?c((function(n){var t=e(n);return i.update(t),t})):(c(e),i.update(e))};return[a,d]}function h(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var g=t(54533),f=t(54309),x=t(20233),p=t(40980),j=t(48017),m=t(36194),v=[],b={};for(var C in m.oY)for(var y in m.oY[C]){var k=C+y;"LinearNone"===k&&(k="Linear"),v.push(k),b[k]=m.oY[C][y]}var w=b,S={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.05,linkStrength:.1,linkIts:1,alphaDecay:.02,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0},L={orphans:!1,parents:!0,fileless_cites:!1,tagsBlacklist:[],tagsWhitelist:[],nodes:[],links:[],date:[]},I={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightAnim:!0,animationSpeed:700,algorithmOptions:v,algorithmName:"BackOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"black",labelBackgroundColor:"white",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.600",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.400",refLinkHighlightColor:"",refNodeColor:"black"},O={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},N={highlight:"hover",local:"click",follow:"double"},D=t(38347),R=t(93924),z=t(83986),T=t(48931),H=t(67546),P=t(93441),E=t(6569),Z=t(24189),B=t(2827),F=t(90454),A=t(48420),V=t(96699),M=t(40155),W=t(56769),X=t(336),_=t(72026),U=t(94096),G=t(64115),Q=t(88134),q=t(48235),K=t(67273),J=t(15267),Y=t(46049),$=t(95818),ee=t(47647),ne=t(86658),te=t(29356);function re(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ie(e){for(var n=1;n0,animateOpacity:!0,children:(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,l.jsx)(ce,{colorList:$,label:"Text",visuals:d,setVisuals:h,value:"labelTextColor",visValue:d.labelTextColor}),(0,l.jsx)(ce,{colorList:$,label:"Text",visuals:d,setVisuals:h,value:"labelBackgroundColor",visValue:d.labelBackgroundColor}),(0,l.jsx)(J.U,{in:!!d.labelBackgroundColor,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingTop:2,children:(0,l.jsx)(se,{label:"Background opacity",value:d.labelBackgroundOpacity,onChange:function(e){console.log(d.labelBackgroundOpacity),h(ie(ie({},d),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,l.jsx)(J.U,{in:d.labels>1,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingTop:2,children:(0,l.jsx)(se,{label:"Label Appearance Scale",value:5*d.labelScale,onChange:function(e){return h(ie(ie({},d),{},{labelScale:e/5}))}})})})]})})]}),(0,l.jsxs)(ae,{label:"Link arrows",value:d.arrows,onChange:function(){return h(ie(ie({},d),{},{arrows:!d.arrows}))},children:[(0,l.jsx)(se,{label:"Arrow size",value:d.arrowsLength/10,onChange:function(e){return h(ie(ie({},d),{},{arrowsLength:10*e}))}}),(0,l.jsx)(se,{label:"Arrow Position",value:d.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return h(ie(ie({},d),{},{arrowsPos:e}))}}),(0,l.jsx)(ce,{colorList:$,label:"Arrow Color",visuals:d,setVisuals:h,value:"arrowsColor",visValue:d.arrowsColor})]}),(0,l.jsxs)(ae,{label:"Directional Particles",value:d.particles,onChange:function(){return h(ie(ie({},d),{},{particles:!d.particles}))},children:[(0,l.jsx)(se,{label:"Particle Number",value:d.particlesNumber,max:5,step:1,onChange:function(e){return h(ie(ie({},d),{},{particlesNumber:e}))}}),(0,l.jsx)(se,{label:"Particle Size",value:d.particlesWidth,onChange:function(e){return h(ie(ie({},d),{},{particlesWidth:e}))}})]}),(0,l.jsx)(ae,{label:"Highlight",onChange:function(){return h(ie(ie({},d),{},{highlight:!d.highlight}))},value:d.highlight,children:(0,l.jsxs)(_.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,l.jsx)(se,{label:"Highlight Link Thickness",value:d.highlightLinkSize,onChange:function(e){return h(ie(ie({},d),{},{highlightLinkSize:e}))}}),(0,l.jsx)(se,{label:"Highlight Node Size",value:d.highlightNodeSize,onChange:function(e){return h(ie(ie({},d),{},{highlightNodeSize:e}))}}),(0,l.jsxs)(ae,{label:"Highlight Animation",onChange:function(){h(ie(ie({},d),{},{highlightAnim:!d.highlightAnim}))},value:d.highlightAnim,children:[(0,l.jsx)(se,{label:"Animation speed",onChange:function(e){return h(ie(ie({},d),{},{animationSpeed:e}))},value:d.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,l.jsx)(Y.Ph,{placeholder:d.algorithmName,onChange:function(e){h(ie(ie({},d),{},{algorithmName:e.target.value}))},children:d.algorithmOptions.map((function(e){return(0,l.jsx)("option",{value:e,children:e},e)}))})]})]})})]})]})})]}),(0,l.jsxs)(W.Qd,{children:[(0,l.jsxs)(W.KF,{children:[(0,l.jsx)(W.XE,{marginRight:2}),(0,l.jsx)(X.X,{size:"sm",children:"Behavior"})]}),(0,l.jsx)(W.Hk,{children:(0,l.jsxs)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(U.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(U.k,{children:[(0,l.jsx)(G.x,{children:"Expand Node"}),(0,l.jsx)(le,{infoText:"View only the node and its direct neighbors"})]}),(0,l.jsxs)(q.v2,{placement:"right",children:[(0,l.jsx)(q.j2,{as:M.z,rightIcon:(0,l.jsx)(E.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(G.x,{children:g.local?g.local[0].toUpperCase()+g.local.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(q.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{local:""}))},children:"Never"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{local:"click"}))},children:"Click"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{local:"double"}))},children:"Double Click"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(U.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(G.x,{children:"Open in Emacs"}),(0,l.jsxs)(q.v2,{placement:"right",children:[(0,l.jsx)(q.j2,{as:M.z,rightIcon:(0,l.jsx)(E.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(G.x,{children:g.follow?g.follow[0].toUpperCase()+g.follow.slice(1):"Never"})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(q.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{follow:""}))},children:"Never"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{follow:"click"}))},children:"Click"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{follow:"double"}))},children:"Double Click"}),(0,l.jsx)(q.sN,{onClick:function(){return f(ie(ie({},g),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(U.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(G.x,{children:"Follow Emacs by..."}),(0,l.jsxs)(q.v2,{placement:"right",children:[(0,l.jsx)(q.j2,{as:M.z,rightIcon:(0,l.jsx)(E.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(G.x,{children:x.follow[0].toUpperCase()+x.follow.slice(1)})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(q.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(q.sN,{onClick:function(){return p(ie(ie({},x),{},{follow:"local"}))},children:"Opening the local graph"}),(0,l.jsx)(q.sN,{onClick:function(){return p(ie(ie({},x),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,l.jsx)(se,{label:"Zoom speed",value:x.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return p(ie(ie({},x),{},{zoomSpeed:e}))}}),(0,l.jsx)(se,{label:"Zoom padding",value:x.zoomPadding,min:0,max:400,step:1,onChange:function(e){return p(ie(ie({},x),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})})]})]})})]})})]})},le=function(e){var n=e.infoText;return(0,l.jsx)(j.xu,{paddingLeft:"1",children:(0,l.jsx)(V.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,l.jsx)(Z.h,{})})})},se=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,s=void 0===o?.1:o,a=e.value,c=void 0===a?1:a,d=(0,D.Z)(e,["min","max","step","value"]),h=d.onChange,g=d.label,f=d.infoText,x=(0,u.useContext)(te.N).highlightColor;return(0,l.jsxs)(j.xu,{children:[(0,l.jsxs)(j.xu,{display:"flex",alignItems:"flex-end",children:[(0,l.jsx)(G.x,{children:g}),f&&(0,l.jsx)(le,{infoText:f})]}),(0,l.jsxs)($.iR,{value:c,onChange:h,min:t,max:i,step:s,children:[(0,l.jsx)($.Uj,{children:(0,l.jsx)($.Ms,{})}),(0,l.jsx)(V.u,{bg:x,label:c.toFixed(1),children:(0,l.jsx)($.gs,{bg:"white"})})]})]})},ae=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,l.jsxs)(j.xu,{paddingTop:2,children:[(0,l.jsxs)(j.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,l.jsxs)(j.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(G.x,{children:r}),i&&(0,l.jsx)(le,{infoText:i})]}),(0,l.jsx)(Q.r,{isChecked:!!n,onChange:t})]}),(0,l.jsx)(J.U,{in:!!n,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]})},ce=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visuals,o=e.visValue,s=e.setVisuals;return(0,l.jsxs)(U.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(G.x,{children:n}),(0,l.jsxs)(q.v2,{placement:"right",children:[(0,l.jsx)(q.j2,{as:M.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(E.v,{}),children:(0,l.jsx)(j.xu,{bgColor:o,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsxs)(q.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(q.sN,{onClick:function(){return s(ie(ie({},i),{},(0,a.Z)({},r,"")))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{height:6,width:6})}),t.map((function(e){return(0,l.jsx)(q.sN,{onClick:function(){return s(ie(ie({},i),{},(0,a.Z)({},r,e)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})},ue=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,s=r.map((function(e){return{value:e,label:e}})),c="blacklist"===o?"tagsBlacklist":"tagsWhitelist",d=(0,u.useState)(n[c].map((function(e){return{value:e,label:e}}))),h=d[0],g=d[1];return(0,l.jsx)(ee.CUIAutoComplete,{items:s,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t(ie(ie({},n),{},(0,a.Z)({},c,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},de=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),s=(0,u.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],d=s[1];return(0,l.jsxs)(j.xu,{children:[(0,l.jsx)(ee.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(d(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,l.jsx)(_.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(_.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,l.jsxs)(U.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,l.jsx)(j.xu,{width:"100%",children:(0,l.jsx)(G.x,{fontWeight:"bold",children:e})}),(0,l.jsxs)(q.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(q.j2,{as:M.z,colorScheme:"",color:"black",children:(0,l.jsx)(j.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(K.h,{children:[" ",(0,l.jsx)(q.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,l.jsx)(q.sN,{onClick:function(){return r(ie(ie({},t),{},(0,a.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,l.jsx)(A.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,l.jsx)(B.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),d(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},he=t(31122),ge=t(22003);function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xe(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200,o=ne.current,l=$.current,a=ee.current,c=null!==(t=F.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,s.Z)(c.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));return"zoom"===e?(console.log(l),l.nodeIds.length&&(console.log("emptying"),console.log("scope "+l.nodeIds),Y({nodeIds:[]})),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50)):l.nodeIds.length?"add"!==a.localSame?(Y({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50)):l.nodeIds.includes(n)&&l.nodeIds.some((function(e){return u[e]}))?(Y((function(e){return xe(xe({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n])})})),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50)):(Y({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50)):(Y({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50))};return(0,u.useEffect)((function(){re.current=new ge.Z("ws://localhost:35903"),re.current.addEventListener("open",(function(e){console.log("Connection with Emacs established")})),re.current.addEventListener("message",(function(e){ne.current;var n=ee.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n;A.current=null!==(n=e.tags)&&void 0!==n?n:[];var t=e.nodes.reduce((function(e,n){var t;return xe(xe({},e),{},(0,a.Z)({},n.file,[].concat((0,s.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),r=Object.keys(t).flatMap((function(e){var n,r=null!==(n=t[e])&&void 0!==n?n:[],i=r.find((function(e){return 0===e.level})),o=r.filter((function(e){return 0!==e.level}));return i?o.map((function(e){return{source:e.id,target:i.id,type:"parent"}})):[]}));B.current=Object.fromEntries(e.nodes.map((function(e){return[e.id,e]})));var i=[].concat((0,s.Z)(e.links),(0,s.Z)(r)).filter((function(e){var n=e.source,t=e.target;return B.current[n]&&B.current[t]}));F.current=i.reduce((function(e,n){var t,r,i;return xe(xe({},e),{},(i={},(0,a.Z)(i,n.source,[].concat((0,s.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,a.Z)(i,n.target,[].concat((0,s.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var o=xe(xe({},e),{},{links:i}),l=JSON.parse(JSON.stringify(o));C(l)}(t.data);case"theme":return V(t.data);case"command":switch(t.data.commandName){case"local":var r=z.zoomSpeed,i=z.zoomPadding;ie("local",t.data.id,r,i),w(t.data.id);break;case"zoom":var o,l,c=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,u=(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.padding)||n.zoomPadding;ie("zoom",t.data.id,c,u),w(t.data.id);break;case"follow":ie(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),w(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),b?(0,l.jsxs)(j.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",children:[(0,l.jsx)(oe,xe(xe({},{physics:t,setPhysics:r,threeDim:X,setThreeDim:_,filter:h,setFilter:g,visuals:p,setVisuals:m,mouse:E,setMouse:Z,behavior:z,setBehavior:T,tagColors:Q,setTagColors:q}),{},{tags:A.current})),(0,l.jsx)(j.xu,{position:"absolute",alignItems:"top",children:(0,l.jsx)(ye,xe({ref:ne,nodeById:B.current,linksByNodeId:F.current,webSocket:re.current},{physics:t,graphData:b,threeDim:X,emacsNodeId:k,filter:h,visuals:p,behavior:z,mouse:E,scope:J,setScope:Y,tagColors:Q}))})]}):null}var ye=(0,u.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,d=e.threeDim,h=e.linksByNodeId,j=e.filter,m=e.emacsNodeId,v=e.nodeById,b=e.visuals,C=(e.behavior,e.mouse),y=e.scope,k=e.setScope,S=e.webSocket,L=e.tagColors,I=(0,f.iP)(),O=(0,c.Z)(I,2),N=O[0],D=O[1],R=(0,u.useState)(null),z=R[0],T=R[1],H=(0,p.useTheme)(),P=(0,u.useContext)(te.N).emacsTheme,E=function(e,n){switch(e){case C.local:if(y.nodeIds.includes(n.id))break;k((function(e){return xe(xe({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n.id])})}));break;case C.follow:S.send(n.id)}},Z=(0,u.useRef)(null);(0,u.useEffect)((function(){m&&T(v[m])}),[m]),Z.current=z;var B=(0,u.useMemo)((function(){if(!Z.current)return{};var e=h[Z.current.id];return e?Object.fromEntries([Z.current.id].concat((0,s.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[Z.current,h]),F=(0,u.useRef)({}),A=((0,u.useRef)({}),(0,u.useMemo)((function(){F.current={};var e=r.nodes.filter((function(e){var n=e;return j.tagsBlacklist.length&&j.tagsBlacklist.some((function(e){return n.tags.indexOf(e)>-1}))||j.tagsWhitelist.length>0&&!j.tagsWhitelist.some((function(e){return n.tags.indexOf(e)>-1}))?(F.current=xe(xe({},F.current),{},(0,a.Z)({},n.id,n)),!1):!j.fileless_cites||!n.properties.FILELESS||(F.current=xe(xe({},F.current),{},(0,a.Z)({},n.id,n)),!1)})).filter((function(e){var n,t=(null!==(n=h[e.id])&&void 0!==n?n:[]).filter((function(e){return!F.current[e.source]&&!F.current[e.target]}));return!j.orphans||(j.parents?0!==t.length:0!==t.length&&t.some((function(e){return!["parent"].includes(e.type)})))})),n=e.map((function(e){return e.id}));return{filteredNodes:e,filteredLinks:r.links.filter((function(e){var t=be(e),r=(0,c.Z)(t,2),i=r[0],o=r[1];if(j.tagsBlacklist.length||j.tagsWhitelist.length||j.fileless_cites)return n.includes(i)&&n.includes(o);var l=e;return j.parents||"parent"!==l.type}))}}),[j,r])),V=(0,u.useMemo)((function(){var e=A.filteredNodes.filter((function(e){var n,t=null!==(n=h[e.id])&&void 0!==n?n:[];return y.nodeIds.includes(e.id)||t.some((function(e){return y.nodeIds.includes(e.source)||y.nodeIds.includes(e.target)}))})),n=e.map((function(e){return e.id})),t=A.filteredLinks.filter((function(e){var t=be(e),r=(0,c.Z)(t,2),i=r[0],o=r[1];return n.includes(i)&&n.includes(o)}));return 0===y.nodeIds.length?{nodes:A.filteredNodes,links:A.filteredLinks}:{nodes:e,links:t}}),[j,y,r]);(0,u.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,pe;case 3:o=e.sent,t.gravityOn?(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),d&&r.d3Force("z",o.forceZ().strength(t.gravity))):(r.d3Force("x",null),r.d3Force("y",null),d&&r.d3Force("z",null)),t.centering?r.d3Force("center",o.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()})),(0,u.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t]);var M=(0,u.useRef)(0),W=(0,u.useState)(1),X=W[0],_=W[1],U=(0,x._7)((function(e){return _(e)}),{duration:b.animationSpeed,algorithm:w[b.algorithmName]}),G=(0,c.Z)(U,2),Q=G[0],q=G[1],K=(0,x._7)((function(e){return _(Math.min(X,-1*(e-1)))}),{duration:b.animationSpeed,algorithm:w[b.algorithmName]}),J=(0,c.Z)(K,2),Y=J[0],$=J[1],ee=(0,u.useRef)(null);(0,u.useEffect)((function(){if(z&&(ee.current=z),!b.highlightAnim)return _(z?1:0);z?Q():(q(),X>.5?Y():_(0))}),[z]);var ne=function(e){if(H)return e.split(".").reduce((function(e,n){return e[n]}),H.colors)},re=(0,u.useMemo)((function(){var e=b.nodeColorScheme.concat(b.linkColorScheme||[],b.linkHighlight||[],b.nodeHighlight||[],b.citeNodeColor||[],b.citeLinkColor||[],b.citeLinkHighlightColor||[],b.refNodeColor||[],b.refLinkColor||[],b.refLinkHighlightColor||[]);return Object.fromEntries(e.map((function(n){var t=ne(n),r=e.map((function(e){return[e,g.Z(t,ne(e))]}));return[n,Object.fromEntries(r)]})))}),[b.nodeColorScheme,b.linkHighlight,b.nodeHighlight,b.linkColorScheme,P]),ie=(0,u.useMemo)((function(){var e,n,t,r=null!==(e=h[null===(n=ee.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=ee.current)||void 0===t?void 0:t.id].concat((0,s.Z)(r.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})))}),[JSON.stringify(z),ee.current]),oe=function(e){var n,t,r,i,o,l,s=null!==(n=null===(t=h[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0,a=s?null===(r=h[e])||void 0===r?void 0:r.filter((function(e){return"parent"===e.type})).length:0,c=j.parents?s:s-a;return b.nodeColorScheme[(i=c,o=0,l=b.nodeColorScheme.length-1,Math.min(Math.max(i,o),l))]},le=function(e,n){return h[e]>h[n]?oe(e):oe(n)},se=function(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"},ae=(0,u.useMemo)((function(){return ne(b.labelTextColor)}),[b.labelTextColor,P]),ce=(0,u.useMemo)((function(){return ne(b.labelBackgroundColor)}),[b.labelBackgroundColor,P]),ue={graphData:V,width:N,height:D,backgroundColor:H.colors.gray[b.backgroundColor],nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e){var n=B[e.id]||ie[e.id];if(b.emacsNodeColor&&e.id===m)return ne(b.emacsNodeColor);if(L&&e.tags.some((function(e){return L[e]}))){var t=L[e.tags.filter((function(e){return L[e]}))[0]];return ne(t)}return b.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?ne(b.citeNodeColor):b.refNodeColor&&e.properties.ROAM_REFS?ne(b.refNodeColor):n&&b.nodeHighlight?re[oe(e.id)][b.nodeHighlight](X):ne(oe(e.id))}(e)},nodeRelSize:b.nodeRel,nodeVal:function(e){var n,t=null!==(n=h[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0;return(3+t.length-(j.parents?0:r))*(B[e.id]||ie[e.id]?1+X*(b.highlightNodeSize-1):1)},nodeCanvasObject:function(e,n,t){if(e&&b.labels){var r=ie[e.id];if(!(t<=b.labelScale||1===b.labels)||B[e.id]||r){var i=e.title,o=i.substring(0,Math.min(i.length,40)),l=12/t,a=[1.1*n.measureText(o).width,l].map((function(e){return e+.5*l})),c=Math.min(3*(t-b.labelScale)/b.labelScale,1),u=function(){return 1===b.labels||t<=b.labelScale?X:B[e.id]||ie[e.id]?Math.max(c,X):1*c*(-1*(.5*X-1))};if(b.labelBackgroundColor&&b.labelBackgroundOpacity){var d=u()*b.labelBackgroundOpacity,h=se(ce,d);n.fillStyle=h,n.fillRect.apply(n,[e.x-a[0]/2,e.y-a[1]/2].concat((0,s.Z)(a)))}var g=u();n.textAlign="center",n.textBaseline="middle";var f=se(ae,g);n.fillStyle=f,n.font="".concat(l,"px Sans-Serif"),n.fillText(o,e.x,e.y)}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:b.particles?b.particlesNumber:void 0,linkDirectionalArrowLength:b.arrows?b.arrowsLength:void 0,linkDirectionalArrowRelPos:b.arrowsPos,linkDirectionalArrowColor:b.arrowsColor?function(e){return ne(b.arrowsColor)}:void 0,linkColor:function(e){var n="object"===typeof e.source?e.source.id:e.source,t="object"===typeof e.target?e.target.id:e.target,r=ke(e,Z.current),i=ke(e,ee.current),o=r||i,l=e;return b.refLinkColor&&"ref"===l.type?o&&(b.refLinkHighlightColor||b.linkHighlight)?re[b.refLinkColor][b.refLinkHighlightColor||b.linkHighlight](X):ne(b.refLinkColor):b.citeLinkColor&&"cite"===l.type?o&&(b.citeLinkHighlightColor||b.linkHighlight)?re[b.citeLinkColor][b.citeLinkHighlightColor||b.linkHighlight](X):ne(b.citeLinkColor):function(e,n,t){if(!b.linkHighlight&&!b.linkColorScheme&&!t){var r=le(e,n);return ne(r)}if(!t&&!b.linkColorScheme){var i=le(e,n);return ne(i)}if(!t)return ne(b.linkColorScheme);if(!b.linkHighlight&&!b.linkColorScheme){var o=le(e,n);return ne(o)}return b.linkHighlight?b.linkColorScheme?re[b.linkColorScheme][b.linkHighlight](X):re[le(e,n)][b.linkHighlight](X):ne(b.linkColorScheme)}(n,t,o)},linkWidth:function(e){var n=ke(e,Z.current),t=ke(e,ee.current);return n||t?b.linkWidth*(1+X*(b.highlightLinkSize-1)):b.linkWidth},linkDirectionalParticleWidth:b.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=n.timeStamp-M.current<400;return M.current=n.timeStamp,E(t?"double":"click",e)},onBackgroundClick:function(){T(null),0!==y.nodeIds.length&&k((function(e){return xe(xe({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){b.highlight&&(z||($(),_(0)),T(e))},onNodeRightClick:function(e){E("right",e)}};return(0,l.jsx)("div",{children:d?(0,l.jsx)(me,xe(xe({ref:n},ue),{},{nodeThreeObjectExtend:!0,backgroundColor:H.colors.white,nodeOpacity:b.nodeOpacity,nodeResolution:b.nodeResolution,linkOpacity:b.linkOpacity,nodeThreeObject:function(e){if(b.labels&&(!(b.labels<3)||B[e.id])){var n=new he.Z(e.title.substring(0,40));return n.color=ne(b.labelTextColor),n.backgroundColor=ne(b.labelBackgroundColor),n.padding=2,n.textHeight=8,n}}})):(0,l.jsx)(je,xe(xe({ref:n},ue),{},{linkLineDash:function(e){var n=e;return b.citeDashes&&"cite"===n.type?[b.citeDashLength,b.citeGapLength]:b.refDashes&&"ref"==n.type?[b.refDashLength,b.refGapLength]:null}}))})}));function ke(e,n){return e.source.id===(null===n||void 0===n?void 0:n.id)||e.target.id===(null===n||void 0===n?void 0:n.id)}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(374)}])}},function(e){e.O(0,[774,737,446,13,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/index-a22d59b6e873aa5b1f23.js b/out/_next/static/chunks/pages/index-a22d59b6e873aa5b1f23.js new file mode 100644 index 0000000..6f721ec --- /dev/null +++ b/out/_next/static/chunks/pages/index-a22d59b6e873aa5b1f23.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{96834:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return ze},GraphPage:function(){return Ne},default:function(){return Le}});var r=t(809),i=t.n(r),o=t(92447),l=t(85893),s=t(59999),a=t(26265),c=t(64121),d=t(67294);function u(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=h(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n;l!==o&&i.update(l);var s=(0,d.useState)(l),a=s[0],c=s[1];(0,d.useEffect)((function(){a!==l&&c(l)}),[e]);var u=function(e){e instanceof Function?c((function(n){var t=e(n);return i.update(t),t})):(c(e),i.update(e))};return[a,u]}function h(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var g=t(54533),f=t(54309),x=t(20233),p=t(40980),j=t(48017),m=t(74860),v=t(36194),b=[],C={};for(var y in v.oY)for(var k in v.oY[y]){var w=y+k;"LinearNone"===w&&(w="Linear"),b.push(w),C[w]=v.oY[y][k]}var S=C,I={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.05,linkStrength:.3,linkIts:1,alphaDecay:.1,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0},L={orphans:!1,parents:!0,filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[]},O={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightFade:.8,highlightAnim:!0,animationSpeed:420,algorithmOptions:b,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"gray.900",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5},N={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},z={highlight:"hover",local:"click",follow:"double"},R=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],D=t(38347),T=t(93924),E=t(83986),F=t(48931),Z=t(67546),H=t(93441),P=t(6569),B=t(24189),A=t(2827),V=t(48420),M=t(96699),W=t(40155),X=t(56769),_=t(336),U=t(72026),G=t(94096),q=t(64115),Q=t(88134),K=t(48235),J=t(67273),Y=t(15267),$=t(46049),ee=t(95818),ne=t(47647),te=t(86658),re=t(29356);function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function oe(e){for(var n=1;n0,animateOpacity:!0,children:(0,l.jsxs)(U.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,l.jsx)(de,{colorList:R,label:"Text",visuals:u,setVisuals:h,value:"labelTextColor",visValue:u.labelTextColor}),(0,l.jsx)(de,{colorList:R,label:"Text",visuals:u,setVisuals:h,value:"labelBackgroundColor",visValue:u.labelBackgroundColor}),(0,l.jsx)(Y.U,{in:!!u.labelBackgroundColor,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingTop:2,children:(0,l.jsx)(ae,{label:"Background opacity",value:u.labelBackgroundOpacity,onChange:function(e){console.log(u.labelBackgroundOpacity),h(oe(oe({},u),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,l.jsx)(Y.U,{in:u.labels>1,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingTop:2,children:(0,l.jsx)(ae,{label:"Label Appearance Scale",value:5*u.labelScale,onChange:function(e){return h(oe(oe({},u),{},{labelScale:e/5}))}})})})]})})]}),(0,l.jsxs)(ce,{label:"Link arrows",value:u.arrows,onChange:function(){return h(oe(oe({},u),{},{arrows:!u.arrows}))},children:[(0,l.jsx)(ae,{label:"Arrow size",value:u.arrowsLength/10,onChange:function(e){return h(oe(oe({},u),{},{arrowsLength:10*e}))}}),(0,l.jsx)(ae,{label:"Arrow Position",value:u.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return h(oe(oe({},u),{},{arrowsPos:e}))}}),(0,l.jsx)(de,{colorList:R,label:"Arrow Color",visuals:u,setVisuals:h,value:"arrowsColor",visValue:u.arrowsColor})]}),(0,l.jsxs)(ce,{label:"Directional Particles",value:u.particles,onChange:function(){return h(oe(oe({},u),{},{particles:!u.particles}))},children:[(0,l.jsx)(ae,{label:"Particle Number",value:u.particlesNumber,max:5,step:1,onChange:function(e){return h(oe(oe({},u),{},{particlesNumber:e}))}}),(0,l.jsx)(ae,{label:"Particle Size",value:u.particlesWidth,onChange:function(e){return h(oe(oe({},u),{},{particlesWidth:e}))}})]}),(0,l.jsx)(ce,{label:"Highlight",onChange:function(){return h(oe(oe({},u),{},{highlight:!u.highlight}))},value:u.highlight,children:(0,l.jsxs)(U.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,l.jsx)(ae,{label:"Highlight Link Thickness",value:u.highlightLinkSize,onChange:function(e){return h(oe(oe({},u),{},{highlightLinkSize:e}))}}),(0,l.jsx)(ae,{label:"Highlight Node Size",value:u.highlightNodeSize,onChange:function(e){return h(oe(oe({},u),{},{highlightNodeSize:e}))}}),(0,l.jsx)(ae,{min:0,max:1,label:"Highlight Fade",value:u.highlightFade,onChange:function(e){return h(oe(oe({},u),{},{highlightFade:e}))}}),(0,l.jsxs)(ce,{label:"Highlight Animation",onChange:function(){h(oe(oe({},u),{},{highlightAnim:!u.highlightAnim}))},value:u.highlightAnim,children:[(0,l.jsx)(ae,{label:"Animation speed",onChange:function(e){return h(oe(oe({},u),{},{animationSpeed:e}))},value:u.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,l.jsx)($.Ph,{placeholder:u.algorithmName,onChange:function(e){h(oe(oe({},u),{},{algorithmName:e.target.value}))},children:u.algorithmOptions.map((function(e){return(0,l.jsx)("option",{value:e,children:e},e)}))})]})]})})]})]})})]}),(0,l.jsxs)(X.Qd,{children:[(0,l.jsxs)(X.KF,{children:[(0,l.jsx)(X.XE,{marginRight:2}),(0,l.jsx)(_.X,{size:"sm",children:"Behavior"})]}),(0,l.jsx)(X.Hk,{children:(0,l.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(G.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(G.k,{children:[(0,l.jsx)(q.x,{children:"Expand Node"}),(0,l.jsx)(se,{infoText:"View only the node and its direct neighbors"})]}),(0,l.jsxs)(K.v2,{placement:"right",children:[(0,l.jsx)(K.j2,{as:W.z,rightIcon:(0,l.jsx)(P.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(q.x,{children:g.local?g.local[0].toUpperCase()+g.local.slice(1):"Never"})}),(0,l.jsxs)(J.h,{children:[" ",(0,l.jsxs)(K.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{local:""}))},children:"Never"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{local:"click"}))},children:"Click"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{local:"double"}))},children:"Double Click"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(G.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(q.x,{children:"Open in Emacs"}),(0,l.jsxs)(K.v2,{placement:"right",children:[(0,l.jsx)(K.j2,{as:W.z,rightIcon:(0,l.jsx)(P.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(q.x,{children:g.follow?g.follow[0].toUpperCase()+g.follow.slice(1):"Never"})}),(0,l.jsxs)(J.h,{children:[" ",(0,l.jsxs)(K.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{follow:""}))},children:"Never"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{follow:"click"}))},children:"Click"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{follow:"double"}))},children:"Double Click"}),(0,l.jsx)(K.sN,{onClick:function(){return f(oe(oe({},g),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(G.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(q.x,{children:"Follow Emacs by..."}),(0,l.jsxs)(K.v2,{placement:"right",children:[(0,l.jsx)(K.j2,{as:W.z,rightIcon:(0,l.jsx)(P.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(q.x,{children:x.follow[0].toUpperCase()+x.follow.slice(1)})}),(0,l.jsxs)(J.h,{children:[" ",(0,l.jsxs)(K.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(K.sN,{onClick:function(){return p(oe(oe({},x),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,l.jsx)(K.sN,{onClick:function(){return p(oe(oe({},x),{},{follow:"local"}))},children:"Opening the local graph"}),(0,l.jsx)(K.sN,{onClick:function(){return p(oe(oe({},x),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,l.jsx)(ae,{label:"Zoom speed",value:x.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return p(oe(oe({},x),{},{zoomSpeed:e}))}}),(0,l.jsx)(ae,{label:"Zoom padding",value:x.zoomPadding,min:0,max:400,step:1,onChange:function(e){return p(oe(oe({},x),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})})]})]})})]}):(0,l.jsx)(j.xu,{position:"absolute",zIndex:"overlay",marginTop:10,marginLeft:10,display:y?"none":"block",children:(0,l.jsx)(V.h,{variant:"ghost","aria-label":"Settings",icon:(0,l.jsx)(T.e,{}),onClick:function(){return k(!0)}})})},se=function(e){var n=e.infoText;return(0,l.jsx)(j.xu,{paddingLeft:"1",children:(0,l.jsx)(M.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,l.jsx)(B.h,{})})})},ae=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,s=void 0===o?.1:o,a=e.value,c=void 0===a?1:a,u=(0,D.Z)(e,["min","max","step","value"]),h=u.onChange,g=u.label,f=u.infoText,x=(0,d.useContext)(re.N).highlightColor;return(0,l.jsxs)(j.xu,{children:[(0,l.jsxs)(j.xu,{display:"flex",alignItems:"flex-end",children:[(0,l.jsx)(q.x,{children:g}),f&&(0,l.jsx)(se,{infoText:f})]}),(0,l.jsxs)(ee.iR,{value:c,onChange:h,min:t,max:i,step:s,children:[(0,l.jsx)(ee.Uj,{children:(0,l.jsx)(ee.Ms,{})}),(0,l.jsx)(M.u,{bg:x,label:c.toFixed(1),children:(0,l.jsx)(ee.gs,{bg:"white"})})]})]})},ce=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,l.jsxs)(j.xu,{paddingTop:2,children:[(0,l.jsxs)(j.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,l.jsxs)(j.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(q.x,{children:r}),i&&(0,l.jsx)(se,{infoText:i})]}),(0,l.jsx)(Q.r,{isChecked:!!n,onChange:t})]}),(0,l.jsx)(Y.U,{in:!!n,animateOpacity:!0,children:(0,l.jsx)(j.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]})},de=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visuals,o=e.visValue,s=e.setVisuals;return(0,l.jsxs)(G.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(q.x,{children:n}),(0,l.jsxs)(K.v2,{placement:"right",children:[(0,l.jsx)(K.j2,{as:W.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(P.v,{}),children:(0,l.jsx)(j.xu,{bgColor:o,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(J.h,{children:[" ",(0,l.jsxs)(K.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(K.sN,{onClick:function(){return s(oe(oe({},i),{},(0,a.Z)({},r,"")))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{height:6,width:6})}),t.map((function(e){return(0,l.jsx)(K.sN,{onClick:function(){return s(oe(oe({},i),{},(0,a.Z)({},r,e)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})},ue=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,s=r.map((function(e){return{value:e,label:e}})),c="blacklist"===o?"tagsBlacklist":"tagsWhitelist",u=(0,d.useState)(n[c].map((function(e){return{value:e,label:e}}))),h=u[0],g=u[1];return(0,l.jsx)(ne.CUIAutoComplete,{items:s,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t(oe(oe({},n),{},(0,a.Z)({},c,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},he=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),s=(0,d.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],u=s[1];return(0,l.jsxs)(j.xu,{children:[(0,l.jsx)(ne.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(u(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,l.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,l.jsxs)(G.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,l.jsx)(j.xu,{width:"100%",children:(0,l.jsx)(q.x,{fontWeight:"bold",children:e})}),(0,l.jsxs)(K.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(K.j2,{as:W.z,colorScheme:"",color:"black",children:(0,l.jsx)(j.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(J.h,{children:[" ",(0,l.jsx)(K.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,l.jsx)(K.sN,{onClick:function(){return r(oe(oe({},t),{},(0,a.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(j.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,l.jsx)(V.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,l.jsx)(A.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),u(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},ge=t(49065),fe=t(94030),xe=t(55830),pe=t(46617),je=t(50862),me=t(68928),ve=function(e){e.background;var n=e.node,t=(e.nodeType,e.coordinates),r=e.handleLocal,i=e.menuClose,o=e.scope,s=e.openNodeInEmacs,a=e.deleteNodeInEmacs,c=e.createNodeInEmacs,u=(0,m.q)(),h=u.isOpen,g=u.onOpen,f=u.onClose;(0,d.useRef)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(j.xu,{position:"absolute",zIndex:"overlay",left:t[0]+10,top:t[1]-10,padding:5,children:(0,l.jsx)(K.v2,{closeOnBlur:!1,defaultIsOpen:!0,onClose:function(){return i()},children:(0,l.jsxs)(K.qy,{zIndex:"overlay",bgColor:"alt.100",borderColor:"gray.500",maxWidth:"xs",children:[n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_.X,{size:"sm",isTruncated:!0,px:3,py:1,children:n.title}),(0,l.jsx)(K.R,{borderColor:"gray.500"})]}),0!==o.nodeIds.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.sN,{onClick:function(){return r(n,"add")},icon:(0,l.jsx)(fe.I,{}),children:"Expand local graph at node"}),(0,l.jsx)(K.sN,{onClick:function(){return r(n,"replace")},icon:(0,l.jsx)(xe.O,{}),children:"Open local graph for this node"})]}),null!==n&&void 0!==n&&n.properties.FILELESS?(0,l.jsx)(K.sN,{icon:(0,l.jsx)(je.d,{}),onClick:function(){return c(n)},children:"Create node"}):(0,l.jsx)(K.sN,{icon:(0,l.jsx)(pe.d,{}),onClick:function(){return s(n)},children:"Open in Emacs"}),(null===n||void 0===n?void 0:n.properties.ROAM_REFS)&&(0,l.jsx)(K.sN,{icon:(0,l.jsx)(me.h,{}),children:"Open in Zotero"}),0===o.nodeIds.length&&(0,l.jsx)(K.sN,{icon:(0,l.jsx)(xe.O,{}),onClick:function(){return r(n,"replace")},children:"Open local graph"}),0===(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(K.sN,{closeOnSelect:!1,icon:(0,l.jsx)(A.p,{color:"red.500"}),color:"red.500",onClick:g,children:"Permenantly delete note"})]})})}),(0,l.jsxs)(ge.u_,{isCentered:!0,isOpen:h,onClose:f,children:[(0,l.jsx)(ge.ZA,{}),(0,l.jsxs)(ge.hz,{zIndex:"popover",children:[(0,l.jsx)(ge.xB,{children:"Delete node?"}),(0,l.jsx)(ge.ol,{}),(0,l.jsx)(ge.fe,{children:(0,l.jsxs)(U.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,l.jsx)(q.x,{children:"This will permanently delete your note:"}),(0,l.jsx)(q.x,{fontWeight:"bold",children:null===n||void 0===n?void 0:n.title}),0!==(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(q.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,l.jsx)(q.x,{children:"Are you sure you want to do continue?"})]})}),(0,l.jsxs)(ge.mz,{children:[(0,l.jsx)(W.z,{mr:3,onClick:function(){console.log("closing"),f(),i()},children:"Cancel"}),(0,l.jsx)(W.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),a(n),f(),i()},children:"Delete node"})]})]})]})]})},be=t(31122),Ce=t(22003);function ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ke(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var o=V.current,l=ne.current,a=te.current,c=null!==(t=B.current[n])&&void 0!==t?t:[],d=Object.fromEntries([n].concat((0,s.Z)(c.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return console.log(l),l.nodeIds.length&&(console.log("emptying"),console.log("scope "+l.nodeIds),ee({nodeIds:[]})),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return d[e.id]}))}),50);if(!l.nodeIds.length)return ee({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50);if("add"!==a.localSame)return ee({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50);if(!l.nodeIds.includes(n)||!l.nodeIds.some((function(e){return d[e]})))return ee({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,r)}),50);ee((function(e){return ke(ke({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n])})})),setTimeout((function(){return o.zoomToFit(r,i,(function(e){return d[e.id]}))}),50)}};return(0,d.useEffect)((function(){ie.current=new Ce.Z("ws://localhost:35903"),ie.current.addEventListener("open",(function(e){console.log("Connection with Emacs established")})),ie.current.addEventListener("message",(function(e){V.current;var n=te.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t=M.current,r=P.current;B.current,A.current=null!==(n=e.tags)&&void 0!==n?n:[];var i=e.nodes.reduce((function(e,n){var t;return ke(ke({},e),{},(0,a.Z)({},n.file,[].concat((0,s.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),o=Object.keys(i).flatMap((function(e){var n,t=null!==(n=i[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));P.current=Object.fromEntries(e.nodes.map((function(e){return[e.id,e]})));var l=[].concat((0,s.Z)(e.links),(0,s.Z)(o)),d=[],u=l.map((function(e){var n=e.source,t=e.target;return P.current[n]?P.current[t]?e:(d.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0}),ke(ke({},e),{},{type:"bad"})):(d.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0}),ke(ke({},e),{},{type:"bad"}))}));P.current=ke(ke({},P.current),Object.fromEntries(d.map((function(e){return[e.id,e]})))),B.current=u.reduce((function(e,n){var t,r,i;return ke(ke({},e),{},(i={},(0,a.Z)(i,n.source,[].concat((0,s.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,a.Z)(i,n.target,[].concat((0,s.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var h={nodes:[].concat((0,s.Z)(e.nodes),d),links:u};if(!t.nodes.length){var g=JSON.parse(JSON.stringify(h));return console.log(g),M.current=g,void C(g)}var f=[].concat((0,s.Z)(t.nodes.map((function(e){var n,t=null!==(n=P.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;if(t)return ke(ke({},e),t)}))),(0,s.Z)(Object.keys(P.current).filter((function(e){return!r[e]})).map((function(e){return console.log(e),P.current[e]})))),x=f.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return ke(ke({},e),{},(0,a.Z)({},r,t))}),{});console.log(f),console.log(x);var p=u.map((function(e){var n=Oe(e),t=(0,c.Z)(n,2),r=t[0],i=t[1];return ke(ke({},e),{},{source:f[x[r]],target:f[x[i]]})}));V.current,C({nodes:f,links:p})}(t.data);case"theme":return W(t.data);case"command":switch(t.data.commandName){case"local":var r=D.zoomSpeed,i=D.zoomPadding;oe("local",t.data.id,r,i),w(t.data.id);break;case"zoom":var o,l,d=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,u=(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.padding)||n.zoomPadding;oe("zoom",t.data.id,d,u),w(t.data.id);break;case"follow":oe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),w(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),b?(0,l.jsxs)(j.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",overflow:"hidden",children:[(0,l.jsx)(le,ke(ke({},{physics:t,setPhysics:r,threeDim:U,setThreeDim:G,filter:h,setFilter:g,visuals:p,setVisuals:m,mouse:Z,setMouse:H,behavior:D,setBehavior:T,tagColors:K,setTagColors:J}),{},{tags:A.current})),(0,l.jsx)(j.xu,{position:"absolute",alignItems:"top",overflow:"hidden",children:(0,l.jsx)(ze,ke({ref:V,nodeById:P.current,linksByNodeId:B.current,webSocket:ie.current},{physics:t,graphData:b,threeDim:U,emacsNodeId:k,filter:h,visuals:p,behavior:D,mouse:Z,scope:$,setScope:ee,tagColors:K}))})]}):null}var ze=(0,d.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,u=e.threeDim,h=e.linksByNodeId,v=e.filter,b=e.emacsNodeId,C=e.nodeById,y=e.visuals,k=e.behavior,w=e.mouse,I=e.scope,L=e.setScope,O=e.webSocket,N=e.tagColors,z=(0,f.iP)(),D=(0,c.Z)(z,2),T=D[0],E=D[1],F=(0,d.useState)(null),Z=F[0],H=F[1],P=(0,p.useTheme)(),B=(0,d.useContext)(re.N).emacsTheme,A=function(e,n){I.nodeIds.includes(e.id)||L("replace"!==n?function(n){return ke(ke({},n),{},{nodeIds:[].concat((0,s.Z)(n.nodeIds),[e.id])})}:{nodeIds:[e.id]})},V=function(e,n){O.send(JSON.stringify({command:e,data:n}))},M=function(e){V("open",{id:e.id})},W=function(e,n){switch(e){case w.local:A(n,k.localSame);break;case w.follow:M(n)}},X=(0,d.useRef)(null);(0,d.useEffect)((function(){b&&H(C[b])}),[b]),X.current=Z;var _=(0,d.useMemo)((function(){if(!X.current)return{};var e=h[X.current.id];return e?Object.fromEntries([X.current.id].concat((0,s.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[X.current,h]),U=(0,d.useRef)({}),G=((0,d.useRef)({}),(0,d.useMemo)((function(){var e;U.current={};var n=null===r||void 0===r||null===(e=r.nodes)||void 0===e?void 0:e.filter((function(e){if(e){var n=e;return v.tagsBlacklist.length&&v.tagsBlacklist.some((function(e){return n.tags.indexOf(e)>-1}))||v.tagsWhitelist.length>0&&!v.tagsWhitelist.some((function(e){return n.tags.indexOf(e)>-1}))||v.filelessCites&&n.properties.FILELESS?(U.current=ke(ke({},U.current),{},(0,a.Z)({},n.id,n)),!1):!v.bad||!n.properties.bad||(U.current=ke(ke({},U.current),{},(0,a.Z)({},n.id,n)),!1)}})).filter((function(e){var n,t=(null!==(n=h[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!U.current[e.source]&&!U.current[e.target]}));return!v.orphans||(v.parents?0!==t.length:0!==t.length&&t.some((function(e){return!["parent"].includes(e.type)})))})),t=n.map((function(e){return e.id}));return{filteredNodes:n,filteredLinks:r.links.filter((function(e){var n=Oe(e),r=(0,c.Z)(n,2),i=r[0],o=r[1];if(v.bad||v.tagsBlacklist.length||v.tagsWhitelist.length||v.filelessCites)return t.includes(i)&&t.includes(o);var l=e;return v.parents||"parent"!==l.type}))}}),[v,r])),q=(0,d.useMemo)((function(){var e=G.filteredNodes.filter((function(e){var n,t=null!==(n=h[e.id])&&void 0!==n?n:[];return I.nodeIds.includes(e.id)||t.some((function(e){return I.nodeIds.includes(e.source)||I.nodeIds.includes(e.target)}))})),n=e.map((function(e){return e.id})),t=G.filteredLinks.filter((function(e){var t=Oe(e),r=(0,c.Z)(t,2),i=r[0],o=r[1];return n.includes(i)&&n.includes(o)}));return 0===I.nodeIds.length?{nodes:G.filteredNodes,links:G.filteredLinks}:{nodes:e,links:t}}),[v,I,r]);(0,d.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,we;case 3:o=e.sent,t.gravityOn?(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),u&&r.d3Force("z",o.forceZ().strength(t.gravity))):(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)),t.centering?r.d3Force("center",o.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t]),(0,d.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t]);var Q=(0,d.useRef)(0),K=(0,d.useState)(1),J=K[0],Y=K[1],$=(0,x._7)((function(e){return Y(e)}),{duration:y.animationSpeed,algorithm:S[y.algorithmName]}),ee=(0,c.Z)($,2),ne=ee[0],te=ee[1],ie=(0,x._7)((function(e){return Y(Math.min(J,-1*(e-1)))}),{duration:y.animationSpeed,algorithm:S[y.algorithmName]}),oe=(0,c.Z)(ie,2),le=oe[0],se=oe[1],ae=(0,d.useRef)(null);(0,d.useEffect)((function(){if(Z&&(ae.current=Z),!y.highlightAnim)return Y(Z?1:0);Z?ne():(te(),J>.5?le():Y(0))}),[Z]);var ce=function(e){if(P)return e.split(".").reduce((function(e,n){return e[n]}),P.colors)},de=(0,d.useMemo)((function(){return Object.fromEntries(R.map((function(e){var n=ce(e),t=R.map((function(e){return[e,g.Z(n,ce(e))]}));return[e,Object.fromEntries(t)]})))}),[B]),ue=(0,d.useMemo)((function(){var e,n,t,r=null!==(e=h[null===(n=ae.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=ae.current)||void 0===t?void 0:t.id].concat((0,s.Z)(r.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})))}),[JSON.stringify(Z),ae.current]),he=function(e){var n,t,r,i,o,l,s=null!==(n=null===(t=h[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0,a=s?null===(r=h[e])||void 0===r?void 0:r.filter((function(e){return"parent"===e.type})).length:0,c=v.parents?s:s-a;return y.nodeColorScheme[(i=c,o=0,l=y.nodeColorScheme.length-1,Math.min(Math.max(i,o),l))]},ge=function(e,n){return h[e]>h[n]?he(e):he(n)},fe=function(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"},xe=(0,d.useMemo)((function(){return ce(y.labelTextColor)}),[y.labelTextColor,B]),pe=(0,d.useMemo)((function(){return ce(y.labelBackgroundColor)}),[y.labelBackgroundColor,B]),je=function(e){var n,t=null!==(n=h[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*y.nodeSizeLinks-(v.parents?0:r);return 1===y.highlightNodeSize?i:i*(_[e.id]||ue[e.id]?1+J*(y.highlightNodeSize-1):1)},me=(0,d.useState)(!1),Ce=me[0],ye=me[1],Le=(0,m.q)(),Ne=Le.isOpen,ze=Le.onOpen,De=Le.onClose,Te=(0,d.useState)(null),Ee=Te[0],Fe=Te[1],Ze=(0,d.useState)([0,0]),He=Ze[0],Pe=Ze[1],Be={graphData:q,width:T,height:E,backgroundColor:P.colors.gray[y.backgroundColor],nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e){_.length;var n=_[e.id]||ue[e.id];if(y.emacsNodeColor&&e.id===b)return ce(y.emacsNodeColor);if(N&&e.tags.some((function(e){return N[e]}))){var t=N[e.tags.filter((function(e){return N[e]}))[0]];return de[t][y.backgroundColor](y.highlightFade*J)}return y.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?n?ce(y.citeNodeColor):de[y.citeNodeColor][y.backgroundColor](y.highlightFade*J):y.refNodeColor&&e.properties.ROAM_REFS?n?ce(y.refNodeColor):de[y.refNodeColor][y.backgroundColor](y.highlightFade*J):n?y.nodeHighlight?de[he(e.id)][y.nodeHighlight](J):ce(he(e.id)):de[he(e.id)][y.backgroundColor](y.highlightFade*J)}(e)},nodeRelSize:y.nodeRel,nodeVal:function(e){return je(e)},nodeCanvasObject:function(e,n,t){if(e&&!Ce&&y.labels){var r=ue[e.id];if(!(t<=y.labelScale||1===y.labels)||_[e.id]||r){var i=e.title,o=i.substring(0,Math.min(i.length,40)),l=14/(.75*Math.min(Math.max(.5,t),3)),a=[1.1*n.measureText(o).width,l].map((function(e){return e+.5*l})),c=Math.min(3*(t-y.labelScale)/y.labelScale,1),d=function(){return 1===y.labels||t<=y.labelScale?J:_[e.id]||ue[e.id]?Math.max(c,J):1*c*(-1*(y.highlightFade*J-1))},u=8*Math.cbrt(je(e)*y.nodeRel);if(y.labelBackgroundColor&&y.labelBackgroundOpacity){var h=d()*y.labelBackgroundOpacity,g=fe(pe,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-a[0]/2,e.y-a[1]/2+u].concat((0,s.Z)(a)))}var f=d();n.textAlign="center",n.textBaseline="middle";var x=fe(xe,f);n.fillStyle=x,n.font="".concat(l,"px Sans-Serif"),n.fillText(o,e.x,e.y+u)}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:y.particles?y.particlesNumber:void 0,linkDirectionalArrowLength:y.arrows?y.arrowsLength:void 0,linkDirectionalArrowRelPos:y.arrowsPos,linkDirectionalArrowColor:y.arrowsColor?function(e){return ce(y.arrowsColor)}:void 0,linkColor:function(e){var n="object"===typeof e.source?e.source.id:e.source,t="object"===typeof e.target?e.target.id:e.target,r=Re(e,X.current),i=Re(e,ae.current),o=r||i,l=e;return y.refLinkColor&&"ref"===l.type?o&&(y.refLinkHighlightColor||y.linkHighlight)?de[y.refLinkColor][y.refLinkHighlightColor||y.linkHighlight](J):de[y.refLinkColor][y.backgroundColor](y.highlightFade*J):y.citeLinkColor&&"cite"===l.type?o&&(y.citeLinkHighlightColor||y.linkHighlight)?de[y.citeLinkColor][y.citeLinkHighlightColor||y.linkHighlight](J):de[y.citeLinkColor][y.backgroundColor](y.highlightFade*J):function(e,n,t){if(!y.linkHighlight&&!y.linkColorScheme&&!t){var r=ge(e,n);return ce(r)}if(!t&&!y.linkColorScheme){var i=ge(e,n);return de[i][y.backgroundColor](y.highlightFade*J)}if(!t)return de[y.linkColorScheme][y.backgroundColor](y.highlightFade*J);if(!y.linkHighlight&&!y.linkColorScheme){var o=ge(e,n);return ce(o)}return y.linkHighlight?y.linkColorScheme?de[y.linkColorScheme][y.linkHighlight](J):de[ge(e,n)][y.linkHighlight](J):ce(y.linkColorScheme)}(n,t,o)},linkWidth:function(e){if(1===y.highlightLinkSize)return y.linkWidth;var n=Re(e,X.current),t=Re(e,ae.current);return n||t?y.linkWidth*(1+J*(y.highlightLinkSize-1)):y.linkWidth},linkDirectionalParticleWidth:y.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e;De();var r=n.timeStamp-Q.current<400;return Q.current=n.timeStamp,W(r?"double":"click",t)},onBackgroundClick:function(){De(),H(null),0!==I.nodeIds.length&&L((function(e){return ke(ke({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){y.highlight&&(Z||(se(),Y(0)),H(e))},onNodeRightClick:function(e,n){!function(e,n){Pe([n.pageX,n.pageY]),Fe(e),ze()}(e,n)},onNodeDrag:function(e){De(),H(e),ye(!0)},onNodeDragEnd:function(e){H(null),ye(!1)}};return(0,l.jsxs)(j.xu,{overflow:"hidden",children:[Ne&&(0,l.jsx)(ve,{scope:I,node:Ee,nodeType:null===Ee||void 0===Ee?void 0:Ee.id,background:!1,coordinates:He,handleLocal:A,menuClose:De,openNodeInEmacs:M,deleteNodeInEmacs:function(e){0===e.level&&V("delete",{id:e.id,file:e.file})},createNodeInEmacs:function(e){V("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS})}}),u?(0,l.jsx)(Ie,ke(ke({ref:n},Be),{},{nodeThreeObjectExtend:!0,backgroundColor:P.colors.white,nodeOpacity:y.nodeOpacity,nodeResolution:y.nodeResolution,linkOpacity:y.linkOpacity,nodeThreeObject:function(e){if(y.labels&&(!(y.labels<3)||_[e.id])){var n=new be.Z(e.title.substring(0,40));return n.color=ce(y.labelTextColor),n.backgroundColor=ce(y.labelBackgroundColor),n.padding=2,n.textHeight=8,n}}})):(0,l.jsx)(Se,ke(ke({ref:n},Be),{},{linkLineDash:function(e){var n=e;return y.citeDashes&&"cite"===n.type?[y.citeDashLength,y.citeGapLength]:y.refDashes&&"ref"==n.type?[y.refDashLength,y.refGapLength]:null}}))]})}));function Re(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(96834)}])}},function(e){e.O(0,[774,737,446,238,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file -- cgit v1.2.3