From 59754927aa159dbd7bbcf08125506beb7b71e70b Mon Sep 17 00:00:00 2001 From: Jonas Niesner Date: Sat, 15 Aug 2026 09:54:36 +0200 Subject: [PATCH 1/2] visual designer v2 --- custom_components/opendisplay/__init__.py | 2 + .../opendisplay/designer/__init__.py | 46 + .../opendisplay/designer/capabilities.py | 141 + .../opendisplay/designer/const.py | 6 + .../panel/opendisplay-designer-panel.js | 530 + .../vendor/LICENSE.odl-drawcustom-designer | 202 + .../designer/frontend/vendor/NOTICE | 19 + .../designer/frontend/vendor/js-yaml.mjs | 9 + .../vendor/odl-drawcustom-designer.js | 76538 ++++++++++++++++ .../opendisplay/designer/image_entity.py | 104 + .../opendisplay/designer/panel.py | 113 + custom_components/opendisplay/image.py | 21 +- custom_components/opendisplay/manifest.json | 2 +- 13 files changed, 77728 insertions(+), 5 deletions(-) create mode 100644 custom_components/opendisplay/designer/__init__.py create mode 100644 custom_components/opendisplay/designer/capabilities.py create mode 100644 custom_components/opendisplay/designer/const.py create mode 100644 custom_components/opendisplay/designer/frontend/panel/opendisplay-designer-panel.js create mode 100644 custom_components/opendisplay/designer/frontend/vendor/LICENSE.odl-drawcustom-designer create mode 100644 custom_components/opendisplay/designer/frontend/vendor/NOTICE create mode 100644 custom_components/opendisplay/designer/frontend/vendor/js-yaml.mjs create mode 100644 custom_components/opendisplay/designer/frontend/vendor/odl-drawcustom-designer.js create mode 100644 custom_components/opendisplay/designer/image_entity.py create mode 100644 custom_components/opendisplay/designer/panel.py diff --git a/custom_components/opendisplay/__init__.py b/custom_components/opendisplay/__init__.py index 2adad71..b278b6b 100644 --- a/custom_components/opendisplay/__init__.py +++ b/custom_components/opendisplay/__init__.py @@ -37,6 +37,7 @@ from .const import CONF_CACHED_STATE, CONF_ENCRYPTION_KEY, DOMAIN, SETUP_DEADLINE_S from .coordinator import OpenDisplayCoordinator from .delivery import DeliveryManager +from .designer import async_setup_designer from .services import async_setup_services from .sleep import SleepProfile @@ -200,6 +201,7 @@ def _get_encryption_key(entry: OpenDisplayConfigEntry) -> bytes | None: async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up the OpenDisplay integration.""" async_setup_services(hass) + await async_setup_designer(hass) return True diff --git a/custom_components/opendisplay/designer/__init__.py b/custom_components/opendisplay/designer/__init__.py new file mode 100644 index 0000000..d840fd0 --- /dev/null +++ b/custom_components/opendisplay/designer/__init__.py @@ -0,0 +1,46 @@ +"""OpenDisplay image designer panel.""" + +from __future__ import annotations + +import logging + +from homeassistant.core import HomeAssistant + +from ..const import DOMAIN +from .const import DESIGNER_PANEL_PATH +from .panel import OpenDisplayDesignerStaticView, async_get_panel_module_url + +_LOGGER = logging.getLogger(__name__) + +_DESIGNER_KEY = "designer" + + +async def async_setup_designer(hass: HomeAssistant) -> None: + """Register designer static assets and sidebar panel.""" + hass.data.setdefault(DOMAIN, {}) + designer_data = hass.data[DOMAIN].setdefault(_DESIGNER_KEY, {}) + + if not designer_data.get("views_registered"): + hass.http.register_view(OpenDisplayDesignerStaticView(hass)) + designer_data["views_registered"] = True + _LOGGER.debug("Registered OpenDisplay designer static assets") + + if designer_data.get("panel_registered"): + return + + try: + from homeassistant.components import panel_custom + + await panel_custom.async_register_panel( + hass, + frontend_url_path=DESIGNER_PANEL_PATH, + webcomponent_name="opendisplay-designer-panel", + sidebar_title="OpenDisplay Designer", + sidebar_icon="mdi:monitor-edit", + module_url=await async_get_panel_module_url(hass), + require_admin=False, + ) + designer_data["panel_registered"] = True + _LOGGER.info("OpenDisplay designer panel registered") + except (AttributeError, ImportError, RuntimeError, ValueError) as err: + _LOGGER.warning("Failed to register OpenDisplay designer panel: %s", err) diff --git a/custom_components/opendisplay/designer/capabilities.py b/custom_components/opendisplay/designer/capabilities.py new file mode 100644 index 0000000..0b2d086 --- /dev/null +++ b/custom_components/opendisplay/designer/capabilities.py @@ -0,0 +1,141 @@ +"""Build designer-facing device capability payloads from runtime config.""" + +from __future__ import annotations + +from typing import TYPE_CHECKING, Any + +from epaper_dithering import ColorPalette, ColorScheme +from opendisplay import Rotation +from opendisplay.display_palettes import get_palette_for_display + +from homeassistant.core import HomeAssistant +from homeassistant.helpers import device_registry as dr +from homeassistant.helpers.device_registry import CONNECTION_BLUETOOTH + +if TYPE_CHECKING: + from .. import OpenDisplayConfigEntry + + +def _rotation_degrees(rotation: Rotation | int) -> int: + if isinstance(rotation, Rotation): + return int(rotation.value) + return int(rotation) % 360 + + +def _color_scheme_enum(display: Any) -> ColorScheme: + cs = display.color_scheme_enum + if isinstance(cs, ColorScheme): + return cs + return ColorScheme.from_value(int(cs)) + + +def _palette_for_display(display: Any) -> ColorPalette | ColorScheme: + scheme = _color_scheme_enum(display) + return get_palette_for_display(display.panel_ic_type, scheme) + + +def _palette_color_map(palette: ColorPalette | ColorScheme) -> dict[str, str]: + colors = ( + palette.colors + if isinstance(palette, ColorPalette) + else palette.palette.colors + ) + out: dict[str, str] = {} + for name, rgb in colors.items(): + if not isinstance(rgb, (tuple, list)) or len(rgb) < 3: + continue + r, g, b = (int(rgb[0]), int(rgb[1]), int(rgb[2])) + out[str(name)] = f"#{r:02x}{g:02x}{b:02x}" + return out + + +def _render_dimensions( + pixel_width: int, + pixel_height: int, + base_rotation_deg: int, + user_rotate_deg: int = 0, +) -> tuple[int, int]: + """Match drawcustom canvas sizing for base + user rotation.""" + effective = (base_rotation_deg + user_rotate_deg) % 360 + if effective in (90, 270): + return pixel_height, pixel_width + return pixel_width, pixel_height + + +def resolve_device_id_for_entry( + hass: HomeAssistant, entry: OpenDisplayConfigEntry +) -> str | None: + """Resolve HA device registry id for a config entry.""" + device_registry = dr.async_get(hass) + by_config_entry = getattr( + device_registry.devices, "get_devices_for_config_entry_id", None + ) + if callable(by_config_entry): + devices = by_config_entry(entry.entry_id) + if devices: + return devices[0].id + + mac = entry.unique_id + if not mac: + return None + + for variant in {mac, mac.upper(), mac.lower()}: + device = device_registry.async_get_device( + connections={(CONNECTION_BLUETOOTH, variant)} + ) + if device is not None: + return device.id + device = device_registry.async_get_device( + identifiers={(CONNECTION_BLUETOOTH, variant)} + ) + if device is not None: + return device.id + return None + + +def build_capabilities( + entry: OpenDisplayConfigEntry, + device_id: str, + *, + user_rotate_deg: int = 0, +) -> dict[str, Any]: + """Serialize display capabilities for the designer frontend.""" + display = entry.runtime_data.device_config.displays[0] + scheme_enum = _color_scheme_enum(display) + palette = _palette_for_display(display) + color_map = _palette_color_map(palette) + available_colors = list(color_map.keys()) + base_rotation = _rotation_degrees(display.rotation_enum) + render_w, render_h = _render_dimensions( + display.pixel_width, + display.pixel_height, + base_rotation, + user_rotate_deg, + ) + + measured = isinstance(palette, ColorPalette) + accent = ( + palette.accent + if isinstance(palette, ColorPalette) + else scheme_enum.accent_color + ) + + diagonal = display.screen_diagonal_inches + return { + "device_id": device_id, + "pixel_width": int(display.pixel_width), + "pixel_height": int(display.pixel_height), + "screen_diagonal_inches": float(diagonal) if diagonal is not None else None, + "rotation_degrees": int(base_rotation), + "render_width": int(render_w), + "render_height": int(render_h), + # HostCapabilities.color_scheme expects Basic Standard int (0x00–0x04). + "color_scheme": int(scheme_enum.value), + "color_scheme_name": str(scheme_enum.name), + "color_mode": str(scheme_enum.name), + "panel_ic_type": str(display.panel_ic_type), + "accent_color": str(accent), + "available_colors": available_colors, + "color_map": color_map, + "palette_measured": bool(measured), + } diff --git a/custom_components/opendisplay/designer/const.py b/custom_components/opendisplay/designer/const.py new file mode 100644 index 0000000..1173f99 --- /dev/null +++ b/custom_components/opendisplay/designer/const.py @@ -0,0 +1,6 @@ +"""Designer panel paths and URLs (kept out of integration root const).""" + +from ..const import DOMAIN + +DESIGNER_PANEL_PATH = "opendisplay-designer" +DESIGNER_STATIC_URL = f"/api/{DOMAIN}/designer/static" diff --git a/custom_components/opendisplay/designer/frontend/panel/opendisplay-designer-panel.js b/custom_components/opendisplay/designer/frontend/panel/opendisplay-designer-panel.js new file mode 100644 index 0000000..2bca042 --- /dev/null +++ b/custom_components/opendisplay/designer/frontend/panel/opendisplay-designer-panel.js @@ -0,0 +1,530 @@ +/** + * Home Assistant panel host for the vendored odl-drawcustom-designer embed. + * Mounts the library, pushes device capabilities + entity states, and sends + * drawcustom payloads via hass.callService. + */ +import { mount } from '../vendor/odl-drawcustom-designer.js'; +import yaml from '../vendor/js-yaml.mjs'; + +const TAG = 'opendisplay-designer-panel'; +const VIRTUAL_DEVICE_ID = '__virtual__'; +const DEFAULT_CAPS = { + pixel_width: 296, + pixel_height: 128, + rotation_degrees: 0, + render_width: 296, + render_height: 128, + color_scheme: 0x01, + accent_color: 'red', + available_colors: ['black', 'white', 'red'], + color_map: { + black: '#000000', + white: '#ffffff', + red: '#c53929', + }, + palette_measured: false, +}; + +const HOST_CSS = ` +:host { + display: block; + height: 100%; + min-height: 0; + overflow: hidden; + box-sizing: border-box; + font-family: var(--ha-font-family-body, system-ui, sans-serif); + color: var(--primary-text-color, #1c1917); + background: var(--primary-background-color, #fafaf9); +} +.od-host { + display: flex; + flex-direction: column; + height: 100%; + min-height: 0; +} +.od-toolbar { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.5rem 0.75rem; + padding: 0.5rem 0.75rem; + border-bottom: 1px solid var(--divider-color, #d6d3d1); + background: var(--card-background-color, #fff); + flex: 0 0 auto; +} +.od-toolbar label { + font-size: 0.85rem; + opacity: 0.8; +} +.od-toolbar select, +.od-toolbar button { + font: inherit; + padding: 0.3rem 0.7rem; +} +.od-toolbar button { + cursor: pointer; + border: 1px solid var(--primary-color, #2563eb); + background: var(--primary-color, #2563eb); + color: var(--text-primary-color, #fff); + border-radius: 4px; +} +.od-toolbar button.secondary { + background: transparent; + color: var(--primary-text-color, #1c1917); + border-color: var(--divider-color, #a8a29e); +} +.od-toolbar button:disabled { + opacity: 0.5; + cursor: not-allowed; +} +.od-status { + flex: 1 1 auto; + min-width: 8rem; + font-size: 0.85rem; + opacity: 0.85; +} +.od-mount { + flex: 1 1 auto; + min-height: 0; + height: 100%; +} +`; + +/** + * @param {any} hass + * @returns {Array<{ id: string; name: string }>} + */ +function listOpenDisplayDevices(hass) { + const devices = hass?.devices; + if (!devices || typeof devices !== 'object') return []; + /** @type {Array<{ id: string; name: string }>} */ + const out = []; + for (const [id, d] of Object.entries(devices)) { + if (!d || typeof d !== 'object') continue; + let hit = false; + if (hass?.entities) { + hit = Object.values(hass.entities).some( + (e) => e && e.device_id === id && e.platform === 'opendisplay' + ); + } + if (!hit) { + const ids = /** @type {{ identifiers?: unknown }} */ (d).identifiers; + hit = + Array.isArray(ids) && + ids.some( + (tuple) => Array.isArray(tuple) && tuple[0] === 'opendisplay' + ); + } + if (!hit) continue; + const dn = /** @type {any} */ (d); + const name = String( + dn.name_by_user || dn.name || dn.original_name || id + ).trim(); + out.push({ id, name }); + } + out.sort((a, b) => a.name.localeCompare(b.name)); + out.push({ id: VIRTUAL_DEVICE_ID, name: 'Virtual device' }); + return out; +} + +/** + * @param {any} hass + * @param {string} deviceId + * @returns {string | null} + */ +function imageEntityForDevice(hass, deviceId) { + const reg = hass?.entities; + if (!reg || typeof reg !== 'object') return null; + /** @type {string[]} */ + const imgs = []; + for (const [key, ent] of Object.entries(reg)) { + if (!ent || ent.device_id !== deviceId) continue; + const eid = String(ent.entity_id || key); + if (eid.startsWith('image.')) imgs.push(eid); + } + if (imgs.length === 0) return null; + return ( + imgs.find( + (eid) => Number(hass.states?.[eid]?.attributes?.pixel_width) > 0 + ) ?? imgs[0] + ); +} + +/** + * @param {Record} attrs + */ +function capabilitiesFromAttrs(attrs) { + const pw = Number(attrs.pixel_width) || DEFAULT_CAPS.pixel_width; + const ph = Number(attrs.pixel_height) || DEFAULT_CAPS.pixel_height; + const rw = Number(attrs.render_width) || pw; + const rh = Number(attrs.render_height) || ph; + let colorScheme = attrs.color_scheme; + if (typeof colorScheme === 'string') { + colorScheme = Number(attrs.color_scheme_value); + } + if (typeof colorScheme !== 'number' || Number.isNaN(colorScheme)) { + colorScheme = DEFAULT_CAPS.color_scheme; + } + return { + pixel_width: pw, + pixel_height: ph, + rotation_degrees: Number(attrs.rotation_degrees) || 0, + render_width: rw, + render_height: rh, + color_scheme: colorScheme, + accent_color: String(attrs.accent_color || DEFAULT_CAPS.accent_color), + available_colors: Array.isArray(attrs.available_colors) + ? attrs.available_colors.map(String) + : [...DEFAULT_CAPS.available_colors], + color_map: + attrs.color_map && typeof attrs.color_map === 'object' + ? /** @type {Record} */ (attrs.color_map) + : { ...DEFAULT_CAPS.color_map }, + palette_measured: Boolean(attrs.palette_measured), + }; +} + +/** + * @param {any} hass + */ +function collectStates(hass) { + /** @type {Record }>} */ + const out = {}; + const states = hass?.states; + if (!states || typeof states !== 'object') return out; + for (const [eid, st] of Object.entries(states)) { + if (!st || typeof st !== 'object') continue; + out[eid] = { + state: String(/** @type {any} */ (st).state ?? ''), + attributes: + /** @type {any} */ (st).attributes && + typeof /** @type {any} */ (st).attributes === 'object' + ? { .../** @type {any} */ (st).attributes } + : undefined, + }; + } + return out; +} + +/** + * @param {unknown} err + */ +function errMsg(err) { + if (err && typeof err === 'object') { + const message = Reflect.get(err, 'message'); + const body = Reflect.get(err, 'body'); + let bodyStr = ''; + if (body && typeof body === 'object' && Reflect.get(body, 'message')) { + bodyStr = String(Reflect.get(body, 'message')); + } + return ( + [typeof message === 'string' ? message : '', bodyStr] + .filter(Boolean) + .join(' — ') || 'Error' + ); + } + return String(err); +} + +/** + * @param {string} text + * @returns {unknown[]} + */ +function parsePayloadYaml(text) { + const doc = yaml.load(String(text || '').trim() || '[]'); + if (!Array.isArray(doc)) { + throw new Error('Payload must be a YAML list of draw elements'); + } + return doc; +} + +/** + * @param {any} hass + */ +function resolveTheme(hass) { + const dark = + hass?.themes?.darkMode === true || + (typeof matchMedia === 'function' && + matchMedia('(prefers-color-scheme: dark)').matches); + return dark ? 'dark' : 'light'; +} + +class OpenDisplayDesignerPanel extends HTMLElement { + constructor() { + super(); + /** @type {any} */ + this._hass = null; + /** @type {ReturnType | null} */ + this._handle = null; + /** @type {string} */ + this._deviceId = ''; + /** @type {string} */ + this._lastPayload = '[]\n'; + /** @type {string} */ + this._lastCapsKey = ''; + /** @type {boolean} */ + this._sending = false; + /** @type {ReturnType | null} */ + this._pushTimer = null; + } + + set hass(value) { + this._hass = value; + if (!this.isConnected) return; + this._syncDeviceOptions(); + if (this._pushTimer) clearTimeout(this._pushTimer); + this._pushTimer = setTimeout(() => { + this._pushTimer = null; + this._pushHostData(); + }, 250); + } + + get hass() { + return this._hass; + } + + connectedCallback() { + if (!this.shadowRoot) { + this.attachShadow({ mode: 'open' }); + } + this.style.display = 'block'; + this.style.height = '100%'; + this.style.minHeight = '0'; + this.style.overflow = 'hidden'; + this._renderShell(); + this._mountDesigner(); + this._syncDeviceOptions(); + this._pushHostData(); + } + + disconnectedCallback() { + if (this._pushTimer) { + clearTimeout(this._pushTimer); + this._pushTimer = null; + } + this._handle?.destroy(); + this._handle = null; + } + + _renderShell() { + const root = this.shadowRoot; + if (!root || root.querySelector('.od-host')) return; + root.innerHTML = ` + +
+
+ + + + + +
+
+
+ `; + const select = /** @type {HTMLSelectElement} */ ( + root.getElementById('od-device') + ); + select.addEventListener('change', () => { + this._deviceId = select.value; + this._lastCapsKey = ''; + this._pushHostData(true); + this._updateSendEnabled(); + }); + root.getElementById('od-send')?.addEventListener('click', () => { + void this._sendToDisplay(); + }); + root.getElementById('od-copy')?.addEventListener('click', () => { + void this._copyPayload(); + }); + } + + _setStatus(text, isError = false) { + const el = this.shadowRoot?.getElementById('od-status'); + if (!el) return; + el.textContent = text; + el.style.color = isError + ? 'var(--error-color, #b91c1c)' + : 'var(--primary-text-color, inherit)'; + } + + _updateSendEnabled() { + const btn = /** @type {HTMLButtonElement | null} */ ( + this.shadowRoot?.getElementById('od-send') + ); + if (!btn) return; + const virtual = this._deviceId === VIRTUAL_DEVICE_ID || !this._deviceId; + btn.disabled = this._sending || virtual; + } + + _syncDeviceOptions() { + const select = /** @type {HTMLSelectElement | null} */ ( + this.shadowRoot?.getElementById('od-device') + ); + if (!select) return; + const devices = listOpenDisplayDevices(this._hass); + const prev = this._deviceId || select.value; + select.replaceChildren(); + if (devices.length === 1 && devices[0].id === VIRTUAL_DEVICE_ID) { + const opt = document.createElement('option'); + opt.value = VIRTUAL_DEVICE_ID; + opt.textContent = 'No OpenDisplay devices — virtual display'; + select.append(opt); + } else { + for (const d of devices) { + const opt = document.createElement('option'); + opt.value = d.id; + opt.textContent = d.name; + select.append(opt); + } + } + const ids = devices.map((d) => d.id); + if (prev && ids.includes(prev)) { + select.value = prev; + } else { + const firstReal = ids.find((id) => id !== VIRTUAL_DEVICE_ID); + select.value = firstReal || VIRTUAL_DEVICE_ID; + } + this._deviceId = select.value; + this._updateSendEnabled(); + } + + _mountDesigner() { + if (this._handle) return; + const mountEl = this.shadowRoot?.getElementById('od-mount'); + if (!mountEl) return; + try { + this._handle = mount(mountEl, { + payload: this._lastPayload, + states: collectStates(this._hass), + capabilities: { ...DEFAULT_CAPS }, + lock: false, + theme: resolveTheme(this._hass), + onSaveRequest: (payload) => { + this._lastPayload = String(payload ?? '[]\n'); + this._setStatus('Payload saved — use Send to push to the display'); + void this._copyPayload(true); + }, + }); + this._setStatus( + `Designer ${this._handle.version || 'loaded'}` + ); + } catch (err) { + this._setStatus(`Failed to mount designer: ${errMsg(err)}`, true); + } + } + + /** + * @param {boolean} [forceCaps] + */ + _pushHostData(forceCaps = false) { + if (!this._handle) return; + try { + this._handle.setTheme(resolveTheme(this._hass)); + this._handle.setStates(collectStates(this._hass)); + } catch (err) { + this._setStatus(`State push failed: ${errMsg(err)}`, true); + return; + } + + const deviceId = this._deviceId; + if (!deviceId || deviceId === VIRTUAL_DEVICE_ID) { + const key = 'virtual'; + if (forceCaps || this._lastCapsKey !== key) { + this._lastCapsKey = key; + try { + this._handle.setCapabilities({ ...DEFAULT_CAPS }, { lock: false }); + } catch (err) { + this._setStatus(`Capabilities push failed: ${errMsg(err)}`, true); + } + } + return; + } + + const eid = imageEntityForDevice(this._hass, deviceId); + const attrs = eid ? this._hass?.states?.[eid]?.attributes : null; + if (!attrs || typeof attrs !== 'object') { + if (forceCaps) { + this._setStatus('Waiting for display capability attributes…'); + } + return; + } + const caps = capabilitiesFromAttrs(attrs); + const key = JSON.stringify(caps); + if (!forceCaps && key === this._lastCapsKey) return; + this._lastCapsKey = key; + try { + this._handle.setCapabilities(caps, { lock: true }); + this._setStatus( + `${caps.render_width}×${caps.render_height} · ${caps.accent_color}` + ); + } catch (err) { + this._setStatus(`Capabilities push failed: ${errMsg(err)}`, true); + } + } + + /** + * @param {boolean} [quiet] + */ + async _copyPayload(quiet = false) { + const text = this._lastPayload || '[]\n'; + try { + if (navigator.clipboard?.writeText) { + await navigator.clipboard.writeText(text); + } else { + const ta = document.createElement('textarea'); + ta.value = text; + ta.style.position = 'fixed'; + ta.style.left = '-9999px'; + document.body.append(ta); + ta.select(); + document.execCommand('copy'); + ta.remove(); + } + if (!quiet) this._setStatus('YAML copied to clipboard'); + } catch (err) { + this._setStatus(`Copy failed: ${errMsg(err)}`, true); + } + } + + async _sendToDisplay() { + const hass = this._hass; + const deviceId = this._deviceId; + if (!hass?.callService) { + this._setStatus('Home Assistant connection unavailable', true); + return; + } + if (!deviceId || deviceId === VIRTUAL_DEVICE_ID) { + this._setStatus('Select a real OpenDisplay device to send', true); + return; + } + let payload; + try { + payload = parsePayloadYaml(this._lastPayload); + } catch (err) { + this._setStatus(errMsg(err), true); + return; + } + this._sending = true; + this._updateSendEnabled(); + this._setStatus('Sending drawcustom…'); + try { + await hass.callService( + 'opendisplay', + 'drawcustom', + { payload, background: 'white', dither: 'ordered', refresh_type: 'full' }, + { device_id: deviceId } + ); + this._setStatus(`Sent at ${new Date().toLocaleTimeString()}`); + } catch (err) { + this._setStatus(`Send failed: ${errMsg(err)}`, true); + } finally { + this._sending = false; + this._updateSendEnabled(); + } + } +} + +if (!customElements.get(TAG)) { + customElements.define(TAG, OpenDisplayDesignerPanel); +} diff --git a/custom_components/opendisplay/designer/frontend/vendor/LICENSE.odl-drawcustom-designer b/custom_components/opendisplay/designer/frontend/vendor/LICENSE.odl-drawcustom-designer new file mode 100644 index 0000000..8a4ee77 --- /dev/null +++ b/custom_components/opendisplay/designer/frontend/vendor/LICENSE.odl-drawcustom-designer @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2026 Schlomo Schapiro + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/custom_components/opendisplay/designer/frontend/vendor/NOTICE b/custom_components/opendisplay/designer/frontend/vendor/NOTICE new file mode 100644 index 0000000..d172880 --- /dev/null +++ b/custom_components/opendisplay/designer/frontend/vendor/NOTICE @@ -0,0 +1,19 @@ +ODL/OEPL Drawcustom Designer (vendored) +======================================= + +This integration vendors the embeddable library build of: + + https://github.com/schlomo/odl-drawcustom-designer + +File: designer/frontend/vendor/odl-drawcustom-designer.js +Pinned release: v1.0.2 +License: Apache License 2.0 (see LICENSE.odl-drawcustom-designer) + +Copyright © 2026 Schlomo Schapiro + +js-yaml (vendored for the HA panel host adapter) +================================================ + +File: designer/frontend/vendor/js-yaml.mjs +License: MIT +Homepage: https://github.com/nodeca/js-yaml diff --git a/custom_components/opendisplay/designer/frontend/vendor/js-yaml.mjs b/custom_components/opendisplay/designer/frontend/vendor/js-yaml.mjs new file mode 100644 index 0000000..257f811 --- /dev/null +++ b/custom_components/opendisplay/designer/frontend/vendor/js-yaml.mjs @@ -0,0 +1,9 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0. + * Original file: /npm/js-yaml@4.1.0/dist/js-yaml.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */ +function e(e){return null==e}var t={isNothing:e,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(t){return Array.isArray(t)?t:e(t)?[]:[t]},repeat:function(e,t){var n,i="";for(n=0;nl&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function a(e,n){return t.repeat(" ",n-e.length)+e}var l=function(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),"number"!=typeof n.indent&&(n.indent=1),"number"!=typeof n.linesBefore&&(n.linesBefore=3),"number"!=typeof n.linesAfter&&(n.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,l=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),l.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=l.length-2);s<0&&(s=l.length-1);var u,p,f="",d=Math.min(e.line+n.linesAfter,c.length).toString().length,h=n.maxLength-(n.indent+d+3);for(u=1;u<=n.linesBefore&&!(s-u<0);u++)p=o(e.buffer,l[s-u],c[s-u],e.position-(l[s]-l[s-u]),h),f=t.repeat(" ",n.indent)+a((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=o(e.buffer,l[s],c[s],e.position,h),f+=t.repeat(" ",n.indent)+a((e.line+1).toString(),d)+" | "+p.str+"\n",f+=t.repeat("-",n.indent+d+3+p.pos)+"^\n",u=1;u<=n.linesAfter&&!(s+u>=c.length);u++)p=o(e.buffer,l[s+u],c[s+u],e.position-(l[s]-l[s+u]),h),f+=t.repeat(" ",n.indent)+a((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},c=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];var u=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===c.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===s.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function p(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function f(e){return this.extend(e)}f.prototype.extend=function(e){var t=[],n=[];if(e instanceof u)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof u))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof u))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(f.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=p(i,"implicit"),i.compiledExplicit=p(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),C=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var x=/^[-+]?[0-9]+e/;var I=new u("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!C.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))},represent:function(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";return i=e.toString(10),x.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),O=y.extend({implicit:[b,A,k,I]}),S=O,j=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var N=new u("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==j.exec(e)||null!==T.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=j.exec(e))&&(t=T.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var F=new u("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var L=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=M;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,l=[];for(t=0;t>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=M;for(t=0;t>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),E=Object.prototype.hasOwnProperty,_=Object.prototype.toString;var D=new u("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t>10),56320+(e-65536&1023))}for(var ne=new Array(256),ie=new Array(256),re=0;re<256;re++)ne[re]=ee(re)?1:0,ie[re]=ee(re);function oe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||B,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ae(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=l(n),new r(t,n)}function le(e,t){throw ae(e,t)}function ce(e,t){e.onWarning&&e.onWarning.call(null,ae(e,t))}var se={YAML:function(e,t,n){var i,r,o;null!==e.version&&le(e,"duplication of %YAML directive"),1!==n.length&&le(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&le(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&le(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&ce(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&le(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],G.test(i)||le(e,"ill-formed tag handle (first argument) of the TAG directive"),K.call(e.tagMap,i)&&le(e,'there is a previously declared suffix for "'+i+'" tag handle'),V.test(r)||le(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){le(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function ue(e,t,n,i){var r,o,a,l;if(t1&&(e.result+=t.repeat("\n",n-1))}function ye(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,le(e,"tab characters must not be used in indentation")),45===i)&&z(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,he(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,ve(e,t,3,!1,!0),a.push(e.result),he(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)le(e,"bad indentation of a sequence entry");else if(e.lineIndentn?g=1:e.lineIndent===n?g=0:e.lineIndentn?g=1:e.lineIndent===n?g=0:e.lineIndentt)&&(y&&(a=e.line,l=e.lineStart,c=e.position),ve(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(fe(e,f,d,h,g,m,a,l,c),h=g=m=null),he(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)le(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?le(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?le(e,"repeat of an indentation width identifier"):(p=n+o-1,u=!0)}if(Q(a)){do{a=e.input.charCodeAt(++e.position)}while(Q(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!H(a)&&0!==a)}for(;0!==a;){for(de(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndentp&&(p=e.lineIndent),H(a))f++;else{if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=X(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:le(e,"expected hexadecimal character");e.result+=te(o),e.position++}else le(e,"unknown escape sequence");n=i=e.position}else H(l)?(ue(e,n,i,!0),me(e,he(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ge(e)?le(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}le(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!z(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&le(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),K.call(e.anchorMap,n)||le(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],he(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(z(u=e.input.charCodeAt(e.position))||J(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(z(i=e.input.charCodeAt(e.position+1))||n&&J(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(z(i=e.input.charCodeAt(e.position+1))||n&&J(i))break}else if(35===u){if(z(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&ge(e)||n&&J(u))break;if(H(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,he(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(ue(e,r,o,!1),me(e,e.line-l),r=o=e.position,a=!1),Q(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return ue(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||le(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&ye(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&le(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s"),null!==e.result&&f.kind!==e.kind&&le(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):le(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function we(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(he(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&le(e,"directive name must not be less than one character in length");0!==r;){for(;Q(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!H(r));break}if(H(r))break;for(t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&de(e),K.call(se,n)?se[n](e,n,i):ce(e,'unknown document directive "'+n+'"')}he(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,he(e,!0,-1)):a&&le(e,"directives end mark is expected"),ve(e,e.lineIndent-1,4,!1,!0),he(e,!0,-1),e.checkLineBreaks&&P.test(e.input.slice(o,e.position))&&ce(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ge(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,he(e,!0,-1)):e.position=55296&&i<=56319&&t+1=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Ye(e){return/^\n* /.test(e)}function Re(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=_e(s=Ue(e,0))&&s!==Oe&&!Ee(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!Ee(e)&&58!==e}(Ue(e,e.length-1));if(t||a)for(c=0;c=65536?c+=2:c++){if(!_e(u=Ue(e,c)))return 5;m=m&&qe(u,p,l),p=u}else{for(c=0;c=65536?c+=2:c++){if(10===(u=Ue(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!_e(u))return 5;m=m&&qe(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&Ye(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function Be(e,t,n,i,o){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==je.indexOf(t)||Te.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Re(t,c,e.indent,l,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Ke(t,e.indent)+We(Me(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,Pe(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+Pe(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r=65536?r+=2:r++)i=Ue(e,r),!(t=Se[i])&&_e(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Ne(i);return n}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function Ke(e,t){var n=Ye(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function We(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Pe(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function $e(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function Ve(e,t,n,i,o,a,l){e.tag=null,e.dump=n,Ge(e,n,!1)||Ge(e,n,!0);var c,s=xe.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var o,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(o=0,a=d.length;o1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=Le(e,t)),Ve(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ve(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?$e(e,t-1,e.dump,o):$e(e,t,e.dump,o),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i",e.dump=c+" "+e.dump)}return!0}function Ze(e,t){var n,i,r=[],o=[];for(He(e,r,o),n=0,i=o.length;n () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => { + let r = {}; + for (var i in e) t(r, i, { + get: e[i], + enumerable: !0 + }); + return n || t(r, Symbol.toStringTag, { value: "Module" }), r; +}, c = (e, i, o, s) => { + if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, { + get: ((e) => i[e]).bind(null, d), + enumerable: !(s = n(i, d)) || s.enumerable + }); + return e; +}, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", { + value: n, + enumerable: !0 +}) : a, n)), u = /* @__PURE__ */ o(((e) => { + var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator; + function m(e) { + return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null); + } + var h = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function() {}, + enqueueReplaceState: function() {}, + enqueueSetState: function() {} + }, g = Object.assign, _ = {}; + function v(e, t, n) { + this.props = e, this.context = t, this.refs = _, this.updater = n || h; + } + v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) { + if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, e, t, "setState"); + }, v.prototype.forceUpdate = function(e) { + this.updater.enqueueForceUpdate(this, e, "forceUpdate"); + }; + function y() {} + y.prototype = v.prototype; + function b(e, t, n) { + this.props = e, this.context = t, this.refs = _, this.updater = n || h; + } + var x = b.prototype = new y(); + x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0; + var S = Array.isArray; + function C() {} + var w = { + H: null, + A: null, + T: null, + S: null + }, T = Object.prototype.hasOwnProperty; + function E(e, n, r) { + var i = r.ref; + return { + $$typeof: t, + type: e, + key: n, + ref: i === void 0 ? null : i, + props: r + }; + } + function D(e, t) { + return E(e.type, t, e.props); + } + function O(e) { + return typeof e == "object" && !!e && e.$$typeof === t; + } + function ee(e) { + var t = { + "=": "=0", + ":": "=2" + }; + return "$" + e.replace(/[=:]/g, function(e) { + return t[e]; + }); + } + var te = /\/+/g; + function ne(e, t) { + return typeof e == "object" && e && e.key != null ? ee("" + e.key) : t.toString(36); + } + function re(e) { + switch (e.status) { + case "fulfilled": return e.value; + case "rejected": throw e.reason; + default: switch (typeof e.status == "string" ? e.then(C, C) : (e.status = "pending", e.then(function(t) { + e.status === "pending" && (e.status = "fulfilled", e.value = t); + }, function(t) { + e.status === "pending" && (e.status = "rejected", e.reason = t); + })), e.status) { + case "fulfilled": return e.value; + case "rejected": throw e.reason; + } + } + throw e; + } + function ie(e, r, i, a, o) { + var s = typeof e; + (s === "undefined" || s === "boolean") && (e = null); + var c = !1; + if (e === null) c = !0; + else switch (s) { + case "bigint": + case "string": + case "number": + c = !0; + break; + case "object": switch (e.$$typeof) { + case t: + case n: + c = !0; + break; + case d: return c = e._init, ie(c(e._payload), r, i, a, o); + } + } + if (c) return o = o(e), c = a === "" ? "." + ne(e, 0) : a, S(o) ? (i = "", c != null && (i = c.replace(te, "$&/") + "/"), ie(o, r, i, "", function(e) { + return e; + })) : o != null && (O(o) && (o = D(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(te, "$&/") + "/") + c)), r.push(o)), 1; + c = 0; + var l = a === "" ? "." : a + ":"; + if (S(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + ne(a, u), c += ie(a, r, i, s, o); + else if (u = m(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + ne(a, u++), c += ie(a, r, i, s, o); + else if (s === "object") { + if (typeof e.then == "function") return ie(re(e), r, i, a, o); + throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead."); + } + return c; + } + function ae(e, t, n) { + if (e == null) return e; + var r = [], i = 0; + return ie(e, r, "", "", function(e) { + return t.call(n, e, i++); + }), r; + } + function k(e) { + if (e._status === -1) { + var t = e._result; + t = t(), t.then(function(t) { + (e._status === 0 || e._status === -1) && (e._status = 1, e._result = t); + }, function(t) { + (e._status === 0 || e._status === -1) && (e._status = 2, e._result = t); + }), e._status === -1 && (e._status = 0, e._result = t); + } + if (e._status === 1) return e._result.default; + throw e._result; + } + var A = typeof reportError == "function" ? reportError : function(e) { + if (typeof window == "object" && typeof window.ErrorEvent == "function") { + var t = new window.ErrorEvent("error", { + bubbles: !0, + cancelable: !0, + message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e), + error: e + }); + if (!window.dispatchEvent(t)) return; + } else if (typeof process == "object" && typeof process.emit == "function") { + process.emit("uncaughtException", e); + return; + } + console.error(e); + }, j = { + map: ae, + forEach: function(e, t, n) { + ae(e, function() { + t.apply(this, arguments); + }, n); + }, + count: function(e) { + var t = 0; + return ae(e, function() { + t++; + }), t; + }, + toArray: function(e) { + return ae(e, function(e) { + return e; + }) || []; + }, + only: function(e) { + if (!O(e)) throw Error("React.Children.only expected to receive a single React element child."); + return e; + } + }; + e.Activity = f, e.Children = j, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = w, e.__COMPILER_RUNTIME = { + __proto__: null, + c: function(e) { + return w.H.useMemoCache(e); + } + }, e.cache = function(e) { + return function() { + return e.apply(null, arguments); + }; + }, e.cacheSignal = function() { + return null; + }, e.cloneElement = function(e, t, n) { + if (e == null) throw Error("The argument must be a React element, but you passed " + e + "."); + var r = g({}, e.props), i = e.key; + if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !T.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]); + var a = arguments.length - 2; + if (a === 1) r.children = n; + else if (1 < a) { + for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2]; + r.children = o; + } + return E(e.type, i, r); + }, e.createContext = function(e) { + return e = { + $$typeof: s, + _currentValue: e, + _currentValue2: e, + _threadCount: 0, + Provider: null, + Consumer: null + }, e.Provider = e, e.Consumer = { + $$typeof: o, + _context: e + }, e; + }, e.createElement = function(e, t, n) { + var r, i = {}, a = null; + if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) T.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]); + var o = arguments.length - 2; + if (o === 1) i.children = n; + else if (1 < o) { + for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2]; + i.children = s; + } + if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]); + return E(e, a, i); + }, e.createRef = function() { + return { current: null }; + }, e.forwardRef = function(e) { + return { + $$typeof: c, + render: e + }; + }, e.isValidElement = O, e.lazy = function(e) { + return { + $$typeof: d, + _payload: { + _status: -1, + _result: e + }, + _init: k + }; + }, e.memo = function(e, t) { + return { + $$typeof: u, + type: e, + compare: t === void 0 ? null : t + }; + }, e.startTransition = function(e) { + var t = w.T, n = {}; + w.T = n; + try { + var r = e(), i = w.S; + i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(C, A); + } catch (e) { + A(e); + } finally { + t !== null && n.types !== null && (t.types = n.types), w.T = t; + } + }, e.unstable_useCacheRefresh = function() { + return w.H.useCacheRefresh(); + }, e.use = function(e) { + return w.H.use(e); + }, e.useActionState = function(e, t, n) { + return w.H.useActionState(e, t, n); + }, e.useCallback = function(e, t) { + return w.H.useCallback(e, t); + }, e.useContext = function(e) { + return w.H.useContext(e); + }, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) { + return w.H.useDeferredValue(e, t); + }, e.useEffect = function(e, t) { + return w.H.useEffect(e, t); + }, e.useEffectEvent = function(e) { + return w.H.useEffectEvent(e); + }, e.useId = function() { + return w.H.useId(); + }, e.useImperativeHandle = function(e, t, n) { + return w.H.useImperativeHandle(e, t, n); + }, e.useInsertionEffect = function(e, t) { + return w.H.useInsertionEffect(e, t); + }, e.useLayoutEffect = function(e, t) { + return w.H.useLayoutEffect(e, t); + }, e.useMemo = function(e, t) { + return w.H.useMemo(e, t); + }, e.useOptimistic = function(e, t) { + return w.H.useOptimistic(e, t); + }, e.useReducer = function(e, t, n) { + return w.H.useReducer(e, t, n); + }, e.useRef = function(e) { + return w.H.useRef(e); + }, e.useState = function(e) { + return w.H.useState(e); + }, e.useSyncExternalStore = function(e, t, n) { + return w.H.useSyncExternalStore(e, t, n); + }, e.useTransition = function() { + return w.H.useTransition(); + }, e.version = "19.2.7"; +})), d = /* @__PURE__ */ o(((e, t) => { + t.exports = u(); +})), f = /* @__PURE__ */ o(((e) => { + function t(e, t) { + var n = e.length; + e.push(t); + a: for (; 0 < n;) { + var r = n - 1 >>> 1, a = e[r]; + if (0 < i(a, t)) e[r] = t, e[n] = a, n = r; + else break a; + } + } + function n(e) { + return e.length === 0 ? null : e[0]; + } + function r(e) { + if (e.length === 0) return null; + var t = e[0], n = e.pop(); + if (n !== t) { + e[0] = n; + a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) { + var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l]; + if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s); + else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l; + else break a; + } + } + return t; + } + function i(e, t) { + var n = e.sortIndex - t.sortIndex; + return n === 0 ? e.id - t.id : n; + } + if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") { + var a = performance; + e.unstable_now = function() { + return a.now(); + }; + } else { + var o = Date, s = o.now(); + e.unstable_now = function() { + return o.now() - s; + }; + } + var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null; + function b(e) { + for (var i = n(l); i !== null;) { + if (i.callback === null) r(l); + else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i); + else break; + i = n(l); + } + } + function x(e) { + if (h = !1, b(e), !m) if (n(c) !== null) m = !0, S || (S = !0, O()); + else { + var t = n(l); + t !== null && ne(x, t.startTime - e); + } + } + var S = !1, C = -1, w = 5, T = -1; + function E() { + return g ? !0 : !(e.unstable_now() - T < w); + } + function D() { + if (g = !1, S) { + var t = e.unstable_now(); + T = t; + var i = !0; + try { + a: { + m = !1, h && (h = !1, v(C), C = -1), p = !0; + var a = f; + try { + b: { + for (b(t), d = n(c); d !== null && !(d.expirationTime > t && E());) { + var o = d.callback; + if (typeof o == "function") { + d.callback = null, f = d.priorityLevel; + var s = o(d.expirationTime <= t); + if (t = e.unstable_now(), typeof s == "function") { + d.callback = s, b(t), i = !0; + break b; + } + d === n(c) && r(c), b(t); + } else r(c); + d = n(c); + } + if (d !== null) i = !0; + else { + var u = n(l); + u !== null && ne(x, u.startTime - t), i = !1; + } + } + break a; + } finally { + d = null, f = a, p = !1; + } + i = void 0; + } + } finally { + i ? O() : S = !1; + } + } + } + var O; + if (typeof y == "function") O = function() { + y(D); + }; + else if (typeof MessageChannel < "u") { + var ee = new MessageChannel(), te = ee.port2; + ee.port1.onmessage = D, O = function() { + te.postMessage(null); + }; + } else O = function() { + _(D, 0); + }; + function ne(t, n) { + C = _(function() { + t(e.unstable_now()); + }, n); + } + e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) { + e.callback = null; + }, e.unstable_forceFrameRate = function(e) { + 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : w = 0 < e ? Math.floor(1e3 / e) : 5; + }, e.unstable_getCurrentPriorityLevel = function() { + return f; + }, e.unstable_next = function(e) { + switch (f) { + case 1: + case 2: + case 3: + var t = 3; + break; + default: t = f; + } + var n = f; + f = t; + try { + return e(); + } finally { + f = n; + } + }, e.unstable_requestPaint = function() { + g = !0; + }, e.unstable_runWithPriority = function(e, t) { + switch (e) { + case 1: + case 2: + case 3: + case 4: + case 5: break; + default: e = 3; + } + var n = f; + f = e; + try { + return t(); + } finally { + f = n; + } + }, e.unstable_scheduleCallback = function(r, i, a) { + var o = e.unstable_now(); + switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) { + case 1: + var s = -1; + break; + case 2: + s = 250; + break; + case 5: + s = 1073741823; + break; + case 4: + s = 1e4; + break; + default: s = 5e3; + } + return s = a + s, r = { + id: u++, + callback: i, + priorityLevel: r, + startTime: a, + expirationTime: s, + sortIndex: -1 + }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, ne(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r; + }, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) { + var t = f; + return function() { + var n = f; + f = t; + try { + return e.apply(this, arguments); + } finally { + f = n; + } + }; + }; +})), p = /* @__PURE__ */ o(((e, t) => { + t.exports = f(); +})), m = /* @__PURE__ */ o(((e) => { + var t = d(); + function n(e) { + var t = "https://react.dev/errors/" + e; + if (1 < arguments.length) { + t += "?args[]=" + encodeURIComponent(arguments[1]); + for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); + } + return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + function r() {} + var i = { + d: { + f: r, + r: function() { + throw Error(n(522)); + }, + D: r, + C: r, + L: r, + m: r, + X: r, + S: r, + M: r + }, + p: 0, + findDOMNode: null + }, a = Symbol.for("react.portal"); + function o(e, t, n) { + var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; + return { + $$typeof: a, + key: r == null ? null : "" + r, + children: e, + containerInfo: t, + implementation: n + }; + } + var s = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + function c(e, t) { + if (e === "font") return ""; + if (typeof t == "string") return t === "use-credentials" ? t : ""; + } + e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, e.createPortal = function(e, t) { + var r = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; + if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(n(299)); + return o(e, t, null, r); + }, e.flushSync = function(e) { + var t = s.T, n = i.p; + try { + if (s.T = null, i.p = 2, e) return e(); + } finally { + s.T = t, i.p = n, i.d.f(); + } + }, e.preconnect = function(e, t) { + typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, i.d.C(e, t)); + }, e.prefetchDNS = function(e) { + typeof e == "string" && i.d.D(e); + }, e.preinit = function(e, t) { + if (typeof e == "string" && t && typeof t.as == "string") { + var n = t.as, r = c(n, t.crossOrigin), a = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0; + n === "style" ? i.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, { + crossOrigin: r, + integrity: a, + fetchPriority: o + }) : n === "script" && i.d.X(e, { + crossOrigin: r, + integrity: a, + fetchPriority: o, + nonce: typeof t.nonce == "string" ? t.nonce : void 0 + }); + } + }, e.preinitModule = function(e, t) { + if (typeof e == "string") if (typeof t == "object" && t) { + if (t.as == null || t.as === "script") { + var n = c(t.as, t.crossOrigin); + i.d.M(e, { + crossOrigin: n, + integrity: typeof t.integrity == "string" ? t.integrity : void 0, + nonce: typeof t.nonce == "string" ? t.nonce : void 0 + }); + } + } else t ?? i.d.M(e); + }, e.preload = function(e, t) { + if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") { + var n = t.as, r = c(n, t.crossOrigin); + i.d.L(e, n, { + crossOrigin: r, + integrity: typeof t.integrity == "string" ? t.integrity : void 0, + nonce: typeof t.nonce == "string" ? t.nonce : void 0, + type: typeof t.type == "string" ? t.type : void 0, + fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0, + referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0, + imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0, + imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0, + media: typeof t.media == "string" ? t.media : void 0 + }); + } + }, e.preloadModule = function(e, t) { + if (typeof e == "string") if (t) { + var n = c(t.as, t.crossOrigin); + i.d.m(e, { + as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0, + crossOrigin: n, + integrity: typeof t.integrity == "string" ? t.integrity : void 0 + }); + } else i.d.m(e); + }, e.requestFormReset = function(e) { + i.d.r(e); + }, e.unstable_batchedUpdates = function(e, t) { + return e(t); + }, e.useFormState = function(e, t, n) { + return s.H.useFormState(e, t, n); + }, e.useFormStatus = function() { + return s.H.useHostTransitionStatus(); + }, e.version = "19.2.7"; +})), h = /* @__PURE__ */ o(((e, t) => { + function n() { + if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try { + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n); + } catch (e) { + console.error(e); + } + } + n(), t.exports = m(); +})), g = /* @__PURE__ */ o(((e) => { + var t = p(), n = d(), r = h(); + function i(e) { + var t = "https://react.dev/errors/" + e; + if (1 < arguments.length) { + t += "?args[]=" + encodeURIComponent(arguments[1]); + for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); + } + return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + function a(e) { + return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11); + } + function o(e) { + var t = e, n = e; + if (e.alternate) for (; t.return;) t = t.return; + else { + e = t; + do + t = e, t.flags & 4098 && (n = t.return), e = t.return; + while (e); + } + return t.tag === 3 ? n : null; + } + function s(e) { + if (e.tag === 13) { + var t = e.memoizedState; + if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated; + } + return null; + } + function c(e) { + if (e.tag === 31) { + var t = e.memoizedState; + if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated; + } + return null; + } + function l(e) { + if (o(e) !== e) throw Error(i(188)); + } + function u(e) { + var t = e.alternate; + if (!t) { + if (t = o(e), t === null) throw Error(i(188)); + return t === e ? e : null; + } + for (var n = e, r = t;;) { + var a = n.return; + if (a === null) break; + var s = a.alternate; + if (s === null) { + if (r = a.return, r !== null) { + n = r; + continue; + } + break; + } + if (a.child === s.child) { + for (s = a.child; s;) { + if (s === n) return l(a), e; + if (s === r) return l(a), t; + s = s.sibling; + } + throw Error(i(188)); + } + if (n.return !== r.return) n = a, r = s; + else { + for (var c = !1, u = a.child; u;) { + if (u === n) { + c = !0, n = a, r = s; + break; + } + if (u === r) { + c = !0, r = a, n = s; + break; + } + u = u.sibling; + } + if (!c) { + for (u = s.child; u;) { + if (u === n) { + c = !0, n = s, r = a; + break; + } + if (u === r) { + c = !0, r = s, n = a; + break; + } + u = u.sibling; + } + if (!c) throw Error(i(189)); + } + } + if (n.alternate !== r) throw Error(i(190)); + } + if (n.tag !== 3) throw Error(i(188)); + return n.stateNode.current === n ? e : t; + } + function f(e) { + var t = e.tag; + if (t === 5 || t === 26 || t === 27 || t === 6) return e; + for (e = e.child; e !== null;) { + if (t = f(e), t !== null) return t; + e = e.sibling; + } + return null; + } + var m = Object.assign, g = Symbol.for("react.element"), _ = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), C = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), te = Symbol.for("react.memo_cache_sentinel"), ne = Symbol.iterator; + function re(e) { + return typeof e != "object" || !e ? null : (e = ne && e[ne] || e["@@iterator"], typeof e == "function" ? e : null); + } + var ie = Symbol.for("react.client.reference"); + function ae(e) { + if (e == null) return null; + if (typeof e == "function") return e.$$typeof === ie ? null : e.displayName || e.name || null; + if (typeof e == "string") return e; + switch (e) { + case y: return "Fragment"; + case x: return "Profiler"; + case b: return "StrictMode"; + case T: return "Suspense"; + case E: return "SuspenseList"; + case ee: return "Activity"; + } + if (typeof e == "object") switch (e.$$typeof) { + case v: return "Portal"; + case C: return e.displayName || "Context"; + case S: return (e._context.displayName || "Context") + ".Consumer"; + case w: + var t = e.render; + return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e; + case D: return t = e.displayName || null, t === null ? ae(e.type) || "Memo" : t; + case O: + t = e._payload, e = e._init; + try { + return ae(e(t)); + } catch {} + } + return null; + } + var k = Array.isArray, A = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, oe = { + pending: !1, + data: null, + method: null, + action: null + }, se = [], ce = -1; + function le(e) { + return { current: e }; + } + function ue(e) { + 0 > ce || (e.current = se[ce], se[ce] = null, ce--); + } + function M(e, t) { + ce++, se[ce] = e.current, e.current = t; + } + var N = le(null), P = le(null), F = le(null), I = le(null); + function de(e, t) { + switch (M(F, t), M(P, e), M(N, null), t.nodeType) { + case 9: + case 11: + e = (e = t.documentElement) && (e = e.namespaceURI) ? Yd(e) : 0; + break; + default: if (e = t.tagName, t = t.namespaceURI) t = Yd(t), e = Xd(t, e); + else switch (e) { + case "svg": + e = 1; + break; + case "math": + e = 2; + break; + default: e = 0; + } + } + ue(N), M(N, e); + } + function fe() { + ue(N), ue(P), ue(F); + } + function L(e) { + e.memoizedState !== null && M(I, e); + var t = N.current, n = Xd(t, e.type); + t !== n && (M(P, e), M(N, n)); + } + function R(e) { + P.current === e && (ue(N), ue(P)), I.current === e && (ue(I), op._currentValue = oe); + } + var pe, me; + function he(e) { + if (pe === void 0) try { + throw Error(); + } catch (e) { + var t = e.stack.trim().match(/\n( *(at )?)/); + pe = t && t[1] || "", me = -1 < e.stack.indexOf("\n at") ? " ()" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : ""; + } + return "\n" + pe + e + me; + } + var ge = !1; + function _e(e, t) { + if (!e || ge) return ""; + ge = !0; + var n = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var r = { DetermineComponentFrameRoot: function() { + try { + if (t) { + var n = function() { + throw Error(); + }; + if (Object.defineProperty(n.prototype, "props", { set: function() { + throw Error(); + } }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(n, []); + } catch (e) { + var r = e; + } + Reflect.construct(e, [], n); + } else { + try { + n.call(); + } catch (e) { + r = e; + } + e.call(n.prototype); + } + } else { + try { + throw Error(); + } catch (e) { + r = e; + } + (n = e()) && typeof n.catch == "function" && n.catch(function() {}); + } + } catch (e) { + if (e && r && typeof e.stack == "string") return [e.stack, r.stack]; + } + return [null, null]; + } }; + r.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; + var i = Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, "name"); + i && i.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" }); + var a = r.DetermineComponentFrameRoot(), o = a[0], s = a[1]; + if (o && s) { + var c = o.split("\n"), l = s.split("\n"); + for (i = r = 0; r < c.length && !c[r].includes("DetermineComponentFrameRoot");) r++; + for (; i < l.length && !l[i].includes("DetermineComponentFrameRoot");) i++; + if (r === c.length || i === l.length) for (r = c.length - 1, i = l.length - 1; 1 <= r && 0 <= i && c[r] !== l[i];) i--; + for (; 1 <= r && 0 <= i; r--, i--) if (c[r] !== l[i]) { + if (r !== 1 || i !== 1) do + if (r--, i--, 0 > i || c[r] !== l[i]) { + var u = "\n" + c[r].replace(" at new ", " at "); + return e.displayName && u.includes("") && (u = u.replace("", e.displayName)), u; + } + while (1 <= r && 0 <= i); + break; + } + } + } finally { + ge = !1, Error.prepareStackTrace = n; + } + return (n = e ? e.displayName || e.name : "") ? he(n) : ""; + } + function ve(e, t) { + switch (e.tag) { + case 26: + case 27: + case 5: return he(e.type); + case 16: return he("Lazy"); + case 13: return e.child !== t && t !== null ? he("Suspense Fallback") : he("Suspense"); + case 19: return he("SuspenseList"); + case 0: + case 15: return _e(e.type, !1); + case 11: return _e(e.type.render, !1); + case 1: return _e(e.type, !0); + case 31: return he("Activity"); + default: return ""; + } + } + function ye(e) { + try { + var t = "", n = null; + do + t += ve(e, n), n = e, e = e.return; + while (e); + return t; + } catch (e) { + return "\nError generating stack: " + e.message + "\n" + e.stack; + } + } + var be = Object.prototype.hasOwnProperty, xe = t.unstable_scheduleCallback, Se = t.unstable_cancelCallback, Ce = t.unstable_shouldYield, we = t.unstable_requestPaint, Te = t.unstable_now, Ee = t.unstable_getCurrentPriorityLevel, De = t.unstable_ImmediatePriority, Oe = t.unstable_UserBlockingPriority, ke = t.unstable_NormalPriority, Ae = t.unstable_LowPriority, je = t.unstable_IdlePriority, z = t.log, Me = t.unstable_setDisableYieldValue, Ne = null, Pe = null; + function B(e) { + if (typeof z == "function" && Me(e), Pe && typeof Pe.setStrictMode == "function") try { + Pe.setStrictMode(Ne, e); + } catch {} + } + var Fe = Math.clz32 ? Math.clz32 : Re, Ie = Math.log, Le = Math.LN2; + function Re(e) { + return e >>>= 0, e === 0 ? 32 : 31 - (Ie(e) / Le | 0) | 0; + } + var ze = 256, Be = 262144, Ve = 4194304; + function He(e) { + var t = e & 42; + if (t !== 0) return t; + switch (e & -e) { + case 1: return 1; + case 2: return 2; + case 4: return 4; + case 8: return 8; + case 16: return 16; + case 32: return 32; + case 64: return 64; + case 128: return 128; + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: return e & 261888; + case 262144: + case 524288: + case 1048576: + case 2097152: return e & 3932160; + case 4194304: + case 8388608: + case 16777216: + case 33554432: return e & 62914560; + case 67108864: return 67108864; + case 134217728: return 134217728; + case 268435456: return 268435456; + case 536870912: return 536870912; + case 1073741824: return 0; + default: return e; + } + } + function V(e, t, n) { + var r = e.pendingLanes; + if (r === 0) return 0; + var i = 0, a = e.suspendedLanes, o = e.pingedLanes; + e = e.warmLanes; + var s = r & 134217727; + return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = He(n))) : i = He(o) : i = He(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = He(n))) : i = He(o)) : i = He(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i; + } + function H(e, t) { + return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0; + } + function Ue(e, t) { + switch (e) { + case 1: + case 2: + case 4: + case 8: + case 64: return t + 250; + case 16: + case 32: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: return t + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: return -1; + case 67108864: + case 134217728: + case 268435456: + case 536870912: + case 1073741824: return -1; + default: return -1; + } + } + function U() { + var e = Ve; + return Ve <<= 1, !(Ve & 62914560) && (Ve = 4194304), e; + } + function We(e) { + for (var t = [], n = 0; 31 > n; n++) t.push(e); + return t; + } + function Ge(e, t) { + e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0); + } + function Ke(e, t, n, r, i, a) { + var o = e.pendingLanes; + e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0; + var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates; + for (n = o & ~n; 0 < n;) { + var u = 31 - Fe(n), d = 1 << u; + s[u] = 0, c[u] = -1; + var f = l[u]; + if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) { + var p = f[u]; + p !== null && (p.lane &= -536870913); + } + n &= ~d; + } + r !== 0 && qe(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t)); + } + function qe(e, t, n) { + e.pendingLanes |= t, e.suspendedLanes &= ~t; + var r = 31 - Fe(t); + e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930; + } + function Je(e, t) { + var n = e.entangledLanes |= t; + for (e = e.entanglements; n;) { + var r = 31 - Fe(n), i = 1 << r; + i & t | e[r] & t && (e[r] |= t), n &= ~i; + } + } + function Ye(e, t) { + var n = t & -t; + return n = n & 42 ? 1 : Xe(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0; + } + function Xe(e) { + switch (e) { + case 2: + e = 1; + break; + case 8: + e = 4; + break; + case 32: + e = 16; + break; + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + e = 128; + break; + case 268435456: + e = 134217728; + break; + default: e = 0; + } + return e; + } + function Ze(e) { + return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2; + } + function Qe() { + var e = j.p; + return e === 0 ? (e = window.event, e === void 0 ? 32 : Sp(e.type)) : e; + } + function $e(e, t) { + var n = j.p; + try { + return j.p = e, t(); + } finally { + j.p = n; + } + } + var et = Math.random().toString(36).slice(2), tt = "__reactFiber$" + et, nt = "__reactProps$" + et, rt = "__reactContainer$" + et, it = "__reactEvents$" + et, at = "__reactListeners$" + et, ot = "__reactHandles$" + et, st = "__reactResources$" + et, ct = "__reactMarker$" + et; + function lt(e) { + delete e[tt], delete e[nt], delete e[it], delete e[at], delete e[ot]; + } + function ut(e) { + var t = e[tt]; + if (t) return t; + for (var n = e.parentNode; n;) { + if (t = n[rt] || n[tt]) { + if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = yf(e); e !== null;) { + if (n = e[tt]) return n; + e = yf(e); + } + return t; + } + e = n, n = e.parentNode; + } + return null; + } + function dt(e) { + if (e = e[tt] || e[rt]) { + var t = e.tag; + if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e; + } + return null; + } + function ft(e) { + var t = e.tag; + if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode; + throw Error(i(33)); + } + function pt(e) { + var t = e[st]; + return t ||= e[st] = { + hoistableStyles: /* @__PURE__ */ new Map(), + hoistableScripts: /* @__PURE__ */ new Map() + }, t; + } + function mt(e) { + e[ct] = !0; + } + var ht = /* @__PURE__ */ new Set(), gt = {}; + function _t(e, t) { + vt(e, t), vt(e + "Capture", t); + } + function vt(e, t) { + for (gt[e] = t, e = 0; e < t.length; e++) ht.add(t[e]); + } + var yt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), bt = {}, xt = {}; + function St(e) { + return be.call(xt, e) ? !0 : be.call(bt, e) ? !1 : yt.test(e) ? xt[e] = !0 : (bt[e] = !0, !1); + } + function Ct(e, t, n) { + if (St(t)) if (n === null) e.removeAttribute(t); + else { + switch (typeof n) { + case "undefined": + case "function": + case "symbol": + e.removeAttribute(t); + return; + case "boolean": + var r = t.toLowerCase().slice(0, 5); + if (r !== "data-" && r !== "aria-") { + e.removeAttribute(t); + return; + } + } + e.setAttribute(t, "" + n); + } + } + function wt(e, t, n) { + if (n === null) e.removeAttribute(t); + else { + switch (typeof n) { + case "undefined": + case "function": + case "symbol": + case "boolean": + e.removeAttribute(t); + return; + } + e.setAttribute(t, "" + n); + } + } + function Tt(e, t, n, r) { + if (r === null) e.removeAttribute(n); + else { + switch (typeof r) { + case "undefined": + case "function": + case "symbol": + case "boolean": + e.removeAttribute(n); + return; + } + e.setAttributeNS(t, n, "" + r); + } + } + function Et(e) { + switch (typeof e) { + case "bigint": + case "boolean": + case "number": + case "string": + case "undefined": return e; + case "object": return e; + default: return ""; + } + } + function Dt(e) { + var t = e.type; + return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio"); + } + function Ot(e, t, n) { + var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t); + if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") { + var i = r.get, a = r.set; + return Object.defineProperty(e, t, { + configurable: !0, + get: function() { + return i.call(this); + }, + set: function(e) { + n = "" + e, a.call(this, e); + } + }), Object.defineProperty(e, t, { enumerable: r.enumerable }), { + getValue: function() { + return n; + }, + setValue: function(e) { + n = "" + e; + }, + stopTracking: function() { + e._valueTracker = null, delete e[t]; + } + }; + } + } + function kt(e) { + if (!e._valueTracker) { + var t = Dt(e) ? "checked" : "value"; + e._valueTracker = Ot(e, t, "" + e[t]); + } + } + function At(e) { + if (!e) return !1; + var t = e._valueTracker; + if (!t) return !0; + var n = t.getValue(), r = ""; + return e && (r = Dt(e) ? e.checked ? "true" : "false" : e.value), e = r, e === n ? !1 : (t.setValue(e), !0); + } + function jt(e) { + if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null; + try { + return e.activeElement || e.body; + } catch { + return e.body; + } + } + var Mt = /[\n"\\]/g; + function Nt(e) { + return e.replace(Mt, function(e) { + return "\\" + e.charCodeAt(0).toString(16) + " "; + }); + } + function Pt(e, t, n, r, i, a, o, s) { + e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Et(t)) : e.value !== "" + Et(t) && (e.value = "" + Et(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : It(e, o, Et(n)) : It(e, o, Et(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Et(s) : e.removeAttribute("name"); + } + function Ft(e, t, n, r, i, a, o, s) { + if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) { + if (!(a !== "submit" && a !== "reset" || t != null)) { + kt(e); + return; + } + n = n == null ? "" : "" + Et(n), t = t == null ? n : "" + Et(t), s || t === e.value || (e.value = t), e.defaultValue = t; + } + r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), kt(e); + } + function It(e, t, n) { + t === "number" && jt(e.ownerDocument) === e || e.defaultValue === "" + n || (e.defaultValue = "" + n); + } + function Lt(e, t, n, r) { + if (e = e.options, t) { + t = {}; + for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0; + for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0); + } else { + for (n = "" + Et(n), t = null, i = 0; i < e.length; i++) { + if (e[i].value === n) { + e[i].selected = !0, r && (e[i].defaultSelected = !0); + return; + } + t !== null || e[i].disabled || (t = e[i]); + } + t !== null && (t.selected = !0); + } + } + function Rt(e, t, n) { + if (t != null && (t = "" + Et(t), t !== e.value && (e.value = t), n == null)) { + e.defaultValue !== t && (e.defaultValue = t); + return; + } + e.defaultValue = n == null ? "" : "" + Et(n); + } + function zt(e, t, n, r) { + if (t == null) { + if (r != null) { + if (n != null) throw Error(i(92)); + if (k(r)) { + if (1 < r.length) throw Error(i(93)); + r = r[0]; + } + n = r; + } + n ??= "", t = n; + } + n = Et(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), kt(e); + } + function Bt(e, t) { + if (t) { + var n = e.firstChild; + if (n && n === e.lastChild && n.nodeType === 3) { + n.nodeValue = t; + return; + } + } + e.textContent = t; + } + var Vt = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")); + function Ht(e, t, n) { + var r = t.indexOf("--") === 0; + n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || Vt.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px"; + } + function Ut(e, t, n) { + if (t != null && typeof t != "object") throw Error(i(62)); + if (e = e.style, n != null) { + for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = ""); + for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && Ht(e, a, r); + } else for (var o in t) t.hasOwnProperty(o) && Ht(e, o, t[o]); + } + function Wt(e) { + if (e.indexOf("-") === -1) return !1; + switch (e) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": return !1; + default: return !0; + } + } + var Gt = /* @__PURE__ */ new Map([ + ["acceptCharset", "accept-charset"], + ["htmlFor", "for"], + ["httpEquiv", "http-equiv"], + ["crossOrigin", "crossorigin"], + ["accentHeight", "accent-height"], + ["alignmentBaseline", "alignment-baseline"], + ["arabicForm", "arabic-form"], + ["baselineShift", "baseline-shift"], + ["capHeight", "cap-height"], + ["clipPath", "clip-path"], + ["clipRule", "clip-rule"], + ["colorInterpolation", "color-interpolation"], + ["colorInterpolationFilters", "color-interpolation-filters"], + ["colorProfile", "color-profile"], + ["colorRendering", "color-rendering"], + ["dominantBaseline", "dominant-baseline"], + ["enableBackground", "enable-background"], + ["fillOpacity", "fill-opacity"], + ["fillRule", "fill-rule"], + ["floodColor", "flood-color"], + ["floodOpacity", "flood-opacity"], + ["fontFamily", "font-family"], + ["fontSize", "font-size"], + ["fontSizeAdjust", "font-size-adjust"], + ["fontStretch", "font-stretch"], + ["fontStyle", "font-style"], + ["fontVariant", "font-variant"], + ["fontWeight", "font-weight"], + ["glyphName", "glyph-name"], + ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], + ["glyphOrientationVertical", "glyph-orientation-vertical"], + ["horizAdvX", "horiz-adv-x"], + ["horizOriginX", "horiz-origin-x"], + ["imageRendering", "image-rendering"], + ["letterSpacing", "letter-spacing"], + ["lightingColor", "lighting-color"], + ["markerEnd", "marker-end"], + ["markerMid", "marker-mid"], + ["markerStart", "marker-start"], + ["overlinePosition", "overline-position"], + ["overlineThickness", "overline-thickness"], + ["paintOrder", "paint-order"], + ["panose-1", "panose-1"], + ["pointerEvents", "pointer-events"], + ["renderingIntent", "rendering-intent"], + ["shapeRendering", "shape-rendering"], + ["stopColor", "stop-color"], + ["stopOpacity", "stop-opacity"], + ["strikethroughPosition", "strikethrough-position"], + ["strikethroughThickness", "strikethrough-thickness"], + ["strokeDasharray", "stroke-dasharray"], + ["strokeDashoffset", "stroke-dashoffset"], + ["strokeLinecap", "stroke-linecap"], + ["strokeLinejoin", "stroke-linejoin"], + ["strokeMiterlimit", "stroke-miterlimit"], + ["strokeOpacity", "stroke-opacity"], + ["strokeWidth", "stroke-width"], + ["textAnchor", "text-anchor"], + ["textDecoration", "text-decoration"], + ["textRendering", "text-rendering"], + ["transformOrigin", "transform-origin"], + ["underlinePosition", "underline-position"], + ["underlineThickness", "underline-thickness"], + ["unicodeBidi", "unicode-bidi"], + ["unicodeRange", "unicode-range"], + ["unitsPerEm", "units-per-em"], + ["vAlphabetic", "v-alphabetic"], + ["vHanging", "v-hanging"], + ["vIdeographic", "v-ideographic"], + ["vMathematical", "v-mathematical"], + ["vectorEffect", "vector-effect"], + ["vertAdvY", "vert-adv-y"], + ["vertOriginX", "vert-origin-x"], + ["vertOriginY", "vert-origin-y"], + ["wordSpacing", "word-spacing"], + ["writingMode", "writing-mode"], + ["xmlnsXlink", "xmlns:xlink"], + ["xHeight", "x-height"] + ]), Kt = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; + function qt(e) { + return Kt.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e; + } + function Jt() {} + var Yt = null; + function Xt(e) { + return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e; + } + var Zt = null, Qt = null; + function $t(e) { + var t = dt(e); + if (t && (e = t.stateNode)) { + var n = e[nt] || null; + a: switch (e = t.stateNode, t.type) { + case "input": + if (Pt(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) { + for (n = e; n.parentNode;) n = n.parentNode; + for (n = n.querySelectorAll("input[name=\"" + Nt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) { + var r = n[t]; + if (r !== e && r.form === e.form) { + var a = r[nt] || null; + if (!a) throw Error(i(90)); + Pt(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name); + } + } + for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && At(r); + } + break a; + case "textarea": + Rt(e, n.value, n.defaultValue); + break a; + case "select": t = n.value, t != null && Lt(e, !!n.multiple, t, !1); + } + } + } + var en = !1; + function tn(e, t, n) { + if (en) return e(t, n); + en = !0; + try { + return e(t); + } finally { + if (en = !1, (Zt !== null || Qt !== null) && (Tu(), Zt && (t = Zt, e = Qt, Qt = Zt = null, $t(t), e))) for (t = 0; t < e.length; t++) $t(e[t]); + } + } + function nn(e, t) { + var n = e.stateNode; + if (n === null) return null; + var r = n[nt] || null; + if (r === null) return null; + n = r[t]; + a: switch (t) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (r = !r.disabled) || (e = e.type, r = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !r; + break a; + default: e = !1; + } + if (e) return null; + if (n && typeof n != "function") throw Error(i(231, t, typeof n)); + return n; + } + var rn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), an = !1; + if (rn) try { + var on = {}; + Object.defineProperty(on, "passive", { get: function() { + an = !0; + } }), window.addEventListener("test", on, on), window.removeEventListener("test", on, on); + } catch { + an = !1; + } + var sn = null, cn = null, ln = null; + function un() { + if (ln) return ln; + var e, t = cn, n = t.length, r, i = "value" in sn ? sn.value : sn.textContent, a = i.length; + for (e = 0; e < n && t[e] === i[e]; e++); + var o = n - e; + for (r = 1; r <= o && t[n - r] === i[a - r]; r++); + return ln = i.slice(e, 1 < r ? 1 - r : void 0); + } + function dn(e) { + var t = e.keyCode; + return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0; + } + function fn() { + return !0; + } + function pn() { + return !1; + } + function mn(e) { + function t(t, n, r, i, a) { + for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]); + return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? fn : pn, this.isPropagationStopped = pn, this; + } + return m(t.prototype, { + preventDefault: function() { + this.defaultPrevented = !0; + var e = this.nativeEvent; + e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = fn); + }, + stopPropagation: function() { + var e = this.nativeEvent; + e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = fn); + }, + persist: function() {}, + isPersistent: fn + }), t; + } + var hn = { + eventPhase: 0, + bubbles: 0, + cancelable: 0, + timeStamp: function(e) { + return e.timeStamp || Date.now(); + }, + defaultPrevented: 0, + isTrusted: 0 + }, gn = mn(hn), _n = m({}, hn, { + view: 0, + detail: 0 + }), vn = mn(_n), yn, bn, xn, Sn = m({}, _n, { + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + pageX: 0, + pageY: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + getModifierState: Nn, + button: 0, + buttons: 0, + relatedTarget: function(e) { + return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget; + }, + movementX: function(e) { + return "movementX" in e ? e.movementX : (e !== xn && (xn && e.type === "mousemove" ? (yn = e.screenX - xn.screenX, bn = e.screenY - xn.screenY) : bn = yn = 0, xn = e), yn); + }, + movementY: function(e) { + return "movementY" in e ? e.movementY : bn; + } + }), Cn = mn(Sn), wn = mn(m({}, Sn, { dataTransfer: 0 })), Tn = mn(m({}, _n, { relatedTarget: 0 })), En = mn(m({}, hn, { + animationName: 0, + elapsedTime: 0, + pseudoElement: 0 + })), Dn = mn(m({}, hn, { clipboardData: function(e) { + return "clipboardData" in e ? e.clipboardData : window.clipboardData; + } })), On = mn(m({}, hn, { data: 0 })), kn = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" + }, An = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" + }, jn = { + Alt: "altKey", + Control: "ctrlKey", + Meta: "metaKey", + Shift: "shiftKey" + }; + function Mn(e) { + var t = this.nativeEvent; + return t.getModifierState ? t.getModifierState(e) : (e = jn[e]) ? !!t[e] : !1; + } + function Nn() { + return Mn; + } + var Pn = mn(m({}, _n, { + key: function(e) { + if (e.key) { + var t = kn[e.key] || e.key; + if (t !== "Unidentified") return t; + } + return e.type === "keypress" ? (e = dn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? An[e.keyCode] || "Unidentified" : ""; + }, + code: 0, + location: 0, + ctrlKey: 0, + shiftKey: 0, + altKey: 0, + metaKey: 0, + repeat: 0, + locale: 0, + getModifierState: Nn, + charCode: function(e) { + return e.type === "keypress" ? dn(e) : 0; + }, + keyCode: function(e) { + return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; + }, + which: function(e) { + return e.type === "keypress" ? dn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; + } + })), Fn = mn(m({}, Sn, { + pointerId: 0, + width: 0, + height: 0, + pressure: 0, + tangentialPressure: 0, + tiltX: 0, + tiltY: 0, + twist: 0, + pointerType: 0, + isPrimary: 0 + })), In = mn(m({}, _n, { + touches: 0, + targetTouches: 0, + changedTouches: 0, + altKey: 0, + metaKey: 0, + ctrlKey: 0, + shiftKey: 0, + getModifierState: Nn + })), Ln = mn(m({}, hn, { + propertyName: 0, + elapsedTime: 0, + pseudoElement: 0 + })), Rn = mn(m({}, Sn, { + deltaX: function(e) { + return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; + }, + deltaY: function(e) { + return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 + })), zn = mn(m({}, hn, { + newState: 0, + oldState: 0 + })), Bn = [ + 9, + 13, + 27, + 32 + ], Vn = rn && "CompositionEvent" in window, Hn = null; + rn && "documentMode" in document && (Hn = document.documentMode); + var Un = rn && "TextEvent" in window && !Hn, Wn = rn && (!Vn || Hn && 8 < Hn && 11 >= Hn), Gn = " ", Kn = !1; + function qn(e, t) { + switch (e) { + case "keyup": return Bn.indexOf(t.keyCode) !== -1; + case "keydown": return t.keyCode !== 229; + case "keypress": + case "mousedown": + case "focusout": return !0; + default: return !1; + } + } + function Jn(e) { + return e = e.detail, typeof e == "object" && "data" in e ? e.data : null; + } + var Yn = !1; + function Xn(e, t) { + switch (e) { + case "compositionend": return Jn(t); + case "keypress": return t.which === 32 ? (Kn = !0, Gn) : null; + case "textInput": return e = t.data, e === Gn && Kn ? null : e; + default: return null; + } + } + function Zn(e, t) { + if (Yn) return e === "compositionend" || !Vn && qn(e, t) ? (e = un(), ln = cn = sn = null, Yn = !1, e) : null; + switch (e) { + case "paste": return null; + case "keypress": + if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { + if (t.char && 1 < t.char.length) return t.char; + if (t.which) return String.fromCharCode(t.which); + } + return null; + case "compositionend": return Wn && t.locale !== "ko" ? null : t.data; + default: return null; + } + } + var Qn = { + color: !0, + date: !0, + datetime: !0, + "datetime-local": !0, + email: !0, + month: !0, + number: !0, + password: !0, + range: !0, + search: !0, + tel: !0, + text: !0, + time: !0, + url: !0, + week: !0 + }; + function $n(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return t === "input" ? !!Qn[e.type] : t === "textarea"; + } + function er(e, t, n, r) { + Zt ? Qt ? Qt.push(r) : Qt = [r] : Zt = r, t = Nd(t, "onChange"), 0 < t.length && (n = new gn("onChange", "change", null, n, r), e.push({ + event: n, + listeners: t + })); + } + var tr = null, nr = null; + function rr(e) { + Td(e, 0); + } + function ir(e) { + if (At(ft(e))) return e; + } + function ar(e, t) { + if (e === "change") return t; + } + var or = !1; + if (rn) { + var sr; + if (rn) { + var cr = "oninput" in document; + if (!cr) { + var lr = document.createElement("div"); + lr.setAttribute("oninput", "return;"), cr = typeof lr.oninput == "function"; + } + sr = cr; + } else sr = !1; + or = sr && (!document.documentMode || 9 < document.documentMode); + } + function ur() { + tr && (tr.detachEvent("onpropertychange", dr), nr = tr = null); + } + function dr(e) { + if (e.propertyName === "value" && ir(nr)) { + var t = []; + er(t, nr, e, Xt(e)), tn(rr, t); + } + } + function fr(e, t, n) { + e === "focusin" ? (ur(), tr = t, nr = n, tr.attachEvent("onpropertychange", dr)) : e === "focusout" && ur(); + } + function pr(e) { + if (e === "selectionchange" || e === "keyup" || e === "keydown") return ir(nr); + } + function mr(e, t) { + if (e === "click") return ir(t); + } + function hr(e, t) { + if (e === "input" || e === "change") return ir(t); + } + function gr(e, t) { + return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t; + } + var _r = typeof Object.is == "function" ? Object.is : gr; + function vr(e, t) { + if (_r(e, t)) return !0; + if (typeof e != "object" || !e || typeof t != "object" || !t) return !1; + var n = Object.keys(e), r = Object.keys(t); + if (n.length !== r.length) return !1; + for (r = 0; r < n.length; r++) { + var i = n[r]; + if (!be.call(t, i) || !_r(e[i], t[i])) return !1; + } + return !0; + } + function yr(e) { + for (; e && e.firstChild;) e = e.firstChild; + return e; + } + function br(e, t) { + var n = yr(e); + e = 0; + for (var r; n;) { + if (n.nodeType === 3) { + if (r = e + n.textContent.length, e <= t && r >= t) return { + node: n, + offset: t - e + }; + e = r; + } + a: { + for (; n;) { + if (n.nextSibling) { + n = n.nextSibling; + break a; + } + n = n.parentNode; + } + n = void 0; + } + n = yr(n); + } + } + function xr(e, t) { + return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? xr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1; + } + function Sr(e) { + e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window; + for (var t = jt(e.document); t instanceof e.HTMLIFrameElement;) { + try { + var n = typeof t.contentWindow.location.href == "string"; + } catch { + n = !1; + } + if (n) e = t.contentWindow; + else break; + t = jt(e.document); + } + return t; + } + function Cr(e) { + var t = e && e.nodeName && e.nodeName.toLowerCase(); + return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); + } + var wr = rn && "documentMode" in document && 11 >= document.documentMode, Tr = null, Er = null, Dr = null, Or = !1; + function kr(e, t, n) { + var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; + Or || Tr == null || Tr !== jt(r) || (r = Tr, "selectionStart" in r && Cr(r) ? r = { + start: r.selectionStart, + end: r.selectionEnd + } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = { + anchorNode: r.anchorNode, + anchorOffset: r.anchorOffset, + focusNode: r.focusNode, + focusOffset: r.focusOffset + }), Dr && vr(Dr, r) || (Dr = r, r = Nd(Er, "onSelect"), 0 < r.length && (t = new gn("onSelect", "select", null, t, n), e.push({ + event: t, + listeners: r + }), t.target = Tr))); + } + function Ar(e, t) { + var n = {}; + return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n; + } + var jr = { + animationend: Ar("Animation", "AnimationEnd"), + animationiteration: Ar("Animation", "AnimationIteration"), + animationstart: Ar("Animation", "AnimationStart"), + transitionrun: Ar("Transition", "TransitionRun"), + transitionstart: Ar("Transition", "TransitionStart"), + transitioncancel: Ar("Transition", "TransitionCancel"), + transitionend: Ar("Transition", "TransitionEnd") + }, Mr = {}, Nr = {}; + rn && (Nr = document.createElement("div").style, "AnimationEvent" in window || (delete jr.animationend.animation, delete jr.animationiteration.animation, delete jr.animationstart.animation), "TransitionEvent" in window || delete jr.transitionend.transition); + function Pr(e) { + if (Mr[e]) return Mr[e]; + if (!jr[e]) return e; + var t = jr[e], n; + for (n in t) if (t.hasOwnProperty(n) && n in Nr) return Mr[e] = t[n]; + return e; + } + var Fr = Pr("animationend"), Ir = Pr("animationiteration"), Lr = Pr("animationstart"), Rr = Pr("transitionrun"), zr = Pr("transitionstart"), Br = Pr("transitioncancel"), Vr = Pr("transitionend"), Hr = /* @__PURE__ */ new Map(), Ur = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); + Ur.push("scrollEnd"); + function Wr(e, t) { + Hr.set(e, t), _t(t, [e]); + } + var Gr = typeof reportError == "function" ? reportError : function(e) { + if (typeof window == "object" && typeof window.ErrorEvent == "function") { + var t = new window.ErrorEvent("error", { + bubbles: !0, + cancelable: !0, + message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e), + error: e + }); + if (!window.dispatchEvent(t)) return; + } else if (typeof process == "object" && typeof process.emit == "function") { + process.emit("uncaughtException", e); + return; + } + console.error(e); + }, Kr = [], qr = 0, Jr = 0; + function Yr() { + for (var e = qr, t = Jr = qr = 0; t < e;) { + var n = Kr[t]; + Kr[t++] = null; + var r = Kr[t]; + Kr[t++] = null; + var i = Kr[t]; + Kr[t++] = null; + var a = Kr[t]; + if (Kr[t++] = null, r !== null && i !== null) { + var o = r.pending; + o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i; + } + a !== 0 && $r(n, i, a); + } + } + function Xr(e, t, n, r) { + Kr[qr++] = e, Kr[qr++] = t, Kr[qr++] = n, Kr[qr++] = r, Jr |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r); + } + function Zr(e, t, n, r) { + return Xr(e, t, n, r), ei(e); + } + function Qr(e, t) { + return Xr(e, null, null, t), ei(e); + } + function $r(e, t, n) { + e.lanes |= n; + var r = e.alternate; + r !== null && (r.lanes |= n); + for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return; + return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Fe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null; + } + function ei(e) { + if (50 < gu) throw gu = 0, _u = null, Error(i(185)); + for (var t = e.return; t !== null;) e = t, t = e.return; + return e.tag === 3 ? e.stateNode : null; + } + var ti = {}; + function ni(e, t, n, r) { + this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; + } + function ri(e, t, n, r) { + return new ni(e, t, n, r); + } + function ii(e) { + return e = e.prototype, !(!e || !e.isReactComponent); + } + function ai(e, t) { + var n = e.alternate; + return n === null ? (n = ri(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 65011712, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : { + lanes: t.lanes, + firstContext: t.firstContext + }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n; + } + function oi(e, t) { + e.flags &= 65011714; + var n = e.alternate; + return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : { + lanes: t.lanes, + firstContext: t.firstContext + }), e; + } + function si(e, t, n, r, a, o) { + var s = 0; + if (r = e, typeof e == "function") ii(e) && (s = 1); + else if (typeof e == "string") s = Zf(e, n, N.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5; + else a: switch (e) { + case ee: return e = ri(31, n, t, a), e.elementType = ee, e.lanes = o, e; + case y: return ci(n.children, a, o, t); + case b: + s = 8, a |= 24; + break; + case x: return e = ri(12, n, t, a | 2), e.elementType = x, e.lanes = o, e; + case T: return e = ri(13, n, t, a), e.elementType = T, e.lanes = o, e; + case E: return e = ri(19, n, t, a), e.elementType = E, e.lanes = o, e; + default: + if (typeof e == "object" && e) switch (e.$$typeof) { + case C: + s = 10; + break a; + case S: + s = 9; + break a; + case w: + s = 11; + break a; + case D: + s = 14; + break a; + case O: + s = 16, r = null; + break a; + } + s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null; + } + return t = ri(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t; + } + function ci(e, t, n, r) { + return e = ri(7, e, r, t), e.lanes = n, e; + } + function li(e, t, n) { + return e = ri(6, e, null, t), e.lanes = n, e; + } + function ui(e) { + var t = ri(18, null, null, 0); + return t.stateNode = e, t; + } + function di(e, t, n) { + return t = ri(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = { + containerInfo: e.containerInfo, + pendingChildren: null, + implementation: e.implementation + }, t; + } + var fi = /* @__PURE__ */ new WeakMap(); + function pi(e, t) { + if (typeof e == "object" && e) { + var n = fi.get(e); + return n === void 0 ? (t = { + value: e, + source: t, + stack: ye(t) + }, fi.set(e, t), t) : n; + } + return { + value: e, + source: t, + stack: ye(t) + }; + } + var mi = [], hi = 0, gi = null, _i = 0, vi = [], yi = 0, bi = null, xi = 1, Si = ""; + function W(e, t) { + mi[hi++] = _i, mi[hi++] = gi, gi = e, _i = t; + } + function Ci(e, t, n) { + vi[yi++] = xi, vi[yi++] = Si, vi[yi++] = bi, bi = e; + var r = xi; + e = Si; + var i = 32 - Fe(r) - 1; + r &= ~(1 << i), n += 1; + var a = 32 - Fe(t) + i; + if (30 < a) { + var o = i - i % 5; + a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, xi = 1 << 32 - Fe(t) + i | n << i | r, Si = a + e; + } else xi = 1 << a | n << i | r, Si = e; + } + function wi(e) { + e.return !== null && (W(e, 1), Ci(e, 1, 0)); + } + function Ti(e) { + for (; e === gi;) gi = mi[--hi], mi[hi] = null, _i = mi[--hi], mi[hi] = null; + for (; e === bi;) bi = vi[--yi], vi[yi] = null, Si = vi[--yi], vi[yi] = null, xi = vi[--yi], vi[yi] = null; + } + function Ei(e, t) { + vi[yi++] = xi, vi[yi++] = Si, vi[yi++] = bi, xi = t.id, Si = t.overflow, bi = e; + } + var Di = null, Oi = null, ki = !1, Ai = null, ji = !1, Mi = Error(i(519)); + function Ni(e) { + throw zi(pi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), Mi; + } + function Pi(e) { + var t = e.stateNode, n = e.type, r = e.memoizedProps; + switch (t[tt] = e, t[nt] = r, n) { + case "dialog": + Ed("cancel", t), Ed("close", t); + break; + case "iframe": + case "object": + case "embed": + Ed("load", t); + break; + case "video": + case "audio": + for (n = 0; n < Cd.length; n++) Ed(Cd[n], t); + break; + case "source": + Ed("error", t); + break; + case "img": + case "image": + case "link": + Ed("error", t), Ed("load", t); + break; + case "details": + Ed("toggle", t); + break; + case "input": + Ed("invalid", t), Ft(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0); + break; + case "select": + Ed("invalid", t); + break; + case "textarea": Ed("invalid", t), zt(t, r.value, r.defaultValue, r.children); + } + n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || zd(t.textContent, n) ? (r.popover != null && (Ed("beforetoggle", t), Ed("toggle", t)), r.onScroll != null && Ed("scroll", t), r.onScrollEnd != null && Ed("scrollend", t), r.onClick != null && (t.onclick = Jt), t = !0) : t = !1, t || Ni(e, !0); + } + function Fi(e) { + for (Di = e.return; Di;) switch (Di.tag) { + case 5: + case 31: + case 13: + ji = !1; + return; + case 27: + case 3: + ji = !0; + return; + default: Di = Di.return; + } + } + function Ii(e) { + if (e !== Di) return !1; + if (!ki) return Fi(e), ki = !0, !1; + var t = e.tag, n; + if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = !(n !== "form" && n !== "button") || Zd(e.type, e.memoizedProps)), n = !n), n && Oi && Ni(e), Fi(e), t === 13) { + if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317)); + Oi = vf(e); + } else if (t === 31) { + if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317)); + Oi = vf(e); + } else t === 27 ? (t = Oi, of(e.type) ? (e = _f, _f = null, Oi = e) : Oi = t) : Oi = Di ? gf(e.stateNode.nextSibling) : null; + return !0; + } + function Li() { + Oi = Di = null, ki = !1; + } + function Ri() { + var e = Ai; + return e !== null && (nu === null ? nu = e : nu.push.apply(nu, e), Ai = null), e; + } + function zi(e) { + Ai === null ? Ai = [e] : Ai.push(e); + } + var Bi = le(null), Vi = null, Hi = null; + function Ui(e, t, n) { + M(Bi, t._currentValue), t._currentValue = n; + } + function Wi(e) { + e._currentValue = Bi.current, ue(Bi); + } + function Gi(e, t, n) { + for (; e !== null;) { + var r = e.alternate; + if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break; + e = e.return; + } + } + function Ki(e, t, n, r) { + var a = e.child; + for (a !== null && (a.return = e); a !== null;) { + var o = a.dependencies; + if (o !== null) { + var s = a.child; + o = o.firstContext; + a: for (; o !== null;) { + var c = o; + o = a; + for (var l = 0; l < t.length; l++) if (c.context === t[l]) { + o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), Gi(o.return, n, e), r || (s = null); + break a; + } + o = c.next; + } + } else if (a.tag === 18) { + if (s = a.return, s === null) throw Error(i(341)); + s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), Gi(s, n, e), s = null; + } else s = a.child; + if (s !== null) s.return = a; + else for (s = a; s !== null;) { + if (s === e) { + s = null; + break; + } + if (a = s.sibling, a !== null) { + a.return = s.return, s = a; + break; + } + s = s.return; + } + a = s; + } + } + function qi(e, t, n, r) { + e = null; + for (var a = t, o = !1; a !== null;) { + if (!o) { + if (a.flags & 524288) o = !0; + else if (a.flags & 262144) break; + } + if (a.tag === 10) { + var s = a.alternate; + if (s === null) throw Error(i(387)); + if (s = s.memoizedProps, s !== null) { + var c = a.type; + _r(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c)); + } + } else if (a === I.current) { + if (s = a.alternate, s === null) throw Error(i(387)); + s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [op] : e.push(op)); + } + a = a.return; + } + e !== null && Ki(t, e, n, r), t.flags |= 262144; + } + function Ji(e) { + for (e = e.firstContext; e !== null;) { + if (!_r(e.context._currentValue, e.memoizedValue)) return !0; + e = e.next; + } + return !1; + } + function Yi(e) { + Vi = e, Hi = null, e = e.dependencies, e !== null && (e.firstContext = null); + } + function Xi(e) { + return Qi(Vi, e); + } + function Zi(e, t) { + return Vi === null && Yi(e), Qi(e, t); + } + function Qi(e, t) { + var n = t._currentValue; + if (t = { + context: t, + memoizedValue: n, + next: null + }, Hi === null) { + if (e === null) throw Error(i(308)); + Hi = t, e.dependencies = { + lanes: 0, + firstContext: t + }, e.flags |= 524288; + } else Hi = Hi.next = t; + return n; + } + var $i = typeof AbortController < "u" ? AbortController : function() { + var e = [], t = this.signal = { + aborted: !1, + addEventListener: function(t, n) { + e.push(n); + } + }; + this.abort = function() { + t.aborted = !0, e.forEach(function(e) { + return e(); + }); + }; + }, ea = t.unstable_scheduleCallback, ta = t.unstable_NormalPriority, na = { + $$typeof: C, + Consumer: null, + Provider: null, + _currentValue: null, + _currentValue2: null, + _threadCount: 0 + }; + function ra() { + return { + controller: new $i(), + data: /* @__PURE__ */ new Map(), + refCount: 0 + }; + } + function ia(e) { + e.refCount--, e.refCount === 0 && ea(ta, function() { + e.controller.abort(); + }); + } + var aa = null, oa = 0, sa = 0, ca = null; + function la(e, t) { + if (aa === null) { + var n = aa = []; + oa = 0, sa = _d(), ca = { + status: "pending", + value: void 0, + then: function(e) { + n.push(e); + } + }; + } + return oa++, t.then(ua, ua), t; + } + function ua() { + if (--oa === 0 && aa !== null) { + ca !== null && (ca.status = "fulfilled"); + var e = aa; + aa = null, sa = 0, ca = null; + for (var t = 0; t < e.length; t++) (0, e[t])(); + } + } + function da(e, t) { + var n = [], r = { + status: "pending", + value: null, + reason: null, + then: function(e) { + n.push(e); + } + }; + return e.then(function() { + r.status = "fulfilled", r.value = t; + for (var e = 0; e < n.length; e++) (0, n[e])(t); + }, function(e) { + for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0); + }), r; + } + var fa = A.S; + A.S = function(e, t) { + au = Te(), typeof t == "object" && t && typeof t.then == "function" && la(e, t), fa !== null && fa(e, t); + }; + var pa = le(null); + function ma() { + var e = pa.current; + return e === null ? Bl.pooledCache : e; + } + function ha(e, t) { + t === null ? M(pa, pa.current) : M(pa, t.pool); + } + function ga() { + var e = ma(); + return e === null ? null : { + parent: na._currentValue, + pool: e + }; + } + var _a = Error(i(460)), va = Error(i(474)), ya = Error(i(542)), ba = { then: function() {} }; + function xa(e) { + return e = e.status, e === "fulfilled" || e === "rejected"; + } + function Sa(e, t, n) { + switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(Jt, Jt), t = n), t.status) { + case "fulfilled": return t.value; + case "rejected": throw e = t.reason, Ea(e), e; + default: + if (typeof t.status == "string") t.then(Jt, Jt); + else { + if (e = Bl, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482)); + e = t, e.status = "pending", e.then(function(e) { + if (t.status === "pending") { + var n = t; + n.status = "fulfilled", n.value = e; + } + }, function(e) { + if (t.status === "pending") { + var n = t; + n.status = "rejected", n.reason = e; + } + }); + } + switch (t.status) { + case "fulfilled": return t.value; + case "rejected": throw e = t.reason, Ea(e), e; + } + throw wa = t, _a; + } + } + function Ca(e) { + try { + var t = e._init; + return t(e._payload); + } catch (e) { + throw typeof e == "object" && e && typeof e.then == "function" ? (wa = e, _a) : e; + } + } + var wa = null; + function Ta() { + if (wa === null) throw Error(i(459)); + var e = wa; + return wa = null, e; + } + function Ea(e) { + if (e === _a || e === ya) throw Error(i(483)); + } + var Da = null, Oa = 0; + function ka(e) { + var t = Oa; + return Oa += 1, Da === null && (Da = []), Sa(Da, e, t); + } + function Aa(e, t) { + t = t.props.ref, e.ref = t === void 0 ? null : t; + } + function ja(e, t) { + throw t.$$typeof === g ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e))); + } + function Ma(e) { + function t(t, n) { + if (e) { + var r = t.deletions; + r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n); + } + } + function n(n, r) { + if (!e) return null; + for (; r !== null;) t(n, r), r = r.sibling; + return null; + } + function r(e) { + for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling; + return t; + } + function a(e, t) { + return e = ai(e, t), e.index = 0, e.sibling = null, e; + } + function o(t, n, r) { + return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 67108866, n) : (r = r.index, r < n ? (t.flags |= 67108866, n) : r)) : (t.flags |= 1048576, n); + } + function s(t) { + return e && t.alternate === null && (t.flags |= 67108866), t; + } + function c(e, t, n, r) { + return t === null || t.tag !== 6 ? (t = li(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t); + } + function l(e, t, n, r) { + var i = n.type; + return i === y ? d(e, t, n.props.children, r, n.key) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === O && Ca(i) === t.type) ? (t = a(t, n.props), Aa(t, n), t.return = e, t) : (t = si(n.type, n.key, n.props, null, e.mode, r), Aa(t, n), t.return = e, t); + } + function u(e, t, n, r) { + return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = di(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t); + } + function d(e, t, n, r, i) { + return t === null || t.tag !== 7 ? (t = ci(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t); + } + function f(e, t, n) { + if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = li("" + t, e.mode, n), t.return = e, t; + if (typeof t == "object" && t) { + switch (t.$$typeof) { + case _: return n = si(t.type, t.key, t.props, null, e.mode, n), Aa(n, t), n.return = e, n; + case v: return t = di(t, e.mode, n), t.return = e, t; + case O: return t = Ca(t), f(e, t, n); + } + if (k(t) || re(t)) return t = ci(t, e.mode, n, null), t.return = e, t; + if (typeof t.then == "function") return f(e, ka(t), n); + if (t.$$typeof === C) return f(e, Zi(e, t), n); + ja(e, t); + } + return null; + } + function p(e, t, n, r) { + var i = t === null ? null : t.key; + if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null; + if (typeof n == "object" && n) { + switch (n.$$typeof) { + case _: return n.key === i ? l(e, t, n, r) : null; + case v: return n.key === i ? u(e, t, n, r) : null; + case O: return n = Ca(n), p(e, t, n, r); + } + if (k(n) || re(n)) return i === null ? d(e, t, n, r, null) : null; + if (typeof n.then == "function") return p(e, t, ka(n), r); + if (n.$$typeof === C) return p(e, t, Zi(e, n), r); + ja(e, n); + } + return null; + } + function m(e, t, n, r, i) { + if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i); + if (typeof r == "object" && r) { + switch (r.$$typeof) { + case _: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i); + case v: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i); + case O: return r = Ca(r), m(e, t, n, r, i); + } + if (k(r) || re(r)) return e = e.get(n) || null, d(t, e, r, i, null); + if (typeof r.then == "function") return m(e, t, n, ka(r), i); + if (r.$$typeof === C) return m(e, t, n, Zi(t, r), i); + ja(t, r); + } + return null; + } + function h(i, a, s, c) { + for (var l = null, u = null, d = a, h = a = 0, g = null; d !== null && h < s.length; h++) { + d.index > h ? (g = d, d = null) : g = d.sibling; + var _ = p(i, d, s[h], c); + if (_ === null) { + d === null && (d = g); + break; + } + e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g; + } + if (h === s.length) return n(i, d), ki && W(i, h), l; + if (d === null) { + for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d); + return ki && W(i, h), l; + } + for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && g.alternate !== null && d.delete(g.key === null ? h : g.key), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g); + return e && d.forEach(function(e) { + return t(i, e); + }), ki && W(i, h), l; + } + function g(a, s, c, l) { + if (c == null) throw Error(i(151)); + for (var u = null, d = null, h = s, g = s = 0, _ = null, v = c.next(); h !== null && !v.done; g++, v = c.next()) { + h.index > g ? (_ = h, h = null) : _ = h.sibling; + var y = p(a, h, v.value, l); + if (y === null) { + h === null && (h = _); + break; + } + e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _; + } + if (v.done) return n(a, h), ki && W(a, g), u; + if (h === null) { + for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v); + return ki && W(a, g), u; + } + for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && v.alternate !== null && h.delete(v.key === null ? g : v.key), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v); + return e && h.forEach(function(e) { + return t(a, e); + }), ki && W(a, g), u; + } + function b(e, r, o, c) { + if (typeof o == "object" && o && o.type === y && o.key === null && (o = o.props.children), typeof o == "object" && o) { + switch (o.$$typeof) { + case _: + a: { + for (var l = o.key; r !== null;) { + if (r.key === l) { + if (l = o.type, l === y) { + if (r.tag === 7) { + n(e, r.sibling), c = a(r, o.props.children), c.return = e, e = c; + break a; + } + } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === O && Ca(l) === r.type) { + n(e, r.sibling), c = a(r, o.props), Aa(c, o), c.return = e, e = c; + break a; + } + n(e, r); + break; + } else t(e, r); + r = r.sibling; + } + o.type === y ? (c = ci(o.props.children, e.mode, c, o.key), c.return = e, e = c) : (c = si(o.type, o.key, o.props, null, e.mode, c), Aa(c, o), c.return = e, e = c); + } + return s(e); + case v: + a: { + for (l = o.key; r !== null;) { + if (r.key === l) if (r.tag === 4 && r.stateNode.containerInfo === o.containerInfo && r.stateNode.implementation === o.implementation) { + n(e, r.sibling), c = a(r, o.children || []), c.return = e, e = c; + break a; + } else { + n(e, r); + break; + } + else t(e, r); + r = r.sibling; + } + c = di(o, e.mode, c), c.return = e, e = c; + } + return s(e); + case O: return o = Ca(o), b(e, r, o, c); + } + if (k(o)) return h(e, r, o, c); + if (re(o)) { + if (l = re(o), typeof l != "function") throw Error(i(150)); + return o = l.call(o), g(e, r, o, c); + } + if (typeof o.then == "function") return b(e, r, ka(o), c); + if (o.$$typeof === C) return b(e, r, Zi(e, o), c); + ja(e, o); + } + return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = li(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r); + } + return function(e, t, n, r) { + try { + Oa = 0; + var i = b(e, t, n, r); + return Da = null, i; + } catch (t) { + if (t === _a || t === ya) throw t; + var a = ri(29, t, null, e.mode); + return a.lanes = r, a.return = e, a; + } + }; + } + var Na = Ma(!0), Pa = Ma(!1), Fa = !1; + function Ia(e) { + e.updateQueue = { + baseState: e.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + lanes: 0, + hiddenCallbacks: null + }, + callbacks: null + }; + } + function La(e, t) { + e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { + baseState: e.baseState, + firstBaseUpdate: e.firstBaseUpdate, + lastBaseUpdate: e.lastBaseUpdate, + shared: e.shared, + callbacks: null + }); + } + function Ra(e) { + return { + lane: e, + tag: 0, + payload: null, + callback: null, + next: null + }; + } + function za(e, t, n) { + var r = e.updateQueue; + if (r === null) return null; + if (r = r.shared, zl & 2) { + var i = r.pending; + return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = ei(e), $r(e, null, n), t; + } + return Xr(e, r, t, n), ei(e); + } + function Ba(e, t, n) { + if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) { + var r = t.lanes; + r &= e.pendingLanes, n |= r, t.lanes = n, Je(e, n); + } + } + function Va(e, t) { + var n = e.updateQueue, r = e.alternate; + if (r !== null && (r = r.updateQueue, n === r)) { + var i = null, a = null; + if (n = n.firstBaseUpdate, n !== null) { + do { + var o = { + lane: n.lane, + tag: n.tag, + payload: n.payload, + callback: null, + next: null + }; + a === null ? i = a = o : a = a.next = o, n = n.next; + } while (n !== null); + a === null ? i = a = t : a = a.next = t; + } else i = a = t; + n = { + baseState: r.baseState, + firstBaseUpdate: i, + lastBaseUpdate: a, + shared: r.shared, + callbacks: r.callbacks + }, e.updateQueue = n; + return; + } + e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t; + } + var Ha = !1; + function Ua() { + if (Ha) { + var e = ca; + if (e !== null) throw e; + } + } + function Wa(e, t, n, r) { + Ha = !1; + var i = e.updateQueue; + Fa = !1; + var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending; + if (s !== null) { + i.shared.pending = null; + var c = s, l = c.next; + c.next = null, o === null ? a = l : o.next = l, o = c; + var u = e.alternate; + u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c)); + } + if (a !== null) { + var d = i.baseState; + o = 0, u = l = c = null, s = a; + do { + var f = s.lane & -536870913, p = f !== s.lane; + if (p ? (Hl & f) === f : (r & f) === f) { + f !== 0 && f === sa && (Ha = !0), u !== null && (u = u.next = { + lane: 0, + tag: s.tag, + payload: s.payload, + callback: null, + next: null + }); + a: { + var h = e, g = s; + f = t; + var _ = n; + switch (g.tag) { + case 1: + if (h = g.payload, typeof h == "function") { + d = h.call(_, d, f); + break a; + } + d = h; + break a; + case 3: h.flags = h.flags & -65537 | 128; + case 0: + if (h = g.payload, f = typeof h == "function" ? h.call(_, d, f) : h, f == null) break a; + d = m({}, d, f); + break a; + case 2: Fa = !0; + } + } + f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f)); + } else p = { + lane: f, + tag: s.tag, + payload: s.payload, + callback: s.callback, + next: null + }, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f; + if (s = s.next, s === null) { + if (s = i.shared.pending, s === null) break; + p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null; + } + } while (1); + u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), Xl |= o, e.lanes = o, e.memoizedState = d; + } + } + function Ga(e, t) { + if (typeof e != "function") throw Error(i(191, e)); + e.call(t); + } + function Ka(e, t) { + var n = e.callbacks; + if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Ga(n[e], t); + } + var qa = le(null), Ja = le(0); + function Ya(e, t) { + e = Jl, M(Ja, e), M(qa, t), Jl = e | t.baseLanes; + } + function Xa() { + M(Ja, Jl), M(qa, qa.current); + } + function Za() { + Jl = Ja.current, ue(qa), ue(Ja); + } + var Qa = le(null), $a = null; + function eo(e) { + var t = e.alternate; + M(ao, ao.current & 1), M(Qa, e), $a === null && (t === null || qa.current !== null || t.memoizedState !== null) && ($a = e); + } + function to(e) { + M(ao, ao.current), M(Qa, e), $a === null && ($a = e); + } + function no(e) { + e.tag === 22 ? (M(ao, ao.current), M(Qa, e), $a === null && ($a = e)) : ro(e); + } + function ro() { + M(ao, ao.current), M(Qa, Qa.current); + } + function io(e) { + ue(Qa), $a === e && ($a = null), ue(ao); + } + var ao = le(0); + function oo(e) { + for (var t = e; t !== null;) { + if (t.tag === 13) { + var n = t.memoizedState; + if (n !== null && (n = n.dehydrated, n === null || pf(n) || mf(n))) return t; + } else if (t.tag === 19 && (t.memoizedProps.revealOrder === "forwards" || t.memoizedProps.revealOrder === "backwards" || t.memoizedProps.revealOrder === "unstable_legacy-backwards" || t.memoizedProps.revealOrder === "together")) { + if (t.flags & 128) return t; + } else if (t.child !== null) { + t.child.return = t, t = t.child; + continue; + } + if (t === e) break; + for (; t.sibling === null;) { + if (t.return === null || t.return === e) return null; + t = t.return; + } + t.sibling.return = t.return, t = t.sibling; + } + return null; + } + var so = 0, co = null, lo = null, uo = null, fo = !1, po = !1, mo = !1, ho = 0, go = 0, _o = null, vo = 0; + function yo() { + throw Error(i(321)); + } + function bo(e, t) { + if (t === null) return !1; + for (var n = 0; n < t.length && n < e.length; n++) if (!_r(e[n], t[n])) return !1; + return !0; + } + function xo(e, t, n, r, i, a) { + return so = a, co = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, A.H = e === null || e.memoizedState === null ? Ls : Rs, mo = !1, a = n(r, i), mo = !1, po && (a = Co(t, n, r, i)), So(e), a; + } + function So(e) { + A.H = Is; + var t = lo !== null && lo.next !== null; + if (so = 0, uo = lo = co = null, fo = !1, go = 0, _o = null, t) throw Error(i(300)); + e === null || tc || (e = e.dependencies, e !== null && Ji(e) && (tc = !0)); + } + function Co(e, t, n, r) { + co = e; + var a = 0; + do { + if (po && (_o = null), go = 0, po = !1, 25 <= a) throw Error(i(301)); + if (a += 1, uo = lo = null, e.updateQueue != null) { + var o = e.updateQueue; + o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0); + } + A.H = zs, o = t(n, r); + } while (po); + return o; + } + function wo() { + var e = A.H, t = e.useState()[0]; + return t = typeof t.then == "function" ? jo(t) : t, e = e.useState()[0], (lo === null ? null : lo.memoizedState) !== e && (co.flags |= 1024), t; + } + function To() { + var e = ho !== 0; + return ho = 0, e; + } + function Eo(e, t, n) { + t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n; + } + function Do(e) { + if (fo) { + for (e = e.memoizedState; e !== null;) { + var t = e.queue; + t !== null && (t.pending = null), e = e.next; + } + fo = !1; + } + so = 0, uo = lo = co = null, po = !1, go = ho = 0, _o = null; + } + function Oo() { + var e = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + return uo === null ? co.memoizedState = uo = e : uo = uo.next = e, uo; + } + function ko() { + if (lo === null) { + var e = co.alternate; + e = e === null ? null : e.memoizedState; + } else e = lo.next; + var t = uo === null ? co.memoizedState : uo.next; + if (t !== null) uo = t, lo = e; + else { + if (e === null) throw co.alternate === null ? Error(i(467)) : Error(i(310)); + lo = e, e = { + memoizedState: lo.memoizedState, + baseState: lo.baseState, + baseQueue: lo.baseQueue, + queue: lo.queue, + next: null + }, uo === null ? co.memoizedState = uo = e : uo = uo.next = e; + } + return uo; + } + function Ao() { + return { + lastEffect: null, + events: null, + stores: null, + memoCache: null + }; + } + function jo(e) { + var t = go; + return go += 1, _o === null && (_o = []), e = Sa(_o, e, t), t = co, (uo === null ? t.memoizedState : uo.next) === null && (t = t.alternate, A.H = t === null || t.memoizedState === null ? Ls : Rs), e; + } + function Mo(e) { + if (typeof e == "object" && e) { + if (typeof e.then == "function") return jo(e); + if (e.$$typeof === C) return Xi(e); + } + throw Error(i(438, String(e))); + } + function No(e) { + var t = null, n = co.updateQueue; + if (n !== null && (t = n.memoCache), t == null) { + var r = co.alternate; + r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = { + data: r.data.map(function(e) { + return e.slice(); + }), + index: 0 + }))); + } + if (t ??= { + data: [], + index: 0 + }, n === null && (n = Ao(), co.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = te; + return t.index++, n; + } + function Po(e, t) { + return typeof t == "function" ? t(e) : t; + } + function Fo(e) { + return Io(ko(), lo, e); + } + function Io(e, t, n) { + var r = e.queue; + if (r === null) throw Error(i(311)); + r.lastRenderedReducer = n; + var a = e.baseQueue, o = r.pending; + if (o !== null) { + if (a !== null) { + var s = a.next; + a.next = o.next, o.next = s; + } + t.baseQueue = a = o, r.pending = null; + } + if (o = e.baseState, a === null) e.memoizedState = o; + else { + t = a.next; + var c = s = null, l = null, u = t, d = !1; + do { + var f = u.lane & -536870913; + if (f === u.lane ? (so & f) === f : (Hl & f) === f) { + var p = u.revertLane; + if (p === 0) l !== null && (l = l.next = { + lane: 0, + revertLane: 0, + gesture: null, + action: u.action, + hasEagerState: u.hasEagerState, + eagerState: u.eagerState, + next: null + }), f === sa && (d = !0); + else if ((so & p) === p) { + u = u.next, p === sa && (d = !0); + continue; + } else f = { + lane: 0, + revertLane: u.revertLane, + gesture: null, + action: u.action, + hasEagerState: u.hasEagerState, + eagerState: u.eagerState, + next: null + }, l === null ? (c = l = f, s = o) : l = l.next = f, co.lanes |= p, Xl |= p; + f = u.action, mo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f); + } else p = { + lane: f, + revertLane: u.revertLane, + gesture: u.gesture, + action: u.action, + hasEagerState: u.hasEagerState, + eagerState: u.eagerState, + next: null + }, l === null ? (c = l = p, s = o) : l = l.next = p, co.lanes |= f, Xl |= f; + u = u.next; + } while (u !== null && u !== t); + if (l === null ? s = o : l.next = c, !_r(o, e.memoizedState) && (tc = !0, d && (n = ca, n !== null))) throw n; + e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o; + } + return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch]; + } + function Lo(e) { + var t = ko(), n = t.queue; + if (n === null) throw Error(i(311)); + n.lastRenderedReducer = e; + var r = n.dispatch, a = n.pending, o = t.memoizedState; + if (a !== null) { + n.pending = null; + var s = a = a.next; + do + o = e(o, s.action), s = s.next; + while (s !== a); + _r(o, t.memoizedState) || (tc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o; + } + return [o, r]; + } + function Ro(e, t, n) { + var r = co, a = ko(), o = ki; + if (o) { + if (n === void 0) throw Error(i(407)); + n = n(); + } else n = t(); + var s = !_r((lo || a).memoizedState, n); + if (s && (a.memoizedState = n, tc = !0), a = a.queue, ls(Vo.bind(null, r, a, e), [e]), a.getSnapshot !== t || s || uo !== null && uo.memoizedState.tag & 1) { + if (r.flags |= 2048, is(9, { destroy: void 0 }, Bo.bind(null, r, a, n, t), null), Bl === null) throw Error(i(349)); + o || so & 127 || zo(r, t, n); + } + return n; + } + function zo(e, t, n) { + e.flags |= 16384, e = { + getSnapshot: t, + value: n + }, t = co.updateQueue, t === null ? (t = Ao(), co.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e)); + } + function Bo(e, t, n, r) { + t.value = n, t.getSnapshot = r, Ho(t) && Uo(e); + } + function Vo(e, t, n) { + return n(function() { + Ho(t) && Uo(e); + }); + } + function Ho(e) { + var t = e.getSnapshot; + e = e.value; + try { + var n = t(); + return !_r(e, n); + } catch { + return !0; + } + } + function Uo(e) { + var t = Qr(e, 2); + t !== null && bu(t, e, 2); + } + function Wo(e) { + var t = Oo(); + if (typeof e == "function") { + var n = e; + if (e = n(), mo) { + B(!0); + try { + n(); + } finally { + B(!1); + } + } + } + return t.memoizedState = t.baseState = e, t.queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Po, + lastRenderedState: e + }, t; + } + function Go(e, t, n, r) { + return e.baseState = n, Io(e, lo, typeof r == "function" ? r : Po); + } + function Ko(e, t, n, r, a) { + if (Ns(e)) throw Error(i(485)); + if (e = t.action, e !== null) { + var o = { + payload: a, + action: e, + next: null, + isTransition: !0, + status: "pending", + value: null, + reason: null, + listeners: [], + then: function(e) { + o.listeners.push(e); + } + }; + A.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, qo(t, o)) : (o.next = n.next, t.pending = n.next = o); + } + } + function qo(e, t) { + var n = t.action, r = t.payload, i = e.state; + if (t.isTransition) { + var a = A.T, o = {}; + A.T = o; + try { + var s = n(i, r), c = A.S; + c !== null && c(o, s), Jo(e, t, s); + } catch (n) { + Xo(e, t, n); + } finally { + a !== null && o.types !== null && (a.types = o.types), A.T = a; + } + } else try { + a = n(i, r), Jo(e, t, a); + } catch (n) { + Xo(e, t, n); + } + } + function Jo(e, t, n) { + typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) { + Yo(e, t, n); + }, function(n) { + return Xo(e, t, n); + }) : Yo(e, t, n); + } + function Yo(e, t, n) { + t.status = "fulfilled", t.value = n, Zo(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, qo(e, n))); + } + function Xo(e, t, n) { + var r = e.pending; + if (e.pending = null, r !== null) { + r = r.next; + do + t.status = "rejected", t.reason = n, Zo(t), t = t.next; + while (t !== r); + } + e.action = null; + } + function Zo(e) { + e = e.listeners; + for (var t = 0; t < e.length; t++) (0, e[t])(); + } + function Qo(e, t) { + return t; + } + function $o(e, t) { + if (ki) { + var n = Bl.formState; + if (n !== null) { + a: { + var r = co; + if (ki) { + if (Oi) { + b: { + for (var i = Oi, a = ji; i.nodeType !== 8;) { + if (!a) { + i = null; + break b; + } + if (i = gf(i.nextSibling), i === null) { + i = null; + break b; + } + } + a = i.data, i = a === "F!" || a === "F" ? i : null; + } + if (i) { + Oi = gf(i.nextSibling), r = i.data === "F!"; + break a; + } + } + Ni(r); + } + r = !1; + } + r && (t = n[0]); + } + } + return n = Oo(), n.memoizedState = n.baseState = t, r = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Qo, + lastRenderedState: t + }, n.queue = r, n = As.bind(null, co, r), r.dispatch = n, r = Wo(!1), a = Ms.bind(null, co, !1, r.queue), r = Oo(), i = { + state: t, + dispatch: null, + action: e, + pending: null + }, r.queue = i, n = Ko.bind(null, co, i, a, n), i.dispatch = n, r.memoizedState = e, [ + t, + n, + !1 + ]; + } + function es(e) { + return ts(ko(), lo, e); + } + function ts(e, t, n) { + if (t = Io(e, t, Qo)[0], e = Fo(Po)[0], typeof t == "object" && t && typeof t.then == "function") try { + var r = jo(t); + } catch (e) { + throw e === _a ? ya : e; + } + else r = t; + t = ko(); + var i = t.queue, a = i.dispatch; + return n !== t.memoizedState && (co.flags |= 2048, is(9, { destroy: void 0 }, ns.bind(null, i, n), null)), [ + r, + a, + e + ]; + } + function ns(e, t) { + e.action = t; + } + function rs(e) { + var t = ko(), n = lo; + if (n !== null) return ts(t, n, e); + ko(), t = t.memoizedState, n = ko(); + var r = n.queue.dispatch; + return n.memoizedState = e, [ + t, + r, + !1 + ]; + } + function is(e, t, n, r) { + return e = { + tag: e, + create: n, + deps: r, + inst: t, + next: null + }, t = co.updateQueue, t === null && (t = Ao(), co.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e; + } + function as() { + return ko().memoizedState; + } + function os(e, t, n, r) { + var i = Oo(); + co.flags |= e, i.memoizedState = is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r); + } + function ss(e, t, n, r) { + var i = ko(); + r = r === void 0 ? null : r; + var a = i.memoizedState.inst; + lo !== null && r !== null && bo(r, lo.memoizedState.deps) ? i.memoizedState = is(t, a, n, r) : (co.flags |= e, i.memoizedState = is(1 | t, a, n, r)); + } + function cs(e, t) { + os(8390656, 8, e, t); + } + function ls(e, t) { + ss(2048, 8, e, t); + } + function us(e) { + co.flags |= 4; + var t = co.updateQueue; + if (t === null) t = Ao(), co.updateQueue = t, t.events = [e]; + else { + var n = t.events; + n === null ? t.events = [e] : n.push(e); + } + } + function ds(e) { + var t = ko().memoizedState; + return us({ + ref: t, + nextImpl: e + }), function() { + if (zl & 2) throw Error(i(440)); + return t.impl.apply(void 0, arguments); + }; + } + function fs(e, t) { + return ss(4, 2, e, t); + } + function ps(e, t) { + return ss(4, 4, e, t); + } + function ms(e, t) { + if (typeof t == "function") { + e = e(); + var n = t(e); + return function() { + typeof n == "function" ? n() : t(null); + }; + } + if (t != null) return e = e(), t.current = e, function() { + t.current = null; + }; + } + function hs(e, t, n) { + n = n == null ? null : n.concat([e]), ss(4, 4, ms.bind(null, t, e), n); + } + function gs() {} + function _s(e, t) { + var n = ko(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + return t !== null && bo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e); + } + function G(e, t) { + var n = ko(); + t = t === void 0 ? null : t; + var r = n.memoizedState; + if (t !== null && bo(t, r[1])) return r[0]; + if (r = e(), mo) { + B(!0); + try { + e(); + } finally { + B(!1); + } + } + return n.memoizedState = [r, t], r; + } + function vs(e, t, n) { + return n === void 0 || so & 1073741824 && !(Hl & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = yu(), co.lanes |= e, Xl |= e, n); + } + function ys(e, t, n, r) { + return _r(n, t) ? n : qa.current === null ? !(so & 42) || so & 1073741824 && !(Hl & 261930) ? (tc = !0, e.memoizedState = n) : (e = yu(), co.lanes |= e, Xl |= e, t) : (e = vs(e, n, r), _r(e, t) || (tc = !0), e); + } + function bs(e, t, n, r, i) { + var a = j.p; + j.p = a !== 0 && 8 > a ? a : 8; + var o = A.T, s = {}; + A.T = s, Ms(e, !1, t, n); + try { + var c = i(), l = A.S; + l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? js(e, t, da(c, r), vu(e)) : js(e, t, r, vu(e)); + } catch (n) { + js(e, t, { + then: function() {}, + status: "rejected", + reason: n + }, vu()); + } finally { + j.p = a, o !== null && s.types !== null && (o.types = s.types), A.T = o; + } + } + function xs() {} + function Ss(e, t, n, r) { + if (e.tag !== 5) throw Error(i(476)); + var a = Cs(e).queue; + bs(e, a, t, oe, n === null ? xs : function() { + return ws(e), n(r); + }); + } + function Cs(e) { + var t = e.memoizedState; + if (t !== null) return t; + t = { + memoizedState: oe, + baseState: oe, + baseQueue: null, + queue: { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Po, + lastRenderedState: oe + }, + next: null + }; + var n = {}; + return t.next = { + memoizedState: n, + baseState: n, + baseQueue: null, + queue: { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: Po, + lastRenderedState: n + }, + next: null + }, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t; + } + function ws(e) { + var t = Cs(e); + t.next === null && (t = e.alternate.memoizedState), js(e, t.next.queue, {}, vu()); + } + function Ts() { + return Xi(op); + } + function Es() { + return ko().memoizedState; + } + function Ds() { + return ko().memoizedState; + } + function Os(e) { + for (var t = e.return; t !== null;) { + switch (t.tag) { + case 24: + case 3: + var n = vu(); + e = Ra(n); + var r = za(t, e, n); + r !== null && (bu(r, t, n), Ba(r, t, n)), t = { cache: ra() }, e.payload = t; + return; + } + t = t.return; + } + } + function ks(e, t, n) { + var r = vu(); + n = { + lane: r, + revertLane: 0, + gesture: null, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }, Ns(e) ? Ps(t, n) : (n = Zr(e, t, n, r), n !== null && (bu(n, e, r), Fs(n, t, r))); + } + function As(e, t, n) { + js(e, t, n, vu()); + } + function js(e, t, n, r) { + var i = { + lane: r, + revertLane: 0, + gesture: null, + action: n, + hasEagerState: !1, + eagerState: null, + next: null + }; + if (Ns(e)) Ps(t, i); + else { + var a = e.alternate; + if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try { + var o = t.lastRenderedState, s = a(o, n); + if (i.hasEagerState = !0, i.eagerState = s, _r(s, o)) return Xr(e, t, i, 0), Bl === null && Yr(), !1; + } catch {} + if (n = Zr(e, t, i, r), n !== null) return bu(n, e, r), Fs(n, t, r), !0; + } + return !1; + } + function Ms(e, t, n, r) { + if (r = { + lane: 2, + revertLane: _d(), + gesture: null, + action: r, + hasEagerState: !1, + eagerState: null, + next: null + }, Ns(e)) { + if (t) throw Error(i(479)); + } else t = Zr(e, n, r, 2), t !== null && bu(t, e, 2); + } + function Ns(e) { + var t = e.alternate; + return e === co || t !== null && t === co; + } + function Ps(e, t) { + po = fo = !0; + var n = e.pending; + n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t; + } + function Fs(e, t, n) { + if (n & 4194048) { + var r = t.lanes; + r &= e.pendingLanes, n |= r, t.lanes = n, Je(e, n); + } + } + var Is = { + readContext: Xi, + use: Mo, + useCallback: yo, + useContext: yo, + useEffect: yo, + useImperativeHandle: yo, + useLayoutEffect: yo, + useInsertionEffect: yo, + useMemo: yo, + useReducer: yo, + useRef: yo, + useState: yo, + useDebugValue: yo, + useDeferredValue: yo, + useTransition: yo, + useSyncExternalStore: yo, + useId: yo, + useHostTransitionStatus: yo, + useFormState: yo, + useActionState: yo, + useOptimistic: yo, + useMemoCache: yo, + useCacheRefresh: yo + }; + Is.useEffectEvent = yo; + var Ls = { + readContext: Xi, + use: Mo, + useCallback: function(e, t) { + return Oo().memoizedState = [e, t === void 0 ? null : t], e; + }, + useContext: Xi, + useEffect: cs, + useImperativeHandle: function(e, t, n) { + n = n == null ? null : n.concat([e]), os(4194308, 4, ms.bind(null, t, e), n); + }, + useLayoutEffect: function(e, t) { + return os(4194308, 4, e, t); + }, + useInsertionEffect: function(e, t) { + os(4, 2, e, t); + }, + useMemo: function(e, t) { + var n = Oo(); + t = t === void 0 ? null : t; + var r = e(); + if (mo) { + B(!0); + try { + e(); + } finally { + B(!1); + } + } + return n.memoizedState = [r, t], r; + }, + useReducer: function(e, t, n) { + var r = Oo(); + if (n !== void 0) { + var i = n(t); + if (mo) { + B(!0); + try { + n(t); + } finally { + B(!1); + } + } + } else i = t; + return r.memoizedState = r.baseState = i, e = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: e, + lastRenderedState: i + }, r.queue = e, e = e.dispatch = ks.bind(null, co, e), [r.memoizedState, e]; + }, + useRef: function(e) { + var t = Oo(); + return e = { current: e }, t.memoizedState = e; + }, + useState: function(e) { + e = Wo(e); + var t = e.queue, n = As.bind(null, co, t); + return t.dispatch = n, [e.memoizedState, n]; + }, + useDebugValue: gs, + useDeferredValue: function(e, t) { + return vs(Oo(), e, t); + }, + useTransition: function() { + var e = Wo(!1); + return e = bs.bind(null, co, e.queue, !0, !1), Oo().memoizedState = e, [!1, e]; + }, + useSyncExternalStore: function(e, t, n) { + var r = co, a = Oo(); + if (ki) { + if (n === void 0) throw Error(i(407)); + n = n(); + } else { + if (n = t(), Bl === null) throw Error(i(349)); + Hl & 127 || zo(r, t, n); + } + a.memoizedState = n; + var o = { + value: n, + getSnapshot: t + }; + return a.queue = o, cs(Vo.bind(null, r, o, e), [e]), r.flags |= 2048, is(9, { destroy: void 0 }, Bo.bind(null, r, o, n, t), null), n; + }, + useId: function() { + var e = Oo(), t = Bl.identifierPrefix; + if (ki) { + var n = Si, r = xi; + n = (r & ~(1 << 32 - Fe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = ho++, 0 < n && (t += "H" + n.toString(32)), t += "_"; + } else n = vo++, t = "_" + t + "r_" + n.toString(32) + "_"; + return e.memoizedState = t; + }, + useHostTransitionStatus: Ts, + useFormState: $o, + useActionState: $o, + useOptimistic: function(e) { + var t = Oo(); + t.memoizedState = t.baseState = e; + var n = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + return t.queue = n, t = Ms.bind(null, co, !0, n), n.dispatch = t, [e, t]; + }, + useMemoCache: No, + useCacheRefresh: function() { + return Oo().memoizedState = Os.bind(null, co); + }, + useEffectEvent: function(e) { + var t = Oo(), n = { impl: e }; + return t.memoizedState = n, function() { + if (zl & 2) throw Error(i(440)); + return n.impl.apply(void 0, arguments); + }; + } + }, Rs = { + readContext: Xi, + use: Mo, + useCallback: _s, + useContext: Xi, + useEffect: ls, + useImperativeHandle: hs, + useInsertionEffect: fs, + useLayoutEffect: ps, + useMemo: G, + useReducer: Fo, + useRef: as, + useState: function() { + return Fo(Po); + }, + useDebugValue: gs, + useDeferredValue: function(e, t) { + return ys(ko(), lo.memoizedState, e, t); + }, + useTransition: function() { + var e = Fo(Po)[0], t = ko().memoizedState; + return [typeof e == "boolean" ? e : jo(e), t]; + }, + useSyncExternalStore: Ro, + useId: Es, + useHostTransitionStatus: Ts, + useFormState: es, + useActionState: es, + useOptimistic: function(e, t) { + return Go(ko(), lo, e, t); + }, + useMemoCache: No, + useCacheRefresh: Ds + }; + Rs.useEffectEvent = ds; + var zs = { + readContext: Xi, + use: Mo, + useCallback: _s, + useContext: Xi, + useEffect: ls, + useImperativeHandle: hs, + useInsertionEffect: fs, + useLayoutEffect: ps, + useMemo: G, + useReducer: Lo, + useRef: as, + useState: function() { + return Lo(Po); + }, + useDebugValue: gs, + useDeferredValue: function(e, t) { + var n = ko(); + return lo === null ? vs(n, e, t) : ys(n, lo.memoizedState, e, t); + }, + useTransition: function() { + var e = Lo(Po)[0], t = ko().memoizedState; + return [typeof e == "boolean" ? e : jo(e), t]; + }, + useSyncExternalStore: Ro, + useId: Es, + useHostTransitionStatus: Ts, + useFormState: rs, + useActionState: rs, + useOptimistic: function(e, t) { + var n = ko(); + return lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Go(n, lo, e, t); + }, + useMemoCache: No, + useCacheRefresh: Ds + }; + zs.useEffectEvent = ds; + function Bs(e, t, n, r) { + t = e.memoizedState, n = n(r, t), n = n == null ? t : m({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n); + } + var Vs = { + enqueueSetState: function(e, t, n) { + e = e._reactInternals; + var r = vu(), i = Ra(r); + i.payload = t, n != null && (i.callback = n), t = za(e, i, r), t !== null && (bu(t, e, r), Ba(t, e, r)); + }, + enqueueReplaceState: function(e, t, n) { + e = e._reactInternals; + var r = vu(), i = Ra(r); + i.tag = 1, i.payload = t, n != null && (i.callback = n), t = za(e, i, r), t !== null && (bu(t, e, r), Ba(t, e, r)); + }, + enqueueForceUpdate: function(e, t) { + e = e._reactInternals; + var n = vu(), r = Ra(n); + r.tag = 2, t != null && (r.callback = t), t = za(e, r, n), t !== null && (bu(t, e, n), Ba(t, e, n)); + } + }; + function Hs(e, t, n, r, i, a, o) { + return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !vr(n, r) || !vr(i, a) : !0; + } + function Us(e, t, n, r) { + e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && Vs.enqueueReplaceState(t, t.state, null); + } + function Ws(e, t) { + var n = t; + if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]); + if (e = e.defaultProps) for (var i in n === t && (n = m({}, n)), e) n[i] === void 0 && (n[i] = e[i]); + return n; + } + function Gs(e) { + Gr(e); + } + function Ks(e) { + console.error(e); + } + function qs(e) { + Gr(e); + } + function Js(e, t) { + try { + var n = e.onUncaughtError; + n(t.value, { componentStack: t.stack }); + } catch (e) { + setTimeout(function() { + throw e; + }); + } + } + function Ys(e, t, n) { + try { + var r = e.onCaughtError; + r(n.value, { + componentStack: n.stack, + errorBoundary: t.tag === 1 ? t.stateNode : null + }); + } catch (e) { + setTimeout(function() { + throw e; + }); + } + } + function Xs(e, t, n) { + return n = Ra(n), n.tag = 3, n.payload = { element: null }, n.callback = function() { + Js(e, t); + }, n; + } + function Zs(e) { + return e = Ra(e), e.tag = 3, e; + } + function Qs(e, t, n, r) { + var i = n.type.getDerivedStateFromError; + if (typeof i == "function") { + var a = r.value; + e.payload = function() { + return i(a); + }, e.callback = function() { + Ys(t, n, r); + }; + } + var o = n.stateNode; + o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() { + Ys(t, n, r), typeof i != "function" && (cu === null ? cu = /* @__PURE__ */ new Set([this]) : cu.add(this)); + var e = r.stack; + this.componentDidCatch(r.value, { componentStack: e === null ? "" : e }); + }); + } + function $s(e, t, n, r, a) { + if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") { + if (t = n.alternate, t !== null && qi(t, n, a, !0), n = Qa.current, n !== null) { + switch (n.tag) { + case 31: + case 13: return $a === null ? Mu() : n.alternate === null && Yl === 0 && (Yl = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === ba ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Zu(e, r, a)), !1; + case 22: return n.flags |= 65536, r === ba ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = { + transitions: null, + markerInstances: null, + retryQueue: /* @__PURE__ */ new Set([r]) + }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), Zu(e, r, a)), !1; + } + throw Error(i(435, n.tag)); + } + return Zu(e, r, a), Mu(), !1; + } + if (ki) return t = Qa.current, t === null ? (r !== Mi && (t = Error(i(423), { cause: r }), zi(pi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = pi(r, n), a = Xs(e.stateNode, r, a), Va(e, a), Yl !== 4 && (Yl = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== Mi && (e = Error(i(422), { cause: r }), zi(pi(e, n)))), !1; + var o = Error(i(520), { cause: r }); + if (o = pi(o, n), tu === null ? tu = [o] : tu.push(o), Yl !== 4 && (Yl = 2), t === null) return !0; + r = pi(r, n), n = t; + do { + switch (n.tag) { + case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Xs(n.stateNode, r, e), Va(n, e), !1; + case 1: if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (cu === null || !cu.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Zs(a), Qs(a, e, n, r), Va(n, a), !1; + } + n = n.return; + } while (n !== null); + return !1; + } + var ec = Error(i(461)), tc = !1; + function nc(e, t, n, r) { + t.child = e === null ? Pa(t, null, n, r) : Na(t, e.child, n, r); + } + function rc(e, t, n, r, i) { + n = n.render; + var a = t.ref; + if ("ref" in r) { + var o = {}; + for (var s in r) s !== "ref" && (o[s] = r[s]); + } else o = r; + return Yi(t), r = xo(e, t, n, o, a, i), s = To(), e !== null && !tc ? (Eo(e, t, i), Dc(e, t, i)) : (ki && s && wi(t), t.flags |= 1, nc(e, t, r, i), t.child); + } + function ic(e, t, n, r, i) { + if (e === null) { + var a = n.type; + return typeof a == "function" && !ii(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, ac(e, t, a, r, i)) : (e = si(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e); + } + if (a = e.child, !Oc(e, i)) { + var o = a.memoizedProps; + if (n = n.compare, n = n === null ? vr : n, n(o, r) && e.ref === t.ref) return Dc(e, t, i); + } + return t.flags |= 1, e = ai(a, r), e.ref = t.ref, e.return = t, t.child = e; + } + function ac(e, t, n, r, i) { + if (e !== null) { + var a = e.memoizedProps; + if (vr(a, r) && e.ref === t.ref) if (tc = !1, t.pendingProps = r = a, Oc(e, i)) e.flags & 131072 && (tc = !0); + else return t.lanes = e.lanes, Dc(e, t, i); + } + return pc(e, t, n, r, i); + } + function oc(e, t, n, r) { + var i = r.children, a = e === null ? null : e.memoizedState; + if (e === null && t.stateNode === null && (t.stateNode = { + _visibility: 1, + _pendingMarkers: null, + _retryCache: null, + _transitions: null + }), r.mode === "hidden") { + if (t.flags & 128) { + if (a = a === null ? n : a.baseLanes | n, e !== null) { + for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling; + r = i & ~a; + } else r = 0, t.child = null; + return cc(e, t, a, n, r); + } + if (n & 536870912) t.memoizedState = { + baseLanes: 0, + cachePool: null + }, e !== null && ha(t, a === null ? null : a.cachePool), a === null ? Xa() : Ya(t, a), no(t); + else return r = t.lanes = 536870912, cc(e, t, a === null ? n : a.baseLanes | n, n, r); + } else a === null ? (e !== null && ha(t, null), Xa(), ro(t)) : (ha(t, a.cachePool), Ya(t, a), ro(t), t.memoizedState = null); + return nc(e, t, i, n), t.child; + } + function sc(e, t) { + return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = { + _visibility: 1, + _pendingMarkers: null, + _retryCache: null, + _transitions: null + }), t.sibling; + } + function cc(e, t, n, r, i) { + var a = ma(); + return a = a === null ? null : { + parent: na._currentValue, + pool: a + }, t.memoizedState = { + baseLanes: n, + cachePool: a + }, e !== null && ha(t, null), Xa(), no(t), e !== null && qi(e, t, r, !0), t.childLanes = i, null; + } + function lc(e, t) { + return t = Sc({ + mode: t.mode, + children: t.children + }, e.mode), t.ref = e.ref, e.child = t, t.return = e, t; + } + function uc(e, t, n) { + return Na(t, e.child, null, n), e = lc(t, t.pendingProps), e.flags |= 2, io(t), t.memoizedState = null, e; + } + function dc(e, t, n) { + var r = t.pendingProps, a = (t.flags & 128) != 0; + if (t.flags &= -129, e === null) { + if (ki) { + if (r.mode === "hidden") return e = lc(t, r), t.lanes = 536870912, sc(null, e); + if (to(t), (e = Oi) ? (e = ff(e, ji), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = { + dehydrated: e, + treeContext: bi === null ? null : { + id: xi, + overflow: Si + }, + retryLane: 536870912, + hydrationErrors: null + }, n = ui(e), n.return = t, t.child = n, Di = t, Oi = null)) : e = null, e === null) throw Ni(t); + return t.lanes = 536870912, null; + } + return lc(t, r); + } + var o = e.memoizedState; + if (o !== null) { + var s = o.dehydrated; + if (to(t), a) if (t.flags & 256) t.flags &= -257, t = uc(e, t, n); + else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null; + else throw Error(i(558)); + else if (tc || qi(e, t, n, !1), a = (n & e.childLanes) !== 0, tc || a) { + if (r = Bl, r !== null && (s = Ye(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Qr(e, s), bu(r, e, s), ec; + Mu(), t = uc(e, t, n); + } else e = o.treeContext, Oi = gf(s.nextSibling), Di = t, ki = !0, Ai = null, ji = !1, e !== null && Ei(t, e), t = lc(t, r), t.flags |= 4096; + return t; + } + return e = ai(e.child, { + mode: r.mode, + children: r.children + }), e.ref = t.ref, t.child = e, e.return = t, e; + } + function fc(e, t) { + var n = t.ref; + if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816); + else { + if (typeof n != "function" && typeof n != "object") throw Error(i(284)); + (e === null || e.ref !== n) && (t.flags |= 4194816); + } + } + function pc(e, t, n, r, i) { + return Yi(t), n = xo(e, t, n, r, void 0, i), r = To(), e !== null && !tc ? (Eo(e, t, i), Dc(e, t, i)) : (ki && r && wi(t), t.flags |= 1, nc(e, t, n, i), t.child); + } + function mc(e, t, n, r, i, a) { + return Yi(t), t.updateQueue = null, n = Co(t, r, n, i), So(e), r = To(), e !== null && !tc ? (Eo(e, t, a), Dc(e, t, a)) : (ki && r && wi(t), t.flags |= 1, nc(e, t, n, a), t.child); + } + function hc(e, t, n, r, i) { + if (Yi(t), t.stateNode === null) { + var a = ti, o = n.contextType; + typeof o == "object" && o && (a = Xi(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = Vs, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, Ia(t), o = n.contextType, a.context = typeof o == "object" && o ? Xi(o) : ti, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (Bs(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && Vs.enqueueReplaceState(a, a.state, null), Wa(t, r, a, i), Ua(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0; + } else if (e === null) { + a = t.stateNode; + var s = t.memoizedProps, c = Ws(n, s); + a.props = c; + var l = a.context, u = n.contextType; + o = ti, typeof u == "object" && u && (o = Xi(u)); + var d = n.getDerivedStateFromProps; + u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Us(t, a, r, o), Fa = !1; + var f = t.memoizedState; + a.state = f, Wa(t, r, a, i), Ua(), l = t.memoizedState, s || f !== l || Fa ? (typeof d == "function" && (Bs(t, n, d, r), l = t.memoizedState), (c = Fa || Hs(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1); + } else { + a = t.stateNode, La(e, t), o = t.memoizedProps, u = Ws(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = ti, typeof l == "object" && l && (c = Xi(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Us(t, a, r, c), Fa = !1, f = t.memoizedState, a.state = f, Wa(t, r, a, i), Ua(); + var p = t.memoizedState; + o !== d || f !== p || Fa || e !== null && e.dependencies !== null && Ji(e.dependencies) ? (typeof s == "function" && (Bs(t, n, s, r), p = t.memoizedState), (u = Fa || Hs(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Ji(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1); + } + return a = r, fc(e, t), r = (t.flags & 128) != 0, a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = Na(t, e.child, null, i), t.child = Na(t, null, n, i)) : nc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = Dc(e, t, i), e; + } + function gc(e, t, n, r) { + return Li(), t.flags |= 256, nc(e, t, n, r), t.child; + } + var _c = { + dehydrated: null, + treeContext: null, + retryLane: 0, + hydrationErrors: null + }; + function vc(e) { + return { + baseLanes: e, + cachePool: ga() + }; + } + function yc(e, t, n) { + return e = e === null ? 0 : e.childLanes & ~n, t && (e |= $l), e; + } + function bc(e, t, n) { + var r = t.pendingProps, a = !1, o = (t.flags & 128) != 0, s; + if ((s = o) || (s = e !== null && e.memoizedState === null ? !1 : (ao.current & 2) != 0), s && (a = !0, t.flags &= -129), s = (t.flags & 32) != 0, t.flags &= -33, e === null) { + if (ki) { + if (a ? eo(t) : ro(t), (e = Oi) ? (e = ff(e, ji), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = { + dehydrated: e, + treeContext: bi === null ? null : { + id: xi, + overflow: Si + }, + retryLane: 536870912, + hydrationErrors: null + }, n = ui(e), n.return = t, t.child = n, Di = t, Oi = null)) : e = null, e === null) throw Ni(t); + return mf(e) ? t.lanes = 32 : t.lanes = 536870912, null; + } + var c = r.children; + return r = r.fallback, a ? (ro(t), a = t.mode, c = Sc({ + mode: "hidden", + children: c + }, a), r = ci(r, a, n, null), c.return = t, r.return = t, c.sibling = r, t.child = c, r = t.child, r.memoizedState = vc(n), r.childLanes = yc(e, s, n), t.memoizedState = _c, sc(null, r)) : (eo(t), xc(t, c)); + } + var l = e.memoizedState; + if (l !== null && (c = l.dehydrated, c !== null)) { + if (o) t.flags & 256 ? (eo(t), t.flags &= -257, t = Cc(e, t, n)) : t.memoizedState === null ? (ro(t), c = r.fallback, a = t.mode, r = Sc({ + mode: "visible", + children: r.children + }, a), c = ci(c, a, n, null), c.flags |= 2, r.return = t, c.return = t, r.sibling = c, t.child = r, Na(t, e.child, null, n), r = t.child, r.memoizedState = vc(n), r.childLanes = yc(e, s, n), t.memoizedState = _c, t = sc(null, r)) : (ro(t), t.child = e.child, t.flags |= 128, t = null); + else if (eo(t), mf(c)) { + if (s = c.nextSibling && c.nextSibling.dataset, s) var u = s.dgst; + s = u, r = Error(i(419)), r.stack = "", r.digest = s, zi({ + value: r, + source: null, + stack: null + }), t = Cc(e, t, n); + } else if (tc || qi(e, t, n, !1), s = (n & e.childLanes) !== 0, tc || s) { + if (s = Bl, s !== null && (r = Ye(s, n), r !== 0 && r !== l.retryLane)) throw l.retryLane = r, Qr(e, r), bu(s, e, r), ec; + pf(c) || Mu(), t = Cc(e, t, n); + } else pf(c) ? (t.flags |= 192, t.child = e.child, t = null) : (e = l.treeContext, Oi = gf(c.nextSibling), Di = t, ki = !0, Ai = null, ji = !1, e !== null && Ei(t, e), t = xc(t, r.children), t.flags |= 4096); + return t; + } + return a ? (ro(t), c = r.fallback, a = t.mode, l = e.child, u = l.sibling, r = ai(l, { + mode: "hidden", + children: r.children + }), r.subtreeFlags = l.subtreeFlags & 65011712, u === null ? (c = ci(c, a, n, null), c.flags |= 2) : c = ai(u, c), c.return = t, r.return = t, r.sibling = c, t.child = r, sc(null, r), r = t.child, c = e.child.memoizedState, c === null ? c = vc(n) : (a = c.cachePool, a === null ? a = ga() : (l = na._currentValue, a = a.parent === l ? a : { + parent: l, + pool: l + }), c = { + baseLanes: c.baseLanes | n, + cachePool: a + }), r.memoizedState = c, r.childLanes = yc(e, s, n), t.memoizedState = _c, sc(e.child, r)) : (eo(t), n = e.child, e = n.sibling, n = ai(n, { + mode: "visible", + children: r.children + }), n.return = t, n.sibling = null, e !== null && (s = t.deletions, s === null ? (t.deletions = [e], t.flags |= 16) : s.push(e)), t.child = n, t.memoizedState = null, n); + } + function xc(e, t) { + return t = Sc({ + mode: "visible", + children: t + }, e.mode), t.return = e, e.child = t; + } + function Sc(e, t) { + return e = ri(22, e, null, t), e.lanes = 0, e; + } + function Cc(e, t, n) { + return Na(t, e.child, null, n), e = xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e; + } + function wc(e, t, n) { + e.lanes |= t; + var r = e.alternate; + r !== null && (r.lanes |= t), Gi(e.return, t, n); + } + function Tc(e, t, n, r, i, a) { + var o = e.memoizedState; + o === null ? e.memoizedState = { + isBackwards: t, + rendering: null, + renderingStartTime: 0, + last: r, + tail: n, + tailMode: i, + treeForkCount: a + } : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a); + } + function Ec(e, t, n) { + var r = t.pendingProps, i = r.revealOrder, a = r.tail; + r = r.children; + var o = ao.current, s = (o & 2) != 0; + if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, M(ao, o), nc(e, t, r, n), r = ki ? _i : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) { + if (e.tag === 13) e.memoizedState !== null && wc(e, n, t); + else if (e.tag === 19) wc(e, n, t); + else if (e.child !== null) { + e.child.return = e, e = e.child; + continue; + } + if (e === t) break a; + for (; e.sibling === null;) { + if (e.return === null || e.return === t) break a; + e = e.return; + } + e.sibling.return = e.return, e = e.sibling; + } + switch (i) { + case "forwards": + for (n = t.child, i = null; n !== null;) e = n.alternate, e !== null && oo(e) === null && (i = n), n = n.sibling; + n = i, n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), Tc(t, !1, i, n, a, r); + break; + case "backwards": + case "unstable_legacy-backwards": + for (n = null, i = t.child, t.child = null; i !== null;) { + if (e = i.alternate, e !== null && oo(e) === null) { + t.child = i; + break; + } + e = i.sibling, i.sibling = n, n = i, i = e; + } + Tc(t, !0, n, null, a, r); + break; + case "together": + Tc(t, !1, null, null, void 0, r); + break; + default: t.memoizedState = null; + } + return t.child; + } + function Dc(e, t, n) { + if (e !== null && (t.dependencies = e.dependencies), Xl |= t.lanes, (n & t.childLanes) === 0) if (e !== null) { + if (qi(e, t, n, !1), (n & t.childLanes) === 0) return null; + } else return null; + if (e !== null && t.child !== e.child) throw Error(i(153)); + if (t.child !== null) { + for (e = t.child, n = ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ai(e, e.pendingProps), n.return = t; + n.sibling = null; + } + return t.child; + } + function Oc(e, t) { + return (e.lanes & t) === 0 ? (e = e.dependencies, !!(e !== null && Ji(e))) : !0; + } + function kc(e, t, n) { + switch (t.tag) { + case 3: + de(t, t.stateNode.containerInfo), Ui(t, na, e.memoizedState.cache), Li(); + break; + case 27: + case 5: + L(t); + break; + case 4: + de(t, t.stateNode.containerInfo); + break; + case 10: + Ui(t, t.type, t.memoizedProps.value); + break; + case 31: + if (t.memoizedState !== null) return t.flags |= 128, to(t), null; + break; + case 13: + var r = t.memoizedState; + if (r !== null) return r.dehydrated === null ? (n & t.child.childLanes) === 0 ? (eo(t), e = Dc(e, t, n), e === null ? null : e.sibling) : bc(e, t, n) : (eo(t), t.flags |= 128, null); + eo(t); + break; + case 19: + var i = (e.flags & 128) != 0; + if (r = (n & t.childLanes) !== 0, r ||= (qi(e, t, n, !1), (n & t.childLanes) !== 0), i) { + if (r) return Ec(e, t, n); + t.flags |= 128; + } + if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), M(ao, ao.current), r) break; + return null; + case 22: return t.lanes = 0, oc(e, t, n, t.pendingProps); + case 24: Ui(t, na, e.memoizedState.cache); + } + return Dc(e, t, n); + } + function Ac(e, t, n) { + if (e !== null) if (e.memoizedProps !== t.pendingProps) tc = !0; + else { + if (!Oc(e, n) && !(t.flags & 128)) return tc = !1, kc(e, t, n); + tc = !!(e.flags & 131072); + } + else tc = !1, ki && t.flags & 1048576 && Ci(t, _i, t.index); + switch (t.lanes = 0, t.tag) { + case 16: + a: { + var r = t.pendingProps; + if (e = Ca(t.elementType), t.type = e, typeof e == "function") ii(e) ? (r = Ws(e, r), t.tag = 1, t = hc(null, t, e, r, n)) : (t.tag = 0, t = pc(null, t, e, r, n)); + else { + if (e != null) { + var a = e.$$typeof; + if (a === w) { + t.tag = 11, t = rc(null, t, e, r, n); + break a; + } else if (a === D) { + t.tag = 14, t = ic(null, t, e, r, n); + break a; + } + } + throw t = ae(e) || e, Error(i(306, t, "")); + } + } + return t; + case 0: return pc(e, t, t.type, t.pendingProps, n); + case 1: return r = t.type, a = Ws(r, t.pendingProps), hc(e, t, r, a, n); + case 3: + a: { + if (de(t, t.stateNode.containerInfo), e === null) throw Error(i(387)); + r = t.pendingProps; + var o = t.memoizedState; + a = o.element, La(e, t), Wa(t, r, null, n); + var s = t.memoizedState; + if (r = s.cache, Ui(t, na, r), r !== o.cache && Ki(t, [na], n, !0), Ua(), r = s.element, o.isDehydrated) if (o = { + element: r, + isDehydrated: !1, + cache: s.cache + }, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) { + t = gc(e, t, r, n); + break a; + } else if (r !== a) { + a = pi(Error(i(424)), t), zi(a), t = gc(e, t, r, n); + break a; + } else { + switch (e = t.stateNode.containerInfo, e.nodeType) { + case 9: + e = e.body; + break; + default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e; + } + for (Oi = gf(e.firstChild), Di = t, ki = !0, Ai = null, ji = !0, n = Pa(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 4096, n = n.sibling; + } + else { + if (Li(), r === a) { + t = Dc(e, t, n); + break a; + } + nc(e, t, r, n); + } + t = t.child; + } + return t; + case 26: return fc(e, t), e === null ? (n = Lf(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ki || (n = t.type, e = t.pendingProps, r = Jd(F.current).createElement(n), r[tt] = t, r[nt] = e, Hd(r, n, e), mt(r), t.stateNode = r) : t.memoizedState = Lf(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null; + case 27: return L(t), e === null && ki && (r = t.stateNode = bf(t.type, t.pendingProps, F.current), Di = t, ji = !0, a = Oi, of(t.type) ? (_f = a, Oi = gf(r.firstChild)) : Oi = a), nc(e, t, t.pendingProps.children, n), fc(e, t), e === null && (t.flags |= 4194304), t.child; + case 5: return e === null && ki && ((a = r = Oi) && (r = uf(r, t.type, t.pendingProps, ji), r === null ? a = !1 : (t.stateNode = r, Di = t, Oi = gf(r.firstChild), ji = !1, a = !0)), a || Ni(t)), L(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Zd(a, o) ? r = null : s !== null && Zd(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = xo(e, t, wo, null, null, n), op._currentValue = a), fc(e, t), nc(e, t, r, n), t.child; + case 6: return e === null && ki && ((e = n = Oi) && (n = df(n, t.pendingProps, ji), n === null ? e = !1 : (t.stateNode = n, Di = t, Oi = null, e = !0)), e || Ni(t)), null; + case 13: return bc(e, t, n); + case 4: return de(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Na(t, null, r, n) : nc(e, t, r, n), t.child; + case 11: return rc(e, t, t.type, t.pendingProps, n); + case 7: return nc(e, t, t.pendingProps, n), t.child; + case 8: return nc(e, t, t.pendingProps.children, n), t.child; + case 12: return nc(e, t, t.pendingProps.children, n), t.child; + case 10: return r = t.pendingProps, Ui(t, t.type, r.value), nc(e, t, r.children, n), t.child; + case 9: return a = t.type._context, r = t.pendingProps.children, Yi(t), a = Xi(a), r = r(a), t.flags |= 1, nc(e, t, r, n), t.child; + case 14: return ic(e, t, t.type, t.pendingProps, n); + case 15: return ac(e, t, t.type, t.pendingProps, n); + case 19: return Ec(e, t, n); + case 31: return dc(e, t, n); + case 22: return oc(e, t, n, t.pendingProps); + case 24: return Yi(t), r = Xi(na), e === null ? (a = ma(), a === null && (a = Bl, o = ra(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = { + parent: r, + cache: a + }, Ia(t), Ui(t, na, a)) : ((e.lanes & n) !== 0 && (La(e, t), Wa(t, null, null, n), Ua()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, Ui(t, na, r), r !== a.cache && Ki(t, [na], n, !0)) : (a = { + parent: r, + cache: r + }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), Ui(t, na, r))), nc(e, t, t.pendingProps.children, n), t.child; + case 29: throw t.pendingProps; + } + throw Error(i(156, t.tag)); + } + function jc(e) { + e.flags |= 4; + } + function Mc(e, t, n, r, i) { + if ((t = (e.mode & 32) != 0) && (t = !1), t) { + if (e.flags |= 16777216, (i & 335544128) === i) if (e.stateNode.complete) e.flags |= 8192; + else if (ku()) e.flags |= 8192; + else throw wa = ba, va; + } else e.flags &= -16777217; + } + function Nc(e, t) { + if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217; + else if (e.flags |= 16777216, !Qf(t)) if (ku()) e.flags |= 8192; + else throw wa = ba, va; + } + function Pc(e, t) { + t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : U(), e.lanes |= t, eu |= t); + } + function Fc(e, t) { + if (!ki) switch (e.tailMode) { + case "hidden": + t = e.tail; + for (var n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling; + n === null ? e.tail = null : n.sibling = null; + break; + case "collapsed": + n = e.tail; + for (var r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling; + r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null; + } + } + function Ic(e) { + var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0; + if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 65011712, r |= i.flags & 65011712, i.return = e, i = i.sibling; + else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling; + return e.subtreeFlags |= r, e.childLanes = n, t; + } + function Lc(e, t, n) { + var r = t.pendingProps; + switch (Ti(t), t.tag) { + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: return Ic(t), null; + case 1: return Ic(t), null; + case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), Wi(na), fe(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (Ii(t) ? jc(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Ri())), Ic(t), null; + case 26: + var a = t.type, o = t.memoizedState; + return e === null ? (jc(t), o === null ? (Ic(t), Mc(t, a, null, r, n)) : (Ic(t), Nc(t, o))) : o ? o === e.memoizedState ? (Ic(t), t.flags &= -16777217) : (jc(t), Ic(t), Nc(t, o)) : (e = e.memoizedProps, e !== r && jc(t), Ic(t), Mc(t, a, e, r, n)), null; + case 27: + if (R(t), n = F.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && jc(t); + else { + if (!r) { + if (t.stateNode === null) throw Error(i(166)); + return Ic(t), null; + } + e = N.current, Ii(t) ? Pi(t, e) : (e = bf(a, r, n), t.stateNode = e, jc(t)); + } + return Ic(t), null; + case 5: + if (R(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && jc(t); + else { + if (!r) { + if (t.stateNode === null) throw Error(i(166)); + return Ic(t), null; + } + if (o = N.current, Ii(t)) Pi(t, o); + else { + var s = Jd(F.current); + switch (o) { + case 1: + o = s.createElementNS("http://www.w3.org/2000/svg", a); + break; + case 2: + o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a); + break; + default: switch (a) { + case "svg": + o = s.createElementNS("http://www.w3.org/2000/svg", a); + break; + case "math": + o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a); + break; + case "script": + o = s.createElement("div"), o.innerHTML = "