From bc0f6b41409e9e414704e1b613cb271e0c019cc7 Mon Sep 17 00:00:00 2001 From: Ben King <9087625+benfdking@users.noreply.github.com> Date: Thu, 3 Jul 2025 16:28:39 +0100 Subject: [PATCH] chore(vscode): delete unused components --- .../additional-components.ts | 162 - .../components-additional/tbk-components.js | 15667 ---------------- 2 files changed, 15829 deletions(-) delete mode 100644 vscode/react/src/components-additional/additional-components.ts delete mode 100644 vscode/react/src/components-additional/tbk-components.js diff --git a/vscode/react/src/components-additional/additional-components.ts b/vscode/react/src/components-additional/additional-components.ts deleted file mode 100644 index 843c01c586..0000000000 --- a/vscode/react/src/components-additional/additional-components.ts +++ /dev/null @@ -1,162 +0,0 @@ -// @ts-nocheck -import React from 'react' -import { createComponent } from '@lit/react' - -import { - ResizeObserver, - ModelName, - SourceListSection, - SourceListItem, - SourceList, - Badge, - Metadata, - MetadataItem, - MetadataSection, - Scroll, - SplitPane, - Details, - Datetime, - Tab, - Tabs, - TabPanel, - TextBlock, - Information, - Icon, - Button, - Tooltip, -} from '@/utils/tbk-components' - -Button.defineAs('tbk-button') -Icon.defineAs('tbk-icon') -Tooltip.defineAs('tbk-tooltip') -Information.defineAs('tbk-information') -TextBlock.defineAs('tbk-text-block') -Datetime.defineAs('tbk-datetime') -Details.defineAs('tbk-details') -Tab.defineAs('tbk-tab') -TabPanel.defineAs('tbk-tab-panel') -Tabs.defineAs('tbk-tabs') -SplitPane.defineAs('tbk-split-pane') -Scroll.defineAs('tbk-scroll') -MetadataSection.defineAs('tbk-metadata-section') -MetadataItem.defineAs('tbk-metadata-item') -Metadata.defineAs('tbk-metadata') -Badge.defineAs('tbk-badge') -ModelName.defineAs('tbk-model-name') -ResizeObserver.defineAs('tbk-resize-observer') -SourceList.defineAs('tbk-ui-source-list') -SourceListItem.defineAs('tbk-ui-source-list-item') -SourceListSection.defineAs('tbk-ui-source-list-section') - -export const TBKButton = createComponent({ - tagName: 'tbk-button', - elementClass: Button, - react: React, -}) as any -export const TBKIcon = createComponent({ - tagName: 'tbk-icon', - elementClass: Icon, - react: React, -}) as any -export const TBKTooltip = createComponent({ - tagName: 'tbk-tooltip', - elementClass: Tooltip, - react: React, -}) as any -export const TBKInformation = createComponent({ - tagName: 'tbk-information', - elementClass: Information, - react: React, -}) as any -export const TBKTextBlock = createComponent({ - tagName: 'tbk-text-block', - elementClass: TextBlock, - react: React, -}) as any -export const TBKDatetime = createComponent({ - tagName: 'tbk-datetime', - elementClass: Datetime, - react: React, -}) as any -export const TBKDetails = createComponent({ - tagName: 'tbk-details', - elementClass: Details, - react: React, -}) as any -export const TBKTabs = createComponent({ - tagName: 'tbk-tabs', - elementClass: Tabs, - react: React, -}) as any -export const TBKTab = createComponent({ - tagName: 'tbk-tab', - elementClass: Tab, - react: React, -}) as any -export const TBKTabPanel = createComponent({ - tagName: 'tbk-tab-panel', - elementClass: TabPanel, - react: React, -}) as any -export const TBKSplitPane = createComponent({ - tagName: 'tbk-split-pane', - elementClass: SplitPane, - react: React, - events: { - onChange: 'sl-reposition', - }, -}) as any -export const TBKScroll = createComponent({ - tagName: 'tbk-scroll', - elementClass: Scroll, - react: React, -}) as any -export const TBKMetadataSection = createComponent({ - tagName: 'tbk-metadata-section', - elementClass: MetadataSection, - react: React, -}) as any -export const TBKMetadataItem = createComponent({ - tagName: 'tbk-metadata-item', - elementClass: MetadataItem, - react: React, -}) as any -export const TBKMetadata = createComponent({ - tagName: 'tbk-metadata', - elementClass: Metadata, - react: React, -}) as any -export const TBKBadge = createComponent({ - tagName: 'tbk-badge', - elementClass: Badge, - react: React, -}) as any -export const TBKModelName = createComponent({ - tagName: 'tbk-model-name', - elementClass: ModelName, - react: React, -}) as any -export const TBKResizeObserver = createComponent({ - tagName: 'tbk-resize-observer', - elementClass: ResizeObserver, - react: React, -}) as any - -export const TBKSourceList = createComponent({ - tagName: 'tbk-ui-source-list', - elementClass: SourceList, - react: React, - events: { - onChange: 'change', - }, -}) as any -export const TBKSourceListItem = createComponent({ - tagName: 'tbk-ui-source-list-item', - elementClass: SourceListItem, - react: React, -}) as any -export const TBKSourceListSection = createComponent({ - tagName: 'tbk-ui-source-list-section', - elementClass: SourceListSection, - react: React, -}) as any diff --git a/vscode/react/src/components-additional/tbk-components.js b/vscode/react/src/components-additional/tbk-components.js deleted file mode 100644 index f0e8d4fff0..0000000000 --- a/vscode/react/src/components-additional/tbk-components.js +++ /dev/null @@ -1,15667 +0,0 @@ -var D0 = Object.defineProperty -var B0 = (n, r, i) => - r in n - ? D0(n, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) - : (n[r] = i) -var Y = (n, r, i) => B0(n, typeof r != 'symbol' ? r + '' : r, i) -var ca = '' -function su(n) { - ca = n -} -function U0(n = '') { - if (!ca) { - const r = [...document.getElementsByTagName('script')], - i = r.find(a => a.hasAttribute('data-shoelace')) - if (i) su(i.getAttribute('data-shoelace')) - else { - const a = r.find( - d => - /shoelace(\.min)?\.js($|\?)/.test(d.src) || - /shoelace-autoloader(\.min)?\.js($|\?)/.test(d.src), - ) - let l = '' - a && (l = a.getAttribute('src')), su(l.split('/').slice(0, -1).join('/')) - } - } - return ca.replace(/\/$/, '') + (n ? `/${n.replace(/^\//, '')}` : '') -} -var N0 = { - name: 'default', - resolver: n => U0(`assets/icons/${n}.svg`), - }, - F0 = N0, - au = { - caret: ` - - - - `, - check: ` - - - - - - - - - - - `, - 'chevron-down': ` - - - - `, - 'chevron-left': ` - - - - `, - 'chevron-right': ` - - - - `, - copy: ` - - - - `, - eye: ` - - - - - `, - 'eye-slash': ` - - - - - - `, - eyedropper: ` - - - - `, - 'grip-vertical': ` - - - - `, - indeterminate: ` - - - - - - - - - - `, - 'person-fill': ` - - - - `, - 'play-fill': ` - - - - `, - 'pause-fill': ` - - - - `, - radio: ` - - - - - - - - `, - 'star-fill': ` - - - - `, - 'x-lg': ` - - - - `, - 'x-circle-fill': ` - - - - `, - }, - H0 = { - name: 'system', - resolver: n => - n in au ? `data:image/svg+xml,${encodeURIComponent(au[n])}` : '', - }, - W0 = H0, - ho = [F0, W0], - fo = [] -function q0(n) { - fo.push(n) -} -function Y0(n) { - fo = fo.filter(r => r !== n) -} -function lu(n) { - return ho.find(r => r.name === n) -} -function vh(n, r) { - G0(n), - ho.push({ - name: n, - resolver: r.resolver, - mutator: r.mutator, - spriteSheet: r.spriteSheet, - }), - fo.forEach(i => { - i.library === n && i.setIcon() - }) -} -function G0(n) { - ho = ho.filter(r => r.name !== n) -} -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const ao = globalThis, - fa = - ao.ShadowRoot && - (ao.ShadyCSS === void 0 || ao.ShadyCSS.nativeShadow) && - 'adoptedStyleSheets' in Document.prototype && - 'replace' in CSSStyleSheet.prototype, - pa = Symbol(), - cu = /* @__PURE__ */ new WeakMap() -let mh = class { - constructor(r, i, a) { - if (((this._$cssResult$ = !0), a !== pa)) - throw Error( - 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.', - ) - ;(this.cssText = r), (this.t = i) - } - get styleSheet() { - let r = this.o - const i = this.t - if (fa && r === void 0) { - const a = i !== void 0 && i.length === 1 - a && (r = cu.get(i)), - r === void 0 && - ((this.o = r = new CSSStyleSheet()).replaceSync(this.cssText), - a && cu.set(i, r)) - } - return r - } - toString() { - return this.cssText - } -} -const dt = n => new mh(typeof n == 'string' ? n : n + '', void 0, pa), - en = (n, ...r) => { - const i = - n.length === 1 - ? n[0] - : r.reduce( - (a, l, d) => - a + - (f => { - if (f._$cssResult$ === !0) return f.cssText - if (typeof f == 'number') return f - throw Error( - "Value passed to 'css' function must be a 'css' function result: " + - f + - ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.", - ) - })(l) + - n[d + 1], - n[0], - ) - return new mh(i, n, pa) - }, - K0 = (n, r) => { - if (fa) - n.adoptedStyleSheets = r.map(i => - i instanceof CSSStyleSheet ? i : i.styleSheet, - ) - else - for (const i of r) { - const a = document.createElement('style'), - l = ao.litNonce - l !== void 0 && a.setAttribute('nonce', l), - (a.textContent = i.cssText), - n.appendChild(a) - } - }, - uu = fa - ? n => n - : n => - n instanceof CSSStyleSheet - ? (r => { - let i = '' - for (const a of r.cssRules) i += a.cssText - return dt(i) - })(n) - : n -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const { - is: V0, - defineProperty: X0, - getOwnPropertyDescriptor: Z0, - getOwnPropertyNames: j0, - getOwnPropertySymbols: J0, - getPrototypeOf: Q0, - } = Object, - On = globalThis, - hu = On.trustedTypes, - ty = hu ? hu.emptyScript : '', - Js = On.reactiveElementPolyfillSupport, - Qr = (n, r) => n, - po = { - toAttribute(n, r) { - switch (r) { - case Boolean: - n = n ? ty : null - break - case Object: - case Array: - n = n == null ? n : JSON.stringify(n) - } - return n - }, - fromAttribute(n, r) { - let i = n - switch (r) { - case Boolean: - i = n !== null - break - case Number: - i = n === null ? null : Number(n) - break - case Object: - case Array: - try { - i = JSON.parse(n) - } catch { - i = null - } - } - return i - }, - }, - ga = (n, r) => !V0(n, r), - du = { - attribute: !0, - type: String, - converter: po, - reflect: !1, - hasChanged: ga, - } -Symbol.metadata ?? (Symbol.metadata = Symbol('metadata')), - On.litPropertyMetadata ?? - (On.litPropertyMetadata = /* @__PURE__ */ new WeakMap()) -class vr extends HTMLElement { - static addInitializer(r) { - this._$Ei(), (this.l ?? (this.l = [])).push(r) - } - static get observedAttributes() { - return this.finalize(), this._$Eh && [...this._$Eh.keys()] - } - static createProperty(r, i = du) { - if ( - (i.state && (i.attribute = !1), - this._$Ei(), - this.elementProperties.set(r, i), - !i.noAccessor) - ) { - const a = Symbol(), - l = this.getPropertyDescriptor(r, a, i) - l !== void 0 && X0(this.prototype, r, l) - } - } - static getPropertyDescriptor(r, i, a) { - const { get: l, set: d } = Z0(this.prototype, r) ?? { - get() { - return this[i] - }, - set(f) { - this[i] = f - }, - } - return { - get() { - return l == null ? void 0 : l.call(this) - }, - set(f) { - const v = l == null ? void 0 : l.call(this) - d.call(this, f), this.requestUpdate(r, v, a) - }, - configurable: !0, - enumerable: !0, - } - } - static getPropertyOptions(r) { - return this.elementProperties.get(r) ?? du - } - static _$Ei() { - if (this.hasOwnProperty(Qr('elementProperties'))) return - const r = Q0(this) - r.finalize(), - r.l !== void 0 && (this.l = [...r.l]), - (this.elementProperties = new Map(r.elementProperties)) - } - static finalize() { - if (this.hasOwnProperty(Qr('finalized'))) return - if ( - ((this.finalized = !0), - this._$Ei(), - this.hasOwnProperty(Qr('properties'))) - ) { - const i = this.properties, - a = [...j0(i), ...J0(i)] - for (const l of a) this.createProperty(l, i[l]) - } - const r = this[Symbol.metadata] - if (r !== null) { - const i = litPropertyMetadata.get(r) - if (i !== void 0) for (const [a, l] of i) this.elementProperties.set(a, l) - } - this._$Eh = /* @__PURE__ */ new Map() - for (const [i, a] of this.elementProperties) { - const l = this._$Eu(i, a) - l !== void 0 && this._$Eh.set(l, i) - } - this.elementStyles = this.finalizeStyles(this.styles) - } - static finalizeStyles(r) { - const i = [] - if (Array.isArray(r)) { - const a = new Set(r.flat(1 / 0).reverse()) - for (const l of a) i.unshift(uu(l)) - } else r !== void 0 && i.push(uu(r)) - return i - } - static _$Eu(r, i) { - const a = i.attribute - return a === !1 - ? void 0 - : typeof a == 'string' - ? a - : typeof r == 'string' - ? r.toLowerCase() - : void 0 - } - constructor() { - super(), - (this._$Ep = void 0), - (this.isUpdatePending = !1), - (this.hasUpdated = !1), - (this._$Em = null), - this._$Ev() - } - _$Ev() { - var r - ;(this._$ES = new Promise(i => (this.enableUpdating = i))), - (this._$AL = /* @__PURE__ */ new Map()), - this._$E_(), - this.requestUpdate(), - (r = this.constructor.l) == null || r.forEach(i => i(this)) - } - addController(r) { - var i - ;(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(r), - this.renderRoot !== void 0 && - this.isConnected && - ((i = r.hostConnected) == null || i.call(r)) - } - removeController(r) { - var i - ;(i = this._$EO) == null || i.delete(r) - } - _$E_() { - const r = /* @__PURE__ */ new Map(), - i = this.constructor.elementProperties - for (const a of i.keys()) - this.hasOwnProperty(a) && (r.set(a, this[a]), delete this[a]) - r.size > 0 && (this._$Ep = r) - } - createRenderRoot() { - const r = - this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions) - return K0(r, this.constructor.elementStyles), r - } - connectedCallback() { - var r - this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), - this.enableUpdating(!0), - (r = this._$EO) == null || - r.forEach(i => { - var a - return (a = i.hostConnected) == null ? void 0 : a.call(i) - }) - } - enableUpdating(r) {} - disconnectedCallback() { - var r - ;(r = this._$EO) == null || - r.forEach(i => { - var a - return (a = i.hostDisconnected) == null ? void 0 : a.call(i) - }) - } - attributeChangedCallback(r, i, a) { - this._$AK(r, a) - } - _$EC(r, i) { - var d - const a = this.constructor.elementProperties.get(r), - l = this.constructor._$Eu(r, a) - if (l !== void 0 && a.reflect === !0) { - const f = ( - ((d = a.converter) == null ? void 0 : d.toAttribute) !== void 0 - ? a.converter - : po - ).toAttribute(i, a.type) - ;(this._$Em = r), - f == null ? this.removeAttribute(l) : this.setAttribute(l, f), - (this._$Em = null) - } - } - _$AK(r, i) { - var d - const a = this.constructor, - l = a._$Eh.get(r) - if (l !== void 0 && this._$Em !== l) { - const f = a.getPropertyOptions(l), - v = - typeof f.converter == 'function' - ? { fromAttribute: f.converter } - : ((d = f.converter) == null ? void 0 : d.fromAttribute) !== void 0 - ? f.converter - : po - ;(this._$Em = l), - (this[l] = v.fromAttribute(i, f.type)), - (this._$Em = null) - } - } - requestUpdate(r, i, a) { - if (r !== void 0) { - if ( - (a ?? (a = this.constructor.getPropertyOptions(r)), - !(a.hasChanged ?? ga)(this[r], i)) - ) - return - this.P(r, i, a) - } - this.isUpdatePending === !1 && (this._$ES = this._$ET()) - } - P(r, i, a) { - this._$AL.has(r) || this._$AL.set(r, i), - a.reflect === !0 && - this._$Em !== r && - (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(r) - } - async _$ET() { - this.isUpdatePending = !0 - try { - await this._$ES - } catch (i) { - Promise.reject(i) - } - const r = this.scheduleUpdate() - return r != null && (await r), !this.isUpdatePending - } - scheduleUpdate() { - return this.performUpdate() - } - performUpdate() { - var a - if (!this.isUpdatePending) return - if (!this.hasUpdated) { - if ( - (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), - this._$Ep) - ) { - for (const [d, f] of this._$Ep) this[d] = f - this._$Ep = void 0 - } - const l = this.constructor.elementProperties - if (l.size > 0) - for (const [d, f] of l) - f.wrapped !== !0 || - this._$AL.has(d) || - this[d] === void 0 || - this.P(d, this[d], f) - } - let r = !1 - const i = this._$AL - try { - ;(r = this.shouldUpdate(i)), - r - ? (this.willUpdate(i), - (a = this._$EO) == null || - a.forEach(l => { - var d - return (d = l.hostUpdate) == null ? void 0 : d.call(l) - }), - this.update(i)) - : this._$EU() - } catch (l) { - throw ((r = !1), this._$EU(), l) - } - r && this._$AE(i) - } - willUpdate(r) {} - _$AE(r) { - var i - ;(i = this._$EO) == null || - i.forEach(a => { - var l - return (l = a.hostUpdated) == null ? void 0 : l.call(a) - }), - this.hasUpdated || ((this.hasUpdated = !0), this.firstUpdated(r)), - this.updated(r) - } - _$EU() { - ;(this._$AL = /* @__PURE__ */ new Map()), (this.isUpdatePending = !1) - } - get updateComplete() { - return this.getUpdateComplete() - } - getUpdateComplete() { - return this._$ES - } - shouldUpdate(r) { - return !0 - } - update(r) { - this._$Ej && (this._$Ej = this._$Ej.forEach(i => this._$EC(i, this[i]))), - this._$EU() - } - updated(r) {} - firstUpdated(r) {} -} -;(vr.elementStyles = []), - (vr.shadowRootOptions = { mode: 'open' }), - (vr[Qr('elementProperties')] = /* @__PURE__ */ new Map()), - (vr[Qr('finalized')] = /* @__PURE__ */ new Map()), - Js == null || Js({ ReactiveElement: vr }), - (On.reactiveElementVersions ?? (On.reactiveElementVersions = [])).push( - '2.0.4', - ) -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const ti = globalThis, - go = ti.trustedTypes, - fu = go ? go.createPolicy('lit-html', { createHTML: n => n }) : void 0, - bh = '$lit$', - Tn = `lit$${Math.random().toFixed(9).slice(2)}$`, - yh = '?' + Tn, - ey = `<${yh}>`, - jn = document, - ni = () => jn.createComment(''), - ri = n => n === null || (typeof n != 'object' && typeof n != 'function'), - va = Array.isArray, - ny = n => - va(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == 'function', - Qs = `[ -\f\r]`, - Zr = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, - pu = /-->/g, - gu = />/g, - Gn = RegExp( - `>|${Qs}(?:([^\\s"'>=/]+)(${Qs}*=${Qs}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`, - 'g', - ), - vu = /'/g, - mu = /"/g, - _h = /^(?:script|style|textarea|title)$/i, - ry = - n => - (r, ...i) => ({ _$litType$: n, strings: r, values: i }), - X = ry(1), - Jn = Symbol.for('lit-noChange'), - Ft = Symbol.for('lit-nothing'), - bu = /* @__PURE__ */ new WeakMap(), - Vn = jn.createTreeWalker(jn, 129) -function wh(n, r) { - if (!va(n) || !n.hasOwnProperty('raw')) - throw Error('invalid template strings array') - return fu !== void 0 ? fu.createHTML(r) : r -} -const iy = (n, r) => { - const i = n.length - 1, - a = [] - let l, - d = r === 2 ? '' : r === 3 ? '' : '', - f = Zr - for (let v = 0; v < i; v++) { - const m = n[v] - let _, - k, - C = -1, - F = 0 - for (; F < m.length && ((f.lastIndex = F), (k = f.exec(m)), k !== null); ) - (F = f.lastIndex), - f === Zr - ? k[1] === '!--' - ? (f = pu) - : k[1] !== void 0 - ? (f = gu) - : k[2] !== void 0 - ? (_h.test(k[2]) && (l = RegExp('' - ? ((f = l ?? Zr), (C = -1)) - : k[1] === void 0 - ? (C = -2) - : ((C = f.lastIndex - k[2].length), - (_ = k[1]), - (f = k[3] === void 0 ? Gn : k[3] === '"' ? mu : vu)) - : f === mu || f === vu - ? (f = Gn) - : f === pu || f === gu - ? (f = Zr) - : ((f = Gn), (l = void 0)) - const T = f === Gn && n[v + 1].startsWith('/>') ? ' ' : '' - d += - f === Zr - ? m + ey - : C >= 0 - ? (a.push(_), m.slice(0, C) + bh + m.slice(C) + Tn + T) - : m + Tn + (C === -2 ? v : T) - } - return [ - wh( - n, - d + (n[i] || '') + (r === 2 ? '' : r === 3 ? '' : ''), - ), - a, - ] -} -class ii { - constructor({ strings: r, _$litType$: i }, a) { - let l - this.parts = [] - let d = 0, - f = 0 - const v = r.length - 1, - m = this.parts, - [_, k] = iy(r, i) - if ( - ((this.el = ii.createElement(_, a)), - (Vn.currentNode = this.el.content), - i === 2 || i === 3) - ) { - const C = this.el.content.firstChild - C.replaceWith(...C.childNodes) - } - for (; (l = Vn.nextNode()) !== null && m.length < v; ) { - if (l.nodeType === 1) { - if (l.hasAttributes()) - for (const C of l.getAttributeNames()) - if (C.endsWith(bh)) { - const F = k[f++], - T = l.getAttribute(C).split(Tn), - z = /([.?@])?(.*)/.exec(F) - m.push({ - type: 1, - index: d, - name: z[2], - strings: T, - ctor: - z[1] === '.' - ? sy - : z[1] === '?' - ? ay - : z[1] === '@' - ? ly - : wo, - }), - l.removeAttribute(C) - } else - C.startsWith(Tn) && - (m.push({ type: 6, index: d }), l.removeAttribute(C)) - if (_h.test(l.tagName)) { - const C = l.textContent.split(Tn), - F = C.length - 1 - if (F > 0) { - l.textContent = go ? go.emptyScript : '' - for (let T = 0; T < F; T++) - l.append(C[T], ni()), - Vn.nextNode(), - m.push({ type: 2, index: ++d }) - l.append(C[F], ni()) - } - } - } else if (l.nodeType === 8) - if (l.data === yh) m.push({ type: 2, index: d }) - else { - let C = -1 - for (; (C = l.data.indexOf(Tn, C + 1)) !== -1; ) - m.push({ type: 7, index: d }), (C += Tn.length - 1) - } - d++ - } - } - static createElement(r, i) { - const a = jn.createElement('template') - return (a.innerHTML = r), a - } -} -function _r(n, r, i = n, a) { - var f, v - if (r === Jn) return r - let l = a !== void 0 ? ((f = i._$Co) == null ? void 0 : f[a]) : i._$Cl - const d = ri(r) ? void 0 : r._$litDirective$ - return ( - (l == null ? void 0 : l.constructor) !== d && - ((v = l == null ? void 0 : l._$AO) == null || v.call(l, !1), - d === void 0 ? (l = void 0) : ((l = new d(n)), l._$AT(n, i, a)), - a !== void 0 ? ((i._$Co ?? (i._$Co = []))[a] = l) : (i._$Cl = l)), - l !== void 0 && (r = _r(n, l._$AS(n, r.values), l, a)), - r - ) -} -class oy { - constructor(r, i) { - ;(this._$AV = []), (this._$AN = void 0), (this._$AD = r), (this._$AM = i) - } - get parentNode() { - return this._$AM.parentNode - } - get _$AU() { - return this._$AM._$AU - } - u(r) { - const { - el: { content: i }, - parts: a, - } = this._$AD, - l = ((r == null ? void 0 : r.creationScope) ?? jn).importNode(i, !0) - Vn.currentNode = l - let d = Vn.nextNode(), - f = 0, - v = 0, - m = a[0] - for (; m !== void 0; ) { - if (f === m.index) { - let _ - m.type === 2 - ? (_ = new si(d, d.nextSibling, this, r)) - : m.type === 1 - ? (_ = new m.ctor(d, m.name, m.strings, this, r)) - : m.type === 6 && (_ = new cy(d, this, r)), - this._$AV.push(_), - (m = a[++v]) - } - f !== (m == null ? void 0 : m.index) && ((d = Vn.nextNode()), f++) - } - return (Vn.currentNode = jn), l - } - p(r) { - let i = 0 - for (const a of this._$AV) - a !== void 0 && - (a.strings !== void 0 - ? (a._$AI(r, a, i), (i += a.strings.length - 2)) - : a._$AI(r[i])), - i++ - } -} -class si { - get _$AU() { - var r - return ((r = this._$AM) == null ? void 0 : r._$AU) ?? this._$Cv - } - constructor(r, i, a, l) { - ;(this.type = 2), - (this._$AH = Ft), - (this._$AN = void 0), - (this._$AA = r), - (this._$AB = i), - (this._$AM = a), - (this.options = l), - (this._$Cv = (l == null ? void 0 : l.isConnected) ?? !0) - } - get parentNode() { - let r = this._$AA.parentNode - const i = this._$AM - return ( - i !== void 0 && - (r == null ? void 0 : r.nodeType) === 11 && - (r = i.parentNode), - r - ) - } - get startNode() { - return this._$AA - } - get endNode() { - return this._$AB - } - _$AI(r, i = this) { - ;(r = _r(this, r, i)), - ri(r) - ? r === Ft || r == null || r === '' - ? (this._$AH !== Ft && this._$AR(), (this._$AH = Ft)) - : r !== this._$AH && r !== Jn && this._(r) - : r._$litType$ !== void 0 - ? this.$(r) - : r.nodeType !== void 0 - ? this.T(r) - : ny(r) - ? this.k(r) - : this._(r) - } - O(r) { - return this._$AA.parentNode.insertBefore(r, this._$AB) - } - T(r) { - this._$AH !== r && (this._$AR(), (this._$AH = this.O(r))) - } - _(r) { - this._$AH !== Ft && ri(this._$AH) - ? (this._$AA.nextSibling.data = r) - : this.T(jn.createTextNode(r)), - (this._$AH = r) - } - $(r) { - var d - const { values: i, _$litType$: a } = r, - l = - typeof a == 'number' - ? this._$AC(r) - : (a.el === void 0 && - (a.el = ii.createElement(wh(a.h, a.h[0]), this.options)), - a) - if (((d = this._$AH) == null ? void 0 : d._$AD) === l) this._$AH.p(i) - else { - const f = new oy(l, this), - v = f.u(this.options) - f.p(i), this.T(v), (this._$AH = f) - } - } - _$AC(r) { - let i = bu.get(r.strings) - return i === void 0 && bu.set(r.strings, (i = new ii(r))), i - } - k(r) { - va(this._$AH) || ((this._$AH = []), this._$AR()) - const i = this._$AH - let a, - l = 0 - for (const d of r) - l === i.length - ? i.push((a = new si(this.O(ni()), this.O(ni()), this, this.options))) - : (a = i[l]), - a._$AI(d), - l++ - l < i.length && (this._$AR(a && a._$AB.nextSibling, l), (i.length = l)) - } - _$AR(r = this._$AA.nextSibling, i) { - var a - for ( - (a = this._$AP) == null ? void 0 : a.call(this, !1, !0, i); - r && r !== this._$AB; - - ) { - const l = r.nextSibling - r.remove(), (r = l) - } - } - setConnected(r) { - var i - this._$AM === void 0 && - ((this._$Cv = r), (i = this._$AP) == null || i.call(this, r)) - } -} -class wo { - get tagName() { - return this.element.tagName - } - get _$AU() { - return this._$AM._$AU - } - constructor(r, i, a, l, d) { - ;(this.type = 1), - (this._$AH = Ft), - (this._$AN = void 0), - (this.element = r), - (this.name = i), - (this._$AM = l), - (this.options = d), - a.length > 2 || a[0] !== '' || a[1] !== '' - ? ((this._$AH = Array(a.length - 1).fill(new String())), - (this.strings = a)) - : (this._$AH = Ft) - } - _$AI(r, i = this, a, l) { - const d = this.strings - let f = !1 - if (d === void 0) - (r = _r(this, r, i, 0)), - (f = !ri(r) || (r !== this._$AH && r !== Jn)), - f && (this._$AH = r) - else { - const v = r - let m, _ - for (r = d[0], m = 0; m < d.length - 1; m++) - (_ = _r(this, v[a + m], i, m)), - _ === Jn && (_ = this._$AH[m]), - f || (f = !ri(_) || _ !== this._$AH[m]), - _ === Ft ? (r = Ft) : r !== Ft && (r += (_ ?? '') + d[m + 1]), - (this._$AH[m] = _) - } - f && !l && this.j(r) - } - j(r) { - r === Ft - ? this.element.removeAttribute(this.name) - : this.element.setAttribute(this.name, r ?? '') - } -} -class sy extends wo { - constructor() { - super(...arguments), (this.type = 3) - } - j(r) { - this.element[this.name] = r === Ft ? void 0 : r - } -} -class ay extends wo { - constructor() { - super(...arguments), (this.type = 4) - } - j(r) { - this.element.toggleAttribute(this.name, !!r && r !== Ft) - } -} -class ly extends wo { - constructor(r, i, a, l, d) { - super(r, i, a, l, d), (this.type = 5) - } - _$AI(r, i = this) { - if ((r = _r(this, r, i, 0) ?? Ft) === Jn) return - const a = this._$AH, - l = - (r === Ft && a !== Ft) || - r.capture !== a.capture || - r.once !== a.once || - r.passive !== a.passive, - d = r !== Ft && (a === Ft || l) - l && this.element.removeEventListener(this.name, this, a), - d && this.element.addEventListener(this.name, this, r), - (this._$AH = r) - } - handleEvent(r) { - var i - typeof this._$AH == 'function' - ? this._$AH.call( - ((i = this.options) == null ? void 0 : i.host) ?? this.element, - r, - ) - : this._$AH.handleEvent(r) - } -} -class cy { - constructor(r, i, a) { - ;(this.element = r), - (this.type = 6), - (this._$AN = void 0), - (this._$AM = i), - (this.options = a) - } - get _$AU() { - return this._$AM._$AU - } - _$AI(r) { - _r(this, r) - } -} -const ta = ti.litHtmlPolyfillSupport -ta == null || ta(ii, si), - (ti.litHtmlVersions ?? (ti.litHtmlVersions = [])).push('3.2.1') -const uy = (n, r, i) => { - const a = (i == null ? void 0 : i.renderBefore) ?? r - let l = a._$litPart$ - if (l === void 0) { - const d = (i == null ? void 0 : i.renderBefore) ?? null - a._$litPart$ = l = new si(r.insertBefore(ni(), d), d, void 0, i ?? {}) - } - return l._$AI(n), l -} -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -let Xn = class extends vr { - constructor() { - super(...arguments), - (this.renderOptions = { host: this }), - (this._$Do = void 0) - } - createRenderRoot() { - var i - const r = super.createRenderRoot() - return ( - (i = this.renderOptions).renderBefore ?? (i.renderBefore = r.firstChild), - r - ) - } - update(r) { - const i = this.render() - this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), - super.update(r), - (this._$Do = uy(i, this.renderRoot, this.renderOptions)) - } - connectedCallback() { - var r - super.connectedCallback(), (r = this._$Do) == null || r.setConnected(!0) - } - disconnectedCallback() { - var r - super.disconnectedCallback(), (r = this._$Do) == null || r.setConnected(!1) - } - render() { - return Jn - } -} -var gh -;(Xn._$litElement$ = !0), - (Xn.finalized = !0), - (gh = globalThis.litElementHydrateSupport) == null || - gh.call(globalThis, { LitElement: Xn }) -const ea = globalThis.litElementPolyfillSupport -ea == null || ea({ LitElement: Xn }) -;(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push( - '4.1.1', -) -var hy = en` - :host { - display: inline-block; - width: 1em; - height: 1em; - box-sizing: content-box !important; - } - - svg { - display: block; - height: 100%; - width: 100%; - } -`, - $h = Object.defineProperty, - dy = Object.defineProperties, - fy = Object.getOwnPropertyDescriptor, - py = Object.getOwnPropertyDescriptors, - yu = Object.getOwnPropertySymbols, - gy = Object.prototype.hasOwnProperty, - vy = Object.prototype.propertyIsEnumerable, - _u = (n, r, i) => - r in n - ? $h(n, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) - : (n[r] = i), - ai = (n, r) => { - for (var i in r || (r = {})) gy.call(r, i) && _u(n, i, r[i]) - if (yu) for (var i of yu(r)) vy.call(r, i) && _u(n, i, r[i]) - return n - }, - xh = (n, r) => dy(n, py(r)), - R = (n, r, i, a) => { - for ( - var l = a > 1 ? void 0 : a ? fy(r, i) : r, d = n.length - 1, f; - d >= 0; - d-- - ) - (f = n[d]) && (l = (a ? f(r, i, l) : f(l)) || l) - return a && l && $h(r, i, l), l - }, - Sh = (n, r, i) => { - if (!r.has(n)) throw TypeError('Cannot ' + i) - }, - my = (n, r, i) => (Sh(n, r, 'read from private field'), r.get(n)), - by = (n, r, i) => { - if (r.has(n)) - throw TypeError('Cannot add the same private member more than once') - r instanceof WeakSet ? r.add(n) : r.set(n, i) - }, - yy = (n, r, i, a) => (Sh(n, r, 'write to private field'), r.set(n, i), i) -function le(n, r) { - const i = ai( - { - waitUntilFirstUpdate: !1, - }, - r, - ) - return (a, l) => { - const { update: d } = a, - f = Array.isArray(n) ? n : [n] - a.update = function (v) { - f.forEach(m => { - const _ = m - if (v.has(_)) { - const k = v.get(_), - C = this[_] - k !== C && - (!i.waitUntilFirstUpdate || this.hasUpdated) && - this[l](k, C) - } - }), - d.call(this, v) - } - } -} -var vn = en` - :host { - box-sizing: border-box; - } - - :host *, - :host *::before, - :host *::after { - box-sizing: inherit; - } - - [hidden] { - display: none !important; - } -` -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const _y = { - attribute: !0, - type: String, - converter: po, - reflect: !1, - hasChanged: ga, - }, - wy = (n = _y, r, i) => { - const { kind: a, metadata: l } = i - let d = globalThis.litPropertyMetadata.get(l) - if ( - (d === void 0 && - globalThis.litPropertyMetadata.set(l, (d = /* @__PURE__ */ new Map())), - d.set(i.name, n), - a === 'accessor') - ) { - const { name: f } = i - return { - set(v) { - const m = r.get.call(this) - r.set.call(this, v), this.requestUpdate(f, m, n) - }, - init(v) { - return v !== void 0 && this.P(f, void 0, n), v - }, - } - } - if (a === 'setter') { - const { name: f } = i - return function (v) { - const m = this[f] - r.call(this, v), this.requestUpdate(f, m, n) - } - } - throw Error('Unsupported decorator location: ' + a) - } -function V(n) { - return (r, i) => - typeof i == 'object' - ? wy(n, r, i) - : ((a, l, d) => { - const f = l.hasOwnProperty(d) - return ( - l.constructor.createProperty(d, f ? { ...a, wrapped: !0 } : a), - f ? Object.getOwnPropertyDescriptor(l, d) : void 0 - ) - })(n, r, i) -} -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -function li(n) { - return V({ ...n, state: !0, attribute: !1 }) -} -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -function $y(n) { - return (r, i) => { - const a = typeof r == 'function' ? r : r[i] - Object.assign(a, n) - } -} -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const xy = (n, r, i) => ( - (i.configurable = !0), - (i.enumerable = !0), - Reflect.decorate && typeof r != 'object' && Object.defineProperty(n, r, i), - i -) -/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -function Ie(n, r) { - return (i, a, l) => { - const d = f => { - var v - return ((v = f.renderRoot) == null ? void 0 : v.querySelector(n)) ?? null - } - return xy(i, a, { - get() { - return d(this) - }, - }) - } -} -var lo, - Se = class extends Xn { - constructor() { - super(), - by(this, lo, !1), - (this.initialReflectedProperties = /* @__PURE__ */ new Map()), - Object.entries(this.constructor.dependencies).forEach(([n, r]) => { - this.constructor.define(n, r) - }) - } - emit(n, r) { - const i = new CustomEvent( - n, - ai( - { - bubbles: !0, - cancelable: !1, - composed: !0, - detail: {}, - }, - r, - ), - ) - return this.dispatchEvent(i), i - } - /* eslint-enable */ - static define(n, r = this, i = {}) { - const a = customElements.get(n) - if (!a) { - try { - customElements.define(n, r, i) - } catch { - customElements.define(n, class extends r {}, i) - } - return - } - let l = ' (unknown version)', - d = l - 'version' in r && r.version && (l = ' v' + r.version), - 'version' in a && a.version && (d = ' v' + a.version), - !(l && d && l === d) && - console.warn( - `Attempted to register <${n}>${l}, but <${n}>${d} has already been registered.`, - ) - } - attributeChangedCallback(n, r, i) { - my(this, lo) || - (this.constructor.elementProperties.forEach((a, l) => { - a.reflect && - this[l] != null && - this.initialReflectedProperties.set(l, this[l]) - }), - yy(this, lo, !0)), - super.attributeChangedCallback(n, r, i) - } - willUpdate(n) { - super.willUpdate(n), - this.initialReflectedProperties.forEach((r, i) => { - n.has(i) && this[i] == null && (this[i] = r) - }) - } - } -lo = /* @__PURE__ */ new WeakMap() -Se.version = '2.18.0' -Se.dependencies = {} -R([V()], Se.prototype, 'dir', 2) -R([V()], Se.prototype, 'lang', 2) -/** - * @license - * Copyright 2020 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */ -const Sy = (n, r) => (n == null ? void 0 : n._$litType$) !== void 0 -var jr = Symbol(), - ro = Symbol(), - na, - ra = /* @__PURE__ */ new Map(), - Re = class extends Se { - constructor() { - super(...arguments), - (this.initialRender = !1), - (this.svg = null), - (this.label = ''), - (this.library = 'default') - } - /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */ - async resolveIcon(n, r) { - var i - let a - if (r != null && r.spriteSheet) - return ( - (this.svg = X` - - `), - this.svg - ) - try { - if (((a = await fetch(n, { mode: 'cors' })), !a.ok)) - return a.status === 410 ? jr : ro - } catch { - return ro - } - try { - const l = document.createElement('div') - l.innerHTML = await a.text() - const d = l.firstElementChild - if ( - ((i = d == null ? void 0 : d.tagName) == null - ? void 0 - : i.toLowerCase()) !== 'svg' - ) - return jr - na || (na = new DOMParser()) - const v = na - .parseFromString(d.outerHTML, 'text/html') - .body.querySelector('svg') - return v ? (v.part.add('svg'), document.adoptNode(v)) : jr - } catch { - return jr - } - } - connectedCallback() { - super.connectedCallback(), q0(this) - } - firstUpdated() { - ;(this.initialRender = !0), this.setIcon() - } - disconnectedCallback() { - super.disconnectedCallback(), Y0(this) - } - getIconSource() { - const n = lu(this.library) - return this.name && n - ? { - url: n.resolver(this.name), - fromLibrary: !0, - } - : { - url: this.src, - fromLibrary: !1, - } - } - handleLabelChange() { - typeof this.label == 'string' && this.label.length > 0 - ? (this.setAttribute('role', 'img'), - this.setAttribute('aria-label', this.label), - this.removeAttribute('aria-hidden')) - : (this.removeAttribute('role'), - this.removeAttribute('aria-label'), - this.setAttribute('aria-hidden', 'true')) - } - async setIcon() { - var n - const { url: r, fromLibrary: i } = this.getIconSource(), - a = i ? lu(this.library) : void 0 - if (!r) { - this.svg = null - return - } - let l = ra.get(r) - if ( - (l || ((l = this.resolveIcon(r, a)), ra.set(r, l)), !this.initialRender) - ) - return - const d = await l - if ((d === ro && ra.delete(r), r === this.getIconSource().url)) { - if (Sy(d)) { - if (((this.svg = d), a)) { - await this.updateComplete - const f = this.shadowRoot.querySelector("[part='svg']") - typeof a.mutator == 'function' && f && a.mutator(f) - } - return - } - switch (d) { - case ro: - case jr: - ;(this.svg = null), this.emit('sl-error') - break - default: - ;(this.svg = d.cloneNode(!0)), - (n = a == null ? void 0 : a.mutator) == null || - n.call(a, this.svg), - this.emit('sl-load') - } - } - } - render() { - return this.svg - } - } -Re.styles = [vn, hy] -R([li()], Re.prototype, 'svg', 2) -R([V({ reflect: !0 })], Re.prototype, 'name', 2) -R([V()], Re.prototype, 'src', 2) -R([V()], Re.prototype, 'label', 2) -R([V({ reflect: !0 })], Re.prototype, 'library', 2) -R([le('label')], Re.prototype, 'handleLabelChange', 1) -R([le(['name', 'src', 'library'])], Re.prototype, 'setIcon', 1) -class vo extends Error { - constructor(i = 'Invalid value', a) { - super(i, a) - Y(this, 'name', 'ValueError') - } -} -var ae = - typeof globalThis < 'u' - ? globalThis - : typeof window < 'u' - ? window - : typeof global < 'u' - ? global - : typeof self < 'u' - ? self - : {} -function $o(n) { - return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, 'default') - ? n.default - : n -} -var Ch = { exports: {} } -;(function (n, r) { - ;(function (i, a) { - n.exports = a() - })(ae, function () { - var i = 1e3, - a = 6e4, - l = 36e5, - d = 'millisecond', - f = 'second', - v = 'minute', - m = 'hour', - _ = 'day', - k = 'week', - C = 'month', - F = 'quarter', - T = 'year', - z = 'date', - w = 'Invalid Date', - x = - /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, - P = - /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, - G = { - name: 'en', - weekdays: - 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - months: - 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_', - ), - ordinal: function (W) { - var D = ['th', 'st', 'nd', 'rd'], - M = W % 100 - return '[' + W + (D[(M - 20) % 10] || D[M] || D[0]) + ']' - }, - }, - U = function (W, D, M) { - var H = String(W) - return !H || H.length >= D - ? W - : '' + Array(D + 1 - H.length).join(M) + W - }, - it = { - s: U, - z: function (W) { - var D = -W.utcOffset(), - M = Math.abs(D), - H = Math.floor(M / 60), - B = M % 60 - return (D <= 0 ? '+' : '-') + U(H, 2, '0') + ':' + U(B, 2, '0') - }, - m: function W(D, M) { - if (D.date() < M.date()) return -W(M, D) - var H = 12 * (M.year() - D.year()) + (M.month() - D.month()), - B = D.clone().add(H, C), - at = M - B < 0, - rt = D.clone().add(H + (at ? -1 : 1), C) - return +(-(H + (M - B) / (at ? B - rt : rt - B)) || 0) - }, - a: function (W) { - return W < 0 ? Math.ceil(W) || 0 : Math.floor(W) - }, - p: function (W) { - return ( - { M: C, y: T, w: k, d: _, D: z, h: m, m: v, s: f, ms: d, Q: F }[ - W - ] || - String(W || '') - .toLowerCase() - .replace(/s$/, '') - ) - }, - u: function (W) { - return W === void 0 - }, - }, - J = 'en', - q = {} - q[J] = G - var I = '$isDayjsObject', - L = function (W) { - return W instanceof mt || !(!W || !W[I]) - }, - nt = function W(D, M, H) { - var B - if (!D) return J - if (typeof D == 'string') { - var at = D.toLowerCase() - q[at] && (B = at), M && ((q[at] = M), (B = at)) - var rt = D.split('-') - if (!B && rt.length > 1) return W(rt[0]) - } else { - var ft = D.name - ;(q[ft] = D), (B = ft) - } - return !H && B && (J = B), B || (!H && J) - }, - ot = function (W, D) { - if (L(W)) return W.clone() - var M = typeof D == 'object' ? D : {} - return (M.date = W), (M.args = arguments), new mt(M) - }, - j = it - ;(j.l = nt), - (j.i = L), - (j.w = function (W, D) { - return ot(W, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset }) - }) - var mt = (function () { - function W(M) { - ;(this.$L = nt(M.locale, null, !0)), - this.parse(M), - (this.$x = this.$x || M.x || {}), - (this[I] = !0) - } - var D = W.prototype - return ( - (D.parse = function (M) { - ;(this.$d = (function (H) { - var B = H.date, - at = H.utc - if (B === null) return /* @__PURE__ */ new Date(NaN) - if (j.u(B)) return /* @__PURE__ */ new Date() - if (B instanceof Date) return new Date(B) - if (typeof B == 'string' && !/Z$/i.test(B)) { - var rt = B.match(x) - if (rt) { - var ft = rt[2] - 1 || 0, - zt = (rt[7] || '0').substring(0, 3) - return at - ? new Date( - Date.UTC( - rt[1], - ft, - rt[3] || 1, - rt[4] || 0, - rt[5] || 0, - rt[6] || 0, - zt, - ), - ) - : new Date( - rt[1], - ft, - rt[3] || 1, - rt[4] || 0, - rt[5] || 0, - rt[6] || 0, - zt, - ) - } - } - return new Date(B) - })(M)), - this.init() - }), - (D.init = function () { - var M = this.$d - ;(this.$y = M.getFullYear()), - (this.$M = M.getMonth()), - (this.$D = M.getDate()), - (this.$W = M.getDay()), - (this.$H = M.getHours()), - (this.$m = M.getMinutes()), - (this.$s = M.getSeconds()), - (this.$ms = M.getMilliseconds()) - }), - (D.$utils = function () { - return j - }), - (D.isValid = function () { - return this.$d.toString() !== w - }), - (D.isSame = function (M, H) { - var B = ot(M) - return this.startOf(H) <= B && B <= this.endOf(H) - }), - (D.isAfter = function (M, H) { - return ot(M) < this.startOf(H) - }), - (D.isBefore = function (M, H) { - return this.endOf(H) < ot(M) - }), - (D.$g = function (M, H, B) { - return j.u(M) ? this[H] : this.set(B, M) - }), - (D.unix = function () { - return Math.floor(this.valueOf() / 1e3) - }), - (D.valueOf = function () { - return this.$d.getTime() - }), - (D.startOf = function (M, H) { - var B = this, - at = !!j.u(H) || H, - rt = j.p(M), - ft = function (fe, Zt) { - var pe = j.w( - B.$u ? Date.UTC(B.$y, Zt, fe) : new Date(B.$y, Zt, fe), - B, - ) - return at ? pe : pe.endOf(_) - }, - zt = function (fe, Zt) { - return j.w( - B.toDate()[fe].apply( - B.toDate('s'), - (at ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Zt), - ), - B, - ) - }, - Dt = this.$W, - Gt = this.$M, - Bt = this.$D, - De = 'set' + (this.$u ? 'UTC' : '') - switch (rt) { - case T: - return at ? ft(1, 0) : ft(31, 11) - case C: - return at ? ft(1, Gt) : ft(0, Gt + 1) - case k: - var nn = this.$locale().weekStart || 0, - Be = (Dt < nn ? Dt + 7 : Dt) - nn - return ft(at ? Bt - Be : Bt + (6 - Be), Gt) - case _: - case z: - return zt(De + 'Hours', 0) - case m: - return zt(De + 'Minutes', 1) - case v: - return zt(De + 'Seconds', 2) - case f: - return zt(De + 'Milliseconds', 3) - default: - return this.clone() - } - }), - (D.endOf = function (M) { - return this.startOf(M, !1) - }), - (D.$set = function (M, H) { - var B, - at = j.p(M), - rt = 'set' + (this.$u ? 'UTC' : ''), - ft = ((B = {}), - (B[_] = rt + 'Date'), - (B[z] = rt + 'Date'), - (B[C] = rt + 'Month'), - (B[T] = rt + 'FullYear'), - (B[m] = rt + 'Hours'), - (B[v] = rt + 'Minutes'), - (B[f] = rt + 'Seconds'), - (B[d] = rt + 'Milliseconds'), - B)[at], - zt = at === _ ? this.$D + (H - this.$W) : H - if (at === C || at === T) { - var Dt = this.clone().set(z, 1) - Dt.$d[ft](zt), - Dt.init(), - (this.$d = Dt.set(z, Math.min(this.$D, Dt.daysInMonth())).$d) - } else ft && this.$d[ft](zt) - return this.init(), this - }), - (D.set = function (M, H) { - return this.clone().$set(M, H) - }), - (D.get = function (M) { - return this[j.p(M)]() - }), - (D.add = function (M, H) { - var B, - at = this - M = Number(M) - var rt = j.p(H), - ft = function (Gt) { - var Bt = ot(at) - return j.w(Bt.date(Bt.date() + Math.round(Gt * M)), at) - } - if (rt === C) return this.set(C, this.$M + M) - if (rt === T) return this.set(T, this.$y + M) - if (rt === _) return ft(1) - if (rt === k) return ft(7) - var zt = ((B = {}), (B[v] = a), (B[m] = l), (B[f] = i), B)[rt] || 1, - Dt = this.$d.getTime() + M * zt - return j.w(Dt, this) - }), - (D.subtract = function (M, H) { - return this.add(-1 * M, H) - }), - (D.format = function (M) { - var H = this, - B = this.$locale() - if (!this.isValid()) return B.invalidDate || w - var at = M || 'YYYY-MM-DDTHH:mm:ssZ', - rt = j.z(this), - ft = this.$H, - zt = this.$m, - Dt = this.$M, - Gt = B.weekdays, - Bt = B.months, - De = B.meridiem, - nn = function (Zt, pe, Ve, In) { - return (Zt && (Zt[pe] || Zt(H, at))) || Ve[pe].slice(0, In) - }, - Be = function (Zt) { - return j.s(ft % 12 || 12, Zt, '0') - }, - fe = - De || - function (Zt, pe, Ve) { - var In = Zt < 12 ? 'AM' : 'PM' - return Ve ? In.toLowerCase() : In - } - return at.replace(P, function (Zt, pe) { - return ( - pe || - (function (Ve) { - switch (Ve) { - case 'YY': - return String(H.$y).slice(-2) - case 'YYYY': - return j.s(H.$y, 4, '0') - case 'M': - return Dt + 1 - case 'MM': - return j.s(Dt + 1, 2, '0') - case 'MMM': - return nn(B.monthsShort, Dt, Bt, 3) - case 'MMMM': - return nn(Bt, Dt) - case 'D': - return H.$D - case 'DD': - return j.s(H.$D, 2, '0') - case 'd': - return String(H.$W) - case 'dd': - return nn(B.weekdaysMin, H.$W, Gt, 2) - case 'ddd': - return nn(B.weekdaysShort, H.$W, Gt, 3) - case 'dddd': - return Gt[H.$W] - case 'H': - return String(ft) - case 'HH': - return j.s(ft, 2, '0') - case 'h': - return Be(1) - case 'hh': - return Be(2) - case 'a': - return fe(ft, zt, !0) - case 'A': - return fe(ft, zt, !1) - case 'm': - return String(zt) - case 'mm': - return j.s(zt, 2, '0') - case 's': - return String(H.$s) - case 'ss': - return j.s(H.$s, 2, '0') - case 'SSS': - return j.s(H.$ms, 3, '0') - case 'Z': - return rt - } - return null - })(Zt) || - rt.replace(':', '') - ) - }) - }), - (D.utcOffset = function () { - return 15 * -Math.round(this.$d.getTimezoneOffset() / 15) - }), - (D.diff = function (M, H, B) { - var at, - rt = this, - ft = j.p(H), - zt = ot(M), - Dt = (zt.utcOffset() - this.utcOffset()) * a, - Gt = this - zt, - Bt = function () { - return j.m(rt, zt) - } - switch (ft) { - case T: - at = Bt() / 12 - break - case C: - at = Bt() - break - case F: - at = Bt() / 3 - break - case k: - at = (Gt - Dt) / 6048e5 - break - case _: - at = (Gt - Dt) / 864e5 - break - case m: - at = Gt / l - break - case v: - at = Gt / a - break - case f: - at = Gt / i - break - default: - at = Gt - } - return B ? at : j.a(at) - }), - (D.daysInMonth = function () { - return this.endOf(C).$D - }), - (D.$locale = function () { - return q[this.$L] - }), - (D.locale = function (M, H) { - if (!M) return this.$L - var B = this.clone(), - at = nt(M, H, !0) - return at && (B.$L = at), B - }), - (D.clone = function () { - return j.w(this.$d, this) - }), - (D.toDate = function () { - return new Date(this.valueOf()) - }), - (D.toJSON = function () { - return this.isValid() ? this.toISOString() : null - }), - (D.toISOString = function () { - return this.$d.toISOString() - }), - (D.toString = function () { - return this.$d.toUTCString() - }), - W - ) - })(), - Et = mt.prototype - return ( - (ot.prototype = Et), - [ - ['$ms', d], - ['$s', f], - ['$m', v], - ['$H', m], - ['$W', _], - ['$M', C], - ['$y', T], - ['$D', z], - ].forEach(function (W) { - Et[W[1]] = function (D) { - return this.$g(D, W[0], W[1]) - } - }), - (ot.extend = function (W, D) { - return W.$i || (W(D, mt, ot), (W.$i = !0)), ot - }), - (ot.locale = nt), - (ot.isDayjs = L), - (ot.unix = function (W) { - return ot(1e3 * W) - }), - (ot.en = q[J]), - (ot.Ls = q), - (ot.p = {}), - ot - ) - }) -})(Ch) -var Cy = Ch.exports -const ci = /* @__PURE__ */ $o(Cy) -var Ah = { exports: {} } -;(function (n, r) { - ;(function (i, a) { - n.exports = a() - })(ae, function () { - var i = 'minute', - a = /[+-]\d\d(?::?\d\d)?/g, - l = /([+-]|\d\d)/g - return function (d, f, v) { - var m = f.prototype - ;(v.utc = function (w) { - var x = { date: w, utc: !0, args: arguments } - return new f(x) - }), - (m.utc = function (w) { - var x = v(this.toDate(), { locale: this.$L, utc: !0 }) - return w ? x.add(this.utcOffset(), i) : x - }), - (m.local = function () { - return v(this.toDate(), { locale: this.$L, utc: !1 }) - }) - var _ = m.parse - m.parse = function (w) { - w.utc && (this.$u = !0), - this.$utils().u(w.$offset) || (this.$offset = w.$offset), - _.call(this, w) - } - var k = m.init - m.init = function () { - if (this.$u) { - var w = this.$d - ;(this.$y = w.getUTCFullYear()), - (this.$M = w.getUTCMonth()), - (this.$D = w.getUTCDate()), - (this.$W = w.getUTCDay()), - (this.$H = w.getUTCHours()), - (this.$m = w.getUTCMinutes()), - (this.$s = w.getUTCSeconds()), - (this.$ms = w.getUTCMilliseconds()) - } else k.call(this) - } - var C = m.utcOffset - m.utcOffset = function (w, x) { - var P = this.$utils().u - if (P(w)) - return this.$u ? 0 : P(this.$offset) ? C.call(this) : this.$offset - if ( - typeof w == 'string' && - ((w = (function (J) { - J === void 0 && (J = '') - var q = J.match(a) - if (!q) return null - var I = ('' + q[0]).match(l) || ['-', 0, 0], - L = I[0], - nt = 60 * +I[1] + +I[2] - return nt === 0 ? 0 : L === '+' ? nt : -nt - })(w)), - w === null) - ) - return this - var G = Math.abs(w) <= 16 ? 60 * w : w, - U = this - if (x) return (U.$offset = G), (U.$u = w === 0), U - if (w !== 0) { - var it = this.$u - ? this.toDate().getTimezoneOffset() - : -1 * this.utcOffset() - ;((U = this.local().add(G + it, i)).$offset = G), - (U.$x.$localOffset = it) - } else U = this.utc() - return U - } - var F = m.format - ;(m.format = function (w) { - var x = w || (this.$u ? 'YYYY-MM-DDTHH:mm:ss[Z]' : '') - return F.call(this, x) - }), - (m.valueOf = function () { - var w = this.$utils().u(this.$offset) - ? 0 - : this.$offset + - (this.$x.$localOffset || this.$d.getTimezoneOffset()) - return this.$d.valueOf() - 6e4 * w - }), - (m.isUTC = function () { - return !!this.$u - }), - (m.toISOString = function () { - return this.toDate().toISOString() - }), - (m.toString = function () { - return this.toDate().toUTCString() - }) - var T = m.toDate - m.toDate = function (w) { - return w === 's' && this.$offset - ? v(this.format('YYYY-MM-DD HH:mm:ss:SSS')).toDate() - : T.call(this) - } - var z = m.diff - m.diff = function (w, x, P) { - if (w && this.$u === w.$u) return z.call(this, w, x, P) - var G = this.local(), - U = v(w).local() - return z.call(G, U, x, P) - } - } - }) -})(Ah) -var Ay = Ah.exports -const Ey = /* @__PURE__ */ $o(Ay) -var Eh = { exports: {} } -;(function (n, r) { - ;(function (i, a) { - n.exports = a() - })(ae, function () { - var i, - a, - l = 1e3, - d = 6e4, - f = 36e5, - v = 864e5, - m = - /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, - _ = 31536e6, - k = 2628e6, - C = - /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, - F = { - years: _, - months: k, - days: v, - hours: f, - minutes: d, - seconds: l, - milliseconds: 1, - weeks: 6048e5, - }, - T = function (q) { - return q instanceof it - }, - z = function (q, I, L) { - return new it(q, L, I.$l) - }, - w = function (q) { - return a.p(q) + 's' - }, - x = function (q) { - return q < 0 - }, - P = function (q) { - return x(q) ? Math.ceil(q) : Math.floor(q) - }, - G = function (q) { - return Math.abs(q) - }, - U = function (q, I) { - return q - ? x(q) - ? { negative: !0, format: '' + G(q) + I } - : { negative: !1, format: '' + q + I } - : { negative: !1, format: '' } - }, - it = (function () { - function q(L, nt, ot) { - var j = this - if ( - ((this.$d = {}), - (this.$l = ot), - L === void 0 && ((this.$ms = 0), this.parseFromMilliseconds()), - nt) - ) - return z(L * F[w(nt)], this) - if (typeof L == 'number') - return (this.$ms = L), this.parseFromMilliseconds(), this - if (typeof L == 'object') - return ( - Object.keys(L).forEach(function (W) { - j.$d[w(W)] = L[W] - }), - this.calMilliseconds(), - this - ) - if (typeof L == 'string') { - var mt = L.match(C) - if (mt) { - var Et = mt.slice(2).map(function (W) { - return W != null ? Number(W) : 0 - }) - return ( - (this.$d.years = Et[0]), - (this.$d.months = Et[1]), - (this.$d.weeks = Et[2]), - (this.$d.days = Et[3]), - (this.$d.hours = Et[4]), - (this.$d.minutes = Et[5]), - (this.$d.seconds = Et[6]), - this.calMilliseconds(), - this - ) - } - } - return this - } - var I = q.prototype - return ( - (I.calMilliseconds = function () { - var L = this - this.$ms = Object.keys(this.$d).reduce(function (nt, ot) { - return nt + (L.$d[ot] || 0) * F[ot] - }, 0) - }), - (I.parseFromMilliseconds = function () { - var L = this.$ms - ;(this.$d.years = P(L / _)), - (L %= _), - (this.$d.months = P(L / k)), - (L %= k), - (this.$d.days = P(L / v)), - (L %= v), - (this.$d.hours = P(L / f)), - (L %= f), - (this.$d.minutes = P(L / d)), - (L %= d), - (this.$d.seconds = P(L / l)), - (L %= l), - (this.$d.milliseconds = L) - }), - (I.toISOString = function () { - var L = U(this.$d.years, 'Y'), - nt = U(this.$d.months, 'M'), - ot = +this.$d.days || 0 - this.$d.weeks && (ot += 7 * this.$d.weeks) - var j = U(ot, 'D'), - mt = U(this.$d.hours, 'H'), - Et = U(this.$d.minutes, 'M'), - W = this.$d.seconds || 0 - this.$d.milliseconds && - ((W += this.$d.milliseconds / 1e3), - (W = Math.round(1e3 * W) / 1e3)) - var D = U(W, 'S'), - M = - L.negative || - nt.negative || - j.negative || - mt.negative || - Et.negative || - D.negative, - H = mt.format || Et.format || D.format ? 'T' : '', - B = - (M ? '-' : '') + - 'P' + - L.format + - nt.format + - j.format + - H + - mt.format + - Et.format + - D.format - return B === 'P' || B === '-P' ? 'P0D' : B - }), - (I.toJSON = function () { - return this.toISOString() - }), - (I.format = function (L) { - var nt = L || 'YYYY-MM-DDTHH:mm:ss', - ot = { - Y: this.$d.years, - YY: a.s(this.$d.years, 2, '0'), - YYYY: a.s(this.$d.years, 4, '0'), - M: this.$d.months, - MM: a.s(this.$d.months, 2, '0'), - D: this.$d.days, - DD: a.s(this.$d.days, 2, '0'), - H: this.$d.hours, - HH: a.s(this.$d.hours, 2, '0'), - m: this.$d.minutes, - mm: a.s(this.$d.minutes, 2, '0'), - s: this.$d.seconds, - ss: a.s(this.$d.seconds, 2, '0'), - SSS: a.s(this.$d.milliseconds, 3, '0'), - } - return nt.replace(m, function (j, mt) { - return mt || String(ot[j]) - }) - }), - (I.as = function (L) { - return this.$ms / F[w(L)] - }), - (I.get = function (L) { - var nt = this.$ms, - ot = w(L) - return ( - ot === 'milliseconds' - ? (nt %= 1e3) - : (nt = ot === 'weeks' ? P(nt / F[ot]) : this.$d[ot]), - nt || 0 - ) - }), - (I.add = function (L, nt, ot) { - var j - return ( - (j = nt ? L * F[w(nt)] : T(L) ? L.$ms : z(L, this).$ms), - z(this.$ms + j * (ot ? -1 : 1), this) - ) - }), - (I.subtract = function (L, nt) { - return this.add(L, nt, !0) - }), - (I.locale = function (L) { - var nt = this.clone() - return (nt.$l = L), nt - }), - (I.clone = function () { - return z(this.$ms, this) - }), - (I.humanize = function (L) { - return i().add(this.$ms, 'ms').locale(this.$l).fromNow(!L) - }), - (I.valueOf = function () { - return this.asMilliseconds() - }), - (I.milliseconds = function () { - return this.get('milliseconds') - }), - (I.asMilliseconds = function () { - return this.as('milliseconds') - }), - (I.seconds = function () { - return this.get('seconds') - }), - (I.asSeconds = function () { - return this.as('seconds') - }), - (I.minutes = function () { - return this.get('minutes') - }), - (I.asMinutes = function () { - return this.as('minutes') - }), - (I.hours = function () { - return this.get('hours') - }), - (I.asHours = function () { - return this.as('hours') - }), - (I.days = function () { - return this.get('days') - }), - (I.asDays = function () { - return this.as('days') - }), - (I.weeks = function () { - return this.get('weeks') - }), - (I.asWeeks = function () { - return this.as('weeks') - }), - (I.months = function () { - return this.get('months') - }), - (I.asMonths = function () { - return this.as('months') - }), - (I.years = function () { - return this.get('years') - }), - (I.asYears = function () { - return this.as('years') - }), - q - ) - })(), - J = function (q, I, L) { - return q - .add(I.years() * L, 'y') - .add(I.months() * L, 'M') - .add(I.days() * L, 'd') - .add(I.hours() * L, 'h') - .add(I.minutes() * L, 'm') - .add(I.seconds() * L, 's') - .add(I.milliseconds() * L, 'ms') - } - return function (q, I, L) { - ;(i = L), - (a = L().$utils()), - (L.duration = function (j, mt) { - var Et = L.locale() - return z(j, { $l: Et }, mt) - }), - (L.isDuration = T) - var nt = I.prototype.add, - ot = I.prototype.subtract - ;(I.prototype.add = function (j, mt) { - return T(j) ? J(this, j, 1) : nt.bind(this)(j, mt) - }), - (I.prototype.subtract = function (j, mt) { - return T(j) ? J(this, j, -1) : ot.bind(this)(j, mt) - }) - } - }) -})(Eh) -var ky = Eh.exports -const Ty = /* @__PURE__ */ $o(ky) -var kh = { exports: {} } -;(function (n, r) { - ;(function (i, a) { - n.exports = a() - })(ae, function () { - return function (i, a, l) { - i = i || {} - var d = a.prototype, - f = { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - } - function v(_, k, C, F) { - return d.fromToBase(_, k, C, F) - } - ;(l.en.relativeTime = f), - (d.fromToBase = function (_, k, C, F, T) { - for ( - var z, - w, - x, - P = C.$locale().relativeTime || f, - G = i.thresholds || [ - { l: 's', r: 44, d: 'second' }, - { l: 'm', r: 89 }, - { l: 'mm', r: 44, d: 'minute' }, - { l: 'h', r: 89 }, - { l: 'hh', r: 21, d: 'hour' }, - { l: 'd', r: 35 }, - { l: 'dd', r: 25, d: 'day' }, - { l: 'M', r: 45 }, - { l: 'MM', r: 10, d: 'month' }, - { l: 'y', r: 17 }, - { l: 'yy', d: 'year' }, - ], - U = G.length, - it = 0; - it < U; - it += 1 - ) { - var J = G[it] - J.d && (z = F ? l(_).diff(C, J.d, !0) : C.diff(_, J.d, !0)) - var q = (i.rounding || Math.round)(Math.abs(z)) - if (((x = z > 0), q <= J.r || !J.r)) { - q <= 1 && it > 0 && (J = G[it - 1]) - var I = P[J.l] - T && (q = T('' + q)), - (w = - typeof I == 'string' ? I.replace('%d', q) : I(q, k, J.l, x)) - break - } - } - if (k) return w - var L = x ? P.future : P.past - return typeof L == 'function' ? L(w) : L.replace('%s', w) - }), - (d.to = function (_, k) { - return v(_, k, this, !0) - }), - (d.from = function (_, k) { - return v(_, k, this) - }) - var m = function (_) { - return _.$u ? l.utc() : l() - } - ;(d.toNow = function (_) { - return this.to(m(this), _) - }), - (d.fromNow = function (_) { - return this.from(m(this), _) - }) - } - }) -})(kh) -var zy = kh.exports -const Oy = /* @__PURE__ */ $o(zy) -function Py(n) { - throw new Error( - 'Could not dynamically require "' + - n + - '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.', - ) -} -var Ry = { exports: {} } -;(function (n, r) { - ;(function (i, a) { - typeof Py == 'function' ? (n.exports = a()) : (i.pluralize = a()) - })(ae, function () { - var i = [], - a = [], - l = {}, - d = {}, - f = {} - function v(w) { - return typeof w == 'string' ? new RegExp('^' + w + '$', 'i') : w - } - function m(w, x) { - return w === x - ? x - : w === w.toLowerCase() - ? x.toLowerCase() - : w === w.toUpperCase() - ? x.toUpperCase() - : w[0] === w[0].toUpperCase() - ? x.charAt(0).toUpperCase() + x.substr(1).toLowerCase() - : x.toLowerCase() - } - function _(w, x) { - return w.replace(/\$(\d{1,2})/g, function (P, G) { - return x[G] || '' - }) - } - function k(w, x) { - return w.replace(x[0], function (P, G) { - var U = _(x[1], arguments) - return m(P === '' ? w[G - 1] : P, U) - }) - } - function C(w, x, P) { - if (!w.length || l.hasOwnProperty(w)) return x - for (var G = P.length; G--; ) { - var U = P[G] - if (U[0].test(x)) return k(x, U) - } - return x - } - function F(w, x, P) { - return function (G) { - var U = G.toLowerCase() - return x.hasOwnProperty(U) - ? m(G, U) - : w.hasOwnProperty(U) - ? m(G, w[U]) - : C(U, G, P) - } - } - function T(w, x, P, G) { - return function (U) { - var it = U.toLowerCase() - return x.hasOwnProperty(it) - ? !0 - : w.hasOwnProperty(it) - ? !1 - : C(it, it, P) === it - } - } - function z(w, x, P) { - var G = x === 1 ? z.singular(w) : z.plural(w) - return (P ? x + ' ' : '') + G - } - return ( - (z.plural = F(f, d, i)), - (z.isPlural = T(f, d, i)), - (z.singular = F(d, f, a)), - (z.isSingular = T(d, f, a)), - (z.addPluralRule = function (w, x) { - i.push([v(w), x]) - }), - (z.addSingularRule = function (w, x) { - a.push([v(w), x]) - }), - (z.addUncountableRule = function (w) { - if (typeof w == 'string') { - l[w.toLowerCase()] = !0 - return - } - z.addPluralRule(w, '$0'), z.addSingularRule(w, '$0') - }), - (z.addIrregularRule = function (w, x) { - ;(x = x.toLowerCase()), (w = w.toLowerCase()), (f[w] = x), (d[x] = w) - }), - [ - // Pronouns. - ['I', 'we'], - ['me', 'us'], - ['he', 'they'], - ['she', 'they'], - ['them', 'them'], - ['myself', 'ourselves'], - ['yourself', 'yourselves'], - ['itself', 'themselves'], - ['herself', 'themselves'], - ['himself', 'themselves'], - ['themself', 'themselves'], - ['is', 'are'], - ['was', 'were'], - ['has', 'have'], - ['this', 'these'], - ['that', 'those'], - // Words ending in with a consonant and `o`. - ['echo', 'echoes'], - ['dingo', 'dingoes'], - ['volcano', 'volcanoes'], - ['tornado', 'tornadoes'], - ['torpedo', 'torpedoes'], - // Ends with `us`. - ['genus', 'genera'], - ['viscus', 'viscera'], - // Ends with `ma`. - ['stigma', 'stigmata'], - ['stoma', 'stomata'], - ['dogma', 'dogmata'], - ['lemma', 'lemmata'], - ['schema', 'schemata'], - ['anathema', 'anathemata'], - // Other irregular rules. - ['ox', 'oxen'], - ['axe', 'axes'], - ['die', 'dice'], - ['yes', 'yeses'], - ['foot', 'feet'], - ['eave', 'eaves'], - ['goose', 'geese'], - ['tooth', 'teeth'], - ['quiz', 'quizzes'], - ['human', 'humans'], - ['proof', 'proofs'], - ['carve', 'carves'], - ['valve', 'valves'], - ['looey', 'looies'], - ['thief', 'thieves'], - ['groove', 'grooves'], - ['pickaxe', 'pickaxes'], - ['passerby', 'passersby'], - ].forEach(function (w) { - return z.addIrregularRule(w[0], w[1]) - }), - [ - [/s?$/i, 's'], - [/[^\u0000-\u007F]$/i, '$0'], - [/([^aeiou]ese)$/i, '$1'], - [/(ax|test)is$/i, '$1es'], - [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, '$1es'], - [/(e[mn]u)s?$/i, '$1s'], - [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, '$1'], - [ - /(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, - '$1i', - ], - [/(alumn|alg|vertebr)(?:a|ae)$/i, '$1ae'], - [/(seraph|cherub)(?:im)?$/i, '$1im'], - [/(her|at|gr)o$/i, '$1oes'], - [ - /(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, - '$1a', - ], - [ - /(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, - '$1a', - ], - [/sis$/i, 'ses'], - [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, '$1$2ves'], - [/([^aeiouy]|qu)y$/i, '$1ies'], - [/([^ch][ieo][ln])ey$/i, '$1ies'], - [/(x|ch|ss|sh|zz)$/i, '$1es'], - [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, '$1ices'], - [/\b((?:tit)?m|l)(?:ice|ouse)$/i, '$1ice'], - [/(pe)(?:rson|ople)$/i, '$1ople'], - [/(child)(?:ren)?$/i, '$1ren'], - [/eaux$/i, '$0'], - [/m[ae]n$/i, 'men'], - ['thou', 'you'], - ].forEach(function (w) { - return z.addPluralRule(w[0], w[1]) - }), - [ - [/s$/i, ''], - [/(ss)$/i, '$1'], - [ - /(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, - '$1fe', - ], - [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'], - [/ies$/i, 'y'], - [ - /\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, - '$1ie', - ], - [/\b(mon|smil)ies$/i, '$1ey'], - [/\b((?:tit)?m|l)ice$/i, '$1ouse'], - [/(seraph|cherub)im$/i, '$1'], - [ - /(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, - '$1', - ], - [ - /(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, - '$1sis', - ], - [/(movie|twelve|abuse|e[mn]u)s$/i, '$1'], - [/(test)(?:is|es)$/i, '$1is'], - [ - /(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, - '$1us', - ], - [ - /(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, - '$1um', - ], - [ - /(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, - '$1on', - ], - [/(alumn|alg|vertebr)ae$/i, '$1a'], - [/(cod|mur|sil|vert|ind)ices$/i, '$1ex'], - [/(matr|append)ices$/i, '$1ix'], - [/(pe)(rson|ople)$/i, '$1rson'], - [/(child)ren$/i, '$1'], - [/(eau)x?$/i, '$1'], - [/men$/i, 'man'], - ].forEach(function (w) { - return z.addSingularRule(w[0], w[1]) - }), - [ - // Singular words with no plurals. - 'adulthood', - 'advice', - 'agenda', - 'aid', - 'aircraft', - 'alcohol', - 'ammo', - 'analytics', - 'anime', - 'athletics', - 'audio', - 'bison', - 'blood', - 'bream', - 'buffalo', - 'butter', - 'carp', - 'cash', - 'chassis', - 'chess', - 'clothing', - 'cod', - 'commerce', - 'cooperation', - 'corps', - 'debris', - 'diabetes', - 'digestion', - 'elk', - 'energy', - 'equipment', - 'excretion', - 'expertise', - 'firmware', - 'flounder', - 'fun', - 'gallows', - 'garbage', - 'graffiti', - 'hardware', - 'headquarters', - 'health', - 'herpes', - 'highjinks', - 'homework', - 'housework', - 'information', - 'jeans', - 'justice', - 'kudos', - 'labour', - 'literature', - 'machinery', - 'mackerel', - 'mail', - 'media', - 'mews', - 'moose', - 'music', - 'mud', - 'manga', - 'news', - 'only', - 'personnel', - 'pike', - 'plankton', - 'pliers', - 'police', - 'pollution', - 'premises', - 'rain', - 'research', - 'rice', - 'salmon', - 'scissors', - 'series', - 'sewage', - 'shambles', - 'shrimp', - 'software', - 'species', - 'staff', - 'swine', - 'tennis', - 'traffic', - 'transportation', - 'trout', - 'tuna', - 'wealth', - 'welfare', - 'whiting', - 'wildebeest', - 'wildlife', - 'you', - /pok[eé]mon$/i, - // Regexes. - /[^aeiou]ese$/i, - // "chinese", "japanese" - /deer$/i, - // "deer", "reindeer" - /fish$/i, - // "fish", "blowfish", "angelfish" - /measles$/i, - /o[iu]s$/i, - // "carnivorous" - /pox$/i, - // "chickpox", "smallpox" - /sheep$/i, - ].forEach(z.addUncountableRule), - z - ) - }) -})(Ry) -ci.extend(Ey) -ci.extend(Ty) -ci.extend(Oy) -function Le(n = Le('"message" is required')) { - throw new vo(n) -} -function $t(n) { - return n === !1 -} -function qt(n) { - return [null, void 0].includes(n) -} -function ei(n) { - return ba(qt, $t)(n) -} -function Th(n) { - return n instanceof Element -} -function ma(n) { - return typeof n == 'string' -} -function zh(n) { - return typeof n == 'function' -} -function Oh(n) { - return Array.isArray(n) -} -function xo(n) { - return Oh(n) && n.length > 0 -} -function ba(...n) { - return function (i) { - return n.reduce((a, l) => l(a), i) - } -} -function Ph(n) { - return typeof n == 'number' && Number.isFinite(n) -} -function Ly(n) { - return ba(Ph, $t)(n) -} -function My(n) { - return ['string', 'number', 'boolean', 'symbol'].includes(typeof n) -} -function Rh(n) { - return typeof n == 'object' && ei(n) && n.constructor === Object -} -function Iy(n) { - return Rh(n) && xo(Object.keys(n)) -} -function Dy(n = 9) { - const r = new Uint8Array(n) - return ( - window.crypto.getRandomValues(r), - Array.from(r, i => i.toString(36)) - .join('') - .slice(0, n) - ) -} -function wu(n = 0, r = 'YYYY-MM-DD HH:mm:ss') { - return ci.utc(n).format(r) -} -function $u(n = 0, r = 'YYYY-MM-DD HH:mm:ss') { - return ci(n).format(r) -} -function Tt(n, r = '') { - return n ? r : '' -} -function By(n, r = Error) { - return n instanceof r -} -function ne(n, r = 'Invalid value') { - if (qt(n) || $t(n)) throw new vo(r, By(r) ? { cause: r } : void 0) - return !0 -} -function Uy(n) { - return qt(n) ? [] : Oh(n) ? n : [n] -} -function Ny(n = Le('"element" is required'), r = Le('"parent" is required')) { - return { - top: Math.round( - n.getBoundingClientRect().top - r.getBoundingClientRect().top, - ), - left: Math.round( - n.getBoundingClientRect().left - r.getBoundingClientRect().left, - ), - } -} -function Fy( - n = Le('"element" is required'), - r = Le('"parent" is required'), - i = 'vertical', - a = 'smooth', -) { - ne(i in ['horizontal', 'vertical', 'both'], 'Invalid direction'), - ne(a in ['smooth', 'auto'], 'Invalid behavior') - const l = Ny(n, r), - d = l.top + r.scrollTop, - f = l.left + r.scrollLeft, - v = r.scrollLeft, - m = r.scrollLeft + r.offsetWidth, - _ = r.scrollTop, - k = r.scrollTop + r.offsetHeight - ;(i === 'horizontal' || i === 'both') && - (f < v - ? r.scrollTo({ left: f, behavior: a }) - : f + n.clientWidth > m && - r.scrollTo({ - left: f - r.offsetWidth + n.clientWidth, - behavior: a, - })), - (i === 'vertical' || i === 'both') && - (d < _ - ? r.scrollTo({ top: d, behavior: a }) - : d + n.clientHeight > k && - r.scrollTo({ - top: d - r.offsetHeight + n.clientHeight, - behavior: a, - })) -} -class Hy { - constructor(r = Le('EnumValue "key" is required'), i, a) { - ;(this.key = r), (this.value = i), (this.title = a ?? i ?? this.value) - } -} -function Yt(n = Le('"obj" is required to create a new Enum')) { - ne(Iy(n), 'Enum values cannot be empty') - const r = Object.assign({}, n), - i = { - includes: l, - throwOnMiss: d, - title: f, - forEach: k, - value: v, - keys: C, - values: F, - item: _, - key: m, - items: T, - entries: z, - getValue: w, - } - for (const [x, P] of Object.entries(r)) { - ne(ma(x) && Ly(parseInt(x)), `Key "${x}" is invalid`) - const G = Uy(P) - ne( - G.every(U => qt(U) || My(U)), - `Value "${P}" is invalid`, - ) && (r[x] = new Hy(x, ...G)) - } - const a = new Proxy(Object.preventExtensions(r), { - get(x, P) { - return P in i ? i[P] : Reflect.get(x, P).value - }, - set() { - throw new vo('Cannot change enum property') - }, - deleteProperty() { - throw new vo('Cannot delete enum property') - }, - }) - function l(x) { - return !!C().find(P => v(P) === x) - } - function d(x) { - ne(l(x), `Value "${x}" does not exist in enum`) - } - function f(x) { - var P - return (P = T().find(G => G.value === x)) == null ? void 0 : P.title - } - function v(x) { - return a[x] - } - function m(x) { - var P - return (P = T().find(G => G.value === x || G.title === x)) == null - ? void 0 - : P.key - } - function _(x) { - return r[x] - } - function k(x) { - C().forEach(P => x(r[P])) - } - function C() { - return Object.keys(r) - } - function F() { - return C().map(x => v(x)) - } - function T() { - return C().map(x => _(x)) - } - function z() { - return C().map((x, P) => [x, v(x), _(x), P]) - } - function w(x) { - return v(m(x)) - } - return a -} -Yt({ - Complete: ['complete', 'Complete'], - Failed: ['failed', 'Failed'], - Behind: ['behind', 'Behind'], - Progress: ['progress', 'Progress'], - InProgress: ['in progress', 'In Progress'], - Pending: ['pending', 'Pending'], - Skipped: ['skipped', 'Skipped'], - Undefined: ['undefined', 'Undefined'], -}) -const gr = Yt({ - Open: 'open', - Close: 'close', - Click: 'click', - Keydown: 'keydown', - Keyup: 'keyup', - Focus: 'focus', - Blur: 'blur', - Submit: 'submit', - Change: 'change', - }), - Wy = Yt({ - Base: 'base', - Content: 'content', - Tagline: 'tagline', - Before: 'before', - After: 'after', - Info: 'info', - Nav: 'nav', - Default: void 0, - }), - xu = Yt({ - Active: 'active', - Disabled: 'disabled', - Open: 'open', - Closed: 'closed', - }) -Yt({ - Form: 'FORM', -}) -const io = Yt({ - Tab: 'Tab', - Enter: 'Enter', - Shift: 'Shift', - Escape: 'Escape', - Space: 'Space', - End: 'End', - Home: 'Home', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - }), - qy = Yt({ - Horizontal: 'horizontal', - Vertical: 'vertical', - }), - Pt = Yt({ - XXS: '2xs', - XS: 'xs', - S: 's', - M: 'm', - L: 'l', - XL: 'xl', - XXL: '2xl', - }), - Qe = Yt({ - Left: 'left', - Right: 'right', - Center: 'center', - }), - Yy = Yt({ - Left: 'left', - Right: 'right', - Top: 'top', - Bottom: 'bottom', - }), - Ke = Yt({ - Round: 'round', - Pill: 'pill', - Square: 'square', - Circle: 'circle', - Rect: 'rect', - }), - bt = Yt({ - Neutral: 'neutral', - Undefined: 'undefined', - Primary: 'primary', - Translucent: 'translucent', - Success: 'success', - Danger: 'danger', - Warning: 'warning', - Gradient: 'gradient', - Transparent: 'transparent', - /* ------------------------------ */ - Action: 'action', - Secondary: 'secondary-action', - Alternative: 'alternative', - Cancel: 'cancel', - /* ------------------------------ */ - Failed: 'failed', - InProgress: 'in-progress', - Progress: 'progress', - Skipped: 'skipped', - Preempted: 'preempted', - Pending: 'pending', - Complete: 'complete', - Behind: 'behind', - /* ------------------------------ */ - IDE: 'ide', - Lineage: 'lineage', - Editor: 'editor', - Folder: 'folder', - File: 'file', - Error: 'error', - Changes: 'changes', - ChangeAdd: 'change-add', - ChangeRemove: 'change-remove', - ChangeDirectly: 'change-directly', - ChangeIndirectly: 'change-indirectly', - ChangeMetadata: 'change-metadata', - Backfill: 'backfill', - Restatement: 'restatement', - Audit: 'audit', - Test: 'test', - Macro: 'macro', - Model: 'model', - ModelVersion: 'model-version', - ModelSQL: 'model-sql', - ModelPython: 'model-python', - ModelExternal: 'model-external', - ModelSeed: 'model-seed', - ModelUnknown: 'model-unknown', - Column: 'column', - Upstream: 'upstream', - Downstream: 'downstream', - Plan: 'plan', - Run: 'run', - Environment: 'environment', - Breaking: 'breaking', - NonBreaking: 'non-breaking', - ForwardOnly: 'forward-only', - Measure: 'measure', - }), - Su = Yt({ - Auto: 'auto', - Full: 'full', - Wide: 'wide', - Compact: 'compact', - }), - Gy = Yt({ - Auto: 'auto', - Full: 'full', - Tall: 'tall', - Short: 'short', - }), - mr = Object.freeze({ - ...Object.entries(Wy).reduce( - (n, [r, i]) => ((n[`Part${r}`] = Cu('part', i)), n), - {}, - ), - SlotDefault: Cu('slot:not([name])'), - }) -function Cu(n = Le('"name" is required to create a selector'), r) { - return qt(r) ? n : `[${n}="${r}"]` -} -var Ky = typeof ae == 'object' && ae && ae.Object === Object && ae, - Vy = Ky, - Xy = Vy, - Zy = typeof self == 'object' && self && self.Object === Object && self, - jy = Xy || Zy || Function('return this')(), - ya = jy, - Jy = ya, - Qy = Jy.Symbol, - _a = Qy, - Au = _a, - Lh = Object.prototype, - t1 = Lh.hasOwnProperty, - e1 = Lh.toString, - Jr = Au ? Au.toStringTag : void 0 -function n1(n) { - var r = t1.call(n, Jr), - i = n[Jr] - try { - n[Jr] = void 0 - var a = !0 - } catch {} - var l = e1.call(n) - return a && (r ? (n[Jr] = i) : delete n[Jr]), l -} -var r1 = n1, - i1 = Object.prototype, - o1 = i1.toString -function s1(n) { - return o1.call(n) -} -var a1 = s1, - Eu = _a, - l1 = r1, - c1 = a1, - u1 = '[object Null]', - h1 = '[object Undefined]', - ku = Eu ? Eu.toStringTag : void 0 -function d1(n) { - return n == null - ? n === void 0 - ? h1 - : u1 - : ku && ku in Object(n) - ? l1(n) - : c1(n) -} -var f1 = d1 -function p1(n) { - var r = typeof n - return n != null && (r == 'object' || r == 'function') -} -var Mh = p1, - g1 = f1, - v1 = Mh, - m1 = '[object AsyncFunction]', - b1 = '[object Function]', - y1 = '[object GeneratorFunction]', - _1 = '[object Proxy]' -function w1(n) { - if (!v1(n)) return !1 - var r = g1(n) - return r == b1 || r == y1 || r == m1 || r == _1 -} -var $1 = w1, - x1 = ya, - S1 = x1['__core-js_shared__'], - C1 = S1, - ia = C1, - Tu = (function () { - var n = /[^.]+$/.exec((ia && ia.keys && ia.keys.IE_PROTO) || '') - return n ? 'Symbol(src)_1.' + n : '' - })() -function A1(n) { - return !!Tu && Tu in n -} -var E1 = A1, - k1 = Function.prototype, - T1 = k1.toString -function z1(n) { - if (n != null) { - try { - return T1.call(n) - } catch {} - try { - return n + '' - } catch {} - } - return '' -} -var O1 = z1, - P1 = $1, - R1 = E1, - L1 = Mh, - M1 = O1, - I1 = /[\\^$.*+?()[\]{}|]/g, - D1 = /^\[object .+?Constructor\]$/, - B1 = Function.prototype, - U1 = Object.prototype, - N1 = B1.toString, - F1 = U1.hasOwnProperty, - H1 = RegExp( - '^' + - N1.call(F1) - .replace(I1, '\\$&') - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?', - ) + - '$', - ) -function W1(n) { - if (!L1(n) || R1(n)) return !1 - var r = P1(n) ? H1 : D1 - return r.test(M1(n)) -} -var q1 = W1 -function Y1(n, r) { - return n == null ? void 0 : n[r] -} -var G1 = Y1, - K1 = q1, - V1 = G1 -function X1(n, r) { - var i = V1(n, r) - return K1(i) ? i : void 0 -} -var wa = X1, - Z1 = wa -;(function () { - try { - var n = Z1(Object, 'defineProperty') - return n({}, '', {}), n - } catch {} -})() -function j1(n, r) { - return n === r || (n !== n && r !== r) -} -var J1 = j1, - Q1 = wa, - t_ = Q1(Object, 'create'), - So = t_, - zu = So -function e_() { - ;(this.__data__ = zu ? zu(null) : {}), (this.size = 0) -} -var n_ = e_ -function r_(n) { - var r = this.has(n) && delete this.__data__[n] - return (this.size -= r ? 1 : 0), r -} -var i_ = r_, - o_ = So, - s_ = '__lodash_hash_undefined__', - a_ = Object.prototype, - l_ = a_.hasOwnProperty -function c_(n) { - var r = this.__data__ - if (o_) { - var i = r[n] - return i === s_ ? void 0 : i - } - return l_.call(r, n) ? r[n] : void 0 -} -var u_ = c_, - h_ = So, - d_ = Object.prototype, - f_ = d_.hasOwnProperty -function p_(n) { - var r = this.__data__ - return h_ ? r[n] !== void 0 : f_.call(r, n) -} -var g_ = p_, - v_ = So, - m_ = '__lodash_hash_undefined__' -function b_(n, r) { - var i = this.__data__ - return ( - (this.size += this.has(n) ? 0 : 1), - (i[n] = v_ && r === void 0 ? m_ : r), - this - ) -} -var y_ = b_, - __ = n_, - w_ = i_, - $_ = u_, - x_ = g_, - S_ = y_ -function xr(n) { - var r = -1, - i = n == null ? 0 : n.length - for (this.clear(); ++r < i; ) { - var a = n[r] - this.set(a[0], a[1]) - } -} -xr.prototype.clear = __ -xr.prototype.delete = w_ -xr.prototype.get = $_ -xr.prototype.has = x_ -xr.prototype.set = S_ -var C_ = xr -function A_() { - ;(this.__data__ = []), (this.size = 0) -} -var E_ = A_, - k_ = J1 -function T_(n, r) { - for (var i = n.length; i--; ) if (k_(n[i][0], r)) return i - return -1 -} -var Co = T_, - z_ = Co, - O_ = Array.prototype, - P_ = O_.splice -function R_(n) { - var r = this.__data__, - i = z_(r, n) - if (i < 0) return !1 - var a = r.length - 1 - return i == a ? r.pop() : P_.call(r, i, 1), --this.size, !0 -} -var L_ = R_, - M_ = Co -function I_(n) { - var r = this.__data__, - i = M_(r, n) - return i < 0 ? void 0 : r[i][1] -} -var D_ = I_, - B_ = Co -function U_(n) { - return B_(this.__data__, n) > -1 -} -var N_ = U_, - F_ = Co -function H_(n, r) { - var i = this.__data__, - a = F_(i, n) - return a < 0 ? (++this.size, i.push([n, r])) : (i[a][1] = r), this -} -var W_ = H_, - q_ = E_, - Y_ = L_, - G_ = D_, - K_ = N_, - V_ = W_ -function Sr(n) { - var r = -1, - i = n == null ? 0 : n.length - for (this.clear(); ++r < i; ) { - var a = n[r] - this.set(a[0], a[1]) - } -} -Sr.prototype.clear = q_ -Sr.prototype.delete = Y_ -Sr.prototype.get = G_ -Sr.prototype.has = K_ -Sr.prototype.set = V_ -var X_ = Sr, - Z_ = wa, - j_ = ya, - J_ = Z_(j_, 'Map'), - Q_ = J_, - Ou = C_, - tw = X_, - ew = Q_ -function nw() { - ;(this.size = 0), - (this.__data__ = { - hash: new Ou(), - map: new (ew || tw)(), - string: new Ou(), - }) -} -var rw = nw -function iw(n) { - var r = typeof n - return r == 'string' || r == 'number' || r == 'symbol' || r == 'boolean' - ? n !== '__proto__' - : n === null -} -var ow = iw, - sw = ow -function aw(n, r) { - var i = n.__data__ - return sw(r) ? i[typeof r == 'string' ? 'string' : 'hash'] : i.map -} -var Ao = aw, - lw = Ao -function cw(n) { - var r = lw(this, n).delete(n) - return (this.size -= r ? 1 : 0), r -} -var uw = cw, - hw = Ao -function dw(n) { - return hw(this, n).get(n) -} -var fw = dw, - pw = Ao -function gw(n) { - return pw(this, n).has(n) -} -var vw = gw, - mw = Ao -function bw(n, r) { - var i = mw(this, n), - a = i.size - return i.set(n, r), (this.size += i.size == a ? 0 : 1), this -} -var yw = bw, - _w = rw, - ww = uw, - $w = fw, - xw = vw, - Sw = yw -function Cr(n) { - var r = -1, - i = n == null ? 0 : n.length - for (this.clear(); ++r < i; ) { - var a = n[r] - this.set(a[0], a[1]) - } -} -Cr.prototype.clear = _w -Cr.prototype.delete = ww -Cr.prototype.get = $w -Cr.prototype.has = xw -Cr.prototype.set = Sw -var Cw = Cr, - Ih = Cw, - Aw = 'Expected a function' -function $a(n, r) { - if (typeof n != 'function' || (r != null && typeof r != 'function')) - throw new TypeError(Aw) - var i = function () { - var a = arguments, - l = r ? r.apply(this, a) : a[0], - d = i.cache - if (d.has(l)) return d.get(l) - var f = n.apply(this, a) - return (i.cache = d.set(l, f) || d), f - } - return (i.cache = new ($a.Cache || Ih)()), i -} -$a.Cache = Ih -var Ew = $a, - kw = Ew, - Tw = 500 -function zw(n) { - var r = kw(n, function (a) { - return i.size === Tw && i.clear(), a - }), - i = r.cache - return r -} -var Ow = zw, - Pw = Ow, - Rw = - /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - Lw = /\\(\\)?/g -Pw(function (n) { - var r = [] - return ( - n.charCodeAt(0) === 46 && r.push(''), - n.replace(Rw, function (i, a, l, d) { - r.push(l ? d.replace(Lw, '$1') : a || i) - }), - r - ) -}) -var Pu = _a, - Ru = Pu ? Pu.prototype : void 0 -Ru && Ru.toString -const Ge = Yt({ - UTC: ['utc', 'UTC'], - Local: ['local', 'LOCAL'], -}) -function Eo(n) { - var r - return ( - (r = class extends n {}), - Y(r, 'shadowRootOptions', { ...n.shadowRootOptions, delegatesFocus: !0 }), - r - ) -} -function Mw(n) { - var r - return ( - (r = class extends n { - connectedCallback() { - super.connectedCallback(), this.setTimezone(this.timezone) - } - get isLocal() { - return this.timezone === Ge.Local - } - get isUTC() { - return this.timezone === Ge.UTC - } - constructor() { - super(), (this.timezone = Ge.UTC) - } - setTimezone(a = Ge.UTC) { - this.timezone = Ge.includes(a) ? Ge.getValue(a) : Ge.UTC - } - }), - Y(r, 'properties', { - timezone: { type: Ge, converter: Ge.getValue }, - }), - r - ) -} -function mn(n = Lu(Xn), ...r) { - return ( - qt(n._$litElement$) && (r.push(n), (n = Lu(Xn))), ba(...r.flat())(Iw(n)) - ) -} -function Lu(n) { - return class extends n {} -} -class zn { - constructor(r, i, a = {}) { - Y(this, '_event') - ;(this.original = i), (this.value = r), (this.meta = a) - } - get event() { - return this._event - } - setEvent(r = Le('"event" is required to set event')) { - this._event = r - } - static assert(r) { - ne(r instanceof zn, 'Event "detail" should be instance of "EventDetail"') - } - static assertHandler(r) { - return ( - ne(zh(r), '"eventHandler" should be a function'), - function (i = Le('"event" is required')) { - return zn.assert(i.detail), r(i) - } - ) - } -} -function Iw(n) { - var r - return ( - (r = class extends n { - constructor() { - super(), - (this.uid = Dy()), - (this.disabled = !1), - (this.emit.EventDetail = zn) - } - firstUpdated() { - var a - if ( - (super.firstUpdated(), - (a = this.elsSlots) == null || - a.forEach(l => - l.addEventListener( - 'slotchange', - this._handleSlotChange.bind(this), - ), - ), - ei(window.htmx)) - ) { - const l = Array.from(this.renderRoot.querySelectorAll('a')) - ;(this.closest('[hx-boost="true"]') || - this.closest('[data-hx-boost="true"]')) && - l.forEach(f => { - $t(f.hasAttribute('hx-boost')) && - f.setAttribute( - 'hx-boost', - this.hasAttribute('[hx-boost="false"]') ? 'false' : 'true', - ) - }), - window.htmx.process(this), - window.htmx.process(this.renderRoot) - } - } - get elSlot() { - var a - return (a = this.renderRoot) == null - ? void 0 - : a.querySelector(mr.SlotDefault) - } - get elsSlots() { - var a - return (a = this.renderRoot) == null - ? void 0 - : a.querySelectorAll('slot') - } - get elBase() { - var a - return (a = this.renderRoot) == null - ? void 0 - : a.querySelector(mr.PartBase) - } - get elsSlotted() { - return [] - .concat( - Array.from(this.elsSlots).map(a => - a.assignedElements({ flatten: !0 }), - ), - ) - .flat() - } - clear() { - r.clear(this) - } - emit(a = 'event', l) { - if ( - ((l = Object.assign( - { - detail: void 0, - bubbles: !0, - cancelable: !1, - composed: !0, - }, - l, - )), - ei(l.detail)) - ) { - if ($t(l.detail instanceof zn) && Rh(l.detail)) - if ('value' in l.detail) { - const { value: d, ...f } = l.detail - l.detail = new zn(d, void 0, f) - } else l.detail = new zn(l.detail) - ne( - l.detail instanceof zn, - 'event "detail" must be instance of "EventDetail"', - ), - l.detail.setEvent(a) - } - return this.dispatchEvent(new CustomEvent(a, l)) - } - setHidden(a = !1, l = 0) { - setTimeout(() => { - this.hidden = a - }, l) - } - setDisabled(a = !1, l = 0) { - setTimeout(() => { - this.disabled = a - }, l) - } - notify(a, l, d) { - var f - ;(f = a == null ? void 0 : a.emit) == null || f.call(a, l, d) - } - // We may want to ensure event detail when sending custom events from children components - assertEventHandler(a = Le('"eventHandler" is required')) { - return ( - ne(zh(a), '"eventHandler" should be a function'), - this.emit.EventDetail.assertHandler(a.bind(this)) - ) - } - getShadowRoot() { - return this.renderRoot - } - _handleSlotChange(a) { - ei(a.target) && (a.target.style.position = 'initial') - } - static clear(a) { - Th(a) && (a.innerHTML = '') - } - static defineAs( - a = Le('"tagName" is required to define custom element'), - ) { - qt(customElements.get(a)) && customElements.define(a, this) - } - }), - Y(r, 'properties', { - uid: { type: String }, - disabled: { type: Boolean, reflect: !0 }, - tabindex: { type: Number, reflect: !0 }, - }), - r - ) -} -function Dw() { - return dt(` - :host([disabled]) { cursor: not-allowed; } - :host([disabled]) > *, - :host([disabled])::slotted(*) { - pointer-events: none; - opacity: 0.75; - } - :host(:focus), - :host([disabled]), - :host([disabled]) * { outline: none; } - `) -} -function Bw() { - return dt(` - :host { box-sizing: border-box; } - :host *, - :host *::before, - :host *::after { box-sizing: inherit; } - :host[hidden] { display: none !important; } - `) -} -function It() { - return dt(` - ${Bw()} - ${Dw()} - `) -} -function xa(n) { - return dt( - ` - :host(:focus-visible:not([disabled])) { - - outline: var(--half) solid var(--color-outline); - outline-offset: var(--half); - z-index: 1; - - } - `, - ) -} -function Uw(n = ':host') { - return dt(` - ${n} { - scroll-behavior: smooth; - scrollbar-width: var(--size-scrollbar); - scrollbar-width: thin; - scrollbar-color: var(--color-scrollbar) transparent; - scrollbar-base-color: var(--color-scrollbar); - scrollbar-face-color: var(--color-scrollbar); - scrollbar-track-color: transparent; - } - - ${n}::-webkit-scrollbar { - height: var(--size-scrollbar); - width: var(--size-scrollbar); - border-radius: var(--step-4); - overflow: hidden; - } - - ${n}::-webkit-scrollbar-track { - background-color: transparent; - } - - ${n}::-webkit-scrollbar-thumb { - background: var(--color-scrollbar); - border-radius: var(--step-4); - } - `) -} -function Nw(n = 'from-input') { - return dt(` - :host { - --from-input-padding: var(--${n}-padding-y) var(--${n}-padding-x); - --from-input-placeholder-color: var(--color-gray-300); - --from-input-color: var(--color-gray-700); - --from-input-color-error: var(--color-scarlet); - --from-input-background: var(--color-scarlet-5); - --from-input-font-size: var(--font-size); - --from-input-text-align: var(--text-align); - --from-input-box-shadow: inset 0 0 0 1px var(--color-gray-200); - --from-input-radius: var(--radius-xs); - --from-input-font-family: var(--font-sans); - --form-input-box-shadow-hover: inset 0 0 0 1px var(--color-gray-500); - --form-input-box-shadow-focus: inset 0 0 0 1px var(--color-gray-500); - - --${n}-padding: var(--from-input-padding); - --${n}-placeholder-color: var(--from-input-placeholder-color); - --${n}-color: var(--from-input-color); - --${n}-font-size: var(--from-input-font-size); - --${n}-text-align: var(--from-input-text-align); - --${n}-box-shadow: var(--from-input-box-shadow); - --${n}-radius: var(--from-input-radius); - --${n}-background: transparent; - --${n}-font-family: var(--from-input-font-family); - --${n}-box-shadow-hover: var(--form-input-box-shadow-hover); - --${n}-box-shadow-focus: var(--form-input-box-shadow-focus); - } - :host([error]) { - --${n}-box-shadow: inset 0 0 0 1px var(--color-scarlet); - } - `) -} -function Ar(n = 'color') { - return dt(` - :host([variant="${bt.Neutral}"]), - :host([variant="${bt.Undefined}"]) { - --${n}-variant-10: var(--color-gray-10); - --${n}-variant-15: var(--color-gray-15); - --${n}-variant-125: var(--color-gray-125); - --${n}-variant-150: var(--color-gray-150); - --${n}-variant-525: var(--color-gray-525); - --${n}-variant-550: var(--color-gray-550); - --${n}-variant-725: var(--color-gray-725); - --${n}-variant-750: var(--color-gray-750); - - --${n}-variant-shadow: var(--color-gray-200); - --${n}-variant: var(--color-gray-700); - --${n}-variant-lucid: var(--color-gray-5); - --${n}-variant-light: var(--color-gray-100); - --${n}-variant-dark: var(--color-gray-800); - } - :host-context([mode='dark']):host([variant="${bt.Neutral}"]), - :host-context([mode='dark']):host([variant="${bt.Undefined}"]) { - --${n}-variant: var(--color-gray-200); - --${n}-variant-lucid: var(--color-gray-10); - } - :host([variant="${bt.Undefined}"]) { - --${n}-variant-shadow: var(--color-gray-100); - --${n}-variant: var(--color-gray-200); - --${n}-variant-lucid: var(--color-gray-5); - --${n}-variant-light: var(--color-gray-100); - --${n}-variant-dark: var(--color-gray-500); - } - :host([variant="${bt.Success}"]), - :host([variant="${bt.Complete}"]) { - --${n}-variant-5: var(--color-emerald-5); - --${n}-variant-10: var(--color-emerald-10); - --${n}-variant: var(--color-emerald-500); - --${n}-variant-lucid: var(--color-emerald-5); - --${n}-variant-light: var(--color-emerald-100); - --${n}-variant-dark: var(--color-emerald-800); - } - :host([variant="${bt.Warning}"]), - :host([variant="${bt.Skipped}"]), - :host([variant="${bt.Pending}"]) { - --${n}-variant: var(--color-mandarin-500); - --${n}-variant-lucid: var(--color-mandarin-5); - --${n}-variant-light: var(--color-mandarin-100); - --${n}-variant-dark: var(--color-mandarin-800); - } - :host([variant="${bt.Danger}"]), - :host([variant="${bt.Behind}"]), - :host([variant="${bt.Failed}"]) { - --${n}-variant-5: var(--color-scarlet-5); - --${n}-variant-10: var(--color-scarlet-10); - --${n}-variant: var(--color-scarlet-500); - --${n}-variant-lucid: var(--color-scarlet-5); - --${n}-variant-lucid: var(--color-scarlet-5); - --${n}-variant-light: var(--color-scarlet-100); - --${n}-variant-dark: var(--color-scarlet-800); - } - :host([variant="${bt.ChangeAdd}"]) { - --${n}-variant: var(--color-change-add); - --${n}-variant-lucid: var(--color-change-add-5); - --${n}-variant-light: var(--color-change-add-100); - --${n}-variant-dark: var(--color-change-add-800); - } - :host([variant="${bt.ChangeRemove}"]) { - --${n}-variant: var(--color-change-remove); - --${n}-variant-lucid: var(--color-change-remove-5); - --${n}-variant-light: var(--color-change-remove-100); - --${n}-variant-dark: var(--color-change-remove-800); - } - :host([variant="${bt.ChangeDirectly}"]) { - --${n}-variant: var(--color-change-directly-modified); - --${n}-variant-lucid: var(--color-change-directly-modified-5); - --${n}-variant-light: var(--color-change-directly-modified-100); - --${n}-variant-dark: var(--color-change-directly-modified-800); - } - :host([variant="${bt.ChangeIndirectly}"]) { - --${n}-variant: var(--color-change-indirectly-modified); - --${n}-variant-lucid: var(--color-change-indirectly-modified-5); - --${n}-variant-light: var(--color-change-indirectly-modified-100); - --${n}-variant-dark: var(--color-change-indirectly-modified-800); - } - :host([variant="${bt.ChangeMetadata}"]) { - --${n}-variant: var(--color-change-metadata); - --${n}-variant-lucid: var(--color-change-metadata-5); - --${n}-variant-light: var(--color-change-metadata-100); - --${n}-variant-dark: var(--color-change-metadata-800); - } - :host([variant="${bt.Backfill}"]) { - --${n}-variant: var(--color-backfill); - --${n}-variant-lucid: var(--color-backfill-5); - --${n}-variant-light: var(--color-backfill-100); - --${n}-variant-dark: var(--color-backfill-800); - } - :host([variant="${bt.Model}"]), - :host([variant="${bt.Primary}"]) { - --${n}-variant: var(--color-deep-blue); - --${n}-variant-lucid: var(--color-deep-blue-5); - --${n}-variant-light: var(--color-deep-blue-100); - --${n}-variant-dark: var(--color-deep-blue-800); - } - :host([variant="${bt.Plan}"]) { - --${n}-variant: var(--color-plan); - --${n}-variant-lucid: var(--color-plan-5); - --${n}-variant-light: var(--color-plan-100); - --${n}-variant-dark: var(--color-plan-800); - } - :host([variant="${bt.Run}"]) { - --${n}-variant: var(--color-run); - --${n}-variant-lucid: var(--color-run-5); - --${n}-variant-light: var(--color-run-100); - --${n}-variant-dark: var(--color-run-800); - } - :host([variant="${bt.Environment}"]) { - --${n}-variant: var(--color-environment); - --${n}-variant-lucid: var(--color-environment-5); - --${n}-variant-light: var(--color-environment-100); - --${n}-variant-dark: var(--color-environment-800); - } - :host([variant="${bt.Progress}"]), - :host([variant="${bt.InProgress}"]) { - --${n}-variant: var(--color-status-progress); - --${n}-variant-lucid: var(--color-status-progress-5); - --${n}-variant-light: var(--color-status-progress-100); - --${n}-variant-dark: var(--color-status-progress-800); - } - `) -} -function Fw(n = '') { - return dt(` - :host([inverse]) { - --${n}-background: var(--color-variant); - --${n}-color: var(--color-variant-light); - } - `) -} -function Hw(n = '') { - return dt(` - :host([ghost]:not([inverse])) { - --${n}-background: transparent; - } - :host([disabled][ghost]:not([inverse])) { - --${n}-background: var(--color-variant-light); - } - `) -} -function Ww(n = '') { - return dt(` - :host(:hover:not([disabled])) { - --${n}-background: var(--color-variant-125); - } - :host(:active:not([disabled])) { - --${n}-background: var(--color-variant-150); - } - :host([inverse]:hover:not([disabled])) { - --${n}-background: var(--color-variant-525); - } - :host([inverse]:active:not([disabled])) { - --${n}-background: var(--color-variant-550); - } - `) -} -function ui(n = '', r) { - return dt(` - :host([shape="${Ke.Rect}"]) { - --${n}-radius: 0; - } - :host([shape="${Ke.Round}"]) { - --${n}-radius: var(--from-input-radius, var(--radius-xs)); - } - :host([shape="${Ke.Pill}"]) { - --${n}-radius: calc(var(--${n}-font-size) * 2); - } - :host([shape="${Ke.Circle}"]) { - --${n}-width: calc(var(--${n}-font-size) * 2); - --${n}-height: calc(var(--${n}-font-size) * 2); - --${n}-padding-y: 0; - --${n}-padding-x: 0; - --${n}-radius: 100%; - } - :host([shape="${Ke.Square}"]) { - --${n}-width: calc(var(--${n}-font-size) * 2); - --${n}-height: calc(var(--${n}-font-size) * 2); - --${n}-padding-y: 0; - --${n}-padding-x: 0; - --${n}-radius: 0; - } - `) -} -function qw() { - return dt(` - :host([side="${Qe.Left}"]) { - --text-align: left; - } - :host([side="${Qe.Center}"]) { - --text-align: center; - } - :host([side="${Qe.Right}"]) { - --text-align: right; - } - `) -} -function Yw() { - return dt(` - :host([shadow]) { - --shadow: 0 1px var(--half) 0 var(--color-variant-shadow); - } - `) -} -function Gw() { - return dt(` - :host([outline]) { - --shadow-inset: inset 0 0 0 var(--half) var(--color-variant); - } - `) -} -function Kw(n = 'label', r = '') { - return dt(` - ${n} { - font-weight: var(--text-semibold); - color: var(${r ? `--${r}-color` : '--color-gray-700'}); - } - `) -} -function bn(n = 'item', r = 1.25, i = 4) { - return dt(` - :host { - --${n}-padding-x: round(up, calc(var(--${n}-font-size) / ${r} * var(--padding-x-factor, 1)), var(--half)); - --${n}-padding-y: round(up, calc(var(--${n}-font-size) / ${i} * var(--padding-y-factor, 1)), var(--half)); - } - `) -} -function Vw(n = '') { - return dt(` - :host([horizontal="compact"]) { - --padding-x-factor: 0.5; - } - :host([horizontal="wide"]) { - --padding-x-factor: 1.5; - } - :host([horizontal="full"]) { - --${n}-width: 100%; - width: var(--${n}-width); - } - :host([vertical="tall"]) { - --padding-y-factor: 1.25; - } - :host([vertical="short"]) { - --padding-y-factor: 0.75; - } - :host([vertical="full"]) { - --${n}-height: 100%; - height: var(--${n}-height); - } - `) -} -function ce(n) { - const r = n ? `--${n}-font-size` : '--font-size', - i = n ? `--${n}-font-weight` : '--font-size' - return dt(` - :host { - ${i}: var(--text-medium); - ${r}: var(--text-s); - } - :host([size="${Pt.XXS}"]) { - ${i}: var(--text-semibold); - ${r}: var(--text-2xs); - } - :host([size="${Pt.XS}"]) { - ${i}: var(--text-semibold); - ${r}: var(--text-xs); - } - :host([size="${Pt.S}"]) { - ${i}: var(--text-medium); - ${r}: var(--text-s); - } - :host([size="${Pt.M}"]) { - ${i}: var(--text-medium); - ${r}: var(--text-m); - } - :host([size="${Pt.L}"]) { - ${i}: var(--text-normal); - ${r}: var(--text-l); - } - :host([size="${Pt.XL}"]) { - ${i}: var(--text-normal); - ${r}: var(--text-xl); - } - :host([size="${Pt.XXL}"]) { - ${i}: var(--text-normal); - ${r}: var(--text-2xl); - } - `) -} -vh('heroicons', { - resolver: n => - `https://cdn.jsdelivr.net/npm/heroicons@2.1.5/24/outline/${n}.svg`, -}) -vh('heroicons-micro', { - resolver: n => - `https://cdn.jsdelivr.net/npm/heroicons@2.1.5/16/solid/${n}.svg`, -}) -class Mu extends mn(Re, Eo) {} -Y(Mu, 'styles', [Re.styles, It()]), - Y(Mu, 'properties', { - ...Re.properties, - }) -const ue = mn(), - Xw = `:host { - --badge-font-size: var(--font-size); - --badge-font-family: var(--font-mono); - --badge-color: var(--badge-variant); - --badge-background: var(--badge-variant-lucid); - - display: inline-flex; - border-radius: var(--badge-radius); - background: var(--badge-background); - color: var(--badge-color); - font-family: var(--badge-font-family); -} -[part='base'] { - margin: 0; - padding: var(--badge-padding-y) var(--badge-padding-x); - display: flex; - align-items: center; - font-size: var(--badge-font-size); - line-height: 1; - border-radius: var(--badge-radius); - text-align: center; - white-space: nowrap; -} -` -class Iu extends ue { - constructor() { - super(), - (this.size = Pt.M), - (this.variant = bt.Neutral), - (this.shape = Ke.Round) - } - render() { - return X` - - - - ` - } -} -Y(Iu, 'styles', [ - It(), - ce(), - Ar('badge'), - Kw('[part="base"]', 'badge'), - Fw('badge'), - Hw('badge'), - ui('badge'), - bn('badge', 1.75, 4), - Yw(), - Gw(), - dt(Xw), -]), - Y(Iu, 'properties', { - size: { type: String, reflect: !0 }, - variant: { type: String, reflect: !0 }, - shape: { type: String, reflect: !0 }, - }) -var Zw = en` - :host { - --max-width: 20rem; - --hide-delay: 0ms; - --show-delay: 150ms; - - display: contents; - } - - .tooltip { - --arrow-size: var(--sl-tooltip-arrow-size); - --arrow-color: var(--sl-tooltip-background-color); - } - - .tooltip::part(popup) { - z-index: var(--sl-z-index-tooltip); - } - - .tooltip[placement^='top']::part(popup) { - transform-origin: bottom; - } - - .tooltip[placement^='bottom']::part(popup) { - transform-origin: top; - } - - .tooltip[placement^='left']::part(popup) { - transform-origin: right; - } - - .tooltip[placement^='right']::part(popup) { - transform-origin: left; - } - - .tooltip__body { - display: block; - width: max-content; - max-width: var(--max-width); - border-radius: var(--sl-tooltip-border-radius); - background-color: var(--sl-tooltip-background-color); - font-family: var(--sl-tooltip-font-family); - font-size: var(--sl-tooltip-font-size); - font-weight: var(--sl-tooltip-font-weight); - line-height: var(--sl-tooltip-line-height); - text-align: start; - white-space: normal; - color: var(--sl-tooltip-color); - padding: var(--sl-tooltip-padding); - pointer-events: none; - user-select: none; - -webkit-user-select: none; - } -`, - jw = en` - :host { - --arrow-color: var(--sl-color-neutral-1000); - --arrow-size: 6px; - - /* - * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant - * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating. - */ - --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071); - --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size)); - - display: contents; - } - - .popup { - position: absolute; - isolation: isolate; - max-width: var(--auto-size-available-width, none); - max-height: var(--auto-size-available-height, none); - } - - .popup--fixed { - position: fixed; - } - - .popup:not(.popup--active) { - display: none; - } - - .popup__arrow { - position: absolute; - width: calc(var(--arrow-size-diagonal) * 2); - height: calc(var(--arrow-size-diagonal) * 2); - rotate: 45deg; - background: var(--arrow-color); - z-index: -1; - } - - /* Hover bridge */ - .popup-hover-bridge:not(.popup-hover-bridge--visible) { - display: none; - } - - .popup-hover-bridge { - position: fixed; - z-index: calc(var(--sl-z-index-dropdown) - 1); - top: 0; - right: 0; - bottom: 0; - left: 0; - clip-path: polygon( - var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0), - var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0), - var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0), - var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0) - ); - } -` -const ua = /* @__PURE__ */ new Set(), - Jw = new MutationObserver(Nh), - br = /* @__PURE__ */ new Map() -let Dh = document.documentElement.dir || 'ltr', - Bh = document.documentElement.lang || navigator.language, - Kn -Jw.observe(document.documentElement, { - attributes: !0, - attributeFilter: ['dir', 'lang'], -}) -function Uh(...n) { - n.map(r => { - const i = r.$code.toLowerCase() - br.has(i) - ? br.set(i, Object.assign(Object.assign({}, br.get(i)), r)) - : br.set(i, r), - Kn || (Kn = r) - }), - Nh() -} -function Nh() { - ;(Dh = document.documentElement.dir || 'ltr'), - (Bh = document.documentElement.lang || navigator.language), - [...ua.keys()].map(n => { - typeof n.requestUpdate == 'function' && n.requestUpdate() - }) -} -let Qw = class { - constructor(r) { - ;(this.host = r), this.host.addController(this) - } - hostConnected() { - ua.add(this.host) - } - hostDisconnected() { - ua.delete(this.host) - } - dir() { - return `${this.host.dir || Dh}`.toLowerCase() - } - lang() { - return `${this.host.lang || Bh}`.toLowerCase() - } - getTranslationData(r) { - var i, a - const l = new Intl.Locale(r.replace(/_/g, '-')), - d = l == null ? void 0 : l.language.toLowerCase(), - f = - (a = - (i = l == null ? void 0 : l.region) === null || i === void 0 - ? void 0 - : i.toLowerCase()) !== null && a !== void 0 - ? a - : '', - v = br.get(`${d}-${f}`), - m = br.get(d) - return { locale: l, language: d, region: f, primary: v, secondary: m } - } - exists(r, i) { - var a - const { primary: l, secondary: d } = this.getTranslationData( - (a = i.lang) !== null && a !== void 0 ? a : this.lang(), - ) - return ( - (i = Object.assign({ includeFallback: !1 }, i)), - !!((l && l[r]) || (d && d[r]) || (i.includeFallback && Kn && Kn[r])) - ) - } - term(r, ...i) { - const { primary: a, secondary: l } = this.getTranslationData(this.lang()) - let d - if (a && a[r]) d = a[r] - else if (l && l[r]) d = l[r] - else if (Kn && Kn[r]) d = Kn[r] - else - return console.error(`No translation found for: ${String(r)}`), String(r) - return typeof d == 'function' ? d(...i) : d - } - date(r, i) { - return (r = new Date(r)), new Intl.DateTimeFormat(this.lang(), i).format(r) - } - number(r, i) { - return ( - (r = Number(r)), - isNaN(r) ? '' : new Intl.NumberFormat(this.lang(), i).format(r) - ) - } - relativeTime(r, i, a) { - return new Intl.RelativeTimeFormat(this.lang(), a).format(r, i) - } -} -var Fh = { - $code: 'en', - $name: 'English', - $dir: 'ltr', - carousel: 'Carousel', - clearEntry: 'Clear entry', - close: 'Close', - copied: 'Copied', - copy: 'Copy', - currentValue: 'Current value', - error: 'Error', - goToSlide: (n, r) => `Go to slide ${n} of ${r}`, - hidePassword: 'Hide password', - loading: 'Loading', - nextSlide: 'Next slide', - numOptionsSelected: n => - n === 0 - ? 'No options selected' - : n === 1 - ? '1 option selected' - : `${n} options selected`, - previousSlide: 'Previous slide', - progress: 'Progress', - remove: 'Remove', - resize: 'Resize', - scrollToEnd: 'Scroll to end', - scrollToStart: 'Scroll to start', - selectAColorFromTheScreen: 'Select a color from the screen', - showPassword: 'Show password', - slideNum: n => `Slide ${n}`, - toggleColorFormat: 'Toggle color format', -} -Uh(Fh) -var t$ = Fh, - hi = class extends Qw {} -Uh(t$) -const Pn = Math.min, - we = Math.max, - mo = Math.round, - oo = Math.floor, - Rn = n => ({ - x: n, - y: n, - }), - e$ = { - left: 'right', - right: 'left', - bottom: 'top', - top: 'bottom', - }, - n$ = { - start: 'end', - end: 'start', - } -function ha(n, r, i) { - return we(n, Pn(r, i)) -} -function Er(n, r) { - return typeof n == 'function' ? n(r) : n -} -function Ln(n) { - return n.split('-')[0] -} -function kr(n) { - return n.split('-')[1] -} -function Hh(n) { - return n === 'x' ? 'y' : 'x' -} -function Sa(n) { - return n === 'y' ? 'height' : 'width' -} -function di(n) { - return ['top', 'bottom'].includes(Ln(n)) ? 'y' : 'x' -} -function Ca(n) { - return Hh(di(n)) -} -function r$(n, r, i) { - i === void 0 && (i = !1) - const a = kr(n), - l = Ca(n), - d = Sa(l) - let f = - l === 'x' - ? a === (i ? 'end' : 'start') - ? 'right' - : 'left' - : a === 'start' - ? 'bottom' - : 'top' - return r.reference[d] > r.floating[d] && (f = bo(f)), [f, bo(f)] -} -function i$(n) { - const r = bo(n) - return [da(n), r, da(r)] -} -function da(n) { - return n.replace(/start|end/g, r => n$[r]) -} -function o$(n, r, i) { - const a = ['left', 'right'], - l = ['right', 'left'], - d = ['top', 'bottom'], - f = ['bottom', 'top'] - switch (n) { - case 'top': - case 'bottom': - return i ? (r ? l : a) : r ? a : l - case 'left': - case 'right': - return r ? d : f - default: - return [] - } -} -function s$(n, r, i, a) { - const l = kr(n) - let d = o$(Ln(n), i === 'start', a) - return l && ((d = d.map(f => f + '-' + l)), r && (d = d.concat(d.map(da)))), d -} -function bo(n) { - return n.replace(/left|right|bottom|top/g, r => e$[r]) -} -function a$(n) { - return { - top: 0, - right: 0, - bottom: 0, - left: 0, - ...n, - } -} -function Wh(n) { - return typeof n != 'number' - ? a$(n) - : { - top: n, - right: n, - bottom: n, - left: n, - } -} -function yo(n) { - return { - ...n, - top: n.y, - left: n.x, - right: n.x + n.width, - bottom: n.y + n.height, - } -} -function Du(n, r, i) { - let { reference: a, floating: l } = n - const d = di(r), - f = Ca(r), - v = Sa(f), - m = Ln(r), - _ = d === 'y', - k = a.x + a.width / 2 - l.width / 2, - C = a.y + a.height / 2 - l.height / 2, - F = a[v] / 2 - l[v] / 2 - let T - switch (m) { - case 'top': - T = { - x: k, - y: a.y - l.height, - } - break - case 'bottom': - T = { - x: k, - y: a.y + a.height, - } - break - case 'right': - T = { - x: a.x + a.width, - y: C, - } - break - case 'left': - T = { - x: a.x - l.width, - y: C, - } - break - default: - T = { - x: a.x, - y: a.y, - } - } - switch (kr(r)) { - case 'start': - T[f] -= F * (i && _ ? -1 : 1) - break - case 'end': - T[f] += F * (i && _ ? -1 : 1) - break - } - return T -} -const l$ = async (n, r, i) => { - const { - placement: a = 'bottom', - strategy: l = 'absolute', - middleware: d = [], - platform: f, - } = i, - v = d.filter(Boolean), - m = await (f.isRTL == null ? void 0 : f.isRTL(r)) - let _ = await f.getElementRects({ - reference: n, - floating: r, - strategy: l, - }), - { x: k, y: C } = Du(_, a, m), - F = a, - T = {}, - z = 0 - for (let w = 0; w < v.length; w++) { - const { name: x, fn: P } = v[w], - { - x: G, - y: U, - data: it, - reset: J, - } = await P({ - x: k, - y: C, - initialPlacement: a, - placement: F, - strategy: l, - middlewareData: T, - rects: _, - platform: f, - elements: { - reference: n, - floating: r, - }, - }) - if ( - ((k = G ?? k), - (C = U ?? C), - (T = { - ...T, - [x]: { - ...T[x], - ...it, - }, - }), - J && z <= 50) - ) { - z++, - typeof J == 'object' && - (J.placement && (F = J.placement), - J.rects && - (_ = - J.rects === !0 - ? await f.getElementRects({ - reference: n, - floating: r, - strategy: l, - }) - : J.rects), - ({ x: k, y: C } = Du(_, F, m))), - (w = -1) - continue - } - } - return { - x: k, - y: C, - placement: F, - strategy: l, - middlewareData: T, - } -} -async function Aa(n, r) { - var i - r === void 0 && (r = {}) - const { x: a, y: l, platform: d, rects: f, elements: v, strategy: m } = n, - { - boundary: _ = 'clippingAncestors', - rootBoundary: k = 'viewport', - elementContext: C = 'floating', - altBoundary: F = !1, - padding: T = 0, - } = Er(r, n), - z = Wh(T), - x = v[F ? (C === 'floating' ? 'reference' : 'floating') : C], - P = yo( - await d.getClippingRect({ - element: - (i = await (d.isElement == null ? void 0 : d.isElement(x))) == null || - i - ? x - : x.contextElement || - (await (d.getDocumentElement == null - ? void 0 - : d.getDocumentElement(v.floating))), - boundary: _, - rootBoundary: k, - strategy: m, - }), - ), - G = - C === 'floating' - ? { - ...f.floating, - x: a, - y: l, - } - : f.reference, - U = await (d.getOffsetParent == null - ? void 0 - : d.getOffsetParent(v.floating)), - it = (await (d.isElement == null ? void 0 : d.isElement(U))) - ? (await (d.getScale == null ? void 0 : d.getScale(U))) || { - x: 1, - y: 1, - } - : { - x: 1, - y: 1, - }, - J = yo( - d.convertOffsetParentRelativeRectToViewportRelativeRect - ? await d.convertOffsetParentRelativeRectToViewportRelativeRect({ - rect: G, - offsetParent: U, - strategy: m, - }) - : G, - ) - return { - top: (P.top - J.top + z.top) / it.y, - bottom: (J.bottom - P.bottom + z.bottom) / it.y, - left: (P.left - J.left + z.left) / it.x, - right: (J.right - P.right + z.right) / it.x, - } -} -const c$ = n => ({ - name: 'arrow', - options: n, - async fn(r) { - const { - x: i, - y: a, - placement: l, - rects: d, - platform: f, - elements: v, - middlewareData: m, - } = r, - { element: _, padding: k = 0 } = Er(n, r) || {} - if (_ == null) return {} - const C = Wh(k), - F = { - x: i, - y: a, - }, - T = Ca(l), - z = Sa(T), - w = await f.getDimensions(_), - x = T === 'y', - P = x ? 'top' : 'left', - G = x ? 'bottom' : 'right', - U = x ? 'clientHeight' : 'clientWidth', - it = d.reference[z] + d.reference[T] - F[T] - d.floating[z], - J = F[T] - d.reference[T], - q = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(_)) - let I = q ? q[U] : 0 - ;(!I || !(await (f.isElement == null ? void 0 : f.isElement(q)))) && - (I = v.floating[U] || d.floating[z]) - const L = it / 2 - J / 2, - nt = I / 2 - w[z] / 2 - 1, - ot = Pn(C[P], nt), - j = Pn(C[G], nt), - mt = ot, - Et = I - w[z] - j, - W = I / 2 - w[z] / 2 + L, - D = ha(mt, W, Et), - M = - !m.arrow && - kr(l) != null && - W != D && - d.reference[z] / 2 - (W < mt ? ot : j) - w[z] / 2 < 0, - H = M ? (W < mt ? W - mt : W - Et) : 0 - return { - [T]: F[T] + H, - data: { - [T]: D, - centerOffset: W - D - H, - ...(M && { - alignmentOffset: H, - }), - }, - reset: M, - } - }, - }), - u$ = function (n) { - return ( - n === void 0 && (n = {}), - { - name: 'flip', - options: n, - async fn(r) { - var i, a - const { - placement: l, - middlewareData: d, - rects: f, - initialPlacement: v, - platform: m, - elements: _, - } = r, - { - mainAxis: k = !0, - crossAxis: C = !0, - fallbackPlacements: F, - fallbackStrategy: T = 'bestFit', - fallbackAxisSideDirection: z = 'none', - flipAlignment: w = !0, - ...x - } = Er(n, r) - if ((i = d.arrow) != null && i.alignmentOffset) return {} - const P = Ln(l), - G = Ln(v) === v, - U = await (m.isRTL == null ? void 0 : m.isRTL(_.floating)), - it = F || (G || !w ? [bo(v)] : i$(v)) - !F && z !== 'none' && it.push(...s$(v, w, z, U)) - const J = [v, ...it], - q = await Aa(r, x), - I = [] - let L = ((a = d.flip) == null ? void 0 : a.overflows) || [] - if ((k && I.push(q[P]), C)) { - const mt = r$(l, f, U) - I.push(q[mt[0]], q[mt[1]]) - } - if ( - ((L = [ - ...L, - { - placement: l, - overflows: I, - }, - ]), - !I.every(mt => mt <= 0)) - ) { - var nt, ot - const mt = (((nt = d.flip) == null ? void 0 : nt.index) || 0) + 1, - Et = J[mt] - if (Et) - return { - data: { - index: mt, - overflows: L, - }, - reset: { - placement: Et, - }, - } - let W = - (ot = L.filter(D => D.overflows[0] <= 0).sort( - (D, M) => D.overflows[1] - M.overflows[1], - )[0]) == null - ? void 0 - : ot.placement - if (!W) - switch (T) { - case 'bestFit': { - var j - const D = - (j = L.map(M => [ - M.placement, - M.overflows.filter(H => H > 0).reduce((H, B) => H + B, 0), - ]).sort((M, H) => M[1] - H[1])[0]) == null - ? void 0 - : j[0] - D && (W = D) - break - } - case 'initialPlacement': - W = v - break - } - if (l !== W) - return { - reset: { - placement: W, - }, - } - } - return {} - }, - } - ) - } -async function h$(n, r) { - const { placement: i, platform: a, elements: l } = n, - d = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), - f = Ln(i), - v = kr(i), - m = di(i) === 'y', - _ = ['left', 'top'].includes(f) ? -1 : 1, - k = d && m ? -1 : 1, - C = Er(r, n) - let { - mainAxis: F, - crossAxis: T, - alignmentAxis: z, - } = typeof C == 'number' - ? { - mainAxis: C, - crossAxis: 0, - alignmentAxis: null, - } - : { - mainAxis: 0, - crossAxis: 0, - alignmentAxis: null, - ...C, - } - return ( - v && typeof z == 'number' && (T = v === 'end' ? z * -1 : z), - m - ? { - x: T * k, - y: F * _, - } - : { - x: F * _, - y: T * k, - } - ) -} -const d$ = function (n) { - return ( - n === void 0 && (n = 0), - { - name: 'offset', - options: n, - async fn(r) { - const { x: i, y: a } = r, - l = await h$(r, n) - return { - x: i + l.x, - y: a + l.y, - data: l, - } - }, - } - ) - }, - f$ = function (n) { - return ( - n === void 0 && (n = {}), - { - name: 'shift', - options: n, - async fn(r) { - const { x: i, y: a, placement: l } = r, - { - mainAxis: d = !0, - crossAxis: f = !1, - limiter: v = { - fn: x => { - let { x: P, y: G } = x - return { - x: P, - y: G, - } - }, - }, - ...m - } = Er(n, r), - _ = { - x: i, - y: a, - }, - k = await Aa(r, m), - C = di(Ln(l)), - F = Hh(C) - let T = _[F], - z = _[C] - if (d) { - const x = F === 'y' ? 'top' : 'left', - P = F === 'y' ? 'bottom' : 'right', - G = T + k[x], - U = T - k[P] - T = ha(G, T, U) - } - if (f) { - const x = C === 'y' ? 'top' : 'left', - P = C === 'y' ? 'bottom' : 'right', - G = z + k[x], - U = z - k[P] - z = ha(G, z, U) - } - const w = v.fn({ - ...r, - [F]: T, - [C]: z, - }) - return { - ...w, - data: { - x: w.x - i, - y: w.y - a, - }, - } - }, - } - ) - }, - Bu = function (n) { - return ( - n === void 0 && (n = {}), - { - name: 'size', - options: n, - async fn(r) { - const { placement: i, rects: a, platform: l, elements: d } = r, - { apply: f = () => {}, ...v } = Er(n, r), - m = await Aa(r, v), - _ = Ln(i), - k = kr(i), - C = di(i) === 'y', - { width: F, height: T } = a.floating - let z, w - _ === 'top' || _ === 'bottom' - ? ((z = _), - (w = - k === - ((await (l.isRTL == null ? void 0 : l.isRTL(d.floating))) - ? 'start' - : 'end') - ? 'left' - : 'right')) - : ((w = _), (z = k === 'end' ? 'top' : 'bottom')) - const x = T - m[z], - P = F - m[w], - G = !r.middlewareData.shift - let U = x, - it = P - if (C) { - const q = F - m.left - m.right - it = k || G ? Pn(P, q) : q - } else { - const q = T - m.top - m.bottom - U = k || G ? Pn(x, q) : q - } - if (G && !k) { - const q = we(m.left, 0), - I = we(m.right, 0), - L = we(m.top, 0), - nt = we(m.bottom, 0) - C - ? (it = - F - 2 * (q !== 0 || I !== 0 ? q + I : we(m.left, m.right))) - : (U = - T - 2 * (L !== 0 || nt !== 0 ? L + nt : we(m.top, m.bottom))) - } - await f({ - ...r, - availableWidth: it, - availableHeight: U, - }) - const J = await l.getDimensions(d.floating) - return F !== J.width || T !== J.height - ? { - reset: { - rects: !0, - }, - } - : {} - }, - } - ) - } -function Mn(n) { - return qh(n) ? (n.nodeName || '').toLowerCase() : '#document' -} -function $e(n) { - var r - return ( - (n == null || (r = n.ownerDocument) == null ? void 0 : r.defaultView) || - window - ) -} -function yn(n) { - var r - return (r = (qh(n) ? n.ownerDocument : n.document) || window.document) == null - ? void 0 - : r.documentElement -} -function qh(n) { - return n instanceof Node || n instanceof $e(n).Node -} -function gn(n) { - return n instanceof Element || n instanceof $e(n).Element -} -function tn(n) { - return n instanceof HTMLElement || n instanceof $e(n).HTMLElement -} -function Uu(n) { - return typeof ShadowRoot > 'u' - ? !1 - : n instanceof ShadowRoot || n instanceof $e(n).ShadowRoot -} -function fi(n) { - const { overflow: r, overflowX: i, overflowY: a, display: l } = Me(n) - return ( - /auto|scroll|overlay|hidden|clip/.test(r + a + i) && - !['inline', 'contents'].includes(l) - ) -} -function p$(n) { - return ['table', 'td', 'th'].includes(Mn(n)) -} -function Ea(n) { - const r = ka(), - i = Me(n) - return ( - i.transform !== 'none' || - i.perspective !== 'none' || - (i.containerType ? i.containerType !== 'normal' : !1) || - (!r && (i.backdropFilter ? i.backdropFilter !== 'none' : !1)) || - (!r && (i.filter ? i.filter !== 'none' : !1)) || - ['transform', 'perspective', 'filter'].some(a => - (i.willChange || '').includes(a), - ) || - ['paint', 'layout', 'strict', 'content'].some(a => - (i.contain || '').includes(a), - ) - ) -} -function g$(n) { - let r = wr(n) - for (; tn(r) && !ko(r); ) { - if (Ea(r)) return r - r = wr(r) - } - return null -} -function ka() { - return typeof CSS > 'u' || !CSS.supports - ? !1 - : CSS.supports('-webkit-backdrop-filter', 'none') -} -function ko(n) { - return ['html', 'body', '#document'].includes(Mn(n)) -} -function Me(n) { - return $e(n).getComputedStyle(n) -} -function To(n) { - return gn(n) - ? { - scrollLeft: n.scrollLeft, - scrollTop: n.scrollTop, - } - : { - scrollLeft: n.pageXOffset, - scrollTop: n.pageYOffset, - } -} -function wr(n) { - if (Mn(n) === 'html') return n - const r = - // Step into the shadow DOM of the parent of a slotted node. - n.assignedSlot || // DOM Element detected. - n.parentNode || // ShadowRoot detected. - (Uu(n) && n.host) || // Fallback. - yn(n) - return Uu(r) ? r.host : r -} -function Yh(n) { - const r = wr(n) - return ko(r) - ? n.ownerDocument - ? n.ownerDocument.body - : n.body - : tn(r) && fi(r) - ? r - : Yh(r) -} -function oi(n, r, i) { - var a - r === void 0 && (r = []), i === void 0 && (i = !0) - const l = Yh(n), - d = l === ((a = n.ownerDocument) == null ? void 0 : a.body), - f = $e(l) - return d - ? r.concat( - f, - f.visualViewport || [], - fi(l) ? l : [], - f.frameElement && i ? oi(f.frameElement) : [], - ) - : r.concat(l, oi(l, [], i)) -} -function Gh(n) { - const r = Me(n) - let i = parseFloat(r.width) || 0, - a = parseFloat(r.height) || 0 - const l = tn(n), - d = l ? n.offsetWidth : i, - f = l ? n.offsetHeight : a, - v = mo(i) !== d || mo(a) !== f - return ( - v && ((i = d), (a = f)), - { - width: i, - height: a, - $: v, - } - ) -} -function Ta(n) { - return gn(n) ? n : n.contextElement -} -function yr(n) { - const r = Ta(n) - if (!tn(r)) return Rn(1) - const i = r.getBoundingClientRect(), - { width: a, height: l, $: d } = Gh(r) - let f = (d ? mo(i.width) : i.width) / a, - v = (d ? mo(i.height) : i.height) / l - return ( - (!f || !Number.isFinite(f)) && (f = 1), - (!v || !Number.isFinite(v)) && (v = 1), - { - x: f, - y: v, - } - ) -} -const v$ = /* @__PURE__ */ Rn(0) -function Kh(n) { - const r = $e(n) - return !ka() || !r.visualViewport - ? v$ - : { - x: r.visualViewport.offsetLeft, - y: r.visualViewport.offsetTop, - } -} -function m$(n, r, i) { - return r === void 0 && (r = !1), !i || (r && i !== $e(n)) ? !1 : r -} -function Qn(n, r, i, a) { - r === void 0 && (r = !1), i === void 0 && (i = !1) - const l = n.getBoundingClientRect(), - d = Ta(n) - let f = Rn(1) - r && (a ? gn(a) && (f = yr(a)) : (f = yr(n))) - const v = m$(d, i, a) ? Kh(d) : Rn(0) - let m = (l.left + v.x) / f.x, - _ = (l.top + v.y) / f.y, - k = l.width / f.x, - C = l.height / f.y - if (d) { - const F = $e(d), - T = a && gn(a) ? $e(a) : a - let z = F.frameElement - for (; z && a && T !== F; ) { - const w = yr(z), - x = z.getBoundingClientRect(), - P = Me(z), - G = x.left + (z.clientLeft + parseFloat(P.paddingLeft)) * w.x, - U = x.top + (z.clientTop + parseFloat(P.paddingTop)) * w.y - ;(m *= w.x), - (_ *= w.y), - (k *= w.x), - (C *= w.y), - (m += G), - (_ += U), - (z = $e(z).frameElement) - } - } - return yo({ - width: k, - height: C, - x: m, - y: _, - }) -} -function b$(n) { - let { rect: r, offsetParent: i, strategy: a } = n - const l = tn(i), - d = yn(i) - if (i === d) return r - let f = { - scrollLeft: 0, - scrollTop: 0, - }, - v = Rn(1) - const m = Rn(0) - if ( - (l || (!l && a !== 'fixed')) && - ((Mn(i) !== 'body' || fi(d)) && (f = To(i)), tn(i)) - ) { - const _ = Qn(i) - ;(v = yr(i)), (m.x = _.x + i.clientLeft), (m.y = _.y + i.clientTop) - } - return { - width: r.width * v.x, - height: r.height * v.y, - x: r.x * v.x - f.scrollLeft * v.x + m.x, - y: r.y * v.y - f.scrollTop * v.y + m.y, - } -} -function y$(n) { - return Array.from(n.getClientRects()) -} -function Vh(n) { - return Qn(yn(n)).left + To(n).scrollLeft -} -function _$(n) { - const r = yn(n), - i = To(n), - a = n.ownerDocument.body, - l = we(r.scrollWidth, r.clientWidth, a.scrollWidth, a.clientWidth), - d = we(r.scrollHeight, r.clientHeight, a.scrollHeight, a.clientHeight) - let f = -i.scrollLeft + Vh(n) - const v = -i.scrollTop - return ( - Me(a).direction === 'rtl' && (f += we(r.clientWidth, a.clientWidth) - l), - { - width: l, - height: d, - x: f, - y: v, - } - ) -} -function w$(n, r) { - const i = $e(n), - a = yn(n), - l = i.visualViewport - let d = a.clientWidth, - f = a.clientHeight, - v = 0, - m = 0 - if (l) { - ;(d = l.width), (f = l.height) - const _ = ka() - ;(!_ || (_ && r === 'fixed')) && ((v = l.offsetLeft), (m = l.offsetTop)) - } - return { - width: d, - height: f, - x: v, - y: m, - } -} -function $$(n, r) { - const i = Qn(n, !0, r === 'fixed'), - a = i.top + n.clientTop, - l = i.left + n.clientLeft, - d = tn(n) ? yr(n) : Rn(1), - f = n.clientWidth * d.x, - v = n.clientHeight * d.y, - m = l * d.x, - _ = a * d.y - return { - width: f, - height: v, - x: m, - y: _, - } -} -function Nu(n, r, i) { - let a - if (r === 'viewport') a = w$(n, i) - else if (r === 'document') a = _$(yn(n)) - else if (gn(r)) a = $$(r, i) - else { - const l = Kh(n) - a = { - ...r, - x: r.x - l.x, - y: r.y - l.y, - } - } - return yo(a) -} -function Xh(n, r) { - const i = wr(n) - return i === r || !gn(i) || ko(i) - ? !1 - : Me(i).position === 'fixed' || Xh(i, r) -} -function x$(n, r) { - const i = r.get(n) - if (i) return i - let a = oi(n, [], !1).filter(v => gn(v) && Mn(v) !== 'body'), - l = null - const d = Me(n).position === 'fixed' - let f = d ? wr(n) : n - for (; gn(f) && !ko(f); ) { - const v = Me(f), - m = Ea(f) - !m && v.position === 'fixed' && (l = null), - ( - d - ? !m && !l - : (!m && - v.position === 'static' && - !!l && - ['absolute', 'fixed'].includes(l.position)) || - (fi(f) && !m && Xh(n, f)) - ) - ? (a = a.filter(k => k !== f)) - : (l = v), - (f = wr(f)) - } - return r.set(n, a), a -} -function S$(n) { - let { element: r, boundary: i, rootBoundary: a, strategy: l } = n - const f = [...(i === 'clippingAncestors' ? x$(r, this._c) : [].concat(i)), a], - v = f[0], - m = f.reduce( - (_, k) => { - const C = Nu(r, k, l) - return ( - (_.top = we(C.top, _.top)), - (_.right = Pn(C.right, _.right)), - (_.bottom = Pn(C.bottom, _.bottom)), - (_.left = we(C.left, _.left)), - _ - ) - }, - Nu(r, v, l), - ) - return { - width: m.right - m.left, - height: m.bottom - m.top, - x: m.left, - y: m.top, - } -} -function C$(n) { - return Gh(n) -} -function A$(n, r, i) { - const a = tn(r), - l = yn(r), - d = i === 'fixed', - f = Qn(n, !0, d, r) - let v = { - scrollLeft: 0, - scrollTop: 0, - } - const m = Rn(0) - if (a || (!a && !d)) - if (((Mn(r) !== 'body' || fi(l)) && (v = To(r)), a)) { - const _ = Qn(r, !0, d, r) - ;(m.x = _.x + r.clientLeft), (m.y = _.y + r.clientTop) - } else l && (m.x = Vh(l)) - return { - x: f.left + v.scrollLeft - m.x, - y: f.top + v.scrollTop - m.y, - width: f.width, - height: f.height, - } -} -function Fu(n, r) { - return !tn(n) || Me(n).position === 'fixed' ? null : r ? r(n) : n.offsetParent -} -function Zh(n, r) { - const i = $e(n) - if (!tn(n)) return i - let a = Fu(n, r) - for (; a && p$(a) && Me(a).position === 'static'; ) a = Fu(a, r) - return a && - (Mn(a) === 'html' || - (Mn(a) === 'body' && Me(a).position === 'static' && !Ea(a))) - ? i - : a || g$(n) || i -} -const E$ = async function (n) { - let { reference: r, floating: i, strategy: a } = n - const l = this.getOffsetParent || Zh, - d = this.getDimensions - return { - reference: A$(r, await l(i), a), - floating: { - x: 0, - y: 0, - ...(await d(i)), - }, - } -} -function k$(n) { - return Me(n).direction === 'rtl' -} -const co = { - convertOffsetParentRelativeRectToViewportRelativeRect: b$, - getDocumentElement: yn, - getClippingRect: S$, - getOffsetParent: Zh, - getElementRects: E$, - getClientRects: y$, - getDimensions: C$, - getScale: yr, - isElement: gn, - isRTL: k$, -} -function T$(n, r) { - let i = null, - a - const l = yn(n) - function d() { - clearTimeout(a), i && i.disconnect(), (i = null) - } - function f(v, m) { - v === void 0 && (v = !1), m === void 0 && (m = 1), d() - const { left: _, top: k, width: C, height: F } = n.getBoundingClientRect() - if ((v || r(), !C || !F)) return - const T = oo(k), - z = oo(l.clientWidth - (_ + C)), - w = oo(l.clientHeight - (k + F)), - x = oo(_), - G = { - rootMargin: -T + 'px ' + -z + 'px ' + -w + 'px ' + -x + 'px', - threshold: we(0, Pn(1, m)) || 1, - } - let U = !0 - function it(J) { - const q = J[0].intersectionRatio - if (q !== m) { - if (!U) return f() - q - ? f(!1, q) - : (a = setTimeout(() => { - f(!1, 1e-7) - }, 100)) - } - U = !1 - } - try { - i = new IntersectionObserver(it, { - ...G, - // Handle